From 5f063d657ca8f8b83eb3c8e50d8e5345f5c544f2 Mon Sep 17 00:00:00 2001 From: Serghei Iakovlev Date: Sat, 25 Mar 2017 22:50:39 +0200 Subject: [PATCH 01/21] Updated CHANGELOG.md [ci skip] --- CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0c4bd1d463b..38c89499bb4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,5 @@ +# [3.1.2](https://github.com/phalcon/cphalcon/releases/tag/v3.1.2) (2017-XX-XX) + # [3.1.1](https://github.com/phalcon/cphalcon/releases/tag/v3.1.1) (2017-03-25) - Fixed undefined index warning on existing cached resultsets - Fixed `Phalcon\Mvc\Model::_dowLowUpdate` warning first argument is not an array [#12742](https://github.com/phalcon/cphalcon/issues/12742) From 65ed55281e3d21c5c992d8832e1870569a31426e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wojciech=20=C5=9Alawski?= Date: Sun, 26 Mar 2017 11:48:59 +0200 Subject: [PATCH 02/21] Change appveyor address --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index b8fbddf5784..3abaf11bb2b 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # Phalcon Framework [![Build Status](https://travis-ci.org/phalcon/cphalcon.svg?branch=master)](https://travis-ci.org/phalcon/cphalcon) -[![Windows Build](https://ci.appveyor.com/api/projects/status/github/phalcon/cphalcon?branch=master&svg=true)](https://ci.appveyor.com/project/phalcon/cphalcon/branch/master) +[![Windows Build](https://ci.appveyor.com/api/projects/status/github/sergeyklay/cphalcon?branch=master&svg=true)](https://ci.appveyor.com/project/phalcon/cphalcon/branch/master) [![Support Us](https://img.shields.io/badge/support-patreon-red.svg)](https://www.patreon.com/bePatron?u=4653615) [![Phalcon Backers](https://img.shields.io/badge/phalcon-backers-99ddc0.svg)](https://github.com/phalcon/cphalcon/blob/master/BACKERS.md) [![OpenCollective](https://opencollective.com/phalcon/backers/badge.svg)](#backers) From 8dc27d8eeeea22ff853083e4a9ecad76c693308c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wojciech=20=C5=9Alawski?= Date: Fri, 24 Mar 2017 22:32:59 +0100 Subject: [PATCH 03/21] Remove php 7.1 from allowed failures --- .travis.yml | 1 - CHANGELOG.md | 1 + phalcon/queue/beanstalk.zep | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 18360af1704..bf859552ec0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -10,7 +10,6 @@ php: matrix: fast_finish: true allow_failures: - - php: 7.1 - php: nightly include: - php: 7.0 diff --git a/CHANGELOG.md b/CHANGELOG.md index 38c89499bb4..9c4d10d96d7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,5 @@ # [3.1.2](https://github.com/phalcon/cphalcon/releases/tag/v3.1.2) (2017-XX-XX) +- Fixed PHP 7.1 issues [#12055](https://github.com/phalcon/cphalcon/issues/12055) # [3.1.1](https://github.com/phalcon/cphalcon/releases/tag/v3.1.1) (2017-03-25) - Fixed undefined index warning on existing cached resultsets diff --git a/phalcon/queue/beanstalk.zep b/phalcon/queue/beanstalk.zep index fa37c3957e7..89d6beb1d3c 100644 --- a/phalcon/queue/beanstalk.zep +++ b/phalcon/queue/beanstalk.zep @@ -562,7 +562,7 @@ class Beanstalk /** * Writes data to the socket. Performs a connection if none is available */ - protected function write(string data) -> boolean|int + public function write(string data) -> boolean|int { var connection, packet; From 780577ec32fa85ace6d596a140118c91bbaa45ae Mon Sep 17 00:00:00 2001 From: Nikolaos Dimopoulos Date: Wed, 29 Mar 2017 16:39:02 -0400 Subject: [PATCH 04/21] Updated backers and readme --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 3abaf11bb2b..b8fbddf5784 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # Phalcon Framework [![Build Status](https://travis-ci.org/phalcon/cphalcon.svg?branch=master)](https://travis-ci.org/phalcon/cphalcon) -[![Windows Build](https://ci.appveyor.com/api/projects/status/github/sergeyklay/cphalcon?branch=master&svg=true)](https://ci.appveyor.com/project/phalcon/cphalcon/branch/master) +[![Windows Build](https://ci.appveyor.com/api/projects/status/github/phalcon/cphalcon?branch=master&svg=true)](https://ci.appveyor.com/project/phalcon/cphalcon/branch/master) [![Support Us](https://img.shields.io/badge/support-patreon-red.svg)](https://www.patreon.com/bePatron?u=4653615) [![Phalcon Backers](https://img.shields.io/badge/phalcon-backers-99ddc0.svg)](https://github.com/phalcon/cphalcon/blob/master/BACKERS.md) [![OpenCollective](https://opencollective.com/phalcon/backers/badge.svg)](#backers) From 631213a9f62254d0143ac6dc6b1aac31df6d3758 Mon Sep 17 00:00:00 2001 From: shuai wen Date: Thu, 30 Mar 2017 13:23:20 +0800 Subject: [PATCH 05/21] Fixed call Imagick::getVersion() (#12729) * Update imagick.zep Imagick none-static method getVersion * update CHANGELOG.md * Update CHANGELOG.md [ci skip] --- CHANGELOG.md | 1 + phalcon/image/adapter/imagick.zep | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9c4d10d96d7..05b1d63936a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,6 @@ # [3.1.2](https://github.com/phalcon/cphalcon/releases/tag/v3.1.2) (2017-XX-XX) - Fixed PHP 7.1 issues [#12055](https://github.com/phalcon/cphalcon/issues/12055) +- Fixed `Imagick::getVersion()` error in some system [#12729](https://github.com/phalcon/cphalcon/pull/12729) # [3.1.1](https://github.com/phalcon/cphalcon/releases/tag/v3.1.1) (2017-03-25) - Fixed undefined index warning on existing cached resultsets diff --git a/phalcon/image/adapter/imagick.zep b/phalcon/image/adapter/imagick.zep index 1e1609d4693..10962136baa 100644 --- a/phalcon/image/adapter/imagick.zep +++ b/phalcon/image/adapter/imagick.zep @@ -360,7 +360,7 @@ class Imagick extends Adapter // Imagick >= 2.0.0 if likely method_exists(watermark, "getVersion") { - let version = \Imagick::getVersion(); + let version = watermark->getVersion(); if version["versionNumber"] >= 0x700 { let method = "setImageAlpha"; From 9402a450a5259780f43a516954251b3a17cc6a1f Mon Sep 17 00:00:00 2001 From: Serghei Iakovlev Date: Sun, 2 Apr 2017 10:26:13 +0300 Subject: [PATCH 06/21] Bump version --- config.json | 2 +- phalcon/version.zep | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config.json b/config.json index 511bb0017ce..aa518741ef9 100644 --- a/config.json +++ b/config.json @@ -10,7 +10,7 @@ "name": "phalcon", "description": "Web framework delivered as a C-extension for PHP", "author": "Phalcon Team and contributors", - "version": "3.1.1", + "version": "3.1.2", "verbose": false, "optimizer-dirs": [ "optimizers" diff --git a/phalcon/version.zep b/phalcon/version.zep index c6a587e5593..a2634917344 100644 --- a/phalcon/version.zep +++ b/phalcon/version.zep @@ -95,7 +95,7 @@ class Version */ protected static function _getVersion() -> array { - return [3, 1, 1, 4, 0]; + return [3, 1, 2, 4, 0]; } /** From cdf00df9a92c9596ab859aa7ec39aac0f0f61cf8 Mon Sep 17 00:00:00 2001 From: Serghei Iakovlev Date: Sun, 2 Apr 2017 10:26:31 +0300 Subject: [PATCH 07/21] Fixed phpdoc --- phalcon/db/adapter.zep | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/phalcon/db/adapter.zep b/phalcon/db/adapter.zep index e14074a4b69..dd380d0b808 100644 --- a/phalcon/db/adapter.zep +++ b/phalcon/db/adapter.zep @@ -75,14 +75,14 @@ abstract class Adapter implements AdapterInterface, EventsAwareInterface /** * Active SQL bound parameter variables * - * @var string + * @var array */ protected _sqlVariables { get }; /** * Active SQL Bind Types * - * @var string + * @var array */ protected _sqlBindTypes; From fb930020d3ce99b994a6c62eaf672100e030af68 Mon Sep 17 00:00:00 2001 From: Serghei Iakovlev Date: Sun, 2 Apr 2017 18:27:03 +0300 Subject: [PATCH 08/21] Improved AppVeyor build --- appveyor.yml | 202 ++++++++++++++++++++++++++++++--------------------- 1 file changed, 118 insertions(+), 84 deletions(-) diff --git a/appveyor.yml b/appveyor.yml index 73019866af4..fc4aecc32a3 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -1,100 +1,134 @@ +version: 3.1.2-{build} + +build: false environment: - PHP_VERSION: latest - PHP_DEP_VER: 5.6 - PHP_SDK: c:\projects\php-sdk - PHP_DEVPACK: c:\projects\php-devpack + matrix: + - PHP_TARGET: 5.6 + PHP_VC: 11 + PHP_MAJOR: 5 + PHP_SDK: c:\projects\php-sdk + PHP_DEVPACK: c:\projects\php-devpack + +clone_depth: 1 +clone_folder: c:\projects\phalcon - matrix: - - BUILD_PLATFORM: x86 - PHP_VC: 11 +init: + - SET ANSICON=121x90 (121x90) + - SET COMPOSER_NO_INTERACTION=1 + - SET PARSER_RELEASE=1.0.1 + - SET PARSER_VERSION=1.0.1-232 cache: - - vendor -> composer.json + - vendor -> composer.json + - composer.phar -> composer.json os: Windows Server 2012 R2 -clone_folder: c:\projects\phalcon +platform: + - x86 matrix: - fast_finish: true + fast_finish: true install: - - echo Setting PHP version... - - appveyor DownloadFile http://windows.php.net/downloads/releases/sha1sum.txt - - ps: >- - If ($env:PHP_VERSION -Match "latest") { - $env:PHP_VERSION=type sha1sum.txt | where { $_ -match "php-(5\.6\.\d+)-src" } | foreach { $matches[1] } - $env:version='{build}-$(PHP_VERSION)' - } Else { - $env:version='{build}-$(PHP_VERSION)' - } - - - echo Initializing Build... - - cd %APPVEYOR_BUILD_FOLDER% - - appveyor DownloadFile http://zephir-win.s3-website-us-east-1.amazonaws.com/x86/php_zephir_parser.dll - - git submodule update --init --recursive - - - echo Downloading PHP source code [%PHP_VERSION%] - - ps: (new-object net.webclient).DownloadFile('http://windows.php.net/downloads/releases/php-' + ${env:PHP_VERSION} + '-Win32-VC' + ${env:PHP_VC} + '-' + ${env:BUILD_PLATFORM} + '.zip', ${env:APPVEYOR_BUILD_FOLDER} + '\..\php.zip') - - cd .. - - 'mkdir php && mv php.zip php\php.zip && cd php' - - 7z.exe x php.zip | FIND /V "ing " - - cd .. - - echo Downloading PHP-SDK - - mkdir php-sdk && cd php-sdk - - ps: (new-object net.webclient).DownloadFile('http://windows.php.net/downloads/php-sdk/php-sdk-binary-tools-20110915.zip', ${env:APPVEYOR_BUILD_FOLDER} + '\..\php-sdk.zip') - - '7z.exe x ..\php-sdk.zip | FIND /V "ing "' - - cd .. - - - echo Downloading PHP-Devel-Pack - - ps: (new-object net.webclient).DownloadFile('http://windows.php.net/downloads/releases/php-devel-pack-' + ${env:PHP_VERSION} + '-Win32-VC' + ${env:PHP_VC} + '-' + ${env:BUILD_PLATFORM} + '.zip', ${env:APPVEYOR_BUILD_FOLDER} + '\..\php-dev.zip') - - 7z.exe x php-dev.zip | FIND /V "ing " - - mv php-%PHP_VERSION%-devel-VC11-%BUILD_PLATFORM% php-devpack - - - echo Building PHP [%PHP_VERSION%] - - '%PHP_SDK%\bin\phpsdk_setvars' - - 'cd %APPVEYOR_BUILD_FOLDER%\..\php' - - '"%VS110COMNTOOLS%\VsDevCmd" %BUILD_PLATFORM%' - - 'echo extension_dir=%APPVEYOR_BUILD_FOLDER%\..\php\ext > php.ini' - - 'echo extension=%APPVEYOR_BUILD_FOLDER%\php_zephir_parser.dll >> php.ini' - - 'echo extension=php_curl.dll >> php.ini' - - 'echo extension=php_openssl.dll >> php.ini' - - 'echo extension=php_mbstring.dll >> php.ini' - - 'echo extension=php_pdo_sqlite.dll >> php.ini' - - 'echo extension=php_fileinfo.dll >> php.ini' - - 'echo extension=php_gettext.dll >> php.ini' - - 'echo extension=php_gd2.dll >> php.ini' - - 'echo extension=c:\php_imagick\php_imagick.dll >> php.ini' - - 'echo memory_limit=256M >> php.ini' - - 'set PATH=%cd%;%PATH%;c:\ImageMagick\bin;c:\php_imagick' - - - echo Download ImageMagick - - mkdir c:\ImageMagick && cd c:\ImageMagick - - ps: (new-object net.webclient).DownloadFile('http://windows.php.net/downloads/pecl/deps/ImageMagick-6.9.3-7-vc11-x86.zip', 'c:\ImageMagick\ImageMagick.zip') - - 7z.exe x ImageMagick.zip | FIND /V "ing " - - - echo Download php_imagick - - mkdir c:\php_imagick && cd c:\php_imagick - - ps: (new-object net.webclient).DownloadFile('http://windows.php.net/downloads/pecl/releases/imagick/3.4.3rc1/php_imagick-3.4.3rc1-5.6-ts-vc11-x86.zip', 'c:\php_imagick\php_imagick.zip') - - 7z.exe x php_imagick.zip | FIND /V "ing " - - - echo Download Zephir - - cd %APPVEYOR_BUILD_FOLDER% - - appveyor DownloadFile https://getcomposer.org/composer.phar - - php composer.phar install --prefer-dist --no-interaction --no-progress --no-suggest --ignore-platform-reqs - - echo Setting Up Zephir - - 'vendor\bin\zephir help' + # ================================================== + - echo Setting PHP version... + # ================================================== + - appveyor DownloadFile http://windows.php.net/downloads/releases/sha1sum.txt + - ps: $env:PHP_VERSION=type sha1sum.txt | where { $_ -match "php-(${env:PHP_TARGET}\.\d+)-src" } | foreach { $matches[1] } + - ps: $env:PARSER_DOWNLOAD_URL="https://github.com/phalcon/php-zephir-parser/releases/download/v${env:PARSER_RELEASE}/zephir_parser_${env:PLATFORM}_vc${env:PHP_VC}_php${env:PHP_VERSION}_${env:PARSER_VERSION}.zip" + # ================================================== + - echo Initializing Build... + # ================================================== + - cd %APPVEYOR_BUILD_FOLDER% + - git submodule update --init --recursive + # ================================================== + - echo Downloading PHP source code [%PHP_VERSION%] + # ================================================== + - ps: (new-object net.webclient).DownloadFile('http://windows.php.net/downloads/releases/php-' + ${env:PHP_VERSION} + '-Win32-VC' + ${env:PHP_VC} + '-' + ${env:BUILD_PLATFORM} + '.zip', ${env:APPVEYOR_BUILD_FOLDER} + '\..\php.zip') + - cd .. + - 'mkdir php && mv php.zip php\php.zip && cd php' + - 7z.exe x php.zip | FIND /V "ing " + - cd .. + - echo Downloading PHP-SDK + - mkdir php-sdk && cd php-sdk + - ps: (new-object net.webclient).DownloadFile('http://windows.php.net/downloads/php-sdk/php-sdk-binary-tools-20110915.zip', ${env:APPVEYOR_BUILD_FOLDER} + '\..\php-sdk.zip') + - '7z.exe x ..\php-sdk.zip | FIND /V "ing "' + - cd .. + # ================================================== + - echo Downloading PHP-Devel-Pack + # ================================================== + - ps: (new-object net.webclient).DownloadFile('http://windows.php.net/downloads/releases/php-devel-pack-' + ${env:PHP_VERSION} + '-Win32-VC' + ${env:PHP_VC} + '-' + ${env:BUILD_PLATFORM} + '.zip', ${env:APPVEYOR_BUILD_FOLDER} + '\..\php-dev.zip') + - 7z.exe x php-dev.zip | FIND /V "ing " + - mv php-%PHP_VERSION%-devel-VC11-%BUILD_PLATFORM% php-devpack + # ================================================== + - echo Enable Zephir Parser + # ================================================== + - 'cd %APPVEYOR_BUILD_FOLDER%\..\php\ext' + - curl --location --silent --show-error %PARSER_DOWNLOAD_URL% --output zephir_parser.zip + - 7z.exe x zephir_parser.zip | FIND /V "ing " + # ================================================== + - echo Building PHP [%PHP_VERSION%] + # ================================================== + - '%PHP_SDK%\bin\phpsdk_setvars' + - 'cd %APPVEYOR_BUILD_FOLDER%\..\php' + - '"%VS110COMNTOOLS%\VsDevCmd" %BUILD_PLATFORM%' + - 'echo extension_dir=%APPVEYOR_BUILD_FOLDER%\..\php\ext > php.ini' + - 'echo extension=php_zephir_parser.dll >> php.ini' + - 'echo extension=php_curl.dll >> php.ini' + - 'echo extension=php_openssl.dll >> php.ini' + - 'echo extension=php_mbstring.dll >> php.ini' + - 'echo extension=php_pdo_sqlite.dll >> php.ini' + - 'echo extension=php_fileinfo.dll >> php.ini' + - 'echo extension=php_gettext.dll >> php.ini' + - 'echo extension=php_gd2.dll >> php.ini' + - 'echo extension=c:\php_imagick\php_imagick.dll >> php.ini' + - 'echo memory_limit=256M >> php.ini' + - 'set PATH=%cd%;%PATH%;c:\ImageMagick\bin;c:\php_imagick' + - php --ri "Zephir Parser" + # ================================================== + - echo Setting up the php_imagick + # ================================================== + - mkdir c:\ImageMagick && cd c:\ImageMagick + - ps: (new-object net.webclient).DownloadFile('http://windows.php.net/downloads/pecl/deps/ImageMagick-6.9.3-7-vc11-x86.zip', 'c:\ImageMagick\ImageMagick.zip') + - 7z.exe x ImageMagick.zip | FIND /V "ing " + - mkdir c:\php_imagick && cd c:\php_imagick + - ps: (new-object net.webclient).DownloadFile('http://windows.php.net/downloads/pecl/releases/imagick/3.4.3rc1/php_imagick-3.4.3rc1-5.6-ts-vc11-x86.zip', 'c:\php_imagick\php_imagick.zip') + - 7z.exe x php_imagick.zip | FIND /V "ing " + # ================================================== + - echo Download tests dependencies... + # ================================================== + - cd %APPVEYOR_BUILD_FOLDER% + - if not exist vendor (php -r "readfile('https://getcomposer.org/installer');" | php && php composer.phar --version) + - if not exist vendor (php composer.phar update --quiet --no-ansi --no-interaction --no-progress --optimize-autoloader --dev --prefer-dist --no-suggest --ignore-platform-reqs) + # ================================================== + - echo Download Zephir + # ================================================== + - cd %APPVEYOR_BUILD_FOLDER% + - 'vendor\bin\zephir help' build_script: - - 'vendor\bin\zephir generate' - - 'php build\gen-build.php' - - 'cd build\php5\safe' - - '%PHP_DEVPACK%\\phpize' - - configure --enable-phalcon - - nmake + - 'vendor\bin\zephir generate' + - 'php build\gen-build.php' + - 'cd build\php%PHP_MAJOR%\safe' + - '%PHP_DEVPACK%\\phpize' + - configure --enable-phalcon + - nmake on_finish: - - cd %APPVEYOR_BUILD_FOLDER% - - ps: Push-AppveyorArtifact build\php5\safe\Release_TS\php_phalcon.dll + - cd %APPVEYOR_BUILD_FOLDER% + - ps: Push-AppveyorArtifact build\php${env:PHP_MAJOR}\safe\Release_TS\php_phalcon.dll on_failure : - - 'dir' + - 'dir' + - ps: >- + IF (Test-Path -Path compile-errors.log) { + type compile-errors.log + } + + IF (Test-Path -Path compile.log) { + type compile.log + } + + IF (Test-Path -Path configure.js) { + type configure.js + } From 5489228b41cfd166fdca41fc1e1d372f48be1003 Mon Sep 17 00:00:00 2001 From: Serghei Iakovlev Date: Sun, 2 Apr 2017 10:26:52 +0300 Subject: [PATCH 09/21] Improved Travis build --- .travis.yml | 5 +++-- appveyor.yml | 8 ++++---- tests/_ci/install_zephir.sh | 10 ++++++---- tests/_ci/install_zephir_parser.sh | 25 +++++++++++++++++++++++++ 4 files changed, 38 insertions(+), 10 deletions(-) create mode 100755 tests/_ci/install_zephir_parser.sh diff --git a/.travis.yml b/.travis.yml index bf859552ec0..7e38c499c9d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -78,12 +78,13 @@ before_install: - export PHP_MAJOR="$(echo $TRAVIS_PHP_VERSION | cut -d '.' -f 1,2)" install: - - travis_retry composer install --prefer-dist --no-interaction --ignore-platform-reqs + - travis_retry composer install --prefer-source --no-interaction --ignore-platform-reqs - bash tests/_ci/install_prereqs_$PHP_MAJOR.sh + - bash tests/_ci/install_zephir_parser.sh - bash tests/_ci/install_zephir.sh - '( zephir fullclean && zephir generate $ZEND_BACKEND )' - (export PRE_PHP_INCLUDES=`php-config --includes`; cd ext/; for file in `find kernel -name "*.h"`; do $CC "$file" -I. $PRE_PHP_INCLUDES -o "$file.ghc"; done) - - (cd ext; export CFLAGS="-g3 -O0 -std=gnu90 -Wall -DZEPHIR_RELEASE=1"; /usr/bin/phpize &> /dev/null && ./configure --silent --enable-phalcon &> /dev/null && make --silent -j"$(getconf _NPROCESSORS_ONLN)" &> /dev/null && make --silent install) + - (cd ext; export CFLAGS="-g3 -O0 -std=gnu90 -Wall"; /usr/bin/phpize &> /dev/null && ./configure --silent --enable-phalcon &> /dev/null && make --silent -j"$(getconf _NPROCESSORS_ONLN)" &> /dev/null && make --silent install) - phpenv config-add tests/_ci/phalcon.ini - phpenv config-add tests/_ci/redis.ini - php -m diff --git a/appveyor.yml b/appveyor.yml index fc4aecc32a3..ff2d9d83984 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -44,7 +44,7 @@ install: # ================================================== - echo Downloading PHP source code [%PHP_VERSION%] # ================================================== - - ps: (new-object net.webclient).DownloadFile('http://windows.php.net/downloads/releases/php-' + ${env:PHP_VERSION} + '-Win32-VC' + ${env:PHP_VC} + '-' + ${env:BUILD_PLATFORM} + '.zip', ${env:APPVEYOR_BUILD_FOLDER} + '\..\php.zip') + - ps: (new-object net.webclient).DownloadFile('http://windows.php.net/downloads/releases/php-' + ${env:PHP_VERSION} + '-Win32-VC' + ${env:PHP_VC} + '-' + ${env:PLATFORM} + '.zip', ${env:APPVEYOR_BUILD_FOLDER} + '\..\php.zip') - cd .. - 'mkdir php && mv php.zip php\php.zip && cd php' - 7z.exe x php.zip | FIND /V "ing " @@ -57,9 +57,9 @@ install: # ================================================== - echo Downloading PHP-Devel-Pack # ================================================== - - ps: (new-object net.webclient).DownloadFile('http://windows.php.net/downloads/releases/php-devel-pack-' + ${env:PHP_VERSION} + '-Win32-VC' + ${env:PHP_VC} + '-' + ${env:BUILD_PLATFORM} + '.zip', ${env:APPVEYOR_BUILD_FOLDER} + '\..\php-dev.zip') + - ps: (new-object net.webclient).DownloadFile('http://windows.php.net/downloads/releases/php-devel-pack-' + ${env:PHP_VERSION} + '-Win32-VC' + ${env:PHP_VC} + '-' + ${env:PLATFORM} + '.zip', ${env:APPVEYOR_BUILD_FOLDER} + '\..\php-dev.zip') - 7z.exe x php-dev.zip | FIND /V "ing " - - mv php-%PHP_VERSION%-devel-VC11-%BUILD_PLATFORM% php-devpack + - mv php-%PHP_VERSION%-devel-VC11-%PLATFORM% php-devpack # ================================================== - echo Enable Zephir Parser # ================================================== @@ -71,7 +71,7 @@ install: # ================================================== - '%PHP_SDK%\bin\phpsdk_setvars' - 'cd %APPVEYOR_BUILD_FOLDER%\..\php' - - '"%VS110COMNTOOLS%\VsDevCmd" %BUILD_PLATFORM%' + - '"%VS110COMNTOOLS%\VsDevCmd" %PLATFORM%' - 'echo extension_dir=%APPVEYOR_BUILD_FOLDER%\..\php\ext > php.ini' - 'echo extension=php_zephir_parser.dll >> php.ini' - 'echo extension=php_curl.dll >> php.ini' diff --git a/tests/_ci/install_zephir.sh b/tests/_ci/install_zephir.sh index 7b1d41cfeb7..7f7d1870569 100755 --- a/tests/_ci/install_zephir.sh +++ b/tests/_ci/install_zephir.sh @@ -11,6 +11,8 @@ # obtain it through the world-wide-web, please send an email # to license@phalconphp.com so we can send you a copy immediately. +echo -e "Install Zephir..." + CURRENT_DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) TRAVIS_BUILD_DIR="${TRAVIS_BUILD_DIR:-$(dirname $(dirname $CURRENT_DIR))}" ZEPHIRDIR=${TRAVIS_BUILD_DIR}/vendor/phalcon/zephir @@ -25,9 +27,9 @@ cd ${ZEPHIRDIR} sed "s#%ZEPHIRDIR%#$ZEPHIRDIR#g" bin/zephir > bin/zephir-cmd chmod 755 bin/zephir-cmd -mkdir -p ~/bin +mkdir -p ${HOME}/bin -cp bin/zephir-cmd ~/bin/zephir -rm bin/zephir-cmd +cp ./bin/zephir-cmd ${HOME}/bin/zephir +rm ./bin/zephir-cmd -cd ${TRAVIS_BUILD_DIR} +cd ${CURRENT_DIR} diff --git a/tests/_ci/install_zephir_parser.sh b/tests/_ci/install_zephir_parser.sh new file mode 100755 index 00000000000..cf8f3a874f9 --- /dev/null +++ b/tests/_ci/install_zephir_parser.sh @@ -0,0 +1,25 @@ +#!/usr/bin/env bash +# +# Phalcon Framework +# +# Copyright (c) 2011-2017 Phalcon Team (https://www.phalconphp.com) +# +# This source file is subject to the New BSD License that is bundled +# with this package in the file docs/LICENSE.txt. +# +# If you did not receive a copy of the license and are unable to +# obtain it through the world-wide-web, please send an email +# to license@phalconphp.com so we can send you a copy immediately. + +echo -e "Install Zephir Parser..." + +CURRENT_DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) +TRAVIS_BUILD_DIR="${TRAVIS_BUILD_DIR:-$(dirname $(dirname $CURRENT_DIR))}" + +git clone --depth=1 -v https://github.com/phalcon/php-zephir-parser.git /tmp/parser +cd /tmp/parser + +# Only for Travis CI +TRAVIS_BUILD_DIR=$(pwd) bash ./tests/ci/install-travis + +cd ${CURRENT_DIR} From 62461503f42e04f434c3fbb5ff23d2d0d0fe5931 Mon Sep 17 00:00:00 2001 From: Serghei Iakovlev Date: Sun, 2 Apr 2017 21:34:56 +0300 Subject: [PATCH 10/21] Update README.md --- README.md | 61 ++++++++++++++++--------------------------------------- 1 file changed, 17 insertions(+), 44 deletions(-) diff --git a/README.md b/README.md index b8fbddf5784..ed92d2ca2e7 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,6 @@ [![Build Status](https://travis-ci.org/phalcon/cphalcon.svg?branch=master)](https://travis-ci.org/phalcon/cphalcon) [![Windows Build](https://ci.appveyor.com/api/projects/status/github/phalcon/cphalcon?branch=master&svg=true)](https://ci.appveyor.com/project/phalcon/cphalcon/branch/master) -[![Support Us](https://img.shields.io/badge/support-patreon-red.svg)](https://www.patreon.com/bePatron?u=4653615) [![Phalcon Backers](https://img.shields.io/badge/phalcon-backers-99ddc0.svg)](https://github.com/phalcon/cphalcon/blob/master/BACKERS.md) [![OpenCollective](https://opencollective.com/phalcon/backers/badge.svg)](#backers) [![OpenCollective](https://opencollective.com/phalcon/sponsors/badge.svg)](#sponsors) @@ -14,7 +13,9 @@ A big thank you to [our Backers](https://github.com/phalcon/cphalcon/blob/master ## Get Started -Phalcon is written in [Zephir/C](https://zephir-lang.com/) with platform independence in mind. As a result, Phalcon is available on Microsoft Windows, GNU/Linux, FreeBSD and MacOS. You can either download a binary package for the system of your choice or build it from source. +Phalcon is written in [Zephir/C](https://zephir-lang.com/) with platform independence in mind. +As a result, Phalcon is available on Microsoft Windows, GNU/Linux, FreeBSD and MacOS. +You can either download a binary package for the system of your choice or build it from source. ### Windows @@ -23,7 +24,6 @@ To install Phalcon on Windows: 1. Download [Phalcon for Windows](https://phalconphp.com/en/download/windows) 2. Extract the DLL file and copy it to your PHP extensions directory 3. Edit your **php.ini** file and add this line: - ```ini extension=php_phalcon.dll ``` @@ -43,29 +43,33 @@ On a Unix-based platform you can easily compile and install the extension from s Prerequisite packages are: -* PHP 5.5.x/5.6.x/7.0.x development resources (PHP 5.3 and 5.4 are no longer supported) -* GCC compiler (Linux/Solaris/FreeBSD) or Xcode (MacOS) +* PHP 5.5.x/5.6.x/7.0.x/7.1.x development resources (PHP 5.3 and 5.4 are no longer supported) +* `g++` >= 4.4 | `clang++` >= 3.x | `vc++` >= 11 +* GNU `make` >= 3.81 * [`re2c`](http://re2c.org) >= 0.13 Ubuntu: ```bash -sudo apt-get install php5-dev libpcre3-dev gcc make +# Use actual PHP development headers and tools here +sudo apt-get install php5-dev libpcre3-dev gcc make re2c ``` Suse: ```bash -sudo zypper install php5-devel gcc make +# Use actual PHP development headers and tools here +sudo zypper install php5-devel gcc make re2c ``` CentOS/Fedora/RHEL ```bash -sudo yum install php-devel pcre-devel gcc make +# Use actual PHP development headers and tools here +sudo yum install php-devel pcre-devel gcc make re2c ``` -## General Compilation +## Compilation Follow these instructions to generate a binary extension for your platform: @@ -75,52 +79,21 @@ cd cphalcon/build sudo ./install ``` -Add the extension to your **php.ini**: - -```ini -extension=phalcon.so -``` - -Finally, **restart the web server**. - -## Advanced compilation - If you have specific php versions running ```bash git clone https://github.com/phalcon/cphalcon -# or cd cphalcon/build/php5/32bits -cd cphalcon/build/php5/64bits - -# NOTE: for PHP 7 you have to use -# cd cphalcon/build/php7/32bits -# or -# cd cphalcon/build/php7/64bits - -make clean - -# Example: /opt/php-5.6.15 -export CUSTOM_PHP_INSTALLATION_PATH=/your/php/installation/path - -# Example: /opt/php-5.6.15/bin/phpize --clean -$CUSTOM_PHP_INSTALLATION_PATH/bin/phpize --clean - -# Example: /opt/php-5.6.15/bin/phpize -$CUSTOM_PHP_INSTALLATION_PATH/bin/phpize - -# Example: ./configure --with-php-config=/opt/php-5.6.15/bin/php-config -./configure --with-php-config=$CUSTOM_PHP_INSTALLATION_PATH/bin/php-config - -make && sudo make install +cd cphalcon/build +sudo ./install --phpize /usr/bin/phpize5.6 --php-config /usr/bin/php-config5.6 ``` -Edit your **php.ini** (for the specific version) and add this line: +Add the extension to your **php.ini**: ```ini extension=phalcon.so ``` -Save the file and **Restart the web server**. +Finally, **restart the web server**. ## Contributing From 0f0e9c460f147d4999e7966626e804a70e1752b2 Mon Sep 17 00:00:00 2001 From: Serghei Iakovlev Date: Sun, 2 Apr 2017 22:14:43 +0000 Subject: [PATCH 11/21] Refactored AppVeyor build --- .gitattributes | 2 + .travis.yml | 3 +- appveyor.yml | 217 ++++++++++++++++++++++------------- build/php7/32bits/config.w32 | 5 +- build/php7/64bits/config.w32 | 5 +- build/php7/safe/config.w32 | 5 +- ext/config.w32 | 178 ++++++++++++++-------------- 7 files changed, 246 insertions(+), 169 deletions(-) diff --git a/.gitattributes b/.gitattributes index 21670cd5aef..127f4a5c475 100644 --- a/.gitattributes +++ b/.gitattributes @@ -5,6 +5,8 @@ docs/* linguist-documentation *.sql linguist-language=SQL +*.w32 linguist-language=JavaScript + ext/* linguist-vendored build/* linguist-vendored diff --git a/.travis.yml b/.travis.yml index 7e38c499c9d..5c2b0eb7b83 100644 --- a/.travis.yml +++ b/.travis.yml @@ -28,7 +28,7 @@ cache: timeout: 691200 directories: - .temp - - vendor + #- vendor - $HOME/.ccache - $HOME/.composer/cache @@ -79,6 +79,7 @@ before_install: install: - travis_retry composer install --prefer-source --no-interaction --ignore-platform-reqs + - git submodule --quiet update --init --recursive - bash tests/_ci/install_prereqs_$PHP_MAJOR.sh - bash tests/_ci/install_zephir_parser.sh - bash tests/_ci/install_zephir.sh diff --git a/appveyor.yml b/appveyor.yml index ff2d9d83984..2efa3d5f342 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -6,17 +6,30 @@ environment: - PHP_TARGET: 5.6 PHP_VC: 11 PHP_MAJOR: 5 - PHP_SDK: c:\projects\php-sdk - PHP_DEVPACK: c:\projects\php-devpack + PHP_TYPE: "Win32" + - PHP_TARGET: 5.6 + PHP_VC: 11 + PHP_MAJOR: 5 + PHP_TYPE: "nts-Win32" + - PHP_TARGET: 7.1 + PHP_VC: 14 + PHP_MAJOR: 7 + PHP_TYPE: "Win32" + - PHP_TARGET: 7.1 + PHP_VC: 14 + PHP_MAJOR: 7 + PHP_TYPE: "nts-Win32" + NO_INTERACTION: 1 + PHP_SDK: c:\php-sdk + PHP_DEVPACK: c:\php-devpack clone_depth: 1 clone_folder: c:\projects\phalcon init: + - SET PATH=C:\Program Files (x86)\MSBuild\%PHP_VC%.0\Bin;C:\Program Files\OpenSSL;C:\php;C:\php-sdk\bin;C:\php-devpack;%PATH% + - SET PATH=C:\Program Files (x86)\Microsoft Visual Studio %PHP_VC%.0\VC;C:\Program Files (x86)\Microsoft Visual Studio %PHP_VC%.0\VC\bin;%PATH% - SET ANSICON=121x90 (121x90) - - SET COMPOSER_NO_INTERACTION=1 - - SET PARSER_RELEASE=1.0.1 - - SET PARSER_VERSION=1.0.1-232 cache: - vendor -> composer.json @@ -25,9 +38,12 @@ cache: os: Windows Server 2012 R2 platform: - x86 + - x64 matrix: fast_finish: true + allow_failures: + - platform: x64 install: # ================================================== @@ -36,99 +52,144 @@ install: - appveyor DownloadFile http://windows.php.net/downloads/releases/sha1sum.txt - ps: $env:PHP_VERSION=type sha1sum.txt | where { $_ -match "php-(${env:PHP_TARGET}\.\d+)-src" } | foreach { $matches[1] } - ps: $env:PARSER_DOWNLOAD_URL="https://github.com/phalcon/php-zephir-parser/releases/download/v${env:PARSER_RELEASE}/zephir_parser_${env:PLATFORM}_vc${env:PHP_VC}_php${env:PHP_VERSION}_${env:PARSER_VERSION}.zip" + - ps: $env:PHP_PLATFORM="${env:PHP_SDK}\phpdev\vc${env:PHP_VC}\${env:PLATFORM}" + - ps: $env:PHP_SRC="${env:PHP_PLATFORM}\php-${env:PHP_VERSION}-src" + - ps: >- + If ($env:PLATFORM -eq 'x86') { + If ($env:PHP_TYPE -Match "nts-Win32") { + $env:RELEASE_FOLDER="Release" + $env:PHP_CONFIGURE_FLAGS="--disable-all --enable-cli --enable-phalcon=shared --disable-zts" + } Else { + $env:RELEASE_FOLDER="Release_TS" + $env:PHP_CONFIGURE_FLAGS="--disable-all --enable-cli --enable-phalcon=shared" + } + } else { + If ($env:PHP_TYPE -Match "nts-Win32") { + $env:RELEASE_FOLDER="x64\Release" + $env:PHP_CONFIGURE_FLAGS="--disable-all --enable-cli --enable-zephir_parser=shared --disable-zts" + } Else { + $env:RELEASE_FOLDER="x64\Release_TS" + $env:PHP_CONFIGURE_FLAGS="--disable-all --enable-cli --enable-zephir_parser=shared" + } + } + If ($env:PHP_VC -eq '11') { + $env:VSCOMNTOOLS=$env:VS110COMNTOOLS + } Elseif ($env:PHP_VC -eq '14') { + $env:VSCOMNTOOLS=$env:VS140COMNTOOLS + } + If ($env:PLATFORM -eq 'x64') { + $env:ARCH='x86_amd64' + $env:PHALCON_ARCH="64" + } Else { + $env:ARCH='x86' + $env:PHALCON_ARCH="32" + } + If ($env:PHP_TARGET -eq '5.5') { + $env:PHP_DEPS_URL="http://windows.php.net/downloads/php-sdk/archives/deps-${env:PHP_TARGET}-vc${env:PHP_VC}-${env:PLATFORM}.7z" + } Else { + $env:PHP_DEPS_URL="http://windows.php.net/downloads/php-sdk/deps-${env:PHP_TARGET}-vc${env:PHP_VC}-${env:PLATFORM}.7z" + } + If ($env:PHP_TYPE -Match "nts-Win32") { + $env:RELEASE_ZIPBALL="phalcon_${env:PLATFORM}_vc${env:PHP_VC}_php${env:PHP_TARGET}-nts_${env:APPVEYOR_BUILD_VERSION}" + } Else { + $env:RELEASE_ZIPBALL="phalcon_${env:PLATFORM}_vc${env:PHP_VC}_php${env:PHP_TARGET}_${env:APPVEYOR_BUILD_VERSION}" + } + # ================================================== - - echo Initializing Build... + - echo Initializing Build # ================================================== - - cd %APPVEYOR_BUILD_FOLDER% - - git submodule update --init --recursive + - mkdir %PHP_SDK% && cd %PHP_SDK% + - ps: (new-object net.webclient).DownloadFile('http://windows.php.net/downloads/php-sdk/php-sdk-binary-tools-20110915.zip', 'C:\php-sdk.zip') + - 7z.exe x C:\php-sdk.zip | FIND /V "ing " + - phpsdk_buildtree phpdev + - ps: Rename-Item ${env:PHP_SDK}\phpdev\vc9 ${env:PHP_SDK}\phpdev\vc${env:PHP_VC} + - mkdir %PHP_SRC% # ================================================== - - echo Downloading PHP source code [%PHP_VERSION%] + - echo Install PHP Dev pack # ================================================== - - ps: (new-object net.webclient).DownloadFile('http://windows.php.net/downloads/releases/php-' + ${env:PHP_VERSION} + '-Win32-VC' + ${env:PHP_VC} + '-' + ${env:PLATFORM} + '.zip', ${env:APPVEYOR_BUILD_FOLDER} + '\..\php.zip') - - cd .. - - 'mkdir php && mv php.zip php\php.zip && cd php' - - 7z.exe x php.zip | FIND /V "ing " - - cd .. - - echo Downloading PHP-SDK - - mkdir php-sdk && cd php-sdk - - ps: (new-object net.webclient).DownloadFile('http://windows.php.net/downloads/php-sdk/php-sdk-binary-tools-20110915.zip', ${env:APPVEYOR_BUILD_FOLDER} + '\..\php-sdk.zip') - - '7z.exe x ..\php-sdk.zip | FIND /V "ing "' - - cd .. + - cd C:\ + - ps: (new-object net.webclient).DownloadFile('http://windows.php.net/downloads/releases/php-devel-pack-' + ${env:PHP_VERSION} + '-Win32-VC' + ${env:PHP_VC} + '-' + ${env:PLATFORM} + '.zip', 'C:\php-dev.zip') + - 7z.exe x php-dev.zip | FIND /V "ing " + - ps: Rename-Item "php-${env:PHP_VERSION}-devel-VC${env:PHP_VC}-${env:PLATFORM}" C:\php-devpack # ================================================== - - echo Downloading PHP-Devel-Pack + - echo Downloading and preparing PHP source code # ================================================== - - ps: (new-object net.webclient).DownloadFile('http://windows.php.net/downloads/releases/php-devel-pack-' + ${env:PHP_VERSION} + '-Win32-VC' + ${env:PHP_VC} + '-' + ${env:PLATFORM} + '.zip', ${env:APPVEYOR_BUILD_FOLDER} + '\..\php-dev.zip') - - 7z.exe x php-dev.zip | FIND /V "ing " - - mv php-%PHP_VERSION%-devel-VC11-%PLATFORM% php-devpack - # ================================================== - - echo Enable Zephir Parser - # ================================================== - - 'cd %APPVEYOR_BUILD_FOLDER%\..\php\ext' - - curl --location --silent --show-error %PARSER_DOWNLOAD_URL% --output zephir_parser.zip - - 7z.exe x zephir_parser.zip | FIND /V "ing " - # ================================================== - - echo Building PHP [%PHP_VERSION%] - # ================================================== - - '%PHP_SDK%\bin\phpsdk_setvars' - - 'cd %APPVEYOR_BUILD_FOLDER%\..\php' - - '"%VS110COMNTOOLS%\VsDevCmd" %PLATFORM%' - - 'echo extension_dir=%APPVEYOR_BUILD_FOLDER%\..\php\ext > php.ini' - - 'echo extension=php_zephir_parser.dll >> php.ini' - - 'echo extension=php_curl.dll >> php.ini' - - 'echo extension=php_openssl.dll >> php.ini' - - 'echo extension=php_mbstring.dll >> php.ini' - - 'echo extension=php_pdo_sqlite.dll >> php.ini' - - 'echo extension=php_fileinfo.dll >> php.ini' - - 'echo extension=php_gettext.dll >> php.ini' - - 'echo extension=php_gd2.dll >> php.ini' - - 'echo extension=c:\php_imagick\php_imagick.dll >> php.ini' - - 'echo memory_limit=256M >> php.ini' - - 'set PATH=%cd%;%PATH%;c:\ImageMagick\bin;c:\php_imagick' - - php --ri "Zephir Parser" - # ================================================== - - echo Setting up the php_imagick - # ================================================== - - mkdir c:\ImageMagick && cd c:\ImageMagick - - ps: (new-object net.webclient).DownloadFile('http://windows.php.net/downloads/pecl/deps/ImageMagick-6.9.3-7-vc11-x86.zip', 'c:\ImageMagick\ImageMagick.zip') - - 7z.exe x ImageMagick.zip | FIND /V "ing " - - mkdir c:\php_imagick && cd c:\php_imagick - - ps: (new-object net.webclient).DownloadFile('http://windows.php.net/downloads/pecl/releases/imagick/3.4.3rc1/php_imagick-3.4.3rc1-5.6-ts-vc11-x86.zip', 'c:\php_imagick\php_imagick.zip') - - 7z.exe x php_imagick.zip | FIND /V "ing " + - git clone -b PHP-%PHP_TARGET% --depth 1 https://github.com/php/php-src %PHP_SRC% + - cd %PHP_PLATFORM% + - ps: (new-object net.webclient).DownloadFile(${env:PHP_DEPS_URL}, 'C:\php-sdk-deps.7z') + - 7z.exe x C:\php-sdk-deps.7z | FIND /V "ing " + - cd %PHP_SDK% + - phpsdk_setvars + - '"%VSCOMNTOOLS%\VsDevCmd" %PLATFORM%' + - vcvarsall %ARCH% + # ================================================== + - echo Preparing extension to build + # ================================================== + - mkdir %PHP_SRC%\ext\zephir_parser + - xcopy /s /q %APPVEYOR_BUILD_FOLDER%\build\php%PHP_MAJOR%\%PHALCON_ARCH%bits\*.* %PHP_SRC%\ext\phalcon + # ================================================== + - echo Build PHP with enabled Phalcon + # ================================================== + - cd %PHP_SRC% + - buildconf + - configure %PHP_CONFIGURE_FLAGS% + - nmake 2> compile-errors.log 1> compile.log + - echo extension=%PHP_SRC%\%RELEASE_FOLDER%\php_phalcon.dll >> C:\Windows\php.ini + - SET PATH=%PHP_SRC%\%RELEASE_FOLDER%;%PATH% + - php -v + - php --ri "phalcon" # ================================================== - echo Download tests dependencies... # ================================================== - cd %APPVEYOR_BUILD_FOLDER% - if not exist vendor (php -r "readfile('https://getcomposer.org/installer');" | php && php composer.phar --version) - if not exist vendor (php composer.phar update --quiet --no-ansi --no-interaction --no-progress --optimize-autoloader --dev --prefer-dist --no-suggest --ignore-platform-reqs) + +build_script: # ================================================== - - echo Download Zephir + - echo Creating package to zip # ================================================== - - cd %APPVEYOR_BUILD_FOLDER% - - 'vendor\bin\zephir help' + - mkdir %APPVEYOR_BUILD_FOLDER%\package + - cd %APPVEYOR_BUILD_FOLDER%\package + # dll + - cp %PHP_SRC%\%RELEASE_FOLDER%\php_phalcon.dll .\ + # docs + # TODO -build_script: - - 'vendor\bin\zephir generate' - - 'php build\gen-build.php' - - 'cd build\php%PHP_MAJOR%\safe' - - '%PHP_DEVPACK%\\phpize' - - configure --enable-phalcon - - nmake - -on_finish: - - cd %APPVEYOR_BUILD_FOLDER% - - ps: Push-AppveyorArtifact build\php${env:PHP_MAJOR}\safe\Release_TS\php_phalcon.dll +after_build: + # ================================================== + - echo Collect artifacts and zip + # ================================================== + - cd %APPVEYOR_BUILD_FOLDER%\package + - ps: 7z a ${env:RELEASE_ZIPBALL}.zip *.* + - ps: mv ${env:RELEASE_ZIPBALL}.zip ${env:APPVEYOR_BUILD_FOLDER}\ -on_failure : +on_failure: - 'dir' - ps: >- - IF (Test-Path -Path compile-errors.log) { - type compile-errors.log + If (Test-Path -Path ${env:PHP_SRC}\compile-errors.log) { + type ${env:PHP_SRC}\compile-errors.log } - IF (Test-Path -Path compile.log) { - type compile.log + If (Test-Path -Path ${env:PHP_SRC}\compile.log) { + type ${env:PHP_SRC}\compile.log } - IF (Test-Path -Path configure.js) { - type configure.js + If (Test-Path -Path ${env:PHP_SRC}\configure.js) { + type ${env:PHP_SRC}\configure.js } + +on_success: + - 'dir' + +artifacts: + - path: '.\*.zip' + type: zip + name: Phalcon + +notifications: + - provider: Email + to: + - build@phalconphp.com + subject: "Build Phalcon [{{status}}]" + on_build_status_changed: true diff --git a/build/php7/32bits/config.w32 b/build/php7/32bits/config.w32 index b9fd9f14931..bd5151f425b 100644 --- a/build/php7/32bits/config.w32 +++ b/build/php7/32bits/config.w32 @@ -1,6 +1,9 @@ +ARG_ENABLE("security-flags", "Disable the compiler security flags", "yes"); +if (PHP_SECURITY_FLAGS == "yes") { + ADD_FLAG("LDFLAGS", "/NXCOMPAT /DYNAMICBASE "); +} ARG_ENABLE("phalcon", "enable phalcon", "no"); - if (PHP_PHALCON != "no") { EXTENSION("phalcon", "phalcon.zep.c", null, "-I"+configure_module_dirname); ADD_FLAG("CFLAGS", "/D ZEPHIR_RELEASE /Oi /Ot /Oy /Ob2 /Gs /GF /Gy /GL"); diff --git a/build/php7/64bits/config.w32 b/build/php7/64bits/config.w32 index b9fd9f14931..bd5151f425b 100644 --- a/build/php7/64bits/config.w32 +++ b/build/php7/64bits/config.w32 @@ -1,6 +1,9 @@ +ARG_ENABLE("security-flags", "Disable the compiler security flags", "yes"); +if (PHP_SECURITY_FLAGS == "yes") { + ADD_FLAG("LDFLAGS", "/NXCOMPAT /DYNAMICBASE "); +} ARG_ENABLE("phalcon", "enable phalcon", "no"); - if (PHP_PHALCON != "no") { EXTENSION("phalcon", "phalcon.zep.c", null, "-I"+configure_module_dirname); ADD_FLAG("CFLAGS", "/D ZEPHIR_RELEASE /Oi /Ot /Oy /Ob2 /Gs /GF /Gy /GL"); diff --git a/build/php7/safe/config.w32 b/build/php7/safe/config.w32 index b9fd9f14931..bd5151f425b 100644 --- a/build/php7/safe/config.w32 +++ b/build/php7/safe/config.w32 @@ -1,6 +1,9 @@ +ARG_ENABLE("security-flags", "Disable the compiler security flags", "yes"); +if (PHP_SECURITY_FLAGS == "yes") { + ADD_FLAG("LDFLAGS", "/NXCOMPAT /DYNAMICBASE "); +} ARG_ENABLE("phalcon", "enable phalcon", "no"); - if (PHP_PHALCON != "no") { EXTENSION("phalcon", "phalcon.zep.c", null, "-I"+configure_module_dirname); ADD_FLAG("CFLAGS", "/D ZEPHIR_RELEASE /Oi /Ot /Oy /Ob2 /Gs /GF /Gy /GL"); diff --git a/ext/config.w32 b/ext/config.w32 index d77639cee44..57498cccfe6 100644 --- a/ext/config.w32 +++ b/ext/config.w32 @@ -1,5 +1,9 @@ -ARG_ENABLE("phalcon", "enable phalcon", "no"); +ARG_ENABLE("security-flags", "Disable the compiler security flags", "yes"); +if (PHP_SECURITY_FLAGS == "yes") { + ADD_FLAG("LDFLAGS", "/NXCOMPAT /DYNAMICBASE "); +} +ARG_ENABLE("phalcon", "enable phalcon", "no"); if (PHP_PHALCON != "no") { EXTENSION("phalcon", "phalcon.c", null, "-I"+configure_module_dirname); ADD_SOURCES(configure_module_dirname + "/kernel", "main.c memory.c exception.c hash.c debug.c backtrace.c object.c array.c string.c fcall.c require.c file.c operators.c math.c concat.c variables.c filter.c iterator.c exit.c time.c", "phalcon"); @@ -10,93 +14,93 @@ if (PHP_PHALCON != "no") { ADD_EXTENSION_DEP("phalcon", "json"); AC_DEFINE("ZEPHIR_USE_PHP_JSON", 1, "Whether PHP json extension is present at compile time"); } - ADD_SOURCES(configure_module_dirname + "/phalcon/annotations", "scanner.c parser.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/mvc/model", "orm.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/mvc/model/query", "scanner.c parser.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/mvc/view/engine/volt", "parser.c scanner.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/assets/filters", "jsminifier.c cssminifier.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/annotations", "scanner.c parser.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/mvc/model", "orm.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/mvc/model/query", "scanner.c parser.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/mvc/view/engine/volt", "parser.c scanner.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/assets/filters", "jsminifier.c cssminifier.c", "phalcon"); ADD_SOURCES(configure_module_dirname + "/phalcon/mvc/url", "utils.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/di", "injectionawareinterface.zep.c injectable.zep.c factorydefault.zep.c serviceinterface.zep.c exception.zep.c service.zep.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon", "exception.zep.c dispatcherinterface.zep.c config.zep.c diinterface.zep.c flashinterface.zep.c application.zep.c di.zep.c dispatcher.zep.c flash.zep.c cryptinterface.zep.c escaperinterface.zep.c filterinterface.zep.c validationinterface.zep.c acl.zep.c crypt.zep.c db.zep.c debug.zep.c escaper.zep.c filter.zep.c image.zep.c kernel.zep.c loader.zep.c logger.zep.c registry.zep.c security.zep.c tag.zep.c text.zep.c translate.zep.c validation.zep.c version.zep.c 0__closure.zep.c 1__closure.zep.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/events", "eventsawareinterface.zep.c eventinterface.zep.c managerinterface.zep.c event.zep.c exception.zep.c manager.zep.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/validation", "validatorinterface.zep.c validator.zep.c combinedfieldsvalidator.zep.c messageinterface.zep.c exception.zep.c message.zep.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/forms", "elementinterface.zep.c element.zep.c exception.zep.c form.zep.c manager.zep.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/mvc/model", "validatorinterface.zep.c validator.zep.c metadatainterface.zep.c metadata.zep.c resultsetinterface.zep.c behaviorinterface.zep.c exception.zep.c behavior.zep.c resultinterface.zep.c resultset.zep.c binderinterface.zep.c criteriainterface.zep.c managerinterface.zep.c messageinterface.zep.c queryinterface.zep.c relationinterface.zep.c transactioninterface.zep.c binder.zep.c criteria.zep.c manager.zep.c message.zep.c query.zep.c relation.zep.c row.zep.c transaction.zep.c validationfailed.zep.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/cache", "backendinterface.zep.c frontendinterface.zep.c backend.zep.c exception.zep.c multiple.zep.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/annotations", "adapterinterface.zep.c adapter.zep.c readerinterface.zep.c annotation.zep.c collection.zep.c exception.zep.c reader.zep.c reflection.zep.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/db", "adapterinterface.zep.c adapter.zep.c dialectinterface.zep.c dialect.zep.c columninterface.zep.c indexinterface.zep.c referenceinterface.zep.c resultinterface.zep.c column.zep.c exception.zep.c index.zep.c profiler.zep.c rawvalue.zep.c reference.zep.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/logger", "adapterinterface.zep.c formatterinterface.zep.c adapter.zep.c formatter.zep.c exception.zep.c item.zep.c multiple.zep.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/session", "adapterinterface.zep.c adapter.zep.c baginterface.zep.c bag.zep.c exception.zep.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/mvc", "entityinterface.zep.c viewbaseinterface.zep.c routerinterface.zep.c collectioninterface.zep.c controllerinterface.zep.c dispatcherinterface.zep.c modelinterface.zep.c router.zep.c urlinterface.zep.c viewinterface.zep.c application.zep.c collection.zep.c controller.zep.c dispatcher.zep.c micro.zep.c model.zep.c moduledefinitioninterface.zep.c url.zep.c view.zep.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/paginator", "adapterinterface.zep.c adapter.zep.c exception.zep.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/translate", "adapterinterface.zep.c adapter.zep.c interpolatorinterface.zep.c exception.zep.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/assets", "filterinterface.zep.c inline.zep.c resource.zep.c collection.zep.c exception.zep.c manager.zep.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/db/adapter", "pdo.zep.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/image", "adapterinterface.zep.c adapter.zep.c exception.zep.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/mvc/collection", "behaviorinterface.zep.c behavior.zep.c document.zep.c exception.zep.c manager.zep.c managerinterface.zep.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/mvc/view", "engineinterface.zep.c engine.zep.c exception.zep.c simple.zep.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/acl", "adapterinterface.zep.c adapter.zep.c resourceinterface.zep.c roleinterface.zep.c exception.zep.c resource.zep.c resourceaware.zep.c role.zep.c roleaware.zep.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/application", "exception.zep.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/cache/frontend", "data.zep.c base64.zep.c igbinary.zep.c json.zep.c msgpack.zep.c none.zep.c output.zep.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/mvc/model/metadata", "strategyinterface.zep.c apc.zep.c files.zep.c libmemcached.zep.c memcache.zep.c memory.zep.c redis.zep.c session.zep.c xcache.zep.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/cli", "dispatcherinterface.zep.c taskinterface.zep.c console.zep.c dispatcher.zep.c router.zep.c routerinterface.zep.c task.zep.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/http", "cookieinterface.zep.c requestinterface.zep.c responseinterface.zep.c cookie.zep.c request.zep.c response.zep.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/http/request", "fileinterface.zep.c exception.zep.c file.zep.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/http/response", "cookiesinterface.zep.c headersinterface.zep.c cookies.zep.c exception.zep.c headers.zep.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/mvc/micro", "collectioninterface.zep.c collection.zep.c exception.zep.c lazyloader.zep.c middlewareinterface.zep.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/mvc/model/query", "builderinterface.zep.c statusinterface.zep.c builder.zep.c lang.zep.c status.zep.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/mvc/model/transaction", "exception.zep.c managerinterface.zep.c failed.zep.c manager.zep.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/mvc/router", "groupinterface.zep.c routeinterface.zep.c annotations.zep.c exception.zep.c group.zep.c route.zep.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/acl/adapter", "memory.zep.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/annotations/adapter", "apc.zep.c files.zep.c memory.zep.c xcache.zep.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/assets/filters", "cssmin.zep.c jsmin.zep.c none.zep.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/assets/inline", "css.zep.c js.zep.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/assets/resource", "css.zep.c js.zep.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/cache/backend", "apc.zep.c file.zep.c libmemcached.zep.c memcache.zep.c memory.zep.c mongo.zep.c redis.zep.c xcache.zep.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/cli/console", "exception.zep.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/cli/dispatcher", "exception.zep.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/cli/router", "exception.zep.c route.zep.c routeinterface.zep.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/config/adapter", "ini.zep.c json.zep.c php.zep.c yaml.zep.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/config", "exception.zep.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/crypt", "exception.zep.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/db/adapter/pdo", "mysql.zep.c postgresql.zep.c sqlite.zep.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/db/dialect", "mysql.zep.c postgresql.zep.c sqlite.zep.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/db/profiler", "item.zep.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/db/result", "pdo.zep.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/debug", "dump.zep.c exception.zep.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/di/factorydefault", "cli.zep.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/di/service", "builder.zep.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/escaper", "exception.zep.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/filter", "exception.zep.c userfilterinterface.zep.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/flash", "direct.zep.c exception.zep.c session.zep.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/forms/element", "check.zep.c date.zep.c email.zep.c file.zep.c hidden.zep.c numeric.zep.c password.zep.c radio.zep.c select.zep.c submit.zep.c text.zep.c textarea.zep.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/http/cookie", "exception.zep.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/image/adapter", "gd.zep.c imagick.zep.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/loader", "exception.zep.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/logger/adapter", "file.zep.c firephp.zep.c stream.zep.c syslog.zep.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/logger/formatter", "firephp.zep.c json.zep.c line.zep.c syslog.zep.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/mvc/application", "exception.zep.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/mvc/collection/behavior", "softdelete.zep.c timestampable.zep.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/mvc/controller", "bindmodelinterface.zep.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/mvc/dispatcher", "exception.zep.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/mvc/model/behavior", "softdelete.zep.c timestampable.zep.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/mvc/model/binder", "bindableinterface.zep.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/mvc/model/metadata/strategy", "annotations.zep.c introspection.zep.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/mvc/model/resultset", "complex.zep.c simple.zep.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/mvc/model/validator", "email.zep.c exclusionin.zep.c inclusionin.zep.c ip.zep.c numericality.zep.c presenceof.zep.c regex.zep.c stringlength.zep.c uniqueness.zep.c url.zep.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/mvc/url", "exception.zep.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/mvc/user", "component.zep.c module.zep.c plugin.zep.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/mvc/view/engine", "php.zep.c volt.zep.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/mvc/view/engine/volt", "compiler.zep.c exception.zep.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/paginator/adapter", "model.zep.c nativearray.zep.c querybuilder.zep.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/queue", "beanstalk.zep.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/queue/beanstalk", "exception.zep.c job.zep.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/security", "exception.zep.c random.zep.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/session/adapter", "files.zep.c libmemcached.zep.c memcache.zep.c redis.zep.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/tag", "exception.zep.c select.zep.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/translate/adapter", "csv.zep.c gettext.zep.c nativearray.zep.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/translate/interpolator", "associativearray.zep.c indexedarray.zep.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/validation/message", "group.zep.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/di", "injectionawareinterface.zep.c injectable.zep.c factorydefault.zep.c serviceinterface.zep.c exception.zep.c service.zep.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon", "exception.zep.c dispatcherinterface.zep.c config.zep.c diinterface.zep.c flashinterface.zep.c application.zep.c di.zep.c dispatcher.zep.c flash.zep.c cryptinterface.zep.c escaperinterface.zep.c filterinterface.zep.c validationinterface.zep.c acl.zep.c crypt.zep.c db.zep.c debug.zep.c escaper.zep.c filter.zep.c image.zep.c kernel.zep.c loader.zep.c logger.zep.c registry.zep.c security.zep.c tag.zep.c text.zep.c translate.zep.c validation.zep.c version.zep.c 0__closure.zep.c 1__closure.zep.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/events", "eventsawareinterface.zep.c eventinterface.zep.c managerinterface.zep.c event.zep.c exception.zep.c manager.zep.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/validation", "validatorinterface.zep.c validator.zep.c combinedfieldsvalidator.zep.c messageinterface.zep.c exception.zep.c message.zep.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/forms", "elementinterface.zep.c element.zep.c exception.zep.c form.zep.c manager.zep.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/mvc/model", "validatorinterface.zep.c validator.zep.c metadatainterface.zep.c metadata.zep.c resultsetinterface.zep.c behaviorinterface.zep.c exception.zep.c behavior.zep.c resultinterface.zep.c resultset.zep.c binderinterface.zep.c criteriainterface.zep.c managerinterface.zep.c messageinterface.zep.c queryinterface.zep.c relationinterface.zep.c transactioninterface.zep.c binder.zep.c criteria.zep.c manager.zep.c message.zep.c query.zep.c relation.zep.c row.zep.c transaction.zep.c validationfailed.zep.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/cache", "backendinterface.zep.c frontendinterface.zep.c backend.zep.c exception.zep.c multiple.zep.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/annotations", "adapterinterface.zep.c adapter.zep.c readerinterface.zep.c annotation.zep.c collection.zep.c exception.zep.c reader.zep.c reflection.zep.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/db", "adapterinterface.zep.c adapter.zep.c dialectinterface.zep.c dialect.zep.c columninterface.zep.c indexinterface.zep.c referenceinterface.zep.c resultinterface.zep.c column.zep.c exception.zep.c index.zep.c profiler.zep.c rawvalue.zep.c reference.zep.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/logger", "adapterinterface.zep.c formatterinterface.zep.c adapter.zep.c formatter.zep.c exception.zep.c item.zep.c multiple.zep.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/session", "adapterinterface.zep.c adapter.zep.c baginterface.zep.c bag.zep.c exception.zep.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/mvc", "entityinterface.zep.c viewbaseinterface.zep.c routerinterface.zep.c collectioninterface.zep.c controllerinterface.zep.c dispatcherinterface.zep.c modelinterface.zep.c router.zep.c urlinterface.zep.c viewinterface.zep.c application.zep.c collection.zep.c controller.zep.c dispatcher.zep.c micro.zep.c model.zep.c moduledefinitioninterface.zep.c url.zep.c view.zep.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/paginator", "adapterinterface.zep.c adapter.zep.c exception.zep.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/translate", "adapterinterface.zep.c adapter.zep.c interpolatorinterface.zep.c exception.zep.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/assets", "filterinterface.zep.c inline.zep.c resource.zep.c collection.zep.c exception.zep.c manager.zep.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/db/adapter", "pdo.zep.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/image", "adapterinterface.zep.c adapter.zep.c exception.zep.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/mvc/collection", "behaviorinterface.zep.c behavior.zep.c document.zep.c exception.zep.c manager.zep.c managerinterface.zep.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/mvc/view", "engineinterface.zep.c engine.zep.c exception.zep.c simple.zep.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/acl", "adapterinterface.zep.c adapter.zep.c resourceinterface.zep.c roleinterface.zep.c exception.zep.c resource.zep.c resourceaware.zep.c role.zep.c roleaware.zep.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/application", "exception.zep.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/cache/frontend", "data.zep.c base64.zep.c igbinary.zep.c json.zep.c msgpack.zep.c none.zep.c output.zep.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/mvc/model/metadata", "strategyinterface.zep.c apc.zep.c files.zep.c libmemcached.zep.c memcache.zep.c memory.zep.c redis.zep.c session.zep.c xcache.zep.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/cli", "dispatcherinterface.zep.c taskinterface.zep.c console.zep.c dispatcher.zep.c router.zep.c routerinterface.zep.c task.zep.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/http", "cookieinterface.zep.c requestinterface.zep.c responseinterface.zep.c cookie.zep.c request.zep.c response.zep.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/http/request", "fileinterface.zep.c exception.zep.c file.zep.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/http/response", "cookiesinterface.zep.c headersinterface.zep.c cookies.zep.c exception.zep.c headers.zep.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/mvc/micro", "collectioninterface.zep.c collection.zep.c exception.zep.c lazyloader.zep.c middlewareinterface.zep.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/mvc/model/query", "builderinterface.zep.c statusinterface.zep.c builder.zep.c lang.zep.c status.zep.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/mvc/model/transaction", "exception.zep.c managerinterface.zep.c failed.zep.c manager.zep.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/mvc/router", "groupinterface.zep.c routeinterface.zep.c annotations.zep.c exception.zep.c group.zep.c route.zep.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/acl/adapter", "memory.zep.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/annotations/adapter", "apc.zep.c files.zep.c memory.zep.c xcache.zep.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/assets/filters", "cssmin.zep.c jsmin.zep.c none.zep.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/assets/inline", "css.zep.c js.zep.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/assets/resource", "css.zep.c js.zep.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/cache/backend", "apc.zep.c file.zep.c libmemcached.zep.c memcache.zep.c memory.zep.c mongo.zep.c redis.zep.c xcache.zep.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/cli/console", "exception.zep.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/cli/dispatcher", "exception.zep.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/cli/router", "exception.zep.c route.zep.c routeinterface.zep.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/config/adapter", "ini.zep.c json.zep.c php.zep.c yaml.zep.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/config", "exception.zep.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/crypt", "exception.zep.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/db/adapter/pdo", "mysql.zep.c postgresql.zep.c sqlite.zep.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/db/dialect", "mysql.zep.c postgresql.zep.c sqlite.zep.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/db/profiler", "item.zep.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/db/result", "pdo.zep.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/debug", "dump.zep.c exception.zep.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/di/factorydefault", "cli.zep.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/di/service", "builder.zep.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/escaper", "exception.zep.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/filter", "exception.zep.c userfilterinterface.zep.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/flash", "direct.zep.c exception.zep.c session.zep.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/forms/element", "check.zep.c date.zep.c email.zep.c file.zep.c hidden.zep.c numeric.zep.c password.zep.c radio.zep.c select.zep.c submit.zep.c text.zep.c textarea.zep.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/http/cookie", "exception.zep.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/image/adapter", "gd.zep.c imagick.zep.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/loader", "exception.zep.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/logger/adapter", "file.zep.c firephp.zep.c stream.zep.c syslog.zep.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/logger/formatter", "firephp.zep.c json.zep.c line.zep.c syslog.zep.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/mvc/application", "exception.zep.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/mvc/collection/behavior", "softdelete.zep.c timestampable.zep.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/mvc/controller", "bindmodelinterface.zep.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/mvc/dispatcher", "exception.zep.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/mvc/model/behavior", "softdelete.zep.c timestampable.zep.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/mvc/model/binder", "bindableinterface.zep.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/mvc/model/metadata/strategy", "annotations.zep.c introspection.zep.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/mvc/model/resultset", "complex.zep.c simple.zep.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/mvc/model/validator", "email.zep.c exclusionin.zep.c inclusionin.zep.c ip.zep.c numericality.zep.c presenceof.zep.c regex.zep.c stringlength.zep.c uniqueness.zep.c url.zep.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/mvc/url", "exception.zep.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/mvc/user", "component.zep.c module.zep.c plugin.zep.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/mvc/view/engine", "php.zep.c volt.zep.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/mvc/view/engine/volt", "compiler.zep.c exception.zep.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/paginator/adapter", "model.zep.c nativearray.zep.c querybuilder.zep.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/queue", "beanstalk.zep.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/queue/beanstalk", "exception.zep.c job.zep.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/security", "exception.zep.c random.zep.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/session/adapter", "files.zep.c libmemcached.zep.c memcache.zep.c redis.zep.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/tag", "exception.zep.c select.zep.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/translate/adapter", "csv.zep.c gettext.zep.c nativearray.zep.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/translate/interpolator", "associativearray.zep.c indexedarray.zep.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/validation/message", "group.zep.c", "phalcon"); ADD_SOURCES(configure_module_dirname + "/phalcon/validation/validator", "alnum.zep.c alpha.zep.c between.zep.c callback.zep.c confirmation.zep.c creditcard.zep.c date.zep.c digit.zep.c email.zep.c exception.zep.c exclusionin.zep.c file.zep.c identical.zep.c inclusionin.zep.c numericality.zep.c presenceof.zep.c regex.zep.c stringlength.zep.c uniqueness.zep.c url.zep.c", "phalcon"); ADD_FLAG("CFLAGS_PHALCON", "/D ZEPHIR_RELEASE /Oi /Ot /Oy /Ob2 /Gs /GF /Gy /GL"); ADD_FLAG("CFLAGS", "/D ZEPHIR_RELEASE /Oi /Ot /Oy /Ob2 /Gs /GF /Gy /GL"); From 6d0cf891447ac61867ea2eecbeba22a62b1d1db6 Mon Sep 17 00:00:00 2001 From: Serghei Iakovlev Date: Mon, 3 Apr 2017 08:42:07 +0300 Subject: [PATCH 12/21] Improved Travis build --- .travis.yml | 9 +++++---- tests/_ci/after_failure.sh | 17 +++++++++++++++-- tests/_ci/install_zephir.sh | 2 +- tests/_ci/install_zephir_parser.sh | 2 +- 4 files changed, 22 insertions(+), 8 deletions(-) diff --git a/.travis.yml b/.travis.yml index 5c2b0eb7b83..90b0663139b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -28,7 +28,6 @@ cache: timeout: 691200 directories: - .temp - #- vendor - $HOME/.ccache - $HOME/.composer/cache @@ -79,7 +78,6 @@ before_install: install: - travis_retry composer install --prefer-source --no-interaction --ignore-platform-reqs - - git submodule --quiet update --init --recursive - bash tests/_ci/install_prereqs_$PHP_MAJOR.sh - bash tests/_ci/install_zephir_parser.sh - bash tests/_ci/install_zephir.sh @@ -108,8 +106,11 @@ after_failure: - bash tests/_ci/after_failure.sh notifications: - email: - - build@phalconphp.com + email: + recipients: + - build@phalconphp.com + on_success: change + on_failure: always addons: apt: diff --git a/tests/_ci/after_failure.sh b/tests/_ci/after_failure.sh index 9b7193e1fe5..88368eceda0 100755 --- a/tests/_ci/after_failure.sh +++ b/tests/_ci/after_failure.sh @@ -1,12 +1,22 @@ #!/usr/bin/env bash +# +# Phalcon Framework +# +# Copyright (c) 2011-2017 Phalcon Team (https://www.phalconphp.com) +# +# This source file is subject to the New BSD License that is bundled +# with this package in the file docs/LICENSE.txt. +# +# If you did not receive a copy of the license and are unable to +# obtain it through the world-wide-web, please send an email +# to license@phalconphp.com so we can send you a copy immediately. shopt -s nullglob export LC_ALL=C -VERSION=$(php-config --version) for i in /tmp/core_*.*; do if [ -f "$i" -a "$(file "$i" | grep -o 'core file')" ]; then - gdb -q /home/travis/.phpenv/versions/${VERSION}/bin/php "$i" < Date: Mon, 3 Apr 2017 10:43:46 +0300 Subject: [PATCH 13/21] Fixed AppVeyor build --- appveyor.yml | 219 +++++++++++++---------------------- build/php5/32bits/config.w32 | 2 - build/php5/64bits/config.w32 | 2 - build/php5/safe/config.w32 | 2 - build/php7/32bits/config.w32 | 5 - build/php7/64bits/config.w32 | 5 - build/php7/safe/config.w32 | 5 - ext/config.w32 | 5 - 8 files changed, 79 insertions(+), 166 deletions(-) diff --git a/appveyor.yml b/appveyor.yml index 2efa3d5f342..69df5fee8df 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -6,30 +6,17 @@ environment: - PHP_TARGET: 5.6 PHP_VC: 11 PHP_MAJOR: 5 - PHP_TYPE: "Win32" - - PHP_TARGET: 5.6 - PHP_VC: 11 - PHP_MAJOR: 5 - PHP_TYPE: "nts-Win32" - - PHP_TARGET: 7.1 - PHP_VC: 14 - PHP_MAJOR: 7 - PHP_TYPE: "Win32" - - PHP_TARGET: 7.1 - PHP_VC: 14 - PHP_MAJOR: 7 - PHP_TYPE: "nts-Win32" - NO_INTERACTION: 1 - PHP_SDK: c:\php-sdk - PHP_DEVPACK: c:\php-devpack + PHP_SDK: c:\projects\php-sdk + PHP_DEVPACK: c:\projects\php-devpack clone_depth: 1 clone_folder: c:\projects\phalcon init: - - SET PATH=C:\Program Files (x86)\MSBuild\%PHP_VC%.0\Bin;C:\Program Files\OpenSSL;C:\php;C:\php-sdk\bin;C:\php-devpack;%PATH% - - SET PATH=C:\Program Files (x86)\Microsoft Visual Studio %PHP_VC%.0\VC;C:\Program Files (x86)\Microsoft Visual Studio %PHP_VC%.0\VC\bin;%PATH% - SET ANSICON=121x90 (121x90) + - SET COMPOSER_NO_INTERACTION=1 + - SET PARSER_RELEASE=1.0.1 + - SET PARSER_VERSION=1.0.1-232 cache: - vendor -> composer.json @@ -38,12 +25,9 @@ cache: os: Windows Server 2012 R2 platform: - x86 - - x64 matrix: fast_finish: true - allow_failures: - - platform: x64 install: # ================================================== @@ -51,145 +35,100 @@ install: # ================================================== - appveyor DownloadFile http://windows.php.net/downloads/releases/sha1sum.txt - ps: $env:PHP_VERSION=type sha1sum.txt | where { $_ -match "php-(${env:PHP_TARGET}\.\d+)-src" } | foreach { $matches[1] } - - ps: $env:PARSER_DOWNLOAD_URL="https://github.com/phalcon/php-zephir-parser/releases/download/v${env:PARSER_RELEASE}/zephir_parser_${env:PLATFORM}_vc${env:PHP_VC}_php${env:PHP_VERSION}_${env:PARSER_VERSION}.zip" - - ps: $env:PHP_PLATFORM="${env:PHP_SDK}\phpdev\vc${env:PHP_VC}\${env:PLATFORM}" - - ps: $env:PHP_SRC="${env:PHP_PLATFORM}\php-${env:PHP_VERSION}-src" - - ps: >- - If ($env:PLATFORM -eq 'x86') { - If ($env:PHP_TYPE -Match "nts-Win32") { - $env:RELEASE_FOLDER="Release" - $env:PHP_CONFIGURE_FLAGS="--disable-all --enable-cli --enable-phalcon=shared --disable-zts" - } Else { - $env:RELEASE_FOLDER="Release_TS" - $env:PHP_CONFIGURE_FLAGS="--disable-all --enable-cli --enable-phalcon=shared" - } - } else { - If ($env:PHP_TYPE -Match "nts-Win32") { - $env:RELEASE_FOLDER="x64\Release" - $env:PHP_CONFIGURE_FLAGS="--disable-all --enable-cli --enable-zephir_parser=shared --disable-zts" - } Else { - $env:RELEASE_FOLDER="x64\Release_TS" - $env:PHP_CONFIGURE_FLAGS="--disable-all --enable-cli --enable-zephir_parser=shared" - } - } - If ($env:PHP_VC -eq '11') { - $env:VSCOMNTOOLS=$env:VS110COMNTOOLS - } Elseif ($env:PHP_VC -eq '14') { - $env:VSCOMNTOOLS=$env:VS140COMNTOOLS - } - If ($env:PLATFORM -eq 'x64') { - $env:ARCH='x86_amd64' - $env:PHALCON_ARCH="64" - } Else { - $env:ARCH='x86' - $env:PHALCON_ARCH="32" - } - If ($env:PHP_TARGET -eq '5.5') { - $env:PHP_DEPS_URL="http://windows.php.net/downloads/php-sdk/archives/deps-${env:PHP_TARGET}-vc${env:PHP_VC}-${env:PLATFORM}.7z" - } Else { - $env:PHP_DEPS_URL="http://windows.php.net/downloads/php-sdk/deps-${env:PHP_TARGET}-vc${env:PHP_VC}-${env:PLATFORM}.7z" - } - If ($env:PHP_TYPE -Match "nts-Win32") { - $env:RELEASE_ZIPBALL="phalcon_${env:PLATFORM}_vc${env:PHP_VC}_php${env:PHP_TARGET}-nts_${env:APPVEYOR_BUILD_VERSION}" - } Else { - $env:RELEASE_ZIPBALL="phalcon_${env:PLATFORM}_vc${env:PHP_VC}_php${env:PHP_TARGET}_${env:APPVEYOR_BUILD_VERSION}" - } - - # ================================================== - - echo Initializing Build - # ================================================== - - mkdir %PHP_SDK% && cd %PHP_SDK% - - ps: (new-object net.webclient).DownloadFile('http://windows.php.net/downloads/php-sdk/php-sdk-binary-tools-20110915.zip', 'C:\php-sdk.zip') - - 7z.exe x C:\php-sdk.zip | FIND /V "ing " - - phpsdk_buildtree phpdev - - ps: Rename-Item ${env:PHP_SDK}\phpdev\vc9 ${env:PHP_SDK}\phpdev\vc${env:PHP_VC} - - mkdir %PHP_SRC% - # ================================================== - - echo Install PHP Dev pack - # ================================================== - - cd C:\ - - ps: (new-object net.webclient).DownloadFile('http://windows.php.net/downloads/releases/php-devel-pack-' + ${env:PHP_VERSION} + '-Win32-VC' + ${env:PHP_VC} + '-' + ${env:PLATFORM} + '.zip', 'C:\php-dev.zip') - - 7z.exe x php-dev.zip | FIND /V "ing " - - ps: Rename-Item "php-${env:PHP_VERSION}-devel-VC${env:PHP_VC}-${env:PLATFORM}" C:\php-devpack + - ps: $env:PARSER_DOWNLOAD_URL="https://github.com/phalcon/php-zephir-parser/releases/download/v${env:PARSER_RELEASE}/zephir_parser_${env:PLATFORM}_vc${env:PHP_VC}_php${env:PHP_TARGET}_${env:PARSER_VERSION}.zip" # ================================================== - - echo Downloading and preparing PHP source code + - echo Initializing Build... # ================================================== - - git clone -b PHP-%PHP_TARGET% --depth 1 https://github.com/php/php-src %PHP_SRC% - - cd %PHP_PLATFORM% - - ps: (new-object net.webclient).DownloadFile(${env:PHP_DEPS_URL}, 'C:\php-sdk-deps.7z') - - 7z.exe x C:\php-sdk-deps.7z | FIND /V "ing " - - cd %PHP_SDK% - - phpsdk_setvars - - '"%VSCOMNTOOLS%\VsDevCmd" %PLATFORM%' - - vcvarsall %ARCH% + - cd %APPVEYOR_BUILD_FOLDER% + - git submodule update --init --recursive # ================================================== - - echo Preparing extension to build + - echo Downloading PHP source code [%PHP_VERSION%] # ================================================== - - mkdir %PHP_SRC%\ext\zephir_parser - - xcopy /s /q %APPVEYOR_BUILD_FOLDER%\build\php%PHP_MAJOR%\%PHALCON_ARCH%bits\*.* %PHP_SRC%\ext\phalcon + - ps: (new-object net.webclient).DownloadFile('http://windows.php.net/downloads/releases/php-' + ${env:PHP_VERSION} + '-Win32-VC' + ${env:PHP_VC} + '-' + ${env:PLATFORM} + '.zip', ${env:APPVEYOR_BUILD_FOLDER} + '\..\php.zip') + - cd .. + - 'mkdir php && mv php.zip php\php.zip && cd php' + - 7z.exe x php.zip | FIND /V "ing " + - cd .. + - echo Downloading PHP-SDK + - mkdir php-sdk && cd php-sdk + - ps: (new-object net.webclient).DownloadFile('http://windows.php.net/downloads/php-sdk/php-sdk-binary-tools-20110915.zip', ${env:APPVEYOR_BUILD_FOLDER} + '\..\php-sdk.zip') + - '7z.exe x ..\php-sdk.zip | FIND /V "ing "' + - cd .. # ================================================== - - echo Build PHP with enabled Phalcon + - echo Downloading PHP-Devel-Pack # ================================================== - - cd %PHP_SRC% - - buildconf - - configure %PHP_CONFIGURE_FLAGS% - - nmake 2> compile-errors.log 1> compile.log - - echo extension=%PHP_SRC%\%RELEASE_FOLDER%\php_phalcon.dll >> C:\Windows\php.ini - - SET PATH=%PHP_SRC%\%RELEASE_FOLDER%;%PATH% - - php -v - - php --ri "phalcon" + - ps: (new-object net.webclient).DownloadFile('http://windows.php.net/downloads/releases/php-devel-pack-' + ${env:PHP_VERSION} + '-Win32-VC' + ${env:PHP_VC} + '-' + ${env:PLATFORM} + '.zip', ${env:APPVEYOR_BUILD_FOLDER} + '\..\php-dev.zip') + - 7z.exe x php-dev.zip | FIND /V "ing " + - mv php-%PHP_VERSION%-devel-VC11-%PLATFORM% php-devpack + # ================================================== + - echo Enable Zephir Parser + # ================================================== + - 'cd %APPVEYOR_BUILD_FOLDER%\..\php\ext' + - curl --location --silent --show-error %PARSER_DOWNLOAD_URL% --output zephir_parser.zip + - 7z.exe x zephir_parser.zip | FIND /V "ing " + # ================================================== + - echo Building PHP [%PHP_VERSION%] + # ================================================== + - '%PHP_SDK%\bin\phpsdk_setvars' + - 'cd %APPVEYOR_BUILD_FOLDER%\..\php' + - '"%VS110COMNTOOLS%\VsDevCmd" %PLATFORM%' + - 'echo extension_dir=%APPVEYOR_BUILD_FOLDER%\..\php\ext > php.ini' + - 'echo extension=php_zephir_parser.dll >> php.ini' + - 'echo extension=php_curl.dll >> php.ini' + - 'echo extension=php_openssl.dll >> php.ini' + - 'echo extension=php_mbstring.dll >> php.ini' + - 'echo extension=php_pdo_sqlite.dll >> php.ini' + - 'echo extension=php_fileinfo.dll >> php.ini' + - 'echo extension=php_gettext.dll >> php.ini' + - 'echo extension=php_gd2.dll >> php.ini' + - 'echo extension=c:\php_imagick\php_imagick.dll >> php.ini' + - 'echo memory_limit=256M >> php.ini' + - 'set PATH=%cd%;%PATH%;c:\ImageMagick\bin;c:\php_imagick' + - php --ri "Zephir Parser" + # ================================================== + - echo Setting up the php_imagick + # ================================================== + - mkdir c:\ImageMagick && cd c:\ImageMagick + - ps: (new-object net.webclient).DownloadFile('http://windows.php.net/downloads/pecl/deps/ImageMagick-6.9.3-7-vc11-x86.zip', 'c:\ImageMagick\ImageMagick.zip') + - 7z.exe x ImageMagick.zip | FIND /V "ing " + - mkdir c:\php_imagick && cd c:\php_imagick + - ps: (new-object net.webclient).DownloadFile('http://windows.php.net/downloads/pecl/releases/imagick/3.4.3rc1/php_imagick-3.4.3rc1-5.6-ts-vc11-x86.zip', 'c:\php_imagick\php_imagick.zip') + - 7z.exe x php_imagick.zip | FIND /V "ing " # ================================================== - echo Download tests dependencies... # ================================================== - cd %APPVEYOR_BUILD_FOLDER% - if not exist vendor (php -r "readfile('https://getcomposer.org/installer');" | php && php composer.phar --version) - if not exist vendor (php composer.phar update --quiet --no-ansi --no-interaction --no-progress --optimize-autoloader --dev --prefer-dist --no-suggest --ignore-platform-reqs) - -build_script: # ================================================== - - echo Creating package to zip + - echo Download Zephir # ================================================== - - mkdir %APPVEYOR_BUILD_FOLDER%\package - - cd %APPVEYOR_BUILD_FOLDER%\package - # dll - - cp %PHP_SRC%\%RELEASE_FOLDER%\php_phalcon.dll .\ - # docs - # TODO + - cd %APPVEYOR_BUILD_FOLDER% + - 'vendor\bin\zephir help' -after_build: - # ================================================== - - echo Collect artifacts and zip - # ================================================== - - cd %APPVEYOR_BUILD_FOLDER%\package - - ps: 7z a ${env:RELEASE_ZIPBALL}.zip *.* - - ps: mv ${env:RELEASE_ZIPBALL}.zip ${env:APPVEYOR_BUILD_FOLDER}\ +build_script: + - 'vendor\bin\zephir generate' + - 'php build\gen-build.php' + - 'cd build\php%PHP_MAJOR%\safe' + - '%PHP_DEVPACK%\\phpize' + - configure --enable-phalcon + - nmake + +on_finish: + - cd %APPVEYOR_BUILD_FOLDER% + - ps: Push-AppveyorArtifact build\php${env:PHP_MAJOR}\safe\Release_TS\php_phalcon.dll -on_failure: +on_failure : - 'dir' - ps: >- - If (Test-Path -Path ${env:PHP_SRC}\compile-errors.log) { - type ${env:PHP_SRC}\compile-errors.log + IF (Test-Path -Path compile-errors.log) { + type compile-errors.log } - If (Test-Path -Path ${env:PHP_SRC}\compile.log) { - type ${env:PHP_SRC}\compile.log + IF (Test-Path -Path compile.log) { + type compile.log } - If (Test-Path -Path ${env:PHP_SRC}\configure.js) { - type ${env:PHP_SRC}\configure.js + IF (Test-Path -Path configure.js) { + type configure.js } - -on_success: - - 'dir' - -artifacts: - - path: '.\*.zip' - type: zip - name: Phalcon - -notifications: - - provider: Email - to: - - build@phalconphp.com - subject: "Build Phalcon [{{status}}]" - on_build_status_changed: true diff --git a/build/php5/32bits/config.w32 b/build/php5/32bits/config.w32 index b9fd9f14931..c6b6f1514dd 100644 --- a/build/php5/32bits/config.w32 +++ b/build/php5/32bits/config.w32 @@ -1,6 +1,4 @@ - ARG_ENABLE("phalcon", "enable phalcon", "no"); - if (PHP_PHALCON != "no") { EXTENSION("phalcon", "phalcon.zep.c", null, "-I"+configure_module_dirname); ADD_FLAG("CFLAGS", "/D ZEPHIR_RELEASE /Oi /Ot /Oy /Ob2 /Gs /GF /Gy /GL"); diff --git a/build/php5/64bits/config.w32 b/build/php5/64bits/config.w32 index b9fd9f14931..c6b6f1514dd 100644 --- a/build/php5/64bits/config.w32 +++ b/build/php5/64bits/config.w32 @@ -1,6 +1,4 @@ - ARG_ENABLE("phalcon", "enable phalcon", "no"); - if (PHP_PHALCON != "no") { EXTENSION("phalcon", "phalcon.zep.c", null, "-I"+configure_module_dirname); ADD_FLAG("CFLAGS", "/D ZEPHIR_RELEASE /Oi /Ot /Oy /Ob2 /Gs /GF /Gy /GL"); diff --git a/build/php5/safe/config.w32 b/build/php5/safe/config.w32 index b9fd9f14931..c6b6f1514dd 100644 --- a/build/php5/safe/config.w32 +++ b/build/php5/safe/config.w32 @@ -1,6 +1,4 @@ - ARG_ENABLE("phalcon", "enable phalcon", "no"); - if (PHP_PHALCON != "no") { EXTENSION("phalcon", "phalcon.zep.c", null, "-I"+configure_module_dirname); ADD_FLAG("CFLAGS", "/D ZEPHIR_RELEASE /Oi /Ot /Oy /Ob2 /Gs /GF /Gy /GL"); diff --git a/build/php7/32bits/config.w32 b/build/php7/32bits/config.w32 index bd5151f425b..c6b6f1514dd 100644 --- a/build/php7/32bits/config.w32 +++ b/build/php7/32bits/config.w32 @@ -1,8 +1,3 @@ -ARG_ENABLE("security-flags", "Disable the compiler security flags", "yes"); -if (PHP_SECURITY_FLAGS == "yes") { - ADD_FLAG("LDFLAGS", "/NXCOMPAT /DYNAMICBASE "); -} - ARG_ENABLE("phalcon", "enable phalcon", "no"); if (PHP_PHALCON != "no") { EXTENSION("phalcon", "phalcon.zep.c", null, "-I"+configure_module_dirname); diff --git a/build/php7/64bits/config.w32 b/build/php7/64bits/config.w32 index bd5151f425b..c6b6f1514dd 100644 --- a/build/php7/64bits/config.w32 +++ b/build/php7/64bits/config.w32 @@ -1,8 +1,3 @@ -ARG_ENABLE("security-flags", "Disable the compiler security flags", "yes"); -if (PHP_SECURITY_FLAGS == "yes") { - ADD_FLAG("LDFLAGS", "/NXCOMPAT /DYNAMICBASE "); -} - ARG_ENABLE("phalcon", "enable phalcon", "no"); if (PHP_PHALCON != "no") { EXTENSION("phalcon", "phalcon.zep.c", null, "-I"+configure_module_dirname); diff --git a/build/php7/safe/config.w32 b/build/php7/safe/config.w32 index bd5151f425b..c6b6f1514dd 100644 --- a/build/php7/safe/config.w32 +++ b/build/php7/safe/config.w32 @@ -1,8 +1,3 @@ -ARG_ENABLE("security-flags", "Disable the compiler security flags", "yes"); -if (PHP_SECURITY_FLAGS == "yes") { - ADD_FLAG("LDFLAGS", "/NXCOMPAT /DYNAMICBASE "); -} - ARG_ENABLE("phalcon", "enable phalcon", "no"); if (PHP_PHALCON != "no") { EXTENSION("phalcon", "phalcon.zep.c", null, "-I"+configure_module_dirname); diff --git a/ext/config.w32 b/ext/config.w32 index 57498cccfe6..0f553dba35d 100644 --- a/ext/config.w32 +++ b/ext/config.w32 @@ -1,8 +1,3 @@ -ARG_ENABLE("security-flags", "Disable the compiler security flags", "yes"); -if (PHP_SECURITY_FLAGS == "yes") { - ADD_FLAG("LDFLAGS", "/NXCOMPAT /DYNAMICBASE "); -} - ARG_ENABLE("phalcon", "enable phalcon", "no"); if (PHP_PHALCON != "no") { EXTENSION("phalcon", "phalcon.c", null, "-I"+configure_module_dirname); From 801b0076294680e114508460df37f7f9c8d9788a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wojciech=20=C5=9Alawski?= Date: Tue, 4 Apr 2017 15:35:47 +0200 Subject: [PATCH 14/21] Fixes #12766 --- CHANGELOG.md | 1 + phalcon/mvc/model.zep | 4 +- tests/_data/models/DynamicUpdate/Robots.php | 45 +++++++++++++++++++ tests/unit/Mvc/Model/DynamicUpdateTest.php | 48 +++++++++++++++++++++ 4 files changed, 97 insertions(+), 1 deletion(-) create mode 100644 tests/_data/models/DynamicUpdate/Robots.php create mode 100644 tests/unit/Mvc/Model/DynamicUpdateTest.php diff --git a/CHANGELOG.md b/CHANGELOG.md index 05b1d63936a..12e548dcd9c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,7 @@ # [3.1.2](https://github.com/phalcon/cphalcon/releases/tag/v3.1.2) (2017-XX-XX) - Fixed PHP 7.1 issues [#12055](https://github.com/phalcon/cphalcon/issues/12055) - Fixed `Imagick::getVersion()` error in some system [#12729](https://github.com/phalcon/cphalcon/pull/12729) +- Fixed `Phalcon\Mvc\Model::_doLowInsert` to properly set snapshot when having default values and public properties [#12766](https://github.com/phalcon/cphalcon/issues/12766) # [3.1.1](https://github.com/phalcon/cphalcon/releases/tag/v3.1.1) (2017-03-25) - Fixed undefined index warning on existing cached resultsets diff --git a/phalcon/mvc/model.zep b/phalcon/mvc/model.zep index f7bcde283dc..ca7c718613c 100644 --- a/phalcon/mvc/model.zep +++ b/phalcon/mvc/model.zep @@ -2290,7 +2290,10 @@ abstract class Model implements EntityInterface, ModelInterface, ResultInterface if fetch value, this->{attributeField} { if value === null && isset defaultValues[field] { + let snapshot[attributeField] = null; let value = connection->getDefaultValue(); + } else { + let snapshot[attributeField] = value; } /** @@ -2301,7 +2304,6 @@ abstract class Model implements EntityInterface, ModelInterface, ResultInterface } let fields[] = field, values[] = value, bindTypes[] = bindType; - let snapshot[attributeField] = value; } else { if isset defaultValues[field] { diff --git a/tests/_data/models/DynamicUpdate/Robots.php b/tests/_data/models/DynamicUpdate/Robots.php new file mode 100644 index 00000000000..e25f5f701cd --- /dev/null +++ b/tests/_data/models/DynamicUpdate/Robots.php @@ -0,0 +1,45 @@ + + * @author Serghei Iakovlev + * @package Phalcon\Test\Models\DynamicUpdate + * + * @property int $id + * @property string $name + * @property string $type + * @property int $year + * @property string $datetime + * @property string $deleted + * @property string $text + * + * @method static Robots findFirst($parameters = null) + * @method static Robots[] find($parameters = null) + * + * The contents of this file are subject to the New BSD License that is + * bundled with this package in the file docs/LICENSE.txt + * + * If you did not receive a copy of the license and are unable to obtain it + * through the world-wide-web, please send an email to license@phalconphp.com + * so that we can send you a copy immediately. + */ +class Robots extends Model +{ + public $year; + + public function initialize() + { + $this->hasMany('id', RobotsParts::class, 'robots_id'); + + $this->useDynamicUpdate(true); + } +} diff --git a/tests/unit/Mvc/Model/DynamicUpdateTest.php b/tests/unit/Mvc/Model/DynamicUpdateTest.php new file mode 100644 index 00000000000..a02617e5c6c --- /dev/null +++ b/tests/unit/Mvc/Model/DynamicUpdateTest.php @@ -0,0 +1,48 @@ + + * @author Serghei Iakovlev + * @author Wojciech Åšlawski + * @package Phalcon\Test\Unit\Mvc\Model + * + * The contents of this file are subject to the New BSD License that is + * bundled with this package in the file docs/LICENSE.txt + * + * If you did not receive a copy of the license and are unable to obtain it + * through the world-wide-web, please send an email to license@phalconphp.com + * so that we can send you a copy immediately. + */ +class DynamicUpdateTest extends UnitTest +{ + /** + * Tests dynamic update create then update + * + * @author Wojciech Åšlawski + * @issue 12766 + * @since 2017-04-04 + */ + public function testIssue12766() + { + $robots = new Robots(); + $robots->name = 'Test'; + $robots->type = 'mechanical'; + $robots->datetime = (new \DateTime())->format('Y-m-d'); + $robots->text = 'text'; + + $robots->create(); + + $robots->year = 2017; + $robots->update(); + } +} From d175ee97c0e54e8d92ab21d15edc1ffd4870aed3 Mon Sep 17 00:00:00 2001 From: Serghei Iakovlev Date: Wed, 5 Apr 2017 11:50:45 +0300 Subject: [PATCH 15/21] Fixed generation build --- .../_resource/Phalcon/Build/Generator/File/PhalconC.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/build/_resource/Phalcon/Build/Generator/File/PhalconC.php b/build/_resource/Phalcon/Build/Generator/File/PhalconC.php index d8160e6e505..5de96c8cabb 100644 --- a/build/_resource/Phalcon/Build/Generator/File/PhalconC.php +++ b/build/_resource/Phalcon/Build/Generator/File/PhalconC.php @@ -85,22 +85,23 @@ public function generate(array $alreadyIncludedHeaders = array()) */ protected function composeSkipFiles(array $alreadyIncludedHeaders = array()) { - foreach ($alreadyIncludedHeaders as $file) { - $path = Util::normalize('ext/' . $file); + foreach (array_keys($alreadyIncludedHeaders) as $file) { + $path = Util::normalize($this->sourceDir . '/' . $file); + $this->skipFiles[$path] = true; } // Add custom list of skipped files $files = include($this->configDir . '/phalcon_c_skip_files.php'); foreach ($files as $file) { - $path = Util::normalize('ext/' . $file); + $path = Util::normalize($this->sourceDir . '/' . $file); $this->skipFiles[$path] = true; } unset($this->skipFiles[0]); // Add phalcon.c, because it will be processed separately from other source files, i.e. appended at the very end - $this->skipFiles['phalcon.c'] = true; + $this->skipFiles[Util::normalize($this->sourceDir . '/phalcon.c')] = true; } /** From 724fea98e4f2decbae1a580b704203e5c0912d44 Mon Sep 17 00:00:00 2001 From: Serghei Iakovlev Date: Wed, 5 Apr 2017 13:00:24 +0300 Subject: [PATCH 16/21] Remove no longer used files --- build/install-gentoo | 71 ----------- build/travis-install | 72 ----------- ext/install-test | 10 -- ext/install2 | 27 ---- tests/_support/manual-unit.php | 217 --------------------------------- 5 files changed, 397 deletions(-) delete mode 100755 build/install-gentoo delete mode 100755 build/travis-install delete mode 100755 ext/install-test delete mode 100755 ext/install2 delete mode 100644 tests/_support/manual-unit.php diff --git a/build/install-gentoo b/build/install-gentoo deleted file mode 100755 index b7a4a387279..00000000000 --- a/build/install-gentoo +++ /dev/null @@ -1,71 +0,0 @@ -#!/bin/bash - -# Phalcon Framework -# -# Copyright (c) 2011-2013 Phalcon Team (http://www.phalconphp.com) -# -# This source file is subject to the New BSD License that is bundled -# with this package in the file docs/LICENSE.txt. -# -# If you did not receive a copy of the license and are unable to -# obtain it through the world-wide-web, please send an email -# to license@phalconphp.com so we can send you a copy immediately. -# -# Authors: Andres Gutierrez -# Eduar Carvajal - -# Check best compilation flags for GCC -export CC="gcc" -export CFLAGS="-march=native -mtune=native -O2 -fno-delete-null-pointer-checks -finline-functions -fomit-frame-pointer -fno-builtin-memcmp" -echo "int main() {}" > t.c -gcc $CFLAGS t.c -o t 2> t.t -if [ $? != 0 ]; then - chmod +x gcccpuopt - BFLAGS=`./gcccpuopt` - export CFLAGS="-O2 -fno-delete-null-pointer-checks -finline-functions -fomit-frame-pointer -fno-builtin-memcmp $BFLAGS" - gcc $CFLAGS t.c -o t 2> t.t - if [ $? != 0 ]; then - export CFLAGS="-O2 -fno-delete-null-pointer-checks" - fi -fi - -if [ $(gcc -dumpversion | cut -f1 -d.) -ge 4 ]; then - gcc $CFLAGS -fvisibility=hidden t.c -o t 2> t.t && export CFLAGS="$CFLAGS -fvisibility=hidden" -fi - -#gcc $CFLAGS -flto t.c -o t 2> t.t && { export CFLAGS="$CFLAGS -flto"; export LDFLAGS="$LDFLAGS $CFLAGS"; } -rm -f t.t t.c t - -#Check processor architecture -if [ -z $1 ]; then - DIR="32bits" - gcc gccarch.c -o gccarch - if [ -f gccarch ]; then - P64BITS=`./gccarch` - if [ "$P64BITS" == "1" ]; then - DIR="64bits" - fi - fi -else - DIR=$1 -fi - -#Move to specified architecture -cd $DIR - -#Clean current compilation -if [ -f Makefile ]; then - make clean - phpize --clean -fi - -LIBTOOLIZE_BIN="libtoolize" - -#GNU 'libtoolize' on MAC OS X is called 'glibtoolize' -if [ "$(uname -s 2>/dev/null)" = "Darwin" ] && $(which glibtoolize > /dev/null 2>&1) -then -LIBTOOLIZE_BIN="glibtoolize" -fi - -#Perform the compilation -phpize && aclocal && $LIBTOOLIZE_BIN --force && autoheader && autoconf && ./configure --enable-phalcon && make && make install && echo -e "\nThanks for compiling Phalcon!\nBuild succeed: Please restart your web server to complete the installation" diff --git a/build/travis-install b/build/travis-install deleted file mode 100755 index 7952dd14cca..00000000000 --- a/build/travis-install +++ /dev/null @@ -1,72 +0,0 @@ -#!/bin/bash - -# Phalcon Framework -# -# Copyright (c) 2011-2017 Phalcon Team (http://phalconphp.com) -# -# This source file is subject to the New BSD License that is bundled -# with this package in the file docs/LICENSE.txt. -# -# If you did not receive a copy of the license and are unable to -# obtain it through the world-wide-web, please send an email -# to license@phalconphp.com so we can send you a copy immediately. -# -# Authors: Andres Gutierrez -# Eduar Carvajal - -# Check best compilation flags for GCC -export CC="gcc" -export CFLAGS="-march=native -mtune=native -O2 -fno-delete-null-pointer-checks -finline-functions -fomit-frame-pointer -fno-builtin-memcmp" -echo "int main() {}" > t.c -gcc $CFLAGS t.c -o t 2> t.t -if [ $? != 0 ]; then - chmod +x gcccpuopt - BFLAGS=`./gcccpuopt` - export CFLAGS="-O2 -fno-delete-null-pointer-checks -finline-functions -fomit-frame-pointer -fno-builtin-memcmp $BFLAGS" - gcc $CFLAGS t.c -o t 2> t.t - if [ $? != 0 ]; then - export CFLAGS="-O2 -fno-delete-null-pointer-checks" - fi -fi -if [ $(gcc -dumpversion | cut -f1 -d.) -ge 4 ]; then - gcc $CFLAGS -fvisibility=hidden t.c -o t 2> t.t && export CFLAGS="$CFLAGS -fvisibility=hidden" -fi -#gcc $CFLAGS -flto t.c -o t 2> t.t && { export CFLAGS="$CFLAGS -flto"; export LDFLAGS="$LDFLAGS $CFLAGS"; } -rm -f t.t t.c t - -#Check processor architecture -if [ -z $1 ]; then - DIR="32bits" - gcc gccarch.c -o gccarch - if [ -f gccarch ]; then - P64BITS=`./gccarch` - if [ "$P64BITS" == "1" ]; then - DIR="64bits" - fi - fi -else - DIR=$1 -fi - -# Version -PHP_VERSION="php5" - -# Move to specified architecture -cd "$PHP_VERSION/$DIR" - -#Clean current compilation -if [ -f Makefile ]; then - make clean - phpize --clean -fi - -LIBTOOLIZE_BIN="libtoolize" - -#GNU 'libtoolize' on MAC OS X is called 'glibtoolize' -if [ "$(uname -s 2>/dev/null)" = "Darwin" ] && $(which glibtoolize > /dev/null 2>&1) -then - LIBTOOLIZE_BIN="glibtoolize" -fi - -#Perform the compilation -phpize && aclocal && $LIBTOOLIZE_BIN --force && autoheader && autoconf && ./configure --enable-phalcon && make && echo -e "\nThanks for compiling Phalcon!\nBuild succeed: Please restart your web server to complete the installation" diff --git a/ext/install-test b/ext/install-test deleted file mode 100755 index f4e5f12071b..00000000000 --- a/ext/install-test +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/bash -export CC="gcc" -export CFLAGS="-O0 -g3 -Wall -fvisibility=hidden" -if [ -f Makefile ]; then - sudo make --silent clean - sudo phpize --silent --clean -fi -phpize --silent -./configure --silent --enable-phalcon -make --silent && sudo make --silent install diff --git a/ext/install2 b/ext/install2 deleted file mode 100755 index 611d5675e19..00000000000 --- a/ext/install2 +++ /dev/null @@ -1,27 +0,0 @@ -#!/bin/bash - -# Phalcon Framework -# -# Copyright (c) 2011-2013 Phalcon Team (http://www.phalconphp.com) -# -# This source file is subject to the New BSD License that is bundled -# with this package in the file docs/LICENSE.txt. -# -# If you did not receive a copy of the license and are unable to -# obtain it through the world-wide-web, please send an email -# to license@phalconphp.com so we can send you a copy immediately. -# -# Authors: Andres Gutierrez -# Eduar Carvajal - -export CC="gcc" -export CFLAGS="-O2 -finline-functions -fno-builtin-memcmp -fvisibility=hidden -fomit-frame-pointer" - -#Clean current compilation -if [ -f Makefile ]; then - make clean - phpize55 --clean -fi - -#Perform the compilation -phpize55 && ./configure --enable-phalcon --with-php-config=/opt/local/bin/php-config55 && make && make install && echo -e "\nThanks for compiling Phalcon!\nBuild succeed: Please restart your web server to complete the installation" diff --git a/tests/_support/manual-unit.php b/tests/_support/manual-unit.php deleted file mode 100644 index 616f944d1ca..00000000000 --- a/tests/_support/manual-unit.php +++ /dev/null @@ -1,217 +0,0 @@ - | - | Eduar Carvajal | - +------------------------------------------------------------------------+ -*/ - -error_reporting(E_ALL | E_NOTICE | E_STRICT); - -if (function_exists('xhprof_enable')) { - xhprof_enable(XHPROF_FLAGS_CPU + XHPROF_FLAGS_MEMORY); -} - -class PHPUnit_Framework_TestCase -{ - public function assertInstanceOf($className, $object) - { - if (get_class($object) != $className) { - throw new Exception('Not instance of ' . $className . ', actually: ' . get_class($object)); - } - } - - public function assertEquals($a, $b) - { - if ($a != $b) { - if (is_array($a) && is_array($b)) { - foreach ($a as $k => $v) { - if (isset($b[$k])) { - if ($v != $b[$k]) { - print_r($v); - echo PHP_EOL; - print_r($b[$k]); - } - } else { - print_r($v); - echo PHP_EOL; - echo 'Not exists'; - } - } - throw new Exception('Not equals'); - } else { - throw new Exception('Not equals '.print_r($a, true).' != '.print_r($b, true)); - } - } - } - - public function assertNotEquals($a, $b) - { - if ($a == $b) { - throw new Exception('Equals '.$a.'=='.$b); - } - } - - public function assertFalse($a) - { - if ($a) { - throw new Exception('Not false'); - } - } - - public function assertTrue($a) - { - if (!$a) { - throw new Exception('Not true'); - } - } - - public function assertCount($cnt, $a) - { - if (count($a) != $cnt) { - throw new Exception('count'); - } - } - - public function assertEmpty($v) - { - if (!empty($v)) { - throw new Exception('not empty'); - } - } - - public function assertGreaterThan($a, $b) - { - if ($b <= $a) { - throw new Exception('Not greater than'); - } - } - - public function assertInternalType($type, $value) - { - switch (gettype($value)) { - case 'integer': - if ($type != 'int' && $type != 'integer') { - throw new Exception('Not expected type: ' . gettype($value)); - } - return; - - default: - if ($type != gettype($value)) { - throw new Exception('Not expected type: ' . gettype($value)); - } - } - } - - public function markTestSkipped($message) - { - echo 'Skipped: ' . $message . PHP_EOL; - } - - public static function main($className) - { - echo 'Testing ', $className, ' '; - if (class_exists($className, false)) { - $class = new $className(); - if (method_exists($class, 'setUp')) { - $class->setUp(); - } - - $reflectionClass = new ReflectionClass($class); - $hasSetup = $reflectionClass->hasMethod('setUp'); - - gc_collect_cycles(); - - $m = microtime(true); - $mm = memory_get_usage(true); - $mf = memory_get_usage(false); - - foreach ($reflectionClass->getMethods() as $method) { - $methodName = $method->getName(); - if (substr($methodName, 0, 4) == 'test') { - if ($hasSetup) { - $class->setUp(); - } - $class->$methodName(); - } - } - echo '[OK]', ' (', memory_get_usage(true) - $mm, ') (', memory_get_usage(false) - $mf, ') (', sprintf("%.4f", (microtime(true) - $m) * 1000), ')', PHP_EOL; - } else { - echo '[FAILED]', PHP_EOL; - } - } -} - -if (PHP_OS == 'Linux') { - if (isset($_SERVER['LOGNAME']) && $_SERVER['LOGNAME'] == 'gutierrezandresfelipe') { - chdir('/home/gutierrezandresfelipe/cphalcon'); - } -} - -if (!extension_loaded('phalcon')) { - throw new Exception("Sorry, but phalcon extension is not loaded"); -} - -try { - if (isset($_SERVER['argv'][1])) { - $file = $_SERVER['argv'][1]; - /** @noinspection PhpIncludeInspection */ - require $_SERVER['argv'][1]; - if (isset($_SERVER['argv'][2])) { - $className = $_SERVER['argv'][2]; - } else { - if (preg_match('#/([a-zA-Z0-9]+)\.php$#', $_SERVER['argv'][1], $matches)) { - $className = $matches[1]; - } else { - throw new Exception("class-name plz"); - } - } - PHPUnit_Framework_TestCase::main($className); - } else { - $xml = simplexml_load_file('unit-tests/phpunit.xml'); - foreach ($xml->testsuites as $suite) { - foreach ($suite->testsuite->file as $file) { - $fileName = (string) $file; - if (preg_match('#/([a-zA-Z0-9]+)\.php$#', $fileName, $matches)) { - /** @noinspection PhpIncludeInspection */ - require $fileName; - PHPUnit_Framework_TestCase::main($matches[1]); - } else { - throw new Exception("$file plz"); - } - } - } - } -} catch (Exception $e) { - echo $e->getMessage(), PHP_EOL; - echo $e->getFile(), ' ', $e->getLine(), PHP_EOL; - echo $e->getTraceAsString(), PHP_EOL; - //print_r($e->getTrace()); -} - -if (function_exists('xhprof_enable')) { - $xhprof_data = xhprof_disable(); - - $XHPROF_ROOT = "/var/www/xhprof/"; - /** @noinspection PhpIncludeInspection */ - include_once $XHPROF_ROOT . "/xhprof_lib/utils/xhprof_lib.php"; - /** @noinspection PhpIncludeInspection */ - include_once $XHPROF_ROOT . "/xhprof_lib/utils/xhprof_runs.php"; - - $xhprof_runs = new XHProfRuns_Default(); - $run_id = $xhprof_runs->save_run($xhprof_data, "xhprof_testing"); - - echo "http://192.168.0.27/xhprof/xhprof_html/index.php?run={$run_id}&source=xhprof_testing\n"; -} From e21639e31e88b15f03cfa5692bf6b613ebb35f40 Mon Sep 17 00:00:00 2001 From: Serghei Iakovlev Date: Wed, 5 Apr 2017 13:01:04 +0300 Subject: [PATCH 17/21] Improved ./install script --- build/install | 48 ++++++++++++++++++++++++++++++++++-------------- 1 file changed, 34 insertions(+), 14 deletions(-) diff --git a/build/install b/build/install index 7dd79e09afd..8de5bc44f34 100755 --- a/build/install +++ b/build/install @@ -1,8 +1,8 @@ -#!/bin/bash - +#!/usr/bin/env bash +# # Phalcon Framework # -# Copyright (c) 2011-2017 Phalcon Team (http://www.phalconphp.com) +# Copyright (c) 2011-2017 Phalcon Team (https://phalconphp.com) # # This source file is subject to the New BSD License that is bundled # with this package in the file docs/LICENSE.txt. @@ -20,7 +20,7 @@ # --php-config # # Example: -# ./install --phpize /usr/bin/phpize5.6 --php-config /usr/bin/php-config5.6 +# ./install --phpize /usr/bin/phpize5.6 --php-config /usr/bin/php-config5.6 --arch 32bits # Check best compilation flags for GCC export CC="gcc" @@ -29,8 +29,8 @@ export CPPFLAGS="-DPHALCON_RELEASE" # Set defaults ARCH= -PHPIZE_BIN=`which phpize` -PHPCONFIG_BIN=`which php-config` +PHPIZE_BIN=$(command -v phpize 2>/dev/null) +PHPCONFIG_BIN=$(command -v php-config 2>/dev/null) # Translate long options to short for arg in "$@"; do @@ -77,19 +77,20 @@ fi # Detect possible flags echo "int main() {}" > t.c -gcc $CFLAGS t.c -o t 2> t.t +gcc ${CFLAGS} t.c -o t 2> t.t if [ $? != 0 ]; then chmod +x gcccpuopt BFLAGS=`./gcccpuopt` export CFLAGS="-O2 -fomit-frame-pointer $BFLAGS" - gcc $CFLAGS t.c -o t 2> t.t + gcc ${CFLAGS} t.c -o t 2> t.t if [ $? != 0 ]; then export CFLAGS="-O2" fi fi +# Activate some gcc specific optimizations for gcc >= 4 if [ $(gcc -dumpversion | cut -f1 -d.) -ge 4 ]; then - gcc $CFLAGS -fvisibility=hidden t.c -o t 2> t.t && export CFLAGS="$CFLAGS -fvisibility=hidden" + gcc ${CFLAGS}-fvisibility=hidden t.c -o t 2> t.t && export CFLAGS="$CFLAGS -fvisibility=hidden" fi # gcc $CFLAGS -flto t.c -o t 2> t.t && { export CFLAGS="$CFLAGS -flto"; export LDFLAGS="$LDFLAGS $CFLAGS"; } @@ -119,8 +120,27 @@ if [ -f Makefile ]; then fi # Perform the compilation -${PHPIZE_BIN} && \ -./configure --with-php-config=${PHPCONFIG_BIN} --enable-phalcon && \ -make && \ -make install && \ -echo -e "\nThanks for compiling Phalcon!\nBuild succeed: Please restart your web server to complete the installation" +${PHPIZE_BIN} + +# For some reason the libtool script being generated by autogen contains lines referring +# to "$echo message" instead of "echo message". +export echo=echo + +# Detect Gentoo Linux +if [ -f /etc/gentoo-release ]; then + LIBTOOLIZE_BIN=$(command -v libtoolize 2>/dev/null) + aclocal && ${LIBTOOLIZE_BIN} --force && autoheader && autoconf +fi + +# Detect macOS +if [ "$(uname -s 2>/dev/null)" = "Darwin" ]; then + LIBTOOLIZE_BIN=$(command -v glibtoolize 2>/dev/null) + aclocal && ${LIBTOOLIZE_BIN} --force && autoheader && autoconf +fi + +./configure --silent --with-php-config=${PHPCONFIG_BIN} --enable-phalcon + +make -s -j"$(getconf _NPROCESSORS_ONLN)" +make -s install + +echo -e "\nThanks for compiling Phalcon!\nBuild succeed: Please restart your web server to complete the installation\n" From b09c1e53625781e1bd43596e39b90c7614053b88 Mon Sep 17 00:00:00 2001 From: Serghei Iakovlev Date: Sun, 2 Apr 2017 21:14:49 +0300 Subject: [PATCH 18/21] Regenerated build (PHP7) --- build/php7/32bits/config.w32 | 2 + build/php7/32bits/phalcon.zep.c | 8753 +++++++++++++------------------ build/php7/32bits/phalcon.zep.h | 2 +- build/php7/32bits/php_phalcon.h | 21 +- build/php7/64bits/config.w32 | 2 + build/php7/64bits/phalcon.zep.c | 8753 +++++++++++++------------------ build/php7/64bits/phalcon.zep.h | 2 +- build/php7/64bits/php_phalcon.h | 21 +- build/php7/safe/config.w32 | 2 + build/php7/safe/phalcon.zep.c | 8753 +++++++++++++------------------ build/php7/safe/phalcon.zep.h | 2 +- build/php7/safe/php_phalcon.h | 21 +- 12 files changed, 10923 insertions(+), 15411 deletions(-) diff --git a/build/php7/32bits/config.w32 b/build/php7/32bits/config.w32 index c6b6f1514dd..b9fd9f14931 100644 --- a/build/php7/32bits/config.w32 +++ b/build/php7/32bits/config.w32 @@ -1,4 +1,6 @@ + ARG_ENABLE("phalcon", "enable phalcon", "no"); + if (PHP_PHALCON != "no") { EXTENSION("phalcon", "phalcon.zep.c", null, "-I"+configure_module_dirname); ADD_FLAG("CFLAGS", "/D ZEPHIR_RELEASE /Oi /Ot /Oy /Ob2 /Gs /GF /Gy /GL"); diff --git a/build/php7/32bits/phalcon.zep.c b/build/php7/32bits/phalcon.zep.c index a25bfa0e87d..084c0ddc923 100644 --- a/build/php7/32bits/phalcon.zep.c +++ b/build/php7/32bits/phalcon.zep.c @@ -2086,6 +2086,9 @@ static int zephir_declare_class_constant_string(zend_class_entry *ce, const char this_ptr = NULL; \ } +static void zephir_get_args(zval* return_value); +static void zephir_get_arg(zval* return_value, zend_long idx); + #endif /* ZEPHIR_KERNEL_MAIN_H */ @@ -2128,12 +2131,12 @@ static int ZEPHIR_FASTCALL zephir_memory_restore_stack(); static void ZEPHIR_FASTCALL zephir_memory_observe(zval *var); static void ZEPHIR_FASTCALL zephir_memory_alloc(zval *var); -static int ZEPHIR_FASTCALL zephir_clean_restore_stack(TSRMLS_D); +static int ZEPHIR_FASTCALL zephir_clean_restore_stack(); #define zephir_safe_zval_ptr_dtor(pzval) -static void zephir_create_symbol_table(TSRMLS_D); -static int zephir_set_symbol(zval *key_name, zval *value TSRMLS_DC); +static void zephir_create_symbol_table(); +static int zephir_set_symbol(zval *key_name, zval *value); static int zephir_set_symbol_str(char *key_name, unsigned int key_length, zval *value); #define ZEPHIR_INIT_VAR(z) zephir_memory_alloc(z); @@ -2281,15 +2284,6 @@ static void zephir_throw_exception_string_debug(zend_class_entry *ce, const char -#ifndef ZEPHIR_KERNEL_HASH_H -#define ZEPHIR_KERNEL_HASH_H - - -#endif - - - - #ifndef ZEPHIR_KERNEL_DEBUG_H #define ZEPHIR_KERNEL_DEBUG_H @@ -2346,8 +2340,8 @@ static void zephir_get_called_class(zval *return_value); zend_class_entry *zephir_fetch_class(const zval *class_name); zend_class_entry *zephir_fetch_class_str_ex(const char *class_name, size_t length, int fetch_type); static void zephir_get_class(zval *result, zval *object, int lower); -static void zephir_get_class_ns(zval *result, zval *object, int lower TSRMLS_DC); -static void zephir_get_ns_class(zval *result, zval *object, int lower TSRMLS_DC); +static void zephir_get_class_ns(zval *result, zval *object, int lower); +static void zephir_get_ns_class(zval *result, zval *object, int lower); /** Cloning/Instance of */ static int zephir_clone(zval *destination, zval *obj); @@ -2393,7 +2387,7 @@ static int zephir_create_closure_ex(zval *return_value, zval *this_ptr, zend_cla /** Create instances */ static int zephir_create_instance(zval *return_value, const zval *class_name); -static int zephir_create_instance_params(zval *return_value, const zval *class_name, const zval *params TSRMLS_DC); +static int zephir_create_instance_params(zval *return_value, const zval *class_name, const zval *params); /** Increment/Decrement properties */ #define zephir_property_incr(object, property) zephir_property_incr_decr(object, property, 1) @@ -2467,48 +2461,16 @@ static void zephir_fast_array_merge(zval *return_value, zval *array1, zval *arra static int zephir_fast_in_array(zval *needle, zval *haystack); #define zephir_array_fast_append(arr, value) \ - Z_TRY_ADDREF_P(value); \ - zend_hash_next_index_insert(Z_ARRVAL_P(arr), value); + do { \ + Z_TRY_ADDREF_P(value); \ + zend_hash_next_index_insert(Z_ARRVAL_P(arr), value); \ + } while (0) #endif /* ZEPHIR_KERNEL_ARRAY_H */ - - - -#ifndef ZEPHIR_KERNEL_FCALL_EXT_H -#define ZEPHIR_KERNEL_FCALL_EXT_H - - - -#define ZEPHIR_FCALL_TYPE_UNKNOWN 0 -#define ZEPHIR_FCALL_TYPE_FUNC 1 -#define ZEPHIR_FCALL_TYPE_ZVAL_METHOD 2 -#define ZEPHIR_FCALL_TYPE_CLASS_PARENT_METHOD 3 -#define ZEPHIR_FCALL_TYPE_CLASS_SELF_METHOD 4 -#define ZEPHIR_FCALL_TYPE_CLASS_STATIC_METHOD 5 -#define ZEPHIR_FCALL_TYPE_CE_METHOD 6 - -typedef struct _zephir_fcall_info { - int type; - zend_class_entry *ce; - zval *object_ptr; - const char *class_name; - int class_length; - const char *func_name; - int func_length; -} zephir_fcall_info; - -static int zephir_call_function_opt(zend_fcall_info *fci, zend_fcall_info_cache *fci_cache, zephir_fcall_info *info, zval **params); -static int zephir_call_func_aparams_fast(zval *return_value_ptr, zephir_fcall_cache_entry **cache_entry, uint param_count, zval **params); - -#endif - - - - #ifndef ZEPHIR_KERNEL_STRING_H #define ZEPHIR_KERNEL_STRING_H @@ -2573,6 +2535,8 @@ static void zephir_append_printable_array(smart_str *implstr, const zval *value) static int zephir_hash_equals(const zval *known_zval, const zval *user_zval); +static void zephir_string_to_hex(zval *return_value, zval *var); + #endif /* ZEPHIR_KERNEL_STRING_H */ @@ -2607,15 +2571,7 @@ typedef enum _zephir_call_type { zephir_fcall_cache_entry **cache_entry_ = cache; \ zval *params_[] = {ZEPHIR_FETCH_VA_ARGS __VA_ARGS__}; \ ZEPHIR_OBSERVE_OR_NULLIFY_PPZV(return_value_ptr); \ - if (__builtin_constant_p(func_name)) { \ - if (cache_entry_ && *cache_entry_) { \ - ZEPHIR_LAST_CALL_STATUS = zephir_call_func_aparams_fast(return_value_ptr, cache, ZEPHIR_CALL_NUM_PARAMS(params_), ZEPHIR_PASS_CALL_PARAMS(params_)); \ - } else { \ - ZEPHIR_LAST_CALL_STATUS = zephir_call_func_aparams(return_value_ptr, func_name, sizeof(func_name)-1, cache, cache_slot, ZEPHIR_CALL_NUM_PARAMS(params_), ZEPHIR_PASS_CALL_PARAMS(params_)); \ - } \ - } else { \ - ZEPHIR_LAST_CALL_STATUS = zephir_call_func_aparams(return_value_ptr, func_name, strlen(func_name), cache, cache_slot, ZEPHIR_CALL_NUM_PARAMS(params_), ZEPHIR_PASS_CALL_PARAMS(params_)); \ - } \ + ZEPHIR_LAST_CALL_STATUS = zephir_call_func_aparams(return_value_ptr, func_name, strlen(func_name), cache, cache_slot, ZEPHIR_CALL_NUM_PARAMS(params_), ZEPHIR_PASS_CALL_PARAMS(params_)); \ } while (0) #define ZEPHIR_CALL_ZVAL_FUNCTION(return_value_ptr, func_name, cache, cache_slot, ...) \ @@ -2874,7 +2830,6 @@ typedef enum _zephir_call_type { static int zephir_call_func_aparams(zval *return_value_ptr, const char *func_name, uint func_length, zephir_fcall_cache_entry **cache_entry, int cache_slot, uint param_count, zval **params); -static int zephir_call_func_aparams_fast(zval *return_value_ptr, zephir_fcall_cache_entry **cache_entry, uint param_count, zval **params); static int zephir_call_zval_func_aparams(zval *return_value_ptr, zval *func_name, zephir_fcall_cache_entry **cache_entry, int cache_slot, @@ -2997,22 +2952,24 @@ ZEPHIR_ATTR_WARN_UNUSED_RESULT ZEPHIR_ATTR_NONNULL static inline int zephir_has_ } #define zephir_check_call_status() \ - do \ + do { \ if (ZEPHIR_LAST_CALL_STATUS == FAILURE) { \ ZEPHIR_MM_RESTORE(); \ return; \ - } \ - while(0) + } \ + } while(0) #define zephir_check_call_status_or_jump(label) \ - if (ZEPHIR_LAST_CALL_STATUS == FAILURE) { \ - if (EG(exception)) { \ - goto label; \ - } else { \ - ZEPHIR_MM_RESTORE(); \ - return; \ + do { \ + if (ZEPHIR_LAST_CALL_STATUS == FAILURE) { \ + if (EG(exception)) { \ + goto label; \ + } else { \ + ZEPHIR_MM_RESTORE(); \ + return; \ + } \ } \ - } + } while (0) #ifdef ZEPHIR_RELEASE #define ZEPHIR_TEMP_PARAM_COPY 0 @@ -3024,24 +2981,6 @@ ZEPHIR_ATTR_WARN_UNUSED_RESULT ZEPHIR_ATTR_NONNULL static inline int zephir_has_ static void zephir_eval_php(zval *str, zval *retval_ptr, char *context); -static inline void zephir_set_called_scope(zend_execute_data *ex, zend_class_entry *called_scope) -{ - while (ex) { - if (Z_TYPE(ex->This) == IS_OBJECT) { - Z_OBJCE(ex->This) = called_scope; - return; - } else if (Z_CE(ex->This)) { - Z_CE(ex->This) = called_scope; - return; - } else if (ex->func) { - if (ex->func->type != ZEND_INTERNAL_FUNCTION || ex->func->common.scope) { - return; - } - } - ex = ex->prev_execute_data; - } -} - #endif /* ZEPHIR_KERNEL_FCALL_H */ @@ -3085,9 +3024,9 @@ static int zephir_fclose(zval *stream_zval); static void zephir_file_get_contents(zval *return_value, zval *filename); static void zephir_file_put_contents(zval *return_value, zval *filename, zval *data); -static void zephir_basename(zval *return_value, zval *path TSRMLS_DC); +static void zephir_basename(zval *return_value, zval *path); static void zephir_filemtime(zval *return_value, zval *path); -static int zephir_compare_mtime(zval *filename1, zval *filename2 TSRMLS_DC); +static int zephir_compare_mtime(zval *filename1, zval *filename2); static void zephir_prepare_virtual_path(zval *return_value, zval *path, zval *virtual_separator); static void zephir_unique_path_key(zval *return_value, zval *path); @@ -3532,7 +3471,7 @@ long zephir_mt_rand(long min, long max); double zephir_ceil(zval *op1); static void zephir_round(zval *return_value, zval *op1, zval *op2, zval *op3); -double zephir_ldexp(zval *value, zval *expval TSRMLS_DC); +double zephir_ldexp(zval *value, zval *expval); #endif @@ -3548,6 +3487,8 @@ static void zephir_var_dump(zval *var); static void zephir_var_export(zval *var); static void zephir_var_export_ex(zval *return_value, zval *var); +static void zephir_get_defined_vars(zval *return_value); + #endif @@ -3630,7 +3571,7 @@ static void zephir_exit(zval *ptr); static int zephir_is_iterable_ex(zval *arr, int duplicate) { - if (unlikely(Z_TYPE_P(arr) != IS_ARRAY)) { + if (UNEXPECTED(Z_TYPE_P(arr) != IS_ARRAY)) { return 0; } //TODO: duplicate @@ -3688,7 +3629,7 @@ static int zephir_get_global(zval *arr, const char *global, unsigned int global_ ZVAL_UNDEF(arr); if (&EG(symbol_table)) { - if ((gv = zend_hash_find(&EG(symbol_table), str)) != NULL) { + if ((gv = zend_hash_find_ind(&EG(symbol_table), str)) != NULL) { ZVAL_DEREF(gv); if (Z_TYPE_P(gv) == IS_ARRAY) { ZVAL_COPY_VALUE(arr, gv); @@ -3699,9 +3640,7 @@ static int zephir_get_global(zval *arr, const char *global, unsigned int global_ } array_init(arr); - zend_hash_update(&EG(symbol_table), str, arr); - //zend_string_free(str); - + zend_string_free(str); return SUCCESS; } @@ -3764,7 +3703,7 @@ static int zephir_fast_count_ev(zval *value) #endif if (Z_OBJ_HT_P(value)->count_elements) { - Z_OBJ_HT(*value)->count_elements(value, &count TSRMLS_CC); + Z_OBJ_HT(*value)->count_elements(value, &count); return (int) count > 0; } @@ -3806,7 +3745,7 @@ static int zephir_fast_count_int(zval *value) #endif if (Z_OBJ_HT_P(value)->count_elements) { - Z_OBJ_HT(*value)->count_elements(value, &count TSRMLS_CC); + Z_OBJ_HT(*value)->count_elements(value, &count); return (int) count; } @@ -3926,6 +3865,7 @@ static void zephir_gettype(zval *return_value, zval *arg) break; } } + /* no break */ default: RETVAL_STRING("unknown type"); @@ -3949,7 +3889,7 @@ static int zephir_declare_class_constant(zend_class_entry *ce, const char *name, { #if PHP_VERSION_ID >= 70100 int ret; - + zend_string *key = zend_string_init(name, name_length, ce->type & ZEND_INTERNAL_CLASS); ret = zend_declare_class_constant_ex(ce, key, value, ZEND_ACC_PUBLIC, NULL); zend_string_release(key); @@ -4009,6 +3949,83 @@ static int zephir_declare_class_constant_string(zend_class_entry *ce, const char return zephir_declare_class_constant_stringl(ce, name, name_length, value, strlen(value)); } +static void zephir_get_args(zval *return_value) +{ + zend_execute_data *ex = EG(current_execute_data); + uint32_t arg_count = ZEND_CALL_NUM_ARGS(ex); + + array_init_size(return_value, arg_count); + if (arg_count) { + uint32_t first_extra_arg = ex->func->op_array.num_args; + zval *p = ZEND_CALL_ARG(ex, 1); + uint32_t i = 0; + + if (arg_count > first_extra_arg) { + while (i < first_extra_arg) { + zval *q = p; + + if (Z_TYPE_P(q) != IS_UNDEF) { + ZVAL_DEREF(q); + Z_TRY_ADDREF_P(q); + zend_hash_next_index_insert_new(Z_ARRVAL_P(return_value), q); + } + + ++p; + ++i; + } + + p = ZEND_CALL_VAR_NUM(ex, ex->func->op_array.last_var + ex->func->op_array.T); + } + + while (i < arg_count) { + zval *q = p; + + if (Z_TYPE_P(q) != IS_UNDEF) { + ZVAL_DEREF(q); + Z_TRY_ADDREF_P(q); + zend_hash_next_index_insert_new(Z_ARRVAL_P(return_value), q); + } + + ++p; + ++i; + } + } +} + +static void zephir_get_arg(zval *return_value, zend_long idx) +{ + zend_execute_data *ex = EG(current_execute_data); + uint32_t arg_count = ZEND_CALL_NUM_ARGS(ex); + zval *arg; + uint32_t first_extra_arg; + + if (UNEXPECTED(idx < 0)) { + zend_error(E_WARNING, "zephir_get_arg(): The argument number should be >= 0"); + RETURN_FALSE; + } + + if (UNEXPECTED((zend_ulong)idx >= arg_count)) { + zend_error(E_WARNING, "zephir_get_arg(): Argument " ZEND_LONG_FMT " not passed to function", idx); + RETURN_FALSE; + } + + first_extra_arg = ex->func->op_array.num_args; + if ((zend_ulong)idx >= first_extra_arg && (arg_count > first_extra_arg)) { + arg = ZEND_CALL_VAR_NUM(ex, ex->func->op_array.last_var + ex->func->op_array.T) + (idx - first_extra_arg); + } + else { + arg = ZEND_CALL_VAR_NUM(ex, idx); + } + + if (EXPECTED(!Z_ISUNDEF_P(arg))) { + ZVAL_DEREF(arg); + ZVAL_COPY(return_value, arg); + return; + } + + RETURN_NULL(); +} + @@ -4189,7 +4206,7 @@ static void zephir_memory_restore_stack_common(zend_zephir_globals_def *g) } #ifndef ZEPHIR_RELEASE -static int ZEPHIR_FASTCALL zephir_memory_restore_stack(const char *func TSRMLS_DC) +static int ZEPHIR_FASTCALL zephir_memory_restore_stack(const char *func) { zend_zephir_globals_def *zephir_globals_ptr = ZEPHIR_VGLOBAL; @@ -4215,7 +4232,7 @@ static void ZEPHIR_FASTCALL zephir_memory_grow_stack(const char *func) zephir_memory_entry *entry; zend_zephir_globals_def *g = ZEPHIR_VGLOBAL; if (g->start_memory == NULL) { - zephir_initialize_memory(g TSRMLS_CC); + zephir_initialize_memory(g); } entry = zephir_memory_grow_stack_common(g); entry->func = func; @@ -4326,7 +4343,7 @@ static void zephir_deinitialize_memory() zephir_globals_ptr->initialized = 0; } -static void zephir_create_symbol_table(TSRMLS_D) +static void zephir_create_symbol_table() { /*zephir_symbol_table *entry; zend_zephir_globals_def *zephir_globals_ptr = ZEPHIR_VGLOBAL; @@ -4353,7 +4370,7 @@ static void zephir_create_symbol_table(TSRMLS_D) ex->symbol_table = symbol_table;*/ } -static int zephir_set_symbol(zval *key_name, zval *value TSRMLS_DC) +static int zephir_set_symbol(zval *key_name, zval *value) { zend_array *symbol_table; @@ -4671,14 +4688,6 @@ static void zephir_throw_exception_format(zend_class_entry *ce, const char *form -#ifdef HAVE_CONFIG_H -#endif - - - - - - #ifdef HAVE_CONFIG_H #endif @@ -4847,7 +4856,7 @@ zend_class_entry *zephir_fetch_class_str_ex(const char *class_name, size_t lengt zend_class_entry *zephir_fetch_class(const zval *class_name) { if (Z_TYPE_P(class_name) == IS_STRING) { - return zend_fetch_class(Z_STR_P(class_name), ZEND_FETCH_CLASS_DEFAULT TSRMLS_CC); + return zend_fetch_class(Z_STR_P(class_name), ZEND_FETCH_CLASS_DEFAULT); } php_error_docref(NULL, E_WARNING, "class name must be a string"); @@ -5025,7 +5034,7 @@ static int zephir_interface_exists(const zval *class_name, int autoload) return 0; } - php_error_docref(NULL TSRMLS_CC, E_WARNING, "interface name must be a string"); + php_error_docref(NULL, E_WARNING, "interface name must be a string"); return 0; } @@ -5065,7 +5074,7 @@ static int zephir_clone(zval *destination, zval *obj) static int zephir_isset_property(zval *object, const char *property_name, unsigned int property_length) { if (Z_TYPE_P(object) == IS_OBJECT) { - if (likely(zend_hash_str_exists(&Z_OBJCE_P(object)->properties_info, property_name, property_length))) { + if (EXPECTED(zend_hash_str_exists(&Z_OBJCE_P(object)->properties_info, property_name, property_length))) { return 1; } return zend_hash_str_exists(Z_OBJ_HT_P(object)->get_properties(object), property_name, property_length); @@ -5079,7 +5088,7 @@ static int zephir_isset_property_zval(zval *object, const zval *property) if (Z_TYPE_P(object) == IS_OBJECT) { if (Z_TYPE_P(property) == IS_STRING) { - if (likely(zend_hash_str_exists(&Z_OBJCE_P(object)->properties_info, Z_STRVAL_P(property), Z_STRLEN_P(property)))) { + if (EXPECTED(zend_hash_str_exists(&Z_OBJCE_P(object)->properties_info, Z_STRVAL_P(property), Z_STRLEN_P(property)))) { return 1; } else { return zend_hash_str_exists(Z_OBJ_HT_P(object)->get_properties(object), Z_STRVAL_P(property), Z_STRLEN_P(property)); @@ -5125,9 +5134,6 @@ static int zephir_read_property(zval *result, zval *object, const char *property } ce = Z_OBJCE_P(object); - if (ce->parent) { - ce = zephir_lookup_class_ce(ce, property_name, property_length); - } #if PHP_VERSION_ID >= 70100 old_scope = EG(fake_scope); @@ -5135,6 +5141,9 @@ static int zephir_read_property(zval *result, zval *object, const char *property #else old_scope = EG(scope); EG(scope) = ce; + if (ce->parent) { + ce = zephir_lookup_class_ce(ce, property_name, property_length); + } #endif if (!Z_OBJ_HT_P(object)->read_property) { @@ -5177,7 +5186,7 @@ static int zephir_fetch_property(zval *result, zval *object, const char *propert static int zephir_fetch_property_zval(zval *result, zval *object, zval *property, int silent) { - if (unlikely(Z_TYPE_P(property) != IS_STRING)) { + if (UNEXPECTED(Z_TYPE_P(property) != IS_STRING)) { ZVAL_NULL(result); return 0; } @@ -5200,7 +5209,7 @@ static int zephir_return_property(zval *return_value, zval *object, char *proper static int zephir_read_property_zval(zval *result, zval *object, zval *property, int flags) { - if (unlikely(Z_TYPE_P(property) != IS_STRING)) { + if (UNEXPECTED(Z_TYPE_P(property) != IS_STRING)) { if ((flags & PH_NOISY) == PH_NOISY) { php_error_docref(NULL, E_NOTICE, "Cannot access empty property %d", Z_TYPE_P(property)); } @@ -5505,7 +5514,7 @@ static int zephir_method_exists_ex(const zval *object, const char *method_name, { zend_class_entry *ce; - if (likely(Z_TYPE_P(object) == IS_OBJECT)) { + if (EXPECTED(Z_TYPE_P(object) == IS_OBJECT)) { ce = Z_OBJCE_P(object); } else { if (Z_TYPE_P(object) == IS_STRING) { @@ -5800,18 +5809,18 @@ static int zephir_create_instance(zval *return_value, const zval *class_name) return SUCCESS; } -static int zephir_create_instance_params(zval *return_value, const zval *class_name, const zval *params TSRMLS_DC) +static int zephir_create_instance_params(zval *return_value, const zval *class_name, const zval *params) { int outcome; zend_class_entry *ce; if (Z_TYPE_P(class_name) != IS_STRING) { - zephir_throw_exception_string(spl_ce_RuntimeException, SL("Invalid class name") TSRMLS_CC); + zephir_throw_exception_string(spl_ce_RuntimeException, SL("Invalid class name")); return FAILURE; } if (Z_TYPE_P(params) != IS_ARRAY) { - zephir_throw_exception_string(spl_ce_RuntimeException, SL("Instantiation parameters must be an array") TSRMLS_CC); + zephir_throw_exception_string(spl_ce_RuntimeException, SL("Instantiation parameters must be an array")); return FAILURE; } @@ -5834,7 +5843,7 @@ static int zephir_create_instance_params(zval *return_value, const zval *class_n zval *item; int i = 0; - if (likely(param_count) <= 10) { + if (EXPECTED(param_count <= 10)) { params_ptr = static_params; } else { params_arr = emalloc(param_count * sizeof(zval*)); @@ -5851,7 +5860,7 @@ static int zephir_create_instance_params(zval *return_value, const zval *class_n outcome = zephir_call_class_method_aparams(NULL, ce, zephir_fcall_method, return_value, SL("__construct"), NULL, 0, param_count, params_ptr); - if (unlikely(params_arr != NULL)) { + if (UNEXPECTED(params_arr != NULL)) { efree(params_arr); } } @@ -5944,7 +5953,7 @@ static int zephir_array_isset_string_fetch(zval *fetched, zval *arr, char *index { zval *zv; - if (likely(Z_TYPE_P(arr) == IS_ARRAY)) { + if (EXPECTED(Z_TYPE_P(arr) == IS_ARRAY)) { if ((zv = zend_hash_str_find(Z_ARRVAL_P(arr), index, index_length)) != NULL) { if (!readonly) { ZVAL_COPY(fetched, zv); @@ -5964,7 +5973,7 @@ static int zephir_array_isset_long_fetch(zval *fetched, zval *arr, unsigned long { zval *zv; - if (likely(Z_TYPE_P(arr) == IS_ARRAY)) { + if (EXPECTED(Z_TYPE_P(arr) == IS_ARRAY)) { if ((zv = zend_hash_index_find(Z_ARRVAL_P(arr), index)) != NULL) { if (!readonly) { ZVAL_COPY(fetched, zv); @@ -6015,7 +6024,7 @@ static int ZEPHIR_FASTCALL zephir_array_isset(const zval *arr, zval *index) static int ZEPHIR_FASTCALL zephir_array_isset_string(const zval *arr, const char *index, uint index_length) { - if (likely(Z_TYPE_P(arr) == IS_ARRAY)) { + if (EXPECTED(Z_TYPE_P(arr) == IS_ARRAY)) { return zend_hash_str_exists(Z_ARRVAL_P(arr), index, index_length); } @@ -6024,7 +6033,7 @@ static int ZEPHIR_FASTCALL zephir_array_isset_string(const zval *arr, const char static int ZEPHIR_FASTCALL zephir_array_isset_long(const zval *arr, unsigned long index) { - if (likely(Z_TYPE_P(arr) == IS_ARRAY)) { + if (EXPECTED(Z_TYPE_P(arr) == IS_ARRAY)) { return zend_hash_index_exists(Z_ARRVAL_P(arr), index); } @@ -6188,7 +6197,7 @@ static int zephir_array_fetch_string(zval *return_value, zval *arr, const char * { zval *zv; - if (likely(Z_TYPE_P(arr) == IS_ARRAY)) { + if (EXPECTED(Z_TYPE_P(arr) == IS_ARRAY)) { if ((zv = zend_hash_str_find(Z_ARRVAL_P(arr), index, index_length)) != NULL) { if ((flags & PH_READONLY) == PH_READONLY) { @@ -6220,7 +6229,7 @@ static int zephir_array_fetch_long(zval *return_value, zval *arr, unsigned long { zval *zv; - if (likely(Z_TYPE_P(arr) == IS_ARRAY)) { + if (EXPECTED(Z_TYPE_P(arr) == IS_ARRAY)) { if ((zv = zend_hash_index_find(Z_ARRVAL_P(arr), index)) != NULL) { if ((flags & PH_READONLY) == PH_READONLY) { @@ -6393,7 +6402,7 @@ static void zephir_array_keys(zval *return_value, zval *input) zend_ulong num_idx; zend_string *str_idx; - if (likely(Z_TYPE_P(input) == IS_ARRAY)) { + if (EXPECTED(Z_TYPE_P(input) == IS_ARRAY)) { array_init_size(return_value, zend_hash_num_elements(Z_ARRVAL_P(input))); zend_hash_real_init(Z_ARRVAL_P(return_value), 1); ZEND_HASH_FILL_PACKED(Z_ARRVAL_P(return_value)) { @@ -6698,1306 +6707,6 @@ static void zephir_fast_array_merge(zval *return_value, zval *array1, zval *arra - - - - - - - -static int zephir_call_func_aparams_fast(zval *return_value_ptr, zephir_fcall_cache_entry **cache_entry, zend_uint param_count, zval *params[]) -{ - uint32_t i; - zend_class_entry *calling_scope = NULL; - zend_execute_data *call, dummy_execute_data; - zval retval_local; - zval *retval_ptr = return_value_ptr ? return_value_ptr : &retval_local; - zend_class_entry *orig_scope; - zend_function *func; - - if (return_value_ptr) { - zval_ptr_dtor(return_value_ptr); - ZVAL_UNDEF(return_value_ptr); - } else { - ZVAL_UNDEF(&retval_local); - } - - if (!EG(active)) { - return FAILURE; /* executor is already inactive */ - } - - if (EG(exception)) { - return FAILURE; /* we would result in an instable executor otherwise */ - } - -#if PHP_VERSION_ID >= 70100 - //orig_scope = EG(fake_scope); -#else - orig_scope = EG(scope); -#endif - - /* Initialize execute_data */ - if (!EG(current_execute_data)) { - /* This only happens when we're called outside any execute()'s - * It shouldn't be strictly necessary to NULL execute_data out, - * but it may make bugs easier to spot - */ - memset(&dummy_execute_data, 0, sizeof(zend_execute_data)); - EG(current_execute_data) = &dummy_execute_data; - } else if (EG(current_execute_data)->func && - ZEND_USER_CODE(EG(current_execute_data)->func->common.type) && - EG(current_execute_data)->opline->opcode != ZEND_DO_FCALL && - EG(current_execute_data)->opline->opcode != ZEND_DO_ICALL && - EG(current_execute_data)->opline->opcode != ZEND_DO_UCALL && - EG(current_execute_data)->opline->opcode != ZEND_DO_FCALL_BY_NAME) { - /* Insert fake frame in case of include or magic calls */ - dummy_execute_data = *EG(current_execute_data); - dummy_execute_data.prev_execute_data = EG(current_execute_data); - dummy_execute_data.call = NULL; - dummy_execute_data.opline = NULL; - dummy_execute_data.func = NULL; - EG(current_execute_data) = &dummy_execute_data; - } - -#ifndef ZEPHIR_RELEASE - func = (*cache_entry)->f; - ++(*cache_entry)->times; -#else - func = *cache_entry; -#endif - - calling_scope = NULL; - call = zend_vm_stack_push_call_frame(ZEND_CALL_TOP_FUNCTION, func, param_count, NULL, NULL); - - for (i = 0; i < param_count; i++) { - zval *param; - zval *arg = params[i]; - - if (ARG_SHOULD_BE_SENT_BY_REF(func, i + 1)) { - if (!Z_ISREF_P(arg)) { - /*if (!ARG_MAY_BE_SENT_BY_REF(func, i + 1)) { - if (i) { - // hack to clean up the stack - ZEND_CALL_NUM_ARGS(call) = i; - zend_vm_stack_free_args(call); - } - zend_vm_stack_free_call_frame(call); - - zend_error(E_WARNING, "Parameter %d to %s%s%s() expected to be a reference, value given", - i+1, - func->common.scope ? ZSTR_VAL(func->common.scope->name) : "", - func->common.scope ? "::" : "", - ZSTR_VAL(func->common.function_name)); - if (EG(current_execute_data) == &dummy_execute_data) { - EG(current_execute_data) = dummy_execute_data.prev_execute_data; - } - return FAILURE; - }*/ - - ZVAL_NEW_REF(arg, arg); - } - Z_ADDREF_P(arg); - } else { - if (Z_ISREF_P(arg) && - !(func->common.fn_flags & ZEND_ACC_CALL_VIA_TRAMPOLINE)) { - /* don't separate references for __call */ - arg = Z_REFVAL_P(arg); - } - if (Z_OPT_REFCOUNTED_P(arg)) { - Z_ADDREF_P(arg); - } - } - param = ZEND_CALL_ARG(call, i+1); - ZVAL_COPY_VALUE(param, arg); - } - -#if PHP_VERSION_ID >= 70100 - //EG(fake_scope)= calling_scope; - - if (UNEXPECTED(func->op_array.fn_flags & ZEND_ACC_CLOSURE)) { - ZEND_ASSERT(GC_TYPE((zend_object*)func->op_array.prototype) == IS_OBJECT); - GC_REFCOUNT((zend_object*)func->op_array.prototype)++; - ZEND_ADD_CALL_FLAG(call, ZEND_CALL_CLOSURE); - } - - ZVAL_NULL(retval_ptr); -#else - EG(scope) = calling_scope; - - Z_OBJ(call->This) = NULL; -#endif - - if (func->type == ZEND_USER_FUNCTION) { - int call_via_handler = (func->common.fn_flags & ZEND_ACC_CALL_VIA_TRAMPOLINE) != 0; -#if PHP_VERSION_ID >= 70100 - //EG(fake_scope)= func->common.scope; -#else - EG(scope) = func->common.scope; -#endif - call->symbol_table = NULL; - -#if PHP_VERSION_ID >= 70100 - zend_init_execute_data(call, &func->op_array, retval_ptr); - zend_execute_ex(call); -#else - if (UNEXPECTED(func->op_array.fn_flags & ZEND_ACC_CLOSURE)) { - ZEND_ASSERT(GC_TYPE((zend_object*)func->op_array.prototype) == IS_OBJECT); - GC_REFCOUNT((zend_object*)func->op_array.prototype)++; - ZEND_ADD_CALL_FLAG(call, ZEND_CALL_CLOSURE); - } - - if (EXPECTED((func->op_array.fn_flags & ZEND_ACC_GENERATOR) == 0)) { - zend_init_execute_data(call, &func->op_array, retval_ptr); - zend_execute_ex(call); - } else { - zend_generator_create_zval(call, &func->op_array, retval_ptr); - } -#endif - if (call_via_handler) { - /* We must re-initialize function again */ - *cache_entry = NULL; - } - } else if (func->type == ZEND_INTERNAL_FUNCTION) { - int call_via_handler = (func->common.fn_flags & ZEND_ACC_CALL_VIA_TRAMPOLINE) != 0; - if (func->common.scope) { -#if PHP_VERSION_ID >= 70100 - ZVAL_NULL(retval_ptr); - //EG(fake_scope)= func->common.scope; -#else - EG(scope) = func->common.scope; -#endif - } - call->prev_execute_data = EG(current_execute_data); - call->return_value = NULL; /* this is not a constructor call */ - EG(current_execute_data) = call; - if (EXPECTED(zend_execute_internal == NULL)) { - /* saves one function call if zend_execute_internal is not used */ - func->internal_function.handler(call, retval_ptr); - } else { - zend_execute_internal(call, retval_ptr); - } - EG(current_execute_data) = call->prev_execute_data; - zend_vm_stack_free_args(call); - - /* We shouldn't fix bad extensions here, - because it can break proper ones (Bug #34045) - if (!EX(function_state).function->common.return_reference) - { - INIT_PZVAL(f->retval); - }*/ - if (EG(exception)) { - zval_ptr_dtor(retval_ptr); - ZVAL_UNDEF(retval_ptr); - } - - if (call_via_handler) { - /* We must re-initialize function again */ - *cache_entry = NULL; - } - } else { /* ZEND_OVERLOADED_FUNCTION */ -#if PHP_VERSION_ID < 70100 - ZVAL_NULL(retval_ptr); -#endif - zend_throw_error(NULL, "Cannot call overloaded function for non-object"); - zend_vm_stack_free_args(call); - - if (func->type == ZEND_OVERLOADED_FUNCTION_TEMPORARY) { - zend_string_release(func->common.function_name); - } - efree(func); - - if (EG(exception)) { - zval_ptr_dtor(retval_ptr); - ZVAL_UNDEF(retval_ptr); - } - } - -#if PHP_VERSION_ID >= 70100 - //EG(fake_scope)= orig_scope; -#else - EG(scope) = orig_scope; -#endif - zend_vm_stack_free_call_frame(call); - - if (EG(current_execute_data) == &dummy_execute_data) { - EG(current_execute_data) = dummy_execute_data.prev_execute_data; - } - - if (EG(exception)) { - zend_throw_exception_internal(NULL); - } - return SUCCESS; -} - -static int zephir_is_callable_check_class(const char *name, int name_len, zend_fcall_info_cache *fcc, int *strict_class, char **error) /* {{{ */ -{ - int ret = 0; - zend_class_entry *pce; - zend_class_entry *scope, *called_scope; - char *lcname = zend_str_tolower_dup(name, name_len); -#if PHP_VERSION_ID >= 70100 - scope = EG(fake_scope); - called_scope = zend_get_called_scope(EG(current_execute_data)); -#else - scope = EG(scope); - called_scope = EG(current_execute_data)->called_scope; -#endif - *strict_class = 0; - if (name_len == sizeof("self") - 1 && - !memcmp(lcname, "self", sizeof("self") - 1)) { - if (!scope) { - if (error) *error = estrdup("cannot access self:: when no class scope is active"); - } else { - fcc->called_scope = called_scope; - if (!fcc->object) { - fcc->object = Z_OBJ(EG(current_execute_data)->This); - } - ret = 1; - } - } else if (name_len == sizeof("parent") - 1 && - !memcmp(lcname, "parent", sizeof("parent") - 1)) { - if (!scope) { - if (error) *error = estrdup("cannot access parent:: when no class scope is active"); - } else if (!scope->parent) { - if (error) *error = estrdup("cannot access parent:: when current class scope has no parent"); - } else { - fcc->called_scope = called_scope; - if (!fcc->object) { - fcc->object = Z_OBJ(EG(current_execute_data)->This); - } - *strict_class = 1; - ret = 1; - } - } else if (name_len == sizeof("static") - 1 && - !memcmp(lcname, "static", sizeof("static") - 1)) { - if (!called_scope) { - if (error) *error = estrdup("cannot access static:: when no class scope is active"); - } else { - fcc->called_scope = called_scope; - if (!fcc->object) { - fcc->object = Z_OBJ(EG(current_execute_data)->This); - } - *strict_class = 1; - ret = 1; - } - } else { - zend_string *class_name; - class_name = zend_string_init(name, name_len, 0); - if ((pce = zend_lookup_class_ex(class_name, NULL, 1)) != NULL) { - scope = EG(current_execute_data) ? EG(current_execute_data)->func->common.scope : NULL; - fcc->calling_scope = pce; - if (scope && !fcc->object && EG(current_execute_data) && Z_OBJ(EG(current_execute_data)->This) && - instanceof_function(Z_OBJCE(EG(current_execute_data)->This), scope TSRMLS_CC) && - instanceof_function(scope, fcc->calling_scope TSRMLS_CC)) { - fcc->object = Z_OBJ(EG(current_execute_data)->This); - fcc->called_scope = fcc->object->ce; - } else { - fcc->called_scope = fcc->object ? fcc->object->ce : fcc->calling_scope; - } - *strict_class = 1; - ret = 1; - } else { - if (error) zephir_spprintf(error, 0, "class '%.*s' not found", name_len, name); - } - zend_string_free(class_name); - } - efree(lcname); - return ret; -} - -static int zephir_is_callable_check_func(int check_flags, zval *callable, zend_fcall_info_cache *fcc, int strict_class, char **error TSRMLS_DC) /* {{{ */ -{ - zend_class_entry *ce_org = fcc->calling_scope; - int retval = 0; - char *mname, *lmname; - zend_string *zs_mname; - const char *colon; - int clen, mlen; - zend_class_entry *last_scope; - HashTable *ftable; - int call_via_handler = 0; - - if (error) { - *error = NULL; - } - - fcc->calling_scope = NULL; - fcc->function_handler = NULL; - - if (!ce_org) { - /* Skip leading \ */ - if (Z_STRVAL_P(callable)[0] == '\\') { - mlen = Z_STRLEN_P(callable) - 1; - lmname = zend_str_tolower_dup(Z_STRVAL_P(callable) + 1, mlen); - } else { - mlen = Z_STRLEN_P(callable); - lmname = zend_str_tolower_dup(Z_STRVAL_P(callable), mlen); - } - /* Check if function with given name exists. - * This may be a compound name that includes namespace name */ - if (EXPECTED((fcc->function_handler = zend_hash_str_find_ptr(EG(function_table), lmname, mlen)) != NULL)) { - efree(lmname); - return 1; - } - efree(lmname); - } - - /* Split name into class/namespace and method/function names */ - if ((colon = zend_memrchr(Z_STRVAL_P(callable), ':', Z_STRLEN_P(callable))) != NULL && - colon > Z_STRVAL_P(callable) && - *(colon-1) == ':' - ) { - colon--; - clen = colon - Z_STRVAL_P(callable); - mlen = Z_STRLEN_P(callable) - clen - 2; - - if (colon == Z_STRVAL_P(callable)) { - if (error) zephir_spprintf(error, 0, "invalid function name"); - return 0; - } - - /* This is a compound name. - * Try to fetch class and then find static method. */ -#if PHP_VERSION_ID >= 70100 - last_scope = EG(fake_scope); - if (ce_org) { - EG(fake_scope) = ce_org; - } - - if (!zephir_is_callable_check_class(Z_STRVAL_P(callable), clen, fcc, &strict_class, error TSRMLS_CC)) { - EG(fake_scope) = last_scope; - return 0; - } - EG(fake_scope) = last_scope; -#else - last_scope = EG(scope); - if (ce_org) { - EG(scope) = ce_org; - } - - if (!zephir_is_callable_check_class(Z_STRVAL_P(callable), clen, fcc, &strict_class, error TSRMLS_CC)) { - EG(scope) = last_scope; - return 0; - } - EG(scope) = last_scope; -#endif - - ftable = &fcc->calling_scope->function_table; - if (ce_org && !instanceof_function(ce_org, fcc->calling_scope TSRMLS_CC)) { - if (error) zephir_spprintf(error, 0, "class '%s' is not a subclass of '%s'", ce_org->name, fcc->calling_scope->name); - return 0; - } - mname = Z_STRVAL_P(callable) + clen + 2; - } else if (ce_org) { - /* Try to fetch find static method of given class. */ - mlen = Z_STRLEN_P(callable); - mname = Z_STRVAL_P(callable); - ftable = &ce_org->function_table; - fcc->calling_scope = ce_org; - } else { - /* We already checked for plain function before. */ - if (error && !(check_flags & IS_CALLABLE_CHECK_SILENT)) { - zephir_spprintf(error, 0, "function '%s' not found or invalid function name", Z_STRVAL_P(callable)); - } - return 0; - } - - zs_mname = zend_string_init(mname, mlen, 0); - lmname = zend_str_tolower_dup(mname, mlen); - if (strict_class && - fcc->calling_scope && - mlen == sizeof(ZEND_CONSTRUCTOR_FUNC_NAME)-1 && - !memcmp(lmname, ZEND_CONSTRUCTOR_FUNC_NAME, sizeof(ZEND_CONSTRUCTOR_FUNC_NAME) - 1)) { - fcc->function_handler = fcc->calling_scope->constructor; - if (fcc->function_handler) { - retval = 1; - } - } else if ((fcc->function_handler = zend_hash_str_find_ptr(ftable, lmname, mlen)) != NULL) { - retval = 1; -#if PHP_VERSION_ID >= 70100 - last_scope = EG(fake_scope); -#else - last_scope = EG(scope); -#endif - if ((fcc->function_handler->op_array.fn_flags & ZEND_ACC_CHANGED) && - !strict_class && last_scope && - instanceof_function(fcc->function_handler->common.scope, last_scope TSRMLS_CC)) { - zend_function *priv_fbc; - - if ((priv_fbc = zend_hash_str_find_ptr(&last_scope->function_table, lmname, mlen)) != NULL - && priv_fbc->common.fn_flags & ZEND_ACC_PRIVATE - && priv_fbc->common.scope == last_scope) { - fcc->function_handler = priv_fbc; - } - } - } else { - if (fcc->object && fcc->calling_scope == ce_org) { - if (strict_class && ce_org->__call) { - fcc->function_handler = zend_get_call_trampoline_func(ce_org, zs_mname, 0); - call_via_handler = 1; - retval = 1; - } else if (fcc->object->handlers->get_method) { - fcc->function_handler = fcc->object->handlers->get_method(&fcc->object, zs_mname, NULL); - if (fcc->function_handler) { - if (strict_class && - (!fcc->function_handler->common.scope || - !instanceof_function(ce_org, fcc->function_handler->common.scope TSRMLS_CC))) { - if ((fcc->function_handler->common.fn_flags & ZEND_ACC_CALL_VIA_HANDLER) != 0) { - if (fcc->function_handler->type != ZEND_OVERLOADED_FUNCTION) { - zend_string_release(fcc->function_handler->common.function_name); - } - zend_free_trampoline(fcc->function_handler); - } - } else { - retval = 1; - call_via_handler = (fcc->function_handler->common.fn_flags & ZEND_ACC_CALL_VIA_HANDLER) != 0; - } - } - } - } else if (fcc->calling_scope) { - if (fcc->calling_scope->get_static_method) { - fcc->function_handler = fcc->calling_scope->get_static_method(fcc->calling_scope, zs_mname); - } else { - fcc->function_handler = zend_std_get_static_method(fcc->calling_scope, zs_mname, NULL); - } - if (fcc->function_handler) { - retval = 1; - call_via_handler = (fcc->function_handler->common.fn_flags & ZEND_ACC_CALL_VIA_HANDLER) != 0; - if (call_via_handler && !fcc->object && EG(current_execute_data) && Z_OBJ(EG(current_execute_data)->This) && - instanceof_function(Z_OBJCE(EG(current_execute_data)->This), fcc->calling_scope)) { - fcc->object = Z_OBJ(EG(current_execute_data)->This); - } - } - } - } - - if (retval) { - if (fcc->calling_scope && !call_via_handler) { - if (!fcc->object && (fcc->function_handler->common.fn_flags & ZEND_ACC_ABSTRACT)) { - if (error) { - zephir_spprintf(error, 0, "cannot call abstract method %s::%s()", fcc->calling_scope->name, fcc->function_handler->common.function_name); - retval = 0; - } else { - zend_error(E_ERROR, "Cannot call abstract method %s::%s()", fcc->calling_scope->name, fcc->function_handler->common.function_name); - } - } else if (!fcc->object && !(fcc->function_handler->common.fn_flags & ZEND_ACC_STATIC)) { - int severity; - char *verb; - if (fcc->function_handler->common.fn_flags & ZEND_ACC_ALLOW_STATIC) { - severity = E_STRICT; - verb = "should not"; - } else { - /* An internal function assumes $this is present and won't check that. So PHP would crash by allowing the call. */ - severity = E_ERROR; - verb = "cannot"; - } - if ((check_flags & IS_CALLABLE_CHECK_IS_STATIC) != 0) { - retval = 0; - } - - if (error) { - zephir_spprintf(error, 0, "non-static method %s::%s() %s be called statically", fcc->calling_scope->name, fcc->function_handler->common.function_name, verb); - if (severity == E_ERROR) { - retval = 0; - } - } else if (retval) { - zend_error(severity, "Non-static method %s::%s() %s be called statically", fcc->calling_scope->name, fcc->function_handler->common.function_name, verb); - } - } - } - } else if (error && !(check_flags & IS_CALLABLE_CHECK_SILENT)) { - if (fcc->calling_scope) { - if (error) zephir_spprintf(error, 0, "class '%s' does not have a method '%s'", fcc->calling_scope->name, mname); - } else { - if (error) zephir_spprintf(error, 0, "function '%s' does not exist", mname); - } - } - efree(lmname); - - zend_string_free(zs_mname); - if (fcc->object) { - fcc->called_scope = fcc->object->ce; - } - if (retval) { - fcc->initialized = 1; - } - return retval; -} - -static zend_bool zephir_is_callable_ex(zval *callable, zend_object *object, uint check_flags, char **callable_name, int *callable_name_len, zend_fcall_info_cache *fcc, char **error) /* {{{ */ -{ - zend_bool ret; - int callable_name_len_local; - zend_fcall_info_cache fcc_local; - - if (callable_name) { - *callable_name = NULL; - } - if (callable_name_len == NULL) { - callable_name_len = &callable_name_len_local; - } - if (fcc == NULL) { - fcc = &fcc_local; - } - if (error) { - *error = NULL; - } - - fcc->initialized = 0; - fcc->calling_scope = NULL; - fcc->called_scope = NULL; - fcc->function_handler = NULL; - fcc->object = NULL; - - if (object && - (!EG(objects_store).object_buckets || - !IS_OBJ_VALID(EG(objects_store).object_buckets[object->handle]))) { - return 0; - } - - switch (Z_TYPE_P(callable)) { - - case IS_STRING: - if (object) { - fcc->object = object; - fcc->calling_scope = object->ce; - if (callable_name) { - char *ptr; - - *callable_name_len = fcc->calling_scope->name->len + Z_STRLEN_P(callable) + sizeof("::") - 1; - ptr = *callable_name = emalloc(*callable_name_len + 1); - memcpy(ptr, fcc->calling_scope->name->val, fcc->calling_scope->name->len); - ptr += fcc->calling_scope->name->len; - memcpy(ptr, "::", sizeof("::") - 1); - ptr += sizeof("::") - 1; - memcpy(ptr, Z_STRVAL_P(callable), Z_STRLEN_P(callable) + 1); - } - } else if (callable_name) { - *callable_name = estrndup(Z_STRVAL_P(callable), Z_STRLEN_P(callable)); - *callable_name_len = Z_STRLEN_P(callable); - } - if (check_flags & IS_CALLABLE_CHECK_SYNTAX_ONLY) { - fcc->called_scope = fcc->calling_scope; - return 1; - } - - ret = zephir_is_callable_check_func(check_flags, callable, fcc, 0, error); - if (fcc == &fcc_local && - fcc->function_handler && - ((fcc->function_handler->type == ZEND_INTERNAL_FUNCTION && - (fcc->function_handler->common.fn_flags & ZEND_ACC_CALL_VIA_HANDLER)) || - fcc->function_handler->type == ZEND_OVERLOADED_FUNCTION_TEMPORARY || - fcc->function_handler->type == ZEND_OVERLOADED_FUNCTION)) { - if (fcc->function_handler->type != ZEND_OVERLOADED_FUNCTION) { - zend_string_release(fcc->function_handler->common.function_name); - } - zend_free_trampoline(fcc->function_handler); - } - return ret; - - case IS_ARRAY: - { - zval *method = NULL; - zval *obj = NULL; - int strict_class = 0; - if (zend_hash_num_elements(Z_ARRVAL_P(callable)) == 2) { - obj = zend_hash_index_find(Z_ARRVAL_P(callable), 0); - method = zend_hash_index_find(Z_ARRVAL_P(callable), 1); - } - - do { - if (obj == NULL || method == NULL) { - break; - } - ZVAL_DEREF(method); - if (Z_TYPE_P(method) != IS_STRING) { - break; - } - - ZVAL_DEREF(obj); - if (Z_TYPE_P(obj) == IS_STRING) { - if (callable_name) { - char *ptr; - - *callable_name_len = Z_STRLEN_P(obj) + Z_STRLEN_P(method) + sizeof("::") - 1; - ptr = *callable_name = emalloc(*callable_name_len + 1); - memcpy(ptr, Z_STRVAL_P(obj), Z_STRLEN_P(obj)); - ptr += Z_STRLEN_P(obj); - memcpy(ptr, "::", sizeof("::") - 1); - ptr += sizeof("::") - 1; - memcpy(ptr, Z_STRVAL_P(method), Z_STRLEN_P(method) + 1); - } - - if (check_flags & IS_CALLABLE_CHECK_SYNTAX_ONLY) { - return 1; - } - - if (!zephir_is_callable_check_class(Z_STRVAL_P(obj), Z_STRLEN_P(obj), fcc, &strict_class, error)) { - return 0; - } - - } else { - if (!EG(objects_store).object_buckets || - !IS_OBJ_VALID(EG(objects_store).object_buckets[Z_OBJ_HANDLE_P(obj)])) { - return 0; - } - fcc->calling_scope = Z_OBJCE_P(obj); /* TBFixed: what if it's overloaded? */ - fcc->object = Z_OBJ_P(obj); - - if (callable_name) { - char *ptr; - - *callable_name_len = fcc->calling_scope->name->len + Z_STRLEN_P(method) + sizeof("::") - 1; - ptr = *callable_name = emalloc(*callable_name_len + 1); - memcpy(ptr, fcc->calling_scope->name->val, fcc->calling_scope->name->len); - ptr += fcc->calling_scope->name->len; - memcpy(ptr, "::", sizeof("::") - 1); - ptr += sizeof("::") - 1; - memcpy(ptr, Z_STRVAL_P(method), Z_STRLEN_P(method) + 1); - } - - if (check_flags & IS_CALLABLE_CHECK_SYNTAX_ONLY) { - fcc->called_scope = fcc->calling_scope; - return 1; - } - } - - ret = zephir_is_callable_check_func(check_flags, method, fcc, strict_class, error); - if (fcc == &fcc_local && - fcc->function_handler && - ((fcc->function_handler->type == ZEND_INTERNAL_FUNCTION && - (fcc->function_handler->common.fn_flags & ZEND_ACC_CALL_VIA_HANDLER)) || - fcc->function_handler->type == ZEND_OVERLOADED_FUNCTION_TEMPORARY || - fcc->function_handler->type == ZEND_OVERLOADED_FUNCTION)) { - if (fcc->function_handler->type != ZEND_OVERLOADED_FUNCTION) { - zend_string_release(fcc->function_handler->common.function_name); - } - zend_free_trampoline(fcc->function_handler); - } - return ret; - - } while (0); - if (zend_hash_num_elements(Z_ARRVAL_P(callable)) == 2) { - if (!obj || (!Z_ISREF_P(obj)? - (Z_TYPE_P(obj) != IS_STRING && Z_TYPE_P(obj) != IS_OBJECT) : - (Z_TYPE_P(Z_REFVAL_P(obj)) != IS_STRING && Z_TYPE_P(Z_REFVAL_P(obj)) != IS_OBJECT))) { - if (error) zephir_spprintf(error, 0, "first array member is not a valid class name or object"); - } else { - if (error) zephir_spprintf(error, 0, "second array member is not a valid method"); - } - } else { - if (error) zephir_spprintf(error, 0, "array must have exactly two members"); - } - if (callable_name) { - *callable_name = estrndup("Array", sizeof("Array")-1); - *callable_name_len = sizeof("Array") - 1; - } - } - return 0; - - case IS_OBJECT: - if (Z_OBJ_HANDLER_P(callable, get_closure) && Z_OBJ_HANDLER_P(callable, get_closure)(callable, &fcc->calling_scope, &fcc->function_handler, &fcc->object) == SUCCESS) { - fcc->called_scope = fcc->calling_scope; - if (callable_name) { - zend_class_entry *ce = Z_OBJCE_P(callable); /* TBFixed: what if it's overloaded? */ - - *callable_name_len = ce->name->len + sizeof("::__invoke") - 1; - *callable_name = emalloc(*callable_name_len + 1); - memcpy(*callable_name, ce->name->val, ce->name->len); - memcpy((*callable_name) + ce->name->len, "::__invoke", sizeof("::__invoke")); - } - return 1; - } - /* break missing intentionally */ - - default: - if (callable_name) { - zval expr_copy; - int use_copy = zend_make_printable_zval(callable, &expr_copy); - - *callable_name = estrndup(Z_STRVAL(expr_copy), Z_STRLEN(expr_copy)); - *callable_name_len = Z_STRLEN(expr_copy); - if (use_copy) { - zval_dtor(&expr_copy); - } - } - if (error) zephir_spprintf(error, 0, "no array or string given"); - return 0; - } -} - -static zend_bool zephir_is_info_dynamic_callable(zephir_fcall_info *info, zend_fcall_info_cache *fcc, zend_class_entry *ce_org, int strict_class) -{ - int call_via_handler = 0, retval = 0; - zend_string *zs_lcname = zend_string_alloc(info->func_length, 0); - zend_str_tolower_copy(ZSTR_VAL(zs_lcname), info->func_name, info->func_length); - - if (fcc->object && fcc->calling_scope == ce_org) { - if (strict_class && ce_org->__call) { - fcc->function_handler = zend_get_call_trampoline_func(ce_org, zs_lcname, 0); - call_via_handler = 1; - retval = 1; - } else if (fcc->object->handlers->get_method) { - fcc->function_handler = fcc->object->handlers->get_method(&fcc->object, zs_lcname, NULL); - if (fcc->function_handler) { - if (strict_class && - (!fcc->function_handler->common.scope || - !instanceof_function(ce_org, fcc->function_handler->common.scope TSRMLS_CC))) { - if ((fcc->function_handler->common.fn_flags & ZEND_ACC_CALL_VIA_HANDLER) != 0) { - if (fcc->function_handler->type != ZEND_OVERLOADED_FUNCTION) { - zend_string_release(fcc->function_handler->common.function_name); - } - zend_free_trampoline(fcc->function_handler); - } - } else { - call_via_handler = (fcc->function_handler->common.fn_flags & ZEND_ACC_CALL_VIA_HANDLER) != 0; - retval = 1; - } - } - } - } else if (fcc->calling_scope) { - if (fcc->calling_scope->get_static_method) { - fcc->function_handler = fcc->calling_scope->get_static_method(fcc->calling_scope, zs_lcname); - } else { - fcc->function_handler = zend_std_get_static_method(fcc->calling_scope, zs_lcname, NULL); - } - if (fcc->function_handler) { - call_via_handler = (fcc->function_handler->common.fn_flags & ZEND_ACC_CALL_VIA_HANDLER) != 0; - if (call_via_handler && !fcc->object && EG(current_execute_data) && Z_OBJ(EG(current_execute_data)->This) && - instanceof_function(Z_OBJCE(EG(current_execute_data)->This), fcc->calling_scope)) { - fcc->object = Z_OBJ(EG(current_execute_data)->This); - } - retval = 1; - } - } - - zend_string_release(zs_lcname); - return retval; -} - -static zend_bool zephir_is_info_callable_ex(zephir_fcall_info *info, zend_fcall_info_cache *fcc TSRMLS_DC) -{ - int retval = 0; - zend_class_entry *ce_org = fcc->calling_scope, *scope, *called_scope; - zend_fcall_info_cache fcc_local; - -#if PHP_VERSION_ID >= 70100 - if(ce_org) { - scope = ce_org; - } else { - scope = zend_get_executed_scope(); - } - called_scope = zend_get_called_scope(EG(current_execute_data)); -#else - scope = EG(scope); - called_scope = EG(current_execute_data)->called_scope; -#endif - - if (fcc == NULL) { - fcc = &fcc_local; - } - - fcc->initialized = 0; - fcc->calling_scope = NULL; - fcc->called_scope = NULL; - fcc->function_handler = NULL; - fcc->object = NULL; - - switch (info->type) { - - case ZEPHIR_FCALL_TYPE_FUNC: - - if ((fcc->function_handler = zend_hash_str_find_ptr(EG(function_table), info->func_name, info->func_length)) != NULL) { - if (fcc == &fcc_local && - fcc->function_handler && - ((fcc->function_handler->type == ZEND_INTERNAL_FUNCTION && - (fcc->function_handler->common.fn_flags & ZEND_ACC_CALL_VIA_HANDLER)) || - fcc->function_handler->type == ZEND_OVERLOADED_FUNCTION_TEMPORARY || - fcc->function_handler->type == ZEND_OVERLOADED_FUNCTION)) { - if (fcc->function_handler->type != ZEND_OVERLOADED_FUNCTION) { - efree((char*)fcc->function_handler->common.function_name); - } - zend_string_release(fcc->function_handler->common.function_name); - } - fcc->initialized = 1; - return 1; - } - break; - - case ZEPHIR_FCALL_TYPE_ZVAL_METHOD: - if (!EG(objects_store).object_buckets || !IS_OBJ_VALID(EG(objects_store).object_buckets[Z_OBJ_HANDLE_P(info->object_ptr)])) { - return 0; - } - fcc->calling_scope = Z_OBJCE_P(info->object_ptr); /* TBFixed: what if it's overloaded? */ - fcc->called_scope = fcc->calling_scope; - fcc->object = Z_OBJ_P(info->object_ptr); - - if (!ce_org) { - ce_org = fcc->calling_scope; - } - - if ((fcc->function_handler = zend_hash_str_find_ptr(&info->ce->function_table, info->func_name, info->func_length + 1)) != NULL) { - if (fcc == &fcc_local && - fcc->function_handler && - ((fcc->function_handler->type == ZEND_INTERNAL_FUNCTION && - (fcc->function_handler->common.fn_flags & ZEND_ACC_CALL_VIA_HANDLER)) || - fcc->function_handler->type == ZEND_OVERLOADED_FUNCTION_TEMPORARY || - fcc->function_handler->type == ZEND_OVERLOADED_FUNCTION)) { - if (fcc->function_handler->type != ZEND_OVERLOADED_FUNCTION) { - zend_string_release(fcc->function_handler->common.function_name); - } - zend_free_trampoline(fcc->function_handler); - } - retval = 1; - } - - if (!retval) { - retval = zephir_is_info_dynamic_callable(info, fcc, ce_org, 0 TSRMLS_CC); - } - break; - - case ZEPHIR_FCALL_TYPE_CLASS_SELF_METHOD: - - if (!called_scope) { - return 0; // cannot access self:: when no class scope is active - } - - fcc->called_scope = called_scope; - fcc->calling_scope = scope; - if (!fcc->object) { - fcc->object = Z_OBJ(EG(current_execute_data)->This); - } - if ((fcc->function_handler = zend_hash_str_find_ptr(&fcc->calling_scope->function_table, info->func_name, info->func_length)) != NULL) { - if (fcc == &fcc_local && - fcc->function_handler && - ((fcc->function_handler->type == ZEND_INTERNAL_FUNCTION && - (fcc->function_handler->common.fn_flags & ZEND_ACC_CALL_VIA_HANDLER)) || - fcc->function_handler->type == ZEND_OVERLOADED_FUNCTION_TEMPORARY || - fcc->function_handler->type == ZEND_OVERLOADED_FUNCTION)) { - if (fcc->function_handler->type != ZEND_OVERLOADED_FUNCTION) { - zend_string_release(fcc->function_handler->common.function_name); - } - zend_free_trampoline(fcc->function_handler); - } - retval = 1; - } - - if (!retval) { - retval = zephir_is_info_dynamic_callable(info, fcc, ce_org, 0 TSRMLS_CC); - } - break; - - case ZEPHIR_FCALL_TYPE_CLASS_PARENT_METHOD: - - if (!scope) { - return 0; // cannot access parent:: when no class scope is active - } - - if (!scope->parent) { - return 0; // cannot access parent:: when current class scope has no parent - } - - fcc->calling_scope = scope->parent; - fcc->called_scope = called_scope; - if (!fcc->object) { - fcc->object = Z_OBJ(EG(current_execute_data)->This); - } - - if ((fcc->function_handler = zend_hash_str_find_ptr(&fcc->calling_scope->function_table, info->func_name, info->func_length)) != NULL) { - if (fcc == &fcc_local && - fcc->function_handler && - ((fcc->function_handler->type == ZEND_INTERNAL_FUNCTION && - (fcc->function_handler->common.fn_flags & ZEND_ACC_CALL_VIA_HANDLER)) || - fcc->function_handler->type == ZEND_OVERLOADED_FUNCTION_TEMPORARY || - fcc->function_handler->type == ZEND_OVERLOADED_FUNCTION)) { - if (fcc->function_handler->type != ZEND_OVERLOADED_FUNCTION) { - zend_string_release(fcc->function_handler->common.function_name); - } - zend_free_trampoline(fcc->function_handler); - } - retval = 1; - } - - if (!retval) { - retval = zephir_is_info_dynamic_callable(info, fcc, ce_org, 1 TSRMLS_CC); - } - break; - - case ZEPHIR_FCALL_TYPE_CLASS_STATIC_METHOD: - - if (!EG(current_execute_data) || !called_scope) { - return 0; // cannot access static:: when no class scope is active - } - - fcc->called_scope = called_scope; - if (!fcc->object) { - fcc->object = Z_OBJ(EG(current_execute_data)->This); - } - fcc->calling_scope = fcc->called_scope; - - if ((fcc->function_handler = zend_hash_str_find_ptr(&fcc->calling_scope->function_table, info->func_name, info->func_length)) != NULL) { - if (fcc == &fcc_local && - fcc->function_handler && - ((fcc->function_handler->type == ZEND_INTERNAL_FUNCTION && - (fcc->function_handler->common.fn_flags & ZEND_ACC_CALL_VIA_HANDLER)) || - fcc->function_handler->type == ZEND_OVERLOADED_FUNCTION_TEMPORARY || - fcc->function_handler->type == ZEND_OVERLOADED_FUNCTION)) { - if (fcc->function_handler->type != ZEND_OVERLOADED_FUNCTION) { - zend_string_release(fcc->function_handler->common.function_name); - } - zend_free_trampoline(fcc->function_handler); - } - retval = 1; - } - - if (!retval) { - retval = zephir_is_info_dynamic_callable(info, fcc, ce_org, 1 TSRMLS_CC); - } - break; - - case ZEPHIR_FCALL_TYPE_CE_METHOD: - { - zend_class_entry *scope = EG(current_execute_data) ? EG(current_execute_data)->func->common.scope : NULL;; - - fcc->calling_scope = info->ce; - if (scope && !fcc->object && EG(current_execute_data) && Z_OBJ(EG(current_execute_data)->This) && - instanceof_function(Z_OBJCE(EG(current_execute_data)->This), scope) && - instanceof_function(scope, fcc->calling_scope)) { - fcc->object = Z_OBJ(EG(current_execute_data)->This); - fcc->called_scope = Z_OBJCE(EG(current_execute_data)->This); - } else { - fcc->called_scope = fcc->object ? fcc->object->ce : fcc->calling_scope; - } - - if ((fcc->function_handler = zend_hash_str_find_ptr(&fcc->calling_scope->function_table, info->func_name, info->func_length)) != NULL) { - if (fcc == &fcc_local && - fcc->function_handler && - ((fcc->function_handler->type == ZEND_INTERNAL_FUNCTION && - (fcc->function_handler->common.fn_flags & ZEND_ACC_CALL_VIA_HANDLER)) || - fcc->function_handler->type == ZEND_OVERLOADED_FUNCTION_TEMPORARY || - fcc->function_handler->type == ZEND_OVERLOADED_FUNCTION)) { - if (fcc->function_handler->type != ZEND_OVERLOADED_FUNCTION) { - zend_string_release(fcc->function_handler->common.function_name); - } - zend_free_trampoline(fcc->function_handler); - } - retval = 1; - } - - if (!retval) { - retval = zephir_is_info_dynamic_callable(info, fcc, ce_org, 1 TSRMLS_CC); - } - } - break; - } - - if (fcc->object) { - fcc->called_scope = fcc->object->ce; - } - if (retval) { - fcc->initialized = 1; - } - - return retval; -} - -static int zephir_call_function_opt(zend_fcall_info *fci, zend_fcall_info_cache *fci_cache, zephir_fcall_info *info, zval *params[]) -{ - uint32_t i; - zend_class_entry *calling_scope = NULL; - zend_execute_data *call, dummy_execute_data; - zend_fcall_info_cache fci_cache_local; - zend_function *func; - zend_class_entry *orig_scope; - - ZVAL_UNDEF(fci->retval); - - if (!EG(active)) { - return FAILURE; /* executor is already inactive */ - } - - if (EG(exception)) { - return FAILURE; /* we would result in an instable executor otherwise */ - } - - switch (fci->size) { - case sizeof(zend_fcall_info): - break; /* nothing to do currently */ - default: - zend_error_noreturn(E_CORE_ERROR, "Corrupted fcall_info provided to zend_call_function()"); - break; - } - -#if PHP_VERSION_ID >= 70100 - //orig_scope = EG(fake_scope); -#else - orig_scope = EG(scope); -#endif - - /* Initialize execute_data */ - if (!EG(current_execute_data)) { - /* This only happens when we're called outside any execute()'s - * It shouldn't be strictly necessary to NULL execute_data out, - * but it may make bugs easier to spot - */ - memset(&dummy_execute_data, 0, sizeof(zend_execute_data)); - EG(current_execute_data) = &dummy_execute_data; - } else if (EG(current_execute_data)->func && - ZEND_USER_CODE(EG(current_execute_data)->func->common.type) && - EG(current_execute_data)->opline->opcode != ZEND_DO_FCALL && - EG(current_execute_data)->opline->opcode != ZEND_DO_ICALL && - EG(current_execute_data)->opline->opcode != ZEND_DO_UCALL && - EG(current_execute_data)->opline->opcode != ZEND_DO_FCALL_BY_NAME) { - /* Insert fake frame in case of include or magic calls */ - dummy_execute_data = *EG(current_execute_data); - dummy_execute_data.prev_execute_data = EG(current_execute_data); - dummy_execute_data.call = NULL; - dummy_execute_data.opline = NULL; - dummy_execute_data.func = NULL; - EG(current_execute_data) = &dummy_execute_data; - } - - if (!fci_cache || !fci_cache->initialized) { - char *error = NULL; - - if (!fci_cache) { - fci_cache = &fci_cache_local; - } - - if (!info) { - char *callable_name; - if (!zephir_is_callable_ex(&fci->function_name, fci->object, IS_CALLABLE_CHECK_SILENT, &callable_name, NULL, fci_cache, &error)) { - if (error) { - zend_error(E_WARNING, "Invalid callback %s, %s", callable_name, error); - efree(error); - } - if (callable_name) { - efree(callable_name); - } - if (EG(current_execute_data) == &dummy_execute_data) { - EG(current_execute_data) = dummy_execute_data.prev_execute_data; - } - return FAILURE; - } else { - if (error) { - zend_error(E_STRICT, "%s", error); - efree(error); - } - } - efree(callable_name); - } else { - if (!zephir_is_info_callable_ex(info, fci_cache)) { - return FAILURE; - } - } - } - - func = fci_cache->function_handler; -#if PHP_VERSION_ID >= 70100 - fci->object = (func->common.fn_flags & ZEND_ACC_STATIC) ? NULL : fci_cache->object; - call = zend_vm_stack_push_call_frame(ZEND_CALL_TOP_FUNCTION, func, fci->param_count, fci_cache->called_scope, fci->object); -#else - call = zend_vm_stack_push_call_frame(ZEND_CALL_TOP_FUNCTION, - func, fci->param_count, fci_cache->called_scope, fci_cache->object); - fci->object = fci_cache->object; -#endif - calling_scope = fci_cache->calling_scope; - if (fci->object && - (!EG(objects_store).object_buckets || - !IS_OBJ_VALID(EG(objects_store).object_buckets[fci->object->handle]))) { - if (EG(current_execute_data) == &dummy_execute_data) { - EG(current_execute_data) = dummy_execute_data.prev_execute_data; - } - return FAILURE; - } - - if (func->common.fn_flags & (ZEND_ACC_ABSTRACT|ZEND_ACC_DEPRECATED)) { - if (func->common.fn_flags & ZEND_ACC_ABSTRACT) { - zend_throw_error(NULL, "Cannot call abstract method %s::%s()", ZSTR_VAL(func->common.scope->name), ZSTR_VAL(func->common.function_name)); - return FAILURE; - } - if (func->common.fn_flags & ZEND_ACC_DEPRECATED) { - zend_error(E_DEPRECATED, "Function %s%s%s() is deprecated", - func->common.scope ? ZSTR_VAL(func->common.scope->name) : "", - func->common.scope ? "::" : "", - ZSTR_VAL(func->common.function_name)); - } - } - - for (i = 0; i < fci->param_count; i++) { - zval *param; - zval *arg = params[i]; - - if (ARG_SHOULD_BE_SENT_BY_REF(func, i + 1)) { - if (UNEXPECTED(!Z_ISREF_P(arg))) { - /*if (fci->no_separation && - !ARG_MAY_BE_SENT_BY_REF(func, i + 1)) { - if (i) { - // hack to clean up the stack - ZEND_CALL_NUM_ARGS(call) = i; - zend_vm_stack_free_args(call); - } - zend_vm_stack_free_call_frame(call); - - zend_error(E_WARNING, "Parameter %d to %s%s%s() expected to be a reference, value given", - i+1, - func->common.scope ? ZSTR_VAL(func->common.scope->name) : "", - func->common.scope ? "::" : "", - ZSTR_VAL(func->common.function_name)); - if (EG(current_execute_data) == &dummy_execute_data) { - EG(current_execute_data) = dummy_execute_data.prev_execute_data; - } - return FAILURE; - } */ - - ZVAL_NEW_REF(arg, arg); - } - Z_ADDREF_P(arg); - } else { - if (Z_ISREF_P(arg) && - !(func->common.fn_flags & ZEND_ACC_CALL_VIA_TRAMPOLINE)) { - /* don't separate references for __call */ - arg = Z_REFVAL_P(arg); - } - if (Z_OPT_REFCOUNTED_P(arg)) { - Z_ADDREF_P(arg); - } - } - param = ZEND_CALL_ARG(call, i+1); - ZVAL_COPY_VALUE(param, arg); - } - -#if PHP_VERSION_ID >= 70100 - //EG(fake_scope) = calling_scope; - if(fci_cache->object) { - Z_OBJ(call->This) = fci_cache->object; - } - if (UNEXPECTED(func->op_array.fn_flags & ZEND_ACC_CLOSURE)) { - ZEND_ASSERT(GC_TYPE((zend_object*)func->op_array.prototype) == IS_OBJECT); - GC_REFCOUNT((zend_object*)func->op_array.prototype)++; - ZEND_ADD_CALL_FLAG(call, ZEND_CALL_CLOSURE); - } -#else - EG(scope) = calling_scope; - if (func->common.fn_flags & ZEND_ACC_STATIC) { - fci->object = NULL; - } - Z_OBJ(call->This) = fci->object; -#endif - - if (func->type == ZEND_USER_FUNCTION) { - int call_via_handler = (func->common.fn_flags & ZEND_ACC_CALL_VIA_TRAMPOLINE) != 0; - -#if PHP_VERSION_ID >= 70100 - //EG(fake_scope) = func->common.scope; - //call->symbol_table = NULL; -#else - EG(scope) = func->common.scope; - call->symbol_table = fci->symbol_table; -#endif - -#if PHP_VERSION_ID >= 70100 - zend_init_execute_data(call, &func->op_array, fci->retval); - zend_execute_ex(call); -#else - if (UNEXPECTED(func->op_array.fn_flags & ZEND_ACC_CLOSURE)) { - ZEND_ASSERT(GC_TYPE((zend_object*)func->op_array.prototype) == IS_OBJECT); - GC_REFCOUNT((zend_object*)func->op_array.prototype)++; - ZEND_ADD_CALL_FLAG(call, ZEND_CALL_CLOSURE); - } - if (EXPECTED((func->op_array.fn_flags & ZEND_ACC_GENERATOR) == 0)) { - zend_init_execute_data(call, &func->op_array, fci->retval); - zend_execute_ex(call); - } else { - zend_generator_create_zval(call, &func->op_array, fci->retval); - } -#endif - if (call_via_handler) { - /* We must re-initialize function again */ - fci_cache->initialized = 0; - } - } else if (func->type == ZEND_INTERNAL_FUNCTION) { - int call_via_handler = (func->common.fn_flags & ZEND_ACC_CALL_VIA_TRAMPOLINE) != 0; - ZVAL_NULL(fci->retval); - if (func->common.scope) { -#if PHP_VERSION_ID >= 70100 - //EG(fake_scope) = func->common.scope; -#else - EG(scope) = func->common.scope; -#endif - } - call->prev_execute_data = EG(current_execute_data); - call->return_value = NULL; /* this is not a constructor call */ - EG(current_execute_data) = call; - if (EXPECTED(zend_execute_internal == NULL)) { - /* saves one function call if zend_execute_internal is not used */ - func->internal_function.handler(call, fci->retval); - } else { - zend_execute_internal(call, fci->retval); - } - EG(current_execute_data) = call->prev_execute_data; - zend_vm_stack_free_args(call); - - /* We shouldn't fix bad extensions here, - because it can break proper ones (Bug #34045) - if (!EX(function_state).function->common.return_reference) - { - INIT_PZVAL(f->retval); - }*/ - if (EG(exception)) { - zval_ptr_dtor(fci->retval); - ZVAL_UNDEF(fci->retval); - } - - if (call_via_handler) { - /* We must re-initialize function again */ - fci_cache->initialized = 0; - } - } else { /* ZEND_OVERLOADED_FUNCTION */ - ZVAL_NULL(fci->retval); - - /* Not sure what should be done here if it's a static method */ - if (fci->object) { - call->prev_execute_data = EG(current_execute_data); - EG(current_execute_data) = call; - fci->object->handlers->call_method(func->common.function_name, fci->object, call, fci->retval); - EG(current_execute_data) = call->prev_execute_data; - } else { - zend_throw_error(NULL, "Cannot call overloaded function for non-object"); - } - - zend_vm_stack_free_args(call); - - if (func->type == ZEND_OVERLOADED_FUNCTION_TEMPORARY) { - zend_string_release(func->common.function_name); - } - efree(func); - - if (EG(exception)) { - zval_ptr_dtor(fci->retval); - ZVAL_UNDEF(fci->retval); - } - } - -#if PHP_VERSION_ID >= 70100 - //EG(fake_scope) = orig_scope; -#else - EG(scope) = orig_scope; -#endif - zend_vm_stack_free_call_frame(call); - - if (EG(current_execute_data) == &dummy_execute_data) { - EG(current_execute_data) = dummy_execute_data.prev_execute_data; - } - - if (EG(exception)) { - zend_throw_exception_internal(NULL); - } - return SUCCESS; -} - - - #ifdef HAVE_CONFIG_H #endif @@ -8488,7 +7197,7 @@ static void zephir_camelize(zval *return_value, const zval *str, const zval *del smart_str camelize_str = {0}; char *marker, ch, *delim; - if (unlikely(Z_TYPE_P(str) != IS_STRING)) { + if (UNEXPECTED(Z_TYPE_P(str) != IS_STRING)) { zend_error(E_WARNING, "Invalid arguments supplied for camelize()"); RETURN_EMPTY_STRING(); } @@ -8615,7 +7324,7 @@ static int zephir_memnstr_str(const zval *haystack, char *needle, unsigned int n static void zephir_fast_explode(zval *return_value, zval *delimiter, zval *str, long limit) { - if (unlikely(Z_TYPE_P(str) != IS_STRING || Z_TYPE_P(delimiter) != IS_STRING)) { + if (UNEXPECTED(Z_TYPE_P(str) != IS_STRING || Z_TYPE_P(delimiter) != IS_STRING)) { zend_error(E_WARNING, "Invalid arguments supplied for explode()"); RETURN_EMPTY_STRING(); } @@ -8628,7 +7337,7 @@ static void zephir_fast_explode_str(zval *return_value, const char *delim, int d { zend_string *delimiter; - if (unlikely(Z_TYPE_P(str) != IS_STRING)) { + if (UNEXPECTED(Z_TYPE_P(str) != IS_STRING)) { zend_error(E_WARNING, "Invalid arguments supplied for explode()"); RETURN_EMPTY_STRING(); } @@ -8643,7 +7352,7 @@ static void zephir_fast_strpos(zval *return_value, const zval *haystack, const z { const char *found = NULL; - if (unlikely(Z_TYPE_P(haystack) != IS_STRING || Z_TYPE_P(needle) != IS_STRING)) { + if (UNEXPECTED(Z_TYPE_P(haystack) != IS_STRING || Z_TYPE_P(needle) != IS_STRING)) { ZVAL_NULL(return_value); zend_error(E_WARNING, "Invalid arguments supplied for strpos()"); return; @@ -8674,7 +7383,7 @@ static void zephir_fast_strpos_str(zval *return_value, const zval *haystack, cha { const char *found = NULL; - if (unlikely(Z_TYPE_P(haystack) != IS_STRING)) { + if (UNEXPECTED(Z_TYPE_P(haystack) != IS_STRING)) { ZVAL_NULL(return_value); zend_error(E_WARNING, "Invalid arguments supplied for strpos()"); return; @@ -8988,7 +7697,8 @@ static void zephir_preg_match(zval *return_value, zval *regex, zval *subject, zv ZVAL_LONG(&tmp_flags, flags); ZVAL_LONG(&tmp_offset, offset); - ZVAL_UNDEF(&tmp_matches); + ZVAL_NULL(&tmp_matches); + ZVAL_MAKE_REF(&tmp_matches); { zval *tmp_params[5] = { regex, subject, &tmp_matches, &tmp_flags, &tmp_offset }; @@ -9035,7 +7745,7 @@ static int zephir_json_decode(zval *return_value, zval *v, zend_bool assoc) zval copy; int use_copy = 0; - if (unlikely(Z_TYPE_P(v) != IS_STRING)) { + if (UNEXPECTED(Z_TYPE_P(v) != IS_STRING)) { use_copy = zend_make_printable_zval(v, ©); if (use_copy) { v = © @@ -9044,7 +7754,7 @@ static int zephir_json_decode(zval *return_value, zval *v, zend_bool assoc) php_json_decode(return_value, Z_STRVAL_P(v), Z_STRLEN_P(v), assoc, 512 /* JSON_PARSER_DEFAULT_DEPTH */); - if (unlikely(use_copy)) { + if (UNEXPECTED(use_copy)) { zval_dtor(©); } @@ -9144,7 +7854,7 @@ static void zephir_ucfirst(zval *return_value, zval *s) char *c; int use_copy = 0; - if (unlikely(Z_TYPE_P(s) != IS_STRING)) { + if (UNEXPECTED(Z_TYPE_P(s) != IS_STRING)) { use_copy = zend_make_printable_zval(s, ©); if (use_copy) { s = © @@ -9160,7 +7870,7 @@ static void zephir_ucfirst(zval *return_value, zval *s) *c = toupper((unsigned char)*c); } - if (unlikely(use_copy)) { + if (UNEXPECTED(use_copy)) { zval_dtor(©); } } @@ -9170,7 +7880,7 @@ static void zephir_addslashes(zval *return_value, zval *str) zval copy; int use_copy = 0; - if (unlikely(Z_TYPE_P(str) != IS_STRING)) { + if (UNEXPECTED(Z_TYPE_P(str) != IS_STRING)) { use_copy = zend_make_printable_zval(str, ©); if (use_copy) { str = © @@ -9179,7 +7889,7 @@ static void zephir_addslashes(zval *return_value, zval *str) ZVAL_STR(return_value, php_addslashes(Z_STR_P(str), 0)); - if (unlikely(use_copy)) { + if (UNEXPECTED(use_copy)) { zval_dtor(©); } } @@ -9189,7 +7899,7 @@ static void zephir_stripslashes(zval *return_value, zval *str) zval copy; int use_copy = 0; - if (unlikely(Z_TYPE_P(str) != IS_STRING)) { + if (UNEXPECTED(Z_TYPE_P(str) != IS_STRING)) { use_copy = zend_make_printable_zval(str, ©); if (use_copy) { str = © @@ -9199,7 +7909,7 @@ static void zephir_stripslashes(zval *return_value, zval *str) ZVAL_STRINGL(return_value, Z_STRVAL_P(str), Z_STRLEN_P(str)); php_stripslashes(Z_STR_P(return_value)); - if (unlikely(use_copy)) { + if (UNEXPECTED(use_copy)) { zval_dtor(©); } } @@ -9209,7 +7919,7 @@ static void zephir_stripcslashes(zval *return_value, zval *str) zval copy; int use_copy = 0; - if (unlikely(Z_TYPE_P(str) != IS_STRING)) { + if (UNEXPECTED(Z_TYPE_P(str) != IS_STRING)) { use_copy = zend_make_printable_zval(str, ©); if (use_copy) { str = © @@ -9219,7 +7929,7 @@ static void zephir_stripcslashes(zval *return_value, zval *str) ZVAL_STRINGL(return_value, Z_STRVAL_P(str), Z_STRLEN_P(str)); php_stripcslashes(Z_STR_P(return_value)); - if (unlikely(use_copy)) { + if (UNEXPECTED(use_copy)) { zval_dtor(©); } } @@ -9248,6 +7958,37 @@ static int zephir_hash_equals(const zval *known_zval, const zval *user_zval) return (int) (result == 0); } +static void zephir_string_to_hex(zval *return_value, zval *var) +{ + int use_copy = 0; + zval copy; + size_t i; + char *s; + zend_string *res; + + if (Z_TYPE_P(var) != IS_STRING) { + use_copy = zend_make_printable_zval(var, ©); + if (use_copy) { + var = © + } + } + + res = zend_string_alloc(2*Z_STRLEN_P(var) + 1, 0); + s = Z_STRVAL_P(var); + for (i=0; ival + 2*i, "%hhX", s[i]); + } + + res->val[2*Z_STRLEN_P(var)] = 0; + res->len = 2*Z_STRLEN_P(var); + zend_string_forget_hash_val(res); + ZVAL_STR(return_value, res); + + if (use_copy) { + zval_dtor(var); + } +} + @@ -9284,7 +8025,7 @@ static int zephir_has_constructor_ce(const zend_class_entry *ce) return 0; } -static ulong zephir_make_fcall_info_key(char **result, size_t *length, const zend_class_entry *obj_ce, zephir_call_type type, zephir_fcall_info *info) +static ulong zephir_make_fcall_key(char **result, size_t *length, const zend_class_entry *obj_ce, zephir_call_type type, zval *function_name) { const zend_class_entry *calling_scope; char *buf = NULL, *c; @@ -9327,114 +8068,6 @@ static ulong zephir_make_fcall_info_key(char **result, size_t *length, const zen calling_scope = NULL; } - switch (info->type) { - - case ZEPHIR_FCALL_TYPE_FUNC: - - l = (size_t)(info->func_length) + 1; - c = (char*) info->func_name; - len = 2 * ppzce_size + l + 1; - buf = emalloc(len); - - memcpy(buf, c, l); - memcpy(buf + l, &calling_scope, ppzce_size); - memcpy(buf + l + ppzce_size, &obj_ce, ppzce_size); - buf[len - 1] = '\0'; - break; - - case ZEPHIR_FCALL_TYPE_CLASS_SELF_METHOD: - case ZEPHIR_FCALL_TYPE_CLASS_STATIC_METHOD: - case ZEPHIR_FCALL_TYPE_CLASS_PARENT_METHOD: - l = (size_t)(info->func_length) + 2; /* reserve 1 char for fcall-type */ - c = (char*) info->func_name; - len = 2 * ppzce_size + l + 1; - buf = emalloc(len); - - buf[0] = info->type; - memcpy(buf + 1, c, l - 1); - memcpy(buf + l, &calling_scope, ppzce_size); - memcpy(buf + l + ppzce_size, &obj_ce, ppzce_size); - buf[len - 1] = '\0'; - break; - - case ZEPHIR_FCALL_TYPE_CE_METHOD: - case ZEPHIR_FCALL_TYPE_ZVAL_METHOD: - l = (size_t)(info->func_length) + 1; - c = (char*) info->func_name; - len = 2 * ppzce_size + l + 1; - buf = emalloc(len); - - memcpy(buf, c, l); - memcpy(buf + l, &calling_scope, ppzce_size); - memcpy(buf + l + ppzce_size, &obj_ce, ppzce_size); - buf[len - 1] = '\0'; - break; - } - - if (EXPECTED(buf != NULL)) { - size_t i; - - for (i = 0; i < l; ++i) { - char c = buf[i]; - c = tolower_map[(unsigned char)c]; - buf[i] = c; - hash = (hash << 5) + hash + c; - } - - for (i = l; i < len; ++i) { - char c = buf[i]; - hash = (hash << 5) + hash + c; - } - } - - *result = buf; - *length = len; - return hash; -} - -static ulong zephir_make_fcall_key(char **result, size_t *length, const zend_class_entry *obj_ce, zephir_call_type type, zval *function_name TSRMLS_DC) -{ - const zend_class_entry *calling_scope; - char *buf = NULL, *c; - size_t l = 0, len = 0; - const size_t ppzce_size = sizeof(zend_class_entry**); - ulong hash = 5381; - -#if PHP_VERSION_ID >= 70100 - calling_scope = EG(fake_scope); -#else - calling_scope = EG(scope); -#endif - *result = NULL; - *length = 0; - - if (calling_scope && type == zephir_fcall_parent) { - calling_scope = calling_scope->parent; - if (UNEXPECTED(!calling_scope)) { - return 0; - } - } - else if (type == zephir_fcall_static) { -#if PHP_VERSION_ID >= 70100 - calling_scope = zend_get_called_scope(EG(current_execute_data)); -#else - calling_scope = EG(current_execute_data)->called_scope; -#endif - if (UNEXPECTED(!calling_scope)) { - return 0; - } - } - - if ( - calling_scope - && obj_ce - && calling_scope != obj_ce - && !instanceof_function(obj_ce, calling_scope) - && !instanceof_function(calling_scope, obj_ce) - ) { - calling_scope = NULL; - } - if (Z_TYPE_P(function_name) == IS_STRING) { l = (size_t)(Z_STRLEN_P(function_name)) + 1; c = Z_STRVAL_P(function_name); @@ -9487,95 +8120,9 @@ static ulong zephir_make_fcall_key(char **result, size_t *length, const zend_cla return hash; } -ZEPHIR_ATTR_NONNULL static void zephir_fcall_populate_fci_cache(zend_fcall_info_cache *fcic, zend_fcall_info *fci, zephir_call_type type) -{ - zend_class_entry *scope, *called_scope; -#if PHP_VERSION_ID >= 70100 - scope = EG(fake_scope); - called_scope = zend_get_called_scope(EG(current_execute_data)); -#else - scope = EG(scope); - called_scope = EG(current_execute_data)->called_scope; -#endif - - switch (type) { - case zephir_fcall_parent: - if (scope && scope->parent) { - fcic->calling_scope = scope->parent; - fcic->called_scope = called_scope; - fcic->object = fci->object ? fci->object : Z_OBJ(EG(current_execute_data)->This); - fcic->initialized = 1; - } - - break; - - case zephir_fcall_self: - if (scope) { - fcic->calling_scope = scope; - fcic->called_scope = called_scope; - fcic->object = fci->object ? fci->object : Z_OBJ(EG(current_execute_data)->This); - fcic->initialized = 1; - } - - break; - - case zephir_fcall_static: - if (called_scope) { - fcic->called_scope = called_scope; - fcic->calling_scope = called_scope; - fcic->object = fci->object ? fci->object : Z_OBJ(EG(current_execute_data)->This); - fcic->initialized = 1; - } - - break; - - case zephir_fcall_function: - fcic->calling_scope = NULL; - fcic->called_scope = NULL; - fcic->object = NULL; - fcic->initialized = 1; - break; - - case zephir_fcall_ce: { - fcic->initialized = 1; - fcic->calling_scope = scope; - /* called_scope: Instead of the checks below, which seem unnecessary/broken? */ - fcic->called_scope = fcic->calling_scope; - fcic->object = NULL; - - break; - } - - case zephir_fcall_method: - fcic->initialized = 1; - fcic->calling_scope = scope; - fcic->object = fci->object; - if (fci->object) { - fcic->called_scope = fci->object->ce; - } - else if (scope && !(called_scope && instanceof_function(called_scope, scope))) { - fcic->called_scope = scope; - } - else { - fcic->called_scope = called_scope; - } - - break; - - default: -#ifndef ZEPHIR_RELEASE - fprintf(stderr, "%s: unknown call type (%d)\n", __func__, (int) type); - abort(); -#endif - fcic->initialized = 0; /* not strictly necessary but just to be safe */ - break; - } - -} - static 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 *params[], zephir_fcall_info *info) + zval *params[]) { zval local_retval_ptr; int status; @@ -9586,12 +8133,10 @@ static int zephir_call_user_function(zval *object_pp, zend_class_entry *obj_ce, ulong fcall_key_hash; size_t fcall_key_len; zephir_fcall_cache_entry *temp_cache_entry = NULL; - zend_class_entry *old_scope; - int reload_cache = 1; + int reload_cache = 1, i; -#if PHP_VERSION_ID >= 70100 - //old_scope = EG(fake_scope); -#else +#if PHP_VERSION_ID < 70100 + zend_class_entry *old_scope; old_scope = EG(scope); #endif @@ -9610,120 +8155,151 @@ static int zephir_call_user_function(zval *object_pp, zend_class_entry *obj_ce, return FAILURE; } - if (type != zephir_fcall_function && !object_pp) { - object_pp = EG(current_execute_data) && Z_OBJ(EG(current_execute_data)->This) ? &EG(current_execute_data)->This : NULL; - if (!obj_ce && object_pp) { - obj_ce = Z_OBJCE_P(object_pp); - } - } - if (obj_ce) { -#if PHP_VERSION_ID >= 70100 - //EG(fake_scope) = obj_ce; -#else +#if PHP_VERSION_ID < 70100 EG(scope) = obj_ce; #endif } - if (!cache_entry || !*cache_entry) { - if (zephir_globals_ptr->cache_enabled) { - - if (cache_slot > 0) { - if (zephir_globals_ptr->scache[cache_slot]) { - reload_cache = 0; - temp_cache_entry = zephir_globals_ptr->scache[cache_slot]; - if (cache_entry) { - *cache_entry = temp_cache_entry; - } + if ((!cache_entry || !*cache_entry) && zephir_globals_ptr->cache_enabled) { + if (cache_slot > 0) { + if (zephir_globals_ptr->scache[cache_slot]) { + reload_cache = 0; + temp_cache_entry = zephir_globals_ptr->scache[cache_slot]; + if (cache_entry) { + *cache_entry = temp_cache_entry; } } + } - if (reload_cache) { - if (info) { - fcall_key_hash = zephir_make_fcall_info_key(&fcall_key, &fcall_key_len, (object_pp && type != zephir_fcall_ce ? Z_OBJCE_P(object_pp) : obj_ce), type, info); - } else { - fcall_key_hash = zephir_make_fcall_key(&fcall_key, &fcall_key_len, (object_pp && type != zephir_fcall_ce ? Z_OBJCE_P(object_pp) : obj_ce), type, function_name); - } - } + if (reload_cache) { + fcall_key_hash = zephir_make_fcall_key(&fcall_key, &fcall_key_len, (object_pp && type != zephir_fcall_ce ? Z_OBJCE_P(object_pp) : obj_ce), type, function_name); } } fci.size = sizeof(fci); #if PHP_VERSION_ID < 70100 fci.function_table = obj_ce ? &obj_ce->function_table : EG(function_table); + fci.symbol_table = NULL; #endif fci.object = object_pp ? Z_OBJ_P(object_pp) : NULL; - if (function_name) ZVAL_COPY_VALUE(&fci.function_name, function_name); + ZVAL_COPY_VALUE(&fci.function_name, function_name); fci.retval = retval_ptr ? retval_ptr : &local_retval_ptr; fci.param_count = param_count; fci.params = NULL; - //fci.params: Passed as separate parameter to prevent the need to convert zval ** to zval * + /* fci.params: Passed as separate parameter to prevent the need to convert zval ** to zval * */ fci.no_separation = 1; -#if PHP_VERSION_ID < 70100 - fci.symbol_table = NULL; -#endif - fcic.initialized = 0; - fcic.function_handler = NULL; - fcic.calling_scope = NULL; - fcic.called_scope = NULL; - if (!cache_entry || !*cache_entry) { - if (fcall_key && (temp_cache_entry = zend_hash_str_find_ptr(zephir_globals_ptr->fcache, fcall_key, fcall_key_len)) != NULL) { - zephir_fcall_populate_fci_cache(&fcic, &fci, type); + if (cache_entry && *cache_entry) { + /* We have a cache record, initialize scope */ + fcic.initialized = 1; + fcic.calling_scope = obj_ce; -#ifndef ZEPHIR_RELEASE - fcic.function_handler = temp_cache_entry->f; - ++(temp_cache_entry->times); + if (object_pp) { + fcic.called_scope = Z_OBJCE_P(object_pp); + } + else { + zend_class_entry *called_scope; +#if PHP_VERSION_ID >= 70100 + called_scope = zend_get_called_scope(EG(current_execute_data)); #else - fcic.function_handler = temp_cache_entry; + called_scope = EG(current_execute_data)->called_scope; #endif - /*memcpy(&clone, &fcic, sizeof(clone));*/ + + if (obj_ce && (!called_scope || instanceof_function(called_scope, obj_ce))) { + fcic.called_scope = obj_ce; + } + else { + fcic.called_scope = called_scope; + } } - } else { - zephir_fcall_populate_fci_cache(&fcic, &fci, type); + + fcic.object = object_pp ? Z_OBJ_P(object_pp) : NULL; + #ifndef ZEPHIR_RELEASE fcic.function_handler = (*cache_entry)->f; ++(*cache_entry)->times; #else fcic.function_handler = *cache_entry; -#endif -#if PHP_VERSION_ID >= 70100 - fcic.called_scope = obj_ce ? obj_ce : (EG(current_execute_data) ? Z_OBJCE(EG(current_execute_data)->This) : NULL); #endif } + else if ((cache_entry && !*cache_entry) || zephir_globals_ptr->cache_enabled) { + /* The caller is interested in caching OR we have the call cache enabled */ + zend_string *callable_name = NULL; + char *error = NULL; - /* fcic.initialized = 0; */ - //status = ZEPHIR_ZEND_CALL_FUNCTION_WRAPPER(&fci, &fcic, info); - status = zephir_call_function_opt(&fci, &fcic, info, params); + zend_is_callable_ex(&fci.function_name, fci.object, IS_CALLABLE_CHECK_SILENT, &callable_name, &fcic, &error); + if (error) { efree(error); } + if (callable_name) { zend_string_release(callable_name); } + } + else { + fcic.initialized = 0; + } -#if PHP_VERSION_ID >= 70100 - //EG(fake_scope) = old_scope; +#ifdef _MSC_VER + zval *p = emalloc(sizeof(zval) * (fci.param_count + 1)); #else - EG(scope) = old_scope; + zval p[fci.param_count]; #endif + for (i=0; iname)); + } + fprintf(stderr, "> %s called: %p, calling: %p, obj: %p, h: %p, type=%d\n", Z_STRVAL(tmp), fcic.called_scope, fcic.calling_scope, fcic.object, fcic.function_handler, (int)type); +#endif + status = zend_call_function(&fci, &fcic); +#if 0 + fprintf(stderr, "< called: %p, calling: %p, obj: %p, h: %p\n", fcic.called_scope, fcic.calling_scope, fcic.object, fcic.function_handler); +#endif + +#ifdef _MSC_VER + efree(p); +#endif + +#if PHP_VERSION_ID < 70100 + EG(scope) = old_scope; +#endif + + /* Skip caching IF: + * call failed OR there was an exception (to be safe) OR cache key is not defined OR + * fcall cache was deinitialized OR we have a slot cache + */ + if (EXPECTED(status != FAILURE) && !EG(exception) && fcall_key && fcic.initialized && !temp_cache_entry) { + int add_failed = 0; #ifndef ZEPHIR_RELEASE - zephir_fcall_cache_entry *cache_entry_temp = malloc(sizeof(zephir_fcall_cache_entry)); - cache_entry_temp->f = fcic.function_handler; - cache_entry_temp->times = 0; + zephir_fcall_cache_entry *cache_entry_temp = malloc(sizeof(zephir_fcall_cache_entry)); + cache_entry_temp->f = fcic.function_handler; + cache_entry_temp->times = 0; #else - zephir_fcall_cache_entry *cache_entry_temp = fcic.function_handler; + zephir_fcall_cache_entry *cache_entry_temp = fcic.function_handler; #endif + + if (zephir_globals_ptr->cache_enabled) { + /** TODO: maybe construct zend_string (we do have a valid fcall_key) to avoid hash recalculation */ if (NULL == zend_hash_str_add_ptr(zephir_globals_ptr->fcache, fcall_key, fcall_key_len, cache_entry_temp)) { + add_failed = 1; + } + } + + if (cache_entry) { + if (cache_slot > 0) { + *cache_entry = cache_entry_temp; + zephir_globals_ptr->scache[cache_slot] = *cache_entry; + } + } + else if (add_failed) { #ifndef ZEPHIR_RELEASE - free(cache_entry_temp); - free(temp_cache_entry); + free(cache_entry_temp); #endif - } else { - if (cache_entry) { - *cache_entry = cache_entry_temp; - if (cache_slot > 0) { - zephir_globals_ptr->scache[cache_slot] = *cache_entry; - } - } - } } } @@ -9745,8 +8321,6 @@ static int zephir_call_func_aparams(zval *return_value_ptr, const char *func_nam { int status; zval rv, *rvp = return_value_ptr ? return_value_ptr : &rv; - zval *func = NULL; - zephir_fcall_info info; ZVAL_UNDEF(&rv); @@ -9758,12 +8332,10 @@ static int zephir_call_func_aparams(zval *return_value_ptr, const char *func_nam } #endif - info.type = ZEPHIR_FCALL_TYPE_FUNC; - info.class_name = NULL; - info.func_name = func_name; - info.func_length = func_length; - - status = zephir_call_user_function(NULL, NULL, zephir_fcall_function, func, rvp, cache_entry, cache_slot, param_count, params, &info); + zval f; + ZVAL_STRINGL(&f, func_name, func_length); + status = zephir_call_user_function(NULL, NULL, zephir_fcall_function, &f, rvp, cache_entry, cache_slot, param_count, params); + zval_ptr_dtor(&f); if (status == FAILURE && !EG(exception)) { zephir_throw_exception_format(spl_ce_RuntimeException, "Call to undefined function %s()", func_name); @@ -9805,7 +8377,7 @@ static int zephir_call_zval_func_aparams(zval *return_value_ptr, zval *func_name } #endif - status = zephir_call_user_function(NULL, NULL, zephir_fcall_function, func_name, rvp, cache_entry, cache_slot, param_count, params, NULL); + status = zephir_call_user_function(NULL, NULL, zephir_fcall_function, func_name, rvp, cache_entry, cache_slot, param_count, params); if (status == FAILURE && !EG(exception)) { zephir_throw_exception_format(spl_ce_RuntimeException, "Call to undefined function %s()", Z_TYPE_P(func_name) ? Z_STRVAL_P(func_name) : "undefined"); @@ -9835,11 +8407,8 @@ static int zephir_call_class_method_aparams(zval *return_value_ptr, zend_class_e zephir_fcall_cache_entry **cache_entry, int cache_slot, uint param_count, zval **params) { - char *possible_method; zval rv, *rvp = return_value_ptr ? return_value_ptr : &rv; - zval *fn = NULL; int status; - zephir_fcall_info info; ZVAL_UNDEF(&rv); @@ -9853,7 +8422,7 @@ static int zephir_call_class_method_aparams(zval *return_value_ptr, zend_class_e if (object) { if (Z_TYPE_P(object) != IS_OBJECT) { - zephir_throw_exception_format(spl_ce_RuntimeException TSRMLS_CC, "Trying to call method %s on a non-object", method_name); + zephir_throw_exception_format(spl_ce_RuntimeException, "Trying to call method %s on a non-object", method_name); if (return_value_ptr) { zval_ptr_dtor(return_value_ptr); ZVAL_UNDEF(return_value_ptr); @@ -9861,73 +8430,49 @@ static int zephir_call_class_method_aparams(zval *return_value_ptr, zend_class_e return FAILURE; } } -#if PHP_VERSION_ID < 70100 - if (!cache_entry || !*cache_entry) { -#endif + + zval method; + array_init_size(&method, 2); + switch (type) { case zephir_fcall_parent: - info.type = ZEPHIR_FCALL_TYPE_CLASS_PARENT_METHOD; + add_next_index_string(&method, "parent"); break; case zephir_fcall_self: - assert(!ce); - info.type = ZEPHIR_FCALL_TYPE_CLASS_SELF_METHOD; + add_next_index_string(&method, "self"); break; case zephir_fcall_static: - assert(!ce); - info.type = ZEPHIR_FCALL_TYPE_CLASS_STATIC_METHOD; + add_next_index_string(&method, "static"); break; case zephir_fcall_ce: - assert(ce != NULL); - info.type = ZEPHIR_FCALL_TYPE_CE_METHOD; - info.ce = ce; + add_next_index_string(&method, ZSTR_VAL(ce->name)); break; - case zephir_fcall_method: default: - assert(object != NULL); - info.type = ZEPHIR_FCALL_TYPE_ZVAL_METHOD; - info.object_ptr = object; - info.ce = ce; + assert(object); + Z_TRY_ADDREF_P(object); + add_next_index_zval(&method, object); break; - } - info.func_name = method_name; - info.func_length = method_len; -#if PHP_VERSION_ID < 70100 } -#endif - status = zephir_call_user_function(object ? object : NULL, ce, type, fn, rvp, cache_entry, cache_slot, param_count, params, &info); + add_next_index_stringl(&method, method_name, method_len); - if (status == FAILURE && !EG(exception)) { - - if (ce) { - //possible_method = zephir_fcall_possible_method(ce, method_name); - possible_method = NULL; // todo - } else { - possible_method = "undefined"; - } + status = zephir_call_user_function(object, ce, type, &method, rvp, cache_entry, cache_slot, param_count, params); + zval_ptr_dtor(&method); + if (status == FAILURE && !EG(exception)) { switch (type) { - case zephir_fcall_parent: - if (possible_method) { - zephir_throw_exception_format(spl_ce_RuntimeException, "Call to undefined method parent::%s(), did you mean '%s'?", method_name, possible_method); - } else { - zephir_throw_exception_format(spl_ce_RuntimeException, "Call to undefined method parent::%s()", method_name); - } + zephir_throw_exception_format(spl_ce_RuntimeException, "Call to undefined method parent::%s()", method_name); break; case zephir_fcall_self: - if (possible_method) { - zephir_throw_exception_format(spl_ce_RuntimeException, "Call to undefined method self::%s(), did you mean '%s'?", method_name, possible_method); - } else { - zephir_throw_exception_format(spl_ce_RuntimeException, "Call to undefined method self::%s()", method_name); - } + zephir_throw_exception_format(spl_ce_RuntimeException, "Call to undefined method self::%s()", method_name); break; case zephir_fcall_static: @@ -9939,11 +8484,7 @@ static int zephir_call_class_method_aparams(zval *return_value_ptr, zend_class_e break; case zephir_fcall_method: - if (possible_method) { - zephir_throw_exception_format(spl_ce_RuntimeException, "Call to undefined method %s::%s(), did you mean '%s'?", ce->name, method_name, possible_method); - } else { - zephir_throw_exception_format(spl_ce_RuntimeException, "Call to undefined method %s::%s()", ce->name, method_name); - } + zephir_throw_exception_format(spl_ce_RuntimeException, "Call to undefined method %s::%s()", ce->name, method_name); break; default: @@ -10103,7 +8644,7 @@ static int zephir_require_ret(zval *return_value_ptr, const char *require_path) } #if PHP_VERSION_ID >= 70100 - new_op_array->scope = EG(fake_scope); + new_op_array->scope = EG(fake_scope) ? EG(fake_scope) : zend_get_executed_scope(); #else new_op_array->scope = EG(scope); #endif @@ -10154,7 +8695,7 @@ static int zephir_require_ret(zval *return_value_ptr, const char *require_path) static void zephir_basename(zval *return_value, zval *path) { - if (likely(Z_TYPE_P(path) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(path) == IS_STRING)) { zend_string *ret; ret = php_basename(Z_STRVAL_P(path), Z_STRLEN_P(path), NULL, 0); ZVAL_STR(return_value, ret); @@ -10180,23 +8721,23 @@ static int zephir_file_exists(zval *filename) return SUCCESS; } -static int zephir_compare_mtime(zval *filename1, zval *filename2 TSRMLS_DC) +static int zephir_compare_mtime(zval *filename1, zval *filename2) { php_stream_statbuf statbuffer1, statbuffer2; if (Z_TYPE_P(filename1) != IS_STRING || Z_TYPE_P(filename2) != IS_STRING) { - php_error_docref(NULL TSRMLS_CC, E_WARNING, "Invalid arguments supplied for compare_mtime()"); + php_error_docref(NULL, E_WARNING, "Invalid arguments supplied for compare_mtime()"); return 0; } if (php_stream_stat_path_ex(Z_STRVAL_P(filename1), 0, &statbuffer1, NULL)) { - php_error_docref(NULL TSRMLS_CC, E_WARNING, "mstat failed for %s", Z_STRVAL_P(filename1)); + php_error_docref(NULL, E_WARNING, "mstat failed for %s", Z_STRVAL_P(filename1)); return 0; } if (php_stream_stat_path_ex(Z_STRVAL_P(filename2), 0, &statbuffer2, NULL)) { - php_error_docref(NULL TSRMLS_CC, E_WARNING, "mstat failed for %s", Z_STRVAL_P(filename2)); + php_error_docref(NULL, E_WARNING, "mstat failed for %s", Z_STRVAL_P(filename2)); return 0; } @@ -10294,7 +8835,7 @@ static void zephir_file_get_contents(zval *return_value, zval *filename) php_stream_context *context = NULL; if (Z_TYPE_P(filename) != IS_STRING) { - php_error_docref(NULL TSRMLS_CC, E_WARNING, "Invalid arguments supplied for zephir_file_get_contents()"); + php_error_docref(NULL, E_WARNING, "Invalid arguments supplied for zephir_file_get_contents()"); RETVAL_FALSE; return; } @@ -10391,7 +8932,7 @@ static void zephir_file_put_contents(zval *return_value, zval *filename, zval *d static void zephir_filemtime(zval *return_value, zval *path) { - if (likely(Z_TYPE_P(path) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(path) == IS_STRING)) { php_stat(Z_STRVAL_P(path), (php_stat_len)(Z_STRLEN_P(path)), FS_MTIME, return_value); } else { ZVAL_FALSE(return_value); @@ -13218,7 +11759,7 @@ static void zephir_concat_function(zval *result, zval *op1, zval *op2) /* {{{ */ { zval tmp; /* Force separate zval, if op2=result will be reallocated */ - if (unlikely(result == op2)) { + if (UNEXPECTED(result == op2)) { ZVAL_COPY_VALUE(&tmp, op2); op2 = &tmp; } @@ -13408,7 +11949,7 @@ long zephir_mt_rand(long min, long max) return number; } -double zephir_ldexp(zval *value, zval *expval TSRMLS_DC) +double zephir_ldexp(zval *value, zval *expval) { int exp = (int) zephir_get_numberval(expval); @@ -13461,6 +12002,16 @@ static void zephir_var_export_ex(zval *return_value, zval *var) ZVAL_STR(return_value, buf.s); } +static void zephir_get_defined_vars(zval *return_value) +{ + zend_array *symtable = zend_rebuild_symbol_table(); + if (EXPECTED(symtable != NULL)) { + RETURN_ARR(zend_array_dup(symtable)); + } + + RETURN_NULL(); +} + @@ -13861,76 +12412,6 @@ static int phalcon_cssmin(zval *return_value, zval *style TSRMLS_DC); #endif /* PHALCON_ASSETS_FILTERS_CSSMINIFIER_H */ -/* jsmin.c - 2013-03-29 - -Copyright (c) 2002 Douglas Crockford (www.crockford.com) - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to deal in -the Software without restriction, including without limitation the rights to -use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies -of the Software, and to permit persons to whom the Software is furnished to do -so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -The Software shall be used for Good, not Evil. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. -*/ - -#ifndef PHALCON_ASSETS_FILTERS_CSSMINIFIER_H -#define PHALCON_ASSETS_FILTERS_CSSMINIFIER_H - - -static int phalcon_cssmin(zval *return_value, zval *style TSRMLS_DC); - -#endif /* PHALCON_ASSETS_FILTERS_CSSMINIFIER_H */ - - -/* jsmin.c - 2013-03-29 - -Copyright (c) 2002 Douglas Crockford (www.crockford.com) - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to deal in -the Software without restriction, including without limitation the rights to -use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies -of the Software, and to permit persons to whom the Software is furnished to do -so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -The Software shall be used for Good, not Evil. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. -*/ - -#ifndef PHALCON_ASSETS_FILTERS_JSMINIFIER_H -#define PHALCON_ASSETS_FILTERS_JSMINIFIER_H - - -static int phalcon_jsmin(zval *return_value, zval *script TSRMLS_DC); - -#endif /* PHALCON_ASSETS_FILTERS_JSMINIFIER_H */ - - #ifdef HAVE_CONFIG_H #endif @@ -14176,11 +12657,11 @@ static PHP_METHOD(Phalcon_Application, getModule) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(&name, name_param); } else { ZEPHIR_INIT_VAR(&name); @@ -14195,7 +12676,7 @@ static PHP_METHOD(Phalcon_Application, getModule) { object_init_ex(&_1$$3, phalcon_application_exception_ce); ZEPHIR_INIT_VAR(&_2$$3); ZEPHIR_CONCAT_SVS(&_2$$3, "Module '", &name, "' isn't registered in the application container"); - ZEPHIR_CALL_METHOD(NULL, &_1$$3, "__construct", NULL, 9, &_2$$3); + ZEPHIR_CALL_METHOD(NULL, &_1$$3, "__construct", NULL, 4, &_2$$3); zephir_check_call_status(); zephir_throw_exception_debug(&_1$$3, "phalcon/application.zep", 123 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -14216,11 +12697,11 @@ static PHP_METHOD(Phalcon_Application, setDefaultModule) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &defaultModule_param); - if (unlikely(Z_TYPE_P(defaultModule_param) != IS_STRING && Z_TYPE_P(defaultModule_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(defaultModule_param) != IS_STRING && Z_TYPE_P(defaultModule_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'defaultModule' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(defaultModule_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(defaultModule_param) == IS_STRING)) { zephir_get_strval(&defaultModule, defaultModule_param); } else { ZEPHIR_INIT_VAR(&defaultModule); @@ -14349,7 +12830,7 @@ static PHP_METHOD(Phalcon_Config, offsetExists) { ZEPHIR_SEPARATE_PARAM(index); - ZEPHIR_CALL_FUNCTION(&_0, "strval", NULL, 18, index); + ZEPHIR_CALL_FUNCTION(&_0, "strval", NULL, 13, index); zephir_check_call_status(); ZEPHIR_CPY_WRT(index, &_0); RETURN_MM_BOOL(zephir_isset_property_zval(this_ptr, index TSRMLS_CC)); @@ -14378,7 +12859,7 @@ static PHP_METHOD(Phalcon_Config, get) { } - ZEPHIR_CALL_FUNCTION(&_0, "strval", NULL, 18, index); + ZEPHIR_CALL_FUNCTION(&_0, "strval", NULL, 13, index); zephir_check_call_status(); ZEPHIR_CPY_WRT(index, &_0); if (zephir_isset_property_zval(this_ptr, index TSRMLS_CC)) { @@ -14407,7 +12888,7 @@ static PHP_METHOD(Phalcon_Config, offsetGet) { ZEPHIR_SEPARATE_PARAM(index); - ZEPHIR_CALL_FUNCTION(&_0, "strval", NULL, 18, index); + ZEPHIR_CALL_FUNCTION(&_0, "strval", NULL, 13, index); zephir_check_call_status(); ZEPHIR_CPY_WRT(index, &_0); ZEPHIR_OBS_VAR(&_1); @@ -14433,13 +12914,13 @@ static PHP_METHOD(Phalcon_Config, offsetSet) { ZEPHIR_SEPARATE_PARAM(index); - ZEPHIR_CALL_FUNCTION(&_0, "strval", NULL, 18, index); + ZEPHIR_CALL_FUNCTION(&_0, "strval", NULL, 13, index); zephir_check_call_status(); ZEPHIR_CPY_WRT(index, &_0); if (Z_TYPE_P(value) == IS_ARRAY) { ZEPHIR_INIT_VAR(&_1$$3); object_init_ex(&_1$$3, phalcon_config_ce); - ZEPHIR_CALL_METHOD(NULL, &_1$$3, "__construct", NULL, 19, value); + ZEPHIR_CALL_METHOD(NULL, &_1$$3, "__construct", NULL, 14, value); zephir_check_call_status(); zephir_update_property_zval_zval(this_ptr, index, &_1$$3 TSRMLS_CC); } else { @@ -14465,7 +12946,7 @@ static PHP_METHOD(Phalcon_Config, offsetUnset) { ZEPHIR_SEPARATE_PARAM(index); - ZEPHIR_CALL_FUNCTION(&_0, "strval", NULL, 18, index); + ZEPHIR_CALL_FUNCTION(&_0, "strval", NULL, 13, index); zephir_check_call_status(); ZEPHIR_CPY_WRT(index, &_0); zephir_update_property_zval_zval(this_ptr, index, &__$null TSRMLS_CC); @@ -14486,7 +12967,7 @@ static PHP_METHOD(Phalcon_Config, merge) { - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_merge", NULL, 20, config); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_merge", NULL, 15, config); zephir_check_call_status(); RETURN_MM(); @@ -14510,7 +12991,7 @@ static PHP_METHOD(Phalcon_Config, toArray) { ZEPHIR_INIT_VAR(&arrayConfig); array_init(&arrayConfig); - ZEPHIR_CALL_FUNCTION(&_0, "get_object_vars", NULL, 21, this_ptr); + ZEPHIR_CALL_FUNCTION(&_0, "get_object_vars", NULL, 16, this_ptr); zephir_check_call_status(); zephir_is_iterable(&_0, 0, "phalcon/config.zep", 196); ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&_0), _2, _3, _1) @@ -14551,7 +13032,7 @@ static PHP_METHOD(Phalcon_Config, count) { ZEPHIR_MM_GROW(); - ZEPHIR_CALL_FUNCTION(&_0, "get_object_vars", NULL, 21, this_ptr); + ZEPHIR_CALL_FUNCTION(&_0, "get_object_vars", NULL, 16, this_ptr); zephir_check_call_status(); RETURN_MM_LONG(zephir_fast_count_int(&_0 TSRMLS_CC)); @@ -14573,7 +13054,7 @@ static PHP_METHOD(Phalcon_Config, __set_state) { object_init_ex(return_value, phalcon_config_ce); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 19, &data); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 14, &data); zephir_check_call_status(); RETURN_MM(); @@ -14614,7 +13095,7 @@ static PHP_METHOD(Phalcon_Config, _merge) { } ZEPHIR_CALL_METHOD(&number, instance, "count", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_0, "get_object_vars", NULL, 21, config); + ZEPHIR_CALL_FUNCTION(&_0, "get_object_vars", NULL, 16, config); zephir_check_call_status(); zephir_is_iterable(&_0, 0, "phalcon/config.zep", 261); ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&_0), _2, _3, _1) @@ -14639,14 +13120,14 @@ static PHP_METHOD(Phalcon_Config, _merge) { _5$$6 = zephir_instance_of_ev(&value, phalcon_config_ce TSRMLS_CC); } if (_5$$6) { - ZEPHIR_CALL_METHOD(NULL, this_ptr, "_merge", &_6, 20, &value, &localObject); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "_merge", &_6, 15, &value, &localObject); zephir_check_call_status(); continue; } } } if (zephir_is_numeric(&key)) { - ZEPHIR_CALL_FUNCTION(&key, "strval", &_7, 18, &number); + ZEPHIR_CALL_FUNCTION(&key, "strval", &_7, 13, &number); zephir_check_call_status(); ZEPHIR_SEPARATE(&number); zephir_increment(&number); @@ -14709,7 +13190,7 @@ static PHP_METHOD(Phalcon_Crypt, setPadding) { zephir_fetch_params(0, 1, 0, &scheme_param); - if (unlikely(Z_TYPE_P(scheme_param) != IS_LONG)) { + if (UNEXPECTED(Z_TYPE_P(scheme_param) != IS_LONG)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'scheme' must be a int") TSRMLS_CC); RETURN_NULL(); } @@ -14734,11 +13215,11 @@ static PHP_METHOD(Phalcon_Crypt, setCipher) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &cipher_param); - if (unlikely(Z_TYPE_P(cipher_param) != IS_STRING && Z_TYPE_P(cipher_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(cipher_param) != IS_STRING && Z_TYPE_P(cipher_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'cipher' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(cipher_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(cipher_param) == IS_STRING)) { zephir_get_strval(&cipher, cipher_param); } else { ZEPHIR_INIT_VAR(&cipher); @@ -14771,11 +13252,11 @@ static PHP_METHOD(Phalcon_Crypt, setKey) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &key_param); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(&key, key_param); } else { ZEPHIR_INIT_VAR(&key); @@ -14835,22 +13316,22 @@ static PHP_METHOD(Phalcon_Crypt, _cryptPadText) { zephir_fetch_params(1, 4, 0, &text_param, &mode_param, &blockSize_param, &paddingType_param); zephir_get_strval(&text, text_param); - if (unlikely(Z_TYPE_P(mode_param) != IS_STRING && Z_TYPE_P(mode_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(mode_param) != IS_STRING && Z_TYPE_P(mode_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'mode' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(mode_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(mode_param) == IS_STRING)) { zephir_get_strval(&mode, mode_param); } else { ZEPHIR_INIT_VAR(&mode); ZVAL_EMPTY_STRING(&mode); } - if (unlikely(Z_TYPE_P(blockSize_param) != IS_LONG)) { + if (UNEXPECTED(Z_TYPE_P(blockSize_param) != IS_LONG)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'blockSize' must be a int") TSRMLS_CC); RETURN_MM_NULL(); } blockSize = Z_LVAL_P(blockSize_param); - if (unlikely(Z_TYPE_P(paddingType_param) != IS_LONG)) { + if (UNEXPECTED(Z_TYPE_P(paddingType_param) != IS_LONG)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'paddingType' must be a int") TSRMLS_CC); RETURN_MM_NULL(); } @@ -14873,13 +13354,13 @@ static PHP_METHOD(Phalcon_Crypt, _cryptPadText) { do { if (paddingType == 1) { ZVAL_LONG(&_1$$5, 0); - ZEPHIR_CALL_FUNCTION(&_2$$5, "chr", &_3, 138, &_1$$5); + ZEPHIR_CALL_FUNCTION(&_2$$5, "chr", &_3, 126, &_1$$5); zephir_check_call_status(); ZVAL_LONG(&_1$$5, (paddingSize - 1)); - ZEPHIR_CALL_FUNCTION(&_4$$5, "str_repeat", &_5, 139, &_2$$5, &_1$$5); + ZEPHIR_CALL_FUNCTION(&_4$$5, "str_repeat", &_5, 127, &_2$$5, &_1$$5); zephir_check_call_status(); ZVAL_LONG(&_1$$5, paddingSize); - ZEPHIR_CALL_FUNCTION(&_6$$5, "chr", &_3, 138, &_1$$5); + ZEPHIR_CALL_FUNCTION(&_6$$5, "chr", &_3, 126, &_1$$5); zephir_check_call_status(); ZEPHIR_INIT_NVAR(&padding); ZEPHIR_CONCAT_VV(&padding, &_4$$5, &_6$$5); @@ -14887,10 +13368,10 @@ static PHP_METHOD(Phalcon_Crypt, _cryptPadText) { } if (paddingType == 2) { ZVAL_LONG(&_7$$6, paddingSize); - ZEPHIR_CALL_FUNCTION(&_8$$6, "chr", &_3, 138, &_7$$6); + ZEPHIR_CALL_FUNCTION(&_8$$6, "chr", &_3, 126, &_7$$6); zephir_check_call_status(); ZVAL_LONG(&_7$$6, paddingSize); - ZEPHIR_CALL_FUNCTION(&padding, "str_repeat", &_5, 139, &_8$$6, &_7$$6); + ZEPHIR_CALL_FUNCTION(&padding, "str_repeat", &_5, 127, &_8$$6, &_7$$6); zephir_check_call_status(); break; } @@ -14911,28 +13392,28 @@ static PHP_METHOD(Phalcon_Crypt, _cryptPadText) { _9$$7 = 1; } i = _10$$7; - ZEPHIR_CALL_FUNCTION(&_12$$8, "rand", &_13, 115); + ZEPHIR_CALL_FUNCTION(&_12$$8, "rand", &_13, 104); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_14$$8, "chr", &_3, 138, &_12$$8); + ZEPHIR_CALL_FUNCTION(&_14$$8, "chr", &_3, 126, &_12$$8); zephir_check_call_status(); zephir_concat_self(&padding, &_14$$8 TSRMLS_CC); } } ZVAL_LONG(&_15$$7, paddingSize); - ZEPHIR_CALL_FUNCTION(&_16$$7, "chr", &_3, 138, &_15$$7); + ZEPHIR_CALL_FUNCTION(&_16$$7, "chr", &_3, 126, &_15$$7); zephir_check_call_status(); zephir_concat_self(&padding, &_16$$7 TSRMLS_CC); break; } if (paddingType == 4) { ZVAL_LONG(&_17$$9, 0x80); - ZEPHIR_CALL_FUNCTION(&_18$$9, "chr", &_3, 138, &_17$$9); + ZEPHIR_CALL_FUNCTION(&_18$$9, "chr", &_3, 126, &_17$$9); zephir_check_call_status(); ZVAL_LONG(&_17$$9, 0); - ZEPHIR_CALL_FUNCTION(&_19$$9, "chr", &_3, 138, &_17$$9); + ZEPHIR_CALL_FUNCTION(&_19$$9, "chr", &_3, 126, &_17$$9); zephir_check_call_status(); ZVAL_LONG(&_17$$9, (paddingSize - 1)); - ZEPHIR_CALL_FUNCTION(&_20$$9, "str_repeat", &_5, 139, &_19$$9, &_17$$9); + ZEPHIR_CALL_FUNCTION(&_20$$9, "str_repeat", &_5, 127, &_19$$9, &_17$$9); zephir_check_call_status(); ZEPHIR_INIT_NVAR(&padding); ZEPHIR_CONCAT_VV(&padding, &_18$$9, &_20$$9); @@ -14940,10 +13421,10 @@ static PHP_METHOD(Phalcon_Crypt, _cryptPadText) { } if (paddingType == 5) { ZVAL_LONG(&_21$$10, 0); - ZEPHIR_CALL_FUNCTION(&_22$$10, "chr", &_3, 138, &_21$$10); + ZEPHIR_CALL_FUNCTION(&_22$$10, "chr", &_3, 126, &_21$$10); zephir_check_call_status(); ZVAL_LONG(&_21$$10, paddingSize); - ZEPHIR_CALL_FUNCTION(&padding, "str_repeat", &_5, 139, &_22$$10, &_21$$10); + ZEPHIR_CALL_FUNCTION(&padding, "str_repeat", &_5, 127, &_22$$10, &_21$$10); zephir_check_call_status(); break; } @@ -14951,7 +13432,7 @@ static PHP_METHOD(Phalcon_Crypt, _cryptPadText) { ZEPHIR_INIT_VAR(&_23$$11); ZVAL_STRING(&_23$$11, " "); ZVAL_LONG(&_24$$11, paddingSize); - ZEPHIR_CALL_FUNCTION(&padding, "str_repeat", &_5, 139, &_23$$11, &_24$$11); + ZEPHIR_CALL_FUNCTION(&padding, "str_repeat", &_5, 127, &_23$$11, &_24$$11); zephir_check_call_status(); break; } @@ -15014,22 +13495,22 @@ static PHP_METHOD(Phalcon_Crypt, _cryptUnpadText) { zephir_fetch_params(1, 4, 0, &text_param, &mode_param, &blockSize_param, &paddingType_param); zephir_get_strval(&text, text_param); - if (unlikely(Z_TYPE_P(mode_param) != IS_STRING && Z_TYPE_P(mode_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(mode_param) != IS_STRING && Z_TYPE_P(mode_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'mode' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(mode_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(mode_param) == IS_STRING)) { zephir_get_strval(&mode, mode_param); } else { ZEPHIR_INIT_VAR(&mode); ZVAL_EMPTY_STRING(&mode); } - if (unlikely(Z_TYPE_P(blockSize_param) != IS_LONG)) { + if (UNEXPECTED(Z_TYPE_P(blockSize_param) != IS_LONG)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'blockSize' must be a int") TSRMLS_CC); RETURN_MM_NULL(); } blockSize = Z_LVAL_P(blockSize_param); - if (unlikely(Z_TYPE_P(paddingType_param) != IS_LONG)) { + if (UNEXPECTED(Z_TYPE_P(paddingType_param) != IS_LONG)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'paddingType' must be a int") TSRMLS_CC); RETURN_MM_NULL(); } @@ -15057,16 +13538,16 @@ static PHP_METHOD(Phalcon_Crypt, _cryptUnpadText) { ZVAL_LONG(&_4$$4, 1); ZEPHIR_INIT_VAR(&last); zephir_substr(&last, &text, zephir_get_intval(&_3$$4), 1 , 0); - ZEPHIR_CALL_FUNCTION(&_5$$4, "ord", &_6, 140, &last); + ZEPHIR_CALL_FUNCTION(&_5$$4, "ord", &_6, 128, &last); zephir_check_call_status(); ord = zephir_get_intval(&_5$$4); if (ord <= blockSize) { paddingSize = ord; ZVAL_LONG(&_7$$5, 0); - ZEPHIR_CALL_FUNCTION(&_8$$5, "chr", &_9, 138, &_7$$5); + ZEPHIR_CALL_FUNCTION(&_8$$5, "chr", &_9, 126, &_7$$5); zephir_check_call_status(); ZVAL_LONG(&_7$$5, (paddingSize - 1)); - ZEPHIR_CALL_FUNCTION(&_10$$5, "str_repeat", &_11, 139, &_8$$5, &_7$$5); + ZEPHIR_CALL_FUNCTION(&_10$$5, "str_repeat", &_11, 127, &_8$$5, &_7$$5); zephir_check_call_status(); ZEPHIR_INIT_VAR(&padding); ZEPHIR_CONCAT_VV(&padding, &_10$$5, &last); @@ -15084,16 +13565,16 @@ static PHP_METHOD(Phalcon_Crypt, _cryptUnpadText) { ZVAL_LONG(&_14$$7, 1); ZEPHIR_INIT_NVAR(&last); zephir_substr(&last, &text, zephir_get_intval(&_13$$7), 1 , 0); - ZEPHIR_CALL_FUNCTION(&_15$$7, "ord", &_6, 140, &last); + ZEPHIR_CALL_FUNCTION(&_15$$7, "ord", &_6, 128, &last); zephir_check_call_status(); ord = zephir_get_intval(&_15$$7); if (ord <= blockSize) { paddingSize = ord; ZVAL_LONG(&_16$$8, paddingSize); - ZEPHIR_CALL_FUNCTION(&_17$$8, "chr", &_9, 138, &_16$$8); + ZEPHIR_CALL_FUNCTION(&_17$$8, "chr", &_9, 126, &_16$$8); zephir_check_call_status(); ZVAL_LONG(&_16$$8, paddingSize); - ZEPHIR_CALL_FUNCTION(&padding, "str_repeat", &_11, 139, &_17$$8, &_16$$8); + ZEPHIR_CALL_FUNCTION(&padding, "str_repeat", &_11, 127, &_17$$8, &_16$$8); zephir_check_call_status(); ZVAL_LONG(&_16$$8, (length - paddingSize)); ZEPHIR_INIT_VAR(&_18$$8); @@ -15109,7 +13590,7 @@ static PHP_METHOD(Phalcon_Crypt, _cryptUnpadText) { ZVAL_LONG(&_20$$10, 1); ZEPHIR_INIT_NVAR(&last); zephir_substr(&last, &text, zephir_get_intval(&_19$$10), 1 , 0); - ZEPHIR_CALL_FUNCTION(&_21$$10, "ord", &_6, 140, &last); + ZEPHIR_CALL_FUNCTION(&_21$$10, "ord", &_6, 128, &last); zephir_check_call_status(); paddingSize = zephir_get_intval(&_21$$10); break; @@ -15239,11 +13720,11 @@ static PHP_METHOD(Phalcon_Crypt, encrypt) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &text_param, &key_param); - if (unlikely(Z_TYPE_P(text_param) != IS_STRING && Z_TYPE_P(text_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(text_param) != IS_STRING && Z_TYPE_P(text_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'text' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(text_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(text_param) == IS_STRING)) { zephir_get_strval(&text, text_param); } else { ZEPHIR_INIT_VAR(&text); @@ -15253,11 +13734,11 @@ static PHP_METHOD(Phalcon_Crypt, encrypt) { ZEPHIR_INIT_VAR(&key); ZVAL_STRING(&key, ""); } else { - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(&key, key_param); } else { ZEPHIR_INIT_VAR(&key); @@ -15284,20 +13765,20 @@ static PHP_METHOD(Phalcon_Crypt, encrypt) { zephir_read_property(&cipher, this_ptr, SL("_cipher"), PH_NOISY_CC); ZEPHIR_INIT_VAR(&_0); ZVAL_STRING(&_0, "-"); - ZEPHIR_CALL_FUNCTION(&_1, "strrpos", NULL, 141, &cipher, &_0); + ZEPHIR_CALL_FUNCTION(&_1, "strrpos", NULL, 129, &cipher, &_0); zephir_check_call_status(); ZVAL_LONG(&_2, (zephir_get_numberval(&_1) - zephir_fast_strlen_ev(&cipher))); ZEPHIR_INIT_NVAR(&_0); zephir_substr(&_0, &cipher, zephir_get_intval(&_2), 0, ZEPHIR_SUBSTR_NO_LENGTH); ZEPHIR_INIT_VAR(&mode); zephir_fast_strtolower(&mode, &_0); - ZEPHIR_CALL_FUNCTION(&_3, "openssl_get_cipher_methods", NULL, 142, &__$true); + ZEPHIR_CALL_FUNCTION(&_3, "openssl_get_cipher_methods", NULL, 130, &__$true); zephir_check_call_status(); if (!(zephir_fast_in_array(&cipher, &_3 TSRMLS_CC))) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_crypt_exception_ce, "Cipher algorithm is unknown", "phalcon/crypt.zep", 297); return; } - ZEPHIR_CALL_FUNCTION(&ivSize, "openssl_cipher_iv_length", &_4, 143, &cipher); + ZEPHIR_CALL_FUNCTION(&ivSize, "openssl_cipher_iv_length", &_4, 131, &cipher); zephir_check_call_status(); if (ZEPHIR_GT_LONG(&ivSize, 0)) { ZEPHIR_CPY_WRT(&blockSize, &ivSize); @@ -15306,12 +13787,12 @@ static PHP_METHOD(Phalcon_Crypt, encrypt) { ZEPHIR_CONCAT_SV(&_5$$9, "-", &mode); ZEPHIR_INIT_VAR(&_6$$9); ZVAL_STRING(&_6$$9, ""); - ZEPHIR_CALL_FUNCTION(&_7$$9, "str_ireplace", NULL, 144, &_5$$9, &_6$$9, &cipher); + ZEPHIR_CALL_FUNCTION(&_7$$9, "str_ireplace", NULL, 132, &_5$$9, &_6$$9, &cipher); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&blockSize, "openssl_cipher_iv_length", &_4, 143, &_7$$9); + ZEPHIR_CALL_FUNCTION(&blockSize, "openssl_cipher_iv_length", &_4, 131, &_7$$9); zephir_check_call_status(); } - ZEPHIR_CALL_FUNCTION(&iv, "openssl_random_pseudo_bytes", NULL, 145, &ivSize); + ZEPHIR_CALL_FUNCTION(&iv, "openssl_random_pseudo_bytes", NULL, 133, &ivSize); zephir_check_call_status(); ZEPHIR_OBS_VAR(&paddingType); zephir_read_property(&paddingType, this_ptr, SL("_padding"), PH_NOISY_CC); @@ -15330,7 +13811,7 @@ static PHP_METHOD(Phalcon_Crypt, encrypt) { ZEPHIR_CPY_WRT(&padded, &text); } ZVAL_LONG(&_10, 1); - ZEPHIR_CALL_FUNCTION(&_11, "openssl_encrypt", NULL, 146, &padded, &cipher, &encryptKey, &_10, &iv); + ZEPHIR_CALL_FUNCTION(&_11, "openssl_encrypt", NULL, 134, &padded, &cipher, &encryptKey, &_10, &iv); zephir_check_call_status(); ZEPHIR_CONCAT_VV(return_value, &iv, &_11); RETURN_MM(); @@ -15372,11 +13853,11 @@ static PHP_METHOD(Phalcon_Crypt, decrypt) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &text_param, &key); - if (unlikely(Z_TYPE_P(text_param) != IS_STRING && Z_TYPE_P(text_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(text_param) != IS_STRING && Z_TYPE_P(text_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'text' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(text_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(text_param) == IS_STRING)) { zephir_get_strval(&text, text_param); } else { ZEPHIR_INIT_VAR(&text); @@ -15406,20 +13887,20 @@ static PHP_METHOD(Phalcon_Crypt, decrypt) { zephir_read_property(&cipher, this_ptr, SL("_cipher"), PH_NOISY_CC); ZEPHIR_INIT_VAR(&_0); ZVAL_STRING(&_0, "-"); - ZEPHIR_CALL_FUNCTION(&_1, "strrpos", NULL, 141, &cipher, &_0); + ZEPHIR_CALL_FUNCTION(&_1, "strrpos", NULL, 129, &cipher, &_0); zephir_check_call_status(); ZVAL_LONG(&_2, (zephir_get_numberval(&_1) - zephir_fast_strlen_ev(&cipher))); ZEPHIR_INIT_NVAR(&_0); zephir_substr(&_0, &cipher, zephir_get_intval(&_2), 0, ZEPHIR_SUBSTR_NO_LENGTH); ZEPHIR_INIT_VAR(&mode); zephir_fast_strtolower(&mode, &_0); - ZEPHIR_CALL_FUNCTION(&_3, "openssl_get_cipher_methods", NULL, 142, &__$true); + ZEPHIR_CALL_FUNCTION(&_3, "openssl_get_cipher_methods", NULL, 130, &__$true); zephir_check_call_status(); if (!(zephir_fast_in_array(&cipher, &_3 TSRMLS_CC))) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_crypt_exception_ce, "Cipher algorithm is unknown", "phalcon/crypt.zep", 348); return; } - ZEPHIR_CALL_FUNCTION(&ivSize, "openssl_cipher_iv_length", &_4, 143, &cipher); + ZEPHIR_CALL_FUNCTION(&ivSize, "openssl_cipher_iv_length", &_4, 131, &cipher); zephir_check_call_status(); if (ZEPHIR_GT_LONG(&ivSize, 0)) { ZEPHIR_CPY_WRT(&blockSize, &ivSize); @@ -15428,9 +13909,9 @@ static PHP_METHOD(Phalcon_Crypt, decrypt) { ZEPHIR_CONCAT_SV(&_5$$9, "-", &mode); ZEPHIR_INIT_VAR(&_6$$9); ZVAL_STRING(&_6$$9, ""); - ZEPHIR_CALL_FUNCTION(&_7$$9, "str_ireplace", NULL, 144, &_5$$9, &_6$$9, &cipher); + ZEPHIR_CALL_FUNCTION(&_7$$9, "str_ireplace", NULL, 132, &_5$$9, &_6$$9, &cipher); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&blockSize, "openssl_cipher_iv_length", &_4, 143, &_7$$9); + ZEPHIR_CALL_FUNCTION(&blockSize, "openssl_cipher_iv_length", &_4, 131, &_7$$9); zephir_check_call_status(); } ZEPHIR_INIT_VAR(&_8); @@ -15439,7 +13920,7 @@ static PHP_METHOD(Phalcon_Crypt, decrypt) { ZEPHIR_INIT_VAR(&_10); zephir_substr(&_10, &text, 0 , zephir_get_intval(&ivSize), 0); ZVAL_LONG(&_11, 1); - ZEPHIR_CALL_FUNCTION(&decrypted, "openssl_decrypt", NULL, 147, &_8, &cipher, &decryptKey, &_11, &_10); + ZEPHIR_CALL_FUNCTION(&decrypted, "openssl_decrypt", NULL, 135, &_8, &cipher, &decryptKey, &_11, &_10); zephir_check_call_status(); ZEPHIR_OBS_VAR(&paddingType); zephir_read_property(&paddingType, this_ptr, SL("_padding"), PH_NOISY_CC); @@ -15477,11 +13958,11 @@ static PHP_METHOD(Phalcon_Crypt, encryptBase64) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &text_param, &key, &safe_param); - if (unlikely(Z_TYPE_P(text_param) != IS_STRING && Z_TYPE_P(text_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(text_param) != IS_STRING && Z_TYPE_P(text_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'text' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(text_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(text_param) == IS_STRING)) { zephir_get_strval(&text, text_param); } else { ZEPHIR_INIT_VAR(&text); @@ -15494,7 +13975,7 @@ static PHP_METHOD(Phalcon_Crypt, encryptBase64) { if (!safe_param) { safe = 0; } else { - if (unlikely(Z_TYPE_P(safe_param) != IS_TRUE && Z_TYPE_P(safe_param) != IS_FALSE)) { + if (UNEXPECTED(Z_TYPE_P(safe_param) != IS_TRUE && Z_TYPE_P(safe_param) != IS_FALSE)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'safe' must be a bool") TSRMLS_CC); RETURN_MM_NULL(); } @@ -15505,19 +13986,19 @@ static PHP_METHOD(Phalcon_Crypt, encryptBase64) { if (safe == 1) { ZEPHIR_CALL_METHOD(&_0$$3, this_ptr, "encrypt", &_1, 0, &text, key); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_2$$3, "base64_encode", &_3, 120, &_0$$3); + ZEPHIR_CALL_FUNCTION(&_2$$3, "base64_encode", &_3, 109, &_0$$3); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_4$$3); ZVAL_STRING(&_4$$3, "+/"); ZEPHIR_INIT_VAR(&_5$$3); ZVAL_STRING(&_5$$3, "-_"); - ZEPHIR_RETURN_CALL_FUNCTION("strtr", NULL, 26, &_2$$3, &_4$$3, &_5$$3); + ZEPHIR_RETURN_CALL_FUNCTION("strtr", NULL, 21, &_2$$3, &_4$$3, &_5$$3); zephir_check_call_status(); RETURN_MM(); } ZEPHIR_CALL_METHOD(&_6, this_ptr, "encrypt", &_1, 0, &text, key); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_FUNCTION("base64_encode", &_3, 120, &_6); + ZEPHIR_RETURN_CALL_FUNCTION("base64_encode", &_3, 109, &_6); zephir_check_call_status(); RETURN_MM(); @@ -15544,11 +14025,11 @@ static PHP_METHOD(Phalcon_Crypt, decryptBase64) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &text_param, &key, &safe_param); - if (unlikely(Z_TYPE_P(text_param) != IS_STRING && Z_TYPE_P(text_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(text_param) != IS_STRING && Z_TYPE_P(text_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'text' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(text_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(text_param) == IS_STRING)) { zephir_get_strval(&text, text_param); } else { ZEPHIR_INIT_VAR(&text); @@ -15561,7 +14042,7 @@ static PHP_METHOD(Phalcon_Crypt, decryptBase64) { if (!safe_param) { safe = 0; } else { - if (unlikely(Z_TYPE_P(safe_param) != IS_TRUE && Z_TYPE_P(safe_param) != IS_FALSE)) { + if (UNEXPECTED(Z_TYPE_P(safe_param) != IS_TRUE && Z_TYPE_P(safe_param) != IS_FALSE)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'safe' must be a bool") TSRMLS_CC); RETURN_MM_NULL(); } @@ -15574,15 +14055,15 @@ static PHP_METHOD(Phalcon_Crypt, decryptBase64) { ZVAL_STRING(&_0$$3, "-_"); ZEPHIR_INIT_VAR(&_1$$3); ZVAL_STRING(&_1$$3, "+/"); - ZEPHIR_CALL_FUNCTION(&_2$$3, "strtr", NULL, 26, &text, &_0$$3, &_1$$3); + ZEPHIR_CALL_FUNCTION(&_2$$3, "strtr", NULL, 21, &text, &_0$$3, &_1$$3); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_3$$3, "base64_decode", &_4, 121, &_2$$3); + ZEPHIR_CALL_FUNCTION(&_3$$3, "base64_decode", &_4, 110, &_2$$3); zephir_check_call_status(); ZEPHIR_RETURN_CALL_METHOD(this_ptr, "decrypt", &_5, 0, &_3$$3, key); zephir_check_call_status(); RETURN_MM(); } - ZEPHIR_CALL_FUNCTION(&_6, "base64_decode", &_4, 121, &text); + ZEPHIR_CALL_FUNCTION(&_6, "base64_decode", &_4, 110, &text); zephir_check_call_status(); ZEPHIR_RETURN_CALL_METHOD(this_ptr, "decrypt", &_5, 0, &_6, key); zephir_check_call_status(); @@ -15600,7 +14081,7 @@ static PHP_METHOD(Phalcon_Crypt, getAvailableCiphers) { ZEPHIR_MM_GROW(); - ZEPHIR_RETURN_CALL_FUNCTION("openssl_get_cipher_methods", NULL, 142, &__$true); + ZEPHIR_RETURN_CALL_FUNCTION("openssl_get_cipher_methods", NULL, 130, &__$true); zephir_check_call_status(); RETURN_MM(); @@ -15767,11 +14248,11 @@ static PHP_METHOD(Phalcon_Debug, setUri) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &uri_param); - if (unlikely(Z_TYPE_P(uri_param) != IS_STRING && Z_TYPE_P(uri_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(uri_param) != IS_STRING && Z_TYPE_P(uri_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'uri' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(uri_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(uri_param) == IS_STRING)) { zephir_get_strval(&uri, uri_param); } else { ZEPHIR_INIT_VAR(&uri); @@ -15906,7 +14387,7 @@ static PHP_METHOD(Phalcon_Debug, listenExceptions) { ZEPHIR_INIT_VAR(&_1); ZVAL_STRING(&_1, "onUncaughtException"); zephir_array_fast_append(&_0, &_1); - ZEPHIR_CALL_FUNCTION(NULL, "set_exception_handler", NULL, 155, &_0); + ZEPHIR_CALL_FUNCTION(NULL, "set_exception_handler", NULL, 142, &_0); zephir_check_call_status(); RETURN_THIS(); @@ -15931,7 +14412,7 @@ static PHP_METHOD(Phalcon_Debug, listenLowSeverity) { ZEPHIR_INIT_VAR(&_1); ZVAL_STRING(&_1, "onUncaughtLowSeverity"); zephir_array_fast_append(&_0, &_1); - ZEPHIR_CALL_FUNCTION(NULL, "set_error_handler", NULL, 156, &_0); + ZEPHIR_CALL_FUNCTION(NULL, "set_error_handler", NULL, 143, &_0); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_2); zephir_create_array(&_2, 2, 0 TSRMLS_CC); @@ -15939,7 +14420,7 @@ static PHP_METHOD(Phalcon_Debug, listenLowSeverity) { ZEPHIR_INIT_NVAR(&_1); ZVAL_STRING(&_1, "onUncaughtException"); zephir_array_fast_append(&_2, &_1); - ZEPHIR_CALL_FUNCTION(NULL, "set_exception_handler", NULL, 155, &_2); + ZEPHIR_CALL_FUNCTION(NULL, "set_exception_handler", NULL, 142, &_2); zephir_check_call_status(); RETURN_THIS(); @@ -15983,7 +14464,7 @@ static PHP_METHOD(Phalcon_Debug, debugVar) { ZEPHIR_INIT_VAR(&_0); zephir_create_array(&_0, 3, 0 TSRMLS_CC); zephir_array_fast_append(&_0, varz); - ZEPHIR_CALL_FUNCTION(&_1, "debug_backtrace", NULL, 157); + ZEPHIR_CALL_FUNCTION(&_1, "debug_backtrace", NULL, 144); zephir_check_call_status(); zephir_array_fast_append(&_0, &_1); ZEPHIR_INIT_VAR(&_2); @@ -16035,7 +14516,7 @@ static PHP_METHOD(Phalcon_Debug, _escapeString) { ZVAL_LONG(&_3$$3, 2); ZEPHIR_INIT_VAR(&_4$$3); ZVAL_STRING(&_4$$3, "utf-8"); - ZEPHIR_RETURN_CALL_FUNCTION("htmlentities", NULL, 158, &_0$$3, &_3$$3, &_4$$3); + ZEPHIR_RETURN_CALL_FUNCTION("htmlentities", NULL, 145, &_0$$3, &_3$$3, &_4$$3); zephir_check_call_status(); RETURN_MM(); } @@ -16111,7 +14592,7 @@ static PHP_METHOD(Phalcon_Debug, _getArrayDump) { zephir_check_call_status(); } else if (Z_TYPE_P(&v) == IS_ARRAY) { ZVAL_LONG(&_6$$8, (zephir_get_numberval(n) + 1)); - ZEPHIR_CALL_METHOD(&_5$$8, this_ptr, "_getarraydump", &_7, 159, &v, &_6$$8); + ZEPHIR_CALL_METHOD(&_5$$8, this_ptr, "_getarraydump", &_7, 146, &v, &_6$$8); zephir_check_call_status(); ZEPHIR_INIT_NVAR(&varDump); ZEPHIR_CONCAT_SVS(&varDump, "Array(", &_5$$8, ")"); @@ -16187,7 +14668,7 @@ static PHP_METHOD(Phalcon_Debug, _getVarDump) { } } if (Z_TYPE_P(variable) == IS_ARRAY) { - ZEPHIR_CALL_METHOD(&_2$$11, this_ptr, "_getarraydump", &_1, 159, variable); + ZEPHIR_CALL_METHOD(&_2$$11, this_ptr, "_getarraydump", &_1, 146, variable); zephir_check_call_status(); ZEPHIR_CONCAT_SVS(return_value, "Array(", &_2$$11, ")"); RETURN_MM(); @@ -16213,7 +14694,7 @@ static PHP_METHOD(Phalcon_Debug, getMajorVersion) { ZEPHIR_MM_GROW(); - ZEPHIR_CALL_CE_STATIC(&_0, phalcon_version_ce, "get", &_1, 160); + ZEPHIR_CALL_CE_STATIC(&_0, phalcon_version_ce, "get", &_1, 0); zephir_check_call_status(); ZEPHIR_INIT_VAR(&parts); zephir_fast_explode_str(&parts, SL(" "), &_0, LONG_MAX TSRMLS_CC); @@ -16241,17 +14722,17 @@ static PHP_METHOD(Phalcon_Debug, getVersion) { ZEPHIR_INIT_VAR(&link); zephir_create_array(&link, 4, 0 TSRMLS_CC); ZVAL_LONG(&_2, 0); - ZEPHIR_CALL_CE_STATIC(&_0, phalcon_version_ce, "getpart", &_1, 161, &_2); + ZEPHIR_CALL_CE_STATIC(&_0, phalcon_version_ce, "getpart", &_1, 0, &_2); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_3); ZEPHIR_CONCAT_SVS(&_3, "https://docs.phalconphp.com/en/", &_0, ".0.0/"); zephir_array_update_string(&link, SL("action"), &_3, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_CE_STATIC(&_4, phalcon_version_ce, "get", &_5, 160); + ZEPHIR_CALL_CE_STATIC(&_4, phalcon_version_ce, "get", &_5, 0); zephir_check_call_status(); zephir_array_update_string(&link, SL("text"), &_4, PH_COPY | PH_SEPARATE); zephir_array_update_string(&link, SL("local"), &__$false, PH_COPY | PH_SEPARATE); add_assoc_stringl_ex(&link, SL("target"), SL("_new")); - ZEPHIR_CALL_CE_STATIC(&_4, phalcon_tag_ce, "linkto", &_6, 162, &link); + ZEPHIR_CALL_CE_STATIC(&_4, phalcon_tag_ce, "linkto", &_6, 0, &link); zephir_check_call_status(); ZEPHIR_CONCAT_SVS(return_value, "
Phalcon Framework ", &_4, "
"); RETURN_MM(); @@ -16425,9 +14906,9 @@ static PHP_METHOD(Phalcon_Debug, showTraceItem) { } else { ZEPHIR_INIT_VAR(&classReflection); object_init_ex(&classReflection, zephir_get_internal_ce(SL("reflectionclass"))); - ZEPHIR_CALL_METHOD(NULL, &classReflection, "__construct", NULL, 91, &className); + ZEPHIR_CALL_METHOD(NULL, &classReflection, "__construct", NULL, 83, &className); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_7$$5, &classReflection, "isinternal", NULL, 163); + ZEPHIR_CALL_METHOD(&_7$$5, &classReflection, "isinternal", NULL, 147); zephir_check_call_status(); if (zephir_is_true(&_7$$5)) { ZEPHIR_INIT_VAR(&_8$$6); @@ -16458,9 +14939,9 @@ static PHP_METHOD(Phalcon_Debug, showTraceItem) { if ((zephir_function_exists(&functionName TSRMLS_CC) == SUCCESS)) { ZEPHIR_INIT_VAR(&functionReflection); object_init_ex(&functionReflection, zephir_get_internal_ce(SL("reflectionfunction"))); - ZEPHIR_CALL_METHOD(NULL, &functionReflection, "__construct", NULL, 82, &functionName); + ZEPHIR_CALL_METHOD(NULL, &functionReflection, "__construct", NULL, 74, &functionName); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_13$$10, &functionReflection, "isinternal", NULL, 164); + ZEPHIR_CALL_METHOD(&_13$$10, &functionReflection, "isinternal", NULL, 148); zephir_check_call_status(); if (zephir_is_true(&_13$$10)) { ZEPHIR_INIT_VAR(&_14$$11); @@ -16515,7 +14996,7 @@ static PHP_METHOD(Phalcon_Debug, showTraceItem) { ZEPHIR_OBS_VAR(&showFiles); zephir_read_property(&showFiles, this_ptr, SL("_showFiles"), PH_NOISY_CC); if (zephir_is_true(&showFiles)) { - ZEPHIR_CALL_FUNCTION(&lines, "file", NULL, 165, &filez); + ZEPHIR_CALL_FUNCTION(&lines, "file", NULL, 149, &filez); zephir_check_call_status(); ZEPHIR_INIT_VAR(&numberLines); ZVAL_LONG(&numberLines, zephir_fast_count_int(&lines TSRMLS_CC)); @@ -16597,7 +15078,7 @@ static PHP_METHOD(Phalcon_Debug, showTraceItem) { ZVAL_LONG(&_42$$29, 2); ZEPHIR_INIT_NVAR(&_43$$29); ZVAL_STRING(&_43$$29, "UTF-8"); - ZEPHIR_CALL_FUNCTION(&_44$$29, "htmlentities", &_45, 158, &_39$$29, &_42$$29, &_43$$29); + ZEPHIR_CALL_FUNCTION(&_44$$29, "htmlentities", &_45, 145, &_39$$29, &_42$$29, &_43$$29); zephir_check_call_status(); zephir_concat_self(&html, &_44$$29 TSRMLS_CC); } @@ -16632,7 +15113,7 @@ static PHP_METHOD(Phalcon_Debug, onUncaughtLowSeverity) { - ZEPHIR_CALL_FUNCTION(&_0, "error_reporting", NULL, 166); + ZEPHIR_CALL_FUNCTION(&_0, "error_reporting", NULL, 150); zephir_check_call_status(); ZEPHIR_SINIT_VAR(_1); zephir_bitwise_and_function(&_1, &_0, severity TSRMLS_CC); @@ -16640,7 +15121,7 @@ static PHP_METHOD(Phalcon_Debug, onUncaughtLowSeverity) { ZEPHIR_INIT_VAR(&_2$$3); object_init_ex(&_2$$3, zephir_get_internal_ce(SL("errorexception"))); ZVAL_LONG(&_3$$3, 0); - ZEPHIR_CALL_METHOD(NULL, &_2$$3, "__construct", NULL, 167, message, &_3$$3, severity, file, line); + ZEPHIR_CALL_METHOD(NULL, &_2$$3, "__construct", NULL, 151, message, &_3$$3, severity, file, line); zephir_check_call_status(); zephir_throw_exception_debug(&_2$$3, "phalcon/debug.zep", 565 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -16712,10 +15193,10 @@ static PHP_METHOD(Phalcon_Debug, onUncaughtException) { - ZEPHIR_CALL_FUNCTION(&obLevel, "ob_get_level", NULL, 168); + ZEPHIR_CALL_FUNCTION(&obLevel, "ob_get_level", NULL, 152); zephir_check_call_status(); if (ZEPHIR_GT_LONG(&obLevel, 0)) { - ZEPHIR_CALL_FUNCTION(NULL, "ob_end_clean", NULL, 128); + ZEPHIR_CALL_FUNCTION(NULL, "ob_end_clean", NULL, 117); zephir_check_call_status(); } zephir_read_static_property_ce(&_0, phalcon_debug_ce, SL("_isActive"), PH_NOISY_CC | PH_READONLY); @@ -16783,7 +15264,7 @@ static PHP_METHOD(Phalcon_Debug, onUncaughtException) { } ZEPHIR_INIT_NVAR(&traceItem); ZVAL_COPY(&traceItem, _11$$5); - ZEPHIR_CALL_METHOD(&_14$$7, this_ptr, "showtraceitem", &_15, 169, &n, &traceItem); + ZEPHIR_CALL_METHOD(&_14$$7, this_ptr, "showtraceitem", &_15, 153, &n, &traceItem); zephir_check_call_status(); zephir_concat_self(&html, &_14$$7 TSRMLS_CC); } ZEND_HASH_FOREACH_END(); @@ -16808,7 +15289,7 @@ static PHP_METHOD(Phalcon_Debug, onUncaughtException) { ZEPHIR_CONCAT_SVSVS(&_19$$9, "", &keyRequest, "", &value, ""); zephir_concat_self(&html, &_19$$9 TSRMLS_CC); } else { - ZEPHIR_CALL_FUNCTION(&_20$$10, "print_r", &_21, 170, &value, &__$true); + ZEPHIR_CALL_FUNCTION(&_20$$10, "print_r", &_21, 154, &value, &__$true); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_22$$10); ZEPHIR_CONCAT_SVSVS(&_22$$10, "", &keyRequest, "", &_20$$10, ""); @@ -16842,7 +15323,7 @@ static PHP_METHOD(Phalcon_Debug, onUncaughtException) { zephir_concat_self_str(&html, SL("") TSRMLS_CC); zephir_concat_self_str(&html, SL("
") TSRMLS_CC); zephir_concat_self_str(&html, SL("") TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_29$$5, "get_included_files", NULL, 171); + ZEPHIR_CALL_FUNCTION(&_29$$5, "get_included_files", NULL, 155); zephir_check_call_status(); zephir_is_iterable(&_29$$5, 0, "phalcon/debug.zep", 693); ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&_29$$5), _31$$5, _32$$5, _30$$5) @@ -16863,7 +15344,7 @@ static PHP_METHOD(Phalcon_Debug, onUncaughtException) { ZEPHIR_INIT_NVAR(&keyFile); zephir_concat_self_str(&html, SL("
#Path
") TSRMLS_CC); zephir_concat_self_str(&html, SL("
") TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_34$$5, "memory_get_usage", NULL, 172, &__$true); + ZEPHIR_CALL_FUNCTION(&_34$$5, "memory_get_usage", NULL, 156, &__$true); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_35$$5); ZEPHIR_CONCAT_SVS(&_35$$5, ""); @@ -16994,11 +15475,11 @@ static PHP_METHOD(Phalcon_Di, set) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 1, &name_param, &definition, &shared_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(&name, name_param); } else { ZEPHIR_INIT_VAR(&name); @@ -17018,7 +15499,7 @@ static PHP_METHOD(Phalcon_Di, set) { } else { ZVAL_BOOL(&_0, 0); } - ZEPHIR_CALL_METHOD(NULL, &service, "__construct", NULL, 67, &name, definition, &_0); + ZEPHIR_CALL_METHOD(NULL, &service, "__construct", NULL, 61, &name, definition, &_0); zephir_check_call_status(); zephir_update_property_array(this_ptr, SL("_services"), &name, &service TSRMLS_CC); RETURN_CCTOR(service); @@ -17039,11 +15520,11 @@ static PHP_METHOD(Phalcon_Di, setShared) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &name_param, &definition); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(&name, name_param); } else { ZEPHIR_INIT_VAR(&name); @@ -17071,11 +15552,11 @@ static PHP_METHOD(Phalcon_Di, remove) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(&name, name_param); } else { ZEPHIR_INIT_VAR(&name); @@ -17108,11 +15589,11 @@ static PHP_METHOD(Phalcon_Di, attempt) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 1, &name_param, &definition, &shared_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(&name, name_param); } else { ZEPHIR_INIT_VAR(&name); @@ -17134,7 +15615,7 @@ static PHP_METHOD(Phalcon_Di, attempt) { } else { ZVAL_BOOL(&_1$$3, 0); } - ZEPHIR_CALL_METHOD(NULL, &service, "__construct", NULL, 67, &name, definition, &_1$$3); + ZEPHIR_CALL_METHOD(NULL, &service, "__construct", NULL, 61, &name, definition, &_1$$3); zephir_check_call_status(); zephir_update_property_array(this_ptr, SL("_services"), &name, &service TSRMLS_CC); RETURN_CCTOR(service); @@ -17155,11 +15636,11 @@ static PHP_METHOD(Phalcon_Di, setRaw) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &name_param, &rawDefinition); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(&name, name_param); } else { ZEPHIR_INIT_VAR(&name); @@ -17189,11 +15670,11 @@ static PHP_METHOD(Phalcon_Di, getRaw) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(&name, name_param); } else { ZEPHIR_INIT_VAR(&name); @@ -17212,7 +15693,7 @@ static PHP_METHOD(Phalcon_Di, getRaw) { object_init_ex(&_1, phalcon_di_exception_ce); ZEPHIR_INIT_VAR(&_2); ZEPHIR_CONCAT_SVS(&_2, "Service '", &name, "' wasn't found in the dependency injection container"); - ZEPHIR_CALL_METHOD(NULL, &_1, "__construct", NULL, 9, &_2); + ZEPHIR_CALL_METHOD(NULL, &_1, "__construct", NULL, 4, &_2); zephir_check_call_status(); zephir_throw_exception_debug(&_1, "phalcon/di.zep", 191 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -17236,11 +15717,11 @@ static PHP_METHOD(Phalcon_Di, getService) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(&name, name_param); } else { ZEPHIR_INIT_VAR(&name); @@ -17257,7 +15738,7 @@ static PHP_METHOD(Phalcon_Di, getService) { object_init_ex(&_1, phalcon_di_exception_ce); ZEPHIR_INIT_VAR(&_2); ZEPHIR_CONCAT_SVS(&_2, "Service '", &name, "' wasn't found in the dependency injection container"); - ZEPHIR_CALL_METHOD(NULL, &_1, "__construct", NULL, 9, &_2); + ZEPHIR_CALL_METHOD(NULL, &_1, "__construct", NULL, 4, &_2); zephir_check_call_status(); zephir_throw_exception_debug(&_1, "phalcon/di.zep", 205 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -17292,11 +15773,11 @@ static PHP_METHOD(Phalcon_Di, get) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &name_param, ¶meters); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(&name, name_param); } else { ZEPHIR_INIT_VAR(&name); @@ -17334,7 +15815,7 @@ static PHP_METHOD(Phalcon_Di, get) { object_init_ex(&_4$$7, phalcon_di_exception_ce); ZEPHIR_INIT_VAR(&_5$$7); ZEPHIR_CONCAT_SVS(&_5$$7, "Service '", &name, "' wasn't found in the dependency injection container"); - ZEPHIR_CALL_METHOD(NULL, &_4$$7, "__construct", NULL, 9, &_5$$7); + ZEPHIR_CALL_METHOD(NULL, &_4$$7, "__construct", NULL, 4, &_5$$7); zephir_check_call_status(); zephir_throw_exception_debug(&_4$$7, "phalcon/di.zep", 236 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -17394,11 +15875,11 @@ static PHP_METHOD(Phalcon_Di, getShared) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &name_param, ¶meters); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(&name, name_param); } else { ZEPHIR_INIT_VAR(&name); @@ -17444,11 +15925,11 @@ static PHP_METHOD(Phalcon_Di, has) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(&name, name_param); } else { ZEPHIR_INIT_VAR(&name); @@ -17491,11 +15972,11 @@ static PHP_METHOD(Phalcon_Di, offsetExists) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(&name, name_param); } else { ZEPHIR_INIT_VAR(&name); @@ -17522,11 +16003,11 @@ static PHP_METHOD(Phalcon_Di, offsetSet) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &name_param, &definition); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(&name, name_param); } else { ZEPHIR_INIT_VAR(&name); @@ -17552,11 +16033,11 @@ static PHP_METHOD(Phalcon_Di, offsetGet) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(&name, name_param); } else { ZEPHIR_INIT_VAR(&name); @@ -17581,11 +16062,11 @@ static PHP_METHOD(Phalcon_Di, offsetUnset) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(&name, name_param); } else { ZEPHIR_INIT_VAR(&name); @@ -17623,11 +16104,11 @@ static PHP_METHOD(Phalcon_Di, __call) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &method_param, &arguments); - if (unlikely(Z_TYPE_P(method_param) != IS_STRING && Z_TYPE_P(method_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(method_param) != IS_STRING && Z_TYPE_P(method_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'method' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(method_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(method_param) == IS_STRING)) { zephir_get_strval(&method, method_param); } else { ZEPHIR_INIT_VAR(&method); @@ -17645,7 +16126,7 @@ static PHP_METHOD(Phalcon_Di, __call) { ZVAL_LONG(&_0$$3, 3); ZEPHIR_INIT_VAR(&_1$$3); zephir_substr(&_1$$3, &method, 3 , 0, ZEPHIR_SUBSTR_NO_LENGTH); - ZEPHIR_CALL_FUNCTION(&possibleService, "lcfirst", &_2, 68, &_1$$3); + ZEPHIR_CALL_FUNCTION(&possibleService, "lcfirst", &_2, 62, &_1$$3); zephir_check_call_status(); if (zephir_array_isset(&services, &possibleService)) { if (zephir_fast_count_int(arguments TSRMLS_CC)) { @@ -17664,7 +16145,7 @@ static PHP_METHOD(Phalcon_Di, __call) { ZVAL_LONG(&_4$$8, 3); ZEPHIR_INIT_VAR(&_5$$8); zephir_substr(&_5$$8, &method, 3 , 0, ZEPHIR_SUBSTR_NO_LENGTH); - ZEPHIR_CALL_FUNCTION(&_6$$8, "lcfirst", &_2, 68, &_5$$8); + ZEPHIR_CALL_FUNCTION(&_6$$8, "lcfirst", &_2, 62, &_5$$8); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, this_ptr, "set", NULL, 0, &_6$$8, &definition); zephir_check_call_status(); @@ -17675,7 +16156,7 @@ static PHP_METHOD(Phalcon_Di, __call) { object_init_ex(&_7, phalcon_di_exception_ce); ZEPHIR_INIT_VAR(&_8); ZEPHIR_CONCAT_SVS(&_8, "Call to undefined method or service '", &method, "'"); - ZEPHIR_CALL_METHOD(NULL, &_7, "__construct", NULL, 9, &_8); + ZEPHIR_CALL_METHOD(NULL, &_7, "__construct", NULL, 4, &_8); zephir_check_call_status(); zephir_throw_exception_debug(&_7, "phalcon/di.zep", 406 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -18278,7 +16759,7 @@ static PHP_METHOD(Phalcon_Dispatcher, setModelBinding) { if (value) { ZEPHIR_INIT_VAR(&_1$$4); object_init_ex(&_1$$4, phalcon_mvc_model_binder_ce); - ZEPHIR_CALL_METHOD(NULL, &_1$$4, "__construct", NULL, 69, cache); + ZEPHIR_CALL_METHOD(NULL, &_1$$4, "__construct", NULL, 63, cache); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_modelBinder"), &_1$$4); } @@ -18343,13 +16824,14 @@ static PHP_METHOD(Phalcon_Dispatcher, getModelBinder) { static PHP_METHOD(Phalcon_Dispatcher, dispatch) { - zval handler, e, _0$$4; + zval handler, e, _0, _1$$4; int ZEPHIR_LAST_CALL_STATUS; ZEPHIR_INIT_THIS(); ZVAL_UNDEF(&handler); ZVAL_UNDEF(&e); - ZVAL_UNDEF(&_0$$4); + ZVAL_UNDEF(&_0); + ZVAL_UNDEF(&_1$$4); ZEPHIR_MM_GROW(); @@ -18362,13 +16844,15 @@ static PHP_METHOD(Phalcon_Dispatcher, dispatch) { try_end_1: if (EG(exception)) { - ZVAL_OBJ(&e, EG(exception)); - Z_ADDREF_P(&e); - if (zephir_instance_of_ev(&e, zend_exception_get_default(TSRMLS_C) TSRMLS_CC)) { + ZEPHIR_INIT_VAR(&_0); + ZVAL_OBJ(&_0, EG(exception)); + Z_ADDREF_P(&_0); + if (zephir_instance_of_ev(&_0, zend_exception_get_default(TSRMLS_C) TSRMLS_CC)) { zend_clear_exception(TSRMLS_C); - ZEPHIR_CALL_METHOD(&_0$$4, this_ptr, "_handleexception", NULL, 0, &e); + ZEPHIR_CPY_WRT(&e, &_0); + ZEPHIR_CALL_METHOD(&_1$$4, this_ptr, "_handleexception", NULL, 0, &e); zephir_check_call_status(); - if (ZEPHIR_IS_FALSE_IDENTICAL(&_0$$4)) { + if (ZEPHIR_IS_FALSE_IDENTICAL(&_1$$4)) { RETURN_MM_BOOL(0); } zephir_throw_exception_debug(&e, "phalcon/dispatcher.zep", 413 TSRMLS_CC); @@ -18384,8 +16868,8 @@ static PHP_METHOD(Phalcon_Dispatcher, _dispatch) { zval _30$$6; zend_bool hasService = 0, wasFresh; - zephir_fcall_cache_entry *_7 = NULL, *_8 = NULL, *_9 = NULL, *_12 = NULL, *_15 = NULL, *_18 = NULL, *_20 = NULL, *_21 = NULL, *_24 = NULL, *_28 = NULL, *_33 = NULL, *_37 = NULL, *_41 = NULL, *_47 = NULL, *_53 = NULL, *_58 = NULL, *_60 = NULL, *_64 = NULL, *_66 = NULL; - zval __$true, __$false, value, handler, dependencyInjector, namespaceName, handlerName, actionName, params, eventsManager, actionSuffix, handlerClass, status, actionMethod, modelBinder, e, bindCacheKey, _0, _1$$3, _2$$3, _3$$4, _4$$4, _5$$7, _6$$7, _10$$8, _11$$8, _13$$8, _14$$6, _49$$6, _16$$12, _17$$12, _19$$13, _22$$16, _23$$16, _25$$17, _26$$19, _27$$19, _29$$20, _31$$23, _32$$23, _34$$23, _35$$22, _36$$22, _38$$26, _39$$28, _40$$28, _42$$28, _43$$31, _44$$31, _45$$36, _46$$36, _48$$36, _50$$39, _51$$40, _52$$40, _54$$40, _55$$43, _56$$43, _57$$46, _59$$47, _61$$48, _62$$51, _63$$51, _65$$51, _67$$54, _68$$54, _69$$57; + zephir_fcall_cache_entry *_7 = NULL, *_8 = NULL, *_9 = NULL, *_12 = NULL, *_15 = NULL, *_18 = NULL, *_20 = NULL, *_21 = NULL, *_24 = NULL, *_28 = NULL, *_33 = NULL, *_37 = NULL, *_41 = NULL, *_47 = NULL, *_53 = NULL, *_58 = NULL, *_61 = NULL, *_65 = NULL, *_67 = NULL; + zval __$true, __$false, value, handler, dependencyInjector, namespaceName, handlerName, actionName, params, eventsManager, actionSuffix, handlerClass, status, actionMethod, modelBinder, e, bindCacheKey, _0, _1$$3, _2$$3, _3$$4, _4$$4, _5$$7, _6$$7, _10$$8, _11$$8, _13$$8, _14$$6, _49$$6, _59$$6, _16$$12, _17$$12, _19$$13, _22$$16, _23$$16, _25$$17, _26$$19, _27$$19, _29$$20, _31$$23, _32$$23, _34$$23, _35$$22, _36$$22, _38$$26, _39$$28, _40$$28, _42$$28, _43$$31, _44$$31, _45$$36, _46$$36, _48$$36, _50$$39, _51$$40, _52$$40, _54$$40, _55$$43, _56$$43, _57$$46, _60$$47, _62$$48, _63$$51, _64$$51, _66$$51, _68$$54, _69$$54, _70$$57; int ZEPHIR_LAST_CALL_STATUS, numberDispatches = 0; ZEPHIR_INIT_THIS(); @@ -18418,6 +16902,7 @@ static PHP_METHOD(Phalcon_Dispatcher, _dispatch) { ZVAL_UNDEF(&_13$$8); ZVAL_UNDEF(&_14$$6); ZVAL_UNDEF(&_49$$6); + ZVAL_UNDEF(&_59$$6); ZVAL_UNDEF(&_16$$12); ZVAL_UNDEF(&_17$$12); ZVAL_UNDEF(&_19$$13); @@ -18448,14 +16933,14 @@ static PHP_METHOD(Phalcon_Dispatcher, _dispatch) { ZVAL_UNDEF(&_55$$43); ZVAL_UNDEF(&_56$$43); ZVAL_UNDEF(&_57$$46); - ZVAL_UNDEF(&_59$$47); - ZVAL_UNDEF(&_61$$48); - ZVAL_UNDEF(&_62$$51); + ZVAL_UNDEF(&_60$$47); + ZVAL_UNDEF(&_62$$48); ZVAL_UNDEF(&_63$$51); - ZVAL_UNDEF(&_65$$51); - ZVAL_UNDEF(&_67$$54); + ZVAL_UNDEF(&_64$$51); + ZVAL_UNDEF(&_66$$51); ZVAL_UNDEF(&_68$$54); - ZVAL_UNDEF(&_69$$57); + ZVAL_UNDEF(&_69$$54); + ZVAL_UNDEF(&_70$$57); ZVAL_UNDEF(&_30$$6); ZEPHIR_MM_GROW(); @@ -18715,15 +17200,17 @@ static PHP_METHOD(Phalcon_Dispatcher, _dispatch) { try_end_1: if (EG(exception)) { - ZVAL_OBJ(&e, EG(exception)); - Z_ADDREF_P(&e); - if (zephir_instance_of_ev(&e, zend_exception_get_default(TSRMLS_C) TSRMLS_CC)) { + ZEPHIR_INIT_NVAR(&_59$$6); + ZVAL_OBJ(&_59$$6, EG(exception)); + Z_ADDREF_P(&_59$$6); + if (zephir_instance_of_ev(&_59$$6, zend_exception_get_default(TSRMLS_C) TSRMLS_CC)) { zend_clear_exception(TSRMLS_C); - ZEPHIR_CALL_METHOD(&_59$$47, this_ptr, "_handleexception", &_60, 0, &e); + ZEPHIR_CPY_WRT(&e, &_59$$6); + ZEPHIR_CALL_METHOD(&_60$$47, this_ptr, "_handleexception", &_61, 0, &e); zephir_check_call_status(); - if (ZEPHIR_IS_FALSE_IDENTICAL(&_59$$47)) { - zephir_read_property(&_61$$48, this_ptr, SL("_finished"), PH_NOISY_CC | PH_READONLY); - if (ZEPHIR_IS_FALSE_IDENTICAL(&_61$$48)) { + if (ZEPHIR_IS_FALSE_IDENTICAL(&_60$$47)) { + zephir_read_property(&_62$$48, this_ptr, SL("_finished"), PH_NOISY_CC | PH_READONLY); + if (ZEPHIR_IS_FALSE_IDENTICAL(&_62$$48)) { continue; } } else { @@ -18734,38 +17221,38 @@ static PHP_METHOD(Phalcon_Dispatcher, _dispatch) { } } if (Z_TYPE_P(&eventsManager) == IS_OBJECT) { - ZEPHIR_INIT_NVAR(&_63$$51); - ZVAL_STRING(&_63$$51, "dispatch:afterExecuteRoute"); - ZEPHIR_CALL_METHOD(&_62$$51, &eventsManager, "fire", &_64, 0, &_63$$51, this_ptr, &value); + ZEPHIR_INIT_NVAR(&_64$$51); + ZVAL_STRING(&_64$$51, "dispatch:afterExecuteRoute"); + ZEPHIR_CALL_METHOD(&_63$$51, &eventsManager, "fire", &_65, 0, &_64$$51, this_ptr, &value); zephir_check_call_status(); - if (ZEPHIR_IS_FALSE_IDENTICAL(&_62$$51)) { + if (ZEPHIR_IS_FALSE_IDENTICAL(&_63$$51)) { continue; } - zephir_read_property(&_65$$51, this_ptr, SL("_finished"), PH_NOISY_CC | PH_READONLY); - if (ZEPHIR_IS_FALSE_IDENTICAL(&_65$$51)) { + zephir_read_property(&_66$$51, this_ptr, SL("_finished"), PH_NOISY_CC | PH_READONLY); + if (ZEPHIR_IS_FALSE_IDENTICAL(&_66$$51)) { continue; } - ZEPHIR_INIT_NVAR(&_63$$51); - ZVAL_STRING(&_63$$51, "dispatch:afterDispatch"); - ZEPHIR_CALL_METHOD(NULL, &eventsManager, "fire", &_66, 0, &_63$$51, this_ptr); + ZEPHIR_INIT_NVAR(&_64$$51); + ZVAL_STRING(&_64$$51, "dispatch:afterDispatch"); + ZEPHIR_CALL_METHOD(NULL, &eventsManager, "fire", &_67, 0, &_64$$51, this_ptr); zephir_check_call_status(); } if ((zephir_method_exists_ex(&handler, SL("afterexecuteroute") TSRMLS_CC) == SUCCESS)) { - ZEPHIR_CALL_METHOD(&_67$$54, &handler, "afterexecuteroute", NULL, 0, this_ptr, &value); + ZEPHIR_CALL_METHOD(&_68$$54, &handler, "afterexecuteroute", NULL, 0, this_ptr, &value); zephir_check_call_status(); - if (ZEPHIR_IS_FALSE_IDENTICAL(&_67$$54)) { + if (ZEPHIR_IS_FALSE_IDENTICAL(&_68$$54)) { continue; } - zephir_read_property(&_68$$54, this_ptr, SL("_finished"), PH_NOISY_CC | PH_READONLY); - if (ZEPHIR_IS_FALSE_IDENTICAL(&_68$$54)) { + zephir_read_property(&_69$$54, this_ptr, SL("_finished"), PH_NOISY_CC | PH_READONLY); + if (ZEPHIR_IS_FALSE_IDENTICAL(&_69$$54)) { continue; } } } if (Z_TYPE_P(&eventsManager) == IS_OBJECT) { - ZEPHIR_INIT_VAR(&_69$$57); - ZVAL_STRING(&_69$$57, "dispatch:afterDispatchLoop"); - ZEPHIR_CALL_METHOD(NULL, &eventsManager, "fire", NULL, 0, &_69$$57, this_ptr); + ZEPHIR_INIT_VAR(&_70$$57); + ZVAL_STRING(&_70$$57, "dispatch:afterDispatchLoop"); + ZEPHIR_CALL_METHOD(NULL, &eventsManager, "fire", NULL, 0, &_70$$57, this_ptr); zephir_check_call_status(); } RETURN_CCTOR(handler); @@ -19202,14 +17689,14 @@ static PHP_METHOD(Phalcon_Escaper, detectEncoding) { { ZEPHIR_INIT_NVAR(&charset); ZVAL_COPY(&charset, _2); - ZEPHIR_CALL_FUNCTION(&_3$$5, "mb_detect_encoding", &_4, 185, &str, &charset, &__$true); + ZEPHIR_CALL_FUNCTION(&_3$$5, "mb_detect_encoding", &_4, 167, &str, &charset, &__$true); zephir_check_call_status(); if (zephir_is_true(&_3$$5)) { RETURN_CCTOR(charset); } } ZEND_HASH_FOREACH_END(); ZEPHIR_INIT_NVAR(&charset); - ZEPHIR_RETURN_CALL_FUNCTION("mb_detect_encoding", &_4, 185, &str); + ZEPHIR_RETURN_CALL_FUNCTION("mb_detect_encoding", &_4, 167, &str); zephir_check_call_status(); RETURN_MM(); @@ -19236,11 +17723,11 @@ static PHP_METHOD(Phalcon_Escaper, normalizeEncoding) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_escaper_exception_ce, "Extension 'mbstring' is required", "phalcon/escaper.zep", 144); return; } - ZEPHIR_CALL_METHOD(&_0, this_ptr, "detectencoding", NULL, 186, &str); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "detectencoding", NULL, 168, &str); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_1); ZVAL_STRING(&_1, "UTF-32"); - ZEPHIR_RETURN_CALL_FUNCTION("mb_convert_encoding", NULL, 187, &str, &_1, &_0); + ZEPHIR_RETURN_CALL_FUNCTION("mb_convert_encoding", NULL, 169, &str, &_1, &_0); zephir_check_call_status(); RETURN_MM(); @@ -19267,7 +17754,7 @@ static PHP_METHOD(Phalcon_Escaper, escapeHtml) { zephir_read_property(&_0, this_ptr, SL("_htmlQuoteType"), PH_NOISY_CC | PH_READONLY); zephir_read_property(&_1, this_ptr, SL("_encoding"), PH_NOISY_CC | PH_READONLY); zephir_read_property(&_2, this_ptr, SL("_doubleEncode"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_RETURN_CALL_FUNCTION("htmlspecialchars", NULL, 188, &text, &_0, &_1, &_2); + ZEPHIR_RETURN_CALL_FUNCTION("htmlspecialchars", NULL, 170, &text, &_0, &_1, &_2); zephir_check_call_status(); RETURN_MM(); @@ -19294,7 +17781,7 @@ static PHP_METHOD(Phalcon_Escaper, escapeHtmlAttr) { zephir_read_property(&_0, this_ptr, SL("_encoding"), PH_NOISY_CC | PH_READONLY); zephir_read_property(&_1, this_ptr, SL("_doubleEncode"), PH_NOISY_CC | PH_READONLY); ZVAL_LONG(&_2, 3); - ZEPHIR_RETURN_CALL_FUNCTION("htmlspecialchars", NULL, 188, &attribute, &_2, &_0, &_1); + ZEPHIR_RETURN_CALL_FUNCTION("htmlspecialchars", NULL, 170, &attribute, &_2, &_0, &_1); zephir_check_call_status(); RETURN_MM(); @@ -19316,7 +17803,7 @@ static PHP_METHOD(Phalcon_Escaper, escapeCss) { zephir_get_strval(&css, css_param); - ZEPHIR_CALL_METHOD(&_0, this_ptr, "normalizeencoding", NULL, 189, &css); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "normalizeencoding", NULL, 171, &css); zephir_check_call_status(); zephir_escape_css(return_value, &_0); RETURN_MM(); @@ -19339,7 +17826,7 @@ static PHP_METHOD(Phalcon_Escaper, escapeJs) { zephir_get_strval(&js, js_param); - ZEPHIR_CALL_METHOD(&_0, this_ptr, "normalizeencoding", NULL, 189, &js); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "normalizeencoding", NULL, 171, &js); zephir_check_call_status(); zephir_escape_js(return_value, &_0); RETURN_MM(); @@ -19361,7 +17848,7 @@ static PHP_METHOD(Phalcon_Escaper, escapeUrl) { zephir_get_strval(&url, url_param); - ZEPHIR_RETURN_CALL_FUNCTION("rawurlencode", NULL, 190, &url); + ZEPHIR_RETURN_CALL_FUNCTION("rawurlencode", NULL, 172, &url); zephir_check_call_status(); RETURN_MM(); @@ -19477,11 +17964,11 @@ static PHP_METHOD(Phalcon_Filter, add) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &name_param, &handler); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(&name, name_param); } else { ZEPHIR_INIT_VAR(&name); @@ -19639,11 +18126,11 @@ static PHP_METHOD(Phalcon_Filter, _sanitize) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &value, &filter_param); - if (unlikely(Z_TYPE_P(filter_param) != IS_STRING && Z_TYPE_P(filter_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(filter_param) != IS_STRING && Z_TYPE_P(filter_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'filter' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(filter_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(filter_param) == IS_STRING)) { zephir_get_strval(&filter, filter_param); } else { ZEPHIR_INIT_VAR(&filter); @@ -19678,15 +18165,15 @@ static PHP_METHOD(Phalcon_Filter, _sanitize) { if (ZEPHIR_IS_STRING(&filter, "email")) { ZEPHIR_INIT_VAR(&_4$$5); ZVAL_STRING(&_4$$5, "FILTER_SANITIZE_EMAIL"); - ZEPHIR_CALL_FUNCTION(&_5$$5, "constant", NULL, 197, &_4$$5); + ZEPHIR_CALL_FUNCTION(&_5$$5, "constant", NULL, 179, &_4$$5); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_FUNCTION("filter_var", &_6, 198, value, &_5$$5); + ZEPHIR_RETURN_CALL_FUNCTION("filter_var", &_6, 180, value, &_5$$5); zephir_check_call_status(); RETURN_MM(); } if (ZEPHIR_IS_STRING(&filter, "int")) { ZVAL_LONG(&_7$$6, 519); - ZEPHIR_RETURN_CALL_FUNCTION("filter_var", &_6, 198, value, &_7$$6); + ZEPHIR_RETURN_CALL_FUNCTION("filter_var", &_6, 180, value, &_7$$6); zephir_check_call_status(); RETURN_MM(); } @@ -19695,13 +18182,13 @@ static PHP_METHOD(Phalcon_Filter, _sanitize) { } if (ZEPHIR_IS_STRING(&filter, "absint")) { ZVAL_LONG(&_8$$8, zephir_get_intval(value)); - ZEPHIR_RETURN_CALL_FUNCTION("abs", NULL, 199, &_8$$8); + ZEPHIR_RETURN_CALL_FUNCTION("abs", NULL, 181, &_8$$8); zephir_check_call_status(); RETURN_MM(); } if (ZEPHIR_IS_STRING(&filter, "string")) { ZVAL_LONG(&_9$$9, 513); - ZEPHIR_RETURN_CALL_FUNCTION("filter_var", &_6, 198, value, &_9$$9); + ZEPHIR_RETURN_CALL_FUNCTION("filter_var", &_6, 180, value, &_9$$9); zephir_check_call_status(); RETURN_MM(); } @@ -19710,7 +18197,7 @@ static PHP_METHOD(Phalcon_Filter, _sanitize) { zephir_create_array(&_10$$10, 1, 0 TSRMLS_CC); add_assoc_long_ex(&_10$$10, SL("flags"), 4096); ZVAL_LONG(&_11$$10, 520); - ZEPHIR_RETURN_CALL_FUNCTION("filter_var", &_6, 198, value, &_11$$10, &_10$$10); + ZEPHIR_RETURN_CALL_FUNCTION("filter_var", &_6, 180, value, &_11$$10, &_10$$10); zephir_check_call_status(); RETURN_MM(); } @@ -19722,7 +18209,7 @@ static PHP_METHOD(Phalcon_Filter, _sanitize) { ZVAL_STRING(&_12$$12, "/[^A-Za-z0-9]/"); ZEPHIR_INIT_VAR(&_13$$12); ZVAL_STRING(&_13$$12, ""); - ZEPHIR_RETURN_CALL_FUNCTION("preg_replace", NULL, 39, &_12$$12, &_13$$12, value); + ZEPHIR_RETURN_CALL_FUNCTION("preg_replace", NULL, 33, &_12$$12, &_13$$12, value); zephir_check_call_status(); RETURN_MM(); } @@ -19731,13 +18218,13 @@ static PHP_METHOD(Phalcon_Filter, _sanitize) { RETURN_MM(); } if (ZEPHIR_IS_STRING(&filter, "striptags")) { - ZEPHIR_RETURN_CALL_FUNCTION("strip_tags", NULL, 200, value); + ZEPHIR_RETURN_CALL_FUNCTION("strip_tags", NULL, 182, value); zephir_check_call_status(); RETURN_MM(); } if (ZEPHIR_IS_STRING(&filter, "lower")) { if ((zephir_function_exists_ex(SL("mb_strtolower") TSRMLS_CC) == SUCCESS)) { - ZEPHIR_RETURN_CALL_FUNCTION("mb_strtolower", NULL, 201, value); + ZEPHIR_RETURN_CALL_FUNCTION("mb_strtolower", NULL, 183, value); zephir_check_call_status(); RETURN_MM(); } @@ -19746,7 +18233,7 @@ static PHP_METHOD(Phalcon_Filter, _sanitize) { } if (ZEPHIR_IS_STRING(&filter, "upper")) { if ((zephir_function_exists_ex(SL("mb_strtoupper") TSRMLS_CC) == SUCCESS)) { - ZEPHIR_RETURN_CALL_FUNCTION("mb_strtoupper", NULL, 202, value); + ZEPHIR_RETURN_CALL_FUNCTION("mb_strtoupper", NULL, 184, value); zephir_check_call_status(); RETURN_MM(); } @@ -19757,7 +18244,7 @@ static PHP_METHOD(Phalcon_Filter, _sanitize) { object_init_ex(&_14$$19, phalcon_filter_exception_ce); ZEPHIR_INIT_VAR(&_15$$19); ZEPHIR_CONCAT_SVS(&_15$$19, "Sanitize filter '", &filter, "' is not supported"); - ZEPHIR_CALL_METHOD(NULL, &_14$$19, "__construct", NULL, 9, &_15$$19); + ZEPHIR_CALL_METHOD(NULL, &_14$$19, "__construct", NULL, 4, &_15$$19); zephir_check_call_status(); zephir_throw_exception_debug(&_14$$19, "phalcon/filter.zep", 214 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -19975,7 +18462,7 @@ static PHP_METHOD(Phalcon_Flash, getDI) { ZEPHIR_OBS_VAR(&di); zephir_read_property(&di, this_ptr, SL("_dependencyInjector"), PH_NOISY_CC); if (Z_TYPE_P(&di) != IS_OBJECT) { - ZEPHIR_CALL_CE_STATIC(&di, phalcon_di_ce, "getdefault", &_0, 1); + ZEPHIR_CALL_CE_STATIC(&di, phalcon_di_ce, "getdefault", &_0, 0); zephir_check_call_status(); } RETURN_CCTOR(di); @@ -20363,11 +18850,11 @@ static PHP_METHOD(Phalcon_Kernel, preComputeHashKey) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &key_param); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(&key, key_param); } else { ZEPHIR_INIT_VAR(&key); @@ -20808,7 +19295,7 @@ static PHP_METHOD(Phalcon_Loader, register) { ZVAL_STRING(&_2$$3, "autoLoad"); zephir_array_fast_append(&_1$$3, &_2$$3); ZVAL_BOOL(&_3$$3, (prepend ? 1 : 0)); - ZEPHIR_CALL_FUNCTION(NULL, "spl_autoload_register", NULL, 296, &_1$$3, &__$true, &_3$$3); + ZEPHIR_CALL_FUNCTION(NULL, "spl_autoload_register", NULL, 264, &_1$$3, &__$true, &_3$$3); zephir_check_call_status(); if (1) { zephir_update_property_zval(this_ptr, SL("_registered"), &__$true); @@ -20843,7 +19330,7 @@ static PHP_METHOD(Phalcon_Loader, unregister) { ZEPHIR_INIT_VAR(&_2$$3); ZVAL_STRING(&_2$$3, "autoLoad"); zephir_array_fast_append(&_1$$3, &_2$$3); - ZEPHIR_CALL_FUNCTION(NULL, "spl_autoload_unregister", NULL, 297, &_1$$3); + ZEPHIR_CALL_FUNCTION(NULL, "spl_autoload_unregister", NULL, 265, &_1$$3); zephir_check_call_status(); if (0) { zephir_update_property_zval(this_ptr, SL("_registered"), &__$true); @@ -20890,7 +19377,7 @@ static PHP_METHOD(Phalcon_Loader, loadFiles) { ZEPHIR_CALL_METHOD(NULL, &_3$$4, "fire", NULL, 0, &_4$$4, this_ptr, &filePath); zephir_check_call_status(); } - ZEPHIR_CALL_FUNCTION(&_5$$3, "is_file", &_6, 298, &filePath); + ZEPHIR_CALL_FUNCTION(&_5$$3, "is_file", &_6, 266, &filePath); zephir_check_call_status(); if (zephir_is_true(&_5$$3)) { ZEPHIR_OBS_NVAR(&_7$$5); @@ -20957,11 +19444,11 @@ static PHP_METHOD(Phalcon_Loader, autoLoad) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &className_param); - if (unlikely(Z_TYPE_P(className_param) != IS_STRING && Z_TYPE_P(className_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(className_param) != IS_STRING && Z_TYPE_P(className_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'className' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(className_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(className_param) == IS_STRING)) { zephir_get_strval(&className, className_param); } else { ZEPHIR_INIT_VAR(&className); @@ -21049,7 +19536,7 @@ static PHP_METHOD(Phalcon_Loader, autoLoad) { ZEPHIR_CALL_METHOD(NULL, &eventsManager, "fire", &_12, 0, &_11$$11, this_ptr); zephir_check_call_status(); } - ZEPHIR_CALL_FUNCTION(&_13$$10, "is_file", &_14, 298, &filePath); + ZEPHIR_CALL_FUNCTION(&_13$$10, "is_file", &_14, 266, &filePath); zephir_check_call_status(); if (zephir_is_true(&_13$$10)) { if (Z_TYPE_P(&eventsManager) == IS_OBJECT) { @@ -21100,7 +19587,7 @@ static PHP_METHOD(Phalcon_Loader, autoLoad) { ZEPHIR_CALL_METHOD(NULL, &eventsManager, "fire", &_22, 0, &_21$$16, this_ptr, &filePath); zephir_check_call_status(); } - ZEPHIR_CALL_FUNCTION(&_23$$15, "is_file", &_14, 298, &filePath); + ZEPHIR_CALL_FUNCTION(&_23$$15, "is_file", &_14, 266, &filePath); zephir_check_call_status(); if (zephir_is_true(&_23$$15)) { if (Z_TYPE_P(&eventsManager) == IS_OBJECT) { @@ -21298,11 +19785,11 @@ static PHP_METHOD(Phalcon_Registry, offsetExists) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &offset_param); - if (unlikely(Z_TYPE_P(offset_param) != IS_STRING && Z_TYPE_P(offset_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(offset_param) != IS_STRING && Z_TYPE_P(offset_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'offset' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(offset_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(offset_param) == IS_STRING)) { zephir_get_strval(&offset, offset_param); } else { ZEPHIR_INIT_VAR(&offset); @@ -21328,11 +19815,11 @@ static PHP_METHOD(Phalcon_Registry, offsetGet) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &offset_param); - if (unlikely(Z_TYPE_P(offset_param) != IS_STRING && Z_TYPE_P(offset_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(offset_param) != IS_STRING && Z_TYPE_P(offset_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'offset' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(offset_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(offset_param) == IS_STRING)) { zephir_get_strval(&offset, offset_param); } else { ZEPHIR_INIT_VAR(&offset); @@ -21358,11 +19845,11 @@ static PHP_METHOD(Phalcon_Registry, offsetSet) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &offset_param, &value); - if (unlikely(Z_TYPE_P(offset_param) != IS_STRING && Z_TYPE_P(offset_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(offset_param) != IS_STRING && Z_TYPE_P(offset_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'offset' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(offset_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(offset_param) == IS_STRING)) { zephir_get_strval(&offset, offset_param); } else { ZEPHIR_INIT_VAR(&offset); @@ -21387,11 +19874,11 @@ static PHP_METHOD(Phalcon_Registry, offsetUnset) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &offset_param); - if (unlikely(Z_TYPE_P(offset_param) != IS_STRING && Z_TYPE_P(offset_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(offset_param) != IS_STRING && Z_TYPE_P(offset_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'offset' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(offset_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(offset_param) == IS_STRING)) { zephir_get_strval(&offset, offset_param); } else { ZEPHIR_INIT_VAR(&offset); @@ -21430,7 +19917,7 @@ static PHP_METHOD(Phalcon_Registry, next) { zephir_read_property(&_0, this_ptr, SL("_data"), PH_NOISY_CC | PH_READONLY); ZEPHIR_MAKE_REF(&_0); - ZEPHIR_CALL_FUNCTION(NULL, "next", NULL, 417, &_0); + ZEPHIR_CALL_FUNCTION(NULL, "next", NULL, 380, &_0); ZEPHIR_UNREF(&_0); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -21448,7 +19935,7 @@ static PHP_METHOD(Phalcon_Registry, key) { ZEPHIR_MM_GROW(); zephir_read_property(&_0, this_ptr, SL("_data"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_RETURN_CALL_FUNCTION("key", NULL, 418, &_0); + ZEPHIR_RETURN_CALL_FUNCTION("key", NULL, 381, &_0); zephir_check_call_status(); RETURN_MM(); @@ -21466,7 +19953,7 @@ static PHP_METHOD(Phalcon_Registry, rewind) { zephir_read_property(&_0, this_ptr, SL("_data"), PH_NOISY_CC | PH_READONLY); ZEPHIR_MAKE_REF(&_0); - ZEPHIR_CALL_FUNCTION(NULL, "reset", NULL, 419, &_0); + ZEPHIR_CALL_FUNCTION(NULL, "reset", NULL, 382, &_0); ZEPHIR_UNREF(&_0); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -21485,7 +19972,7 @@ static PHP_METHOD(Phalcon_Registry, valid) { ZEPHIR_MM_GROW(); zephir_read_property(&_0, this_ptr, SL("_data"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(&_1, "key", NULL, 418, &_0); + ZEPHIR_CALL_FUNCTION(&_1, "key", NULL, 381, &_0); zephir_check_call_status(); RETURN_MM_BOOL(Z_TYPE_P(&_1) != IS_NULL); @@ -21502,7 +19989,7 @@ static PHP_METHOD(Phalcon_Registry, current) { ZEPHIR_MM_GROW(); zephir_read_property(&_0, this_ptr, SL("_data"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_RETURN_CALL_FUNCTION("current", NULL, 420, &_0); + ZEPHIR_RETURN_CALL_FUNCTION("current", NULL, 383, &_0); zephir_check_call_status(); RETURN_MM(); @@ -21521,11 +20008,11 @@ static PHP_METHOD(Phalcon_Registry, __set) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &key_param, &value); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(&key, key_param); } else { ZEPHIR_INIT_VAR(&key); @@ -21533,7 +20020,7 @@ static PHP_METHOD(Phalcon_Registry, __set) { } - ZEPHIR_CALL_METHOD(NULL, this_ptr, "offsetset", NULL, 421, &key, value); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "offsetset", NULL, 384, &key, value); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -21551,11 +20038,11 @@ static PHP_METHOD(Phalcon_Registry, __get) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &key_param); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(&key, key_param); } else { ZEPHIR_INIT_VAR(&key); @@ -21563,7 +20050,7 @@ static PHP_METHOD(Phalcon_Registry, __get) { } - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "offsetget", NULL, 422, &key); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "offsetget", NULL, 385, &key); zephir_check_call_status(); RETURN_MM(); @@ -21581,11 +20068,11 @@ static PHP_METHOD(Phalcon_Registry, __isset) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &key_param); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(&key, key_param); } else { ZEPHIR_INIT_VAR(&key); @@ -21593,7 +20080,7 @@ static PHP_METHOD(Phalcon_Registry, __isset) { } - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "offsetexists", NULL, 423, &key); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "offsetexists", NULL, 386, &key); zephir_check_call_status(); RETURN_MM(); @@ -21611,11 +20098,11 @@ static PHP_METHOD(Phalcon_Registry, __unset) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &key_param); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(&key, key_param); } else { ZEPHIR_INIT_VAR(&key); @@ -21623,7 +20110,7 @@ static PHP_METHOD(Phalcon_Registry, __unset) { } - ZEPHIR_CALL_METHOD(NULL, this_ptr, "offsetunset", NULL, 424, &key); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "offsetunset", NULL, 387, &key); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -21765,7 +20252,7 @@ static PHP_METHOD(Phalcon_Security, setRandomBytes) { zephir_fetch_params(0, 1, 0, &randomBytes_param); - if (unlikely(Z_TYPE_P(randomBytes_param) != IS_LONG)) { + if (UNEXPECTED(Z_TYPE_P(randomBytes_param) != IS_LONG)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'randomBytes' must be a long") TSRMLS_CC); RETURN_NULL(); } @@ -21937,7 +20424,7 @@ static PHP_METHOD(Phalcon_Security, hash) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_security_exception_ce, "Unable to get random bytes for the salt", "phalcon/security.zep", 222); return; } - ZEPHIR_RETURN_CALL_FUNCTION("crypt", &_6, 425, &password, &saltBytes); + ZEPHIR_RETURN_CALL_FUNCTION("crypt", &_6, 388, &password, &saltBytes); zephir_check_call_status(); RETURN_MM(); } @@ -21958,7 +20445,7 @@ static PHP_METHOD(Phalcon_Security, hash) { } ZEPHIR_INIT_VAR(&_8$$15); ZEPHIR_CONCAT_SVSVS(&_8$$15, "$", &variant, "$", &saltBytes, "$"); - ZEPHIR_RETURN_CALL_FUNCTION("crypt", &_6, 425, &password, &_8$$15); + ZEPHIR_RETURN_CALL_FUNCTION("crypt", &_6, 388, &password, &_8$$15); zephir_check_call_status(); RETURN_MM(); } @@ -21979,11 +20466,11 @@ static PHP_METHOD(Phalcon_Security, hash) { ZEPHIR_INIT_VAR(&_10$$17); ZVAL_STRING(&_10$$17, "%02s"); ZVAL_LONG(&_9$$17, workFactor); - ZEPHIR_CALL_FUNCTION(&_11$$17, "sprintf", NULL, 194, &_10$$17, &_9$$17); + ZEPHIR_CALL_FUNCTION(&_11$$17, "sprintf", NULL, 176, &_10$$17, &_9$$17); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_12$$17); ZEPHIR_CONCAT_SVSVSVS(&_12$$17, "$2", &variant, "$", &_11$$17, "$", &saltBytes, "$"); - ZEPHIR_RETURN_CALL_FUNCTION("crypt", &_6, 425, &password, &_12$$17); + ZEPHIR_RETURN_CALL_FUNCTION("crypt", &_6, 388, &password, &_12$$17); zephir_check_call_status(); RETURN_MM(); } while(0); @@ -22030,7 +20517,7 @@ static PHP_METHOD(Phalcon_Security, checkHash) { RETURN_MM_BOOL(0); } } - ZEPHIR_CALL_FUNCTION(&_1, "crypt", NULL, 425, &password, &passwordHash); + ZEPHIR_CALL_FUNCTION(&_1, "crypt", NULL, 388, &password, &passwordHash); zephir_check_call_status(); zephir_get_strval(&_2, &_1); ZEPHIR_CPY_WRT(&cryptedHash, &_2); @@ -22348,14 +20835,14 @@ static PHP_METHOD(Phalcon_Security, computeHmac) { ZVAL_BOOL(&_0, (raw ? 1 : 0)); - ZEPHIR_CALL_FUNCTION(&hmac, "hash_hmac", NULL, 426, &algo, &data, &key, &_0); + ZEPHIR_CALL_FUNCTION(&hmac, "hash_hmac", NULL, 389, &algo, &data, &key, &_0); zephir_check_call_status(); if (!(zephir_is_true(&hmac))) { ZEPHIR_INIT_VAR(&_1$$3); object_init_ex(&_1$$3, phalcon_security_exception_ce); ZEPHIR_INIT_VAR(&_2$$3); ZEPHIR_CONCAT_SV(&_2$$3, "Unknown hashing algorithm: %s", &algo); - ZEPHIR_CALL_METHOD(NULL, &_1$$3, "__construct", NULL, 9, &_2$$3); + ZEPHIR_CALL_METHOD(NULL, &_1$$3, "__construct", NULL, 4, &_2$$3); zephir_check_call_status(); zephir_throw_exception_debug(&_1$$3, "phalcon/security.zep", 465 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -22409,7 +20896,7 @@ static PHP_METHOD(Phalcon_Security, hasLibreSsl) { ZEPHIR_INIT_VAR(&_0); ZVAL_STRING(&_0, "OPENSSL_VERSION_TEXT"); - ZEPHIR_CALL_FUNCTION(&_1, "defined", NULL, 239, &_0); + ZEPHIR_CALL_FUNCTION(&_1, "defined", NULL, 207, &_0); zephir_check_call_status(); if (!(zephir_is_true(&_1))) { RETURN_MM_BOOL(0); @@ -22586,11 +21073,11 @@ static PHP_METHOD(Phalcon_Tag, renderAttributes) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &code_param, &attributes_param); - if (unlikely(Z_TYPE_P(code_param) != IS_STRING && Z_TYPE_P(code_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(code_param) != IS_STRING && Z_TYPE_P(code_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'code' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(code_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(code_param) == IS_STRING)) { zephir_get_strval(&code, code_param); } else { ZEPHIR_INIT_VAR(&code); @@ -22680,7 +21167,7 @@ static PHP_METHOD(Phalcon_Tag, renderAttributes) { zephir_gettype(&_13$$9, &value TSRMLS_CC); ZEPHIR_INIT_LNVAR(_14$$9); ZEPHIR_CONCAT_SVSVS(&_14$$9, "Value at index: '", &key, "' type: '", &_13$$9, "' cannot be rendered"); - ZEPHIR_CALL_METHOD(NULL, &_12$$9, "__construct", &_15, 9, &_14$$9); + ZEPHIR_CALL_METHOD(NULL, &_12$$9, "__construct", &_15, 4, &_14$$9); zephir_check_call_status(); zephir_throw_exception_debug(&_12$$9, "phalcon/tag.zep", 151 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -22732,7 +21219,7 @@ static PHP_METHOD(Phalcon_Tag, getDI) { ZEPHIR_OBS_VAR(&di); zephir_read_static_property_ce(&di, phalcon_tag_ce, SL("_dependencyInjector"), PH_NOISY_CC); if (Z_TYPE_P(&di) != IS_OBJECT) { - ZEPHIR_CALL_CE_STATIC(&di, phalcon_di_ce, "getdefault", &_0, 1); + ZEPHIR_CALL_CE_STATIC(&di, phalcon_di_ce, "getdefault", &_0, 0); zephir_check_call_status(); } RETURN_CCTOR(di); @@ -22837,11 +21324,11 @@ static PHP_METHOD(Phalcon_Tag, setDefault) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &id_param, &value); - if (unlikely(Z_TYPE_P(id_param) != IS_STRING && Z_TYPE_P(id_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(id_param) != IS_STRING && Z_TYPE_P(id_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'id' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(id_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(id_param) == IS_STRING)) { zephir_get_strval(&id, id_param); } else { ZEPHIR_INIT_VAR(&id); @@ -23323,7 +21810,7 @@ static PHP_METHOD(Phalcon_Tag, colorField) { ZEPHIR_INIT_VAR(&_1); ZVAL_STRING(&_1, "color"); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 440, &_1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 402, &_1, parameters); zephir_check_call_status(); RETURN_MM(); @@ -23346,7 +21833,7 @@ static PHP_METHOD(Phalcon_Tag, textField) { ZEPHIR_INIT_VAR(&_1); ZVAL_STRING(&_1, "text"); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 440, &_1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 402, &_1, parameters); zephir_check_call_status(); RETURN_MM(); @@ -23369,7 +21856,7 @@ static PHP_METHOD(Phalcon_Tag, numericField) { ZEPHIR_INIT_VAR(&_1); ZVAL_STRING(&_1, "number"); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 440, &_1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 402, &_1, parameters); zephir_check_call_status(); RETURN_MM(); @@ -23392,7 +21879,7 @@ static PHP_METHOD(Phalcon_Tag, rangeField) { ZEPHIR_INIT_VAR(&_1); ZVAL_STRING(&_1, "range"); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 440, &_1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 402, &_1, parameters); zephir_check_call_status(); RETURN_MM(); @@ -23415,7 +21902,7 @@ static PHP_METHOD(Phalcon_Tag, emailField) { ZEPHIR_INIT_VAR(&_1); ZVAL_STRING(&_1, "email"); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 440, &_1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 402, &_1, parameters); zephir_check_call_status(); RETURN_MM(); @@ -23438,7 +21925,7 @@ static PHP_METHOD(Phalcon_Tag, dateField) { ZEPHIR_INIT_VAR(&_1); ZVAL_STRING(&_1, "date"); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 440, &_1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 402, &_1, parameters); zephir_check_call_status(); RETURN_MM(); @@ -23461,7 +21948,7 @@ static PHP_METHOD(Phalcon_Tag, dateTimeField) { ZEPHIR_INIT_VAR(&_1); ZVAL_STRING(&_1, "datetime"); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 440, &_1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 402, &_1, parameters); zephir_check_call_status(); RETURN_MM(); @@ -23484,7 +21971,7 @@ static PHP_METHOD(Phalcon_Tag, dateTimeLocalField) { ZEPHIR_INIT_VAR(&_1); ZVAL_STRING(&_1, "datetime-local"); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 440, &_1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 402, &_1, parameters); zephir_check_call_status(); RETURN_MM(); @@ -23507,7 +21994,7 @@ static PHP_METHOD(Phalcon_Tag, monthField) { ZEPHIR_INIT_VAR(&_1); ZVAL_STRING(&_1, "month"); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 440, &_1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 402, &_1, parameters); zephir_check_call_status(); RETURN_MM(); @@ -23530,7 +22017,7 @@ static PHP_METHOD(Phalcon_Tag, timeField) { ZEPHIR_INIT_VAR(&_1); ZVAL_STRING(&_1, "time"); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 440, &_1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 402, &_1, parameters); zephir_check_call_status(); RETURN_MM(); @@ -23553,7 +22040,7 @@ static PHP_METHOD(Phalcon_Tag, weekField) { ZEPHIR_INIT_VAR(&_1); ZVAL_STRING(&_1, "week"); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 440, &_1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 402, &_1, parameters); zephir_check_call_status(); RETURN_MM(); @@ -23576,7 +22063,7 @@ static PHP_METHOD(Phalcon_Tag, passwordField) { ZEPHIR_INIT_VAR(&_1); ZVAL_STRING(&_1, "password"); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 440, &_1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 402, &_1, parameters); zephir_check_call_status(); RETURN_MM(); @@ -23599,7 +22086,7 @@ static PHP_METHOD(Phalcon_Tag, hiddenField) { ZEPHIR_INIT_VAR(&_1); ZVAL_STRING(&_1, "hidden"); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 440, &_1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 402, &_1, parameters); zephir_check_call_status(); RETURN_MM(); @@ -23622,7 +22109,7 @@ static PHP_METHOD(Phalcon_Tag, fileField) { ZEPHIR_INIT_VAR(&_1); ZVAL_STRING(&_1, "file"); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 440, &_1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 402, &_1, parameters); zephir_check_call_status(); RETURN_MM(); @@ -23645,7 +22132,7 @@ static PHP_METHOD(Phalcon_Tag, searchField) { ZEPHIR_INIT_VAR(&_1); ZVAL_STRING(&_1, "search"); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 440, &_1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 402, &_1, parameters); zephir_check_call_status(); RETURN_MM(); @@ -23668,7 +22155,7 @@ static PHP_METHOD(Phalcon_Tag, telField) { ZEPHIR_INIT_VAR(&_1); ZVAL_STRING(&_1, "tel"); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 440, &_1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 402, &_1, parameters); zephir_check_call_status(); RETURN_MM(); @@ -23691,7 +22178,7 @@ static PHP_METHOD(Phalcon_Tag, urlField) { ZEPHIR_INIT_VAR(&_1); ZVAL_STRING(&_1, "url"); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 440, &_1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 402, &_1, parameters); zephir_check_call_status(); RETURN_MM(); @@ -23714,7 +22201,7 @@ static PHP_METHOD(Phalcon_Tag, checkField) { ZEPHIR_INIT_VAR(&_1); ZVAL_STRING(&_1, "checkbox"); - ZEPHIR_RETURN_CALL_SELF("_inputfieldchecked", &_0, 441, &_1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfieldchecked", &_0, 403, &_1, parameters); zephir_check_call_status(); RETURN_MM(); @@ -23737,7 +22224,7 @@ static PHP_METHOD(Phalcon_Tag, radioField) { ZEPHIR_INIT_VAR(&_1); ZVAL_STRING(&_1, "radio"); - ZEPHIR_RETURN_CALL_SELF("_inputfieldchecked", &_0, 441, &_1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfieldchecked", &_0, 403, &_1, parameters); zephir_check_call_status(); RETURN_MM(); @@ -23762,7 +22249,7 @@ static PHP_METHOD(Phalcon_Tag, imageInput) { ZEPHIR_INIT_VAR(&_1); ZVAL_STRING(&_1, "image"); ZVAL_BOOL(&_2, 1); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 440, &_1, parameters, &_2); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 402, &_1, parameters, &_2); zephir_check_call_status(); RETURN_MM(); @@ -23787,7 +22274,7 @@ static PHP_METHOD(Phalcon_Tag, submitButton) { ZEPHIR_INIT_VAR(&_1); ZVAL_STRING(&_1, "submit"); ZVAL_BOOL(&_2, 1); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 440, &_1, parameters, &_2); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 402, &_1, parameters, &_2); zephir_check_call_status(); RETURN_MM(); @@ -23813,7 +22300,7 @@ static PHP_METHOD(Phalcon_Tag, selectStatic) { } - ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_select_ce, "selectfield", &_0, 213, parameters, data); + ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_select_ce, "selectfield", &_0, 0, parameters, data); zephir_check_call_status(); RETURN_MM(); @@ -23839,7 +22326,7 @@ static PHP_METHOD(Phalcon_Tag, select) { } - ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_select_ce, "selectfield", &_0, 213, parameters, data); + ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_select_ce, "selectfield", &_0, 0, parameters, data); zephir_check_call_status(); RETURN_MM(); @@ -24160,7 +22647,7 @@ static PHP_METHOD(Phalcon_Tag, getTitle) { ZEPHIR_OBS_VAR(&documentPrependTitle); zephir_read_static_property_ce(&documentPrependTitle, phalcon_tag_ce, SL("_documentPrependTitle"), PH_NOISY_CC); if (!(ZEPHIR_IS_EMPTY(&documentPrependTitle))) { - ZEPHIR_CALL_FUNCTION(&tmp$$5, "array_reverse", NULL, 442, &documentPrependTitle); + ZEPHIR_CALL_FUNCTION(&tmp$$5, "array_reverse", NULL, 404, &documentPrependTitle); zephir_check_call_status(); zephir_is_iterable(&tmp$$5, 0, "phalcon/tag.zep", 1228); ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&tmp$$5), _8$$5) @@ -24560,19 +23047,19 @@ static PHP_METHOD(Phalcon_Tag, friendlyTitle) { ZEPHIR_INIT_VAR(&_0); ZVAL_STRING(&_0, "iconv"); - ZEPHIR_CALL_FUNCTION(&_1, "extension_loaded", &_2, 136, &_0); + ZEPHIR_CALL_FUNCTION(&_1, "extension_loaded", &_2, 124, &_0); zephir_check_call_status(); if (zephir_is_true(&_1)) { ZVAL_LONG(&_3$$3, 6); ZEPHIR_INIT_VAR(&_4$$3); ZVAL_STRING(&_4$$3, "en_US.UTF-8"); - ZEPHIR_CALL_FUNCTION(&locale, "setlocale", &_5, 443, &_3$$3, &_4$$3); + ZEPHIR_CALL_FUNCTION(&locale, "setlocale", &_5, 405, &_3$$3, &_4$$3); zephir_check_call_status(); ZEPHIR_INIT_NVAR(&_4$$3); ZVAL_STRING(&_4$$3, "UTF-8"); ZEPHIR_INIT_VAR(&_6$$3); ZVAL_STRING(&_6$$3, "ASCII//TRANSLIT"); - ZEPHIR_CALL_FUNCTION(&_7$$3, "iconv", NULL, 395, &_4$$3, &_6$$3, &text); + ZEPHIR_CALL_FUNCTION(&_7$$3, "iconv", NULL, 358, &_4$$3, &_6$$3, &text); zephir_check_call_status(); zephir_get_strval(&text, &_7$$3); } @@ -24610,7 +23097,7 @@ static PHP_METHOD(Phalcon_Tag, friendlyTitle) { ZVAL_STRING(&_0, "/[^a-zA-Z0-9\\/_|+ -]/"); ZEPHIR_INIT_VAR(&_14); ZVAL_STRING(&_14, ""); - ZEPHIR_CALL_FUNCTION(&friendly, "preg_replace", &_15, 39, &_0, &_14, &text); + ZEPHIR_CALL_FUNCTION(&friendly, "preg_replace", &_15, 33, &_0, &_14, &text); zephir_check_call_status(); if (lowercase) { ZEPHIR_INIT_VAR(&_16$$9); @@ -24619,7 +23106,7 @@ static PHP_METHOD(Phalcon_Tag, friendlyTitle) { } ZEPHIR_INIT_NVAR(&_0); ZVAL_STRING(&_0, "/[\\/_|+ -]+/"); - ZEPHIR_CALL_FUNCTION(&_17, "preg_replace", &_15, 39, &_0, &separator, &friendly); + ZEPHIR_CALL_FUNCTION(&_17, "preg_replace", &_15, 33, &_0, &separator, &friendly); zephir_check_call_status(); ZEPHIR_CPY_WRT(&friendly, &_17); ZEPHIR_INIT_NVAR(&_0); @@ -24627,11 +23114,11 @@ static PHP_METHOD(Phalcon_Tag, friendlyTitle) { ZEPHIR_CPY_WRT(&friendly, &_0); ZEPHIR_INIT_NVAR(&_0); ZVAL_STRING(&_0, "iconv"); - ZEPHIR_CALL_FUNCTION(&_17, "extension_loaded", &_2, 136, &_0); + ZEPHIR_CALL_FUNCTION(&_17, "extension_loaded", &_2, 124, &_0); zephir_check_call_status(); if (zephir_is_true(&_17)) { ZVAL_LONG(&_18$$10, 6); - ZEPHIR_CALL_FUNCTION(NULL, "setlocale", &_5, 443, &_18$$10, &locale); + ZEPHIR_CALL_FUNCTION(NULL, "setlocale", &_5, 405, &_18$$10, &locale); zephir_check_call_status(); } RETURN_CCTOR(friendly); @@ -24933,11 +23420,11 @@ static PHP_METHOD(Phalcon_Text, camelize) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &str_param, &delimiter); - if (unlikely(Z_TYPE_P(str_param) != IS_STRING && Z_TYPE_P(str_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(str_param) != IS_STRING && Z_TYPE_P(str_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'str' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(str_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(str_param) == IS_STRING)) { zephir_get_strval(&str, str_param); } else { ZEPHIR_INIT_VAR(&str); @@ -24969,11 +23456,11 @@ static PHP_METHOD(Phalcon_Text, uncamelize) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &str_param, &delimiter); - if (unlikely(Z_TYPE_P(str_param) != IS_STRING && Z_TYPE_P(str_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(str_param) != IS_STRING && Z_TYPE_P(str_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'str' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(str_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(str_param) == IS_STRING)) { zephir_get_strval(&str, str_param); } else { ZEPHIR_INIT_VAR(&str); @@ -25089,13 +23576,13 @@ static PHP_METHOD(Phalcon_Text, random) { ZVAL_STRING(&_0$$3, "a"); ZEPHIR_INIT_VAR(&_1$$3); ZVAL_STRING(&_1$$3, "z"); - ZEPHIR_CALL_FUNCTION(&_2$$3, "range", &_3, 447, &_0$$3, &_1$$3); + ZEPHIR_CALL_FUNCTION(&_2$$3, "range", &_3, 408, &_0$$3, &_1$$3); zephir_check_call_status(); ZEPHIR_INIT_NVAR(&_0$$3); ZVAL_STRING(&_0$$3, "A"); ZEPHIR_INIT_NVAR(&_1$$3); ZVAL_STRING(&_1$$3, "Z"); - ZEPHIR_CALL_FUNCTION(&_4$$3, "range", &_3, 447, &_0$$3, &_1$$3); + ZEPHIR_CALL_FUNCTION(&_4$$3, "range", &_3, 408, &_0$$3, &_1$$3); zephir_check_call_status(); ZEPHIR_INIT_VAR(&pool); zephir_fast_array_merge(&pool, &_2$$3, &_4$$3 TSRMLS_CC); @@ -25104,13 +23591,13 @@ static PHP_METHOD(Phalcon_Text, random) { if (type == 2) { ZVAL_LONG(&_5$$4, 0); ZVAL_LONG(&_6$$4, 9); - ZEPHIR_CALL_FUNCTION(&_7$$4, "range", &_3, 447, &_5$$4, &_6$$4); + ZEPHIR_CALL_FUNCTION(&_7$$4, "range", &_3, 408, &_5$$4, &_6$$4); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_8$$4); ZVAL_STRING(&_8$$4, "a"); ZEPHIR_INIT_VAR(&_9$$4); ZVAL_STRING(&_9$$4, "f"); - ZEPHIR_CALL_FUNCTION(&_10$$4, "range", &_3, 447, &_8$$4, &_9$$4); + ZEPHIR_CALL_FUNCTION(&_10$$4, "range", &_3, 408, &_8$$4, &_9$$4); zephir_check_call_status(); ZEPHIR_INIT_NVAR(&pool); zephir_fast_array_merge(&pool, &_7$$4, &_10$$4 TSRMLS_CC); @@ -25119,34 +23606,34 @@ static PHP_METHOD(Phalcon_Text, random) { if (type == 3) { ZVAL_LONG(&_11$$5, 0); ZVAL_LONG(&_12$$5, 9); - ZEPHIR_CALL_FUNCTION(&pool, "range", &_3, 447, &_11$$5, &_12$$5); + ZEPHIR_CALL_FUNCTION(&pool, "range", &_3, 408, &_11$$5, &_12$$5); zephir_check_call_status(); break; } if (type == 4) { ZVAL_LONG(&_13$$6, 1); ZVAL_LONG(&_14$$6, 9); - ZEPHIR_CALL_FUNCTION(&pool, "range", &_3, 447, &_13$$6, &_14$$6); + ZEPHIR_CALL_FUNCTION(&pool, "range", &_3, 408, &_13$$6, &_14$$6); zephir_check_call_status(); break; } ZVAL_LONG(&_15$$7, 0); ZVAL_LONG(&_16$$7, 9); - ZEPHIR_CALL_FUNCTION(&_17$$7, "range", &_3, 447, &_15$$7, &_16$$7); + ZEPHIR_CALL_FUNCTION(&_17$$7, "range", &_3, 408, &_15$$7, &_16$$7); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_18$$7); ZVAL_STRING(&_18$$7, "a"); ZEPHIR_INIT_VAR(&_19$$7); ZVAL_STRING(&_19$$7, "z"); - ZEPHIR_CALL_FUNCTION(&_20$$7, "range", &_3, 447, &_18$$7, &_19$$7); + ZEPHIR_CALL_FUNCTION(&_20$$7, "range", &_3, 408, &_18$$7, &_19$$7); zephir_check_call_status(); ZEPHIR_INIT_NVAR(&_18$$7); ZVAL_STRING(&_18$$7, "A"); ZEPHIR_INIT_NVAR(&_19$$7); ZVAL_STRING(&_19$$7, "Z"); - ZEPHIR_CALL_FUNCTION(&_21$$7, "range", &_3, 447, &_18$$7, &_19$$7); + ZEPHIR_CALL_FUNCTION(&_21$$7, "range", &_3, 408, &_18$$7, &_19$$7); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&pool, "array_merge", &_22, 448, &_17$$7, &_20$$7, &_21$$7); + ZEPHIR_CALL_FUNCTION(&pool, "array_merge", &_22, 409, &_17$$7, &_20$$7, &_21$$7); zephir_check_call_status(); break; } while(0); @@ -25234,11 +23721,11 @@ static PHP_METHOD(Phalcon_Text, lower) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &str_param, &encoding_param); - if (unlikely(Z_TYPE_P(str_param) != IS_STRING && Z_TYPE_P(str_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(str_param) != IS_STRING && Z_TYPE_P(str_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'str' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(str_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(str_param) == IS_STRING)) { zephir_get_strval(&str, str_param); } else { ZEPHIR_INIT_VAR(&str); @@ -25248,11 +23735,11 @@ static PHP_METHOD(Phalcon_Text, lower) { ZEPHIR_INIT_VAR(&encoding); ZVAL_STRING(&encoding, "UTF-8"); } else { - if (unlikely(Z_TYPE_P(encoding_param) != IS_STRING && Z_TYPE_P(encoding_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(encoding_param) != IS_STRING && Z_TYPE_P(encoding_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'encoding' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(encoding_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(encoding_param) == IS_STRING)) { zephir_get_strval(&encoding, encoding_param); } else { ZEPHIR_INIT_VAR(&encoding); @@ -25262,7 +23749,7 @@ static PHP_METHOD(Phalcon_Text, lower) { if ((zephir_function_exists_ex(SL("mb_strtolower") TSRMLS_CC) == SUCCESS)) { - ZEPHIR_RETURN_CALL_FUNCTION("mb_strtolower", NULL, 201, &str, &encoding); + ZEPHIR_RETURN_CALL_FUNCTION("mb_strtolower", NULL, 183, &str, &encoding); zephir_check_call_status(); RETURN_MM(); } @@ -25284,11 +23771,11 @@ static PHP_METHOD(Phalcon_Text, upper) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &str_param, &encoding_param); - if (unlikely(Z_TYPE_P(str_param) != IS_STRING && Z_TYPE_P(str_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(str_param) != IS_STRING && Z_TYPE_P(str_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'str' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(str_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(str_param) == IS_STRING)) { zephir_get_strval(&str, str_param); } else { ZEPHIR_INIT_VAR(&str); @@ -25298,11 +23785,11 @@ static PHP_METHOD(Phalcon_Text, upper) { ZEPHIR_INIT_VAR(&encoding); ZVAL_STRING(&encoding, "UTF-8"); } else { - if (unlikely(Z_TYPE_P(encoding_param) != IS_STRING && Z_TYPE_P(encoding_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(encoding_param) != IS_STRING && Z_TYPE_P(encoding_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'encoding' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(encoding_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(encoding_param) == IS_STRING)) { zephir_get_strval(&encoding, encoding_param); } else { ZEPHIR_INIT_VAR(&encoding); @@ -25312,7 +23799,7 @@ static PHP_METHOD(Phalcon_Text, upper) { if ((zephir_function_exists_ex(SL("mb_strtoupper") TSRMLS_CC) == SUCCESS)) { - ZEPHIR_RETURN_CALL_FUNCTION("mb_strtoupper", NULL, 202, &str, &encoding); + ZEPHIR_RETURN_CALL_FUNCTION("mb_strtoupper", NULL, 184, &str, &encoding); zephir_check_call_status(); RETURN_MM(); } @@ -25342,7 +23829,7 @@ static PHP_METHOD(Phalcon_Text, reduceSlashes) { ZVAL_STRING(&_0, "#(? 3) { + ZEPHIR_INIT_VAR(&_3$$3); + zephir_get_args(&_3$$3); ZVAL_LONG(&_4$$3, 3); - ZEPHIR_CALL_FUNCTION(&_5$$3, "array_slice", NULL, 396, &_3$$3, &_4$$3); + ZEPHIR_CALL_FUNCTION(&_5$$3, "array_slice", NULL, 359, &_3$$3, &_4$$3); zephir_check_call_status(); zephir_is_iterable(&_5$$3, 0, "phalcon/text.zep", 256); ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&_5$$3), _6$$3) @@ -25450,11 +23935,11 @@ static PHP_METHOD(Phalcon_Text, dynamic) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 3, &text_param, &leftDelimiter_param, &rightDelimiter_param, &separator_param); - if (unlikely(Z_TYPE_P(text_param) != IS_STRING && Z_TYPE_P(text_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(text_param) != IS_STRING && Z_TYPE_P(text_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'text' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(text_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(text_param) == IS_STRING)) { zephir_get_strval(&text, text_param); } else { ZEPHIR_INIT_VAR(&text); @@ -25464,11 +23949,11 @@ static PHP_METHOD(Phalcon_Text, dynamic) { ZEPHIR_INIT_VAR(&leftDelimiter); ZVAL_STRING(&leftDelimiter, "{"); } else { - if (unlikely(Z_TYPE_P(leftDelimiter_param) != IS_STRING && Z_TYPE_P(leftDelimiter_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(leftDelimiter_param) != IS_STRING && Z_TYPE_P(leftDelimiter_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'leftDelimiter' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(leftDelimiter_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(leftDelimiter_param) == IS_STRING)) { zephir_get_strval(&leftDelimiter, leftDelimiter_param); } else { ZEPHIR_INIT_VAR(&leftDelimiter); @@ -25479,11 +23964,11 @@ static PHP_METHOD(Phalcon_Text, dynamic) { ZEPHIR_INIT_VAR(&rightDelimiter); ZVAL_STRING(&rightDelimiter, "}"); } else { - if (unlikely(Z_TYPE_P(rightDelimiter_param) != IS_STRING && Z_TYPE_P(rightDelimiter_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(rightDelimiter_param) != IS_STRING && Z_TYPE_P(rightDelimiter_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'rightDelimiter' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(rightDelimiter_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(rightDelimiter_param) == IS_STRING)) { zephir_get_strval(&rightDelimiter, rightDelimiter_param); } else { ZEPHIR_INIT_VAR(&rightDelimiter); @@ -25494,11 +23979,11 @@ static PHP_METHOD(Phalcon_Text, dynamic) { ZEPHIR_INIT_VAR(&separator); ZVAL_STRING(&separator, "|"); } else { - if (unlikely(Z_TYPE_P(separator_param) != IS_STRING && Z_TYPE_P(separator_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(separator_param) != IS_STRING && Z_TYPE_P(separator_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'separator' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(separator_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(separator_param) == IS_STRING)) { zephir_get_strval(&separator, separator_param); } else { ZEPHIR_INIT_VAR(&separator); @@ -25507,24 +23992,24 @@ static PHP_METHOD(Phalcon_Text, dynamic) { } - ZEPHIR_CALL_FUNCTION(&_0, "substr_count", &_1, 451, &text, &leftDelimiter); + ZEPHIR_CALL_FUNCTION(&_0, "substr_count", &_1, 410, &text, &leftDelimiter); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_2, "substr_count", &_1, 451, &text, &rightDelimiter); + ZEPHIR_CALL_FUNCTION(&_2, "substr_count", &_1, 410, &text, &rightDelimiter); zephir_check_call_status(); if (!ZEPHIR_IS_IDENTICAL(&_0, &_2)) { ZEPHIR_INIT_VAR(&_3$$3); object_init_ex(&_3$$3, spl_ce_RuntimeException); ZEPHIR_INIT_VAR(&_4$$3); ZEPHIR_CONCAT_SVS(&_4$$3, "Syntax error in string \"", &text, "\""); - ZEPHIR_CALL_METHOD(NULL, &_3$$3, "__construct", NULL, 452, &_4$$3); + ZEPHIR_CALL_METHOD(NULL, &_3$$3, "__construct", NULL, 411, &_4$$3); zephir_check_call_status(); zephir_throw_exception_debug(&_3$$3, "phalcon/text.zep", 283 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } - ZEPHIR_CALL_FUNCTION(&ldS, "preg_quote", &_5, 453, &leftDelimiter); + ZEPHIR_CALL_FUNCTION(&ldS, "preg_quote", &_5, 412, &leftDelimiter); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&rdS, "preg_quote", &_5, 453, &rightDelimiter); + ZEPHIR_CALL_FUNCTION(&rdS, "preg_quote", &_5, 412, &rightDelimiter); zephir_check_call_status(); ZEPHIR_INIT_VAR(&pattern); ZEPHIR_CONCAT_SVSVVSVS(&pattern, "/", &ldS, "([^", &ldS, &rdS, "]+)", &rdS, "/"); @@ -25532,7 +24017,7 @@ static PHP_METHOD(Phalcon_Text, dynamic) { array_init(&matches); ZVAL_LONG(&_6, 2); ZEPHIR_MAKE_REF(&matches); - ZEPHIR_CALL_FUNCTION(&_7, "preg_match_all", NULL, 38, &pattern, &text, &matches, &_6); + ZEPHIR_CALL_FUNCTION(&_7, "preg_match_all", NULL, 32, &pattern, &text, &matches, &_6); ZEPHIR_UNREF(&matches); zephir_check_call_status(); if (!(zephir_is_true(&_7))) { @@ -25555,16 +24040,16 @@ static PHP_METHOD(Phalcon_Text, dynamic) { ZEPHIR_INIT_NVAR(&words); zephir_fast_explode(&words, &separator, &_10$$6, LONG_MAX TSRMLS_CC); ZEPHIR_OBS_NVAR(&word); - ZEPHIR_CALL_FUNCTION(&_11$$6, "array_rand", &_12, 454, &words); + ZEPHIR_CALL_FUNCTION(&_11$$6, "array_rand", &_12, 413, &words); zephir_check_call_status(); zephir_array_fetch(&word, &words, &_11$$6, PH_NOISY, "phalcon/text.zep", 302 TSRMLS_CC); zephir_array_fetch_long(&_13$$6, &match, 0, PH_NOISY | PH_READONLY, "phalcon/text.zep", 303 TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&sub, "preg_quote", &_5, 453, &_13$$6, &separator); + ZEPHIR_CALL_FUNCTION(&sub, "preg_quote", &_5, 412, &_13$$6, &separator); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_14$$6); ZEPHIR_CONCAT_SVS(&_14$$6, "/", &sub, "/"); ZVAL_LONG(&_15$$6, 1); - ZEPHIR_CALL_FUNCTION(&_16$$6, "preg_replace", &_17, 39, &_14$$6, &word, &text, &_15$$6); + ZEPHIR_CALL_FUNCTION(&_16$$6, "preg_replace", &_17, 33, &_14$$6, &word, &text, &_15$$6); zephir_check_call_status(); zephir_get_strval(&text, &_16$$6); } ZEND_HASH_FOREACH_END(); @@ -25589,11 +24074,11 @@ static PHP_METHOD(Phalcon_Text, underscore) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &text_param); - if (unlikely(Z_TYPE_P(text_param) != IS_STRING && Z_TYPE_P(text_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(text_param) != IS_STRING && Z_TYPE_P(text_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'text' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(text_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(text_param) == IS_STRING)) { zephir_get_strval(&text, text_param); } else { ZEPHIR_INIT_VAR(&text); @@ -25607,7 +24092,7 @@ static PHP_METHOD(Phalcon_Text, underscore) { ZVAL_STRING(&_1, "#\\s+#"); ZEPHIR_INIT_VAR(&_2); ZVAL_STRING(&_2, "_"); - ZEPHIR_RETURN_CALL_FUNCTION("preg_replace", NULL, 39, &_1, &_2, &_0); + ZEPHIR_RETURN_CALL_FUNCTION("preg_replace", NULL, 33, &_1, &_2, &_0); zephir_check_call_status(); RETURN_MM(); @@ -25628,11 +24113,11 @@ static PHP_METHOD(Phalcon_Text, humanize) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &text_param); - if (unlikely(Z_TYPE_P(text_param) != IS_STRING && Z_TYPE_P(text_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(text_param) != IS_STRING && Z_TYPE_P(text_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'text' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(text_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(text_param) == IS_STRING)) { zephir_get_strval(&text, text_param); } else { ZEPHIR_INIT_VAR(&text); @@ -25646,7 +24131,7 @@ static PHP_METHOD(Phalcon_Text, humanize) { ZVAL_STRING(&_1, "#[_-]+#"); ZEPHIR_INIT_VAR(&_2); ZVAL_STRING(&_2, " "); - ZEPHIR_RETURN_CALL_FUNCTION("preg_replace", NULL, 39, &_1, &_2, &_0); + ZEPHIR_RETURN_CALL_FUNCTION("preg_replace", NULL, 33, &_1, &_2, &_0); zephir_check_call_status(); RETURN_MM(); @@ -25762,13 +24247,13 @@ static PHP_METHOD(Phalcon_Validation, __construct) { ZEPHIR_INIT_VAR(&_0$$3); ZEPHIR_INIT_NVAR(&_0$$3); zephir_create_closure_ex(&_0$$3, NULL, phalcon_0__closure_ce, SL("__invoke")); - ZEPHIR_CALL_FUNCTION(&_1$$3, "array_filter", &_2, 464, &validators, &_0$$3); + ZEPHIR_CALL_FUNCTION(&_1$$3, "array_filter", &_2, 422, &validators, &_0$$3); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_validators"), &_1$$3); ZEPHIR_INIT_VAR(&_3$$3); ZEPHIR_INIT_NVAR(&_3$$3); zephir_create_closure_ex(&_3$$3, NULL, phalcon_1__closure_ce, SL("__invoke")); - ZEPHIR_CALL_FUNCTION(&_4$$3, "array_filter", &_2, 464, &validators, &_3$$3); + ZEPHIR_CALL_FUNCTION(&_4$$3, "array_filter", &_2, 422, &validators, &_3$$3); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_combinedFieldsValidators"), &_4$$3); } @@ -25834,7 +24319,7 @@ static PHP_METHOD(Phalcon_Validation, validate) { zephir_update_property_zval(this_ptr, SL("_values"), &__$null); ZEPHIR_INIT_VAR(&messages); object_init_ex(&messages, phalcon_validation_message_group_ce); - ZEPHIR_CALL_METHOD(NULL, &messages, "__construct", NULL, 3); + ZEPHIR_CALL_METHOD(NULL, &messages, "__construct", NULL, 2); zephir_check_call_status(); if (Z_TYPE_P(entity) != IS_NULL) { ZEPHIR_CALL_METHOD(NULL, this_ptr, "setentity", NULL, 0, entity); @@ -26220,11 +24705,11 @@ static PHP_METHOD(Phalcon_Validation, getDefaultMessage) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &type_param); - if (unlikely(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'type' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(type_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(type_param) == IS_STRING)) { zephir_get_strval(&type, type_param); } else { ZEPHIR_INIT_VAR(&type); @@ -26315,10 +24800,10 @@ static PHP_METHOD(Phalcon_Validation, appendMessage) { if (Z_TYPE_P(&messages) != IS_OBJECT) { ZEPHIR_INIT_NVAR(&messages); object_init_ex(&messages, phalcon_validation_message_group_ce); - ZEPHIR_CALL_METHOD(NULL, &messages, "__construct", NULL, 3); + ZEPHIR_CALL_METHOD(NULL, &messages, "__construct", NULL, 2); zephir_check_call_status(); } - ZEPHIR_CALL_METHOD(NULL, &messages, "appendmessage", NULL, 465, message); + ZEPHIR_CALL_METHOD(NULL, &messages, "appendmessage", NULL, 423, message); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_messages"), &messages); RETURN_THIS(); @@ -26453,7 +24938,7 @@ static PHP_METHOD(Phalcon_Validation, getValue) { ZEPHIR_CALL_METHOD(&dependencyInjector, this_ptr, "getdi", NULL, 0); zephir_check_call_status(); if (Z_TYPE_P(&dependencyInjector) != IS_OBJECT) { - ZEPHIR_CALL_CE_STATIC(&dependencyInjector, phalcon_di_ce, "getdefault", &_1, 1); + ZEPHIR_CALL_CE_STATIC(&dependencyInjector, phalcon_di_ce, "getdefault", &_1, 0); zephir_check_call_status(); if (Z_TYPE_P(&dependencyInjector) != IS_OBJECT) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_validation_exception_ce, "A dependency injector is required to obtain the 'filter' service", "phalcon/validation.zep", 536); @@ -26482,7 +24967,7 @@ static PHP_METHOD(Phalcon_Validation, getValue) { ZEPHIR_CALL_METHOD(NULL, &entity, "writeattribute", NULL, 0, &field, &value); zephir_check_call_status(); } else { - ZEPHIR_CALL_FUNCTION(&_4$$28, "property_exists", NULL, 324, &entity, &field); + ZEPHIR_CALL_FUNCTION(&_4$$28, "property_exists", NULL, 293, &entity, &field); zephir_check_call_status(); if (zephir_is_true(&_4$$28)) { zephir_update_property_zval_zval(&entity, &field, &value TSRMLS_CC); @@ -26528,7 +25013,7 @@ static PHP_METHOD(Phalcon_Validation, preChecking) { { ZEPHIR_INIT_NVAR(&singleField); ZVAL_COPY(&singleField, _0$$3); - ZEPHIR_CALL_METHOD(&result, this_ptr, "prechecking", &_1, 466, &singleField, validator); + ZEPHIR_CALL_METHOD(&result, this_ptr, "prechecking", &_1, 424, &singleField, validator); zephir_check_call_status(); if (zephir_is_true(&result)) { RETURN_CCTOR(result); @@ -26711,7 +25196,7 @@ static PHP_METHOD(Phalcon_Version, _getVersion) { ZVAL_LONG(&_0, 1); zephir_array_fast_append(return_value, &_0); ZEPHIR_INIT_NVAR(&_0); - ZVAL_LONG(&_0, 1); + ZVAL_LONG(&_0, 2); zephir_array_fast_append(return_value, &_0); ZEPHIR_INIT_NVAR(&_0); ZVAL_LONG(&_0, 4); @@ -26794,7 +25279,7 @@ static PHP_METHOD(Phalcon_Version, get) { zephir_array_fetch_long(&specialNumber, &version, 4, PH_NOISY, "phalcon/version.zep", 143 TSRMLS_CC); ZEPHIR_INIT_VAR(&result); ZEPHIR_CONCAT_VSVSVS(&result, &major, ".", &medium, ".", &minor, " "); - ZEPHIR_CALL_STATIC(&suffix, "_getspecial", &_0, 475, &special); + ZEPHIR_CALL_STATIC(&suffix, "_getspecial", &_0, 433, &special); zephir_check_call_status(); if (!ZEPHIR_IS_STRING(&suffix, "")) { ZEPHIR_INIT_VAR(&_1$$3); @@ -26839,11 +25324,11 @@ static PHP_METHOD(Phalcon_Version, getId) { zephir_array_fetch_long(&specialNumber, &version, 4, PH_NOISY, "phalcon/version.zep", 173 TSRMLS_CC); ZEPHIR_INIT_VAR(&_0); ZVAL_STRING(&_0, "%02s"); - ZEPHIR_CALL_FUNCTION(&_1, "sprintf", &_2, 194, &_0, &medium); + ZEPHIR_CALL_FUNCTION(&_1, "sprintf", &_2, 176, &_0, &medium); zephir_check_call_status(); ZEPHIR_INIT_NVAR(&_0); ZVAL_STRING(&_0, "%02s"); - ZEPHIR_CALL_FUNCTION(&_3, "sprintf", &_2, 194, &_0, &minor); + ZEPHIR_CALL_FUNCTION(&_3, "sprintf", &_2, 176, &_0, &minor); zephir_check_call_status(); ZEPHIR_CONCAT_VVVVV(return_value, &major, &_1, &_3, &special, &specialNumber); RETURN_MM(); @@ -26877,7 +25362,7 @@ static PHP_METHOD(Phalcon_Version, getPart) { } if (part == 3) { zephir_array_fetch_long(&_1$$4, &version, 3, PH_NOISY | PH_READONLY, "phalcon/version.zep", 204 TSRMLS_CC); - ZEPHIR_CALL_STATIC(&result, "_getspecial", &_0, 475, &_1$$4); + ZEPHIR_CALL_STATIC(&result, "_getspecial", &_0, 433, &_1$$4); zephir_check_call_status(); break; } @@ -27137,11 +25622,11 @@ static PHP_METHOD(Phalcon_Acl_Resource, __construct) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &name_param, &description_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(&name, name_param); } else { ZEPHIR_INIT_VAR(&name); @@ -27273,11 +25758,11 @@ static PHP_METHOD(Phalcon_Acl_Role, __construct) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &name_param, &description_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(&name, name_param); } else { ZEPHIR_INIT_VAR(&name); @@ -27443,7 +25928,7 @@ static PHP_METHOD(Phalcon_Acl_Adapter_Memory, addRole) { ZEPHIR_CPY_WRT(&roleName, role); ZEPHIR_INIT_NVAR(&roleObject); object_init_ex(&roleObject, phalcon_acl_role_ce); - ZEPHIR_CALL_METHOD(NULL, &roleObject, "__construct", NULL, 79, role); + ZEPHIR_CALL_METHOD(NULL, &roleObject, "__construct", NULL, 71, role); zephir_check_call_status(); } else { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_acl_exception_ce, "Role must be either an string or implement RoleInterface", "phalcon/acl/adapter/memory.zep", 201); @@ -27501,7 +25986,7 @@ static PHP_METHOD(Phalcon_Acl_Adapter_Memory, addInherit) { object_init_ex(&_0$$3, phalcon_acl_exception_ce); ZEPHIR_INIT_VAR(&_1$$3); ZEPHIR_CONCAT_SVS(&_1$$3, "Role '", &roleName, "' does not exist in the role list"); - ZEPHIR_CALL_METHOD(NULL, &_0$$3, "__construct", NULL, 9, &_1$$3); + ZEPHIR_CALL_METHOD(NULL, &_0$$3, "__construct", NULL, 4, &_1$$3); zephir_check_call_status(); zephir_throw_exception_debug(&_0$$3, "phalcon/acl/adapter/memory.zep", 227 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -27526,7 +26011,7 @@ static PHP_METHOD(Phalcon_Acl_Adapter_Memory, addInherit) { { ZEPHIR_INIT_NVAR(&deepInheritName); ZVAL_COPY(&deepInheritName, _6$$6); - ZEPHIR_CALL_METHOD(NULL, this_ptr, "addinherit", &_7, 80, &roleName, &deepInheritName); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "addinherit", &_7, 72, &roleName, &deepInheritName); zephir_check_call_status(); } ZEND_HASH_FOREACH_END(); ZEPHIR_INIT_NVAR(&deepInheritName); @@ -27536,7 +26021,7 @@ static PHP_METHOD(Phalcon_Acl_Adapter_Memory, addInherit) { object_init_ex(&_8$$8, phalcon_acl_exception_ce); ZEPHIR_INIT_VAR(&_9$$8); ZEPHIR_CONCAT_SVS(&_9$$8, "Role '", &roleInheritName, "' (to inherit) does not exist in the role list"); - ZEPHIR_CALL_METHOD(NULL, &_8$$8, "__construct", NULL, 9, &_9$$8); + ZEPHIR_CALL_METHOD(NULL, &_8$$8, "__construct", NULL, 4, &_9$$8); zephir_check_call_status(); zephir_throw_exception_debug(&_8$$8, "phalcon/acl/adapter/memory.zep", 249 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -27625,7 +26110,7 @@ static PHP_METHOD(Phalcon_Acl_Adapter_Memory, addResource) { ZEPHIR_CPY_WRT(&resourceName, resourceValue); ZEPHIR_INIT_NVAR(&resourceObject); object_init_ex(&resourceObject, phalcon_acl_resource_ce); - ZEPHIR_CALL_METHOD(NULL, &resourceObject, "__construct", NULL, 81, &resourceName); + ZEPHIR_CALL_METHOD(NULL, &resourceObject, "__construct", NULL, 73, &resourceName); zephir_check_call_status(); } zephir_read_property(&_1, this_ptr, SL("_resourcesNames"), PH_NOISY_CC | PH_READONLY); @@ -27671,7 +26156,7 @@ static PHP_METHOD(Phalcon_Acl_Adapter_Memory, addResourceAccess) { object_init_ex(&_1$$3, phalcon_acl_exception_ce); ZEPHIR_INIT_VAR(&_2$$3); ZEPHIR_CONCAT_SVS(&_2$$3, "Resource '", &resourceName, "' does not exist in ACL"); - ZEPHIR_CALL_METHOD(NULL, &_1$$3, "__construct", NULL, 9, &_2$$3); + ZEPHIR_CALL_METHOD(NULL, &_1$$3, "__construct", NULL, 4, &_2$$3); zephir_check_call_status(); zephir_throw_exception_debug(&_1$$3, "phalcon/acl/adapter/memory.zep", 348 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -27811,7 +26296,7 @@ static PHP_METHOD(Phalcon_Acl_Adapter_Memory, _allowOrDeny) { object_init_ex(&_1$$3, phalcon_acl_exception_ce); ZEPHIR_INIT_VAR(&_2$$3); ZEPHIR_CONCAT_SVS(&_2$$3, "Role '", &roleName, "' does not exist in ACL"); - ZEPHIR_CALL_METHOD(NULL, &_1$$3, "__construct", NULL, 9, &_2$$3); + ZEPHIR_CALL_METHOD(NULL, &_1$$3, "__construct", NULL, 4, &_2$$3); zephir_check_call_status(); zephir_throw_exception_debug(&_1$$3, "phalcon/acl/adapter/memory.zep", 407 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -27823,7 +26308,7 @@ static PHP_METHOD(Phalcon_Acl_Adapter_Memory, _allowOrDeny) { object_init_ex(&_4$$4, phalcon_acl_exception_ce); ZEPHIR_INIT_VAR(&_5$$4); ZEPHIR_CONCAT_SVS(&_5$$4, "Resource '", &resourceName, "' does not exist in ACL"); - ZEPHIR_CALL_METHOD(NULL, &_4$$4, "__construct", NULL, 9, &_5$$4); + ZEPHIR_CALL_METHOD(NULL, &_4$$4, "__construct", NULL, 4, &_5$$4); zephir_check_call_status(); zephir_throw_exception_debug(&_4$$4, "phalcon/acl/adapter/memory.zep", 411 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -27844,7 +26329,7 @@ static PHP_METHOD(Phalcon_Acl_Adapter_Memory, _allowOrDeny) { object_init_ex(&_7$$7, phalcon_acl_exception_ce); ZEPHIR_INIT_LNVAR(_8$$7); ZEPHIR_CONCAT_SVSVS(&_8$$7, "Access '", &accessName, "' does not exist in resource '", &resourceName, "'"); - ZEPHIR_CALL_METHOD(NULL, &_7$$7, "__construct", NULL, 9, &_8$$7); + ZEPHIR_CALL_METHOD(NULL, &_7$$7, "__construct", NULL, 4, &_8$$7); zephir_check_call_status(); zephir_throw_exception_debug(&_7$$7, "phalcon/acl/adapter/memory.zep", 421 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -27874,7 +26359,7 @@ static PHP_METHOD(Phalcon_Acl_Adapter_Memory, _allowOrDeny) { object_init_ex(&_10$$12, phalcon_acl_exception_ce); ZEPHIR_INIT_VAR(&_11$$12); ZEPHIR_CONCAT_SVSVS(&_11$$12, "Access '", access, "' does not exist in resource '", &resourceName, "'"); - ZEPHIR_CALL_METHOD(NULL, &_10$$12, "__construct", NULL, 9, &_11$$12); + ZEPHIR_CALL_METHOD(NULL, &_10$$12, "__construct", NULL, 4, &_11$$12); zephir_check_call_status(); zephir_throw_exception_debug(&_10$$12, "phalcon/acl/adapter/memory.zep", 439 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -28257,9 +26742,9 @@ static PHP_METHOD(Phalcon_Acl_Adapter_Memory, isAllowed) { if (Z_TYPE_P(&funcAccess) != IS_NULL) { ZEPHIR_INIT_VAR(&reflectionFunction); object_init_ex(&reflectionFunction, zephir_get_internal_ce(SL("reflectionfunction"))); - ZEPHIR_CALL_METHOD(NULL, &reflectionFunction, "__construct", NULL, 82, &funcAccess); + ZEPHIR_CALL_METHOD(NULL, &reflectionFunction, "__construct", NULL, 74, &funcAccess); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&reflectionParameters, &reflectionFunction, "getparameters", NULL, 83); + ZEPHIR_CALL_METHOD(&reflectionParameters, &reflectionFunction, "getparameters", NULL, 75); zephir_check_call_status(); ZEPHIR_INIT_VAR(¶meterNumber); ZVAL_LONG(¶meterNumber, zephir_fast_count_int(&reflectionParameters TSRMLS_CC)); @@ -28275,7 +26760,7 @@ static PHP_METHOD(Phalcon_Acl_Adapter_Memory, isAllowed) { } ZEPHIR_INIT_VAR(¶metersForFunction); array_init(¶metersForFunction); - ZEPHIR_CALL_METHOD(&numberOfRequiredParameters, &reflectionFunction, "getnumberofrequiredparameters", NULL, 84); + ZEPHIR_CALL_METHOD(&numberOfRequiredParameters, &reflectionFunction, "getnumberofrequiredparameters", NULL, 76); zephir_check_call_status(); ZEPHIR_CPY_WRT(&userParametersSizeShouldBe, ¶meterNumber); zephir_is_iterable(&reflectionParameters, 0, "phalcon/acl/adapter/memory.zep", 746); @@ -28335,7 +26820,7 @@ static PHP_METHOD(Phalcon_Acl_Adapter_Memory, isAllowed) { zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_27$$40); ZEPHIR_CONCAT_SVSVSVSVSVS(&_27$$40, "Your passed parameter doesn't have the same class as the parameter in defined function when check ", roleName, " can ", &access, " ", resourceName, ". Class passed: ", &_24$$40, " , Class in defined function: ", &_26$$40, "."); - ZEPHIR_CALL_METHOD(NULL, &_23$$40, "__construct", &_28, 9, &_27$$40); + ZEPHIR_CALL_METHOD(NULL, &_23$$40, "__construct", &_28, 4, &_27$$40); zephir_check_call_status(); zephir_throw_exception_debug(&_23$$40, "phalcon/acl/adapter/memory.zep", 736 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -28352,14 +26837,14 @@ static PHP_METHOD(Phalcon_Acl_Adapter_Memory, isAllowed) { ZEPHIR_INIT_VAR(&_30$$42); ZEPHIR_CONCAT_SVSVSVS(&_30$$42, "Number of parameters in array is higher than the number of parameters in defined function when check ", roleName, " can ", &access, " ", resourceName, ". Remember that more parameters than defined in function will be ignored."); ZVAL_LONG(&_31$$42, 512); - ZEPHIR_CALL_FUNCTION(NULL, "trigger_error", &_32, 2, &_30$$42, &_31$$42); + ZEPHIR_CALL_FUNCTION(NULL, "trigger_error", &_32, 1, &_30$$42, &_31$$42); zephir_check_call_status(); } if (zephir_fast_count_int(¶metersForFunction TSRMLS_CC) == 0) { if (ZEPHIR_GT_LONG(&numberOfRequiredParameters, 0)) { ZEPHIR_INIT_VAR(&_33$$44); ZEPHIR_CONCAT_SVSVSVS(&_33$$44, "You didn't provide any parameters when check ", roleName, " can ", &access, " ", resourceName, ". We will use default action when no arguments."); - ZEPHIR_CALL_FUNCTION(NULL, "trigger_error", &_32, 2, &_33$$44); + ZEPHIR_CALL_FUNCTION(NULL, "trigger_error", &_32, 1, &_33$$44); zephir_check_call_status(); _34$$44 = ZEPHIR_IS_LONG(&haveAccess, 1); if (_34$$44) { @@ -28391,7 +26876,7 @@ static PHP_METHOD(Phalcon_Acl_Adapter_Memory, isAllowed) { object_init_ex(&_40$$34, phalcon_acl_exception_ce); ZEPHIR_INIT_VAR(&_41$$34); ZEPHIR_CONCAT_SVSVSV(&_41$$34, "You didn't provide all necessary parameters for defined function when check ", roleName, " can ", &access, " ", resourceName); - ZEPHIR_CALL_METHOD(NULL, &_40$$34, "__construct", &_28, 9, &_41$$34); + ZEPHIR_CALL_METHOD(NULL, &_40$$34, "__construct", &_28, 4, &_41$$34); zephir_check_call_status(); zephir_throw_exception_debug(&_40$$34, "phalcon/acl/adapter/memory.zep", 775 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -28559,7 +27044,7 @@ static PHP_METHOD(Phalcon_Annotations_Adapter, get) { if (Z_TYPE_P(&parsedAnnotations) == IS_ARRAY) { ZEPHIR_INIT_NVAR(&classAnnotations); object_init_ex(&classAnnotations, phalcon_annotations_reflection_ce); - ZEPHIR_CALL_METHOD(NULL, &classAnnotations, "__construct", NULL, 15, &parsedAnnotations); + ZEPHIR_CALL_METHOD(NULL, &classAnnotations, "__construct", NULL, 10, &parsedAnnotations); zephir_check_call_status(); zephir_update_property_array(this_ptr, SL("_annotations"), &realClassName, &classAnnotations TSRMLS_CC); ZEPHIR_CALL_METHOD(NULL, this_ptr, "write", NULL, 0, &realClassName, &classAnnotations); @@ -28640,7 +27125,7 @@ static PHP_METHOD(Phalcon_Annotations_Adapter, getMethod) { } ZEPHIR_INIT_NVAR(&method); ZVAL_COPY(&method, _0$$4); - ZEPHIR_CALL_FUNCTION(&_3$$5, "strcasecmp", &_4, 16, &methodKey, &methodName); + ZEPHIR_CALL_FUNCTION(&_3$$5, "strcasecmp", &_4, 11, &methodKey, &methodName); zephir_check_call_status(); if (!(zephir_is_true(&_3$$5))) { RETURN_CCTOR(method); @@ -28651,7 +27136,7 @@ static PHP_METHOD(Phalcon_Annotations_Adapter, getMethod) { } } object_init_ex(return_value, phalcon_annotations_collection_ce); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 17); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 12); zephir_check_call_status(); RETURN_MM(); @@ -28717,7 +27202,7 @@ static PHP_METHOD(Phalcon_Annotations_Adapter, getProperty) { } } object_init_ex(return_value, phalcon_annotations_collection_ce); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 17); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 12); zephir_check_call_status(); RETURN_MM(); @@ -28898,7 +27383,7 @@ static PHP_METHOD(Phalcon_Annotations_Annotation, getExpression) { ZEPHIR_INIT_NVAR(&item); ZVAL_COPY(&item, _1$$7); zephir_array_fetch_string(&_2$$8, &item, SL("expr"), PH_NOISY | PH_READONLY, "phalcon/annotations/annotation.zep", 121 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&resolvedItem, this_ptr, "getexpression", &_3, 89, &_2$$8); + ZEPHIR_CALL_METHOD(&resolvedItem, this_ptr, "getexpression", &_3, 81, &_2$$8); zephir_check_call_status(); ZEPHIR_OBS_NVAR(&name); if (zephir_array_isset_string_fetch(&name, &item, SL("name"), 0)) { @@ -28912,7 +27397,7 @@ static PHP_METHOD(Phalcon_Annotations_Annotation, getExpression) { } if (ZEPHIR_IS_LONG(&type, 300)) { object_init_ex(return_value, phalcon_annotations_annotation_ce); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 90, &expr); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 82, &expr); zephir_check_call_status(); RETURN_MM(); } @@ -28920,7 +27405,7 @@ static PHP_METHOD(Phalcon_Annotations_Annotation, getExpression) { object_init_ex(&_4$$12, phalcon_annotations_exception_ce); ZEPHIR_INIT_VAR(&_5$$12); ZEPHIR_CONCAT_SVS(&_5$$12, "The expression ", &type, " is unknown"); - ZEPHIR_CALL_METHOD(NULL, &_4$$12, "__construct", NULL, 9, &_5$$12); + ZEPHIR_CALL_METHOD(NULL, &_4$$12, "__construct", NULL, 4, &_5$$12); zephir_check_call_status(); zephir_throw_exception_debug(&_4$$12, "phalcon/annotations/annotation.zep", 134 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -29012,11 +27497,11 @@ static PHP_METHOD(Phalcon_Annotations_Annotation, getNamedArgument) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(&name, name_param); } else { ZEPHIR_INIT_VAR(&name); @@ -29044,11 +27529,11 @@ static PHP_METHOD(Phalcon_Annotations_Annotation, getNamedParameter) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(&name, name_param); } else { ZEPHIR_INIT_VAR(&name); @@ -29127,7 +27612,7 @@ static PHP_METHOD(Phalcon_Annotations_Collection, __construct) { ZVAL_COPY(&annotationData, _1$$4); ZEPHIR_INIT_NVAR(&_2$$5); object_init_ex(&_2$$5, phalcon_annotations_annotation_ce); - ZEPHIR_CALL_METHOD(NULL, &_2$$5, "__construct", &_3, 90, &annotationData); + ZEPHIR_CALL_METHOD(NULL, &_2$$5, "__construct", &_3, 82, &annotationData); zephir_check_call_status(); zephir_array_append(&annotations, &_2$$5, PH_SEPARATE, "phalcon/annotations/collection.zep", 66); } ZEND_HASH_FOREACH_END(); @@ -29266,7 +27751,7 @@ static PHP_METHOD(Phalcon_Annotations_Collection, get) { object_init_ex(&_2, phalcon_annotations_exception_ce); ZEPHIR_INIT_VAR(&_3); ZEPHIR_CONCAT_SVS(&_3, "Collection doesn't have an annotation called '", &name, "'"); - ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", NULL, 9, &_3); + ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", NULL, 4, &_3); zephir_check_call_status(); zephir_throw_exception_debug(&_2, "phalcon/annotations/collection.zep", 149 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -31750,15 +30235,15 @@ static PHP_METHOD(Phalcon_Annotations_Reader, parse) { array_init(&annotations); ZEPHIR_INIT_VAR(&reflection); object_init_ex(&reflection, zephir_get_internal_ce(SL("reflectionclass"))); - ZEPHIR_CALL_METHOD(NULL, &reflection, "__construct", NULL, 91, &className); + ZEPHIR_CALL_METHOD(NULL, &reflection, "__construct", NULL, 83, &className); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&comment, &reflection, "getdoccomment", NULL, 92); + ZEPHIR_CALL_METHOD(&comment, &reflection, "getdoccomment", NULL, 84); zephir_check_call_status(); if (Z_TYPE_P(&comment) == IS_STRING) { ZEPHIR_INIT_VAR(&classAnnotations); - ZEPHIR_CALL_METHOD(&_0$$3, &reflection, "getfilename", NULL, 93); + ZEPHIR_CALL_METHOD(&_0$$3, &reflection, "getfilename", NULL, 85); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_1$$3, &reflection, "getstartline", NULL, 94); + ZEPHIR_CALL_METHOD(&_1$$3, &reflection, "getstartline", NULL, 86); zephir_check_call_status(); ZEPHIR_LAST_CALL_STATUS = phannot_parse_annotations(&classAnnotations, &comment, &_0$$3, &_1$$3 TSRMLS_CC); zephir_check_call_status(); @@ -31766,7 +30251,7 @@ static PHP_METHOD(Phalcon_Annotations_Reader, parse) { zephir_array_update_string(&annotations, SL("class"), &classAnnotations, PH_COPY | PH_SEPARATE); } } - ZEPHIR_CALL_METHOD(&properties, &reflection, "getproperties", NULL, 95); + ZEPHIR_CALL_METHOD(&properties, &reflection, "getproperties", NULL, 87); zephir_check_call_status(); if (zephir_fast_count_int(&properties TSRMLS_CC)) { line = 1; @@ -31781,7 +30266,7 @@ static PHP_METHOD(Phalcon_Annotations_Reader, parse) { zephir_check_call_status(); if (Z_TYPE_P(&comment) == IS_STRING) { ZEPHIR_INIT_NVAR(&propertyAnnotations); - ZEPHIR_CALL_METHOD(&_3$$7, &reflection, "getfilename", NULL, 93); + ZEPHIR_CALL_METHOD(&_3$$7, &reflection, "getfilename", NULL, 85); zephir_check_call_status(); ZVAL_LONG(&_4$$7, line); ZEPHIR_LAST_CALL_STATUS = phannot_parse_annotations(&propertyAnnotations, &comment, &_3$$7, &_4$$7 TSRMLS_CC); @@ -31798,7 +30283,7 @@ static PHP_METHOD(Phalcon_Annotations_Reader, parse) { zephir_array_update_string(&annotations, SL("properties"), &annotationsProperties, PH_COPY | PH_SEPARATE); } } - ZEPHIR_CALL_METHOD(&methods, &reflection, "getmethods", NULL, 96); + ZEPHIR_CALL_METHOD(&methods, &reflection, "getmethods", NULL, 88); zephir_check_call_status(); if (zephir_fast_count_int(&methods TSRMLS_CC)) { ZEPHIR_INIT_VAR(&annotationsMethods); @@ -31963,7 +30448,7 @@ static PHP_METHOD(Phalcon_Annotations_Reflection, getClassAnnotations) { if (zephir_array_isset_string_fetch(&reflectionClass, &_0$$3, SL("class"), 1)) { ZEPHIR_INIT_VAR(&collection); object_init_ex(&collection, phalcon_annotations_collection_ce); - ZEPHIR_CALL_METHOD(NULL, &collection, "__construct", NULL, 17, &reflectionClass); + ZEPHIR_CALL_METHOD(NULL, &collection, "__construct", NULL, 12, &reflectionClass); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_classAnnotations"), &collection); RETURN_CCTOR(collection); @@ -32022,7 +30507,7 @@ static PHP_METHOD(Phalcon_Annotations_Reflection, getMethodsAnnotations) { ZVAL_COPY(&reflectionMethod, _1$$5); ZEPHIR_INIT_NVAR(&_4$$6); object_init_ex(&_4$$6, phalcon_annotations_collection_ce); - ZEPHIR_CALL_METHOD(NULL, &_4$$6, "__construct", &_5, 17, &reflectionMethod); + ZEPHIR_CALL_METHOD(NULL, &_4$$6, "__construct", &_5, 12, &reflectionMethod); zephir_check_call_status(); zephir_array_update_zval(&collections, &methodName, &_4$$6, PH_COPY | PH_SEPARATE); } ZEND_HASH_FOREACH_END(); @@ -32086,7 +30571,7 @@ static PHP_METHOD(Phalcon_Annotations_Reflection, getPropertiesAnnotations) { ZVAL_COPY(&reflectionProperty, _1$$5); ZEPHIR_INIT_NVAR(&_4$$6); object_init_ex(&_4$$6, phalcon_annotations_collection_ce); - ZEPHIR_CALL_METHOD(NULL, &_4$$6, "__construct", &_5, 17, &reflectionProperty); + ZEPHIR_CALL_METHOD(NULL, &_4$$6, "__construct", &_5, 12, &reflectionProperty); zephir_check_call_status(); zephir_array_update_zval(&collections, &property, &_4$$6, PH_COPY | PH_SEPARATE); } ZEND_HASH_FOREACH_END(); @@ -32133,13 +30618,13 @@ static PHP_METHOD(Phalcon_Annotations_Reflection, __set_state) { if (Z_TYPE_P(data) == IS_ARRAY) { if (zephir_array_isset_string_fetch(&reflectionData, data, SL("_reflectionData"), 1)) { object_init_ex(return_value, phalcon_annotations_reflection_ce); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 15, &reflectionData); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 10, &reflectionData); zephir_check_call_status(); RETURN_MM(); } } object_init_ex(return_value, phalcon_annotations_reflection_ce); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 15); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 10); zephir_check_call_status(); RETURN_MM(); @@ -33219,11 +31704,11 @@ static PHP_METHOD(Phalcon_Annotations_Adapter_Apc, read) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &key_param); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(&key, key_param); } else { ZEPHIR_INIT_VAR(&key); @@ -33236,7 +31721,7 @@ static PHP_METHOD(Phalcon_Annotations_Adapter_Apc, read) { ZEPHIR_INIT_VAR(&_2); ZEPHIR_CONCAT_SVV(&_2, "_PHAN", &_1, &key); zephir_fast_strtolower(&_0, &_2); - ZEPHIR_RETURN_CALL_FUNCTION("apc_fetch", NULL, 85, &_0); + ZEPHIR_RETURN_CALL_FUNCTION("apc_fetch", NULL, 77, &_0); zephir_check_call_status(); RETURN_MM(); @@ -33259,11 +31744,11 @@ static PHP_METHOD(Phalcon_Annotations_Adapter_Apc, write) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &key_param, &data); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(&key, key_param); } else { ZEPHIR_INIT_VAR(&key); @@ -33277,7 +31762,7 @@ static PHP_METHOD(Phalcon_Annotations_Adapter_Apc, write) { ZEPHIR_CONCAT_SVV(&_2, "_PHAN", &_1, &key); zephir_fast_strtolower(&_0, &_2); zephir_read_property(&_3, this_ptr, SL("_ttl"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_RETURN_CALL_FUNCTION("apc_store", NULL, 86, &_0, data, &_3); + ZEPHIR_RETURN_CALL_FUNCTION("apc_store", NULL, 78, &_0, data, &_3); zephir_check_call_status(); RETURN_MM(); @@ -33384,11 +31869,11 @@ static PHP_METHOD(Phalcon_Annotations_Adapter_Files, write) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &key_param, &data); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(&key, key_param); } else { ZEPHIR_INIT_VAR(&key); @@ -33452,11 +31937,11 @@ static PHP_METHOD(Phalcon_Annotations_Adapter_Memory, read) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &key_param); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(&key, key_param); } else { ZEPHIR_INIT_VAR(&key); @@ -33487,11 +31972,11 @@ static PHP_METHOD(Phalcon_Annotations_Adapter_Memory, write) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &key_param, &data); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(&key, key_param); } else { ZEPHIR_INIT_VAR(&key); @@ -33540,11 +32025,11 @@ static PHP_METHOD(Phalcon_Annotations_Adapter_Xcache, read) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &key_param); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(&key, key_param); } else { ZEPHIR_INIT_VAR(&key); @@ -33556,10 +32041,10 @@ static PHP_METHOD(Phalcon_Annotations_Adapter_Xcache, read) { ZEPHIR_INIT_VAR(&_1); ZEPHIR_CONCAT_SV(&_1, "_PHAN", &key); zephir_fast_strtolower(&_0, &_1); - ZEPHIR_CALL_FUNCTION(&serialized, "xcache_get", NULL, 87, &_0); + ZEPHIR_CALL_FUNCTION(&serialized, "xcache_get", NULL, 79, &_0); zephir_check_call_status(); if (Z_TYPE_P(&serialized) == IS_STRING) { - ZEPHIR_CALL_FUNCTION(&data, "unserialize", NULL, 66, &serialized); + ZEPHIR_CALL_FUNCTION(&data, "unserialize", NULL, 60, &serialized); zephir_check_call_status(); if (Z_TYPE_P(&data) == IS_OBJECT) { RETURN_CCTOR(data); @@ -33585,11 +32070,11 @@ static PHP_METHOD(Phalcon_Annotations_Adapter_Xcache, write) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &key_param, &data); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(&key, key_param); } else { ZEPHIR_INIT_VAR(&key); @@ -33601,9 +32086,9 @@ static PHP_METHOD(Phalcon_Annotations_Adapter_Xcache, write) { ZEPHIR_INIT_VAR(&_1); ZEPHIR_CONCAT_SV(&_1, "_PHAN", &key); zephir_fast_strtolower(&_0, &_1); - ZEPHIR_CALL_FUNCTION(&_2, "serialize", NULL, 65, data); + ZEPHIR_CALL_FUNCTION(&_2, "serialize", NULL, 59, data); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(NULL, "xcache_set", NULL, 88, &_0, &_2); + ZEPHIR_CALL_FUNCTION(NULL, "xcache_set", NULL, 80, &_0, &_2); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -33833,11 +32318,11 @@ static PHP_METHOD(Phalcon_Assets_Collection, addCss) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 3, &path_param, &local, &filter_param, &attributes); - if (unlikely(Z_TYPE_P(path_param) != IS_STRING && Z_TYPE_P(path_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(path_param) != IS_STRING && Z_TYPE_P(path_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'path' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(path_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(path_param) == IS_STRING)) { zephir_get_strval(&path, path_param); } else { ZEPHIR_INIT_VAR(&path); @@ -33877,7 +32362,7 @@ static PHP_METHOD(Phalcon_Assets_Collection, addCss) { } else { ZVAL_BOOL(&_1, 0); } - ZEPHIR_CALL_METHOD(NULL, &_0, "__construct", NULL, 97, &path, &collectionLocal, &_1, &collectionAttributes); + ZEPHIR_CALL_METHOD(NULL, &_0, "__construct", NULL, 89, &path, &collectionLocal, &_1, &collectionAttributes); zephir_check_call_status(); zephir_update_property_array_append(this_ptr, SL("_resources"), &_0 TSRMLS_CC); RETURN_THIS(); @@ -33927,7 +32412,7 @@ static PHP_METHOD(Phalcon_Assets_Collection, addInlineCss) { } else { ZVAL_BOOL(&_1, 0); } - ZEPHIR_CALL_METHOD(NULL, &_0, "__construct", NULL, 98, &content, &_1, &collectionAttributes); + ZEPHIR_CALL_METHOD(NULL, &_0, "__construct", NULL, 90, &content, &_1, &collectionAttributes); zephir_check_call_status(); zephir_update_property_array_append(this_ptr, SL("_codes"), &_0 TSRMLS_CC); RETURN_THIS(); @@ -33954,11 +32439,11 @@ static PHP_METHOD(Phalcon_Assets_Collection, addJs) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 3, &path_param, &local, &filter_param, &attributes); - if (unlikely(Z_TYPE_P(path_param) != IS_STRING && Z_TYPE_P(path_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(path_param) != IS_STRING && Z_TYPE_P(path_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'path' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(path_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(path_param) == IS_STRING)) { zephir_get_strval(&path, path_param); } else { ZEPHIR_INIT_VAR(&path); @@ -33998,7 +32483,7 @@ static PHP_METHOD(Phalcon_Assets_Collection, addJs) { } else { ZVAL_BOOL(&_1, 0); } - ZEPHIR_CALL_METHOD(NULL, &_0, "__construct", NULL, 99, &path, &collectionLocal, &_1, &collectionAttributes); + ZEPHIR_CALL_METHOD(NULL, &_0, "__construct", NULL, 91, &path, &collectionLocal, &_1, &collectionAttributes); zephir_check_call_status(); zephir_update_property_array_append(this_ptr, SL("_resources"), &_0 TSRMLS_CC); RETURN_THIS(); @@ -34048,7 +32533,7 @@ static PHP_METHOD(Phalcon_Assets_Collection, addInlineJs) { } else { ZVAL_BOOL(&_1, 0); } - ZEPHIR_CALL_METHOD(NULL, &_0, "__construct", NULL, 100, &content, &_1, &collectionAttributes); + ZEPHIR_CALL_METHOD(NULL, &_0, "__construct", NULL, 92, &content, &_1, &collectionAttributes); zephir_check_call_status(); zephir_update_property_array_append(this_ptr, SL("_codes"), &_0 TSRMLS_CC); RETURN_THIS(); @@ -34145,11 +32630,11 @@ static PHP_METHOD(Phalcon_Assets_Collection, setTargetPath) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &targetPath_param); - if (unlikely(Z_TYPE_P(targetPath_param) != IS_STRING && Z_TYPE_P(targetPath_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(targetPath_param) != IS_STRING && Z_TYPE_P(targetPath_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'targetPath' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(targetPath_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(targetPath_param) == IS_STRING)) { zephir_get_strval(&targetPath, targetPath_param); } else { ZEPHIR_INIT_VAR(&targetPath); @@ -34173,11 +32658,11 @@ static PHP_METHOD(Phalcon_Assets_Collection, setSourcePath) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &sourcePath_param); - if (unlikely(Z_TYPE_P(sourcePath_param) != IS_STRING && Z_TYPE_P(sourcePath_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(sourcePath_param) != IS_STRING && Z_TYPE_P(sourcePath_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'sourcePath' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(sourcePath_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(sourcePath_param) == IS_STRING)) { zephir_get_strval(&sourcePath, sourcePath_param); } else { ZEPHIR_INIT_VAR(&sourcePath); @@ -34201,11 +32686,11 @@ static PHP_METHOD(Phalcon_Assets_Collection, setTargetUri) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &targetUri_param); - if (unlikely(Z_TYPE_P(targetUri_param) != IS_STRING && Z_TYPE_P(targetUri_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(targetUri_param) != IS_STRING && Z_TYPE_P(targetUri_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'targetUri' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(targetUri_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(targetUri_param) == IS_STRING)) { zephir_get_strval(&targetUri, targetUri_param); } else { ZEPHIR_INIT_VAR(&targetUri); @@ -34229,11 +32714,11 @@ static PHP_METHOD(Phalcon_Assets_Collection, setPrefix) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &prefix_param); - if (unlikely(Z_TYPE_P(prefix_param) != IS_STRING && Z_TYPE_P(prefix_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(prefix_param) != IS_STRING && Z_TYPE_P(prefix_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'prefix' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(prefix_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(prefix_param) == IS_STRING)) { zephir_get_strval(&prefix, prefix_param); } else { ZEPHIR_INIT_VAR(&prefix); @@ -34257,7 +32742,7 @@ static PHP_METHOD(Phalcon_Assets_Collection, setLocal) { zephir_fetch_params(0, 1, 0, &local_param); - if (unlikely(Z_TYPE_P(local_param) != IS_TRUE && Z_TYPE_P(local_param) != IS_FALSE)) { + if (UNEXPECTED(Z_TYPE_P(local_param) != IS_TRUE && Z_TYPE_P(local_param) != IS_FALSE)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'local' must be a bool") TSRMLS_CC); RETURN_NULL(); } @@ -34322,7 +32807,7 @@ static PHP_METHOD(Phalcon_Assets_Collection, setTargetLocal) { zephir_fetch_params(0, 1, 0, &targetLocal_param); - if (unlikely(Z_TYPE_P(targetLocal_param) != IS_TRUE && Z_TYPE_P(targetLocal_param) != IS_FALSE)) { + if (UNEXPECTED(Z_TYPE_P(targetLocal_param) != IS_TRUE && Z_TYPE_P(targetLocal_param) != IS_FALSE)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'targetLocal' must be a bool") TSRMLS_CC); RETURN_NULL(); } @@ -34375,11 +32860,11 @@ static PHP_METHOD(Phalcon_Assets_Collection, getRealTargetPath) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &basePath_param); - if (unlikely(Z_TYPE_P(basePath_param) != IS_STRING && Z_TYPE_P(basePath_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(basePath_param) != IS_STRING && Z_TYPE_P(basePath_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'basePath' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(basePath_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(basePath_param) == IS_STRING)) { zephir_get_strval(&basePath, basePath_param); } else { ZEPHIR_INIT_VAR(&basePath); @@ -34392,7 +32877,7 @@ static PHP_METHOD(Phalcon_Assets_Collection, getRealTargetPath) { ZEPHIR_INIT_VAR(&completePath); ZEPHIR_CONCAT_VV(&completePath, &basePath, &targetPath); if ((zephir_file_exists(&completePath TSRMLS_CC) == SUCCESS)) { - ZEPHIR_RETURN_CALL_FUNCTION("realpath", NULL, 64, &completePath); + ZEPHIR_RETURN_CALL_FUNCTION("realpath", NULL, 58, &completePath); zephir_check_call_status(); RETURN_MM(); } @@ -34784,11 +33269,11 @@ static PHP_METHOD(Phalcon_Assets_Manager, addCss) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 3, &path_param, &local, &filter, &attributes); - if (unlikely(Z_TYPE_P(path_param) != IS_STRING && Z_TYPE_P(path_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(path_param) != IS_STRING && Z_TYPE_P(path_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'path' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(path_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(path_param) == IS_STRING)) { zephir_get_strval(&path, path_param); } else { ZEPHIR_INIT_VAR(&path); @@ -34810,7 +33295,7 @@ static PHP_METHOD(Phalcon_Assets_Manager, addCss) { ZEPHIR_INIT_VAR(&_0); object_init_ex(&_0, phalcon_assets_resource_css_ce); - ZEPHIR_CALL_METHOD(NULL, &_0, "__construct", NULL, 97, &path, local, filter, attributes); + ZEPHIR_CALL_METHOD(NULL, &_0, "__construct", NULL, 89, &path, local, filter, attributes); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_1); ZVAL_STRING(&_1, "css"); @@ -34851,7 +33336,7 @@ static PHP_METHOD(Phalcon_Assets_Manager, addInlineCss) { ZEPHIR_INIT_VAR(&_0); object_init_ex(&_0, phalcon_assets_inline_css_ce); - ZEPHIR_CALL_METHOD(NULL, &_0, "__construct", NULL, 98, &content, filter, attributes); + ZEPHIR_CALL_METHOD(NULL, &_0, "__construct", NULL, 90, &content, filter, attributes); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_1); ZVAL_STRING(&_1, "css"); @@ -34880,11 +33365,11 @@ static PHP_METHOD(Phalcon_Assets_Manager, addJs) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 3, &path_param, &local, &filter, &attributes); - if (unlikely(Z_TYPE_P(path_param) != IS_STRING && Z_TYPE_P(path_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(path_param) != IS_STRING && Z_TYPE_P(path_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'path' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(path_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(path_param) == IS_STRING)) { zephir_get_strval(&path, path_param); } else { ZEPHIR_INIT_VAR(&path); @@ -34906,7 +33391,7 @@ static PHP_METHOD(Phalcon_Assets_Manager, addJs) { ZEPHIR_INIT_VAR(&_0); object_init_ex(&_0, phalcon_assets_resource_js_ce); - ZEPHIR_CALL_METHOD(NULL, &_0, "__construct", NULL, 99, &path, local, filter, attributes); + ZEPHIR_CALL_METHOD(NULL, &_0, "__construct", NULL, 91, &path, local, filter, attributes); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_1); ZVAL_STRING(&_1, "js"); @@ -34947,7 +33432,7 @@ static PHP_METHOD(Phalcon_Assets_Manager, addInlineJs) { ZEPHIR_INIT_VAR(&_0); object_init_ex(&_0, phalcon_assets_inline_js_ce); - ZEPHIR_CALL_METHOD(NULL, &_0, "__construct", NULL, 100, &content, filter, attributes); + ZEPHIR_CALL_METHOD(NULL, &_0, "__construct", NULL, 92, &content, filter, attributes); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_1); ZVAL_STRING(&_1, "js"); @@ -34972,11 +33457,11 @@ static PHP_METHOD(Phalcon_Assets_Manager, addResourceByType) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &type_param, &resource); - if (unlikely(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'type' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(type_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(type_param) == IS_STRING)) { zephir_get_strval(&type, type_param); } else { ZEPHIR_INIT_VAR(&type); @@ -34995,7 +33480,7 @@ static PHP_METHOD(Phalcon_Assets_Manager, addResourceByType) { } zephir_update_property_array(this_ptr, SL("_collections"), &type, &collection TSRMLS_CC); } - ZEPHIR_CALL_METHOD(NULL, &collection, "add", NULL, 102, resource); + ZEPHIR_CALL_METHOD(NULL, &collection, "add", NULL, 93, resource); zephir_check_call_status(); RETURN_THIS(); @@ -35016,11 +33501,11 @@ static PHP_METHOD(Phalcon_Assets_Manager, addInlineCodeByType) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &type_param, &code); - if (unlikely(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'type' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(type_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(type_param) == IS_STRING)) { zephir_get_strval(&type, type_param); } else { ZEPHIR_INIT_VAR(&type); @@ -35039,7 +33524,7 @@ static PHP_METHOD(Phalcon_Assets_Manager, addInlineCodeByType) { } zephir_update_property_array(this_ptr, SL("_collections"), &type, &collection TSRMLS_CC); } - ZEPHIR_CALL_METHOD(NULL, &collection, "addinline", NULL, 103, code); + ZEPHIR_CALL_METHOD(NULL, &collection, "addinline", NULL, 94, code); zephir_check_call_status(); RETURN_THIS(); @@ -35101,11 +33586,11 @@ static PHP_METHOD(Phalcon_Assets_Manager, set) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &id_param, &collection); - if (unlikely(Z_TYPE_P(id_param) != IS_STRING && Z_TYPE_P(id_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(id_param) != IS_STRING && Z_TYPE_P(id_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'id' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(id_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(id_param) == IS_STRING)) { zephir_get_strval(&id, id_param); } else { ZEPHIR_INIT_VAR(&id); @@ -35131,11 +33616,11 @@ static PHP_METHOD(Phalcon_Assets_Manager, get) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &id_param); - if (unlikely(Z_TYPE_P(id_param) != IS_STRING && Z_TYPE_P(id_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(id_param) != IS_STRING && Z_TYPE_P(id_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'id' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(id_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(id_param) == IS_STRING)) { zephir_get_strval(&id, id_param); } else { ZEPHIR_INIT_VAR(&id); @@ -35343,20 +33828,20 @@ static PHP_METHOD(Phalcon_Assets_Manager, output) { object_init_ex(&_0$$10, phalcon_assets_exception_ce); ZEPHIR_INIT_VAR(&_1$$10); ZEPHIR_CONCAT_SVS(&_1$$10, "Path '", &completeTargetPath, "' is not a valid target path (1)"); - ZEPHIR_CALL_METHOD(NULL, &_0$$10, "__construct", NULL, 9, &_1$$10); + ZEPHIR_CALL_METHOD(NULL, &_0$$10, "__construct", NULL, 4, &_1$$10); zephir_check_call_status(); zephir_throw_exception_debug(&_0$$10, "phalcon/assets/manager.zep", 396 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } - ZEPHIR_CALL_FUNCTION(&_2$$9, "is_dir", NULL, 104, &completeTargetPath); + ZEPHIR_CALL_FUNCTION(&_2$$9, "is_dir", NULL, 95, &completeTargetPath); zephir_check_call_status(); if (zephir_is_true(&_2$$9)) { ZEPHIR_INIT_VAR(&_3$$11); object_init_ex(&_3$$11, phalcon_assets_exception_ce); ZEPHIR_INIT_VAR(&_4$$11); ZEPHIR_CONCAT_SVS(&_4$$11, "Path '", &completeTargetPath, "' is not a valid target path (2), is dir."); - ZEPHIR_CALL_METHOD(NULL, &_3$$11, "__construct", NULL, 9, &_4$$11); + ZEPHIR_CALL_METHOD(NULL, &_3$$11, "__construct", NULL, 4, &_4$$11); zephir_check_call_status(); zephir_throw_exception_debug(&_3$$11, "phalcon/assets/manager.zep", 400 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -35385,7 +33870,7 @@ static PHP_METHOD(Phalcon_Assets_Manager, output) { object_init_ex(&_6$$15, phalcon_assets_exception_ce); ZEPHIR_INIT_LNVAR(_7$$15); ZEPHIR_CONCAT_SVS(&_7$$15, "Resource '", &sourcePath, "' does not have a valid source path"); - ZEPHIR_CALL_METHOD(NULL, &_6$$15, "__construct", NULL, 9, &_7$$15); + ZEPHIR_CALL_METHOD(NULL, &_6$$15, "__construct", NULL, 4, &_7$$15); zephir_check_call_status(); zephir_throw_exception_debug(&_6$$15, "phalcon/assets/manager.zep", 434 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -35403,7 +33888,7 @@ static PHP_METHOD(Phalcon_Assets_Manager, output) { object_init_ex(&_8$$17, phalcon_assets_exception_ce); ZEPHIR_INIT_LNVAR(_9$$17); ZEPHIR_CONCAT_SVS(&_9$$17, "Resource '", &sourcePath, "' does not have a valid target path"); - ZEPHIR_CALL_METHOD(NULL, &_8$$17, "__construct", NULL, 9, &_9$$17); + ZEPHIR_CALL_METHOD(NULL, &_8$$17, "__construct", NULL, 4, &_9$$17); zephir_check_call_status(); zephir_throw_exception_debug(&_8$$17, "phalcon/assets/manager.zep", 458 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -35415,7 +33900,7 @@ static PHP_METHOD(Phalcon_Assets_Manager, output) { object_init_ex(&_10$$19, phalcon_assets_exception_ce); ZEPHIR_INIT_LNVAR(_11$$19); ZEPHIR_CONCAT_SVS(&_11$$19, "Resource '", &targetPath, "' have the same source and target paths"); - ZEPHIR_CALL_METHOD(NULL, &_10$$19, "__construct", NULL, 9, &_11$$19); + ZEPHIR_CALL_METHOD(NULL, &_10$$19, "__construct", NULL, 4, &_11$$19); zephir_check_call_status(); zephir_throw_exception_debug(&_10$$19, "phalcon/assets/manager.zep", 467 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -35864,11 +34349,11 @@ static PHP_METHOD(Phalcon_Assets_Manager, exists) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &id_param); - if (unlikely(Z_TYPE_P(id_param) != IS_STRING && Z_TYPE_P(id_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(id_param) != IS_STRING && Z_TYPE_P(id_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'id' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(id_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(id_param) == IS_STRING)) { zephir_get_strval(&id, id_param); } else { ZEPHIR_INIT_VAR(&id); @@ -36244,7 +34729,7 @@ static PHP_METHOD(Phalcon_Assets_Resource, getContent) { object_init_ex(&_1$$5, phalcon_assets_exception_ce); ZEPHIR_INIT_VAR(&_2$$5); ZEPHIR_CONCAT_SVS(&_2$$5, "Resource's content for '", &completePath, "' cannot be read"); - ZEPHIR_CALL_METHOD(NULL, &_1$$5, "__construct", NULL, 9, &_2$$5); + ZEPHIR_CALL_METHOD(NULL, &_1$$5, "__construct", NULL, 4, &_2$$5); zephir_check_call_status(); zephir_throw_exception_debug(&_1$$5, "phalcon/assets/resource.zep", 183 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -36258,7 +34743,7 @@ static PHP_METHOD(Phalcon_Assets_Resource, getContent) { object_init_ex(&_3$$6, phalcon_assets_exception_ce); ZEPHIR_INIT_VAR(&_4$$6); ZEPHIR_CONCAT_SVS(&_4$$6, "Resource's content for '", &completePath, "' cannot be read"); - ZEPHIR_CALL_METHOD(NULL, &_3$$6, "__construct", NULL, 9, &_4$$6); + ZEPHIR_CALL_METHOD(NULL, &_3$$6, "__construct", NULL, 4, &_4$$6); zephir_check_call_status(); zephir_throw_exception_debug(&_3$$6, "phalcon/assets/resource.zep", 192 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -36320,7 +34805,7 @@ static PHP_METHOD(Phalcon_Assets_Resource, getRealSourcePath) { if (zephir_is_true(&_0)) { ZEPHIR_INIT_VAR(&_1$$4); ZEPHIR_CONCAT_VV(&_1$$4, &basePath, &sourcePath); - ZEPHIR_RETURN_CALL_FUNCTION("realpath", NULL, 64, &_1$$4); + ZEPHIR_RETURN_CALL_FUNCTION("realpath", NULL, 58, &_1$$4); zephir_check_call_status(); RETURN_MM(); } @@ -36362,7 +34847,7 @@ static PHP_METHOD(Phalcon_Assets_Resource, getRealTargetPath) { ZEPHIR_INIT_VAR(&completePath); ZEPHIR_CONCAT_VV(&completePath, &basePath, &targetPath); if ((zephir_file_exists(&completePath TSRMLS_CC) == SUCCESS)) { - ZEPHIR_RETURN_CALL_FUNCTION("realpath", NULL, 64, &completePath); + ZEPHIR_RETURN_CALL_FUNCTION("realpath", NULL, 58, &completePath); zephir_check_call_status(); RETURN_MM(); } @@ -36402,11 +34887,11 @@ static PHP_METHOD(Phalcon_Assets_Filters_Cssmin, filter) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &content_param); - if (unlikely(Z_TYPE_P(content_param) != IS_STRING && Z_TYPE_P(content_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(content_param) != IS_STRING && Z_TYPE_P(content_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'content' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(content_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(content_param) == IS_STRING)) { zephir_get_strval(&content, content_param); } else { ZEPHIR_INIT_VAR(&content); @@ -36739,11 +35224,11 @@ static PHP_METHOD(Phalcon_Assets_Filters_Jsmin, filter) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &content_param); - if (unlikely(Z_TYPE_P(content_param) != IS_STRING && Z_TYPE_P(content_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(content_param) != IS_STRING && Z_TYPE_P(content_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'content' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(content_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(content_param) == IS_STRING)) { zephir_get_strval(&content, content_param); } else { ZEPHIR_INIT_VAR(&content); @@ -37197,11 +35682,11 @@ static PHP_METHOD(Phalcon_Assets_Filters_None, filter) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &content_param); - if (unlikely(Z_TYPE_P(content_param) != IS_STRING && Z_TYPE_P(content_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(content_param) != IS_STRING && Z_TYPE_P(content_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'content' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(content_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(content_param) == IS_STRING)) { zephir_get_strval(&content, content_param); } else { ZEPHIR_INIT_VAR(&content); @@ -37275,7 +35760,7 @@ static PHP_METHOD(Phalcon_Assets_Inline_Css, __construct) { } else { ZVAL_BOOL(&_2, 0); } - ZEPHIR_CALL_PARENT(NULL, phalcon_assets_inline_css_ce, this_ptr, "__construct", &_0, 101, &_1, &content, &_2, attributes); + ZEPHIR_CALL_PARENT(NULL, phalcon_assets_inline_css_ce, this_ptr, "__construct", &_0, 0, &_1, &content, &_2, attributes); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -37343,7 +35828,7 @@ static PHP_METHOD(Phalcon_Assets_Inline_Js, __construct) { } else { ZVAL_BOOL(&_2, 0); } - ZEPHIR_CALL_PARENT(NULL, phalcon_assets_inline_js_ce, this_ptr, "__construct", &_0, 101, &_1, &content, &_2, attributes); + ZEPHIR_CALL_PARENT(NULL, phalcon_assets_inline_js_ce, this_ptr, "__construct", &_0, 0, &_1, &content, &_2, attributes); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -37386,11 +35871,11 @@ static PHP_METHOD(Phalcon_Assets_Resource_Css, __construct) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 3, &path_param, &local_param, &filter_param, &attributes); - if (unlikely(Z_TYPE_P(path_param) != IS_STRING && Z_TYPE_P(path_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(path_param) != IS_STRING && Z_TYPE_P(path_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'path' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(path_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(path_param) == IS_STRING)) { zephir_get_strval(&path, path_param); } else { ZEPHIR_INIT_VAR(&path); @@ -37424,7 +35909,7 @@ static PHP_METHOD(Phalcon_Assets_Resource_Css, __construct) { } else { ZVAL_BOOL(&_3, 0); } - ZEPHIR_CALL_PARENT(NULL, phalcon_assets_resource_css_ce, this_ptr, "__construct", &_0, 105, &_1, &path, &_2, &_3, attributes); + ZEPHIR_CALL_PARENT(NULL, phalcon_assets_resource_css_ce, this_ptr, "__construct", &_0, 0, &_1, &path, &_2, &_3, attributes); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -37482,7 +35967,7 @@ static PHP_METHOD(Phalcon_Assets_Resource_Js, __construct) { ZEPHIR_INIT_VAR(&_1); ZVAL_STRING(&_1, "js"); - ZEPHIR_CALL_PARENT(NULL, phalcon_assets_resource_js_ce, this_ptr, "__construct", &_0, 105, &_1, path, local, filter, attributes); + ZEPHIR_CALL_PARENT(NULL, phalcon_assets_resource_js_ce, this_ptr, "__construct", &_0, 0, &_1, path, local, filter, attributes); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -38154,7 +36639,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_Apc, get) { ZEPHIR_INIT_VAR(&prefixedKey); ZEPHIR_CONCAT_SVV(&prefixedKey, "_PHCA", &_0, &keyName); zephir_update_property_zval(this_ptr, SL("_lastKey"), &prefixedKey); - ZEPHIR_CALL_FUNCTION(&cachedContent, "apc_fetch", NULL, 85, &prefixedKey); + ZEPHIR_CALL_FUNCTION(&cachedContent, "apc_fetch", NULL, 77, &prefixedKey); zephir_check_call_status(); if (ZEPHIR_IS_FALSE_IDENTICAL(&cachedContent)) { RETURN_MM_NULL(); @@ -38251,7 +36736,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_Apc, save) { } else { ZEPHIR_CPY_WRT(&ttl, lifetime); } - ZEPHIR_CALL_FUNCTION(&success, "apc_store", NULL, 86, &lastKey, &preparedContent, &ttl); + ZEPHIR_CALL_FUNCTION(&success, "apc_store", NULL, 78, &lastKey, &preparedContent, &ttl); zephir_check_call_status(); if (!(zephir_is_true(&success))) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_cache_exception_ce, "Failed storing data in apc", "phalcon/cache/backend/apc.zep", 132); @@ -38309,11 +36794,11 @@ static PHP_METHOD(Phalcon_Cache_Backend_Apc, increment) { zephir_update_property_zval(this_ptr, SL("_lastKey"), &prefixedKey); if ((zephir_function_exists_ex(SL("apc_inc") TSRMLS_CC) == SUCCESS)) { ZVAL_LONG(&_1$$3, value); - ZEPHIR_CALL_FUNCTION(&result, "apc_inc", NULL, 106, &prefixedKey, &_1$$3); + ZEPHIR_CALL_FUNCTION(&result, "apc_inc", NULL, 96, &prefixedKey, &_1$$3); zephir_check_call_status(); RETURN_CCTOR(result); } else { - ZEPHIR_CALL_FUNCTION(&cachedContent, "apc_fetch", NULL, 85, &prefixedKey); + ZEPHIR_CALL_FUNCTION(&cachedContent, "apc_fetch", NULL, 77, &prefixedKey); zephir_check_call_status(); if (zephir_is_numeric(&cachedContent)) { ZEPHIR_INIT_NVAR(&result); @@ -38361,11 +36846,11 @@ static PHP_METHOD(Phalcon_Cache_Backend_Apc, decrement) { zephir_update_property_zval(this_ptr, SL("_lastKey"), &lastKey); if ((zephir_function_exists_ex(SL("apc_dec") TSRMLS_CC) == SUCCESS)) { ZVAL_LONG(&_1$$3, value); - ZEPHIR_RETURN_CALL_FUNCTION("apc_dec", NULL, 107, &lastKey, &_1$$3); + ZEPHIR_RETURN_CALL_FUNCTION("apc_dec", NULL, 97, &lastKey, &_1$$3); zephir_check_call_status(); RETURN_MM(); } else { - ZEPHIR_CALL_FUNCTION(&cachedContent, "apc_fetch", NULL, 85, &lastKey); + ZEPHIR_CALL_FUNCTION(&cachedContent, "apc_fetch", NULL, 77, &lastKey); zephir_check_call_status(); if (zephir_is_numeric(&cachedContent)) { ZEPHIR_INIT_VAR(&result); @@ -38393,11 +36878,11 @@ static PHP_METHOD(Phalcon_Cache_Backend_Apc, delete) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &keyName_param); - if (unlikely(Z_TYPE_P(keyName_param) != IS_STRING && Z_TYPE_P(keyName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(keyName_param) != IS_STRING && Z_TYPE_P(keyName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'keyName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(keyName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(keyName_param) == IS_STRING)) { zephir_get_strval(&keyName, keyName_param); } else { ZEPHIR_INIT_VAR(&keyName); @@ -38408,7 +36893,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_Apc, delete) { zephir_read_property(&_0, this_ptr, SL("_prefix"), PH_NOISY_CC | PH_READONLY); ZEPHIR_INIT_VAR(&_1); ZEPHIR_CONCAT_SVV(&_1, "_PHCA", &_0, &keyName); - ZEPHIR_RETURN_CALL_FUNCTION("apc_delete", NULL, 108, &_1); + ZEPHIR_RETURN_CALL_FUNCTION("apc_delete", NULL, 98, &_1); zephir_check_call_status(); RETURN_MM(); @@ -38512,7 +36997,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_Apc, exists) { ZEPHIR_CONCAT_SVV(&lastKey, "_PHCA", &_0$$4, keyName); } if (zephir_is_true(&lastKey)) { - ZEPHIR_CALL_FUNCTION(&_1$$5, "apc_exists", NULL, 109, &lastKey); + ZEPHIR_CALL_FUNCTION(&_1$$5, "apc_exists", NULL, 99, &lastKey); zephir_check_call_status(); if (!ZEPHIR_IS_FALSE_IDENTICAL(&_1$$5)) { RETURN_MM_BOOL(1); @@ -38555,7 +37040,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_Apc, flush) { ZEPHIR_ITERATOR_COPY(&item, _1); } zephir_array_fetch_string(&_4$$3, &item, SL("key"), PH_NOISY | PH_READONLY, "phalcon/cache/backend/apc.zep", 289 TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(NULL, "apc_delete", &_5, 108, &_4$$3); + ZEPHIR_CALL_FUNCTION(NULL, "apc_delete", &_5, 98, &_4$$3); zephir_check_call_status(); } zend_iterator_dtor(_1); @@ -38636,7 +37121,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_File, __construct) { return; } } - ZEPHIR_CALL_PARENT(NULL, phalcon_cache_backend_file_ce, this_ptr, "__construct", &_5, 110, frontend, &options); + ZEPHIR_CALL_PARENT(NULL, phalcon_cache_backend_file_ce, this_ptr, "__construct", &_5, 0, frontend, &options); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -38708,7 +37193,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_File, get) { } else { ttl = lifetime; } - ZEPHIR_CALL_FUNCTION(NULL, "clearstatcache", NULL, 111, &__$true, &cacheFile); + ZEPHIR_CALL_FUNCTION(NULL, "clearstatcache", NULL, 100, &__$true, &cacheFile); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_4$$4); zephir_filemtime(&_4$$4, &cacheFile TSRMLS_CC); @@ -38723,7 +37208,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_File, get) { object_init_ex(&_6$$10, phalcon_cache_exception_ce); ZEPHIR_INIT_VAR(&_7$$10); ZEPHIR_CONCAT_SVS(&_7$$10, "Cache file ", &cacheFile, " could not be opened"); - ZEPHIR_CALL_METHOD(NULL, &_6$$10, "__construct", NULL, 9, &_7$$10); + ZEPHIR_CALL_METHOD(NULL, &_6$$10, "__construct", NULL, 4, &_7$$10); zephir_check_call_status(); zephir_throw_exception_debug(&_6$$10, "phalcon/cache/backend/file.zep", 148 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -38835,7 +37320,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_File, save) { object_init_ex(&_3$$11, phalcon_cache_exception_ce); ZEPHIR_INIT_VAR(&_4$$11); ZEPHIR_CONCAT_SVS(&_4$$11, "Cache file ", &cacheFile, " could not be written"); - ZEPHIR_CALL_METHOD(NULL, &_3$$11, "__construct", NULL, 9, &_4$$11); + ZEPHIR_CALL_METHOD(NULL, &_3$$11, "__construct", NULL, 4, &_4$$11); zephir_check_call_status(); zephir_throw_exception_debug(&_3$$11, "phalcon/cache/backend/file.zep", 215 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -38889,7 +37374,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_File, delete) { ZEPHIR_INIT_VAR(&cacheFile); ZEPHIR_CONCAT_VVV(&cacheFile, &cacheDir, &_1, &_2); if ((zephir_file_exists(&cacheFile TSRMLS_CC) == SUCCESS)) { - ZEPHIR_RETURN_CALL_FUNCTION("unlink", NULL, 112, &cacheFile); + ZEPHIR_RETURN_CALL_FUNCTION("unlink", NULL, 101, &cacheFile); zephir_check_call_status(); RETURN_MM(); } @@ -38946,7 +37431,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_File, queryKeys) { } ZEPHIR_INIT_VAR(&_4); object_init_ex(&_4, spl_ce_DirectoryIterator); - ZEPHIR_CALL_METHOD(NULL, &_4, "__construct", NULL, 113, &cacheDir); + ZEPHIR_CALL_METHOD(NULL, &_4, "__construct", NULL, 102, &cacheDir); zephir_check_call_status(); _3 = zephir_get_iterator(&_4 TSRMLS_CC); _3->funcs->rewind(_3 TSRMLS_CC); @@ -38956,7 +37441,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_File, queryKeys) { } ZEPHIR_CALL_METHOD(&_5$$5, &item, "isdir", NULL, 0); zephir_check_call_status(); - if (likely(ZEPHIR_IS_FALSE_IDENTICAL(&_5$$5))) { + if (EXPECTED(ZEPHIR_IS_FALSE_IDENTICAL(&_5$$5))) { ZEPHIR_CALL_METHOD(&key, &item, "getfilename", NULL, 0); zephir_check_call_status(); if (!(ZEPHIR_IS_EMPTY(&prefix))) { @@ -39032,7 +37517,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_File, exists) { } else { ttl = lifetime; } - ZEPHIR_CALL_FUNCTION(NULL, "clearstatcache", NULL, 111, &__$true, &cacheFile); + ZEPHIR_CALL_FUNCTION(NULL, "clearstatcache", NULL, 100, &__$true, &cacheFile); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_5$$6); zephir_filemtime(&_5$$6, &cacheFile TSRMLS_CC); @@ -39109,7 +37594,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_File, increment) { } else { ZEPHIR_CPY_WRT(&ttl, &lifetime); } - ZEPHIR_CALL_FUNCTION(NULL, "clearstatcache", NULL, 111, &__$true, &cacheFile); + ZEPHIR_CALL_FUNCTION(NULL, "clearstatcache", NULL, 100, &__$true, &cacheFile); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_4$$3); zephir_filemtime(&_4$$3, &cacheFile TSRMLS_CC); @@ -39124,7 +37609,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_File, increment) { object_init_ex(&_6$$7, phalcon_cache_exception_ce); ZEPHIR_INIT_VAR(&_7$$7); ZEPHIR_CONCAT_SVS(&_7$$7, "Cache file ", &cacheFile, " could not be opened"); - ZEPHIR_CALL_METHOD(NULL, &_6$$7, "__construct", NULL, 9, &_7$$7); + ZEPHIR_CALL_METHOD(NULL, &_6$$7, "__construct", NULL, 4, &_7$$7); zephir_check_call_status(); zephir_throw_exception_debug(&_6$$7, "phalcon/cache/backend/file.zep", 383 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -39207,7 +37692,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_File, decrement) { } else { ZEPHIR_CPY_WRT(&ttl, &lifetime); } - ZEPHIR_CALL_FUNCTION(NULL, "clearstatcache", NULL, 111, &__$true, &cacheFile); + ZEPHIR_CALL_FUNCTION(NULL, "clearstatcache", NULL, 100, &__$true, &cacheFile); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_5$$3); zephir_filemtime(&_5$$3, &cacheFile TSRMLS_CC); @@ -39222,7 +37707,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_File, decrement) { object_init_ex(&_7$$7, phalcon_cache_exception_ce); ZEPHIR_INIT_VAR(&_8$$7); ZEPHIR_CONCAT_SVS(&_8$$7, "Cache file ", &cacheFile, " could not be opened"); - ZEPHIR_CALL_METHOD(NULL, &_7$$7, "__construct", NULL, 9, &_8$$7); + ZEPHIR_CALL_METHOD(NULL, &_7$$7, "__construct", NULL, 4, &_8$$7); zephir_check_call_status(); zephir_throw_exception_debug(&_7$$7, "phalcon/cache/backend/file.zep", 441 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -39276,7 +37761,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_File, flush) { } ZEPHIR_INIT_VAR(&_2); object_init_ex(&_2, spl_ce_DirectoryIterator); - ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", NULL, 113, &cacheDir); + ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", NULL, 102, &cacheDir); zephir_check_call_status(); _1 = zephir_get_iterator(&_2 TSRMLS_CC); _1->funcs->rewind(_1 TSRMLS_CC); @@ -39286,7 +37771,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_File, flush) { } ZEPHIR_CALL_METHOD(&_3$$4, &item, "isfile", NULL, 0); zephir_check_call_status(); - if (likely(ZEPHIR_IS_TRUE(&_3$$4))) { + if (EXPECTED(ZEPHIR_IS_TRUE(&_3$$4))) { ZEPHIR_CALL_METHOD(&key, &item, "getfilename", NULL, 0); zephir_check_call_status(); ZEPHIR_CALL_METHOD(&cacheFile, &item, "getpathname", NULL, 0); @@ -39296,7 +37781,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_File, flush) { _4$$5 = zephir_start_with(&key, &prefix, NULL); } if (_4$$5) { - ZEPHIR_CALL_FUNCTION(&_5$$6, "unlink", &_6, 112, &cacheFile); + ZEPHIR_CALL_FUNCTION(&_5$$6, "unlink", &_6, 101, &cacheFile); zephir_check_call_status(); if (!(zephir_is_true(&_5$$6))) { RETURN_MM_BOOL(0); @@ -39420,7 +37905,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_Libmemcached, __construct) { ZVAL_STRING(&_1$$5, ""); zephir_array_update_string(options, SL("statsKey"), &_1$$5, PH_COPY | PH_SEPARATE); } - ZEPHIR_CALL_PARENT(NULL, phalcon_cache_backend_libmemcached_ce, this_ptr, "__construct", &_2, 110, frontend, options); + ZEPHIR_CALL_PARENT(NULL, phalcon_cache_backend_libmemcached_ce, this_ptr, "__construct", &_2, 0, frontend, options); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -39654,7 +38139,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_Libmemcached, save) { zephir_check_call_status(); ZEPHIR_INIT_VAR(&_3$$15); ZEPHIR_CONCAT_SV(&_3$$15, "Failed storing data in memcached, error code: ", &_2$$15); - ZEPHIR_CALL_METHOD(NULL, &_1$$15, "__construct", NULL, 9, &_3$$15); + ZEPHIR_CALL_METHOD(NULL, &_1$$15, "__construct", NULL, 4, &_3$$15); zephir_check_call_status(); zephir_throw_exception_debug(&_1$$15, "phalcon/cache/backend/libmemcached.zep", 240 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -39802,7 +38287,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_Libmemcached, queryKeys) { } ZEPHIR_CALL_METHOD(&keys, &memcache, "get", NULL, 0, &specialKey); zephir_check_call_status(); - if (unlikely(Z_TYPE_P(&keys) != IS_ARRAY)) { + if (UNEXPECTED(Z_TYPE_P(&keys) != IS_ARRAY)) { array_init(return_value); RETURN_MM(); } @@ -40035,7 +38520,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_Libmemcached, flush) { } ZEPHIR_CALL_METHOD(&keys, &memcache, "get", NULL, 0, &specialKey); zephir_check_call_status(); - if (unlikely(Z_TYPE_P(&keys) != IS_ARRAY)) { + if (UNEXPECTED(Z_TYPE_P(&keys) != IS_ARRAY)) { RETURN_MM_BOOL(1); } ZEPHIR_INIT_VAR(&_0); @@ -40129,7 +38614,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_Memcache, __construct) { ZVAL_STRING(&_2$$7, ""); zephir_array_update_string(options, SL("statsKey"), &_2$$7, PH_COPY | PH_SEPARATE); } - ZEPHIR_CALL_PARENT(NULL, phalcon_cache_backend_memcache_ce, this_ptr, "__construct", &_3, 110, frontend, options); + ZEPHIR_CALL_PARENT(NULL, phalcon_cache_backend_memcache_ce, this_ptr, "__construct", &_3, 0, frontend, options); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -40207,11 +38692,11 @@ static PHP_METHOD(Phalcon_Cache_Backend_Memcache, addServers) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 1, &host_param, &port_param, &persistent_param); - if (unlikely(Z_TYPE_P(host_param) != IS_STRING && Z_TYPE_P(host_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(host_param) != IS_STRING && Z_TYPE_P(host_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'host' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(host_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(host_param) == IS_STRING)) { zephir_get_strval(&host, host_param); } else { ZEPHIR_INIT_VAR(&host); @@ -40545,7 +39030,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_Memcache, queryKeys) { } ZEPHIR_CALL_METHOD(&keys, &memcache, "get", NULL, 0, &specialKey); zephir_check_call_status(); - if (unlikely(Z_TYPE_P(&keys) != IS_ARRAY)) { + if (UNEXPECTED(Z_TYPE_P(&keys) != IS_ARRAY)) { array_init(return_value); RETURN_MM(); } @@ -40776,7 +39261,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_Memcache, flush) { } ZEPHIR_CALL_METHOD(&keys, &memcache, "get", NULL, 0, &specialKey); zephir_check_call_status(); - if (unlikely(Z_TYPE_P(&keys) != IS_ARRAY)) { + if (UNEXPECTED(Z_TYPE_P(&keys) != IS_ARRAY)) { RETURN_MM_BOOL(1); } ZEPHIR_INIT_VAR(&_0); @@ -41223,7 +39708,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_Memory, serialize) { ZEPHIR_OBS_VAR(&_1); zephir_read_property(&_1, this_ptr, SL("_frontend"), PH_NOISY_CC); zephir_array_update_string(&_0, SL("frontend"), &_1, PH_COPY | PH_SEPARATE); - ZEPHIR_RETURN_CALL_FUNCTION("serialize", NULL, 65, &_0); + ZEPHIR_RETURN_CALL_FUNCTION("serialize", NULL, 59, &_0); zephir_check_call_status(); RETURN_MM(); @@ -41244,7 +39729,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_Memory, unserialize) { - ZEPHIR_CALL_FUNCTION(&unserialized, "unserialize", NULL, 66, data); + ZEPHIR_CALL_FUNCTION(&unserialized, "unserialize", NULL, 60, data); zephir_check_call_status(); if (Z_TYPE_P(&unserialized) != IS_ARRAY) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(zend_exception_get_default(TSRMLS_C), "Unserialized data must be an array", "phalcon/cache/backend/memory.zep", 295); @@ -41310,7 +39795,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_Mongo, __construct) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_cache_exception_ce, "The parameter 'collection' is required", "phalcon/cache/backend/mongo.zep", 86); return; } - ZEPHIR_CALL_PARENT(NULL, phalcon_cache_backend_mongo_ce, this_ptr, "__construct", &_0, 110, frontend, options); + ZEPHIR_CALL_PARENT(NULL, phalcon_cache_backend_mongo_ce, this_ptr, "__construct", &_0, 0, frontend, options); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -41437,7 +39922,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_Mongo, get) { zephir_time(&_2); zephir_array_update_string(&_1, SL("$gt"), &_2, PH_COPY | PH_SEPARATE); zephir_array_update_string(&conditions, SL("time"), &_1, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(&_3, this_ptr, "_getcollection", NULL, 114); + ZEPHIR_CALL_METHOD(&_3, this_ptr, "_getcollection", NULL, 103); zephir_check_call_status(); ZEPHIR_CALL_METHOD(&document, &_3, "findone", NULL, 0, &conditions); zephir_check_call_status(); @@ -41556,7 +40041,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_Mongo, save) { } else { ZEPHIR_CPY_WRT(&ttl, lifetime); } - ZEPHIR_CALL_METHOD(&collection, this_ptr, "_getcollection", NULL, 114); + ZEPHIR_CALL_METHOD(&collection, this_ptr, "_getcollection", NULL, 103); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_1); zephir_time(&_1); @@ -41623,7 +40108,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_Mongo, delete) { - ZEPHIR_CALL_METHOD(&_0, this_ptr, "_getcollection", NULL, 114); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "_getcollection", NULL, 103); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_1); zephir_create_array(&_1, 1, 0 TSRMLS_CC); @@ -41633,7 +40118,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_Mongo, delete) { zephir_array_update_string(&_1, SL("key"), &_3, PH_COPY | PH_SEPARATE); ZEPHIR_CALL_METHOD(NULL, &_0, "remove", NULL, 0, &_1); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_4, "rand", NULL, 115); + ZEPHIR_CALL_FUNCTION(&_4, "rand", NULL, 104); zephir_check_call_status(); if (zephir_safe_mod_long_long(zephir_get_intval(&_4), 100 TSRMLS_CC) == 0) { ZEPHIR_CALL_METHOD(NULL, this_ptr, "gc", NULL, 0); @@ -41700,7 +40185,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_Mongo, queryKeys) { zephir_time(&_3); zephir_array_update_string(&_2, SL("$gt"), &_3, PH_COPY | PH_SEPARATE); zephir_array_update_string(&conditions, SL("time"), &_2, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(&collection, this_ptr, "_getcollection", NULL, 114); + ZEPHIR_CALL_METHOD(&collection, this_ptr, "_getcollection", NULL, 103); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_4); zephir_create_array(&_4, 1, 0 TSRMLS_CC); @@ -41776,7 +40261,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_Mongo, exists) { ZEPHIR_CONCAT_VV(&lastKey, &_0$$4, keyName); } if (zephir_is_true(&lastKey)) { - ZEPHIR_CALL_METHOD(&_1$$5, this_ptr, "_getcollection", NULL, 114); + ZEPHIR_CALL_METHOD(&_1$$5, this_ptr, "_getcollection", NULL, 103); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_3$$5); zephir_create_array(&_3$$5, 2, 0 TSRMLS_CC); @@ -41809,7 +40294,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_Mongo, gc) { ZEPHIR_MM_GROW(); - ZEPHIR_CALL_METHOD(&_0, this_ptr, "_getcollection", NULL, 114); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "_getcollection", NULL, 103); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_1); zephir_create_array(&_1, 1, 0 TSRMLS_CC); @@ -41857,7 +40342,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_Mongo, increment) { ZEPHIR_INIT_VAR(&prefixedKey); ZEPHIR_CONCAT_VV(&prefixedKey, &_0, keyName); zephir_update_property_zval(this_ptr, SL("_lastKey"), &prefixedKey); - ZEPHIR_CALL_METHOD(&_1, this_ptr, "_getcollection", NULL, 114); + ZEPHIR_CALL_METHOD(&_1, this_ptr, "_getcollection", NULL, 103); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_2); zephir_create_array(&_2, 1, 0 TSRMLS_CC); @@ -41921,7 +40406,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_Mongo, decrement) { ZEPHIR_INIT_VAR(&prefixedKey); ZEPHIR_CONCAT_VV(&prefixedKey, &_0, keyName); zephir_update_property_zval(this_ptr, SL("_lastKey"), &prefixedKey); - ZEPHIR_CALL_METHOD(&_1, this_ptr, "_getcollection", NULL, 114); + ZEPHIR_CALL_METHOD(&_1, this_ptr, "_getcollection", NULL, 103); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_2); zephir_create_array(&_2, 1, 0 TSRMLS_CC); @@ -41963,7 +40448,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_Mongo, flush) { ZEPHIR_MM_GROW(); - ZEPHIR_CALL_METHOD(&_0, this_ptr, "_getcollection", NULL, 114); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "_getcollection", NULL, 103); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, &_0, "remove", NULL, 0); zephir_check_call_status(); @@ -42045,7 +40530,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_Redis, __construct) { ZVAL_STRING(&_3$$8, ""); zephir_array_update_string(options, SL("statsKey"), &_3$$8, PH_COPY | PH_SEPARATE); } - ZEPHIR_CALL_PARENT(NULL, phalcon_cache_backend_redis_ce, this_ptr, "__construct", &_4, 110, frontend, options); + ZEPHIR_CALL_PARENT(NULL, phalcon_cache_backend_redis_ce, this_ptr, "__construct", &_4, 0, frontend, options); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -42075,8 +40560,10 @@ static PHP_METHOD(Phalcon_Cache_Backend_Redis, _connect) { zephir_read_property(&options, this_ptr, SL("_options"), PH_NOISY_CC); ZEPHIR_INIT_VAR(&redis); object_init_ex(&redis, zephir_get_internal_ce(SL("redis"))); - ZEPHIR_CALL_METHOD(NULL, &redis, "__construct", NULL, 0); - zephir_check_call_status(); + if (zephir_has_constructor(&redis TSRMLS_CC)) { + ZEPHIR_CALL_METHOD(NULL, &redis, "__construct", NULL, 0); + zephir_check_call_status(); + } ZEPHIR_OBS_VAR(&host); _0 = !(zephir_array_isset_string_fetch(&host, &options, SL("host"), 0)); if (!(_0)) { @@ -42104,7 +40591,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_Redis, _connect) { object_init_ex(&_2$$6, phalcon_cache_exception_ce); ZEPHIR_INIT_VAR(&_3$$6); ZEPHIR_CONCAT_SVSV(&_3$$6, "Could not connect to the Redisd server ", &host, ":", &port); - ZEPHIR_CALL_METHOD(NULL, &_2$$6, "__construct", NULL, 9, &_3$$6); + ZEPHIR_CALL_METHOD(NULL, &_2$$6, "__construct", NULL, 4, &_3$$6); zephir_check_call_status(); zephir_throw_exception_debug(&_2$$6, "phalcon/cache/backend/redis.zep", 124 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -42724,7 +41211,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_Xcache, __construct) { ZVAL_STRING(&_0$$4, ""); zephir_array_update_string(options, SL("statsKey"), &_0$$4, PH_COPY | PH_SEPARATE); } - ZEPHIR_CALL_PARENT(NULL, phalcon_cache_backend_xcache_ce, this_ptr, "__construct", &_1, 110, frontend, options); + ZEPHIR_CALL_PARENT(NULL, phalcon_cache_backend_xcache_ce, this_ptr, "__construct", &_1, 0, frontend, options); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -42760,7 +41247,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_Xcache, get) { ZEPHIR_INIT_VAR(&prefixedKey); ZEPHIR_CONCAT_SVV(&prefixedKey, "_PHCX", &_0, &keyName); zephir_update_property_zval(this_ptr, SL("_lastKey"), &prefixedKey); - ZEPHIR_CALL_FUNCTION(&cachedContent, "xcache_get", NULL, 87, &prefixedKey); + ZEPHIR_CALL_FUNCTION(&cachedContent, "xcache_get", NULL, 79, &prefixedKey); zephir_check_call_status(); if (!(zephir_is_true(&cachedContent))) { RETURN_MM_NULL(); @@ -42864,7 +41351,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_Xcache, save) { } else { ZEPHIR_CPY_WRT(&tt1, lifetime); } - ZEPHIR_CALL_FUNCTION(&success, "xcache_set", &_1, 88, &lastKey, &preparedContent, &tt1); + ZEPHIR_CALL_FUNCTION(&success, "xcache_set", &_1, 80, &lastKey, &preparedContent, &tt1); zephir_check_call_status(); if (!(zephir_is_true(&success))) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_cache_exception_ce, "Failed storing the data in xcache", "phalcon/cache/backend/xcache.zep", 156); @@ -42894,14 +41381,14 @@ static PHP_METHOD(Phalcon_Cache_Backend_Xcache, save) { return; } if (!ZEPHIR_IS_STRING(&specialKey, "")) { - ZEPHIR_CALL_FUNCTION(&keys, "xcache_get", NULL, 87, &specialKey); + ZEPHIR_CALL_FUNCTION(&keys, "xcache_get", NULL, 79, &specialKey); zephir_check_call_status(); if (Z_TYPE_P(&keys) != IS_ARRAY) { ZEPHIR_INIT_NVAR(&keys); array_init(&keys); } zephir_array_update_zval(&keys, &lastKey, &tt1, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_FUNCTION(NULL, "xcache_set", &_1, 88, &specialKey, &keys); + ZEPHIR_CALL_FUNCTION(NULL, "xcache_set", &_1, 80, &specialKey, &keys); zephir_check_call_status(); } } @@ -42937,14 +41424,14 @@ static PHP_METHOD(Phalcon_Cache_Backend_Xcache, delete) { return; } if (!ZEPHIR_IS_STRING(&specialKey, "")) { - ZEPHIR_CALL_FUNCTION(&keys, "xcache_get", NULL, 87, &specialKey); + ZEPHIR_CALL_FUNCTION(&keys, "xcache_get", NULL, 79, &specialKey); zephir_check_call_status(); if (Z_TYPE_P(&keys) != IS_ARRAY) { ZEPHIR_INIT_NVAR(&keys); array_init(&keys); } zephir_array_unset(&keys, &prefixedKey, PH_SEPARATE); - ZEPHIR_CALL_FUNCTION(NULL, "xcache_set", NULL, 88, &specialKey, &keys); + ZEPHIR_CALL_FUNCTION(NULL, "xcache_set", NULL, 80, &specialKey, &keys); zephir_check_call_status(); } ZEPHIR_MM_RESTORE(); @@ -43004,7 +41491,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_Xcache, queryKeys) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_cache_exception_ce, "Cached keys need to be enabled to use this function (options['statsKey'] == '_PHCX')!", "phalcon/cache/backend/xcache.zep", 251); return; } - ZEPHIR_CALL_FUNCTION(&keys, "xcache_get", NULL, 87, &specialKey); + ZEPHIR_CALL_FUNCTION(&keys, "xcache_get", NULL, 79, &specialKey); zephir_check_call_status(); if (Z_TYPE_P(&keys) != IS_ARRAY) { array_init(return_value); @@ -43071,7 +41558,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_Xcache, exists) { ZEPHIR_CONCAT_SVV(&lastKey, "_PHCX", &_0$$4, keyName); } if (zephir_is_true(&lastKey)) { - ZEPHIR_RETURN_CALL_FUNCTION("xcache_isset", NULL, 116, &lastKey); + ZEPHIR_RETURN_CALL_FUNCTION("xcache_isset", NULL, 105, &lastKey); zephir_check_call_status(); RETURN_MM(); } @@ -43116,14 +41603,14 @@ static PHP_METHOD(Phalcon_Cache_Backend_Xcache, increment) { } if ((zephir_function_exists_ex(SL("xcache_inc") TSRMLS_CC) == SUCCESS)) { ZVAL_LONG(&_1$$6, value); - ZEPHIR_CALL_FUNCTION(&newVal, "xcache_inc", NULL, 117, &lastKey, &_1$$6); + ZEPHIR_CALL_FUNCTION(&newVal, "xcache_inc", NULL, 106, &lastKey, &_1$$6); zephir_check_call_status(); } else { - ZEPHIR_CALL_FUNCTION(&origVal, "xcache_get", NULL, 87, &lastKey); + ZEPHIR_CALL_FUNCTION(&origVal, "xcache_get", NULL, 79, &lastKey); zephir_check_call_status(); ZEPHIR_INIT_NVAR(&newVal); ZVAL_LONG(&newVal, (zephir_get_numberval(&origVal) - value)); - ZEPHIR_CALL_FUNCTION(NULL, "xcache_set", NULL, 88, &lastKey, &newVal); + ZEPHIR_CALL_FUNCTION(NULL, "xcache_set", NULL, 80, &lastKey, &newVal); zephir_check_call_status(); } RETURN_CCTOR(newVal); @@ -43168,14 +41655,14 @@ static PHP_METHOD(Phalcon_Cache_Backend_Xcache, decrement) { } if ((zephir_function_exists_ex(SL("xcache_dec") TSRMLS_CC) == SUCCESS)) { ZVAL_LONG(&_1$$6, value); - ZEPHIR_CALL_FUNCTION(&newVal, "xcache_dec", NULL, 118, &lastKey, &_1$$6); + ZEPHIR_CALL_FUNCTION(&newVal, "xcache_dec", NULL, 107, &lastKey, &_1$$6); zephir_check_call_status(); } else { - ZEPHIR_CALL_FUNCTION(&origVal, "xcache_get", NULL, 87, &lastKey); + ZEPHIR_CALL_FUNCTION(&origVal, "xcache_get", NULL, 79, &lastKey); zephir_check_call_status(); ZEPHIR_INIT_NVAR(&newVal); ZVAL_LONG(&newVal, (zephir_get_numberval(&origVal) - value)); - ZEPHIR_CALL_FUNCTION(&success, "xcache_set", NULL, 88, &lastKey, &newVal); + ZEPHIR_CALL_FUNCTION(&success, "xcache_set", NULL, 80, &lastKey, &newVal); zephir_check_call_status(); } RETURN_CCTOR(newVal); @@ -43212,7 +41699,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_Xcache, flush) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_cache_exception_ce, "Cached keys need to be enabled to use this function (options['statsKey'] == '_PHCM')!", "phalcon/cache/backend/xcache.zep", 371); return; } - ZEPHIR_CALL_FUNCTION(&keys, "xcache_get", NULL, 87, &specialKey); + ZEPHIR_CALL_FUNCTION(&keys, "xcache_get", NULL, 79, &specialKey); zephir_check_call_status(); if (Z_TYPE_P(&keys) == IS_ARRAY) { ZEPHIR_INIT_VAR(&_1$$5); @@ -43228,12 +41715,12 @@ static PHP_METHOD(Phalcon_Cache_Backend_Xcache, flush) { ZEPHIR_INIT_NVAR(&_1$$5); ZVAL_COPY(&_1$$5, _2$$5); zephir_array_unset(&keys, &key, PH_SEPARATE); - ZEPHIR_CALL_FUNCTION(NULL, "xcache_unset", &_5, 119, &key); + ZEPHIR_CALL_FUNCTION(NULL, "xcache_unset", &_5, 108, &key); zephir_check_call_status(); } ZEND_HASH_FOREACH_END(); ZEPHIR_INIT_NVAR(&_1$$5); ZEPHIR_INIT_NVAR(&key); - ZEPHIR_CALL_FUNCTION(NULL, "xcache_set", NULL, 88, &specialKey, &keys); + ZEPHIR_CALL_FUNCTION(NULL, "xcache_set", NULL, 80, &specialKey, &keys); zephir_check_call_status(); } RETURN_MM_BOOL(1); @@ -43347,7 +41834,7 @@ static PHP_METHOD(Phalcon_Cache_Frontend_Base64, beforeStore) { - ZEPHIR_RETURN_CALL_FUNCTION("base64_encode", NULL, 120, data); + ZEPHIR_RETURN_CALL_FUNCTION("base64_encode", NULL, 109, data); zephir_check_call_status(); RETURN_MM(); @@ -43366,7 +41853,7 @@ static PHP_METHOD(Phalcon_Cache_Frontend_Base64, afterRetrieve) { - ZEPHIR_RETURN_CALL_FUNCTION("base64_decode", NULL, 121, data); + ZEPHIR_RETURN_CALL_FUNCTION("base64_decode", NULL, 110, data); zephir_check_call_status(); RETURN_MM(); @@ -43479,7 +41966,7 @@ static PHP_METHOD(Phalcon_Cache_Frontend_Data, beforeStore) { - ZEPHIR_RETURN_CALL_FUNCTION("serialize", NULL, 65, data); + ZEPHIR_RETURN_CALL_FUNCTION("serialize", NULL, 59, data); zephir_check_call_status(); RETURN_MM(); @@ -43506,7 +41993,7 @@ static PHP_METHOD(Phalcon_Cache_Frontend_Data, afterRetrieve) { RETVAL_ZVAL(data, 1, 0); RETURN_MM(); } - ZEPHIR_RETURN_CALL_FUNCTION("unserialize", NULL, 66, data); + ZEPHIR_RETURN_CALL_FUNCTION("unserialize", NULL, 60, data); zephir_check_call_status(); RETURN_MM(); @@ -43617,7 +42104,7 @@ static PHP_METHOD(Phalcon_Cache_Frontend_Igbinary, beforeStore) { - ZEPHIR_RETURN_CALL_FUNCTION("igbinary_serialize", NULL, 122, data); + ZEPHIR_RETURN_CALL_FUNCTION("igbinary_serialize", NULL, 111, data); zephir_check_call_status(); RETURN_MM(); @@ -43640,7 +42127,7 @@ static PHP_METHOD(Phalcon_Cache_Frontend_Igbinary, afterRetrieve) { RETVAL_ZVAL(data, 1, 0); RETURN_MM(); } - ZEPHIR_RETURN_CALL_FUNCTION("igbinary_unserialize", NULL, 123, data); + ZEPHIR_RETURN_CALL_FUNCTION("igbinary_unserialize", NULL, 112, data); zephir_check_call_status(); RETURN_MM(); @@ -43887,7 +42374,7 @@ static PHP_METHOD(Phalcon_Cache_Frontend_Msgpack, beforeStore) { - ZEPHIR_RETURN_CALL_FUNCTION("msgpack_pack", NULL, 124, data); + ZEPHIR_RETURN_CALL_FUNCTION("msgpack_pack", NULL, 113, data); zephir_check_call_status(); RETURN_MM(); @@ -43910,7 +42397,7 @@ static PHP_METHOD(Phalcon_Cache_Frontend_Msgpack, afterRetrieve) { RETVAL_ZVAL(data, 1, 0); RETURN_MM(); } - ZEPHIR_RETURN_CALL_FUNCTION("msgpack_unpack", NULL, 125, data); + ZEPHIR_RETURN_CALL_FUNCTION("msgpack_unpack", NULL, 114, data); zephir_check_call_status(); RETURN_MM(); @@ -44096,7 +42583,7 @@ static PHP_METHOD(Phalcon_Cache_Frontend_Output, start) { } else { zephir_update_property_zval(this_ptr, SL("_buffering"), &__$false); } - ZEPHIR_CALL_FUNCTION(NULL, "ob_start", NULL, 126); + ZEPHIR_CALL_FUNCTION(NULL, "ob_start", NULL, 115); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -44114,7 +42601,7 @@ static PHP_METHOD(Phalcon_Cache_Frontend_Output, getContent) { zephir_read_property(&_0, this_ptr, SL("_buffering"), PH_NOISY_CC | PH_READONLY); if (zephir_is_true(&_0)) { - ZEPHIR_RETURN_CALL_FUNCTION("ob_get_contents", NULL, 127); + ZEPHIR_RETURN_CALL_FUNCTION("ob_get_contents", NULL, 116); zephir_check_call_status(); RETURN_MM(); } @@ -44136,7 +42623,7 @@ static PHP_METHOD(Phalcon_Cache_Frontend_Output, stop) { zephir_read_property(&_0, this_ptr, SL("_buffering"), PH_NOISY_CC | PH_READONLY); if (zephir_is_true(&_0)) { - ZEPHIR_CALL_FUNCTION(NULL, "ob_end_clean", NULL, 128); + ZEPHIR_CALL_FUNCTION(NULL, "ob_end_clean", NULL, 117); zephir_check_call_status(); } if (0) { @@ -44336,7 +42823,7 @@ static PHP_METHOD(Phalcon_Cli_Console, handle) { object_init_ex(&_9$$12, phalcon_cli_console_exception_ce); ZEPHIR_INIT_VAR(&_10$$12); ZEPHIR_CONCAT_SVS(&_10$$12, "Module '", &moduleName, "' isn't registered in the console container"); - ZEPHIR_CALL_METHOD(NULL, &_9$$12, "__construct", NULL, 9, &_10$$12); + ZEPHIR_CALL_METHOD(NULL, &_9$$12, "__construct", NULL, 4, &_10$$12); zephir_check_call_status(); zephir_throw_exception_debug(&_9$$12, "phalcon/cli/console.zep", 111 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -44355,7 +42842,7 @@ static PHP_METHOD(Phalcon_Cli_Console, handle) { object_init_ex(&_11$$15, phalcon_cli_console_exception_ce); ZEPHIR_INIT_VAR(&_12$$15); ZEPHIR_CONCAT_SVS(&_12$$15, "Module definition path '", &path, "' doesn't exist"); - ZEPHIR_CALL_METHOD(NULL, &_11$$15, "__construct", NULL, 9, &_12$$15); + ZEPHIR_CALL_METHOD(NULL, &_11$$15, "__construct", NULL, 4, &_12$$15); zephir_check_call_status(); zephir_throw_exception_debug(&_11$$15, "phalcon/cli/console.zep", 121 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -44480,7 +42967,7 @@ static PHP_METHOD(Phalcon_Cli_Console, setArgument) { if (!str_param) { str = 1; } else { - if (unlikely(Z_TYPE_P(str_param) != IS_TRUE && Z_TYPE_P(str_param) != IS_FALSE)) { + if (UNEXPECTED(Z_TYPE_P(str_param) != IS_TRUE && Z_TYPE_P(str_param) != IS_FALSE)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'str' must be a bool") TSRMLS_CC); RETURN_MM_NULL(); } @@ -44489,7 +42976,7 @@ static PHP_METHOD(Phalcon_Cli_Console, setArgument) { if (!shift_param) { shift = 1; } else { - if (unlikely(Z_TYPE_P(shift_param) != IS_TRUE && Z_TYPE_P(shift_param) != IS_FALSE)) { + if (UNEXPECTED(Z_TYPE_P(shift_param) != IS_TRUE && Z_TYPE_P(shift_param) != IS_FALSE)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'shift' must be a bool") TSRMLS_CC); RETURN_MM_NULL(); } @@ -44509,7 +42996,7 @@ static PHP_METHOD(Phalcon_Cli_Console, setArgument) { } if (_0) { ZEPHIR_MAKE_REF(&arguments); - ZEPHIR_CALL_FUNCTION(NULL, "array_shift", &_1, 129, &arguments); + ZEPHIR_CALL_FUNCTION(NULL, "array_shift", &_1, 118, &arguments); ZEPHIR_UNREF(&arguments); zephir_check_call_status(); } @@ -44522,7 +43009,7 @@ static PHP_METHOD(Phalcon_Cli_Console, setArgument) { ZEPHIR_INIT_NVAR(&_3$$5); ZVAL_STRING(&_3$$5, "--"); ZVAL_LONG(&_4$$5, 2); - ZEPHIR_CALL_FUNCTION(&_5$$5, "strncmp", &_6, 130, &arg, &_3$$5, &_4$$5); + ZEPHIR_CALL_FUNCTION(&_5$$5, "strncmp", &_6, 119, &arg, &_3$$5, &_4$$5); zephir_check_call_status(); if (ZEPHIR_IS_LONG(&_5$$5, 0)) { ZEPHIR_INIT_NVAR(&_7$$6); @@ -44554,7 +43041,7 @@ static PHP_METHOD(Phalcon_Cli_Console, setArgument) { ZEPHIR_INIT_NVAR(&_18$$9); ZVAL_STRING(&_18$$9, "-"); ZVAL_LONG(&_19$$9, 1); - ZEPHIR_CALL_FUNCTION(&_20$$9, "strncmp", &_6, 130, &arg, &_18$$9, &_19$$9); + ZEPHIR_CALL_FUNCTION(&_20$$9, "strncmp", &_6, 119, &arg, &_18$$9, &_19$$9); zephir_check_call_status(); if (ZEPHIR_IS_LONG(&_20$$9, 0)) { ZVAL_LONG(&_21$$10, 1); @@ -44572,21 +43059,21 @@ static PHP_METHOD(Phalcon_Cli_Console, setArgument) { ZEPHIR_INIT_NVAR(&arg); if (str) { ZEPHIR_INIT_VAR(&_23$$13); - ZEPHIR_CALL_CE_STATIC(&_24$$13, phalcon_cli_router_route_ce, "getdelimiter", &_25, 131); + ZEPHIR_CALL_CE_STATIC(&_24$$13, phalcon_cli_router_route_ce, "getdelimiter", &_25, 0); zephir_check_call_status(); zephir_fast_join(&_23$$13, &_24$$13, &args TSRMLS_CC); zephir_update_property_zval(this_ptr, SL("_arguments"), &_23$$13); } else { if (zephir_fast_count_int(&args TSRMLS_CC)) { ZEPHIR_MAKE_REF(&args); - ZEPHIR_CALL_FUNCTION(&_26$$15, "array_shift", &_1, 129, &args); + ZEPHIR_CALL_FUNCTION(&_26$$15, "array_shift", &_1, 118, &args); ZEPHIR_UNREF(&args); zephir_check_call_status(); zephir_array_update_string(&handleArgs, SL("task"), &_26$$15, PH_COPY | PH_SEPARATE); } if (zephir_fast_count_int(&args TSRMLS_CC)) { ZEPHIR_MAKE_REF(&args); - ZEPHIR_CALL_FUNCTION(&_27$$16, "array_shift", &_1, 129, &args); + ZEPHIR_CALL_FUNCTION(&_27$$16, "array_shift", &_1, 118, &args); ZEPHIR_UNREF(&args); zephir_check_call_status(); zephir_array_update_string(&handleArgs, SL("action"), &_27$$16, PH_COPY | PH_SEPARATE); @@ -44763,7 +43250,7 @@ static PHP_METHOD(Phalcon_Cli_Dispatcher, _throwDispatchException) { ZEPHIR_INIT_VAR(&exception); object_init_ex(&exception, phalcon_cli_dispatcher_exception_ce); ZVAL_LONG(&_0, exceptionCode); - ZEPHIR_CALL_METHOD(NULL, &exception, "__construct", NULL, 9, &message, &_0); + ZEPHIR_CALL_METHOD(NULL, &exception, "__construct", NULL, 4, &message, &_0); zephir_check_call_status(); ZEPHIR_CALL_METHOD(&_1, this_ptr, "_handleexception", NULL, 0, &exception); zephir_check_call_status(); @@ -45038,7 +43525,7 @@ static PHP_METHOD(Phalcon_Cli_Router, __construct) { add_assoc_long_ex(&_1$$3, SL("task"), 1); ZEPHIR_INIT_VAR(&_2$$3); ZVAL_STRING(&_2$$3, "#^(?::delimiter)?([a-zA-Z0-9\\_\\-]+)[:delimiter]{0,1}$#"); - ZEPHIR_CALL_METHOD(NULL, &_0$$3, "__construct", &_3, 132, &_2$$3, &_1$$3); + ZEPHIR_CALL_METHOD(NULL, &_0$$3, "__construct", &_3, 120, &_2$$3, &_1$$3); zephir_check_call_status(); zephir_array_append(&routes, &_0$$3, PH_SEPARATE, "phalcon/cli/router.zep", 93); ZEPHIR_INIT_NVAR(&_2$$3); @@ -45050,7 +43537,7 @@ static PHP_METHOD(Phalcon_Cli_Router, __construct) { add_assoc_long_ex(&_4$$3, SL("params"), 3); ZEPHIR_INIT_VAR(&_5$$3); ZVAL_STRING(&_5$$3, "#^(?::delimiter)?([a-zA-Z0-9\\_\\-]+):delimiter([a-zA-Z0-9\\.\\_]+)(:delimiter.*)*$#"); - ZEPHIR_CALL_METHOD(NULL, &_2$$3, "__construct", &_3, 132, &_5$$3, &_4$$3); + ZEPHIR_CALL_METHOD(NULL, &_2$$3, "__construct", &_3, 120, &_5$$3, &_4$$3); zephir_check_call_status(); zephir_array_append(&routes, &_2$$3, PH_SEPARATE, "phalcon/cli/router.zep", 99); } @@ -45405,7 +43892,7 @@ static PHP_METHOD(Phalcon_Cli_Router, handle) { ZEPHIR_INIT_VAR(&strParams); zephir_substr(&strParams, &_15$$30, 1 , 0, ZEPHIR_SUBSTR_NO_LENGTH); if (zephir_is_true(&strParams)) { - ZEPHIR_CALL_CE_STATIC(&_17$$31, phalcon_cli_router_route_ce, "getdelimiter", &_18, 131); + ZEPHIR_CALL_CE_STATIC(&_17$$31, phalcon_cli_router_route_ce, "getdelimiter", &_18, 0); zephir_check_call_status(); ZEPHIR_INIT_NVAR(¶ms); zephir_fast_explode(¶ms, &_17$$31, &strParams, LONG_MAX TSRMLS_CC); @@ -45446,11 +43933,11 @@ static PHP_METHOD(Phalcon_Cli_Router, add) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &pattern_param, &paths); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(&pattern, pattern_param); } else { ZEPHIR_INIT_VAR(&pattern); @@ -45464,7 +43951,7 @@ static PHP_METHOD(Phalcon_Cli_Router, add) { ZEPHIR_INIT_VAR(&route); object_init_ex(&route, phalcon_cli_router_route_ce); - ZEPHIR_CALL_METHOD(NULL, &route, "__construct", NULL, 132, &pattern, paths); + ZEPHIR_CALL_METHOD(NULL, &route, "__construct", NULL, 120, &pattern, paths); zephir_check_call_status(); zephir_update_property_array_append(this_ptr, SL("_routes"), &route TSRMLS_CC); RETURN_CCTOR(route); @@ -45591,11 +44078,11 @@ static PHP_METHOD(Phalcon_Cli_Router, getRouteByName) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(&name, name_param); } else { ZEPHIR_INIT_VAR(&name); @@ -45866,11 +44353,11 @@ static PHP_METHOD(Phalcon_Cli_Router_Route, __construct) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &pattern_param, &paths); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(&pattern, pattern_param); } else { ZEPHIR_INIT_VAR(&pattern); @@ -45939,11 +44426,11 @@ static PHP_METHOD(Phalcon_Cli_Router_Route, compilePattern) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &pattern_param); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(&pattern, pattern_param); } else { ZEPHIR_INIT_VAR(&pattern); @@ -46065,11 +44552,11 @@ static PHP_METHOD(Phalcon_Cli_Router_Route, extractNamedParams) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &pattern_param); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(&pattern, pattern_param); } else { ZEPHIR_INIT_VAR(&pattern); @@ -46303,11 +44790,11 @@ static PHP_METHOD(Phalcon_Cli_Router_Route, reConfigure) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &pattern_param, &paths); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(&pattern, pattern_param); } else { ZEPHIR_INIT_VAR(&pattern); @@ -46442,11 +44929,11 @@ static PHP_METHOD(Phalcon_Cli_Router_Route, setName) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(&name, name_param); } else { ZEPHIR_INIT_VAR(&name); @@ -46568,11 +45055,11 @@ static PHP_METHOD(Phalcon_Cli_Router_Route, convert) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &name_param, &converter); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(&name, name_param); } else { ZEPHIR_INIT_VAR(&name); @@ -46621,11 +45108,11 @@ static PHP_METHOD(Phalcon_Cli_Router_Route, delimiter) { ZEPHIR_INIT_VAR(&delimiter); ZVAL_STRING(&delimiter, ""); } else { - if (unlikely(Z_TYPE_P(delimiter_param) != IS_STRING && Z_TYPE_P(delimiter_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(delimiter_param) != IS_STRING && Z_TYPE_P(delimiter_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'delimiter' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(delimiter_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(delimiter_param) == IS_STRING)) { zephir_get_strval(&delimiter, delimiter_param); } else { ZEPHIR_INIT_VAR(&delimiter); @@ -46765,11 +45252,11 @@ static PHP_METHOD(Phalcon_Config_Adapter_Ini, __construct) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &filePath_param, &mode); - if (unlikely(Z_TYPE_P(filePath_param) != IS_STRING && Z_TYPE_P(filePath_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(filePath_param) != IS_STRING && Z_TYPE_P(filePath_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'filePath' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(filePath_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(filePath_param) == IS_STRING)) { zephir_get_strval(&filePath, filePath_param); } else { ZEPHIR_INIT_VAR(&filePath); @@ -46787,7 +45274,7 @@ static PHP_METHOD(Phalcon_Config_Adapter_Ini, __construct) { ZEPHIR_INIT_NVAR(mode); ZVAL_LONG(mode, 1); } - ZEPHIR_CALL_FUNCTION(&iniConfig, "parse_ini_file", NULL, 133, &filePath, &__$true, mode); + ZEPHIR_CALL_FUNCTION(&iniConfig, "parse_ini_file", NULL, 121, &filePath, &__$true, mode); zephir_check_call_status(); if (ZEPHIR_IS_FALSE_IDENTICAL(&iniConfig)) { ZEPHIR_INIT_VAR(&_0$$4); @@ -46796,7 +45283,7 @@ static PHP_METHOD(Phalcon_Config_Adapter_Ini, __construct) { zephir_basename(&_1$$4, &filePath TSRMLS_CC); ZEPHIR_INIT_VAR(&_2$$4); ZEPHIR_CONCAT_SVS(&_2$$4, "Configuration file ", &_1$$4, " can't be loaded"); - ZEPHIR_CALL_METHOD(NULL, &_0$$4, "__construct", NULL, 9, &_2$$4); + ZEPHIR_CALL_METHOD(NULL, &_0$$4, "__construct", NULL, 4, &_2$$4); zephir_check_call_status(); zephir_throw_exception_debug(&_0$$4, "phalcon/config/adapter/ini.zep", 85 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -46852,7 +45339,7 @@ static PHP_METHOD(Phalcon_Config_Adapter_Ini, __construct) { } ZEND_HASH_FOREACH_END(); ZEPHIR_INIT_NVAR(&directives); ZEPHIR_INIT_NVAR(§ion); - ZEPHIR_CALL_PARENT(NULL, phalcon_config_adapter_ini_ce, this_ptr, "__construct", &_16, 19, &config); + ZEPHIR_CALL_PARENT(NULL, phalcon_config_adapter_ini_ce, this_ptr, "__construct", &_16, 0, &config); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -46878,11 +45365,11 @@ static PHP_METHOD(Phalcon_Config_Adapter_Ini, _parseIniString) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &path_param, &value); - if (unlikely(Z_TYPE_P(path_param) != IS_STRING && Z_TYPE_P(path_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(path_param) != IS_STRING && Z_TYPE_P(path_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'path' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(path_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(path_param) == IS_STRING)) { zephir_get_strval(&path, path_param); } else { ZEPHIR_INIT_VAR(&path); @@ -46911,7 +45398,7 @@ static PHP_METHOD(Phalcon_Config_Adapter_Ini, _parseIniString) { zephir_substr(&_4, &path, zephir_get_intval(&_3), 0, ZEPHIR_SUBSTR_NO_LENGTH); zephir_get_strval(&path, &_4); zephir_create_array(return_value, 1, 0 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_0, this_ptr, "_parseinistring", NULL, 134, &path, value); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "_parseinistring", NULL, 122, &path, value); zephir_check_call_status(); zephir_array_update_zval(return_value, &key, &_0, PH_COPY); RETURN_MM(); @@ -46956,7 +45443,7 @@ static PHP_METHOD(Phalcon_Config_Adapter_Ini, _cast) { } ZEPHIR_INIT_NVAR(&val); ZVAL_COPY(&val, _0$$3); - ZEPHIR_CALL_METHOD(&_3$$4, this_ptr, "_cast", &_4, 135, &val); + ZEPHIR_CALL_METHOD(&_3$$4, this_ptr, "_cast", &_4, 123, &val); zephir_check_call_status(); zephir_array_update_zval(ini, &key, &_3$$4, PH_COPY | PH_SEPARATE); } ZEND_HASH_FOREACH_END(); @@ -47045,11 +45532,11 @@ static PHP_METHOD(Phalcon_Config_Adapter_Json, __construct) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &filePath_param); - if (unlikely(Z_TYPE_P(filePath_param) != IS_STRING && Z_TYPE_P(filePath_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(filePath_param) != IS_STRING && Z_TYPE_P(filePath_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'filePath' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(filePath_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(filePath_param) == IS_STRING)) { zephir_get_strval(&filePath, filePath_param); } else { ZEPHIR_INIT_VAR(&filePath); @@ -47061,7 +45548,7 @@ static PHP_METHOD(Phalcon_Config_Adapter_Json, __construct) { ZEPHIR_INIT_VAR(&_2); zephir_file_get_contents(&_2, &filePath TSRMLS_CC); zephir_json_decode(&_1, &_2, zephir_get_intval(&__$true) ); - ZEPHIR_CALL_PARENT(NULL, phalcon_config_adapter_json_ce, this_ptr, "__construct", &_0, 19, &_1); + ZEPHIR_CALL_PARENT(NULL, phalcon_config_adapter_json_ce, this_ptr, "__construct", &_0, 0, &_1); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -47099,11 +45586,11 @@ static PHP_METHOD(Phalcon_Config_Adapter_Php, __construct) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &filePath_param); - if (unlikely(Z_TYPE_P(filePath_param) != IS_STRING && Z_TYPE_P(filePath_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(filePath_param) != IS_STRING && Z_TYPE_P(filePath_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'filePath' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(filePath_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(filePath_param) == IS_STRING)) { zephir_get_strval(&filePath, filePath_param); } else { ZEPHIR_INIT_VAR(&filePath); @@ -47115,7 +45602,7 @@ static PHP_METHOD(Phalcon_Config_Adapter_Php, __construct) { if (zephir_require_zval_ret(&_1, &filePath TSRMLS_CC) == FAILURE) { RETURN_MM_NULL(); } - ZEPHIR_CALL_PARENT(NULL, phalcon_config_adapter_php_ce, this_ptr, "__construct", &_0, 19, &_1); + ZEPHIR_CALL_PARENT(NULL, phalcon_config_adapter_php_ce, this_ptr, "__construct", &_0, 0, &_1); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -47162,11 +45649,11 @@ static PHP_METHOD(Phalcon_Config_Adapter_Yaml, __construct) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &filePath_param, &callbacks_param); - if (unlikely(Z_TYPE_P(filePath_param) != IS_STRING && Z_TYPE_P(filePath_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(filePath_param) != IS_STRING && Z_TYPE_P(filePath_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'filePath' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(filePath_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(filePath_param) == IS_STRING)) { zephir_get_strval(&filePath, filePath_param); } else { ZEPHIR_INIT_VAR(&filePath); @@ -47183,7 +45670,7 @@ static PHP_METHOD(Phalcon_Config_Adapter_Yaml, __construct) { ndocs = 0; ZEPHIR_INIT_VAR(&_0); ZVAL_STRING(&_0, "yaml"); - ZEPHIR_CALL_FUNCTION(&_1, "extension_loaded", NULL, 136, &_0); + ZEPHIR_CALL_FUNCTION(&_1, "extension_loaded", NULL, 124, &_0); zephir_check_call_status(); if (!(zephir_is_true(&_1))) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_config_exception_ce, "Yaml extension not loaded", "phalcon/config/adapter/yaml.zep", 76); @@ -47193,11 +45680,11 @@ static PHP_METHOD(Phalcon_Config_Adapter_Yaml, __construct) { ZVAL_LONG(&_2$$4, 0); ZVAL_LONG(&_3$$4, ndocs); ZEPHIR_MAKE_REF(&_3$$4); - ZEPHIR_CALL_FUNCTION(&yamlConfig, "yaml_parse_file", &_4, 137, &filePath, &_2$$4, &_3$$4, &callbacks); + ZEPHIR_CALL_FUNCTION(&yamlConfig, "yaml_parse_file", &_4, 125, &filePath, &_2$$4, &_3$$4, &callbacks); ZEPHIR_UNREF(&_3$$4); zephir_check_call_status(); } else { - ZEPHIR_CALL_FUNCTION(&yamlConfig, "yaml_parse_file", &_4, 137, &filePath); + ZEPHIR_CALL_FUNCTION(&yamlConfig, "yaml_parse_file", &_4, 125, &filePath); zephir_check_call_status(); } if (ZEPHIR_IS_FALSE_IDENTICAL(&yamlConfig)) { @@ -47207,13 +45694,13 @@ static PHP_METHOD(Phalcon_Config_Adapter_Yaml, __construct) { zephir_basename(&_6$$6, &filePath TSRMLS_CC); ZEPHIR_INIT_VAR(&_7$$6); ZEPHIR_CONCAT_SVS(&_7$$6, "Configuration file ", &_6$$6, " can't be loaded"); - ZEPHIR_CALL_METHOD(NULL, &_5$$6, "__construct", NULL, 9, &_7$$6); + ZEPHIR_CALL_METHOD(NULL, &_5$$6, "__construct", NULL, 4, &_7$$6); zephir_check_call_status(); zephir_throw_exception_debug(&_5$$6, "phalcon/config/adapter/yaml.zep", 86 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } - ZEPHIR_CALL_PARENT(NULL, phalcon_config_adapter_yaml_ce, this_ptr, "__construct", &_8, 19, &yamlConfig); + ZEPHIR_CALL_PARENT(NULL, phalcon_config_adapter_yaml_ce, this_ptr, "__construct", &_8, 0, &yamlConfig); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -47429,11 +45916,11 @@ static PHP_METHOD(Phalcon_Db_Adapter, fetchOne) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 3, &sqlQuery_param, &fetchMode, &bindParams, &bindTypes); - if (unlikely(Z_TYPE_P(sqlQuery_param) != IS_STRING && Z_TYPE_P(sqlQuery_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(sqlQuery_param) != IS_STRING && Z_TYPE_P(sqlQuery_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'sqlQuery' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(sqlQuery_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(sqlQuery_param) == IS_STRING)) { zephir_get_strval(&sqlQuery, sqlQuery_param); } else { ZEPHIR_INIT_VAR(&sqlQuery); @@ -47625,7 +46112,7 @@ static PHP_METHOD(Phalcon_Db_Adapter, insert) { object_init_ex(&_0$$3, phalcon_db_exception_ce); ZEPHIR_INIT_VAR(&_1$$3); ZEPHIR_CONCAT_SVS(&_1$$3, "Unable to insert into ", table, " without data"); - ZEPHIR_CALL_METHOD(NULL, &_0$$3, "__construct", NULL, 9, &_1$$3); + ZEPHIR_CALL_METHOD(NULL, &_0$$3, "__construct", NULL, 4, &_1$$3); zephir_check_call_status(); zephir_throw_exception_debug(&_0$$3, "phalcon/db/adapter.zep", 319 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -48091,11 +46578,11 @@ static PHP_METHOD(Phalcon_Db_Adapter, limit) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &sqlQuery_param, &number_param); - if (unlikely(Z_TYPE_P(sqlQuery_param) != IS_STRING && Z_TYPE_P(sqlQuery_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(sqlQuery_param) != IS_STRING && Z_TYPE_P(sqlQuery_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'sqlQuery' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(sqlQuery_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(sqlQuery_param) == IS_STRING)) { zephir_get_strval(&sqlQuery, sqlQuery_param); } else { ZEPHIR_INIT_VAR(&sqlQuery); @@ -48130,11 +46617,11 @@ static PHP_METHOD(Phalcon_Db_Adapter, tableExists) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &tableName_param, &schemaName_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(&tableName, tableName_param); } else { ZEPHIR_INIT_VAR(&tableName); @@ -48144,11 +46631,11 @@ static PHP_METHOD(Phalcon_Db_Adapter, tableExists) { ZEPHIR_INIT_VAR(&schemaName); ZVAL_STRING(&schemaName, ""); } else { - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(&schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(&schemaName); @@ -48186,11 +46673,11 @@ static PHP_METHOD(Phalcon_Db_Adapter, viewExists) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &viewName_param, &schemaName_param); - if (unlikely(Z_TYPE_P(viewName_param) != IS_STRING && Z_TYPE_P(viewName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(viewName_param) != IS_STRING && Z_TYPE_P(viewName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'viewName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(viewName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(viewName_param) == IS_STRING)) { zephir_get_strval(&viewName, viewName_param); } else { ZEPHIR_INIT_VAR(&viewName); @@ -48200,11 +46687,11 @@ static PHP_METHOD(Phalcon_Db_Adapter, viewExists) { ZEPHIR_INIT_VAR(&schemaName); ZVAL_STRING(&schemaName, ""); } else { - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(&schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(&schemaName); @@ -48237,11 +46724,11 @@ static PHP_METHOD(Phalcon_Db_Adapter, forUpdate) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &sqlQuery_param); - if (unlikely(Z_TYPE_P(sqlQuery_param) != IS_STRING && Z_TYPE_P(sqlQuery_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(sqlQuery_param) != IS_STRING && Z_TYPE_P(sqlQuery_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'sqlQuery' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(sqlQuery_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(sqlQuery_param) == IS_STRING)) { zephir_get_strval(&sqlQuery, sqlQuery_param); } else { ZEPHIR_INIT_VAR(&sqlQuery); @@ -48269,11 +46756,11 @@ static PHP_METHOD(Phalcon_Db_Adapter, sharedLock) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &sqlQuery_param); - if (unlikely(Z_TYPE_P(sqlQuery_param) != IS_STRING && Z_TYPE_P(sqlQuery_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(sqlQuery_param) != IS_STRING && Z_TYPE_P(sqlQuery_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'sqlQuery' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(sqlQuery_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(sqlQuery_param) == IS_STRING)) { zephir_get_strval(&sqlQuery, sqlQuery_param); } else { ZEPHIR_INIT_VAR(&sqlQuery); @@ -48306,21 +46793,21 @@ static PHP_METHOD(Phalcon_Db_Adapter, createTable) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &definition_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(&tableName, tableName_param); } else { ZEPHIR_INIT_VAR(&tableName); ZVAL_EMPTY_STRING(&tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(&schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(&schemaName); @@ -48364,11 +46851,11 @@ static PHP_METHOD(Phalcon_Db_Adapter, dropTable) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &tableName_param, &schemaName_param, &ifExists_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(&tableName, tableName_param); } else { ZEPHIR_INIT_VAR(&tableName); @@ -48378,11 +46865,11 @@ static PHP_METHOD(Phalcon_Db_Adapter, dropTable) { ZEPHIR_INIT_VAR(&schemaName); ZVAL_STRING(&schemaName, ""); } else { - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(&schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(&schemaName); @@ -48428,11 +46915,11 @@ static PHP_METHOD(Phalcon_Db_Adapter, createView) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 1, &viewName_param, &definition_param, &schemaName); - if (unlikely(Z_TYPE_P(viewName_param) != IS_STRING && Z_TYPE_P(viewName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(viewName_param) != IS_STRING && Z_TYPE_P(viewName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'viewName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(viewName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(viewName_param) == IS_STRING)) { zephir_get_strval(&viewName, viewName_param); } else { ZEPHIR_INIT_VAR(&viewName); @@ -48475,11 +46962,11 @@ static PHP_METHOD(Phalcon_Db_Adapter, dropView) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &viewName_param, &schemaName_param, &ifExists_param); - if (unlikely(Z_TYPE_P(viewName_param) != IS_STRING && Z_TYPE_P(viewName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(viewName_param) != IS_STRING && Z_TYPE_P(viewName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'viewName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(viewName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(viewName_param) == IS_STRING)) { zephir_get_strval(&viewName, viewName_param); } else { ZEPHIR_INIT_VAR(&viewName); @@ -48489,11 +46976,11 @@ static PHP_METHOD(Phalcon_Db_Adapter, dropView) { ZEPHIR_INIT_VAR(&schemaName); ZVAL_STRING(&schemaName, ""); } else { - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(&schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(&schemaName); @@ -48537,21 +47024,21 @@ static PHP_METHOD(Phalcon_Db_Adapter, addColumn) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &column); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(&tableName, tableName_param); } else { ZEPHIR_INIT_VAR(&tableName); ZVAL_EMPTY_STRING(&tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(&schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(&schemaName); @@ -48586,21 +47073,21 @@ static PHP_METHOD(Phalcon_Db_Adapter, modifyColumn) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 1, &tableName_param, &schemaName_param, &column, ¤tColumn); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(&tableName, tableName_param); } else { ZEPHIR_INIT_VAR(&tableName); ZVAL_EMPTY_STRING(&tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(&schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(&schemaName); @@ -48637,21 +47124,21 @@ static PHP_METHOD(Phalcon_Db_Adapter, dropColumn) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &columnName_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(&tableName, tableName_param); } else { ZEPHIR_INIT_VAR(&tableName); ZVAL_EMPTY_STRING(&tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(&schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(&schemaName); @@ -48685,21 +47172,21 @@ static PHP_METHOD(Phalcon_Db_Adapter, addIndex) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &index); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(&tableName, tableName_param); } else { ZEPHIR_INIT_VAR(&tableName); ZVAL_EMPTY_STRING(&tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(&schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(&schemaName); @@ -48732,21 +47219,21 @@ static PHP_METHOD(Phalcon_Db_Adapter, dropIndex) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &indexName); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(&tableName, tableName_param); } else { ZEPHIR_INIT_VAR(&tableName); ZVAL_EMPTY_STRING(&tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(&schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(&schemaName); @@ -48779,21 +47266,21 @@ static PHP_METHOD(Phalcon_Db_Adapter, addPrimaryKey) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &index); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(&tableName, tableName_param); } else { ZEPHIR_INIT_VAR(&tableName); ZVAL_EMPTY_STRING(&tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(&schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(&schemaName); @@ -48825,21 +47312,21 @@ static PHP_METHOD(Phalcon_Db_Adapter, dropPrimaryKey) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &tableName_param, &schemaName_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(&tableName, tableName_param); } else { ZEPHIR_INIT_VAR(&tableName); ZVAL_EMPTY_STRING(&tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(&schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(&schemaName); @@ -48872,21 +47359,21 @@ static PHP_METHOD(Phalcon_Db_Adapter, addForeignKey) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &reference); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(&tableName, tableName_param); } else { ZEPHIR_INIT_VAR(&tableName); ZVAL_EMPTY_STRING(&tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(&schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(&schemaName); @@ -48919,31 +47406,31 @@ static PHP_METHOD(Phalcon_Db_Adapter, dropForeignKey) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &referenceName_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(&tableName, tableName_param); } else { ZEPHIR_INIT_VAR(&tableName); ZVAL_EMPTY_STRING(&tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(&schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(&schemaName); ZVAL_EMPTY_STRING(&schemaName); } - if (unlikely(Z_TYPE_P(referenceName_param) != IS_STRING && Z_TYPE_P(referenceName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(referenceName_param) != IS_STRING && Z_TYPE_P(referenceName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'referenceName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(referenceName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(referenceName_param) == IS_STRING)) { zephir_get_strval(&referenceName, referenceName_param); } else { ZEPHIR_INIT_VAR(&referenceName); @@ -49004,11 +47491,11 @@ static PHP_METHOD(Phalcon_Db_Adapter, listTables) { ZEPHIR_INIT_VAR(&schemaName); ZVAL_STRING(&schemaName, ""); } else { - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(&schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(&schemaName); @@ -49061,11 +47548,11 @@ static PHP_METHOD(Phalcon_Db_Adapter, listViews) { ZEPHIR_INIT_VAR(&schemaName); ZVAL_STRING(&schemaName, ""); } else { - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(&schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(&schemaName); @@ -49125,11 +47612,11 @@ static PHP_METHOD(Phalcon_Db_Adapter, describeIndexes) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &table_param, &schema); - if (unlikely(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'table' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(table_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(table_param) == IS_STRING)) { zephir_get_strval(&table, table_param); } else { ZEPHIR_INIT_VAR(&table); @@ -49182,7 +47669,7 @@ static PHP_METHOD(Phalcon_Db_Adapter, describeIndexes) { ZVAL_COPY(&indexColumns, _6); ZEPHIR_INIT_NVAR(&_9$$6); object_init_ex(&_9$$6, phalcon_db_index_ce); - ZEPHIR_CALL_METHOD(NULL, &_9$$6, "__construct", &_10, 22, &name, &indexColumns); + ZEPHIR_CALL_METHOD(NULL, &_9$$6, "__construct", &_10, 17, &name, &indexColumns); zephir_check_call_status(); zephir_array_update_zval(&indexObjects, &name, &_9$$6, PH_COPY | PH_SEPARATE); } ZEND_HASH_FOREACH_END(); @@ -49233,11 +47720,11 @@ static PHP_METHOD(Phalcon_Db_Adapter, describeReferences) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &table_param, &schema_param); - if (unlikely(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'table' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(table_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(table_param) == IS_STRING)) { zephir_get_strval(&table, table_param); } else { ZEPHIR_INIT_VAR(&table); @@ -49247,11 +47734,11 @@ static PHP_METHOD(Phalcon_Db_Adapter, describeReferences) { ZEPHIR_INIT_VAR(&schema); ZVAL_STRING(&schema, ""); } else { - if (unlikely(Z_TYPE_P(schema_param) != IS_STRING && Z_TYPE_P(schema_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schema_param) != IS_STRING && Z_TYPE_P(schema_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schema' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schema_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schema_param) == IS_STRING)) { zephir_get_strval(&schema, schema_param); } else { ZEPHIR_INIT_VAR(&schema); @@ -49339,7 +47826,7 @@ static PHP_METHOD(Phalcon_Db_Adapter, describeReferences) { ZEPHIR_OBS_NVAR(&_17$$6); zephir_array_fetch_string(&_17$$6, &arrayReference, SL("referencedColumns"), PH_NOISY, "phalcon/db/adapter.zep", 985 TSRMLS_CC); zephir_array_update_string(&_16$$6, SL("referencedColumns"), &_17$$6, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(NULL, &_15$$6, "__construct", &_18, 23, &name, &_16$$6); + ZEPHIR_CALL_METHOD(NULL, &_15$$6, "__construct", &_18, 18, &name, &_16$$6); zephir_check_call_status(); zephir_array_update_zval(&referenceObjects, &name, &_15$$6, PH_COPY | PH_SEPARATE); } ZEND_HASH_FOREACH_END(); @@ -49367,11 +47854,11 @@ static PHP_METHOD(Phalcon_Db_Adapter, tableOptions) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &tableName_param, &schemaName_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(&tableName, tableName_param); } else { ZEPHIR_INIT_VAR(&tableName); @@ -49415,11 +47902,11 @@ static PHP_METHOD(Phalcon_Db_Adapter, createSavepoint) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(&name, name_param); } else { ZEPHIR_INIT_VAR(&name); @@ -49459,11 +47946,11 @@ static PHP_METHOD(Phalcon_Db_Adapter, releaseSavepoint) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(&name, name_param); } else { ZEPHIR_INIT_VAR(&name); @@ -49507,11 +47994,11 @@ static PHP_METHOD(Phalcon_Db_Adapter, rollbackSavepoint) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(&name, name_param); } else { ZEPHIR_INIT_VAR(&name); @@ -49611,7 +48098,7 @@ static PHP_METHOD(Phalcon_Db_Adapter, getDefaultIdValue) { object_init_ex(return_value, phalcon_db_rawvalue_ce); ZEPHIR_INIT_VAR(&_0); ZVAL_STRING(&_0, "null"); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 24, &_0); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 19, &_0); zephir_check_call_status(); RETURN_MM(); @@ -49630,7 +48117,7 @@ static PHP_METHOD(Phalcon_Db_Adapter, getDefaultValue) { object_init_ex(return_value, phalcon_db_rawvalue_ce); ZEPHIR_INIT_VAR(&_0); ZVAL_STRING(&_0, "DEFAULT"); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 24, &_0); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 19, &_0); zephir_check_call_status(); RETURN_MM(); @@ -50066,11 +48553,11 @@ static PHP_METHOD(Phalcon_Db_Column, __construct) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &name_param, &definition_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(&name, name_param); } else { ZEPHIR_INIT_VAR(&name); @@ -50337,7 +48824,7 @@ static PHP_METHOD(Phalcon_Db_Column, __set_state) { zephir_array_update_string(&definition, SL("bindType"), &bindType, PH_COPY | PH_SEPARATE); } object_init_ex(return_value, phalcon_db_column_ce); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 148, &columnName, &definition); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 136, &columnName, &definition); zephir_check_call_status(); RETURN_MM(); @@ -50485,11 +48972,11 @@ static PHP_METHOD(Phalcon_Db_Dialect, escapeSchema) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &str_param, &escapeChar_param); - if (unlikely(Z_TYPE_P(str_param) != IS_STRING && Z_TYPE_P(str_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(str_param) != IS_STRING && Z_TYPE_P(str_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'str' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(str_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(str_param) == IS_STRING)) { zephir_get_strval(&str, str_param); } else { ZEPHIR_INIT_VAR(&str); @@ -50549,11 +49036,11 @@ static PHP_METHOD(Phalcon_Db_Dialect, escape) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &str_param, &escapeChar_param); - if (unlikely(Z_TYPE_P(str_param) != IS_STRING && Z_TYPE_P(str_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(str_param) != IS_STRING && Z_TYPE_P(str_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'str' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(str_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(str_param) == IS_STRING)) { zephir_get_strval(&str, str_param); } else { ZEPHIR_INIT_VAR(&str); @@ -50653,11 +49140,11 @@ static PHP_METHOD(Phalcon_Db_Dialect, limit) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &sqlQuery_param, &number); - if (unlikely(Z_TYPE_P(sqlQuery_param) != IS_STRING && Z_TYPE_P(sqlQuery_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(sqlQuery_param) != IS_STRING && Z_TYPE_P(sqlQuery_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'sqlQuery' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(sqlQuery_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(sqlQuery_param) == IS_STRING)) { zephir_get_strval(&sqlQuery, sqlQuery_param); } else { ZEPHIR_INIT_VAR(&sqlQuery); @@ -50699,11 +49186,11 @@ static PHP_METHOD(Phalcon_Db_Dialect, forUpdate) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &sqlQuery_param); - if (unlikely(Z_TYPE_P(sqlQuery_param) != IS_STRING && Z_TYPE_P(sqlQuery_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(sqlQuery_param) != IS_STRING && Z_TYPE_P(sqlQuery_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'sqlQuery' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(sqlQuery_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(sqlQuery_param) == IS_STRING)) { zephir_get_strval(&sqlQuery, sqlQuery_param); } else { ZEPHIR_INIT_VAR(&sqlQuery); @@ -50727,11 +49214,11 @@ static PHP_METHOD(Phalcon_Db_Dialect, sharedLock) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &sqlQuery_param); - if (unlikely(Z_TYPE_P(sqlQuery_param) != IS_STRING && Z_TYPE_P(sqlQuery_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(sqlQuery_param) != IS_STRING && Z_TYPE_P(sqlQuery_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'sqlQuery' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(sqlQuery_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(sqlQuery_param) == IS_STRING)) { zephir_get_strval(&sqlQuery, sqlQuery_param); } else { ZEPHIR_INIT_VAR(&sqlQuery); @@ -50784,7 +49271,7 @@ static PHP_METHOD(Phalcon_Db_Dialect, getColumnList) { { ZEPHIR_INIT_NVAR(&column); ZVAL_COPY(&column, _0); - ZEPHIR_CALL_METHOD(&_1$$3, this_ptr, "getsqlcolumn", &_2, 40, &column, &escapeChar, bindCounts); + ZEPHIR_CALL_METHOD(&_1$$3, this_ptr, "getsqlcolumn", &_2, 34, &column, &escapeChar, bindCounts); zephir_check_call_status(); zephir_array_append(&columns, &_1$$3, PH_SEPARATE, "phalcon/db/dialect.zep", 179); } ZEND_HASH_FOREACH_END(); @@ -50947,17 +49434,17 @@ static PHP_METHOD(Phalcon_Db_Dialect, getSqlExpression) { } do { if (ZEPHIR_IS_STRING(&type, "scalar")) { - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "getsqlexpressionscalar", NULL, 41, &expression, &escapeChar, bindCounts); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "getsqlexpressionscalar", NULL, 35, &expression, &escapeChar, bindCounts); zephir_check_call_status(); RETURN_MM(); } if (ZEPHIR_IS_STRING(&type, "object")) { - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "getsqlexpressionobject", NULL, 42, &expression, &escapeChar, bindCounts); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "getsqlexpressionobject", NULL, 36, &expression, &escapeChar, bindCounts); zephir_check_call_status(); RETURN_MM(); } if (ZEPHIR_IS_STRING(&type, "qualified")) { - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "getsqlexpressionqualified", NULL, 43, &expression, &escapeChar); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "getsqlexpressionqualified", NULL, 37, &expression, &escapeChar); zephir_check_call_status(); RETURN_MM(); } @@ -51006,34 +49493,34 @@ static PHP_METHOD(Phalcon_Db_Dialect, getSqlExpression) { RETURN_CTOR(_6$$8); } if (ZEPHIR_IS_STRING(&type, "binary-op")) { - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "getsqlexpressionbinaryoperations", NULL, 44, &expression, &escapeChar, bindCounts); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "getsqlexpressionbinaryoperations", NULL, 38, &expression, &escapeChar, bindCounts); zephir_check_call_status(); RETURN_MM(); } if (ZEPHIR_IS_STRING(&type, "unary-op")) { - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "getsqlexpressionunaryoperations", NULL, 45, &expression, &escapeChar, bindCounts); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "getsqlexpressionunaryoperations", NULL, 39, &expression, &escapeChar, bindCounts); zephir_check_call_status(); RETURN_MM(); } if (ZEPHIR_IS_STRING(&type, "parentheses")) { zephir_array_fetch_string(&_8$$14, &expression, SL("left"), PH_NOISY | PH_READONLY, "phalcon/db/dialect.zep", 326 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_7$$14, this_ptr, "getsqlexpression", NULL, 46, &_8$$14, &escapeChar, bindCounts); + ZEPHIR_CALL_METHOD(&_7$$14, this_ptr, "getsqlexpression", NULL, 40, &_8$$14, &escapeChar, bindCounts); zephir_check_call_status(); ZEPHIR_CONCAT_SVS(return_value, "(", &_7$$14, ")"); RETURN_MM(); } if (ZEPHIR_IS_STRING(&type, "functionCall")) { - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "getsqlexpressionfunctioncall", NULL, 47, &expression, &escapeChar, bindCounts); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "getsqlexpressionfunctioncall", NULL, 41, &expression, &escapeChar, bindCounts); zephir_check_call_status(); RETURN_MM(); } if (ZEPHIR_IS_STRING(&type, "list")) { - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "getsqlexpressionlist", NULL, 48, &expression, &escapeChar, bindCounts); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "getsqlexpressionlist", NULL, 42, &expression, &escapeChar, bindCounts); zephir_check_call_status(); RETURN_MM(); } if (ZEPHIR_IS_STRING(&type, "all")) { - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "getsqlexpressionall", NULL, 49, &expression, &escapeChar); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "getsqlexpressionall", NULL, 43, &expression, &escapeChar); zephir_check_call_status(); RETURN_MM(); } @@ -51045,17 +49532,17 @@ static PHP_METHOD(Phalcon_Db_Dialect, getSqlExpression) { RETURN_MM(); } if (ZEPHIR_IS_STRING(&type, "cast")) { - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "getsqlexpressioncastvalue", NULL, 50, &expression, &escapeChar, bindCounts); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "getsqlexpressioncastvalue", NULL, 44, &expression, &escapeChar, bindCounts); zephir_check_call_status(); RETURN_MM(); } if (ZEPHIR_IS_STRING(&type, "convert")) { - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "getsqlexpressionconvertvalue", NULL, 51, &expression, &escapeChar, bindCounts); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "getsqlexpressionconvertvalue", NULL, 45, &expression, &escapeChar, bindCounts); zephir_check_call_status(); RETURN_MM(); } if (ZEPHIR_IS_STRING(&type, "case")) { - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "getsqlexpressioncase", NULL, 52, &expression, &escapeChar, bindCounts); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "getsqlexpressioncase", NULL, 46, &expression, &escapeChar, bindCounts); zephir_check_call_status(); RETURN_MM(); } @@ -51065,7 +49552,7 @@ static PHP_METHOD(Phalcon_Db_Dialect, getSqlExpression) { object_init_ex(&_11, phalcon_db_exception_ce); ZEPHIR_INIT_VAR(&_12); ZEPHIR_CONCAT_SVS(&_12, "Invalid SQL expression type '", &type, "'"); - ZEPHIR_CALL_METHOD(NULL, &_11, "__construct", NULL, 9, &_12); + ZEPHIR_CALL_METHOD(NULL, &_11, "__construct", NULL, 4, &_12); zephir_check_call_status(); zephir_throw_exception_debug(&_11, "phalcon/db/dialect.zep", 371 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -51108,7 +49595,7 @@ static PHP_METHOD(Phalcon_Db_Dialect, getSqlTable) { zephir_check_call_status(); RETURN_MM(); } - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "escape", NULL, 53, table, &escapeChar); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "escape", NULL, 47, table, &escapeChar); zephir_check_call_status(); RETURN_MM(); @@ -51185,12 +49672,12 @@ static PHP_METHOD(Phalcon_Db_Dialect, select) { zephir_array_isset_string_fetch(&bindCounts, &definition, SL("bindCounts"), 0); ZEPHIR_OBS_VAR(&escapeChar); zephir_read_property(&escapeChar, this_ptr, SL("_escapeChar"), PH_NOISY_CC); - ZEPHIR_CALL_METHOD(&_0, this_ptr, "getcolumnlist", NULL, 54, &columns, &escapeChar, &bindCounts); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "getcolumnlist", NULL, 48, &columns, &escapeChar, &bindCounts); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_1); ZEPHIR_CONCAT_SV(&_1, " ", &_0); zephir_concat_self(&sql, &_1 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_2, this_ptr, "getsqlexpressionfrom", NULL, 55, &tables, &escapeChar); + ZEPHIR_CALL_METHOD(&_2, this_ptr, "getsqlexpressionfrom", NULL, 49, &tables, &escapeChar); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_3); ZEPHIR_CONCAT_SV(&_3, " ", &_2); @@ -51202,7 +49689,7 @@ static PHP_METHOD(Phalcon_Db_Dialect, select) { } if (_4) { zephir_array_fetch_string(&_6$$9, &definition, SL("joins"), PH_NOISY | PH_READONLY, "phalcon/db/dialect.zep", 450 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_5$$9, this_ptr, "getsqlexpressionjoins", NULL, 56, &_6$$9, &escapeChar, &bindCounts); + ZEPHIR_CALL_METHOD(&_5$$9, this_ptr, "getsqlexpressionjoins", NULL, 50, &_6$$9, &escapeChar, &bindCounts); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_7$$9); ZEPHIR_CONCAT_SV(&_7$$9, " ", &_5$$9); @@ -51214,7 +49701,7 @@ static PHP_METHOD(Phalcon_Db_Dialect, select) { _8 = zephir_is_true(&where); } if (_8) { - ZEPHIR_CALL_METHOD(&_9$$10, this_ptr, "getsqlexpressionwhere", NULL, 57, &where, &escapeChar, &bindCounts); + ZEPHIR_CALL_METHOD(&_9$$10, this_ptr, "getsqlexpressionwhere", NULL, 51, &where, &escapeChar, &bindCounts); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_10$$10); ZEPHIR_CONCAT_SV(&_10$$10, " ", &_9$$10); @@ -51226,7 +49713,7 @@ static PHP_METHOD(Phalcon_Db_Dialect, select) { _11 = zephir_is_true(&groupBy); } if (_11) { - ZEPHIR_CALL_METHOD(&_12$$11, this_ptr, "getsqlexpressiongroupby", NULL, 58, &groupBy, &escapeChar); + ZEPHIR_CALL_METHOD(&_12$$11, this_ptr, "getsqlexpressiongroupby", NULL, 52, &groupBy, &escapeChar); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_13$$11); ZEPHIR_CONCAT_SV(&_13$$11, " ", &_12$$11); @@ -51238,7 +49725,7 @@ static PHP_METHOD(Phalcon_Db_Dialect, select) { _14 = zephir_is_true(&having); } if (_14) { - ZEPHIR_CALL_METHOD(&_15$$12, this_ptr, "getsqlexpressionhaving", NULL, 59, &having, &escapeChar, &bindCounts); + ZEPHIR_CALL_METHOD(&_15$$12, this_ptr, "getsqlexpressionhaving", NULL, 53, &having, &escapeChar, &bindCounts); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_16$$12); ZEPHIR_CONCAT_SV(&_16$$12, " ", &_15$$12); @@ -51250,7 +49737,7 @@ static PHP_METHOD(Phalcon_Db_Dialect, select) { _17 = zephir_is_true(&orderBy); } if (_17) { - ZEPHIR_CALL_METHOD(&_18$$13, this_ptr, "getsqlexpressionorderby", NULL, 60, &orderBy, &escapeChar, &bindCounts); + ZEPHIR_CALL_METHOD(&_18$$13, this_ptr, "getsqlexpressionorderby", NULL, 54, &orderBy, &escapeChar, &bindCounts); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_19$$13); ZEPHIR_CONCAT_SV(&_19$$13, " ", &_18$$13); @@ -51266,7 +49753,7 @@ static PHP_METHOD(Phalcon_Db_Dialect, select) { zephir_create_array(&_21$$14, 2, 0 TSRMLS_CC); zephir_array_update_string(&_21$$14, SL("sql"), &sql, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_21$$14, SL("value"), &limit, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(&sql, this_ptr, "getsqlexpressionlimit", NULL, 61, &_21$$14, &escapeChar, &bindCounts); + ZEPHIR_CALL_METHOD(&sql, this_ptr, "getsqlexpressionlimit", NULL, 55, &_21$$14, &escapeChar, &bindCounts); zephir_check_call_status(); } _22 = zephir_array_isset_string_fetch(&forUpdate, &definition, SL("forUpdate"), 1); @@ -51314,11 +49801,11 @@ static PHP_METHOD(Phalcon_Db_Dialect, createSavepoint) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(&name, name_param); } else { ZEPHIR_INIT_VAR(&name); @@ -51342,11 +49829,11 @@ static PHP_METHOD(Phalcon_Db_Dialect, releaseSavepoint) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(&name, name_param); } else { ZEPHIR_INIT_VAR(&name); @@ -51370,11 +49857,11 @@ static PHP_METHOD(Phalcon_Db_Dialect, rollbackSavepoint) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(&name, name_param); } else { ZEPHIR_INIT_VAR(&name); @@ -51420,7 +49907,7 @@ static PHP_METHOD(Phalcon_Db_Dialect, getSqlExpressionScalar) { if (zephir_array_isset_string(&expression, SL("column"))) { zephir_array_fetch_string(&_0$$3, &expression, SL("column"), PH_NOISY | PH_READONLY, "phalcon/db/dialect.zep", 546 TSRMLS_CC); - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "getsqlcolumn", NULL, 40, &_0$$3); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "getsqlcolumn", NULL, 34, &_0$$3); zephir_check_call_status(); RETURN_MM(); } @@ -51571,7 +50058,7 @@ static PHP_METHOD(Phalcon_Db_Dialect, getSqlExpressionBinaryOperations) { ZEPHIR_CALL_METHOD(&left, this_ptr, "getsqlexpression", &_1, 0, &_0, &escapeChar, bindCounts); zephir_check_call_status(); zephir_array_fetch_string(&_2, &expression, SL("right"), PH_NOISY | PH_READONLY, "phalcon/db/dialect.zep", 604 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&right, this_ptr, "getsqlexpression", &_1, 46, &_2, &escapeChar, bindCounts); + ZEPHIR_CALL_METHOD(&right, this_ptr, "getsqlexpression", &_1, 40, &_2, &escapeChar, bindCounts); zephir_check_call_status(); zephir_array_fetch_string(&_3, &expression, SL("op"), PH_NOISY | PH_READONLY, "phalcon/db/dialect.zep", 606 TSRMLS_CC); ZEPHIR_CONCAT_VSVSV(return_value, &left, " ", &_3, " ", &right); @@ -51626,7 +50113,7 @@ static PHP_METHOD(Phalcon_Db_Dialect, getSqlExpressionUnaryOperations) { ZEPHIR_OBS_VAR(&right); if (zephir_array_isset_string_fetch(&right, &expression, SL("right"), 0)) { zephir_array_fetch_string(&_3$$4, &expression, SL("op"), PH_NOISY | PH_READONLY, "phalcon/db/dialect.zep", 627 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_4$$4, this_ptr, "getsqlexpression", &_1, 46, &right, &escapeChar, bindCounts); + ZEPHIR_CALL_METHOD(&_4$$4, this_ptr, "getsqlexpression", &_1, 40, &right, &escapeChar, bindCounts); zephir_check_call_status(); ZEPHIR_CONCAT_VSV(return_value, &_3$$4, " ", &_4$$4); RETURN_MM(); @@ -51866,7 +50353,7 @@ static PHP_METHOD(Phalcon_Db_Dialect, getSqlExpressionCastValue) { ZEPHIR_CALL_METHOD(&left, this_ptr, "getsqlexpression", &_1, 0, &_0, &escapeChar, bindCounts); zephir_check_call_status(); zephir_array_fetch_string(&_2, &expression, SL("right"), PH_NOISY | PH_READONLY, "phalcon/db/dialect.zep", 714 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&right, this_ptr, "getsqlexpression", &_1, 46, &_2, &escapeChar, bindCounts); + ZEPHIR_CALL_METHOD(&right, this_ptr, "getsqlexpression", &_1, 40, &_2, &escapeChar, bindCounts); zephir_check_call_status(); ZEPHIR_CONCAT_SVSVS(return_value, "CAST(", &left, " AS ", &right, ")"); RETURN_MM(); @@ -51911,7 +50398,7 @@ static PHP_METHOD(Phalcon_Db_Dialect, getSqlExpressionConvertValue) { ZEPHIR_CALL_METHOD(&left, this_ptr, "getsqlexpression", &_1, 0, &_0, &escapeChar, bindCounts); zephir_check_call_status(); zephir_array_fetch_string(&_2, &expression, SL("right"), PH_NOISY | PH_READONLY, "phalcon/db/dialect.zep", 727 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&right, this_ptr, "getsqlexpression", &_1, 46, &_2, &escapeChar, bindCounts); + ZEPHIR_CALL_METHOD(&right, this_ptr, "getsqlexpression", &_1, 40, &_2, &escapeChar, bindCounts); zephir_check_call_status(); ZEPHIR_CONCAT_SVSVS(return_value, "CONVERT(", &left, " USING ", &right, ")"); RETURN_MM(); @@ -51976,17 +50463,17 @@ static PHP_METHOD(Phalcon_Db_Dialect, getSqlExpressionCase) { zephir_array_fetch_string(&_5$$3, &whenClause, SL("type"), PH_NOISY | PH_READONLY, "phalcon/db/dialect.zep", 742 TSRMLS_CC); if (ZEPHIR_IS_STRING(&_5$$3, "when")) { zephir_array_fetch_string(&_7$$4, &whenClause, SL("expr"), PH_NOISY | PH_READONLY, "phalcon/db/dialect.zep", 744 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_6$$4, this_ptr, "getsqlexpression", &_2, 46, &_7$$4, &escapeChar, bindCounts); + ZEPHIR_CALL_METHOD(&_6$$4, this_ptr, "getsqlexpression", &_2, 40, &_7$$4, &escapeChar, bindCounts); zephir_check_call_status(); zephir_array_fetch_string(&_9$$4, &whenClause, SL("then"), PH_NOISY | PH_READONLY, "phalcon/db/dialect.zep", 746 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_8$$4, this_ptr, "getsqlexpression", &_2, 46, &_9$$4, &escapeChar, bindCounts); + ZEPHIR_CALL_METHOD(&_8$$4, this_ptr, "getsqlexpression", &_2, 40, &_9$$4, &escapeChar, bindCounts); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_10$$4); ZEPHIR_CONCAT_SVSV(&_10$$4, " WHEN ", &_6$$4, " THEN ", &_8$$4); zephir_concat_self(&sql, &_10$$4 TSRMLS_CC); } else { zephir_array_fetch_string(&_12$$5, &whenClause, SL("expr"), PH_NOISY | PH_READONLY, "phalcon/db/dialect.zep", 748 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_11$$5, this_ptr, "getsqlexpression", &_2, 46, &_12$$5, &escapeChar, bindCounts); + ZEPHIR_CALL_METHOD(&_11$$5, this_ptr, "getsqlexpression", &_2, 40, &_12$$5, &escapeChar, bindCounts); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_13$$5); ZEPHIR_CONCAT_SV(&_13$$5, " ELSE ", &_11$$5); @@ -52033,7 +50520,7 @@ static PHP_METHOD(Phalcon_Db_Dialect, getSqlExpressionFrom) { { ZEPHIR_INIT_NVAR(&table); ZVAL_COPY(&table, _0$$3); - ZEPHIR_CALL_METHOD(&_1$$4, this_ptr, "getsqltable", &_2, 62, &table, &escapeChar); + ZEPHIR_CALL_METHOD(&_1$$4, this_ptr, "getsqltable", &_2, 56, &table, &escapeChar); zephir_check_call_status(); zephir_array_append(&tables, &_1$$4, PH_SEPARATE, "phalcon/db/dialect.zep", 767); } ZEND_HASH_FOREACH_END(); @@ -52115,7 +50602,7 @@ static PHP_METHOD(Phalcon_Db_Dialect, getSqlExpressionJoins) { { ZEPHIR_INIT_NVAR(&condition); ZVAL_COPY(&condition, _3$$6); - ZEPHIR_CALL_METHOD(&_4$$7, this_ptr, "getsqlexpression", &_2, 46, &condition, &escapeChar, bindCounts); + ZEPHIR_CALL_METHOD(&_4$$7, this_ptr, "getsqlexpression", &_2, 40, &condition, &escapeChar, bindCounts); zephir_check_call_status(); zephir_array_append(&joinCondition, &_4$$7, PH_SEPARATE, "phalcon/db/dialect.zep", 800); } ZEND_HASH_FOREACH_END(); @@ -52137,7 +50624,7 @@ static PHP_METHOD(Phalcon_Db_Dialect, getSqlExpressionJoins) { zephir_concat_self_str(&joinType, SL(" ") TSRMLS_CC); } zephir_array_fetch_string(&_7$$3, &join, SL("source"), PH_NOISY | PH_READONLY, "phalcon/db/dialect.zep", 813 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&joinTable, this_ptr, "getsqltable", &_8, 62, &_7$$3, &escapeChar); + ZEPHIR_CALL_METHOD(&joinTable, this_ptr, "getsqltable", &_8, 56, &_7$$3, &escapeChar); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_9$$3); ZEPHIR_CONCAT_SVSVSV(&_9$$3, " ", &joinType, "JOIN ", &joinTable, " ON ", &joinCondition); @@ -52227,7 +50714,7 @@ static PHP_METHOD(Phalcon_Db_Dialect, getSqlExpressionGroupBy) { { ZEPHIR_INIT_NVAR(&field); ZVAL_COPY(&field, _0$$3); - if (unlikely(Z_TYPE_P(&field) != IS_ARRAY)) { + if (UNEXPECTED(Z_TYPE_P(&field) != IS_ARRAY)) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Invalid SQL-GROUP-BY expression", "phalcon/db/dialect.zep", 850); return; } @@ -52330,7 +50817,7 @@ static PHP_METHOD(Phalcon_Db_Dialect, getSqlExpressionOrderBy) { { ZEPHIR_INIT_NVAR(&field); ZVAL_COPY(&field, _0$$3); - if (unlikely(Z_TYPE_P(&field) != IS_ARRAY)) { + if (UNEXPECTED(Z_TYPE_P(&field) != IS_ARRAY)) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Invalid SQL-ORDER-BY expression", "phalcon/db/dialect.zep", 887); return; } @@ -52426,7 +50913,7 @@ static PHP_METHOD(Phalcon_Db_Dialect, getSqlExpressionLimit) { _3$$4 = Z_TYPE_P(&offset) == IS_ARRAY; } if (_3$$4) { - ZEPHIR_CALL_METHOD(&_4$$7, this_ptr, "getsqlexpression", &_2, 46, &offset, &escapeChar, bindCounts); + ZEPHIR_CALL_METHOD(&_4$$7, this_ptr, "getsqlexpression", &_2, 40, &offset, &escapeChar, bindCounts); zephir_check_call_status(); ZEPHIR_CPY_WRT(&offset, &_4$$7); } @@ -52458,11 +50945,11 @@ static PHP_METHOD(Phalcon_Db_Dialect, prepareColumnAlias) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &qualified_param, &alias_param, &escapeChar_param); - if (unlikely(Z_TYPE_P(qualified_param) != IS_STRING && Z_TYPE_P(qualified_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(qualified_param) != IS_STRING && Z_TYPE_P(qualified_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'qualified' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(qualified_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(qualified_param) == IS_STRING)) { zephir_get_strval(&qualified, qualified_param); } else { ZEPHIR_INIT_VAR(&qualified); @@ -52483,7 +50970,7 @@ static PHP_METHOD(Phalcon_Db_Dialect, prepareColumnAlias) { if (!ZEPHIR_IS_STRING(&alias, "")) { - ZEPHIR_CALL_METHOD(&_0$$3, this_ptr, "escape", NULL, 53, &alias, &escapeChar); + ZEPHIR_CALL_METHOD(&_0$$3, this_ptr, "escape", NULL, 47, &alias, &escapeChar); zephir_check_call_status(); ZEPHIR_CONCAT_VSV(return_value, &qualified, " AS ", &_0$$3); RETURN_MM(); @@ -52513,11 +51000,11 @@ static PHP_METHOD(Phalcon_Db_Dialect, prepareTable) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 3, &table_param, &schema_param, &alias_param, &escapeChar_param); - if (unlikely(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'table' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(table_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(table_param) == IS_STRING)) { zephir_get_strval(&table, table_param); } else { ZEPHIR_INIT_VAR(&table); @@ -52543,18 +51030,18 @@ static PHP_METHOD(Phalcon_Db_Dialect, prepareTable) { } - ZEPHIR_CALL_METHOD(&_0, this_ptr, "escape", &_1, 53, &table, &escapeChar); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "escape", &_1, 47, &table, &escapeChar); zephir_check_call_status(); zephir_get_strval(&table, &_0); if (!ZEPHIR_IS_STRING(&schema, "")) { - ZEPHIR_CALL_METHOD(&_2$$3, this_ptr, "escapeschema", NULL, 63, &schema, &escapeChar); + ZEPHIR_CALL_METHOD(&_2$$3, this_ptr, "escapeschema", NULL, 57, &schema, &escapeChar); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_3$$3); ZEPHIR_CONCAT_VSV(&_3$$3, &_2$$3, ".", &table); zephir_get_strval(&table, &_3$$3); } if (!ZEPHIR_IS_STRING(&alias, "")) { - ZEPHIR_CALL_METHOD(&_4$$4, this_ptr, "escape", &_1, 53, &alias, &escapeChar); + ZEPHIR_CALL_METHOD(&_4$$4, this_ptr, "escape", &_1, 47, &alias, &escapeChar); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_5$$4); ZEPHIR_CONCAT_VSV(&_5$$4, &table, " AS ", &_4$$4); @@ -52580,11 +51067,11 @@ static PHP_METHOD(Phalcon_Db_Dialect, prepareQualified) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &column_param, &domain_param, &escapeChar_param); - if (unlikely(Z_TYPE_P(column_param) != IS_STRING && Z_TYPE_P(column_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(column_param) != IS_STRING && Z_TYPE_P(column_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'column' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(column_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(column_param) == IS_STRING)) { zephir_get_strval(&column, column_param); } else { ZEPHIR_INIT_VAR(&column); @@ -52607,11 +51094,11 @@ static PHP_METHOD(Phalcon_Db_Dialect, prepareQualified) { if (!ZEPHIR_IS_STRING(&domain, "")) { ZEPHIR_INIT_VAR(&_0$$3); ZEPHIR_CONCAT_VSV(&_0$$3, &domain, ".", &column); - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "escape", &_1, 53, &_0$$3, &escapeChar); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "escape", &_1, 47, &_0$$3, &escapeChar); zephir_check_call_status(); RETURN_MM(); } - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "escape", &_1, 53, &column, &escapeChar); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "escape", &_1, 47, &column, &escapeChar); zephir_check_call_status(); RETURN_MM(); @@ -52783,11 +51270,11 @@ static PHP_METHOD(Phalcon_Db_Index, __construct) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 1, &name_param, &columns_param, &type); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(&name, name_param); } else { ZEPHIR_INIT_VAR(&name); @@ -52842,7 +51329,7 @@ static PHP_METHOD(Phalcon_Db_Index, __set_state) { ZVAL_STRING(&type, ""); } object_init_ex(return_value, phalcon_db_index_ce); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 22, &indexName, &columns, &type); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 17, &indexName, &columns, &type); zephir_check_call_status(); RETURN_MM(); @@ -52931,19 +51418,19 @@ static PHP_METHOD(Phalcon_Db_Profiler, startProfile) { ZEPHIR_CALL_METHOD(NULL, &activeProfile, "__construct", NULL, 0); zephir_check_call_status(); } - ZEPHIR_CALL_METHOD(NULL, &activeProfile, "setsqlstatement", NULL, 151, sqlStatement); + ZEPHIR_CALL_METHOD(NULL, &activeProfile, "setsqlstatement", NULL, 138, sqlStatement); zephir_check_call_status(); if (Z_TYPE_P(sqlVariables) == IS_ARRAY) { - ZEPHIR_CALL_METHOD(NULL, &activeProfile, "setsqlvariables", NULL, 152, sqlVariables); + ZEPHIR_CALL_METHOD(NULL, &activeProfile, "setsqlvariables", NULL, 139, sqlVariables); zephir_check_call_status(); } if (Z_TYPE_P(sqlBindTypes) == IS_ARRAY) { - ZEPHIR_CALL_METHOD(NULL, &activeProfile, "setsqlbindtypes", NULL, 153, sqlBindTypes); + ZEPHIR_CALL_METHOD(NULL, &activeProfile, "setsqlbindtypes", NULL, 140, sqlBindTypes); zephir_check_call_status(); } ZEPHIR_INIT_VAR(&_0); zephir_microtime(&_0, &__$true TSRMLS_CC); - ZEPHIR_CALL_METHOD(NULL, &activeProfile, "setinitialtime", NULL, 154, &_0); + ZEPHIR_CALL_METHOD(NULL, &activeProfile, "setinitialtime", NULL, 141, &_0); zephir_check_call_status(); if ((zephir_method_exists_ex(this_ptr, SL("beforestartprofile") TSRMLS_CC) == SUCCESS)) { ZEPHIR_CALL_METHOD(NULL, this_ptr, "beforestartprofile", NULL, 0, &activeProfile); @@ -53255,11 +51742,11 @@ static PHP_METHOD(Phalcon_Db_Reference, __construct) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &name_param, &definition_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(&name, name_param); } else { ZEPHIR_INIT_VAR(&name); @@ -53360,7 +51847,7 @@ static PHP_METHOD(Phalcon_Db_Reference, __set_state) { zephir_array_update_string(&_0, SL("referencedColumns"), &referencedColumns, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_0, SL("onDelete"), &onDelete, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_0, SL("onUpdate"), &onUpdate, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 23, &constraintName, &_0); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 18, &constraintName, &_0); zephir_check_call_status(); RETURN_MM(); @@ -53488,7 +51975,7 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo, __construct) { ZEPHIR_CALL_METHOD(NULL, this_ptr, "connect", NULL, 0, &descriptor); zephir_check_call_status(); - ZEPHIR_CALL_PARENT(NULL, phalcon_db_adapter_pdo_ce, this_ptr, "__construct", &_0, 35, &descriptor); + ZEPHIR_CALL_PARENT(NULL, phalcon_db_adapter_pdo_ce, this_ptr, "__construct", &_0, 0, &descriptor); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -53621,11 +52108,11 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo, prepare) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &sqlStatement_param); - if (unlikely(Z_TYPE_P(sqlStatement_param) != IS_STRING && Z_TYPE_P(sqlStatement_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(sqlStatement_param) != IS_STRING && Z_TYPE_P(sqlStatement_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'sqlStatement' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(sqlStatement_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(sqlStatement_param) == IS_STRING)) { zephir_get_strval(&sqlStatement, sqlStatement_param); } else { ZEPHIR_INIT_VAR(&sqlStatement); @@ -53711,7 +52198,7 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo, executePrepared) { do { if (ZEPHIR_IS_LONG(&type, 1)) { ZVAL_LONG(&_4$$12, 10); - ZEPHIR_CALL_FUNCTION(&castValue, "intval", &_5, 36, &value, &_4$$12); + ZEPHIR_CALL_FUNCTION(&castValue, "intval", &_5, 30, &value, &_4$$12); zephir_check_call_status(); break; } @@ -53834,11 +52321,11 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo, query) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &sqlStatement_param, &bindParams, &bindTypes); - if (unlikely(Z_TYPE_P(sqlStatement_param) != IS_STRING && Z_TYPE_P(sqlStatement_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(sqlStatement_param) != IS_STRING && Z_TYPE_P(sqlStatement_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'sqlStatement' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(sqlStatement_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(sqlStatement_param) == IS_STRING)) { zephir_get_strval(&sqlStatement, sqlStatement_param); } else { ZEPHIR_INIT_VAR(&sqlStatement); @@ -53890,7 +52377,7 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo, query) { zephir_check_call_status(); } object_init_ex(return_value, phalcon_db_result_pdo_ce); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 37, this_ptr, &statement, &sqlStatement, bindParams, bindTypes); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 31, this_ptr, &statement, &sqlStatement, bindParams, bindTypes); zephir_check_call_status(); RETURN_MM(); } @@ -53922,11 +52409,11 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo, execute) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &sqlStatement_param, &bindParams, &bindTypes); - if (unlikely(Z_TYPE_P(sqlStatement_param) != IS_STRING && Z_TYPE_P(sqlStatement_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(sqlStatement_param) != IS_STRING && Z_TYPE_P(sqlStatement_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'sqlStatement' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(sqlStatement_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(sqlStatement_param) == IS_STRING)) { zephir_get_strval(&sqlStatement, sqlStatement_param); } else { ZEPHIR_INIT_VAR(&sqlStatement); @@ -54060,11 +52547,11 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo, convertBoundParams) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &sql_param, ¶ms_param); - if (unlikely(Z_TYPE_P(sql_param) != IS_STRING && Z_TYPE_P(sql_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(sql_param) != IS_STRING && Z_TYPE_P(sql_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'sql' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(sql_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(sql_param) == IS_STRING)) { zephir_get_strval(&sql, sql_param); } else { ZEPHIR_INIT_VAR(&sql); @@ -54087,7 +52574,7 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo, convertBoundParams) { setOrder = 2; ZVAL_LONG(&_0, setOrder); ZEPHIR_MAKE_REF(&matches); - ZEPHIR_CALL_FUNCTION(&_1, "preg_match_all", NULL, 38, &bindPattern, &sql, &matches, &_0); + ZEPHIR_CALL_FUNCTION(&_1, "preg_match_all", NULL, 32, &bindPattern, &sql, &matches, &_0); ZEPHIR_UNREF(&matches); zephir_check_call_status(); if (zephir_is_true(&_1)) { @@ -54116,7 +52603,7 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo, convertBoundParams) { ZEPHIR_INIT_NVAR(&placeMatch); ZEPHIR_INIT_VAR(&_5$$3); ZVAL_STRING(&_5$$3, "?"); - ZEPHIR_CALL_FUNCTION(&boundSql, "preg_replace", NULL, 39, &bindPattern, &_5$$3, &sql); + ZEPHIR_CALL_FUNCTION(&boundSql, "preg_replace", NULL, 33, &bindPattern, &_5$$3, &sql); zephir_check_call_status(); } else { ZEPHIR_CPY_WRT(&boundSql, &sql); @@ -54731,7 +53218,7 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Mysql, describeColumns) { zephir_array_fetch_long(&columnName, &field, 0, PH_NOISY | PH_READONLY, "phalcon/db/adapter/pdo/mysql.zep", 258 TSRMLS_CC); ZEPHIR_INIT_NVAR(&_38$$3); object_init_ex(&_38$$3, phalcon_db_column_ce); - ZEPHIR_CALL_METHOD(NULL, &_38$$3, "__construct", &_39, 148, &columnName, &definition); + ZEPHIR_CALL_METHOD(NULL, &_38$$3, "__construct", &_39, 136, &columnName, &definition); zephir_check_call_status(); zephir_array_append(&columns, &_38$$3, PH_SEPARATE, "phalcon/db/adapter/pdo/mysql.zep", 259); ZEPHIR_CPY_WRT(&oldColumn, &columnName); @@ -54780,11 +53267,11 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Mysql, describeIndexes) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &table_param, &schema); - if (unlikely(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'table' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(table_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(table_param) == IS_STRING)) { zephir_get_strval(&table, table_param); } else { ZEPHIR_INIT_VAR(&table); @@ -54863,7 +53350,7 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Mysql, describeIndexes) { object_init_ex(&_16$$11, phalcon_db_index_ce); zephir_array_fetch_string(&_17$$11, &index, SL("columns"), PH_NOISY | PH_READONLY, "phalcon/db/adapter/pdo/mysql.zep", 314 TSRMLS_CC); zephir_array_fetch_string(&_18$$11, &index, SL("type"), PH_NOISY | PH_READONLY, "phalcon/db/adapter/pdo/mysql.zep", 314 TSRMLS_CC); - ZEPHIR_CALL_METHOD(NULL, &_16$$11, "__construct", &_19, 22, &name, &_17$$11, &_18$$11); + ZEPHIR_CALL_METHOD(NULL, &_16$$11, "__construct", &_19, 17, &name, &_17$$11, &_18$$11); zephir_check_call_status(); zephir_array_update_zval(&indexObjects, &name, &_16$$11, PH_COPY | PH_SEPARATE); } ZEND_HASH_FOREACH_END(); @@ -54918,11 +53405,11 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Mysql, describeReferences) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &table_param, &schema_param); - if (unlikely(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'table' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(table_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(table_param) == IS_STRING)) { zephir_get_strval(&table, table_param); } else { ZEPHIR_INIT_VAR(&table); @@ -54932,11 +53419,11 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Mysql, describeReferences) { ZEPHIR_INIT_VAR(&schema); ZVAL_STRING(&schema, ""); } else { - if (unlikely(Z_TYPE_P(schema_param) != IS_STRING && Z_TYPE_P(schema_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schema_param) != IS_STRING && Z_TYPE_P(schema_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schema' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schema_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schema_param) == IS_STRING)) { zephir_get_strval(&schema, schema_param); } else { ZEPHIR_INIT_VAR(&schema); @@ -55042,7 +53529,7 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Mysql, describeReferences) { ZEPHIR_OBS_NVAR(&_19$$6); zephir_array_fetch_string(&_19$$6, &arrayReference, SL("onDelete"), PH_NOISY, "phalcon/db/adapter/pdo/mysql.zep", 380 TSRMLS_CC); zephir_array_update_string(&_18$$6, SL("onDelete"), &_19$$6, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(NULL, &_17$$6, "__construct", &_20, 23, &name, &_18$$6); + ZEPHIR_CALL_METHOD(NULL, &_17$$6, "__construct", &_20, 18, &name, &_18$$6); zephir_check_call_status(); zephir_array_update_zval(&referenceObjects, &name, &_17$$6, PH_COPY | PH_SEPARATE); } ZEND_HASH_FOREACH_END(); @@ -55129,7 +53616,7 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Postgresql, connect) { zephir_array_update_string(&descriptor, SL("password"), &__$null, PH_COPY | PH_SEPARATE); } } - ZEPHIR_CALL_PARENT(&status, phalcon_db_adapter_pdo_postgresql_ce, this_ptr, "connect", &_5, 149, &descriptor); + ZEPHIR_CALL_PARENT(&status, phalcon_db_adapter_pdo_postgresql_ce, this_ptr, "connect", &_5, 0, &descriptor); zephir_check_call_status(); if (!(ZEPHIR_IS_EMPTY(&schema))) { ZEPHIR_INIT_VAR(&sql); @@ -55376,13 +53863,13 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Postgresql, describeColumns) { ZVAL_STRING(&_36$$26, "/^'|'?::[[:alnum:][:space:]]+$/"); ZEPHIR_INIT_NVAR(&_37$$26); ZVAL_STRING(&_37$$26, ""); - ZEPHIR_CALL_FUNCTION(&_38$$26, "preg_replace", &_39, 39, &_36$$26, &_37$$26, &_35$$26); + ZEPHIR_CALL_FUNCTION(&_38$$26, "preg_replace", &_39, 33, &_36$$26, &_37$$26, &_35$$26); zephir_check_call_status(); zephir_array_update_string(&definition, SL("default"), &_38$$26, PH_COPY | PH_SEPARATE); zephir_array_fetch_string(&_40$$26, &definition, SL("default"), PH_NOISY | PH_READONLY, "phalcon/db/adapter/pdo/postgresql.zep", 268 TSRMLS_CC); ZEPHIR_INIT_NVAR(&_36$$26); ZVAL_STRING(&_36$$26, "null"); - ZEPHIR_CALL_FUNCTION(&_41$$26, "strcasecmp", &_42, 16, &_40$$26, &_36$$26); + ZEPHIR_CALL_FUNCTION(&_41$$26, "strcasecmp", &_42, 11, &_40$$26, &_36$$26); zephir_check_call_status(); if (ZEPHIR_IS_LONG(&_41$$26, 0)) { zephir_array_update_string(&definition, SL("default"), &__$null, PH_COPY | PH_SEPARATE); @@ -55391,7 +53878,7 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Postgresql, describeColumns) { zephir_array_fetch_long(&columnName, &field, 0, PH_NOISY | PH_READONLY, "phalcon/db/adapter/pdo/postgresql.zep", 276 TSRMLS_CC); ZEPHIR_INIT_NVAR(&_43$$3); object_init_ex(&_43$$3, phalcon_db_column_ce); - ZEPHIR_CALL_METHOD(NULL, &_43$$3, "__construct", &_44, 148, &columnName, &definition); + ZEPHIR_CALL_METHOD(NULL, &_43$$3, "__construct", &_44, 136, &columnName, &definition); zephir_check_call_status(); zephir_array_append(&columns, &_43$$3, PH_SEPARATE, "phalcon/db/adapter/pdo/postgresql.zep", 277); ZEPHIR_CPY_WRT(&oldColumn, &columnName); @@ -55406,7 +53893,7 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Postgresql, createTable) { zephir_fcall_cache_entry *_3 = NULL; int ZEPHIR_LAST_CALL_STATUS; zval definition; - zval *tableName_param = NULL, *schemaName_param = NULL, *definition_param = NULL, sql, queries, query, exception, columns, _0, *_1$$6, _2$$7, _4$$10, _5$$10; + zval *tableName_param = NULL, *schemaName_param = NULL, *definition_param = NULL, sql, queries, query, exception, columns, _0, *_1$$6, _2$$7, _4$$5, _5$$10, _6$$10; zval tableName, schemaName; ZEPHIR_INIT_THIS(); @@ -55419,28 +53906,29 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Postgresql, createTable) { ZVAL_UNDEF(&columns); ZVAL_UNDEF(&_0); ZVAL_UNDEF(&_2$$7); - ZVAL_UNDEF(&_4$$10); + ZVAL_UNDEF(&_4$$5); ZVAL_UNDEF(&_5$$10); + ZVAL_UNDEF(&_6$$10); ZVAL_UNDEF(&definition); ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &definition_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(&tableName, tableName_param); } else { ZEPHIR_INIT_VAR(&tableName); ZVAL_EMPTY_STRING(&tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(&schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(&schemaName); @@ -55490,10 +53978,12 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Postgresql, createTable) { try_end_1: if (EG(exception)) { - ZVAL_OBJ(&exception, EG(exception)); - Z_ADDREF_P(&exception); - if (zephir_instance_of_ev(&exception, zend_exception_get_default(TSRMLS_C) TSRMLS_CC)) { + ZEPHIR_INIT_VAR(&_4$$5); + ZVAL_OBJ(&_4$$5, EG(exception)); + Z_ADDREF_P(&_4$$5); + if (zephir_instance_of_ev(&_4$$5, zend_exception_get_default(TSRMLS_C) TSRMLS_CC)) { zend_clear_exception(TSRMLS_C); + ZEPHIR_CPY_WRT(&exception, &_4$$5); ZEPHIR_CALL_METHOD(NULL, this_ptr, "rollback", NULL, 0); zephir_check_call_status(); zephir_throw_exception_debug(&exception, "phalcon/db/adapter/pdo/postgresql.zep", 316 TSRMLS_CC); @@ -55502,10 +53992,10 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Postgresql, createTable) { } } } else { - zephir_array_fetch_long(&_4$$10, &queries, 0, PH_NOISY | PH_READONLY, "phalcon/db/adapter/pdo/postgresql.zep", 319 TSRMLS_CC); - ZEPHIR_INIT_VAR(&_5$$10); - ZEPHIR_CONCAT_VS(&_5$$10, &_4$$10, ";"); - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "execute", NULL, 0, &_5$$10); + zephir_array_fetch_long(&_5$$10, &queries, 0, PH_NOISY | PH_READONLY, "phalcon/db/adapter/pdo/postgresql.zep", 319 TSRMLS_CC); + ZEPHIR_INIT_VAR(&_6$$10); + ZEPHIR_CONCAT_VS(&_6$$10, &_5$$10, ";"); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "execute", NULL, 0, &_6$$10); zephir_check_call_status(); RETURN_MM(); } @@ -55517,7 +54007,7 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Postgresql, modifyColumn) { zephir_fcall_cache_entry *_3 = NULL; int ZEPHIR_LAST_CALL_STATUS; - zval *tableName_param = NULL, *schemaName_param = NULL, *column, column_sub, *currentColumn = NULL, currentColumn_sub, __$null, sql, queries, query, exception, _0, *_1$$4, _2$$5, _4$$8, _5$$8, _6$$8; + zval *tableName_param = NULL, *schemaName_param = NULL, *column, column_sub, *currentColumn = NULL, currentColumn_sub, __$null, sql, queries, query, exception, _0, *_1$$4, _2$$5, _4$$3, _5$$8, _6$$8, _7$$8; zval tableName, schemaName; ZEPHIR_INIT_THIS(); @@ -55532,28 +54022,29 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Postgresql, modifyColumn) { ZVAL_UNDEF(&exception); ZVAL_UNDEF(&_0); ZVAL_UNDEF(&_2$$5); - ZVAL_UNDEF(&_4$$8); + ZVAL_UNDEF(&_4$$3); ZVAL_UNDEF(&_5$$8); ZVAL_UNDEF(&_6$$8); + ZVAL_UNDEF(&_7$$8); ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 1, &tableName_param, &schemaName_param, &column, ¤tColumn); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(&tableName, tableName_param); } else { ZEPHIR_INIT_VAR(&tableName); ZVAL_EMPTY_STRING(&tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(&schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(&schemaName); @@ -55597,10 +54088,12 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Postgresql, modifyColumn) { try_end_1: if (EG(exception)) { - ZVAL_OBJ(&exception, EG(exception)); - Z_ADDREF_P(&exception); - if (zephir_instance_of_ev(&exception, zend_exception_get_default(TSRMLS_C) TSRMLS_CC)) { + ZEPHIR_INIT_VAR(&_4$$3); + ZVAL_OBJ(&_4$$3, EG(exception)); + Z_ADDREF_P(&_4$$3); + if (zephir_instance_of_ev(&_4$$3, zend_exception_get_default(TSRMLS_C) TSRMLS_CC)) { zend_clear_exception(TSRMLS_C); + ZEPHIR_CPY_WRT(&exception, &_4$$3); ZEPHIR_CALL_METHOD(NULL, this_ptr, "rollback", NULL, 0); zephir_check_call_status(); zephir_throw_exception_debug(&exception, "phalcon/db/adapter/pdo/postgresql.zep", 349 TSRMLS_CC); @@ -55609,17 +54102,17 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Postgresql, modifyColumn) { } } } else { - ZEPHIR_INIT_VAR(&_4$$8); + ZEPHIR_INIT_VAR(&_5$$8); if (!(ZEPHIR_IS_EMPTY(&sql))) { - zephir_array_fetch_long(&_5$$8, &queries, 0, PH_NOISY | PH_READONLY, "phalcon/db/adapter/pdo/postgresql.zep", 353 TSRMLS_CC); - ZEPHIR_INIT_VAR(&_6$$8); - ZEPHIR_CONCAT_VS(&_6$$8, &_5$$8, ";"); - ZEPHIR_CALL_METHOD(&_4$$8, this_ptr, "execute", NULL, 0, &_6$$8); + zephir_array_fetch_long(&_6$$8, &queries, 0, PH_NOISY | PH_READONLY, "phalcon/db/adapter/pdo/postgresql.zep", 353 TSRMLS_CC); + ZEPHIR_INIT_VAR(&_7$$8); + ZEPHIR_CONCAT_VS(&_7$$8, &_6$$8, ";"); + ZEPHIR_CALL_METHOD(&_5$$8, this_ptr, "execute", NULL, 0, &_7$$8); zephir_check_call_status(); } else { - ZVAL_BOOL(&_4$$8, 1); + ZVAL_BOOL(&_5$$8, 1); } - RETURN_CCTOR(_4$$8); + RETURN_CCTOR(_5$$8); } RETURN_MM_BOOL(1); @@ -55647,7 +54140,7 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Postgresql, getDefaultIdValue) { object_init_ex(return_value, phalcon_db_rawvalue_ce); ZEPHIR_INIT_VAR(&_0); ZVAL_STRING(&_0, "DEFAULT"); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 24, &_0); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 19, &_0); zephir_check_call_status(); RETURN_MM(); @@ -55720,7 +54213,7 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Sqlite, connect) { return; } zephir_array_update_string(&descriptor, SL("dsn"), &dbname, PH_COPY | PH_SEPARATE); - ZEPHIR_RETURN_CALL_PARENT(phalcon_db_adapter_pdo_sqlite_ce, this_ptr, "connect", &_2, 149, &descriptor); + ZEPHIR_RETURN_CALL_PARENT(phalcon_db_adapter_pdo_sqlite_ce, this_ptr, "connect", &_2, 0, &descriptor); zephir_check_call_status(); RETURN_MM(); @@ -55940,7 +54433,7 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Sqlite, describeColumns) { zephir_array_fetch_long(&_30$$3, &field, 4, PH_NOISY | PH_READONLY, "phalcon/db/adapter/pdo/sqlite.zep", 240 TSRMLS_CC); ZEPHIR_INIT_NVAR(&_31$$3); ZVAL_STRING(&_31$$3, "null"); - ZEPHIR_CALL_FUNCTION(&_32$$3, "strcasecmp", &_33, 16, &_30$$3, &_31$$3); + ZEPHIR_CALL_FUNCTION(&_32$$3, "strcasecmp", &_33, 11, &_30$$3, &_31$$3); zephir_check_call_status(); _34$$3 = !ZEPHIR_IS_LONG(&_32$$3, 0); if (_34$$3) { @@ -55953,14 +54446,14 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Sqlite, describeColumns) { ZVAL_STRING(&_37$$27, "/^'|'$/"); ZEPHIR_INIT_NVAR(&_38$$27); ZVAL_STRING(&_38$$27, ""); - ZEPHIR_CALL_FUNCTION(&_39$$27, "preg_replace", &_40, 39, &_37$$27, &_38$$27, &_36$$27); + ZEPHIR_CALL_FUNCTION(&_39$$27, "preg_replace", &_40, 33, &_37$$27, &_38$$27, &_36$$27); zephir_check_call_status(); zephir_array_update_string(&definition, SL("default"), &_39$$27, PH_COPY | PH_SEPARATE); } zephir_array_fetch_long(&columnName, &field, 1, PH_NOISY | PH_READONLY, "phalcon/db/adapter/pdo/sqlite.zep", 247 TSRMLS_CC); ZEPHIR_INIT_NVAR(&_31$$3); object_init_ex(&_31$$3, phalcon_db_column_ce); - ZEPHIR_CALL_METHOD(NULL, &_31$$3, "__construct", &_41, 148, &columnName, &definition); + ZEPHIR_CALL_METHOD(NULL, &_31$$3, "__construct", &_41, 136, &columnName, &definition); zephir_check_call_status(); zephir_array_append(&columns, &_31$$3, PH_SEPARATE, "phalcon/db/adapter/pdo/sqlite.zep", 248); ZEPHIR_CPY_WRT(&oldColumn, &columnName); @@ -56110,7 +54603,7 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Sqlite, describeIndexes) { object_init_ex(&_25$$12, phalcon_db_index_ce); zephir_array_fetch_string(&_26$$12, &index, SL("columns"), PH_NOISY | PH_READONLY, "phalcon/db/adapter/pdo/sqlite.zep", 306 TSRMLS_CC); zephir_array_fetch_string(&_27$$12, &index, SL("type"), PH_NOISY | PH_READONLY, "phalcon/db/adapter/pdo/sqlite.zep", 306 TSRMLS_CC); - ZEPHIR_CALL_METHOD(NULL, &_25$$12, "__construct", &_28, 22, &name, &_26$$12, &_27$$12); + ZEPHIR_CALL_METHOD(NULL, &_25$$12, "__construct", &_28, 17, &name, &_26$$12, &_27$$12); zephir_check_call_status(); zephir_array_update_zval(&indexObjects, &name, &_25$$12, PH_COPY | PH_SEPARATE); } ZEND_HASH_FOREACH_END(); @@ -56255,7 +54748,7 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Sqlite, describeReferences) { ZEPHIR_OBS_NVAR(&_19$$6); zephir_array_fetch_string(&_19$$6, &arrayReference, SL("referencedColumns"), PH_NOISY, "phalcon/db/adapter/pdo/sqlite.zep", 361 TSRMLS_CC); zephir_array_update_string(&_18$$6, SL("referencedColumns"), &_19$$6, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(NULL, &_17$$6, "__construct", &_20, 23, &name, &_18$$6); + ZEPHIR_CALL_METHOD(NULL, &_17$$6, "__construct", &_20, 18, &name, &_18$$6); zephir_check_call_status(); zephir_array_update_zval(&referenceObjects, &name, &_17$$6, PH_COPY | PH_SEPARATE); } ZEND_HASH_FOREACH_END(); @@ -56287,7 +54780,7 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Sqlite, getDefaultValue) { object_init_ex(return_value, phalcon_db_rawvalue_ce); ZEPHIR_INIT_VAR(&_0); ZVAL_STRING(&_0, "NULL"); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 24, &_0); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 19, &_0); zephir_check_call_status(); RETURN_MM(); @@ -56567,7 +55060,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, getColumnDefinition) { zephir_check_call_status(); ZEPHIR_INIT_VAR(&_22$$49); ZEPHIR_CONCAT_SV(&_22$$49, "Unrecognized MySQL data type at column ", &_21$$49); - ZEPHIR_CALL_METHOD(NULL, &_20$$49, "__construct", NULL, 9, &_22$$49); + ZEPHIR_CALL_METHOD(NULL, &_20$$49, "__construct", NULL, 4, &_22$$49); zephir_check_call_status(); zephir_throw_exception_debug(&_20$$49, "phalcon/db/dialect/mysql.zep", 197 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -56586,7 +55079,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, getColumnDefinition) { ZVAL_COPY(&value$$51, _23$$51); ZEPHIR_INIT_NVAR(&_24$$52); ZVAL_STRING(&_24$$52, "\""); - ZEPHIR_CALL_FUNCTION(&_25$$52, "addcslashes", &_26, 150, &value$$51, &_24$$52); + ZEPHIR_CALL_FUNCTION(&_25$$52, "addcslashes", &_26, 137, &value$$51, &_24$$52); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_27$$52); ZEPHIR_CONCAT_SVS(&_27$$52, "\"", &_25$$52, "\", "); @@ -56603,7 +55096,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, getColumnDefinition) { } else { ZEPHIR_INIT_VAR(&_32$$53); ZVAL_STRING(&_32$$53, "\""); - ZEPHIR_CALL_FUNCTION(&_33$$53, "addcslashes", &_26, 150, &typeValues, &_32$$53); + ZEPHIR_CALL_FUNCTION(&_33$$53, "addcslashes", &_26, 137, &typeValues, &_32$$53); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_34$$53); ZEPHIR_CONCAT_SVS(&_34$$53, "(\"", &_33$$53, "\")"); @@ -56645,21 +55138,21 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, addColumn) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &column); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(&tableName, tableName_param); } else { ZEPHIR_INIT_VAR(&tableName); ZVAL_EMPTY_STRING(&tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(&schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(&schemaName); @@ -56687,7 +55180,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, addColumn) { } else { ZEPHIR_INIT_VAR(&_5$$5); ZVAL_STRING(&_5$$5, "\""); - ZEPHIR_CALL_FUNCTION(&_6$$5, "addcslashes", NULL, 150, &defaultValue, &_5$$5); + ZEPHIR_CALL_FUNCTION(&_6$$5, "addcslashes", NULL, 137, &defaultValue, &_5$$5); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_7$$5); ZEPHIR_CONCAT_SVS(&_7$$5, " DEFAULT \"", &_6$$5, "\""); @@ -56752,21 +55245,21 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, modifyColumn) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 1, &tableName_param, &schemaName_param, &column, ¤tColumn); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(&tableName, tableName_param); } else { ZEPHIR_INIT_VAR(&tableName); ZVAL_EMPTY_STRING(&tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(&schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(&schemaName); @@ -56798,7 +55291,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, modifyColumn) { } else { ZEPHIR_INIT_VAR(&_5$$5); ZVAL_STRING(&_5$$5, "\""); - ZEPHIR_CALL_FUNCTION(&_6$$5, "addcslashes", NULL, 150, &defaultValue, &_5$$5); + ZEPHIR_CALL_FUNCTION(&_6$$5, "addcslashes", NULL, 137, &defaultValue, &_5$$5); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_7$$5); ZEPHIR_CONCAT_SVS(&_7$$5, " DEFAULT \"", &_6$$5, "\""); @@ -56847,31 +55340,31 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, dropColumn) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &columnName_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(&tableName, tableName_param); } else { ZEPHIR_INIT_VAR(&tableName); ZVAL_EMPTY_STRING(&tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(&schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(&schemaName); ZVAL_EMPTY_STRING(&schemaName); } - if (unlikely(Z_TYPE_P(columnName_param) != IS_STRING && Z_TYPE_P(columnName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(columnName_param) != IS_STRING && Z_TYPE_P(columnName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'columnName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(columnName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(columnName_param) == IS_STRING)) { zephir_get_strval(&columnName, columnName_param); } else { ZEPHIR_INIT_VAR(&columnName); @@ -56908,21 +55401,21 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, addIndex) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &index); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(&tableName, tableName_param); } else { ZEPHIR_INIT_VAR(&tableName); ZVAL_EMPTY_STRING(&tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(&schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(&schemaName); @@ -56947,7 +55440,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, addIndex) { zephir_check_call_status(); ZEPHIR_CALL_METHOD(&_4, index, "getcolumns", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_3, this_ptr, "getcolumnlist", NULL, 54, &_4); + ZEPHIR_CALL_METHOD(&_3, this_ptr, "getcolumnlist", NULL, 48, &_4); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_5); ZEPHIR_CONCAT_SVSVS(&_5, "`", &_2, "` (", &_3, ")"); @@ -56971,31 +55464,31 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, dropIndex) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &indexName_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(&tableName, tableName_param); } else { ZEPHIR_INIT_VAR(&tableName); ZVAL_EMPTY_STRING(&tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(&schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(&schemaName); ZVAL_EMPTY_STRING(&schemaName); } - if (unlikely(Z_TYPE_P(indexName_param) != IS_STRING && Z_TYPE_P(indexName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(indexName_param) != IS_STRING && Z_TYPE_P(indexName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'indexName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(indexName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(indexName_param) == IS_STRING)) { zephir_get_strval(&indexName, indexName_param); } else { ZEPHIR_INIT_VAR(&indexName); @@ -57027,21 +55520,21 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, addPrimaryKey) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &index); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(&tableName, tableName_param); } else { ZEPHIR_INIT_VAR(&tableName); ZVAL_EMPTY_STRING(&tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(&schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(&schemaName); @@ -57053,7 +55546,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, addPrimaryKey) { zephir_check_call_status(); ZEPHIR_CALL_METHOD(&_2, index, "getcolumns", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_1, this_ptr, "getcolumnlist", NULL, 54, &_2); + ZEPHIR_CALL_METHOD(&_1, this_ptr, "getcolumnlist", NULL, 48, &_2); zephir_check_call_status(); ZEPHIR_CONCAT_SVSVS(return_value, "ALTER TABLE ", &_0, " ADD PRIMARY KEY (", &_1, ")"); RETURN_MM(); @@ -57074,21 +55567,21 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, dropPrimaryKey) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &tableName_param, &schemaName_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(&tableName, tableName_param); } else { ZEPHIR_INIT_VAR(&tableName); ZVAL_EMPTY_STRING(&tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(&schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(&schemaName); @@ -57131,21 +55624,21 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, addForeignKey) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &reference); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(&tableName, tableName_param); } else { ZEPHIR_INIT_VAR(&tableName); ZVAL_EMPTY_STRING(&tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(&schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(&schemaName); @@ -57159,7 +55652,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, addForeignKey) { zephir_check_call_status(); ZEPHIR_CALL_METHOD(&_3, reference, "getcolumns", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_2, this_ptr, "getcolumnlist", NULL, 54, &_3); + ZEPHIR_CALL_METHOD(&_2, this_ptr, "getcolumnlist", NULL, 48, &_3); zephir_check_call_status(); ZEPHIR_CALL_METHOD(&_5, reference, "getreferencedtable", NULL, 0); zephir_check_call_status(); @@ -57169,7 +55662,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, addForeignKey) { zephir_check_call_status(); ZEPHIR_CALL_METHOD(&_8, reference, "getreferencedcolumns", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_7, this_ptr, "getcolumnlist", NULL, 54, &_8); + ZEPHIR_CALL_METHOD(&_7, this_ptr, "getcolumnlist", NULL, 48, &_8); zephir_check_call_status(); ZEPHIR_INIT_VAR(&sql); ZEPHIR_CONCAT_SVSVSVSVSVS(&sql, "ALTER TABLE ", &_0, " ADD FOREIGN KEY `", &_1, "`(", &_2, ") REFERENCES ", &_4, "(", &_7, ")"); @@ -57206,31 +55699,31 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, dropForeignKey) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &referenceName_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(&tableName, tableName_param); } else { ZEPHIR_INIT_VAR(&tableName); ZVAL_EMPTY_STRING(&tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(&schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(&schemaName); ZVAL_EMPTY_STRING(&schemaName); } - if (unlikely(Z_TYPE_P(referenceName_param) != IS_STRING && Z_TYPE_P(referenceName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(referenceName_param) != IS_STRING && Z_TYPE_P(referenceName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'referenceName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(referenceName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(referenceName_param) == IS_STRING)) { zephir_get_strval(&referenceName, referenceName_param); } else { ZEPHIR_INIT_VAR(&referenceName); @@ -57308,21 +55801,21 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, createTable) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &definition_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(&tableName, tableName_param); } else { ZEPHIR_INIT_VAR(&tableName); ZVAL_EMPTY_STRING(&tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(&schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(&schemaName); @@ -57376,7 +55869,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, createTable) { } else { ZEPHIR_INIT_NVAR(&_6$$10); ZVAL_STRING(&_6$$10, "\""); - ZEPHIR_CALL_FUNCTION(&_7$$10, "addcslashes", &_8, 150, &defaultValue, &_6$$10); + ZEPHIR_CALL_FUNCTION(&_7$$10, "addcslashes", &_8, 137, &defaultValue, &_6$$10); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_9$$10); ZEPHIR_CONCAT_SVS(&_9$$10, " DEFAULT \"", &_7$$10, "\""); @@ -57415,7 +55908,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, createTable) { if (ZEPHIR_IS_STRING(&indexName, "PRIMARY")) { ZEPHIR_CALL_METHOD(&_15$$16, &index, "getcolumns", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_14$$16, this_ptr, "getcolumnlist", &_16, 54, &_15$$16); + ZEPHIR_CALL_METHOD(&_14$$16, this_ptr, "getcolumnlist", &_16, 48, &_15$$16); zephir_check_call_status(); ZEPHIR_INIT_NVAR(&indexSql); ZEPHIR_CONCAT_SVS(&indexSql, "PRIMARY KEY (", &_14$$16, ")"); @@ -57424,13 +55917,13 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, createTable) { if (!(ZEPHIR_IS_EMPTY(&indexType))) { ZEPHIR_CALL_METHOD(&_18$$18, &index, "getcolumns", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_17$$18, this_ptr, "getcolumnlist", &_16, 54, &_18$$18); + ZEPHIR_CALL_METHOD(&_17$$18, this_ptr, "getcolumnlist", &_16, 48, &_18$$18); zephir_check_call_status(); ZEPHIR_CONCAT_VSVSVS(&indexSql, &indexType, " KEY `", &indexName, "` (", &_17$$18, ")"); } else { ZEPHIR_CALL_METHOD(&_20$$19, &index, "getcolumns", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_19$$19, this_ptr, "getcolumnlist", &_16, 54, &_20$$19); + ZEPHIR_CALL_METHOD(&_19$$19, this_ptr, "getcolumnlist", &_16, 48, &_20$$19); zephir_check_call_status(); ZEPHIR_CONCAT_SVSVS(&indexSql, "KEY `", &indexName, "` (", &_19$$19, ")"); } @@ -57450,13 +55943,13 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, createTable) { zephir_check_call_status(); ZEPHIR_CALL_METHOD(&_24$$21, &reference, "getcolumns", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_23$$21, this_ptr, "getcolumnlist", &_16, 54, &_24$$21); + ZEPHIR_CALL_METHOD(&_23$$21, this_ptr, "getcolumnlist", &_16, 48, &_24$$21); zephir_check_call_status(); ZEPHIR_CALL_METHOD(&_25$$21, &reference, "getreferencedtable", NULL, 0); zephir_check_call_status(); ZEPHIR_CALL_METHOD(&_27$$21, &reference, "getreferencedcolumns", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_26$$21, this_ptr, "getcolumnlist", &_16, 54, &_27$$21); + ZEPHIR_CALL_METHOD(&_26$$21, this_ptr, "getcolumnlist", &_16, 48, &_27$$21); zephir_check_call_status(); ZEPHIR_INIT_NVAR(&referenceSql); ZEPHIR_CONCAT_SVSVSSVSVS(&referenceSql, "CONSTRAINT `", &_22$$21, "` FOREIGN KEY (", &_23$$21, ")", " REFERENCES `", &_25$$21, "`(", &_26$$21, ")"); @@ -57510,21 +56003,21 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, truncateTable) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &tableName_param, &schemaName_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(&tableName, tableName_param); } else { ZEPHIR_INIT_VAR(&tableName); ZVAL_EMPTY_STRING(&tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(&schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(&schemaName); @@ -57564,11 +56057,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, dropTable) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &tableName_param, &schemaName_param, &ifExists_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(&tableName, tableName_param); } else { ZEPHIR_INIT_VAR(&tableName); @@ -57583,7 +56076,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, dropTable) { if (!ifExists_param) { ifExists = 1; } else { - if (unlikely(Z_TYPE_P(ifExists_param) != IS_TRUE && Z_TYPE_P(ifExists_param) != IS_FALSE)) { + if (UNEXPECTED(Z_TYPE_P(ifExists_param) != IS_TRUE && Z_TYPE_P(ifExists_param) != IS_FALSE)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'ifExists' must be a bool") TSRMLS_CC); RETURN_MM_NULL(); } @@ -57620,11 +56113,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, createView) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 1, &viewName_param, &definition_param, &schemaName_param); - if (unlikely(Z_TYPE_P(viewName_param) != IS_STRING && Z_TYPE_P(viewName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(viewName_param) != IS_STRING && Z_TYPE_P(viewName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'viewName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(viewName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(viewName_param) == IS_STRING)) { zephir_get_strval(&viewName, viewName_param); } else { ZEPHIR_INIT_VAR(&viewName); @@ -57667,11 +56160,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, dropView) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &viewName_param, &schemaName_param, &ifExists_param); - if (unlikely(Z_TYPE_P(viewName_param) != IS_STRING && Z_TYPE_P(viewName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(viewName_param) != IS_STRING && Z_TYPE_P(viewName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'viewName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(viewName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(viewName_param) == IS_STRING)) { zephir_get_strval(&viewName, viewName_param); } else { ZEPHIR_INIT_VAR(&viewName); @@ -57686,7 +56179,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, dropView) { if (!ifExists_param) { ifExists = 1; } else { - if (unlikely(Z_TYPE_P(ifExists_param) != IS_TRUE && Z_TYPE_P(ifExists_param) != IS_FALSE)) { + if (UNEXPECTED(Z_TYPE_P(ifExists_param) != IS_TRUE && Z_TYPE_P(ifExists_param) != IS_FALSE)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'ifExists' must be a bool") TSRMLS_CC); RETURN_MM_NULL(); } @@ -57718,11 +56211,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, tableExists) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &tableName_param, &schemaName_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(&tableName, tableName_param); } else { ZEPHIR_INIT_VAR(&tableName); @@ -57757,11 +56250,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, viewExists) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &viewName_param, &schemaName_param); - if (unlikely(Z_TYPE_P(viewName_param) != IS_STRING && Z_TYPE_P(viewName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(viewName_param) != IS_STRING && Z_TYPE_P(viewName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'viewName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(viewName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(viewName_param) == IS_STRING)) { zephir_get_strval(&viewName, viewName_param); } else { ZEPHIR_INIT_VAR(&viewName); @@ -57798,11 +56291,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, describeColumns) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &table_param, &schema_param); - if (unlikely(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'table' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(table_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(table_param) == IS_STRING)) { zephir_get_strval(&table, table_param); } else { ZEPHIR_INIT_VAR(&table); @@ -57865,11 +56358,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, listViews) { ZEPHIR_INIT_VAR(&schemaName); ZVAL_STRING(&schemaName, ""); } else { - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(&schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(&schemaName); @@ -57900,11 +56393,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, describeIndexes) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &table_param, &schema_param); - if (unlikely(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'table' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(table_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(table_param) == IS_STRING)) { zephir_get_strval(&table, table_param); } else { ZEPHIR_INIT_VAR(&table); @@ -57940,11 +56433,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, describeReferences) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &table_param, &schema_param); - if (unlikely(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'table' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(table_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(table_param) == IS_STRING)) { zephir_get_strval(&table, table_param); } else { ZEPHIR_INIT_VAR(&table); @@ -57986,11 +56479,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, tableOptions) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &table_param, &schema_param); - if (unlikely(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'table' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(table_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(table_param) == IS_STRING)) { zephir_get_strval(&table, table_param); } else { ZEPHIR_INIT_VAR(&table); @@ -58262,7 +56755,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, getColumnDefinition) { zephir_check_call_status(); ZEPHIR_INIT_VAR(&_8$$35); ZEPHIR_CONCAT_SV(&_8$$35, "Unrecognized PostgreSQL data type at column ", &_7$$35); - ZEPHIR_CALL_METHOD(NULL, &_6$$35, "__construct", NULL, 9, &_8$$35); + ZEPHIR_CALL_METHOD(NULL, &_6$$35, "__construct", NULL, 4, &_8$$35); zephir_check_call_status(); zephir_throw_exception_debug(&_6$$35, "phalcon/db/dialect/postgresql.zep", 150 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -58281,7 +56774,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, getColumnDefinition) { ZVAL_COPY(&value$$37, _9$$37); ZEPHIR_INIT_NVAR(&_10$$38); ZVAL_STRING(&_10$$38, "\\'"); - ZEPHIR_CALL_FUNCTION(&_11$$38, "addcslashes", &_12, 150, &value$$37, &_10$$38); + ZEPHIR_CALL_FUNCTION(&_11$$38, "addcslashes", &_12, 137, &value$$37, &_10$$38); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_13$$38); ZEPHIR_CONCAT_SVS(&_13$$38, "'", &_11$$38, "', "); @@ -58298,7 +56791,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, getColumnDefinition) { } else { ZEPHIR_INIT_VAR(&_18$$39); ZVAL_STRING(&_18$$39, "\\'"); - ZEPHIR_CALL_FUNCTION(&_19$$39, "addcslashes", &_12, 150, &typeValues, &_18$$39); + ZEPHIR_CALL_FUNCTION(&_19$$39, "addcslashes", &_12, 137, &typeValues, &_18$$39); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_20$$39); ZEPHIR_CONCAT_SVS(&_20$$39, "('", &_19$$39, "')"); @@ -58334,21 +56827,21 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, addColumn) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &column); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(&tableName, tableName_param); } else { ZEPHIR_INIT_VAR(&tableName); ZVAL_EMPTY_STRING(&tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(&schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(&schemaName); @@ -58435,21 +56928,21 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, modifyColumn) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 1, &tableName_param, &schemaName_param, &column, ¤tColumn); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(&tableName, tableName_param); } else { ZEPHIR_INIT_VAR(&tableName); ZVAL_EMPTY_STRING(&tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(&schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(&schemaName); @@ -58580,31 +57073,31 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, dropColumn) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &columnName_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(&tableName, tableName_param); } else { ZEPHIR_INIT_VAR(&tableName); ZVAL_EMPTY_STRING(&tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(&schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(&schemaName); ZVAL_EMPTY_STRING(&schemaName); } - if (unlikely(Z_TYPE_P(columnName_param) != IS_STRING && Z_TYPE_P(columnName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(columnName_param) != IS_STRING && Z_TYPE_P(columnName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'columnName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(columnName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(columnName_param) == IS_STRING)) { zephir_get_strval(&columnName, columnName_param); } else { ZEPHIR_INIT_VAR(&columnName); @@ -58643,21 +57136,21 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, addIndex) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &index); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(&tableName, tableName_param); } else { ZEPHIR_INIT_VAR(&tableName); ZVAL_EMPTY_STRING(&tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(&schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(&schemaName); @@ -58690,7 +57183,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, addIndex) { zephir_concat_self(&sql, &_4 TSRMLS_CC); ZEPHIR_CALL_METHOD(&_6, index, "getcolumns", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_5, this_ptr, "getcolumnlist", NULL, 54, &_6); + ZEPHIR_CALL_METHOD(&_5, this_ptr, "getcolumnlist", NULL, 48, &_6); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_7); ZEPHIR_CONCAT_SVS(&_7, " (", &_5, ")"); @@ -58712,31 +57205,31 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, dropIndex) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &indexName_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(&tableName, tableName_param); } else { ZEPHIR_INIT_VAR(&tableName); ZVAL_EMPTY_STRING(&tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(&schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(&schemaName); ZVAL_EMPTY_STRING(&schemaName); } - if (unlikely(Z_TYPE_P(indexName_param) != IS_STRING && Z_TYPE_P(indexName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(indexName_param) != IS_STRING && Z_TYPE_P(indexName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'indexName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(indexName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(indexName_param) == IS_STRING)) { zephir_get_strval(&indexName, indexName_param); } else { ZEPHIR_INIT_VAR(&indexName); @@ -58766,21 +57259,21 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, addPrimaryKey) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &index); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(&tableName, tableName_param); } else { ZEPHIR_INIT_VAR(&tableName); ZVAL_EMPTY_STRING(&tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(&schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(&schemaName); @@ -58792,7 +57285,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, addPrimaryKey) { zephir_check_call_status(); ZEPHIR_CALL_METHOD(&_2, index, "getcolumns", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_1, this_ptr, "getcolumnlist", NULL, 54, &_2); + ZEPHIR_CALL_METHOD(&_1, this_ptr, "getcolumnlist", NULL, 48, &_2); zephir_check_call_status(); ZEPHIR_CONCAT_SVSVS(return_value, "ALTER TABLE ", &_0, " ADD CONSTRAINT \"PRIMARY\" PRIMARY KEY (", &_1, ")"); RETURN_MM(); @@ -58813,21 +57306,21 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, dropPrimaryKey) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &tableName_param, &schemaName_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(&tableName, tableName_param); } else { ZEPHIR_INIT_VAR(&tableName); ZVAL_EMPTY_STRING(&tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(&schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(&schemaName); @@ -58868,21 +57361,21 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, addForeignKey) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &reference); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(&tableName, tableName_param); } else { ZEPHIR_INIT_VAR(&tableName); ZVAL_EMPTY_STRING(&tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(&schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(&schemaName); @@ -58896,13 +57389,13 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, addForeignKey) { zephir_check_call_status(); ZEPHIR_CALL_METHOD(&_3, reference, "getcolumns", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_2, this_ptr, "getcolumnlist", NULL, 54, &_3); + ZEPHIR_CALL_METHOD(&_2, this_ptr, "getcolumnlist", NULL, 48, &_3); zephir_check_call_status(); ZEPHIR_CALL_METHOD(&_4, reference, "getreferencedtable", NULL, 0); zephir_check_call_status(); ZEPHIR_CALL_METHOD(&_6, reference, "getreferencedcolumns", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_5, this_ptr, "getcolumnlist", NULL, 54, &_6); + ZEPHIR_CALL_METHOD(&_5, this_ptr, "getcolumnlist", NULL, 48, &_6); zephir_check_call_status(); ZEPHIR_INIT_VAR(&sql); ZEPHIR_CONCAT_SVSVSVSSVSVS(&sql, "ALTER TABLE ", &_0, " ADD CONSTRAINT \"", &_1, "\" FOREIGN KEY (", &_2, ")", " REFERENCES \"", &_4, "\" (", &_5, ")"); @@ -58939,31 +57432,31 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, dropForeignKey) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &referenceName_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(&tableName, tableName_param); } else { ZEPHIR_INIT_VAR(&tableName); ZVAL_EMPTY_STRING(&tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(&schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(&schemaName); ZVAL_EMPTY_STRING(&schemaName); } - if (unlikely(Z_TYPE_P(referenceName_param) != IS_STRING && Z_TYPE_P(referenceName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(referenceName_param) != IS_STRING && Z_TYPE_P(referenceName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'referenceName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(referenceName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(referenceName_param) == IS_STRING)) { zephir_get_strval(&referenceName, referenceName_param); } else { ZEPHIR_INIT_VAR(&referenceName); @@ -59051,21 +57544,21 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, createTable) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &definition_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(&tableName, tableName_param); } else { ZEPHIR_INIT_VAR(&tableName); ZVAL_EMPTY_STRING(&tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(&schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(&schemaName); @@ -59142,7 +57635,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, createTable) { } ZEND_HASH_FOREACH_END(); ZEPHIR_INIT_NVAR(&column); if (!(ZEPHIR_IS_EMPTY(&primaryColumns))) { - ZEPHIR_CALL_METHOD(&_11$$13, this_ptr, "getcolumnlist", NULL, 54, &primaryColumns); + ZEPHIR_CALL_METHOD(&_11$$13, this_ptr, "getcolumnlist", NULL, 48, &primaryColumns); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_12$$13); ZEPHIR_CONCAT_SVS(&_12$$13, "PRIMARY KEY (", &_11$$13, ")"); @@ -59166,7 +57659,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, createTable) { if (ZEPHIR_IS_STRING(&indexName, "PRIMARY")) { ZEPHIR_CALL_METHOD(&_15$$16, &index, "getcolumns", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_14$$16, this_ptr, "getcolumnlist", NULL, 54, &_15$$16); + ZEPHIR_CALL_METHOD(&_14$$16, this_ptr, "getcolumnlist", NULL, 48, &_15$$16); zephir_check_call_status(); ZEPHIR_INIT_NVAR(&indexSql); ZEPHIR_CONCAT_SVS(&indexSql, "CONSTRAINT \"PRIMARY\" PRIMARY KEY (", &_14$$16, ")"); @@ -59174,7 +57667,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, createTable) { if (!(ZEPHIR_IS_EMPTY(&indexType))) { ZEPHIR_CALL_METHOD(&_17$$18, &index, "getcolumns", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_16$$18, this_ptr, "getcolumnlist", NULL, 54, &_17$$18); + ZEPHIR_CALL_METHOD(&_16$$18, this_ptr, "getcolumnlist", NULL, 48, &_17$$18); zephir_check_call_status(); ZEPHIR_INIT_NVAR(&indexSql); ZEPHIR_CONCAT_SVSVSVS(&indexSql, "CONSTRAINT \"", &indexName, "\" ", &indexType, " (", &_16$$18, ")"); @@ -59188,7 +57681,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, createTable) { zephir_concat_self(&indexSqlAfterCreate, &_20$$19 TSRMLS_CC); ZEPHIR_CALL_METHOD(&_22$$19, &index, "getcolumns", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_21$$19, this_ptr, "getcolumnlist", NULL, 54, &_22$$19); + ZEPHIR_CALL_METHOD(&_21$$19, this_ptr, "getcolumnlist", NULL, 48, &_22$$19); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_23$$19); ZEPHIR_CONCAT_SVS(&_23$$19, " (", &_21$$19, ");"); @@ -59212,7 +57705,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, createTable) { zephir_check_call_status(); ZEPHIR_CALL_METHOD(&_27$$22, &reference, "getcolumns", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_26$$22, this_ptr, "getcolumnlist", NULL, 54, &_27$$22); + ZEPHIR_CALL_METHOD(&_26$$22, this_ptr, "getcolumnlist", NULL, 48, &_27$$22); zephir_check_call_status(); ZEPHIR_INIT_NVAR(&referenceSql); ZEPHIR_CONCAT_SVSVS(&referenceSql, "CONSTRAINT \"", &_25$$22, "\" FOREIGN KEY (", &_26$$22, ") REFERENCES "); @@ -59223,7 +57716,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, createTable) { zephir_concat_self(&referenceSql, &_28$$22 TSRMLS_CC); ZEPHIR_CALL_METHOD(&_31$$22, &reference, "getreferencedcolumns", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_30$$22, this_ptr, "getcolumnlist", NULL, 54, &_31$$22); + ZEPHIR_CALL_METHOD(&_30$$22, this_ptr, "getcolumnlist", NULL, 48, &_31$$22); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_32$$22); ZEPHIR_CONCAT_SVS(&_32$$22, " (", &_30$$22, ")"); @@ -59280,21 +57773,21 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, truncateTable) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &tableName_param, &schemaName_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(&tableName, tableName_param); } else { ZEPHIR_INIT_VAR(&tableName); ZVAL_EMPTY_STRING(&tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(&schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(&schemaName); @@ -59331,11 +57824,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, dropTable) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &tableName_param, &schemaName_param, &ifExists_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(&tableName, tableName_param); } else { ZEPHIR_INIT_VAR(&tableName); @@ -59350,7 +57843,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, dropTable) { if (!ifExists_param) { ifExists = 1; } else { - if (unlikely(Z_TYPE_P(ifExists_param) != IS_TRUE && Z_TYPE_P(ifExists_param) != IS_FALSE)) { + if (UNEXPECTED(Z_TYPE_P(ifExists_param) != IS_TRUE && Z_TYPE_P(ifExists_param) != IS_FALSE)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'ifExists' must be a bool") TSRMLS_CC); RETURN_MM_NULL(); } @@ -59387,11 +57880,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, createView) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 1, &viewName_param, &definition_param, &schemaName_param); - if (unlikely(Z_TYPE_P(viewName_param) != IS_STRING && Z_TYPE_P(viewName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(viewName_param) != IS_STRING && Z_TYPE_P(viewName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'viewName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(viewName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(viewName_param) == IS_STRING)) { zephir_get_strval(&viewName, viewName_param); } else { ZEPHIR_INIT_VAR(&viewName); @@ -59434,11 +57927,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, dropView) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &viewName_param, &schemaName_param, &ifExists_param); - if (unlikely(Z_TYPE_P(viewName_param) != IS_STRING && Z_TYPE_P(viewName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(viewName_param) != IS_STRING && Z_TYPE_P(viewName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'viewName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(viewName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(viewName_param) == IS_STRING)) { zephir_get_strval(&viewName, viewName_param); } else { ZEPHIR_INIT_VAR(&viewName); @@ -59453,7 +57946,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, dropView) { if (!ifExists_param) { ifExists = 1; } else { - if (unlikely(Z_TYPE_P(ifExists_param) != IS_TRUE && Z_TYPE_P(ifExists_param) != IS_FALSE)) { + if (UNEXPECTED(Z_TYPE_P(ifExists_param) != IS_TRUE && Z_TYPE_P(ifExists_param) != IS_FALSE)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'ifExists' must be a bool") TSRMLS_CC); RETURN_MM_NULL(); } @@ -59485,11 +57978,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, tableExists) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &tableName_param, &schemaName_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(&tableName, tableName_param); } else { ZEPHIR_INIT_VAR(&tableName); @@ -59524,11 +58017,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, viewExists) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &viewName_param, &schemaName_param); - if (unlikely(Z_TYPE_P(viewName_param) != IS_STRING && Z_TYPE_P(viewName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(viewName_param) != IS_STRING && Z_TYPE_P(viewName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'viewName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(viewName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(viewName_param) == IS_STRING)) { zephir_get_strval(&viewName, viewName_param); } else { ZEPHIR_INIT_VAR(&viewName); @@ -59563,11 +58056,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, describeColumns) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &table_param, &schema_param); - if (unlikely(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'table' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(table_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(table_param) == IS_STRING)) { zephir_get_strval(&table, table_param); } else { ZEPHIR_INIT_VAR(&table); @@ -59653,11 +58146,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, describeIndexes) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &table_param, &schema_param); - if (unlikely(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'table' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(table_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(table_param) == IS_STRING)) { zephir_get_strval(&table, table_param); } else { ZEPHIR_INIT_VAR(&table); @@ -59691,11 +58184,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, describeReferences) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &table_param, &schema_param); - if (unlikely(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'table' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(table_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(table_param) == IS_STRING)) { zephir_get_strval(&table, table_param); } else { ZEPHIR_INIT_VAR(&table); @@ -59736,11 +58229,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, tableOptions) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &table_param, &schema_param); - if (unlikely(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'table' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(table_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(table_param) == IS_STRING)) { zephir_get_strval(&table, table_param); } else { ZEPHIR_INIT_VAR(&table); @@ -59828,7 +58321,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, _castDefault) { } else { ZEPHIR_INIT_VAR(&_8$$6); ZVAL_STRING(&_8$$6, "\\'"); - ZEPHIR_CALL_FUNCTION(&_9$$6, "addcslashes", NULL, 150, &defaultValue, &_8$$6); + ZEPHIR_CALL_FUNCTION(&_9$$6, "addcslashes", NULL, 137, &defaultValue, &_8$$6); zephir_check_call_status(); ZEPHIR_CONCAT_SVS(&preparedValue, "'", &_9$$6, "'"); } @@ -60055,7 +58548,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, getColumnDefinition) { zephir_check_call_status(); ZEPHIR_INIT_VAR(&_11$$39); ZEPHIR_CONCAT_SV(&_11$$39, "Unrecognized SQLite data type at column ", &_10$$39); - ZEPHIR_CALL_METHOD(NULL, &_9$$39, "__construct", NULL, 9, &_11$$39); + ZEPHIR_CALL_METHOD(NULL, &_9$$39, "__construct", NULL, 4, &_11$$39); zephir_check_call_status(); zephir_throw_exception_debug(&_9$$39, "phalcon/db/dialect/sqlite.zep", 169 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -60074,7 +58567,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, getColumnDefinition) { ZVAL_COPY(&value$$41, _12$$41); ZEPHIR_INIT_NVAR(&_13$$42); ZVAL_STRING(&_13$$42, "\""); - ZEPHIR_CALL_FUNCTION(&_14$$42, "addcslashes", &_15, 150, &value$$41, &_13$$42); + ZEPHIR_CALL_FUNCTION(&_14$$42, "addcslashes", &_15, 137, &value$$41, &_13$$42); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_16$$42); ZEPHIR_CONCAT_SVS(&_16$$42, "\"", &_14$$42, "\", "); @@ -60091,7 +58584,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, getColumnDefinition) { } else { ZEPHIR_INIT_VAR(&_21$$43); ZVAL_STRING(&_21$$43, "\""); - ZEPHIR_CALL_FUNCTION(&_22$$43, "addcslashes", &_15, 150, &typeValues, &_21$$43); + ZEPHIR_CALL_FUNCTION(&_22$$43, "addcslashes", &_15, 137, &typeValues, &_21$$43); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_23$$43); ZEPHIR_CONCAT_SVS(&_23$$43, "(\"", &_22$$43, "\")"); @@ -60131,21 +58624,21 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, addColumn) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &column); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(&tableName, tableName_param); } else { ZEPHIR_INIT_VAR(&tableName); ZVAL_EMPTY_STRING(&tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(&schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(&schemaName); @@ -60176,7 +58669,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, addColumn) { } else { ZEPHIR_INIT_VAR(&_6$$5); ZVAL_STRING(&_6$$5, "\""); - ZEPHIR_CALL_FUNCTION(&_7$$5, "addcslashes", NULL, 150, &defaultValue, &_6$$5); + ZEPHIR_CALL_FUNCTION(&_7$$5, "addcslashes", NULL, 137, &defaultValue, &_6$$5); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_8$$5); ZEPHIR_CONCAT_SVS(&_8$$5, " DEFAULT \"", &_7$$5, "\""); @@ -60212,21 +58705,21 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, modifyColumn) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 1, &tableName_param, &schemaName_param, &column, ¤tColumn); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(&tableName, tableName_param); } else { ZEPHIR_INIT_VAR(&tableName); ZVAL_EMPTY_STRING(&tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(&schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(&schemaName); @@ -60256,31 +58749,31 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, dropColumn) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &columnName_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(&tableName, tableName_param); } else { ZEPHIR_INIT_VAR(&tableName); ZVAL_EMPTY_STRING(&tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(&schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(&schemaName); ZVAL_EMPTY_STRING(&schemaName); } - if (unlikely(Z_TYPE_P(columnName_param) != IS_STRING && Z_TYPE_P(columnName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(columnName_param) != IS_STRING && Z_TYPE_P(columnName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'columnName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(columnName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(columnName_param) == IS_STRING)) { zephir_get_strval(&columnName, columnName_param); } else { ZEPHIR_INIT_VAR(&columnName); @@ -60316,21 +58809,21 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, addIndex) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &index); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(&tableName, tableName_param); } else { ZEPHIR_INIT_VAR(&tableName); ZVAL_EMPTY_STRING(&tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(&schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(&schemaName); @@ -60361,7 +58854,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, addIndex) { } ZEPHIR_CALL_METHOD(&_5, index, "getcolumns", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_4, this_ptr, "getcolumnlist", NULL, 54, &_5); + ZEPHIR_CALL_METHOD(&_4, this_ptr, "getcolumnlist", NULL, 48, &_5); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_6); ZEPHIR_CONCAT_VS(&_6, &_4, ")"); @@ -60383,31 +58876,31 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, dropIndex) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &indexName_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(&tableName, tableName_param); } else { ZEPHIR_INIT_VAR(&tableName); ZVAL_EMPTY_STRING(&tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(&schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(&schemaName); ZVAL_EMPTY_STRING(&schemaName); } - if (unlikely(Z_TYPE_P(indexName_param) != IS_STRING && Z_TYPE_P(indexName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(indexName_param) != IS_STRING && Z_TYPE_P(indexName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'indexName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(indexName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(indexName_param) == IS_STRING)) { zephir_get_strval(&indexName, indexName_param); } else { ZEPHIR_INIT_VAR(&indexName); @@ -60437,21 +58930,21 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, addPrimaryKey) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &index); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(&tableName, tableName_param); } else { ZEPHIR_INIT_VAR(&tableName); ZVAL_EMPTY_STRING(&tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(&schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(&schemaName); @@ -60476,21 +58969,21 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, dropPrimaryKey) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &tableName_param, &schemaName_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(&tableName, tableName_param); } else { ZEPHIR_INIT_VAR(&tableName); ZVAL_EMPTY_STRING(&tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(&schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(&schemaName); @@ -60516,21 +59009,21 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, addForeignKey) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &reference); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(&tableName, tableName_param); } else { ZEPHIR_INIT_VAR(&tableName); ZVAL_EMPTY_STRING(&tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(&schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(&schemaName); @@ -60556,31 +59049,31 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, dropForeignKey) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &referenceName_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(&tableName, tableName_param); } else { ZEPHIR_INIT_VAR(&tableName); ZVAL_EMPTY_STRING(&tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(&schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(&schemaName); ZVAL_EMPTY_STRING(&schemaName); } - if (unlikely(Z_TYPE_P(referenceName_param) != IS_STRING && Z_TYPE_P(referenceName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(referenceName_param) != IS_STRING && Z_TYPE_P(referenceName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'referenceName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(referenceName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(referenceName_param) == IS_STRING)) { zephir_get_strval(&referenceName, referenceName_param); } else { ZEPHIR_INIT_VAR(&referenceName); @@ -60655,21 +59148,21 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, createTable) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &definition_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(&tableName, tableName_param); } else { ZEPHIR_INIT_VAR(&tableName); ZVAL_EMPTY_STRING(&tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(&schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(&schemaName); @@ -60743,7 +59236,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, createTable) { } else { ZEPHIR_INIT_NVAR(&_10$$12); ZVAL_STRING(&_10$$12, "\""); - ZEPHIR_CALL_FUNCTION(&_11$$12, "addcslashes", &_12, 150, &defaultValue, &_10$$12); + ZEPHIR_CALL_FUNCTION(&_11$$12, "addcslashes", &_12, 137, &defaultValue, &_10$$12); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_13$$12); ZEPHIR_CONCAT_SVS(&_13$$12, " DEFAULT \"", &_11$$12, "\""); @@ -60782,7 +59275,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, createTable) { if (_16$$15) { ZEPHIR_CALL_METHOD(&_20$$16, &index, "getcolumns", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_19$$16, this_ptr, "getcolumnlist", &_21, 54, &_20$$16); + ZEPHIR_CALL_METHOD(&_19$$16, this_ptr, "getcolumnlist", &_21, 48, &_20$$16); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_22$$16); ZEPHIR_CONCAT_SVS(&_22$$16, "PRIMARY KEY (", &_19$$16, ")"); @@ -60790,7 +59283,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, createTable) { } else if (_17$$15) { ZEPHIR_CALL_METHOD(&_24$$17, &index, "getcolumns", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_23$$17, this_ptr, "getcolumnlist", &_21, 54, &_24$$17); + ZEPHIR_CALL_METHOD(&_23$$17, this_ptr, "getcolumnlist", &_21, 48, &_24$$17); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_25$$17); ZEPHIR_CONCAT_SVS(&_25$$17, "UNIQUE (", &_23$$17, ")"); @@ -60810,13 +59303,13 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, createTable) { zephir_check_call_status(); ZEPHIR_CALL_METHOD(&_29$$19, &reference, "getcolumns", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_28$$19, this_ptr, "getcolumnlist", &_21, 54, &_29$$19); + ZEPHIR_CALL_METHOD(&_28$$19, this_ptr, "getcolumnlist", &_21, 48, &_29$$19); zephir_check_call_status(); ZEPHIR_CALL_METHOD(&_30$$19, &reference, "getreferencedtable", NULL, 0); zephir_check_call_status(); ZEPHIR_CALL_METHOD(&_32$$19, &reference, "getreferencedcolumns", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_31$$19, this_ptr, "getcolumnlist", &_21, 54, &_32$$19); + ZEPHIR_CALL_METHOD(&_31$$19, this_ptr, "getcolumnlist", &_21, 48, &_32$$19); zephir_check_call_status(); ZEPHIR_INIT_NVAR(&referenceSql); ZEPHIR_CONCAT_SVSVSSVSVS(&referenceSql, "CONSTRAINT `", &_27$$19, "` FOREIGN KEY (", &_28$$19, ")", " REFERENCES `", &_30$$19, "`(", &_31$$19, ")"); @@ -60862,21 +59355,21 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, truncateTable) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &tableName_param, &schemaName_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(&tableName, tableName_param); } else { ZEPHIR_INIT_VAR(&tableName); ZVAL_EMPTY_STRING(&tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(&schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(&schemaName); @@ -60913,11 +59406,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, dropTable) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &tableName_param, &schemaName_param, &ifExists_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(&tableName, tableName_param); } else { ZEPHIR_INIT_VAR(&tableName); @@ -60932,7 +59425,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, dropTable) { if (!ifExists_param) { ifExists = 1; } else { - if (unlikely(Z_TYPE_P(ifExists_param) != IS_TRUE && Z_TYPE_P(ifExists_param) != IS_FALSE)) { + if (UNEXPECTED(Z_TYPE_P(ifExists_param) != IS_TRUE && Z_TYPE_P(ifExists_param) != IS_FALSE)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'ifExists' must be a bool") TSRMLS_CC); RETURN_MM_NULL(); } @@ -60969,11 +59462,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, createView) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 1, &viewName_param, &definition_param, &schemaName_param); - if (unlikely(Z_TYPE_P(viewName_param) != IS_STRING && Z_TYPE_P(viewName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(viewName_param) != IS_STRING && Z_TYPE_P(viewName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'viewName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(viewName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(viewName_param) == IS_STRING)) { zephir_get_strval(&viewName, viewName_param); } else { ZEPHIR_INIT_VAR(&viewName); @@ -61015,11 +59508,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, dropView) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &viewName_param, &schemaName_param, &ifExists_param); - if (unlikely(Z_TYPE_P(viewName_param) != IS_STRING && Z_TYPE_P(viewName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(viewName_param) != IS_STRING && Z_TYPE_P(viewName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'viewName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(viewName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(viewName_param) == IS_STRING)) { zephir_get_strval(&viewName, viewName_param); } else { ZEPHIR_INIT_VAR(&viewName); @@ -61034,7 +59527,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, dropView) { if (!ifExists_param) { ifExists = 1; } else { - if (unlikely(Z_TYPE_P(ifExists_param) != IS_TRUE && Z_TYPE_P(ifExists_param) != IS_FALSE)) { + if (UNEXPECTED(Z_TYPE_P(ifExists_param) != IS_TRUE && Z_TYPE_P(ifExists_param) != IS_FALSE)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'ifExists' must be a bool") TSRMLS_CC); RETURN_MM_NULL(); } @@ -61065,11 +59558,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, tableExists) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &tableName_param, &schemaName_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(&tableName, tableName_param); } else { ZEPHIR_INIT_VAR(&tableName); @@ -61100,11 +59593,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, viewExists) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &viewName_param, &schemaName_param); - if (unlikely(Z_TYPE_P(viewName_param) != IS_STRING && Z_TYPE_P(viewName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(viewName_param) != IS_STRING && Z_TYPE_P(viewName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'viewName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(viewName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(viewName_param) == IS_STRING)) { zephir_get_strval(&viewName, viewName_param); } else { ZEPHIR_INIT_VAR(&viewName); @@ -61135,11 +59628,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, describeColumns) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &table_param, &schema_param); - if (unlikely(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'table' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(table_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(table_param) == IS_STRING)) { zephir_get_strval(&table, table_param); } else { ZEPHIR_INIT_VAR(&table); @@ -61196,11 +59689,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, listViews) { ZEPHIR_INIT_VAR(&schemaName); ZVAL_STRING(&schemaName, ""); } else { - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(&schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(&schemaName); @@ -61232,11 +59725,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, listIndexesSql) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &table_param, &schema_param, &keyName_param); - if (unlikely(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'table' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(table_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(table_param) == IS_STRING)) { zephir_get_strval(&table, table_param); } else { ZEPHIR_INIT_VAR(&table); @@ -61256,13 +59749,13 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, listIndexesSql) { } - ZEPHIR_CALL_METHOD(&_0, this_ptr, "escape", NULL, 53, &table); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "escape", NULL, 47, &table); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_1); ZEPHIR_CONCAT_SVS(&_1, "SELECT sql FROM sqlite_master WHERE type = 'index' AND tbl_name = ", &_0, " COLLATE NOCASE"); zephir_get_strval(&sql, &_1); if (!(Z_TYPE_P(&keyName) == IS_UNDEF) && Z_STRLEN_P(&keyName)) { - ZEPHIR_CALL_METHOD(&_2$$3, this_ptr, "escape", NULL, 53, &keyName); + ZEPHIR_CALL_METHOD(&_2$$3, this_ptr, "escape", NULL, 47, &keyName); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_3$$3); ZEPHIR_CONCAT_SVS(&_3$$3, " AND name = ", &_2$$3, " COLLATE NOCASE"); @@ -61284,11 +59777,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, describeIndexes) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &table_param, &schema_param); - if (unlikely(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'table' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(table_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(table_param) == IS_STRING)) { zephir_get_strval(&table, table_param); } else { ZEPHIR_INIT_VAR(&table); @@ -61318,11 +59811,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, describeIndex) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &index_param); - if (unlikely(Z_TYPE_P(index_param) != IS_STRING && Z_TYPE_P(index_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(index_param) != IS_STRING && Z_TYPE_P(index_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'index' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(index_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(index_param) == IS_STRING)) { zephir_get_strval(&index, index_param); } else { ZEPHIR_INIT_VAR(&index); @@ -61347,11 +59840,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, describeReferences) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &table_param, &schema_param); - if (unlikely(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'table' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(table_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(table_param) == IS_STRING)) { zephir_get_strval(&table, table_param); } else { ZEPHIR_INIT_VAR(&table); @@ -61382,11 +59875,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, tableOptions) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &table_param, &schema_param); - if (unlikely(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'table' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(table_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(table_param) == IS_STRING)) { zephir_get_strval(&table, table_param); } else { ZEPHIR_INIT_VAR(&table); @@ -62114,14 +60607,13 @@ static PHP_METHOD(Phalcon_Debug_Dump, __construct) { static PHP_METHOD(Phalcon_Debug_Dump, all) { - zval _1, _2; + zval _1; zval _0; int ZEPHIR_LAST_CALL_STATUS; ZEPHIR_INIT_THIS(); ZVAL_UNDEF(&_0); ZVAL_UNDEF(&_1); - ZVAL_UNDEF(&_2); ZEPHIR_MM_GROW(); @@ -62131,9 +60623,9 @@ static PHP_METHOD(Phalcon_Debug_Dump, all) { ZEPHIR_INIT_VAR(&_1); ZVAL_STRING(&_1, "variables"); zephir_array_fast_append(&_0, &_1); - ZEPHIR_CALL_FUNCTION(&_2, "func_get_args", NULL, 173); - zephir_check_call_status(); - ZEPHIR_CALL_USER_FUNC_ARRAY(return_value, &_0, &_2); + ZEPHIR_INIT_NVAR(&_1); + zephir_get_args(&_1); + ZEPHIR_CALL_USER_FUNC_ARRAY(return_value, &_0, &_1); zephir_check_call_status(); RETURN_MM(); @@ -62152,11 +60644,11 @@ static PHP_METHOD(Phalcon_Debug_Dump, getStyle) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &type_param); - if (unlikely(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'type' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(type_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(type_param) == IS_STRING)) { zephir_get_strval(&type, type_param); } else { ZEPHIR_INIT_VAR(&type); @@ -62403,7 +60895,7 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { add_assoc_long_ex(&_1$$4, SL(":count"), zephir_fast_count_int(variable TSRMLS_CC)); ZEPHIR_INIT_NVAR(&_3$$4); ZVAL_STRING(&_3$$4, "Array (:count) (\n"); - ZEPHIR_CALL_FUNCTION(&_2$$4, "strtr", &_5, 26, &_3$$4, &_1$$4); + ZEPHIR_CALL_FUNCTION(&_2$$4, "strtr", &_5, 21, &_3$$4, &_1$$4); zephir_check_call_status(); zephir_concat_self(&output, &_2$$4 TSRMLS_CC); zephir_is_iterable(variable, 0, "phalcon/debug/dump.zep", 161); @@ -62418,7 +60910,7 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { ZEPHIR_INIT_NVAR(&value); ZVAL_COPY(&value, _6$$4); ZVAL_LONG(&_9$$5, tab); - ZEPHIR_CALL_FUNCTION(&_10$$5, "str_repeat", &_11, 139, &space, &_9$$5); + ZEPHIR_CALL_FUNCTION(&_10$$5, "str_repeat", &_11, 127, &space, &_9$$5); zephir_check_call_status(); ZEPHIR_INIT_NVAR(&_12$$5); zephir_create_array(&_12$$5, 2, 0 TSRMLS_CC); @@ -62430,7 +60922,7 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { zephir_array_update_string(&_12$$5, SL(":key"), &key, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_NVAR(&_14$$5); ZVAL_STRING(&_14$$5, "[:key] => "); - ZEPHIR_CALL_FUNCTION(&_13$$5, "strtr", &_5, 26, &_14$$5, &_12$$5); + ZEPHIR_CALL_FUNCTION(&_13$$5, "strtr", &_5, 21, &_14$$5, &_12$$5); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_15$$5); ZEPHIR_CONCAT_VV(&_15$$5, &_10$$5, &_13$$5); @@ -62453,7 +60945,7 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { ZEPHIR_INIT_NVAR(&_20$$7); ZVAL_STRING(&_20$$7, ""); ZVAL_LONG(&_21$$7, (tab + 1)); - ZEPHIR_CALL_METHOD(&_19$$7, this_ptr, "output", &_22, 174, &value, &_20$$7, &_21$$7); + ZEPHIR_CALL_METHOD(&_19$$7, this_ptr, "output", &_22, 157, &value, &_20$$7, &_21$$7); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_23$$7); ZEPHIR_CONCAT_VS(&_23$$7, &_19$$7, "\n"); @@ -62463,7 +60955,7 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { ZEPHIR_INIT_NVAR(&value); ZEPHIR_INIT_NVAR(&key); ZVAL_LONG(&_24$$4, (tab - 1)); - ZEPHIR_CALL_FUNCTION(&_25$$4, "str_repeat", &_11, 139, &space, &_24$$4); + ZEPHIR_CALL_FUNCTION(&_25$$4, "str_repeat", &_11, 127, &space, &_24$$4); zephir_check_call_status(); ZEPHIR_CONCAT_VVS(return_value, &output, &_25$$4, ")"); RETURN_MM(); @@ -62481,10 +60973,10 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { zephir_array_update_string(&_26$$8, SL(":class"), &_28$$8, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_NVAR(&_28$$8); ZVAL_STRING(&_28$$8, "Object :class"); - ZEPHIR_CALL_FUNCTION(&_27$$8, "strtr", &_5, 26, &_28$$8, &_26$$8); + ZEPHIR_CALL_FUNCTION(&_27$$8, "strtr", &_5, 21, &_28$$8, &_26$$8); zephir_check_call_status(); zephir_concat_self(&output, &_27$$8 TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_29$$8, "get_parent_class", &_30, 175, variable); + ZEPHIR_CALL_FUNCTION(&_29$$8, "get_parent_class", &_30, 158, variable); zephir_check_call_status(); if (zephir_is_true(&_29$$8)) { ZEPHIR_INIT_VAR(&_31$$9); @@ -62494,12 +60986,12 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { ZEPHIR_CALL_METHOD(&_32$$9, this_ptr, "getstyle", &_4, 0, &_33$$9); zephir_check_call_status(); zephir_array_update_string(&_31$$9, SL(":style"), &_32$$9, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_FUNCTION(&_32$$9, "get_parent_class", &_30, 175, variable); + ZEPHIR_CALL_FUNCTION(&_32$$9, "get_parent_class", &_30, 158, variable); zephir_check_call_status(); zephir_array_update_string(&_31$$9, SL(":parent"), &_32$$9, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_NVAR(&_33$$9); ZVAL_STRING(&_33$$9, " extends :parent"); - ZEPHIR_CALL_FUNCTION(&_32$$9, "strtr", &_5, 26, &_33$$9, &_31$$9); + ZEPHIR_CALL_FUNCTION(&_32$$9, "strtr", &_5, 21, &_33$$9, &_31$$9); zephir_check_call_status(); zephir_concat_self(&output, &_32$$9 TSRMLS_CC); } @@ -62507,13 +60999,13 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { zephir_read_property(&_34$$8, this_ptr, SL("_detailed"), PH_NOISY_CC | PH_READONLY); if (zephir_instance_of_ev(variable, phalcon_di_ce TSRMLS_CC)) { ZVAL_LONG(&_35$$10, tab); - ZEPHIR_CALL_FUNCTION(&_36$$10, "str_repeat", &_11, 139, &space, &_35$$10); + ZEPHIR_CALL_FUNCTION(&_36$$10, "str_repeat", &_11, 127, &space, &_35$$10); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_37$$10); ZEPHIR_CONCAT_VS(&_37$$10, &_36$$10, "[skipped]\n"); zephir_concat_self(&output, &_37$$10 TSRMLS_CC); } else if (!(zephir_is_true(&_34$$8))) { - ZEPHIR_CALL_FUNCTION(&_38$$11, "get_object_vars", NULL, 21, variable); + ZEPHIR_CALL_FUNCTION(&_38$$11, "get_object_vars", NULL, 16, variable); zephir_check_call_status(); zephir_is_iterable(&_38$$11, 0, "phalcon/debug/dump.zep", 194); ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&_38$$11), _40$$11, _41$$11, _39$$11) @@ -62527,7 +61019,7 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { ZEPHIR_INIT_NVAR(&value); ZVAL_COPY(&value, _39$$11); ZVAL_LONG(&_42$$12, tab); - ZEPHIR_CALL_FUNCTION(&_43$$12, "str_repeat", &_11, 139, &space, &_42$$12); + ZEPHIR_CALL_FUNCTION(&_43$$12, "str_repeat", &_11, 127, &space, &_42$$12); zephir_check_call_status(); ZEPHIR_INIT_NVAR(&_44$$12); zephir_create_array(&_44$$12, 3, 0 TSRMLS_CC); @@ -62540,7 +61032,7 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { add_assoc_stringl_ex(&_44$$12, SL(":type"), SL("public")); ZEPHIR_INIT_NVAR(&_46$$12); ZVAL_STRING(&_46$$12, "->:key (:type) = "); - ZEPHIR_CALL_FUNCTION(&_45$$12, "strtr", &_5, 26, &_46$$12, &_44$$12); + ZEPHIR_CALL_FUNCTION(&_45$$12, "strtr", &_5, 21, &_46$$12, &_44$$12); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_47$$12); ZEPHIR_CONCAT_VV(&_47$$12, &_43$$12, &_45$$12); @@ -62548,7 +61040,7 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { ZEPHIR_INIT_NVAR(&_46$$12); ZVAL_STRING(&_46$$12, ""); ZVAL_LONG(&_42$$12, (tab + 1)); - ZEPHIR_CALL_METHOD(&_48$$12, this_ptr, "output", &_22, 174, &value, &_46$$12, &_42$$12); + ZEPHIR_CALL_METHOD(&_48$$12, this_ptr, "output", &_22, 157, &value, &_46$$12, &_42$$12); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_49$$12); ZEPHIR_CONCAT_VS(&_49$$12, &_48$$12, "\n"); @@ -62559,7 +61051,7 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { } else { do { ZEPHIR_MAKE_REF(variable); - ZEPHIR_CALL_FUNCTION(&attr, "each", &_50, 176, variable); + ZEPHIR_CALL_FUNCTION(&attr, "each", &_50, 159, variable); ZEPHIR_UNREF(variable); zephir_check_call_status(); if (!(zephir_is_true(&attr))) { @@ -62574,7 +61066,7 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { } ZEPHIR_INIT_NVAR(&_51$$14); ZVAL_LONG(&_52$$14, 0); - ZEPHIR_CALL_FUNCTION(&_53$$14, "chr", &_54, 138, &_52$$14); + ZEPHIR_CALL_FUNCTION(&_53$$14, "chr", &_54, 126, &_52$$14); zephir_check_call_status(); zephir_fast_explode(&_51$$14, &_53$$14, &key, LONG_MAX TSRMLS_CC); ZEPHIR_CPY_WRT(&key, &_51$$14); @@ -62590,7 +61082,7 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { } } ZVAL_LONG(&_52$$14, tab); - ZEPHIR_CALL_FUNCTION(&_56$$14, "str_repeat", &_11, 139, &space, &_52$$14); + ZEPHIR_CALL_FUNCTION(&_56$$14, "str_repeat", &_11, 127, &space, &_52$$14); zephir_check_call_status(); ZEPHIR_INIT_NVAR(&_57$$14); zephir_create_array(&_57$$14, 3, 0 TSRMLS_CC); @@ -62600,14 +61092,14 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { zephir_check_call_status(); zephir_array_update_string(&_57$$14, SL(":style"), &_58$$14, PH_COPY | PH_SEPARATE); ZEPHIR_MAKE_REF(&key); - ZEPHIR_CALL_FUNCTION(&_58$$14, "end", &_59, 177, &key); + ZEPHIR_CALL_FUNCTION(&_58$$14, "end", &_59, 160, &key); ZEPHIR_UNREF(&key); zephir_check_call_status(); zephir_array_update_string(&_57$$14, SL(":key"), &_58$$14, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_57$$14, SL(":type"), &type, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_NVAR(&_51$$14); ZVAL_STRING(&_51$$14, "->:key (:type) = "); - ZEPHIR_CALL_FUNCTION(&_58$$14, "strtr", &_5, 26, &_51$$14, &_57$$14); + ZEPHIR_CALL_FUNCTION(&_58$$14, "strtr", &_5, 21, &_51$$14, &_57$$14); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_60$$14); ZEPHIR_CONCAT_VV(&_60$$14, &_56$$14, &_58$$14); @@ -62615,17 +61107,17 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { ZEPHIR_INIT_NVAR(&_51$$14); ZVAL_STRING(&_51$$14, ""); ZVAL_LONG(&_52$$14, (tab + 1)); - ZEPHIR_CALL_METHOD(&_61$$14, this_ptr, "output", &_22, 174, &value, &_51$$14, &_52$$14); + ZEPHIR_CALL_METHOD(&_61$$14, this_ptr, "output", &_22, 157, &value, &_51$$14, &_52$$14); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_62$$14); ZEPHIR_CONCAT_VS(&_62$$14, &_61$$14, "\n"); zephir_concat_self(&output, &_62$$14 TSRMLS_CC); } while (zephir_is_true(&attr)); } - ZEPHIR_CALL_FUNCTION(&attr, "get_class_methods", NULL, 178, variable); + ZEPHIR_CALL_FUNCTION(&attr, "get_class_methods", NULL, 161, variable); zephir_check_call_status(); ZVAL_LONG(&_63$$8, tab); - ZEPHIR_CALL_FUNCTION(&_64$$8, "str_repeat", &_11, 139, &space, &_63$$8); + ZEPHIR_CALL_FUNCTION(&_64$$8, "str_repeat", &_11, 127, &space, &_63$$8); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_65$$8); zephir_create_array(&_65$$8, 3, 0 TSRMLS_CC); @@ -62640,7 +61132,7 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { add_assoc_long_ex(&_65$$8, SL(":count"), zephir_fast_count_int(&attr TSRMLS_CC)); ZEPHIR_INIT_NVAR(&_28$$8); ZVAL_STRING(&_28$$8, ":class methods: (:count) (\n"); - ZEPHIR_CALL_FUNCTION(&_66$$8, "strtr", &_5, 26, &_28$$8, &_65$$8); + ZEPHIR_CALL_FUNCTION(&_66$$8, "strtr", &_5, 21, &_28$$8, &_65$$8); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_67$$8); ZEPHIR_CONCAT_VV(&_67$$8, &_64$$8, &_66$$8); @@ -62650,7 +61142,7 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { zephir_read_property(&_63$$8, this_ptr, SL("_methods"), PH_NOISY_CC | PH_READONLY); if (zephir_fast_in_array(&_28$$8, &_63$$8 TSRMLS_CC)) { ZVAL_LONG(&_68$$19, tab); - ZEPHIR_CALL_FUNCTION(&_69$$19, "str_repeat", &_11, 139, &space, &_68$$19); + ZEPHIR_CALL_FUNCTION(&_69$$19, "str_repeat", &_11, 127, &space, &_68$$19); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_70$$19); ZEPHIR_CONCAT_VS(&_70$$19, &_69$$19, "[already listed]\n"); @@ -62666,7 +61158,7 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { zephir_update_property_array_append(this_ptr, SL("_methods"), &_72$$21 TSRMLS_CC); if (ZEPHIR_IS_STRING(&value, "__construct")) { ZVAL_LONG(&_73$$22, (tab + 1)); - ZEPHIR_CALL_FUNCTION(&_74$$22, "str_repeat", &_11, 139, &space, &_73$$22); + ZEPHIR_CALL_FUNCTION(&_74$$22, "str_repeat", &_11, 127, &space, &_73$$22); zephir_check_call_status(); ZEPHIR_INIT_NVAR(&_75$$22); zephir_create_array(&_75$$22, 2, 0 TSRMLS_CC); @@ -62678,14 +61170,14 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { zephir_array_update_string(&_75$$22, SL(":method"), &value, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_NVAR(&_77$$22); ZVAL_STRING(&_77$$22, "->:method(); [constructor]\n"); - ZEPHIR_CALL_FUNCTION(&_76$$22, "strtr", &_5, 26, &_77$$22, &_75$$22); + ZEPHIR_CALL_FUNCTION(&_76$$22, "strtr", &_5, 21, &_77$$22, &_75$$22); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_78$$22); ZEPHIR_CONCAT_VV(&_78$$22, &_74$$22, &_76$$22); zephir_concat_self(&output, &_78$$22 TSRMLS_CC); } else { ZVAL_LONG(&_79$$23, (tab + 1)); - ZEPHIR_CALL_FUNCTION(&_80$$23, "str_repeat", &_11, 139, &space, &_79$$23); + ZEPHIR_CALL_FUNCTION(&_80$$23, "str_repeat", &_11, 127, &space, &_79$$23); zephir_check_call_status(); ZEPHIR_INIT_NVAR(&_81$$23); zephir_create_array(&_81$$23, 2, 0 TSRMLS_CC); @@ -62697,7 +61189,7 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { zephir_array_update_string(&_81$$23, SL(":method"), &value, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_NVAR(&_83$$23); ZVAL_STRING(&_83$$23, "->:method();\n"); - ZEPHIR_CALL_FUNCTION(&_82$$23, "strtr", &_5, 26, &_83$$23, &_81$$23); + ZEPHIR_CALL_FUNCTION(&_82$$23, "strtr", &_5, 21, &_83$$23, &_81$$23); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_84$$23); ZEPHIR_CONCAT_VV(&_84$$23, &_80$$23, &_82$$23); @@ -62706,14 +61198,14 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { } ZEND_HASH_FOREACH_END(); ZEPHIR_INIT_NVAR(&value); ZVAL_LONG(&_85$$20, tab); - ZEPHIR_CALL_FUNCTION(&_86$$20, "str_repeat", &_11, 139, &space, &_85$$20); + ZEPHIR_CALL_FUNCTION(&_86$$20, "str_repeat", &_11, 127, &space, &_85$$20); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_87$$20); ZEPHIR_CONCAT_VS(&_87$$20, &_86$$20, ")\n"); zephir_concat_self(&output, &_87$$20 TSRMLS_CC); } ZVAL_LONG(&_88$$8, (tab - 1)); - ZEPHIR_CALL_FUNCTION(&_89$$8, "str_repeat", &_11, 139, &space, &_88$$8); + ZEPHIR_CALL_FUNCTION(&_89$$8, "str_repeat", &_11, 127, &space, &_88$$8); zephir_check_call_status(); ZEPHIR_CONCAT_VVS(return_value, &output, &_89$$8, ")"); RETURN_MM(); @@ -62729,12 +61221,12 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { zephir_array_update_string(&_90$$24, SL(":var"), variable, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_NVAR(&_92$$24); ZVAL_STRING(&_92$$24, "Integer (:var)"); - ZEPHIR_CALL_FUNCTION(&_91$$24, "strtr", &_5, 26, &_92$$24, &_90$$24); + ZEPHIR_CALL_FUNCTION(&_91$$24, "strtr", &_5, 21, &_92$$24, &_90$$24); zephir_check_call_status(); ZEPHIR_CONCAT_VV(return_value, &output, &_91$$24); RETURN_MM(); } - ZEPHIR_CALL_FUNCTION(&_93, "is_float", NULL, 179, variable); + ZEPHIR_CALL_FUNCTION(&_93, "is_float", NULL, 162, variable); zephir_check_call_status(); if (zephir_is_true(&_93)) { ZEPHIR_INIT_VAR(&_94$$25); @@ -62747,7 +61239,7 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { zephir_array_update_string(&_94$$25, SL(":var"), variable, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_NVAR(&_96$$25); ZVAL_STRING(&_96$$25, "Float (:var)"); - ZEPHIR_CALL_FUNCTION(&_95$$25, "strtr", &_5, 26, &_96$$25, &_94$$25); + ZEPHIR_CALL_FUNCTION(&_95$$25, "strtr", &_5, 21, &_96$$25, &_94$$25); zephir_check_call_status(); ZEPHIR_CONCAT_VV(return_value, &output, &_95$$25); RETURN_MM(); @@ -62764,7 +61256,7 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { zephir_array_update_string(&_97$$26, SL(":var"), variable, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_NVAR(&_99$$26); ZVAL_STRING(&_99$$26, "Numeric string (:length) \":var\""); - ZEPHIR_CALL_FUNCTION(&_98$$26, "strtr", &_5, 26, &_99$$26, &_97$$26); + ZEPHIR_CALL_FUNCTION(&_98$$26, "strtr", &_5, 21, &_99$$26, &_97$$26); zephir_check_call_status(); ZEPHIR_CONCAT_VV(return_value, &output, &_98$$26); RETURN_MM(); @@ -62781,14 +61273,14 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { ZVAL_LONG(&_103$$27, 4); ZEPHIR_INIT_NVAR(&_102$$27); ZVAL_STRING(&_102$$27, "utf-8"); - ZEPHIR_CALL_FUNCTION(&_101$$27, "htmlentities", NULL, 158, variable, &_103$$27, &_102$$27); + ZEPHIR_CALL_FUNCTION(&_101$$27, "htmlentities", NULL, 145, variable, &_103$$27, &_102$$27); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_104$$27, "nl2br", NULL, 180, &_101$$27); + ZEPHIR_CALL_FUNCTION(&_104$$27, "nl2br", NULL, 163, &_101$$27); zephir_check_call_status(); zephir_array_update_string(&_100$$27, SL(":var"), &_104$$27, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_NVAR(&_102$$27); ZVAL_STRING(&_102$$27, "String (:length) \":var\""); - ZEPHIR_CALL_FUNCTION(&_104$$27, "strtr", &_5, 26, &_102$$27, &_100$$27); + ZEPHIR_CALL_FUNCTION(&_104$$27, "strtr", &_5, 21, &_102$$27, &_100$$27); zephir_check_call_status(); ZEPHIR_CONCAT_VV(return_value, &output, &_104$$27); RETURN_MM(); @@ -62812,7 +61304,7 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { zephir_array_update_string(&_105$$28, SL(":var"), &_108$$28, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_NVAR(&_107$$28); ZVAL_STRING(&_107$$28, "Boolean (:var)"); - ZEPHIR_CALL_FUNCTION(&_106$$28, "strtr", &_5, 26, &_107$$28, &_105$$28); + ZEPHIR_CALL_FUNCTION(&_106$$28, "strtr", &_5, 21, &_107$$28, &_105$$28); zephir_check_call_status(); ZEPHIR_CONCAT_VV(return_value, &output, &_106$$28); RETURN_MM(); @@ -62827,7 +61319,7 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { zephir_array_update_string(&_109$$29, SL(":style"), &_110$$29, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_NVAR(&_111$$29); ZVAL_STRING(&_111$$29, "NULL"); - ZEPHIR_CALL_FUNCTION(&_110$$29, "strtr", &_5, 26, &_111$$29, &_109$$29); + ZEPHIR_CALL_FUNCTION(&_110$$29, "strtr", &_5, 21, &_111$$29, &_109$$29); zephir_check_call_status(); ZEPHIR_CONCAT_VV(return_value, &output, &_110$$29); RETURN_MM(); @@ -62842,7 +61334,7 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { zephir_array_update_string(&_112, SL(":var"), variable, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_NVAR(&_114); ZVAL_STRING(&_114, "(:var)"); - ZEPHIR_CALL_FUNCTION(&_113, "strtr", &_5, 26, &_114, &_112); + ZEPHIR_CALL_FUNCTION(&_113, "strtr", &_5, 21, &_114, &_112); zephir_check_call_status(); ZEPHIR_CONCAT_VV(return_value, &output, &_113); RETURN_MM(); @@ -62886,7 +61378,7 @@ static PHP_METHOD(Phalcon_Debug_Dump, variable) { zephir_array_update_string(&_0, SL(":output"), &_1, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_NVAR(&_2); ZVAL_STRING(&_2, "
:output
"); - ZEPHIR_RETURN_CALL_FUNCTION("strtr", NULL, 26, &_2, &_0); + ZEPHIR_RETURN_CALL_FUNCTION("strtr", NULL, 21, &_2, &_0); zephir_check_call_status(); RETURN_MM(); @@ -62912,8 +61404,8 @@ static PHP_METHOD(Phalcon_Debug_Dump, variables) { ZEPHIR_INIT_VAR(&output); ZVAL_STRING(&output, ""); - ZEPHIR_CALL_FUNCTION(&_0, "func_get_args", NULL, 173); - zephir_check_call_status(); + ZEPHIR_INIT_VAR(&_0); + zephir_get_args(&_0); zephir_is_iterable(&_0, 0, "phalcon/debug/dump.zep", 315); ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&_0), _2, _3, _1) { @@ -63048,7 +61540,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZEPHIR_MM_GROW(); - ZEPHIR_CALL_PARENT(NULL, phalcon_di_factorydefault_ce, this_ptr, "__construct", &_0, 76); + ZEPHIR_CALL_PARENT(NULL, phalcon_di_factorydefault_ce, this_ptr, "__construct", &_0, 0); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_1); zephir_create_array(&_1, 21, 0 TSRMLS_CC); @@ -63059,7 +61551,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZEPHIR_INIT_VAR(&_4); ZVAL_STRING(&_4, "Phalcon\\Mvc\\Router"); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 67, &_3, &_4, &_5); + ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 61, &_3, &_4, &_5); zephir_check_call_status(); zephir_array_update_string(&_1, SL("router"), &_2, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_NVAR(&_2); @@ -63069,7 +61561,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZEPHIR_INIT_NVAR(&_4); ZVAL_STRING(&_4, "Phalcon\\Mvc\\Dispatcher"); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 67, &_3, &_4, &_5); + ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 61, &_3, &_4, &_5); zephir_check_call_status(); zephir_array_update_string(&_1, SL("dispatcher"), &_2, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_NVAR(&_2); @@ -63079,7 +61571,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZEPHIR_INIT_NVAR(&_4); ZVAL_STRING(&_4, "Phalcon\\Mvc\\Url"); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 67, &_3, &_4, &_5); + ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 61, &_3, &_4, &_5); zephir_check_call_status(); zephir_array_update_string(&_1, SL("url"), &_2, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_NVAR(&_2); @@ -63089,7 +61581,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZEPHIR_INIT_NVAR(&_4); ZVAL_STRING(&_4, "Phalcon\\Mvc\\Model\\Manager"); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 67, &_3, &_4, &_5); + ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 61, &_3, &_4, &_5); zephir_check_call_status(); zephir_array_update_string(&_1, SL("modelsManager"), &_2, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_NVAR(&_2); @@ -63099,7 +61591,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZEPHIR_INIT_NVAR(&_4); ZVAL_STRING(&_4, "Phalcon\\Mvc\\Model\\MetaData\\Memory"); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 67, &_3, &_4, &_5); + ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 61, &_3, &_4, &_5); zephir_check_call_status(); zephir_array_update_string(&_1, SL("modelsMetadata"), &_2, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_NVAR(&_2); @@ -63109,7 +61601,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZEPHIR_INIT_NVAR(&_4); ZVAL_STRING(&_4, "Phalcon\\Http\\Response"); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 67, &_3, &_4, &_5); + ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 61, &_3, &_4, &_5); zephir_check_call_status(); zephir_array_update_string(&_1, SL("response"), &_2, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_NVAR(&_2); @@ -63119,7 +61611,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZEPHIR_INIT_NVAR(&_4); ZVAL_STRING(&_4, "Phalcon\\Http\\Response\\Cookies"); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 67, &_3, &_4, &_5); + ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 61, &_3, &_4, &_5); zephir_check_call_status(); zephir_array_update_string(&_1, SL("cookies"), &_2, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_NVAR(&_2); @@ -63129,7 +61621,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZEPHIR_INIT_NVAR(&_4); ZVAL_STRING(&_4, "Phalcon\\Http\\Request"); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 67, &_3, &_4, &_5); + ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 61, &_3, &_4, &_5); zephir_check_call_status(); zephir_array_update_string(&_1, SL("request"), &_2, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_NVAR(&_2); @@ -63139,7 +61631,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZEPHIR_INIT_NVAR(&_4); ZVAL_STRING(&_4, "Phalcon\\Filter"); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 67, &_3, &_4, &_5); + ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 61, &_3, &_4, &_5); zephir_check_call_status(); zephir_array_update_string(&_1, SL("filter"), &_2, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_NVAR(&_2); @@ -63149,7 +61641,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZEPHIR_INIT_NVAR(&_4); ZVAL_STRING(&_4, "Phalcon\\Escaper"); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 67, &_3, &_4, &_5); + ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 61, &_3, &_4, &_5); zephir_check_call_status(); zephir_array_update_string(&_1, SL("escaper"), &_2, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_NVAR(&_2); @@ -63159,7 +61651,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZEPHIR_INIT_NVAR(&_4); ZVAL_STRING(&_4, "Phalcon\\Security"); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 67, &_3, &_4, &_5); + ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 61, &_3, &_4, &_5); zephir_check_call_status(); zephir_array_update_string(&_1, SL("security"), &_2, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_NVAR(&_2); @@ -63169,7 +61661,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZEPHIR_INIT_NVAR(&_4); ZVAL_STRING(&_4, "Phalcon\\Crypt"); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 67, &_3, &_4, &_5); + ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 61, &_3, &_4, &_5); zephir_check_call_status(); zephir_array_update_string(&_1, SL("crypt"), &_2, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_NVAR(&_2); @@ -63179,7 +61671,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZEPHIR_INIT_NVAR(&_4); ZVAL_STRING(&_4, "Phalcon\\Annotations\\Adapter\\Memory"); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 67, &_3, &_4, &_5); + ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 61, &_3, &_4, &_5); zephir_check_call_status(); zephir_array_update_string(&_1, SL("annotations"), &_2, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_NVAR(&_2); @@ -63189,7 +61681,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZEPHIR_INIT_NVAR(&_4); ZVAL_STRING(&_4, "Phalcon\\Flash\\Direct"); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 67, &_3, &_4, &_5); + ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 61, &_3, &_4, &_5); zephir_check_call_status(); zephir_array_update_string(&_1, SL("flash"), &_2, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_NVAR(&_2); @@ -63199,7 +61691,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZEPHIR_INIT_NVAR(&_4); ZVAL_STRING(&_4, "Phalcon\\Flash\\Session"); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 67, &_3, &_4, &_5); + ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 61, &_3, &_4, &_5); zephir_check_call_status(); zephir_array_update_string(&_1, SL("flashSession"), &_2, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_NVAR(&_2); @@ -63209,7 +61701,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZEPHIR_INIT_NVAR(&_4); ZVAL_STRING(&_4, "Phalcon\\Tag"); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 67, &_3, &_4, &_5); + ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 61, &_3, &_4, &_5); zephir_check_call_status(); zephir_array_update_string(&_1, SL("tag"), &_2, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_NVAR(&_2); @@ -63219,7 +61711,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZEPHIR_INIT_NVAR(&_4); ZVAL_STRING(&_4, "Phalcon\\Session\\Adapter\\Files"); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 67, &_3, &_4, &_5); + ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 61, &_3, &_4, &_5); zephir_check_call_status(); zephir_array_update_string(&_1, SL("session"), &_2, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_NVAR(&_2); @@ -63228,7 +61720,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZVAL_STRING(&_3, "sessionBag"); ZEPHIR_INIT_NVAR(&_4); ZVAL_STRING(&_4, "Phalcon\\Session\\Bag"); - ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 67, &_3, &_4); + ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 61, &_3, &_4); zephir_check_call_status(); zephir_array_update_string(&_1, SL("sessionBag"), &_2, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_NVAR(&_2); @@ -63238,7 +61730,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZEPHIR_INIT_NVAR(&_4); ZVAL_STRING(&_4, "Phalcon\\Events\\Manager"); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 67, &_3, &_4, &_5); + ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 61, &_3, &_4, &_5); zephir_check_call_status(); zephir_array_update_string(&_1, SL("eventsManager"), &_2, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_NVAR(&_2); @@ -63248,7 +61740,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZEPHIR_INIT_NVAR(&_4); ZVAL_STRING(&_4, "Phalcon\\Mvc\\Model\\Transaction\\Manager"); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 67, &_3, &_4, &_5); + ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 61, &_3, &_4, &_5); zephir_check_call_status(); zephir_array_update_string(&_1, SL("transactionManager"), &_2, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_NVAR(&_2); @@ -63258,7 +61750,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZEPHIR_INIT_NVAR(&_4); ZVAL_STRING(&_4, "Phalcon\\Assets\\Manager"); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 67, &_3, &_4, &_5); + ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 61, &_3, &_4, &_5); zephir_check_call_status(); zephir_array_update_string(&_1, SL("assets"), &_2, PH_COPY | PH_SEPARATE); zephir_update_property_zval(this_ptr, SL("_services"), &_1); @@ -63319,7 +61811,7 @@ static PHP_METHOD(Phalcon_Di_Injectable, getDI) { ZEPHIR_OBS_VAR(&dependencyInjector); zephir_read_property(&dependencyInjector, this_ptr, SL("_dependencyInjector"), PH_NOISY_CC); if (Z_TYPE_P(&dependencyInjector) != IS_OBJECT) { - ZEPHIR_CALL_CE_STATIC(&dependencyInjector, phalcon_di_ce, "getdefault", &_0, 1); + ZEPHIR_CALL_CE_STATIC(&dependencyInjector, phalcon_di_ce, "getdefault", &_0, 0); zephir_check_call_status(); } RETURN_CCTOR(dependencyInjector); @@ -63373,11 +61865,11 @@ static PHP_METHOD(Phalcon_Di_Injectable, __get) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &propertyName_param); - if (unlikely(Z_TYPE_P(propertyName_param) != IS_STRING && Z_TYPE_P(propertyName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(propertyName_param) != IS_STRING && Z_TYPE_P(propertyName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'propertyName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(propertyName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(propertyName_param) == IS_STRING)) { zephir_get_strval(&propertyName, propertyName_param); } else { ZEPHIR_INIT_VAR(&propertyName); @@ -63388,7 +61880,7 @@ static PHP_METHOD(Phalcon_Di_Injectable, __get) { zephir_read_property(&_0, this_ptr, SL("_dependencyInjector"), PH_NOISY_CC | PH_READONLY); ZEPHIR_CPY_WRT(&dependencyInjector, &_0); if (Z_TYPE_P(&dependencyInjector) != IS_OBJECT) { - ZEPHIR_CALL_CE_STATIC(&dependencyInjector, phalcon_di_ce, "getdefault", &_1, 1); + ZEPHIR_CALL_CE_STATIC(&dependencyInjector, phalcon_di_ce, "getdefault", &_1, 0); zephir_check_call_status(); if (Z_TYPE_P(&dependencyInjector) != IS_OBJECT) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_di_exception_ce, "A dependency injection object is required to access the application services", "phalcon/di/injectable.zep", 127); @@ -63423,7 +61915,7 @@ static PHP_METHOD(Phalcon_Di_Injectable, __get) { } ZEPHIR_INIT_VAR(&_6); ZEPHIR_CONCAT_SV(&_6, "Access to undefined property ", &propertyName); - ZEPHIR_CALL_FUNCTION(NULL, "trigger_error", NULL, 2, &_6); + ZEPHIR_CALL_FUNCTION(NULL, "trigger_error", NULL, 1, &_6); zephir_check_call_status(); RETURN_MM_NULL(); @@ -63495,11 +61987,11 @@ static PHP_METHOD(Phalcon_Di_Service, __construct) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 1, &name_param, &definition, &shared_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(&name, name_param); } else { ZEPHIR_INIT_VAR(&name); @@ -63701,7 +62193,7 @@ static PHP_METHOD(Phalcon_Di_Service, resolve) { ZEPHIR_CALL_METHOD(NULL, &builder, "__construct", NULL, 0); zephir_check_call_status(); } - ZEPHIR_CALL_METHOD(&instance, &builder, "build", NULL, 182, dependencyInjector, &definition, parameters); + ZEPHIR_CALL_METHOD(&instance, &builder, "build", NULL, 164, dependencyInjector, &definition, parameters); zephir_check_call_status(); } else { found = 0; @@ -63714,7 +62206,7 @@ static PHP_METHOD(Phalcon_Di_Service, resolve) { zephir_read_property(&_3$$22, this_ptr, SL("_name"), PH_NOISY_CC | PH_READONLY); ZEPHIR_INIT_VAR(&_4$$22); ZEPHIR_CONCAT_SVS(&_4$$22, "Service '", &_3$$22, "' cannot be resolved"); - ZEPHIR_CALL_METHOD(NULL, &_2$$22, "__construct", NULL, 9, &_4$$22); + ZEPHIR_CALL_METHOD(NULL, &_2$$22, "__construct", NULL, 4, &_4$$22); zephir_check_call_status(); zephir_throw_exception_debug(&_2$$22, "phalcon/di/service.zep", 208 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -63844,7 +62336,7 @@ static PHP_METHOD(Phalcon_Di_Service, __set_state) { return; } object_init_ex(return_value, phalcon_di_service_ce); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 67, &name, &definition, &shared); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 61, &name, &definition, &shared); zephir_check_call_status(); RETURN_MM(); @@ -63918,7 +62410,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault_Cli, __construct) { ZEPHIR_MM_GROW(); - ZEPHIR_CALL_PARENT(NULL, phalcon_di_factorydefault_cli_ce, this_ptr, "__construct", &_0, 181); + ZEPHIR_CALL_PARENT(NULL, phalcon_di_factorydefault_cli_ce, this_ptr, "__construct", &_0, 0); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_1); zephir_create_array(&_1, 10, 0 TSRMLS_CC); @@ -63929,7 +62421,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault_Cli, __construct) { ZEPHIR_INIT_VAR(&_4); ZVAL_STRING(&_4, "Phalcon\\Cli\\Router"); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 67, &_3, &_4, &_5); + ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 61, &_3, &_4, &_5); zephir_check_call_status(); zephir_array_update_string(&_1, SL("router"), &_2, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_NVAR(&_2); @@ -63939,7 +62431,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault_Cli, __construct) { ZEPHIR_INIT_NVAR(&_4); ZVAL_STRING(&_4, "Phalcon\\Cli\\Dispatcher"); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 67, &_3, &_4, &_5); + ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 61, &_3, &_4, &_5); zephir_check_call_status(); zephir_array_update_string(&_1, SL("dispatcher"), &_2, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_NVAR(&_2); @@ -63949,7 +62441,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault_Cli, __construct) { ZEPHIR_INIT_NVAR(&_4); ZVAL_STRING(&_4, "Phalcon\\Mvc\\Model\\Manager"); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 67, &_3, &_4, &_5); + ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 61, &_3, &_4, &_5); zephir_check_call_status(); zephir_array_update_string(&_1, SL("modelsManager"), &_2, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_NVAR(&_2); @@ -63959,7 +62451,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault_Cli, __construct) { ZEPHIR_INIT_NVAR(&_4); ZVAL_STRING(&_4, "Phalcon\\Mvc\\Model\\MetaData\\Memory"); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 67, &_3, &_4, &_5); + ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 61, &_3, &_4, &_5); zephir_check_call_status(); zephir_array_update_string(&_1, SL("modelsMetadata"), &_2, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_NVAR(&_2); @@ -63969,7 +62461,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault_Cli, __construct) { ZEPHIR_INIT_NVAR(&_4); ZVAL_STRING(&_4, "Phalcon\\Filter"); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 67, &_3, &_4, &_5); + ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 61, &_3, &_4, &_5); zephir_check_call_status(); zephir_array_update_string(&_1, SL("filter"), &_2, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_NVAR(&_2); @@ -63979,7 +62471,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault_Cli, __construct) { ZEPHIR_INIT_NVAR(&_4); ZVAL_STRING(&_4, "Phalcon\\Escaper"); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 67, &_3, &_4, &_5); + ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 61, &_3, &_4, &_5); zephir_check_call_status(); zephir_array_update_string(&_1, SL("escaper"), &_2, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_NVAR(&_2); @@ -63989,7 +62481,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault_Cli, __construct) { ZEPHIR_INIT_NVAR(&_4); ZVAL_STRING(&_4, "Phalcon\\Annotations\\Adapter\\Memory"); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 67, &_3, &_4, &_5); + ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 61, &_3, &_4, &_5); zephir_check_call_status(); zephir_array_update_string(&_1, SL("annotations"), &_2, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_NVAR(&_2); @@ -63999,7 +62491,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault_Cli, __construct) { ZEPHIR_INIT_NVAR(&_4); ZVAL_STRING(&_4, "Phalcon\\Security"); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 67, &_3, &_4, &_5); + ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 61, &_3, &_4, &_5); zephir_check_call_status(); zephir_array_update_string(&_1, SL("security"), &_2, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_NVAR(&_2); @@ -64009,7 +62501,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault_Cli, __construct) { ZEPHIR_INIT_NVAR(&_4); ZVAL_STRING(&_4, "Phalcon\\Events\\Manager"); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 67, &_3, &_4, &_5); + ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 61, &_3, &_4, &_5); zephir_check_call_status(); zephir_array_update_string(&_1, SL("eventsManager"), &_2, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_NVAR(&_2); @@ -64019,7 +62511,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault_Cli, __construct) { ZEPHIR_INIT_NVAR(&_4); ZVAL_STRING(&_4, "Phalcon\\Mvc\\Model\\Transaction\\Manager"); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 67, &_3, &_4, &_5); + ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 61, &_3, &_4, &_5); zephir_check_call_status(); zephir_array_update_string(&_1, SL("transactionManager"), &_2, PH_COPY | PH_SEPARATE); zephir_update_property_zval(this_ptr, SL("_services"), &_1); @@ -64090,7 +62582,7 @@ static PHP_METHOD(Phalcon_Di_Service_Builder, _buildParameter) { ZVAL_LONG(&_1$$3, position); ZEPHIR_INIT_VAR(&_2$$3); ZEPHIR_CONCAT_SVS(&_2$$3, "Argument at position ", &_1$$3, " must have a type"); - ZEPHIR_CALL_METHOD(NULL, &_0$$3, "__construct", NULL, 9, &_2$$3); + ZEPHIR_CALL_METHOD(NULL, &_0$$3, "__construct", NULL, 4, &_2$$3); zephir_check_call_status(); zephir_throw_exception_debug(&_0$$3, "phalcon/di/service/builder.zep", 49 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -64106,7 +62598,7 @@ static PHP_METHOD(Phalcon_Di_Service_Builder, _buildParameter) { ZVAL_LONG(&_4$$5, position); ZEPHIR_INIT_VAR(&_5$$5); ZEPHIR_CONCAT_SV(&_5$$5, "Service 'name' is required in parameter on position ", &_4$$5); - ZEPHIR_CALL_METHOD(NULL, &_3$$5, "__construct", NULL, 9, &_5$$5); + ZEPHIR_CALL_METHOD(NULL, &_3$$5, "__construct", NULL, 4, &_5$$5); zephir_check_call_status(); zephir_throw_exception_debug(&_3$$5, "phalcon/di/service/builder.zep", 59 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -64129,7 +62621,7 @@ static PHP_METHOD(Phalcon_Di_Service_Builder, _buildParameter) { ZVAL_LONG(&_7$$8, position); ZEPHIR_INIT_VAR(&_8$$8); ZEPHIR_CONCAT_SV(&_8$$8, "Service 'value' is required in parameter on position ", &_7$$8); - ZEPHIR_CALL_METHOD(NULL, &_6$$8, "__construct", NULL, 9, &_8$$8); + ZEPHIR_CALL_METHOD(NULL, &_6$$8, "__construct", NULL, 4, &_8$$8); zephir_check_call_status(); zephir_throw_exception_debug(&_6$$8, "phalcon/di/service/builder.zep", 71 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -64146,7 +62638,7 @@ static PHP_METHOD(Phalcon_Di_Service_Builder, _buildParameter) { ZVAL_LONG(&_10$$10, position); ZEPHIR_INIT_VAR(&_11$$10); ZEPHIR_CONCAT_SV(&_11$$10, "Service 'className' is required in parameter on position ", &_10$$10); - ZEPHIR_CALL_METHOD(NULL, &_9$$10, "__construct", NULL, 9, &_11$$10); + ZEPHIR_CALL_METHOD(NULL, &_9$$10, "__construct", NULL, 4, &_11$$10); zephir_check_call_status(); zephir_throw_exception_debug(&_9$$10, "phalcon/di/service/builder.zep", 81 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -64172,7 +62664,7 @@ static PHP_METHOD(Phalcon_Di_Service_Builder, _buildParameter) { ZVAL_LONG(&_13$$13, position); ZEPHIR_INIT_VAR(&_14$$13); ZEPHIR_CONCAT_SV(&_14$$13, "Unknown service type in parameter on position ", &_13$$13); - ZEPHIR_CALL_METHOD(NULL, &_12$$13, "__construct", NULL, 9, &_14$$13); + ZEPHIR_CALL_METHOD(NULL, &_12$$13, "__construct", NULL, 4, &_14$$13); zephir_check_call_status(); zephir_throw_exception_debug(&_12$$13, "phalcon/di/service/builder.zep", 104 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -64219,7 +62711,7 @@ static PHP_METHOD(Phalcon_Di_Service_Builder, _buildParameters) { } ZEPHIR_INIT_NVAR(&argument); ZVAL_COPY(&argument, _0); - ZEPHIR_CALL_METHOD(&_3$$3, this_ptr, "_buildparameter", &_4, 183, dependencyInjector, &position, &argument); + ZEPHIR_CALL_METHOD(&_3$$3, this_ptr, "_buildparameter", &_4, 165, dependencyInjector, &position, &argument); zephir_check_call_status(); zephir_array_append(&buildArguments, &_3$$3, PH_SEPARATE, "phalcon/di/service/builder.zep", 117); } ZEND_HASH_FOREACH_END(); @@ -64301,7 +62793,7 @@ static PHP_METHOD(Phalcon_Di_Service_Builder, build) { } else { ZEPHIR_OBS_VAR(&arguments); if (zephir_array_isset_string_fetch(&arguments, &definition, SL("arguments"), 0)) { - ZEPHIR_CALL_METHOD(&_0$$8, this_ptr, "_buildparameters", &_1, 184, dependencyInjector, &arguments); + ZEPHIR_CALL_METHOD(&_0$$8, this_ptr, "_buildparameters", &_1, 166, dependencyInjector, &arguments); zephir_check_call_status(); ZEPHIR_INIT_NVAR(&instance); ZEPHIR_LAST_CALL_STATUS = zephir_create_instance_params(&instance, &className, &_0$$8 TSRMLS_CC); @@ -64338,7 +62830,7 @@ static PHP_METHOD(Phalcon_Di_Service_Builder, build) { object_init_ex(&_5$$14, phalcon_di_exception_ce); ZEPHIR_INIT_LNVAR(_6$$14); ZEPHIR_CONCAT_SV(&_6$$14, "Method call must be an array on position ", &methodPosition); - ZEPHIR_CALL_METHOD(NULL, &_5$$14, "__construct", &_7, 9, &_6$$14); + ZEPHIR_CALL_METHOD(NULL, &_5$$14, "__construct", &_7, 4, &_6$$14); zephir_check_call_status(); zephir_throw_exception_debug(&_5$$14, "phalcon/di/service/builder.zep", 195 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -64350,7 +62842,7 @@ static PHP_METHOD(Phalcon_Di_Service_Builder, build) { object_init_ex(&_8$$15, phalcon_di_exception_ce); ZEPHIR_INIT_LNVAR(_9$$15); ZEPHIR_CONCAT_SV(&_9$$15, "The method name is required on position ", &methodPosition); - ZEPHIR_CALL_METHOD(NULL, &_8$$15, "__construct", &_7, 9, &_9$$15); + ZEPHIR_CALL_METHOD(NULL, &_8$$15, "__construct", &_7, 4, &_9$$15); zephir_check_call_status(); zephir_throw_exception_debug(&_8$$15, "phalcon/di/service/builder.zep", 202 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -64367,7 +62859,7 @@ static PHP_METHOD(Phalcon_Di_Service_Builder, build) { object_init_ex(&_10$$17, phalcon_di_exception_ce); ZEPHIR_INIT_LNVAR(_11$$17); ZEPHIR_CONCAT_SV(&_11$$17, "Call arguments must be an array ", &methodPosition); - ZEPHIR_CALL_METHOD(NULL, &_10$$17, "__construct", &_7, 9, &_11$$17); + ZEPHIR_CALL_METHOD(NULL, &_10$$17, "__construct", &_7, 4, &_11$$17); zephir_check_call_status(); zephir_throw_exception_debug(&_10$$17, "phalcon/di/service/builder.zep", 213 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -64375,7 +62867,7 @@ static PHP_METHOD(Phalcon_Di_Service_Builder, build) { } if (zephir_fast_count_int(&arguments TSRMLS_CC)) { ZEPHIR_INIT_NVAR(&_12$$18); - ZEPHIR_CALL_METHOD(&_13$$18, this_ptr, "_buildparameters", &_1, 184, dependencyInjector, &arguments); + ZEPHIR_CALL_METHOD(&_13$$18, this_ptr, "_buildparameters", &_1, 166, dependencyInjector, &arguments); zephir_check_call_status(); ZEPHIR_CALL_USER_FUNC_ARRAY(&_12$$18, &methodCall, &_13$$18); zephir_check_call_status(); @@ -64415,7 +62907,7 @@ static PHP_METHOD(Phalcon_Di_Service_Builder, build) { object_init_ex(&_18$$23, phalcon_di_exception_ce); ZEPHIR_INIT_LNVAR(_19$$23); ZEPHIR_CONCAT_SV(&_19$$23, "Property must be an array on position ", &propertyPosition); - ZEPHIR_CALL_METHOD(NULL, &_18$$23, "__construct", &_7, 9, &_19$$23); + ZEPHIR_CALL_METHOD(NULL, &_18$$23, "__construct", &_7, 4, &_19$$23); zephir_check_call_status(); zephir_throw_exception_debug(&_18$$23, "phalcon/di/service/builder.zep", 261 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -64427,7 +62919,7 @@ static PHP_METHOD(Phalcon_Di_Service_Builder, build) { object_init_ex(&_20$$24, phalcon_di_exception_ce); ZEPHIR_INIT_LNVAR(_21$$24); ZEPHIR_CONCAT_SV(&_21$$24, "The property name is required on position ", &propertyPosition); - ZEPHIR_CALL_METHOD(NULL, &_20$$24, "__construct", &_7, 9, &_21$$24); + ZEPHIR_CALL_METHOD(NULL, &_20$$24, "__construct", &_7, 4, &_21$$24); zephir_check_call_status(); zephir_throw_exception_debug(&_20$$24, "phalcon/di/service/builder.zep", 268 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -64439,13 +62931,13 @@ static PHP_METHOD(Phalcon_Di_Service_Builder, build) { object_init_ex(&_22$$25, phalcon_di_exception_ce); ZEPHIR_INIT_LNVAR(_23$$25); ZEPHIR_CONCAT_SV(&_23$$25, "The property value is required on position ", &propertyPosition); - ZEPHIR_CALL_METHOD(NULL, &_22$$25, "__construct", &_7, 9, &_23$$25); + ZEPHIR_CALL_METHOD(NULL, &_22$$25, "__construct", &_7, 4, &_23$$25); zephir_check_call_status(); zephir_throw_exception_debug(&_22$$25, "phalcon/di/service/builder.zep", 275 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } - ZEPHIR_CALL_METHOD(&_24$$22, this_ptr, "_buildparameter", &_25, 183, dependencyInjector, &propertyPosition, &propertyValue); + ZEPHIR_CALL_METHOD(&_24$$22, this_ptr, "_buildparameter", &_25, 165, dependencyInjector, &propertyPosition, &propertyValue); zephir_check_call_status(); zephir_update_property_zval_zval(&instance, &propertyName, &_24$$22 TSRMLS_CC); } ZEND_HASH_FOREACH_END(); @@ -64547,11 +63039,11 @@ static PHP_METHOD(Phalcon_Events_Event, __construct) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 2, &type_param, &source, &data, &cancelable_param); - if (unlikely(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'type' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(type_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(type_param) == IS_STRING)) { zephir_get_strval(&type, type_param); } else { ZEPHIR_INIT_VAR(&type); @@ -64616,11 +63108,11 @@ static PHP_METHOD(Phalcon_Events_Event, setType) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &type_param); - if (unlikely(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'type' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(type_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(type_param) == IS_STRING)) { zephir_get_strval(&type, type_param); } else { ZEPHIR_INIT_VAR(&type); @@ -64792,11 +63284,11 @@ static PHP_METHOD(Phalcon_Events_Manager, attach) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 1, &eventType_param, &handler, &priority_param); - if (unlikely(Z_TYPE_P(eventType_param) != IS_STRING && Z_TYPE_P(eventType_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(eventType_param) != IS_STRING && Z_TYPE_P(eventType_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'eventType' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(eventType_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(eventType_param) == IS_STRING)) { zephir_get_strval(&eventType, eventType_param); } else { ZEPHIR_INIT_VAR(&eventType); @@ -64805,7 +63297,7 @@ static PHP_METHOD(Phalcon_Events_Manager, attach) { if (!priority_param) { priority = 100; } else { - if (unlikely(Z_TYPE_P(priority_param) != IS_LONG)) { + if (UNEXPECTED(Z_TYPE_P(priority_param) != IS_LONG)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'priority' must be a int") TSRMLS_CC); RETURN_MM_NULL(); } @@ -64829,7 +63321,7 @@ static PHP_METHOD(Phalcon_Events_Manager, attach) { zephir_check_call_status(); } ZVAL_LONG(&_2$$5, 1); - ZEPHIR_CALL_METHOD(NULL, &priorityQueue, "setextractflags", NULL, 191, &_2$$5); + ZEPHIR_CALL_METHOD(NULL, &priorityQueue, "setextractflags", NULL, 173, &_2$$5); zephir_check_call_status(); zephir_update_property_array(this_ptr, SL("_events"), &eventType, &priorityQueue TSRMLS_CC); } else { @@ -64838,7 +63330,7 @@ static PHP_METHOD(Phalcon_Events_Manager, attach) { } if (Z_TYPE_P(&priorityQueue) == IS_OBJECT) { ZVAL_LONG(&_3$$7, priority); - ZEPHIR_CALL_METHOD(NULL, &priorityQueue, "insert", NULL, 192, handler, &_3$$7); + ZEPHIR_CALL_METHOD(NULL, &priorityQueue, "insert", NULL, 174, handler, &_3$$7); zephir_check_call_status(); } else { zephir_array_append(&priorityQueue, handler, PH_SEPARATE, "phalcon/events/manager.zep", 82); @@ -64873,11 +63365,11 @@ static PHP_METHOD(Phalcon_Events_Manager, detach) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &eventType_param, &handler); - if (unlikely(Z_TYPE_P(eventType_param) != IS_STRING && Z_TYPE_P(eventType_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(eventType_param) != IS_STRING && Z_TYPE_P(eventType_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'eventType' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(eventType_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(eventType_param) == IS_STRING)) { zephir_get_strval(&eventType, eventType_param); } else { ZEPHIR_INIT_VAR(&eventType); @@ -64900,7 +63392,7 @@ static PHP_METHOD(Phalcon_Events_Manager, detach) { zephir_check_call_status(); } ZVAL_LONG(&_1$$5, 1); - ZEPHIR_CALL_METHOD(NULL, &newPriorityQueue, "setextractflags", NULL, 191, &_1$$5); + ZEPHIR_CALL_METHOD(NULL, &newPriorityQueue, "setextractflags", NULL, 173, &_1$$5); zephir_check_call_status(); ZVAL_LONG(&_1$$5, 3); ZEPHIR_CALL_METHOD(NULL, &priorityQueue, "setextractflags", NULL, 0, &_1$$5); @@ -64921,13 +63413,13 @@ static PHP_METHOD(Phalcon_Events_Manager, detach) { if (!ZEPHIR_IS_IDENTICAL(&_5$$6, handler)) { zephir_array_fetch_string(&_6$$7, &data, SL("data"), PH_NOISY | PH_READONLY, "phalcon/events/manager.zep", 117 TSRMLS_CC); zephir_array_fetch_string(&_7$$7, &data, SL("priority"), PH_NOISY | PH_READONLY, "phalcon/events/manager.zep", 117 TSRMLS_CC); - ZEPHIR_CALL_METHOD(NULL, &newPriorityQueue, "insert", &_8, 192, &_6$$7, &_7$$7); + ZEPHIR_CALL_METHOD(NULL, &newPriorityQueue, "insert", &_8, 174, &_6$$7, &_7$$7); zephir_check_call_status(); } } zephir_update_property_array(this_ptr, SL("_events"), &eventType, &newPriorityQueue TSRMLS_CC); } else { - ZEPHIR_CALL_FUNCTION(&key, "array_search", NULL, 193, handler, &priorityQueue, &__$true); + ZEPHIR_CALL_FUNCTION(&key, "array_search", NULL, 175, handler, &priorityQueue, &__$true); zephir_check_call_status(); if (!ZEPHIR_IS_FALSE_IDENTICAL(&key)) { zephir_array_unset(&priorityQueue, &key, PH_SEPARATE); @@ -65028,11 +63520,11 @@ static PHP_METHOD(Phalcon_Events_Manager, detachAll) { ZEPHIR_INIT_VAR(&type); ZVAL_STRING(&type, ""); } else { - if (unlikely(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'type' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(type_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(type_param) == IS_STRING)) { zephir_get_strval(&type, type_param); } else { ZEPHIR_INIT_VAR(&type); @@ -65097,9 +63589,9 @@ static PHP_METHOD(Phalcon_Events_Manager, fireQueue) { zephir_get_class(&_1$$5, queue, 0 TSRMLS_CC); ZEPHIR_INIT_VAR(&_2$$5); ZVAL_STRING(&_2$$5, "Unexpected value type: expected object of type SplPriorityQueue, %s given"); - ZEPHIR_CALL_FUNCTION(&_3$$5, "sprintf", NULL, 194, &_2$$5, &_1$$5); + ZEPHIR_CALL_FUNCTION(&_3$$5, "sprintf", NULL, 176, &_2$$5, &_1$$5); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, &_0$$5, "__construct", NULL, 9, &_3$$5); + ZEPHIR_CALL_METHOD(NULL, &_0$$5, "__construct", NULL, 4, &_3$$5); zephir_check_call_status(); zephir_throw_exception_debug(&_0$$5, "phalcon/events/manager.zep", 210 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -65268,11 +63760,11 @@ static PHP_METHOD(Phalcon_Events_Manager, fire) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 2, &eventType_param, &source, &data, &cancelable_param); - if (unlikely(Z_TYPE_P(eventType_param) != IS_STRING && Z_TYPE_P(eventType_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(eventType_param) != IS_STRING && Z_TYPE_P(eventType_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'eventType' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(eventType_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(eventType_param) == IS_STRING)) { zephir_get_strval(&eventType, eventType_param); } else { ZEPHIR_INIT_VAR(&eventType); @@ -65299,7 +63791,7 @@ static PHP_METHOD(Phalcon_Events_Manager, fire) { object_init_ex(&_0$$4, phalcon_events_exception_ce); ZEPHIR_INIT_VAR(&_1$$4); ZEPHIR_CONCAT_SV(&_1$$4, "Invalid event type ", &eventType); - ZEPHIR_CALL_METHOD(NULL, &_0$$4, "__construct", NULL, 9, &_1$$4); + ZEPHIR_CALL_METHOD(NULL, &_0$$4, "__construct", NULL, 4, &_1$$4); zephir_check_call_status(); zephir_throw_exception_debug(&_0$$4, "phalcon/events/manager.zep", 387 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -65333,9 +63825,9 @@ static PHP_METHOD(Phalcon_Events_Manager, fire) { } else { ZVAL_BOOL(&_4$$7, 0); } - ZEPHIR_CALL_METHOD(NULL, &event, "__construct", &_5, 195, &eventName, source, data, &_4$$7); + ZEPHIR_CALL_METHOD(NULL, &event, "__construct", &_5, 177, &eventName, source, data, &_4$$7); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&status, this_ptr, "firequeue", &_6, 196, &fireEvents, &event); + ZEPHIR_CALL_METHOD(&status, this_ptr, "firequeue", &_6, 178, &fireEvents, &event); zephir_check_call_status(); } } @@ -65354,10 +63846,10 @@ static PHP_METHOD(Phalcon_Events_Manager, fire) { } else { ZVAL_BOOL(&_8$$10, 0); } - ZEPHIR_CALL_METHOD(NULL, &event, "__construct", &_5, 195, &eventName, source, data, &_8$$10); + ZEPHIR_CALL_METHOD(NULL, &event, "__construct", &_5, 177, &eventName, source, data, &_8$$10); zephir_check_call_status(); } - ZEPHIR_CALL_METHOD(&status, this_ptr, "firequeue", &_6, 196, &fireEvents, &event); + ZEPHIR_CALL_METHOD(&status, this_ptr, "firequeue", &_6, 178, &fireEvents, &event); zephir_check_call_status(); } } @@ -65377,11 +63869,11 @@ static PHP_METHOD(Phalcon_Events_Manager, hasListeners) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &type_param); - if (unlikely(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'type' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(type_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(type_param) == IS_STRING)) { zephir_get_strval(&type, type_param); } else { ZEPHIR_INIT_VAR(&type); @@ -65407,11 +63899,11 @@ static PHP_METHOD(Phalcon_Events_Manager, getListeners) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &type_param); - if (unlikely(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'type' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(type_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(type_param) == IS_STRING)) { zephir_get_strval(&type, type_param); } else { ZEPHIR_INIT_VAR(&type); @@ -65570,7 +64062,7 @@ static PHP_METHOD(Phalcon_Flash_Direct, output) { ZEPHIR_INIT_NVAR(&message); } if (remove) { - ZEPHIR_CALL_PARENT(NULL, phalcon_flash_direct_ce, this_ptr, "clear", &_1, 203); + ZEPHIR_CALL_PARENT(NULL, phalcon_flash_direct_ce, this_ptr, "clear", &_1, 0); zephir_check_call_status(); } ZEPHIR_MM_RESTORE(); @@ -65871,7 +64363,7 @@ static PHP_METHOD(Phalcon_Flash_Session, output) { ZEPHIR_INIT_NVAR(&message); ZEPHIR_INIT_NVAR(&type); } - ZEPHIR_CALL_PARENT(NULL, phalcon_flash_session_ce, this_ptr, "clear", &_5, 203); + ZEPHIR_CALL_PARENT(NULL, phalcon_flash_session_ce, this_ptr, "clear", &_5, 0); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -65891,7 +64383,7 @@ static PHP_METHOD(Phalcon_Flash_Session, clear) { ZVAL_BOOL(&_0, 1); ZEPHIR_CALL_METHOD(NULL, this_ptr, "_getsessionmessages", NULL, 0, &_0); zephir_check_call_status(); - ZEPHIR_CALL_PARENT(NULL, phalcon_flash_session_ce, this_ptr, "clear", &_1, 203); + ZEPHIR_CALL_PARENT(NULL, phalcon_flash_session_ce, this_ptr, "clear", &_1, 0); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -65964,7 +64456,7 @@ static PHP_METHOD(Phalcon_Forms_Element, __construct) { } ZEPHIR_INIT_VAR(&_0); object_init_ex(&_0, phalcon_validation_message_group_ce); - ZEPHIR_CALL_METHOD(NULL, &_0, "__construct", NULL, 3); + ZEPHIR_CALL_METHOD(NULL, &_0, "__construct", NULL, 2); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_messages"), &_0); ZEPHIR_MM_RESTORE(); @@ -66007,11 +64499,11 @@ static PHP_METHOD(Phalcon_Forms_Element, setName) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(&name, name_param); } else { ZEPHIR_INIT_VAR(&name); @@ -66486,7 +64978,7 @@ static PHP_METHOD(Phalcon_Forms_Element, label) { } ZEPHIR_INIT_VAR(&_1); ZVAL_STRING(&_1, "="); - ZEPHIR_CALL_FUNCTION(&_7, "version_compare", NULL, 250, &version, &_1, &_6); + ZEPHIR_CALL_FUNCTION(&_7, "version_compare", NULL, 218, &version, &_1, &_6); zephir_check_call_status(); if (!(zephir_is_true(&_7))) { ZEPHIR_INIT_VAR(&_8$$8); object_init_ex(&_8$$8, phalcon_image_exception_ce); ZEPHIR_INIT_VAR(&_9$$8); ZEPHIR_CONCAT_SV(&_9$$8, "Phalcon\\Image\\Adapter\\GD requires GD version '2.0.1' or greater, you have ", &version); - ZEPHIR_CALL_METHOD(NULL, &_8$$8, "__construct", NULL, 9, &_9$$8); + ZEPHIR_CALL_METHOD(NULL, &_8$$8, "__construct", NULL, 4, &_9$$8); zephir_check_call_status(); zephir_throw_exception_debug(&_8$$8, "phalcon/image/adapter/gd.zep", 52 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -75725,11 +74217,11 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, __construct) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &file_param, &width_param, &height_param); - if (unlikely(Z_TYPE_P(file_param) != IS_STRING && Z_TYPE_P(file_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(file_param) != IS_STRING && Z_TYPE_P(file_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'file' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(file_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(file_param) == IS_STRING)) { zephir_get_strval(&file, file_param); } else { ZEPHIR_INIT_VAR(&file); @@ -75756,11 +74248,11 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, __construct) { zephir_read_property(&_1, this_ptr, SL("_file"), PH_NOISY_CC | PH_READONLY); if ((zephir_file_exists(&_1 TSRMLS_CC) == SUCCESS)) { zephir_read_property(&_2$$4, this_ptr, SL("_file"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(&_3$$4, "realpath", NULL, 64, &_2$$4); + ZEPHIR_CALL_FUNCTION(&_3$$4, "realpath", NULL, 58, &_2$$4); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_realpath"), &_3$$4); zephir_read_property(&_4$$4, this_ptr, SL("_file"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(&imageinfo, "getimagesize", NULL, 251, &_4$$4); + ZEPHIR_CALL_FUNCTION(&imageinfo, "getimagesize", NULL, 219, &_4$$4); zephir_check_call_status(); if (zephir_is_true(&imageinfo)) { zephir_array_fetch_long(&_5$$5, &imageinfo, 0, PH_NOISY | PH_READONLY, "phalcon/image/adapter/gd.zep", 76 TSRMLS_CC); @@ -75776,35 +74268,35 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, __construct) { do { if (ZEPHIR_IS_LONG(&_9$$4, 1)) { zephir_read_property(&_10$$6, this_ptr, SL("_file"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(&_11$$6, "imagecreatefromgif", NULL, 252, &_10$$6); + ZEPHIR_CALL_FUNCTION(&_11$$6, "imagecreatefromgif", NULL, 220, &_10$$6); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_image"), &_11$$6); break; } if (ZEPHIR_IS_LONG(&_9$$4, 2)) { zephir_read_property(&_12$$7, this_ptr, SL("_file"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(&_13$$7, "imagecreatefromjpeg", NULL, 253, &_12$$7); + ZEPHIR_CALL_FUNCTION(&_13$$7, "imagecreatefromjpeg", NULL, 221, &_12$$7); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_image"), &_13$$7); break; } if (ZEPHIR_IS_LONG(&_9$$4, 3)) { zephir_read_property(&_14$$8, this_ptr, SL("_file"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(&_15$$8, "imagecreatefrompng", NULL, 254, &_14$$8); + ZEPHIR_CALL_FUNCTION(&_15$$8, "imagecreatefrompng", NULL, 222, &_14$$8); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_image"), &_15$$8); break; } if (ZEPHIR_IS_LONG(&_9$$4, 15)) { zephir_read_property(&_16$$9, this_ptr, SL("_file"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(&_17$$9, "imagecreatefromwbmp", NULL, 255, &_16$$9); + ZEPHIR_CALL_FUNCTION(&_17$$9, "imagecreatefromwbmp", NULL, 223, &_16$$9); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_image"), &_17$$9); break; } if (ZEPHIR_IS_LONG(&_9$$4, 16)) { zephir_read_property(&_18$$10, this_ptr, SL("_file"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(&_19$$10, "imagecreatefromxbm", NULL, 256, &_18$$10); + ZEPHIR_CALL_FUNCTION(&_19$$10, "imagecreatefromxbm", NULL, 224, &_18$$10); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_image"), &_19$$10); break; @@ -75816,7 +74308,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, __construct) { zephir_read_property(&_22$$12, this_ptr, SL("_mime"), PH_NOISY_CC | PH_READONLY); ZEPHIR_INIT_VAR(&_23$$12); ZEPHIR_CONCAT_SVS(&_23$$12, "Installed GD does not support ", &_22$$12, " images"); - ZEPHIR_CALL_METHOD(NULL, &_21$$12, "__construct", NULL, 9, &_23$$12); + ZEPHIR_CALL_METHOD(NULL, &_21$$12, "__construct", NULL, 4, &_23$$12); zephir_check_call_status(); zephir_throw_exception_debug(&_21$$12, "phalcon/image/adapter/gd.zep", 100 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -75829,7 +74321,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, __construct) { } while(0); zephir_read_property(&_24$$4, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", &_25, 257, &_24$$4, &__$true); + ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", &_25, 225, &_24$$4, &__$true); zephir_check_call_status(); } else { _26$$14 = !width; @@ -75842,7 +74334,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, __construct) { zephir_read_property(&_28$$15, this_ptr, SL("_file"), PH_NOISY_CC | PH_READONLY); ZEPHIR_INIT_VAR(&_29$$15); ZEPHIR_CONCAT_SV(&_29$$15, "Failed to create image from file ", &_28$$15); - ZEPHIR_CALL_METHOD(NULL, &_27$$15, "__construct", NULL, 9, &_29$$15); + ZEPHIR_CALL_METHOD(NULL, &_27$$15, "__construct", NULL, 4, &_29$$15); zephir_check_call_status(); zephir_throw_exception_debug(&_27$$15, "phalcon/image/adapter/gd.zep", 111 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -75850,14 +74342,14 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, __construct) { } ZVAL_LONG(&_30$$14, width); ZVAL_LONG(&_31$$14, height); - ZEPHIR_CALL_FUNCTION(&_32$$14, "imagecreatetruecolor", NULL, 258, &_30$$14, &_31$$14); + ZEPHIR_CALL_FUNCTION(&_32$$14, "imagecreatetruecolor", NULL, 226, &_30$$14, &_31$$14); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_image"), &_32$$14); zephir_read_property(&_30$$14, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(NULL, "imagealphablending", NULL, 259, &_30$$14, &__$true); + ZEPHIR_CALL_FUNCTION(NULL, "imagealphablending", NULL, 227, &_30$$14, &__$true); zephir_check_call_status(); zephir_read_property(&_31$$14, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", &_25, 257, &_31$$14, &__$true); + ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", &_25, 225, &_31$$14, &__$true); zephir_check_call_status(); zephir_read_property(&_33$$14, this_ptr, SL("_file"), PH_NOISY_CC | PH_READONLY); zephir_update_property_zval(this_ptr, SL("_realpath"), &_33$$14); @@ -75936,7 +74428,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _resize) { ZEPHIR_GET_CONSTANT(&_0, "PHP_VERSION"); ZEPHIR_INIT_VAR(&_1); ZVAL_STRING(&_1, "5.5.0"); - ZEPHIR_CALL_FUNCTION(&_2, "version_compare", NULL, 250, &_0, &_1); + ZEPHIR_CALL_FUNCTION(&_2, "version_compare", NULL, 218, &_0, &_1); zephir_check_call_status(); if (ZEPHIR_LT_LONG(&_2, 0)) { ZEPHIR_OBS_VAR(&pre_width); @@ -75978,11 +74470,11 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _resize) { ZVAL_LONG(&_14$$4, 0); ZVAL_LONG(&_15$$4, 0); ZVAL_LONG(&_16$$4, 0); - ZEPHIR_CALL_FUNCTION(&_17$$4, "imagecopyresized", NULL, 260, &image, &_10$$4, &_13$$4, &_14$$4, &_15$$4, &_16$$4, &pre_width, &pre_height, &_11$$4, &_12$$4); + ZEPHIR_CALL_FUNCTION(&_17$$4, "imagecopyresized", NULL, 228, &image, &_10$$4, &_13$$4, &_14$$4, &_15$$4, &_16$$4, &pre_width, &pre_height, &_11$$4, &_12$$4); zephir_check_call_status(); if (zephir_is_true(&_17$$4)) { zephir_read_property(&_18$$6, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", &_19, 261, &_18$$6); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", &_19, 229, &_18$$6); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_image"), &image); } @@ -75998,17 +74490,17 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _resize) { ZVAL_LONG(&_24$$3, 0); ZVAL_LONG(&_25$$3, width); ZVAL_LONG(&_26$$3, height); - ZEPHIR_CALL_FUNCTION(&_27$$3, "imagecopyresampled", NULL, 262, &image, &_20$$3, &_21$$3, &_22$$3, &_23$$3, &_24$$3, &_25$$3, &_26$$3, &pre_width, &pre_height); + ZEPHIR_CALL_FUNCTION(&_27$$3, "imagecopyresampled", NULL, 230, &image, &_20$$3, &_21$$3, &_22$$3, &_23$$3, &_24$$3, &_25$$3, &_26$$3, &pre_width, &pre_height); zephir_check_call_status(); if (zephir_is_true(&_27$$3)) { zephir_read_property(&_28$$7, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", &_19, 261, &_28$$7); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", &_19, 229, &_28$$7); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_image"), &image); - ZEPHIR_CALL_FUNCTION(&_29$$7, "imagesx", &_30, 263, &image); + ZEPHIR_CALL_FUNCTION(&_29$$7, "imagesx", &_30, 231, &image); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_width"), &_29$$7); - ZEPHIR_CALL_FUNCTION(&_31$$7, "imagesy", &_32, 264, &image); + ZEPHIR_CALL_FUNCTION(&_31$$7, "imagesy", &_32, 232, &image); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_height"), &_31$$7); } @@ -76016,16 +74508,16 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _resize) { zephir_read_property(&_33$$8, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); ZVAL_LONG(&_34$$8, width); ZVAL_LONG(&_35$$8, height); - ZEPHIR_CALL_FUNCTION(&image, "imagescale", NULL, 265, &_33$$8, &_34$$8, &_35$$8); + ZEPHIR_CALL_FUNCTION(&image, "imagescale", NULL, 233, &_33$$8, &_34$$8, &_35$$8); zephir_check_call_status(); zephir_read_property(&_34$$8, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", &_19, 261, &_34$$8); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", &_19, 229, &_34$$8); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_image"), &image); - ZEPHIR_CALL_FUNCTION(&_36$$8, "imagesx", &_30, 263, &image); + ZEPHIR_CALL_FUNCTION(&_36$$8, "imagesx", &_30, 231, &image); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_width"), &_36$$8); - ZEPHIR_CALL_FUNCTION(&_37$$8, "imagesy", &_32, 264, &image); + ZEPHIR_CALL_FUNCTION(&_37$$8, "imagesy", &_32, 232, &image); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_height"), &_37$$8); } @@ -76077,7 +74569,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _crop) { ZEPHIR_GET_CONSTANT(&_0, "PHP_VERSION"); ZEPHIR_INIT_VAR(&_1); ZVAL_STRING(&_1, "5.5.0"); - ZEPHIR_CALL_FUNCTION(&_2, "version_compare", NULL, 250, &_0, &_1); + ZEPHIR_CALL_FUNCTION(&_2, "version_compare", NULL, 218, &_0, &_1); zephir_check_call_status(); if (ZEPHIR_LT_LONG(&_2, 0)) { ZVAL_LONG(&_3$$3, width); @@ -76093,17 +74585,17 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _crop) { ZVAL_LONG(&_9$$3, height); ZVAL_LONG(&_10$$3, width); ZVAL_LONG(&_11$$3, height); - ZEPHIR_CALL_FUNCTION(&_12$$3, "imagecopyresampled", NULL, 262, &image, &_3$$3, &_4$$3, &_5$$3, &_6$$3, &_7$$3, &_8$$3, &_9$$3, &_10$$3, &_11$$3); + ZEPHIR_CALL_FUNCTION(&_12$$3, "imagecopyresampled", NULL, 230, &image, &_3$$3, &_4$$3, &_5$$3, &_6$$3, &_7$$3, &_8$$3, &_9$$3, &_10$$3, &_11$$3); zephir_check_call_status(); if (zephir_is_true(&_12$$3)) { zephir_read_property(&_13$$4, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", &_14, 261, &_13$$4); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", &_14, 229, &_13$$4); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_image"), &image); - ZEPHIR_CALL_FUNCTION(&_15$$4, "imagesx", &_16, 263, &image); + ZEPHIR_CALL_FUNCTION(&_15$$4, "imagesx", &_16, 231, &image); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_width"), &_15$$4); - ZEPHIR_CALL_FUNCTION(&_17$$4, "imagesy", &_18, 264, &image); + ZEPHIR_CALL_FUNCTION(&_17$$4, "imagesy", &_18, 232, &image); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_height"), &_17$$4); } @@ -76123,16 +74615,16 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _crop) { ZVAL_LONG(&_19$$5, height); zephir_array_update_string(&rect, SL("height"), &_19$$5, PH_COPY | PH_SEPARATE); zephir_read_property(&_20$$5, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(&image, "imagecrop", NULL, 266, &_20$$5, &rect); + ZEPHIR_CALL_FUNCTION(&image, "imagecrop", NULL, 234, &_20$$5, &rect); zephir_check_call_status(); zephir_read_property(&_21$$5, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", &_14, 261, &_21$$5); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", &_14, 229, &_21$$5); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_image"), &image); - ZEPHIR_CALL_FUNCTION(&_22$$5, "imagesx", &_16, 263, &image); + ZEPHIR_CALL_FUNCTION(&_22$$5, "imagesx", &_16, 231, &image); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_width"), &_22$$5); - ZEPHIR_CALL_FUNCTION(&_23$$5, "imagesy", &_18, 264, &image); + ZEPHIR_CALL_FUNCTION(&_23$$5, "imagesy", &_18, 232, &image); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_height"), &_23$$5); } @@ -76173,18 +74665,18 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _rotate) { ZVAL_LONG(&_2, 0); ZVAL_LONG(&_3, 0); ZVAL_LONG(&_4, 127); - ZEPHIR_CALL_FUNCTION(&transparent, "imagecolorallocatealpha", NULL, 267, &_0, &_1, &_2, &_3, &_4); + ZEPHIR_CALL_FUNCTION(&transparent, "imagecolorallocatealpha", NULL, 235, &_0, &_1, &_2, &_3, &_4); zephir_check_call_status(); zephir_read_property(&_1, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); ZVAL_LONG(&_2, (360 - degrees)); ZVAL_LONG(&_3, 1); - ZEPHIR_CALL_FUNCTION(&image, "imagerotate", NULL, 268, &_1, &_2, &transparent, &_3); + ZEPHIR_CALL_FUNCTION(&image, "imagerotate", NULL, 236, &_1, &_2, &transparent, &_3); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", NULL, 257, &image, &__$true); + ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", NULL, 225, &image, &__$true); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&width, "imagesx", NULL, 263, &image); + ZEPHIR_CALL_FUNCTION(&width, "imagesx", NULL, 231, &image); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&height, "imagesy", NULL, 264, &image); + ZEPHIR_CALL_FUNCTION(&height, "imagesy", NULL, 232, &image); zephir_check_call_status(); zephir_read_property(&_2, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); ZVAL_LONG(&_3, 0); @@ -76192,11 +74684,11 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _rotate) { ZVAL_LONG(&_5, 0); ZVAL_LONG(&_6, 0); ZVAL_LONG(&_7, 100); - ZEPHIR_CALL_FUNCTION(&_8, "imagecopymerge", NULL, 269, &_2, &image, &_3, &_4, &_5, &_6, &width, &height, &_7); + ZEPHIR_CALL_FUNCTION(&_8, "imagecopymerge", NULL, 237, &_2, &image, &_3, &_4, &_5, &_6, &width, &height, &_7); zephir_check_call_status(); if (zephir_is_true(&_8)) { zephir_read_property(&_9$$3, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 261, &_9$$3); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 229, &_9$$3); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_image"), &image); zephir_update_property_zval(this_ptr, SL("_width"), &width); @@ -76255,7 +74747,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _flip) { ZEPHIR_GET_CONSTANT(&_0, "PHP_VERSION"); ZEPHIR_INIT_VAR(&_1); ZVAL_STRING(&_1, "5.5.0"); - ZEPHIR_CALL_FUNCTION(&_2, "version_compare", NULL, 250, &_0, &_1); + ZEPHIR_CALL_FUNCTION(&_2, "version_compare", NULL, 218, &_0, &_1); zephir_check_call_status(); if (ZEPHIR_LT_LONG(&_2, 0)) { zephir_read_property(&_3$$3, this_ptr, SL("_width"), PH_NOISY_CC | PH_READONLY); @@ -76278,7 +74770,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _flip) { ZVAL_LONG(&_11$$5, ((zephir_get_numberval(&_7$$5) - x) - 1)); ZVAL_LONG(&_12$$5, 0); ZVAL_LONG(&_13$$5, 1); - ZEPHIR_CALL_FUNCTION(NULL, "imagecopy", &_14, 270, &image, &_6$$5, &_9$$5, &_10$$5, &_11$$5, &_12$$5, &_13$$5, &_8$$5); + ZEPHIR_CALL_FUNCTION(NULL, "imagecopy", &_14, 238, &image, &_6$$5, &_9$$5, &_10$$5, &_11$$5, &_12$$5, &_13$$5, &_8$$5); zephir_check_call_status(); } } else { @@ -76297,30 +74789,30 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _flip) { ZVAL_LONG(&_21$$7, 0); ZVAL_LONG(&_22$$7, ((zephir_get_numberval(&_17$$7) - x) - 1)); ZVAL_LONG(&_23$$7, 1); - ZEPHIR_CALL_FUNCTION(NULL, "imagecopy", &_14, 270, &image, &_16$$7, &_19$$7, &_20$$7, &_21$$7, &_22$$7, &_18$$7, &_23$$7); + ZEPHIR_CALL_FUNCTION(NULL, "imagecopy", &_14, 238, &image, &_16$$7, &_19$$7, &_20$$7, &_21$$7, &_22$$7, &_18$$7, &_23$$7); zephir_check_call_status(); } } zephir_read_property(&_24$$3, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 261, &_24$$3); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 229, &_24$$3); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_image"), &image); - ZEPHIR_CALL_FUNCTION(&_25$$3, "imagesx", NULL, 263, &image); + ZEPHIR_CALL_FUNCTION(&_25$$3, "imagesx", NULL, 231, &image); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_width"), &_25$$3); - ZEPHIR_CALL_FUNCTION(&_26$$3, "imagesy", NULL, 264, &image); + ZEPHIR_CALL_FUNCTION(&_26$$3, "imagesy", NULL, 232, &image); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_height"), &_26$$3); } else { if (direction == 11) { zephir_read_property(&_27$$9, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); ZVAL_LONG(&_28$$9, 1); - ZEPHIR_CALL_FUNCTION(NULL, "imageflip", &_29, 271, &_27$$9, &_28$$9); + ZEPHIR_CALL_FUNCTION(NULL, "imageflip", &_29, 239, &_27$$9, &_28$$9); zephir_check_call_status(); } else { zephir_read_property(&_30$$10, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); ZVAL_LONG(&_31$$10, 2); - ZEPHIR_CALL_FUNCTION(NULL, "imageflip", &_29, 271, &_30$$10, &_31$$10); + ZEPHIR_CALL_FUNCTION(NULL, "imageflip", &_29, 239, &_30$$10, &_31$$10); zephir_check_call_status(); } } @@ -76358,7 +74850,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _sharpen) { ZEPHIR_INIT_VAR(&_0); ZVAL_LONG(&_1, (-18 + ((amount * 0.08)))); - ZEPHIR_CALL_FUNCTION(&_2, "abs", NULL, 199, &_1); + ZEPHIR_CALL_FUNCTION(&_2, "abs", NULL, 181, &_1); zephir_check_call_status(); ZVAL_LONG(&_1, 2); zephir_round(&_0, &_2, &_1, NULL TSRMLS_CC); @@ -76404,15 +74896,15 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _sharpen) { zephir_read_property(&_5, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); ZVAL_LONG(&_6, (amount - 8)); ZVAL_LONG(&_7, 0); - ZEPHIR_CALL_FUNCTION(&_8, "imageconvolution", NULL, 272, &_5, &matrix, &_6, &_7); + ZEPHIR_CALL_FUNCTION(&_8, "imageconvolution", NULL, 240, &_5, &matrix, &_6, &_7); zephir_check_call_status(); if (zephir_is_true(&_8)) { zephir_read_property(&_9$$3, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(&_10$$3, "imagesx", NULL, 263, &_9$$3); + ZEPHIR_CALL_FUNCTION(&_10$$3, "imagesx", NULL, 231, &_9$$3); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_width"), &_10$$3); zephir_read_property(&_11$$3, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(&_12$$3, "imagesy", NULL, 264, &_11$$3); + ZEPHIR_CALL_FUNCTION(&_12$$3, "imagesy", NULL, 232, &_11$$3); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_height"), &_12$$3); } @@ -76469,7 +74961,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _reflection) { ZEPHIR_INIT_VAR(&_0); ZVAL_DOUBLE(&_1, ((zephir_safe_div_long_long((opacity * 127), 100 TSRMLS_CC)) - (double) (127))); - ZEPHIR_CALL_FUNCTION(&_2, "abs", NULL, 199, &_1); + ZEPHIR_CALL_FUNCTION(&_2, "abs", NULL, 181, &_1); zephir_check_call_status(); zephir_round(&_0, &_2, NULL, NULL TSRMLS_CC); opacity = zephir_get_intval(&_0); @@ -76490,7 +74982,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _reflection) { ZVAL_LONG(&_9, 0); ZVAL_LONG(&_10, 0); ZVAL_LONG(&_11, 0); - ZEPHIR_CALL_FUNCTION(NULL, "imagecopy", &_12, 270, &reflection, &_4, &_8, &_9, &_10, &_11, &_6, &_7); + ZEPHIR_CALL_FUNCTION(NULL, "imagecopy", &_12, 238, &reflection, &_4, &_8, &_9, &_10, &_11, &_6, &_7); zephir_check_call_status(); offset = 0; while (1) { @@ -76523,14 +75015,14 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _reflection) { ZVAL_LONG(&_24$$5, 0); ZVAL_LONG(&_25$$5, src_y); ZVAL_LONG(&_26$$5, 1); - ZEPHIR_CALL_FUNCTION(NULL, "imagecopy", &_12, 270, &line, &_20$$5, &_22$$5, &_23$$5, &_24$$5, &_25$$5, &_21$$5, &_26$$5); + ZEPHIR_CALL_FUNCTION(NULL, "imagecopy", &_12, 238, &line, &_20$$5, &_22$$5, &_23$$5, &_24$$5, &_25$$5, &_21$$5, &_26$$5); zephir_check_call_status(); ZVAL_LONG(&_22$$5, 4); ZVAL_LONG(&_23$$5, 0); ZVAL_LONG(&_24$$5, 0); ZVAL_LONG(&_25$$5, 0); ZVAL_LONG(&_26$$5, dst_opacity); - ZEPHIR_CALL_FUNCTION(NULL, "imagefilter", &_27, 273, &line, &_22$$5, &_23$$5, &_24$$5, &_25$$5, &_26$$5); + ZEPHIR_CALL_FUNCTION(NULL, "imagefilter", &_27, 241, &line, &_22$$5, &_23$$5, &_24$$5, &_25$$5, &_26$$5); zephir_check_call_status(); zephir_read_property(&_22$$5, this_ptr, SL("_width"), PH_NOISY_CC | PH_READONLY); ZVAL_LONG(&_23$$5, 0); @@ -76538,18 +75030,18 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _reflection) { ZVAL_LONG(&_25$$5, 0); ZVAL_LONG(&_26$$5, 0); ZVAL_LONG(&_28$$5, 1); - ZEPHIR_CALL_FUNCTION(NULL, "imagecopy", &_12, 270, &reflection, &line, &_23$$5, &_24$$5, &_25$$5, &_26$$5, &_22$$5, &_28$$5); + ZEPHIR_CALL_FUNCTION(NULL, "imagecopy", &_12, 238, &reflection, &line, &_23$$5, &_24$$5, &_25$$5, &_26$$5, &_22$$5, &_28$$5); zephir_check_call_status(); offset++; } zephir_read_property(&_8, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 261, &_8); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 229, &_8); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_image"), &reflection); - ZEPHIR_CALL_FUNCTION(&_29, "imagesx", NULL, 263, &reflection); + ZEPHIR_CALL_FUNCTION(&_29, "imagesx", NULL, 231, &reflection); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_width"), &_29); - ZEPHIR_CALL_FUNCTION(&_30, "imagesy", NULL, 264, &reflection); + ZEPHIR_CALL_FUNCTION(&_30, "imagesy", NULL, 232, &reflection); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_height"), &_30); ZEPHIR_MM_RESTORE(); @@ -76595,20 +75087,20 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _watermark) { ZEPHIR_CALL_METHOD(&_0, watermark, "render", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&overlay, "imagecreatefromstring", NULL, 274, &_0); + ZEPHIR_CALL_FUNCTION(&overlay, "imagecreatefromstring", NULL, 242, &_0); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", NULL, 257, &overlay, &__$true); + ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", NULL, 225, &overlay, &__$true); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_1, "imagesx", NULL, 263, &overlay); + ZEPHIR_CALL_FUNCTION(&_1, "imagesx", NULL, 231, &overlay); zephir_check_call_status(); width = zephir_get_intval(&_1); - ZEPHIR_CALL_FUNCTION(&_2, "imagesy", NULL, 264, &overlay); + ZEPHIR_CALL_FUNCTION(&_2, "imagesy", NULL, 232, &overlay); zephir_check_call_status(); height = zephir_get_intval(&_2); if (opacity < 100) { ZEPHIR_INIT_VAR(&_3$$3); ZVAL_DOUBLE(&_4$$3, ((zephir_safe_div_long_long((opacity * 127), 100 TSRMLS_CC)) - (double) (127))); - ZEPHIR_CALL_FUNCTION(&_5$$3, "abs", NULL, 199, &_4$$3); + ZEPHIR_CALL_FUNCTION(&_5$$3, "abs", NULL, 181, &_4$$3); zephir_check_call_status(); zephir_round(&_3$$3, &_5$$3, NULL, NULL TSRMLS_CC); opacity = zephir_get_intval(&_3$$3); @@ -76616,20 +75108,20 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _watermark) { ZVAL_LONG(&_6$$3, 127); ZVAL_LONG(&_7$$3, 127); ZVAL_LONG(&_8$$3, opacity); - ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", NULL, 267, &overlay, &_4$$3, &_6$$3, &_7$$3, &_8$$3); + ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", NULL, 235, &overlay, &_4$$3, &_6$$3, &_7$$3, &_8$$3); zephir_check_call_status(); ZVAL_LONG(&_4$$3, 3); - ZEPHIR_CALL_FUNCTION(NULL, "imagelayereffect", NULL, 275, &overlay, &_4$$3); + ZEPHIR_CALL_FUNCTION(NULL, "imagelayereffect", NULL, 243, &overlay, &_4$$3); zephir_check_call_status(); ZVAL_LONG(&_4$$3, 0); ZVAL_LONG(&_6$$3, 0); ZVAL_LONG(&_7$$3, width); ZVAL_LONG(&_8$$3, height); - ZEPHIR_CALL_FUNCTION(NULL, "imagefilledrectangle", NULL, 276, &overlay, &_4$$3, &_6$$3, &_7$$3, &_8$$3, &color); + ZEPHIR_CALL_FUNCTION(NULL, "imagefilledrectangle", NULL, 244, &overlay, &_4$$3, &_6$$3, &_7$$3, &_8$$3, &color); zephir_check_call_status(); } zephir_read_property(&_9, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(NULL, "imagealphablending", NULL, 259, &_9, &__$true); + ZEPHIR_CALL_FUNCTION(NULL, "imagealphablending", NULL, 227, &_9, &__$true); zephir_check_call_status(); zephir_read_property(&_10, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); ZVAL_LONG(&_11, offsetX); @@ -76638,10 +75130,10 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _watermark) { ZVAL_LONG(&_14, 0); ZVAL_LONG(&_15, width); ZVAL_LONG(&_16, height); - ZEPHIR_CALL_FUNCTION(&_17, "imagecopy", NULL, 270, &_10, &overlay, &_11, &_12, &_13, &_14, &_15, &_16); + ZEPHIR_CALL_FUNCTION(&_17, "imagecopy", NULL, 238, &_10, &overlay, &_11, &_12, &_13, &_14, &_15, &_16); zephir_check_call_status(); if (zephir_is_true(&_17)) { - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 261, &overlay); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 229, &overlay); zephir_check_call_status(); } ZEPHIR_MM_RESTORE(); @@ -76708,14 +75200,14 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _text) { s5 = 0; ZEPHIR_INIT_VAR(&_0); ZVAL_DOUBLE(&_1, ((zephir_safe_div_long_long((opacity * 127), 100 TSRMLS_CC)) - (double) (127))); - ZEPHIR_CALL_FUNCTION(&_2, "abs", &_3, 199, &_1); + ZEPHIR_CALL_FUNCTION(&_2, "abs", &_3, 181, &_1); zephir_check_call_status(); zephir_round(&_0, &_2, NULL, NULL TSRMLS_CC); opacity = zephir_get_intval(&_0); if (!(Z_TYPE_P(&fontfile) == IS_UNDEF) && Z_STRLEN_P(&fontfile)) { ZVAL_LONG(&_4$$3, size); ZVAL_LONG(&_5$$3, 0); - ZEPHIR_CALL_FUNCTION(&space, "imagettfbbox", NULL, 277, &_4$$3, &_5$$3, &fontfile, &text); + ZEPHIR_CALL_FUNCTION(&space, "imagettfbbox", NULL, 245, &_4$$3, &_5$$3, &fontfile, &text); zephir_check_call_status(); if (zephir_array_isset_long(&space, 0)) { ZEPHIR_OBS_VAR(&_6$$4); @@ -76748,11 +75240,11 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _text) { return; } ZVAL_LONG(&_4$$3, (s4 - s0)); - ZEPHIR_CALL_FUNCTION(&_13$$3, "abs", &_3, 199, &_4$$3); + ZEPHIR_CALL_FUNCTION(&_13$$3, "abs", &_3, 181, &_4$$3); zephir_check_call_status(); width = (zephir_get_numberval(&_13$$3) + 10); ZVAL_LONG(&_4$$3, (s5 - s1)); - ZEPHIR_CALL_FUNCTION(&_14$$3, "abs", &_3, 199, &_4$$3); + ZEPHIR_CALL_FUNCTION(&_14$$3, "abs", &_3, 181, &_4$$3); zephir_check_call_status(); height = (zephir_get_numberval(&_14$$3) + 10); if (offsetX < 0) { @@ -76768,7 +75260,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _text) { ZVAL_LONG(&_17$$3, g); ZVAL_LONG(&_18$$3, b); ZVAL_LONG(&_19$$3, opacity); - ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", &_20, 267, &_4$$3, &_5$$3, &_17$$3, &_18$$3, &_19$$3); + ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", &_20, 235, &_4$$3, &_5$$3, &_17$$3, &_18$$3, &_19$$3); zephir_check_call_status(); angle = 0; zephir_read_property(&_5$$3, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); @@ -76776,15 +75268,15 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _text) { ZVAL_LONG(&_18$$3, angle); ZVAL_LONG(&_19$$3, offsetX); ZVAL_LONG(&_21$$3, offsetY); - ZEPHIR_CALL_FUNCTION(NULL, "imagettftext", NULL, 278, &_5$$3, &_17$$3, &_18$$3, &_19$$3, &_21$$3, &color, &fontfile, &text); + ZEPHIR_CALL_FUNCTION(NULL, "imagettftext", NULL, 246, &_5$$3, &_17$$3, &_18$$3, &_19$$3, &_21$$3, &color, &fontfile, &text); zephir_check_call_status(); } else { ZVAL_LONG(&_22$$8, size); - ZEPHIR_CALL_FUNCTION(&_23$$8, "imagefontwidth", NULL, 279, &_22$$8); + ZEPHIR_CALL_FUNCTION(&_23$$8, "imagefontwidth", NULL, 247, &_22$$8); zephir_check_call_status(); width = (zephir_get_intval(&_23$$8) * zephir_fast_strlen_ev(&text)); ZVAL_LONG(&_22$$8, size); - ZEPHIR_CALL_FUNCTION(&_24$$8, "imagefontheight", NULL, 280, &_22$$8); + ZEPHIR_CALL_FUNCTION(&_24$$8, "imagefontheight", NULL, 248, &_22$$8); zephir_check_call_status(); height = zephir_get_intval(&_24$$8); if (offsetX < 0) { @@ -76800,13 +75292,13 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _text) { ZVAL_LONG(&_28$$8, g); ZVAL_LONG(&_29$$8, b); ZVAL_LONG(&_30$$8, opacity); - ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", &_20, 267, &_22$$8, &_27$$8, &_28$$8, &_29$$8, &_30$$8); + ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", &_20, 235, &_22$$8, &_27$$8, &_28$$8, &_29$$8, &_30$$8); zephir_check_call_status(); zephir_read_property(&_27$$8, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); ZVAL_LONG(&_28$$8, size); ZVAL_LONG(&_29$$8, offsetX); ZVAL_LONG(&_30$$8, offsetY); - ZEPHIR_CALL_FUNCTION(NULL, "imagestring", NULL, 281, &_27$$8, &_28$$8, &_29$$8, &_30$$8, &text, &color); + ZEPHIR_CALL_FUNCTION(NULL, "imagestring", NULL, 249, &_27$$8, &_28$$8, &_29$$8, &_30$$8, &text, &color); zephir_check_call_status(); } ZEPHIR_MM_RESTORE(); @@ -76865,32 +75357,32 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _mask) { ZEPHIR_CALL_METHOD(&_0, mask, "render", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&maskImage, "imagecreatefromstring", NULL, 274, &_0); + ZEPHIR_CALL_FUNCTION(&maskImage, "imagecreatefromstring", NULL, 242, &_0); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_1, "imagesx", NULL, 263, &maskImage); + ZEPHIR_CALL_FUNCTION(&_1, "imagesx", NULL, 231, &maskImage); zephir_check_call_status(); mask_width = zephir_get_intval(&_1); - ZEPHIR_CALL_FUNCTION(&_2, "imagesy", NULL, 264, &maskImage); + ZEPHIR_CALL_FUNCTION(&_2, "imagesy", NULL, 232, &maskImage); zephir_check_call_status(); mask_height = zephir_get_intval(&_2); alpha = 127; - ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", &_3, 257, &maskImage, &__$true); + ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", &_3, 225, &maskImage, &__$true); zephir_check_call_status(); zephir_read_property(&_4, this_ptr, SL("_width"), PH_NOISY_CC | PH_READONLY); zephir_read_property(&_5, this_ptr, SL("_height"), PH_NOISY_CC | PH_READONLY); ZEPHIR_CALL_METHOD(&newimage, this_ptr, "_create", NULL, 0, &_4, &_5); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", &_3, 257, &newimage, &__$true); + ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", &_3, 225, &newimage, &__$true); zephir_check_call_status(); ZVAL_LONG(&_6, 0); ZVAL_LONG(&_7, 0); ZVAL_LONG(&_8, 0); ZVAL_LONG(&_9, alpha); - ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", &_10, 267, &newimage, &_6, &_7, &_8, &_9); + ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", &_10, 235, &newimage, &_6, &_7, &_8, &_9); zephir_check_call_status(); ZVAL_LONG(&_6, 0); ZVAL_LONG(&_7, 0); - ZEPHIR_CALL_FUNCTION(NULL, "imagefill", NULL, 282, &newimage, &_6, &_7, &color); + ZEPHIR_CALL_FUNCTION(NULL, "imagefill", NULL, 250, &newimage, &_6, &_7, &color); zephir_check_call_status(); zephir_read_property(&_6, this_ptr, SL("_width"), PH_NOISY_CC | PH_READONLY); _11 = !ZEPHIR_IS_LONG(&_6, mask_width); @@ -76901,7 +75393,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _mask) { if (_11) { zephir_read_property(&_12$$3, this_ptr, SL("_width"), PH_NOISY_CC | PH_READONLY); zephir_read_property(&_13$$3, this_ptr, SL("_height"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(&tempImage, "imagecreatetruecolor", NULL, 258, &_12$$3, &_13$$3); + ZEPHIR_CALL_FUNCTION(&tempImage, "imagecreatetruecolor", NULL, 226, &_12$$3, &_13$$3); zephir_check_call_status(); zephir_read_property(&_14$$3, this_ptr, SL("_width"), PH_NOISY_CC | PH_READONLY); zephir_read_property(&_15$$3, this_ptr, SL("_height"), PH_NOISY_CC | PH_READONLY); @@ -76911,9 +75403,9 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _mask) { ZVAL_LONG(&_19$$3, 0); ZVAL_LONG(&_20$$3, mask_width); ZVAL_LONG(&_21$$3, mask_height); - ZEPHIR_CALL_FUNCTION(NULL, "imagecopyresampled", NULL, 262, &tempImage, &maskImage, &_16$$3, &_17$$3, &_18$$3, &_19$$3, &_14$$3, &_15$$3, &_20$$3, &_21$$3); + ZEPHIR_CALL_FUNCTION(NULL, "imagecopyresampled", NULL, 230, &tempImage, &maskImage, &_16$$3, &_17$$3, &_18$$3, &_19$$3, &_14$$3, &_15$$3, &_20$$3, &_21$$3); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", &_22, 261, &maskImage); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", &_22, 229, &maskImage); zephir_check_call_status(); ZEPHIR_CPY_WRT(&maskImage, &tempImage); } @@ -76931,9 +75423,9 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _mask) { } ZVAL_LONG(&_24$$5, x); ZVAL_LONG(&_25$$5, y); - ZEPHIR_CALL_FUNCTION(&index, "imagecolorat", &_26, 283, &maskImage, &_24$$5, &_25$$5); + ZEPHIR_CALL_FUNCTION(&index, "imagecolorat", &_26, 251, &maskImage, &_24$$5, &_25$$5); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&color, "imagecolorsforindex", &_27, 284, &maskImage, &index); + ZEPHIR_CALL_FUNCTION(&color, "imagecolorsforindex", &_27, 252, &maskImage, &index); zephir_check_call_status(); if (zephir_array_isset_string(&color, SL("red"))) { zephir_array_fetch_string(&_28$$6, &color, SL("red"), PH_NOISY | PH_READONLY, "phalcon/image/adapter/gd.zep", 430 TSRMLS_CC); @@ -76943,10 +75435,10 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _mask) { zephir_read_property(&_24$$5, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); ZVAL_LONG(&_25$$5, x); ZVAL_LONG(&_30$$5, y); - ZEPHIR_CALL_FUNCTION(&index, "imagecolorat", &_26, 283, &_24$$5, &_25$$5, &_30$$5); + ZEPHIR_CALL_FUNCTION(&index, "imagecolorat", &_26, 251, &_24$$5, &_25$$5, &_30$$5); zephir_check_call_status(); zephir_read_property(&_25$$5, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(&color, "imagecolorsforindex", &_27, 284, &_25$$5, &index); + ZEPHIR_CALL_FUNCTION(&color, "imagecolorsforindex", &_27, 252, &_25$$5, &index); zephir_check_call_status(); ZEPHIR_OBS_NVAR(&r); zephir_array_fetch_string(&r, &color, SL("red"), PH_NOISY, "phalcon/image/adapter/gd.zep", 435 TSRMLS_CC); @@ -76955,20 +75447,20 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _mask) { ZEPHIR_OBS_NVAR(&b); zephir_array_fetch_string(&b, &color, SL("blue"), PH_NOISY, "phalcon/image/adapter/gd.zep", 435 TSRMLS_CC); ZVAL_LONG(&_30$$5, alpha); - ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", &_10, 267, &newimage, &r, &g, &b, &_30$$5); + ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", &_10, 235, &newimage, &r, &g, &b, &_30$$5); zephir_check_call_status(); ZVAL_LONG(&_30$$5, x); ZVAL_LONG(&_31$$5, y); - ZEPHIR_CALL_FUNCTION(NULL, "imagesetpixel", &_32, 285, &newimage, &_30$$5, &_31$$5, &color); + ZEPHIR_CALL_FUNCTION(NULL, "imagesetpixel", &_32, 253, &newimage, &_30$$5, &_31$$5, &color); zephir_check_call_status(); y++; } x++; } zephir_read_property(&_9, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", &_22, 261, &_9); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", &_22, 229, &_9); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", &_22, 261, &maskImage); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", &_22, 229, &maskImage); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_image"), &newimage); ZEPHIR_MM_RESTORE(); @@ -77014,9 +75506,9 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _background) { ZVAL_LONG(&_3, g); ZVAL_LONG(&_4, b); ZVAL_LONG(&_5, opacity); - ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", NULL, 267, &background, &_2, &_3, &_4, &_5); + ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", NULL, 235, &background, &_2, &_3, &_4, &_5); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(NULL, "imagealphablending", NULL, 259, &background, &__$true); + ZEPHIR_CALL_FUNCTION(NULL, "imagealphablending", NULL, 227, &background, &__$true); zephir_check_call_status(); zephir_read_property(&_2, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); zephir_read_property(&_3, this_ptr, SL("_width"), PH_NOISY_CC | PH_READONLY); @@ -77025,11 +75517,11 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _background) { ZVAL_LONG(&_6, 0); ZVAL_LONG(&_7, 0); ZVAL_LONG(&_8, 0); - ZEPHIR_CALL_FUNCTION(&_9, "imagecopy", NULL, 270, &background, &_2, &_5, &_6, &_7, &_8, &_3, &_4); + ZEPHIR_CALL_FUNCTION(&_9, "imagecopy", NULL, 238, &background, &_2, &_5, &_6, &_7, &_8, &_3, &_4); zephir_check_call_status(); if (zephir_is_true(&_9)) { zephir_read_property(&_10$$3, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 261, &_10$$3); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 229, &_10$$3); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_image"), &background); } @@ -77060,7 +75552,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _blur) { } zephir_read_property(&_0$$3, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); ZVAL_LONG(&_1$$3, 7); - ZEPHIR_CALL_FUNCTION(NULL, "imagefilter", &_2, 273, &_0$$3, &_1$$3); + ZEPHIR_CALL_FUNCTION(NULL, "imagefilter", &_2, 241, &_0$$3, &_1$$3); zephir_check_call_status(); i++; } @@ -77108,7 +75600,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _pixelate) { zephir_read_property(&_2$$4, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); ZVAL_LONG(&_3$$4, x1); ZVAL_LONG(&_4$$4, y1); - ZEPHIR_CALL_FUNCTION(&color, "imagecolorat", &_5, 283, &_2$$4, &_3$$4, &_4$$4); + ZEPHIR_CALL_FUNCTION(&color, "imagecolorat", &_5, 251, &_2$$4, &_3$$4, &_4$$4); zephir_check_call_status(); x2 = (x + amount); y2 = (y + amount); @@ -77117,7 +75609,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _pixelate) { ZVAL_LONG(&_6$$4, y); ZVAL_LONG(&_7$$4, x2); ZVAL_LONG(&_8$$4, y2); - ZEPHIR_CALL_FUNCTION(NULL, "imagefilledrectangle", &_9, 276, &_3$$4, &_4$$4, &_6$$4, &_7$$4, &_8$$4, &color); + ZEPHIR_CALL_FUNCTION(NULL, "imagefilledrectangle", &_9, 244, &_3$$4, &_4$$4, &_6$$4, &_7$$4, &_8$$4, &color); zephir_check_call_status(); y += amount; } @@ -77175,11 +75667,11 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _save) { ZVAL_LONG(&_0, 4); - ZEPHIR_CALL_FUNCTION(&ext, "pathinfo", NULL, 73, &file, &_0); + ZEPHIR_CALL_FUNCTION(&ext, "pathinfo", NULL, 67, &file, &_0); zephir_check_call_status(); if (!(zephir_is_true(&ext))) { zephir_read_property(&_1$$3, this_ptr, SL("_type"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(&ext, "image_type_to_extension", NULL, 286, &_1$$3, &__$false); + ZEPHIR_CALL_FUNCTION(&ext, "image_type_to_extension", NULL, 254, &_1$$3, &__$false); zephir_check_call_status(); } ZEPHIR_INIT_VAR(&_2); @@ -77187,30 +75679,30 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _save) { ZEPHIR_CPY_WRT(&ext, &_2); ZEPHIR_INIT_NVAR(&_2); ZVAL_STRING(&_2, "gif"); - ZEPHIR_CALL_FUNCTION(&_3, "strcmp", &_4, 287, &ext, &_2); + ZEPHIR_CALL_FUNCTION(&_3, "strcmp", &_4, 255, &ext, &_2); zephir_check_call_status(); if (ZEPHIR_IS_LONG(&_3, 0)) { ZEPHIR_INIT_ZVAL_NREF(_5$$4); ZVAL_LONG(&_5$$4, 1); zephir_update_property_zval(this_ptr, SL("_type"), &_5$$4); zephir_read_property(&_5$$4, this_ptr, SL("_type"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(&_6$$4, "image_type_to_mime_type", &_7, 288, &_5$$4); + ZEPHIR_CALL_FUNCTION(&_6$$4, "image_type_to_mime_type", &_7, 256, &_5$$4); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_mime"), &_6$$4); zephir_read_property(&_8$$4, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(NULL, "imagegif", NULL, 289, &_8$$4, &file); + ZEPHIR_CALL_FUNCTION(NULL, "imagegif", NULL, 257, &_8$$4, &file); zephir_check_call_status(); RETURN_MM_BOOL(1); } ZEPHIR_INIT_NVAR(&_2); ZVAL_STRING(&_2, "jpg"); - ZEPHIR_CALL_FUNCTION(&_9, "strcmp", &_4, 287, &ext, &_2); + ZEPHIR_CALL_FUNCTION(&_9, "strcmp", &_4, 255, &ext, &_2); zephir_check_call_status(); _10 = ZEPHIR_IS_LONG(&_9, 0); if (!(_10)) { ZEPHIR_INIT_NVAR(&_2); ZVAL_STRING(&_2, "jpeg"); - ZEPHIR_CALL_FUNCTION(&_11, "strcmp", &_4, 287, &ext, &_2); + ZEPHIR_CALL_FUNCTION(&_11, "strcmp", &_4, 255, &ext, &_2); zephir_check_call_status(); _10 = ZEPHIR_IS_LONG(&_11, 0); } @@ -77219,7 +75711,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _save) { ZVAL_LONG(&_12$$5, 2); zephir_update_property_zval(this_ptr, SL("_type"), &_12$$5); zephir_read_property(&_12$$5, this_ptr, SL("_type"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(&_13$$5, "image_type_to_mime_type", &_7, 288, &_12$$5); + ZEPHIR_CALL_FUNCTION(&_13$$5, "image_type_to_mime_type", &_7, 256, &_12$$5); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_mime"), &_13$$5); if (quality >= 0) { @@ -77230,63 +75722,63 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _save) { } zephir_read_property(&_14$$6, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); ZVAL_LONG(&_15$$6, quality); - ZEPHIR_CALL_FUNCTION(NULL, "imagejpeg", &_16, 290, &_14$$6, &file, &_15$$6); + ZEPHIR_CALL_FUNCTION(NULL, "imagejpeg", &_16, 258, &_14$$6, &file, &_15$$6); zephir_check_call_status(); } else { zephir_read_property(&_17$$9, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(NULL, "imagejpeg", &_16, 290, &_17$$9, &file); + ZEPHIR_CALL_FUNCTION(NULL, "imagejpeg", &_16, 258, &_17$$9, &file); zephir_check_call_status(); } RETURN_MM_BOOL(1); } ZEPHIR_INIT_NVAR(&_2); ZVAL_STRING(&_2, "png"); - ZEPHIR_CALL_FUNCTION(&_18, "strcmp", &_4, 287, &ext, &_2); + ZEPHIR_CALL_FUNCTION(&_18, "strcmp", &_4, 255, &ext, &_2); zephir_check_call_status(); if (ZEPHIR_IS_LONG(&_18, 0)) { ZEPHIR_INIT_ZVAL_NREF(_19$$10); ZVAL_LONG(&_19$$10, 3); zephir_update_property_zval(this_ptr, SL("_type"), &_19$$10); zephir_read_property(&_19$$10, this_ptr, SL("_type"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(&_20$$10, "image_type_to_mime_type", &_7, 288, &_19$$10); + ZEPHIR_CALL_FUNCTION(&_20$$10, "image_type_to_mime_type", &_7, 256, &_19$$10); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_mime"), &_20$$10); zephir_read_property(&_21$$10, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(NULL, "imagepng", NULL, 291, &_21$$10, &file); + ZEPHIR_CALL_FUNCTION(NULL, "imagepng", NULL, 259, &_21$$10, &file); zephir_check_call_status(); RETURN_MM_BOOL(1); } ZEPHIR_INIT_NVAR(&_2); ZVAL_STRING(&_2, "wbmp"); - ZEPHIR_CALL_FUNCTION(&_22, "strcmp", &_4, 287, &ext, &_2); + ZEPHIR_CALL_FUNCTION(&_22, "strcmp", &_4, 255, &ext, &_2); zephir_check_call_status(); if (ZEPHIR_IS_LONG(&_22, 0)) { ZEPHIR_INIT_ZVAL_NREF(_23$$11); ZVAL_LONG(&_23$$11, 15); zephir_update_property_zval(this_ptr, SL("_type"), &_23$$11); zephir_read_property(&_23$$11, this_ptr, SL("_type"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(&_24$$11, "image_type_to_mime_type", &_7, 288, &_23$$11); + ZEPHIR_CALL_FUNCTION(&_24$$11, "image_type_to_mime_type", &_7, 256, &_23$$11); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_mime"), &_24$$11); zephir_read_property(&_25$$11, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(NULL, "imagewbmp", NULL, 292, &_25$$11, &file); + ZEPHIR_CALL_FUNCTION(NULL, "imagewbmp", NULL, 260, &_25$$11, &file); zephir_check_call_status(); RETURN_MM_BOOL(1); } ZEPHIR_INIT_NVAR(&_2); ZVAL_STRING(&_2, "xbm"); - ZEPHIR_CALL_FUNCTION(&_26, "strcmp", &_4, 287, &ext, &_2); + ZEPHIR_CALL_FUNCTION(&_26, "strcmp", &_4, 255, &ext, &_2); zephir_check_call_status(); if (ZEPHIR_IS_LONG(&_26, 0)) { ZEPHIR_INIT_ZVAL_NREF(_27$$12); ZVAL_LONG(&_27$$12, 16); zephir_update_property_zval(this_ptr, SL("_type"), &_27$$12); zephir_read_property(&_27$$12, this_ptr, SL("_type"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(&_28$$12, "image_type_to_mime_type", &_7, 288, &_27$$12); + ZEPHIR_CALL_FUNCTION(&_28$$12, "image_type_to_mime_type", &_7, 256, &_27$$12); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_mime"), &_28$$12); zephir_read_property(&_29$$12, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(NULL, "imagexbm", NULL, 293, &_29$$12, &file); + ZEPHIR_CALL_FUNCTION(NULL, "imagexbm", NULL, 261, &_29$$12, &file); zephir_check_call_status(); RETURN_MM_BOOL(1); } @@ -77294,7 +75786,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _save) { object_init_ex(&_2, phalcon_image_exception_ce); ZEPHIR_INIT_VAR(&_30); ZEPHIR_CONCAT_SVS(&_30, "Installed GD does not support '", &ext, "' images"); - ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", NULL, 9, &_30); + ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", NULL, 4, &_30); zephir_check_call_status(); zephir_throw_exception_debug(&_2, "phalcon/image/adapter/gd.zep", 554 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -77339,74 +75831,74 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _render) { ZEPHIR_INIT_VAR(&_0); zephir_fast_strtolower(&_0, &ext); zephir_get_strval(&ext, &_0); - ZEPHIR_CALL_FUNCTION(NULL, "ob_start", NULL, 126); + ZEPHIR_CALL_FUNCTION(NULL, "ob_start", NULL, 115); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_1); ZVAL_STRING(&_1, "gif"); - ZEPHIR_CALL_FUNCTION(&_2, "strcmp", &_3, 287, &ext, &_1); + ZEPHIR_CALL_FUNCTION(&_2, "strcmp", &_3, 255, &ext, &_1); zephir_check_call_status(); if (ZEPHIR_IS_LONG(&_2, 0)) { zephir_read_property(&_4$$3, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(NULL, "imagegif", NULL, 289, &_4$$3); + ZEPHIR_CALL_FUNCTION(NULL, "imagegif", NULL, 257, &_4$$3); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_FUNCTION("ob_get_clean", &_5, 294); + ZEPHIR_RETURN_CALL_FUNCTION("ob_get_clean", &_5, 262); zephir_check_call_status(); RETURN_MM(); } ZEPHIR_INIT_NVAR(&_1); ZVAL_STRING(&_1, "jpg"); - ZEPHIR_CALL_FUNCTION(&_6, "strcmp", &_3, 287, &ext, &_1); + ZEPHIR_CALL_FUNCTION(&_6, "strcmp", &_3, 255, &ext, &_1); zephir_check_call_status(); _7 = ZEPHIR_IS_LONG(&_6, 0); if (!(_7)) { ZEPHIR_INIT_NVAR(&_1); ZVAL_STRING(&_1, "jpeg"); - ZEPHIR_CALL_FUNCTION(&_8, "strcmp", &_3, 287, &ext, &_1); + ZEPHIR_CALL_FUNCTION(&_8, "strcmp", &_3, 255, &ext, &_1); zephir_check_call_status(); _7 = ZEPHIR_IS_LONG(&_8, 0); } if (_7) { zephir_read_property(&_9$$4, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); ZVAL_LONG(&_10$$4, quality); - ZEPHIR_CALL_FUNCTION(NULL, "imagejpeg", NULL, 290, &_9$$4, &__$null, &_10$$4); + ZEPHIR_CALL_FUNCTION(NULL, "imagejpeg", NULL, 258, &_9$$4, &__$null, &_10$$4); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_FUNCTION("ob_get_clean", &_5, 294); + ZEPHIR_RETURN_CALL_FUNCTION("ob_get_clean", &_5, 262); zephir_check_call_status(); RETURN_MM(); } ZEPHIR_INIT_NVAR(&_1); ZVAL_STRING(&_1, "png"); - ZEPHIR_CALL_FUNCTION(&_11, "strcmp", &_3, 287, &ext, &_1); + ZEPHIR_CALL_FUNCTION(&_11, "strcmp", &_3, 255, &ext, &_1); zephir_check_call_status(); if (ZEPHIR_IS_LONG(&_11, 0)) { zephir_read_property(&_12$$5, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(NULL, "imagepng", NULL, 291, &_12$$5); + ZEPHIR_CALL_FUNCTION(NULL, "imagepng", NULL, 259, &_12$$5); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_FUNCTION("ob_get_clean", &_5, 294); + ZEPHIR_RETURN_CALL_FUNCTION("ob_get_clean", &_5, 262); zephir_check_call_status(); RETURN_MM(); } ZEPHIR_INIT_NVAR(&_1); ZVAL_STRING(&_1, "wbmp"); - ZEPHIR_CALL_FUNCTION(&_13, "strcmp", &_3, 287, &ext, &_1); + ZEPHIR_CALL_FUNCTION(&_13, "strcmp", &_3, 255, &ext, &_1); zephir_check_call_status(); if (ZEPHIR_IS_LONG(&_13, 0)) { zephir_read_property(&_14$$6, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(NULL, "imagewbmp", NULL, 292, &_14$$6); + ZEPHIR_CALL_FUNCTION(NULL, "imagewbmp", NULL, 260, &_14$$6); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_FUNCTION("ob_get_clean", &_5, 294); + ZEPHIR_RETURN_CALL_FUNCTION("ob_get_clean", &_5, 262); zephir_check_call_status(); RETURN_MM(); } ZEPHIR_INIT_NVAR(&_1); ZVAL_STRING(&_1, "xbm"); - ZEPHIR_CALL_FUNCTION(&_15, "strcmp", &_3, 287, &ext, &_1); + ZEPHIR_CALL_FUNCTION(&_15, "strcmp", &_3, 255, &ext, &_1); zephir_check_call_status(); if (ZEPHIR_IS_LONG(&_15, 0)) { zephir_read_property(&_16$$7, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(NULL, "imagexbm", NULL, 293, &_16$$7, &__$null); + ZEPHIR_CALL_FUNCTION(NULL, "imagexbm", NULL, 261, &_16$$7, &__$null); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_FUNCTION("ob_get_clean", &_5, 294); + ZEPHIR_RETURN_CALL_FUNCTION("ob_get_clean", &_5, 262); zephir_check_call_status(); RETURN_MM(); } @@ -77414,7 +75906,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _render) { object_init_ex(&_1, phalcon_image_exception_ce); ZEPHIR_INIT_VAR(&_17); ZEPHIR_CONCAT_SVS(&_17, "Installed GD does not support '", &ext, "' images"); - ZEPHIR_CALL_METHOD(NULL, &_1, "__construct", NULL, 9, &_17); + ZEPHIR_CALL_METHOD(NULL, &_1, "__construct", NULL, 4, &_17); zephir_check_call_status(); zephir_throw_exception_debug(&_1, "phalcon/image/adapter/gd.zep", 582 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -77443,11 +75935,11 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _create) { ZVAL_LONG(&_0, width); ZVAL_LONG(&_1, height); - ZEPHIR_CALL_FUNCTION(&image, "imagecreatetruecolor", NULL, 258, &_0, &_1); + ZEPHIR_CALL_FUNCTION(&image, "imagecreatetruecolor", NULL, 226, &_0, &_1); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(NULL, "imagealphablending", NULL, 259, &image, &__$false); + ZEPHIR_CALL_FUNCTION(NULL, "imagealphablending", NULL, 227, &image, &__$false); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", NULL, 257, &image, &__$true); + ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", NULL, 225, &image, &__$true); zephir_check_call_status(); RETURN_CCTOR(image); @@ -77466,7 +75958,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, __destruct) { ZEPHIR_OBS_VAR(&image); zephir_read_property(&image, this_ptr, SL("_image"), PH_NOISY_CC); if (Z_TYPE_P(&image) == IS_RESOURCE) { - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 261, &image); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 229, &image); zephir_check_call_status(); } ZEPHIR_MM_RESTORE(); @@ -77524,12 +76016,12 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, check) { } ZEPHIR_INIT_VAR(&_2); ZVAL_STRING(&_2, "Imagick::IMAGICK_EXTNUM"); - ZEPHIR_CALL_FUNCTION(&_3, "defined", NULL, 239, &_2); + ZEPHIR_CALL_FUNCTION(&_3, "defined", NULL, 207, &_2); zephir_check_call_status(); if (zephir_is_true(&_3)) { ZEPHIR_INIT_VAR(&_4$$5); ZVAL_STRING(&_4$$5, "Imagick::IMAGICK_EXTNUM"); - ZEPHIR_CALL_FUNCTION(&_5$$5, "constant", NULL, 197, &_4$$5); + ZEPHIR_CALL_FUNCTION(&_5$$5, "constant", NULL, 179, &_4$$5); zephir_check_call_status(); zephir_update_static_property_ce(phalcon_image_adapter_imagick_ce, SL("_version"), &_5$$5); } @@ -77591,11 +76083,11 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, __construct) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &file_param, &width_param, &height_param); - if (unlikely(Z_TYPE_P(file_param) != IS_STRING && Z_TYPE_P(file_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(file_param) != IS_STRING && Z_TYPE_P(file_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'file' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(file_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(file_param) == IS_STRING)) { zephir_get_strval(&file, file_param); } else { ZEPHIR_INIT_VAR(&file); @@ -77621,13 +76113,15 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, __construct) { zephir_update_property_zval(this_ptr, SL("_file"), &file); ZEPHIR_INIT_VAR(&_1); object_init_ex(&_1, zephir_get_internal_ce(SL("imagick"))); - ZEPHIR_CALL_METHOD(NULL, &_1, "__construct", NULL, 0); - zephir_check_call_status(); + if (zephir_has_constructor(&_1 TSRMLS_CC)) { + ZEPHIR_CALL_METHOD(NULL, &_1, "__construct", NULL, 0); + zephir_check_call_status(); + } zephir_update_property_zval(this_ptr, SL("_image"), &_1); zephir_read_property(&_2, this_ptr, SL("_file"), PH_NOISY_CC | PH_READONLY); if ((zephir_file_exists(&_2 TSRMLS_CC) == SUCCESS)) { zephir_read_property(&_3$$4, this_ptr, SL("_file"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(&_4$$4, "realpath", NULL, 64, &_3$$4); + ZEPHIR_CALL_FUNCTION(&_4$$4, "realpath", NULL, 58, &_3$$4); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_realpath"), &_4$$4); zephir_read_property(&_5$$4, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); @@ -77640,7 +76134,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, __construct) { zephir_read_property(&_9$$5, this_ptr, SL("_file"), PH_NOISY_CC | PH_READONLY); ZEPHIR_INIT_VAR(&_10$$5); ZEPHIR_CONCAT_SVS(&_10$$5, "Imagick::readImage ", &_9$$5, " failed"); - ZEPHIR_CALL_METHOD(NULL, &_8$$5, "__construct", NULL, 9, &_10$$5); + ZEPHIR_CALL_METHOD(NULL, &_8$$5, "__construct", NULL, 4, &_10$$5); zephir_check_call_status(); zephir_throw_exception_debug(&_8$$5, "phalcon/image/adapter/imagick.zep", 86 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -77653,7 +76147,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, __construct) { zephir_read_property(&_13$$6, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); ZEPHIR_INIT_VAR(&_14$$6); ZVAL_STRING(&_14$$6, "Imagick::ALPHACHANNEL_SET"); - ZEPHIR_CALL_FUNCTION(&_15$$6, "constant", NULL, 197, &_14$$6); + ZEPHIR_CALL_FUNCTION(&_15$$6, "constant", NULL, 179, &_14$$6); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, &_13$$6, "setimagealphachannel", NULL, 0, &_15$$6); zephir_check_call_status(); @@ -77682,7 +76176,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, __construct) { zephir_read_property(&_22$$9, this_ptr, SL("_file"), PH_NOISY_CC | PH_READONLY); ZEPHIR_INIT_VAR(&_23$$9); ZEPHIR_CONCAT_SV(&_23$$9, "Failed to create image from file ", &_22$$9); - ZEPHIR_CALL_METHOD(NULL, &_21$$9, "__construct", NULL, 9, &_23$$9); + ZEPHIR_CALL_METHOD(NULL, &_21$$9, "__construct", NULL, 4, &_23$$9); zephir_check_call_status(); zephir_throw_exception_debug(&_21$$9, "phalcon/image/adapter/imagick.zep", 102 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -77691,10 +76185,12 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, __construct) { zephir_read_property(&_24$$8, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); ZEPHIR_INIT_VAR(&_25$$8); object_init_ex(&_25$$8, zephir_get_internal_ce(SL("imagickpixel"))); - ZEPHIR_INIT_VAR(&_26$$8); - ZVAL_STRING(&_26$$8, "transparent"); - ZEPHIR_CALL_METHOD(NULL, &_25$$8, "__construct", NULL, 0, &_26$$8); - zephir_check_call_status(); + if (zephir_has_constructor(&_25$$8 TSRMLS_CC)) { + ZEPHIR_INIT_VAR(&_26$$8); + ZVAL_STRING(&_26$$8, "transparent"); + ZEPHIR_CALL_METHOD(NULL, &_25$$8, "__construct", NULL, 0, &_26$$8); + zephir_check_call_status(); + } ZVAL_LONG(&_27$$8, width); ZVAL_LONG(&_28$$8, height); ZEPHIR_CALL_METHOD(NULL, &_24$$8, "newimage", NULL, 0, &_27$$8, &_28$$8, &_25$$8); @@ -77933,8 +76429,10 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _rotate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(&pixel); object_init_ex(&pixel, zephir_get_internal_ce(SL("imagickpixel"))); - ZEPHIR_CALL_METHOD(NULL, &pixel, "__construct", NULL, 0); - zephir_check_call_status(); + if (zephir_has_constructor(&pixel TSRMLS_CC)) { + ZEPHIR_CALL_METHOD(NULL, &pixel, "__construct", NULL, 0); + zephir_check_call_status(); + } while (1) { zephir_read_property(&_2$$3, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); ZVAL_LONG(&_3$$3, degrees); @@ -78180,8 +76678,10 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _reflection) { } ZEPHIR_INIT_VAR(&fade); object_init_ex(&fade, zephir_get_internal_ce(SL("imagick"))); - ZEPHIR_CALL_METHOD(NULL, &fade, "__construct", NULL, 0); - zephir_check_call_status(); + if (zephir_has_constructor(&fade TSRMLS_CC)) { + ZEPHIR_CALL_METHOD(NULL, &fade, "__construct", NULL, 0); + zephir_check_call_status(); + } ZEPHIR_CALL_METHOD(&_17, &reflection, "getimagewidth", NULL, 0); zephir_check_call_status(); ZEPHIR_CALL_METHOD(&_18, &reflection, "getimageheight", NULL, 0); @@ -78195,7 +76695,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _reflection) { while (1) { ZEPHIR_INIT_NVAR(&_19$$7); ZVAL_STRING(&_19$$7, "Imagick::COMPOSITE_DSTOUT"); - ZEPHIR_CALL_FUNCTION(&_20$$7, "constant", &_21, 197, &_19$$7); + ZEPHIR_CALL_FUNCTION(&_20$$7, "constant", &_21, 179, &_19$$7); zephir_check_call_status(); ZVAL_LONG(&_22$$7, 0); ZVAL_LONG(&_23$$7, 0); @@ -78207,11 +76707,11 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _reflection) { } ZEPHIR_INIT_NVAR(&_19$$7); ZVAL_STRING(&_19$$7, "Imagick::EVALUATE_MULTIPLY"); - ZEPHIR_CALL_FUNCTION(&_25$$7, "constant", &_21, 197, &_19$$7); + ZEPHIR_CALL_FUNCTION(&_25$$7, "constant", &_21, 179, &_19$$7); zephir_check_call_status(); ZEPHIR_INIT_NVAR(&_19$$7); ZVAL_STRING(&_19$$7, "Imagick::CHANNEL_ALPHA"); - ZEPHIR_CALL_FUNCTION(&_26$$7, "constant", &_21, 197, &_19$$7); + ZEPHIR_CALL_FUNCTION(&_26$$7, "constant", &_21, 179, &_19$$7); zephir_check_call_status(); ZVAL_LONG(&_22$$7, opacity); ZEPHIR_CALL_METHOD(NULL, &reflection, "evaluateimage", &_27, 0, &_25$$7, &_22$$7, &_26$$7); @@ -78226,12 +76726,16 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _reflection) { zephir_check_call_status(); ZEPHIR_INIT_VAR(&image); object_init_ex(&image, zephir_get_internal_ce(SL("imagick"))); - ZEPHIR_CALL_METHOD(NULL, &image, "__construct", NULL, 0); - zephir_check_call_status(); + if (zephir_has_constructor(&image TSRMLS_CC)) { + ZEPHIR_CALL_METHOD(NULL, &image, "__construct", NULL, 0); + zephir_check_call_status(); + } ZEPHIR_INIT_VAR(&pixel); object_init_ex(&pixel, zephir_get_internal_ce(SL("imagickpixel"))); - ZEPHIR_CALL_METHOD(NULL, &pixel, "__construct", NULL, 0); - zephir_check_call_status(); + if (zephir_has_constructor(&pixel TSRMLS_CC)) { + ZEPHIR_CALL_METHOD(NULL, &pixel, "__construct", NULL, 0); + zephir_check_call_status(); + } zephir_read_property(&_4, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); ZEPHIR_CALL_METHOD(&_30, &_4, "getimageheight", NULL, 0); zephir_check_call_status(); @@ -78247,7 +76751,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _reflection) { zephir_check_call_status(); ZEPHIR_INIT_NVAR(&_36$$10); ZVAL_STRING(&_36$$10, "Imagick::ALPHACHANNEL_SET"); - ZEPHIR_CALL_FUNCTION(&_37$$10, "constant", &_21, 197, &_36$$10); + ZEPHIR_CALL_FUNCTION(&_37$$10, "constant", &_21, 179, &_36$$10); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, &image, "setimagealphachannel", &_38, 0, &_37$$10); zephir_check_call_status(); @@ -78264,7 +76768,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _reflection) { zephir_read_property(&_44$$10, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); ZEPHIR_INIT_NVAR(&_36$$10); ZVAL_STRING(&_36$$10, "Imagick::COMPOSITE_SRC"); - ZEPHIR_CALL_FUNCTION(&_45$$10, "constant", &_21, 197, &_36$$10); + ZEPHIR_CALL_FUNCTION(&_45$$10, "constant", &_21, 179, &_36$$10); zephir_check_call_status(); ZVAL_LONG(&_46$$10, 0); ZVAL_LONG(&_47$$10, 0); @@ -78290,7 +76794,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _reflection) { while (1) { ZEPHIR_INIT_NVAR(&_50$$13); ZVAL_STRING(&_50$$13, "Imagick::COMPOSITE_OVER"); - ZEPHIR_CALL_FUNCTION(&_51$$13, "constant", &_21, 197, &_50$$13); + ZEPHIR_CALL_FUNCTION(&_51$$13, "constant", &_21, 179, &_50$$13); zephir_check_call_status(); zephir_read_property(&_52$$13, this_ptr, SL("_height"), PH_NOISY_CC | PH_READONLY); ZVAL_LONG(&_53$$13, 0); @@ -78335,10 +76839,9 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _reflection) { static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _watermark) { - zend_class_entry *_0$$3; - zephir_fcall_cache_entry *_8 = NULL; + zephir_fcall_cache_entry *_7 = NULL; int offsetX, offsetY, opacity, ZEPHIR_LAST_CALL_STATUS; - zval *image, image_sub, *offsetX_param = NULL, *offsetY_param = NULL, *opacity_param = NULL, watermark, ret, version, method, _2, _3, _4, _1$$3, _5$$5, _6$$5, _7$$5, _9$$5, _10$$5, _11$$5; + zval *image, image_sub, *offsetX_param = NULL, *offsetY_param = NULL, *opacity_param = NULL, watermark, ret, version, method, _1, _2, _3, _0$$3, _4$$5, _5$$5, _6$$5, _8$$5, _9$$5, _10$$5; ZEPHIR_INIT_THIS(); ZVAL_UNDEF(&image_sub); @@ -78346,16 +76849,16 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _watermark) { ZVAL_UNDEF(&ret); ZVAL_UNDEF(&version); ZVAL_UNDEF(&method); + ZVAL_UNDEF(&_1); ZVAL_UNDEF(&_2); ZVAL_UNDEF(&_3); - ZVAL_UNDEF(&_4); - ZVAL_UNDEF(&_1$$3); + ZVAL_UNDEF(&_0$$3); + ZVAL_UNDEF(&_4$$5); ZVAL_UNDEF(&_5$$5); ZVAL_UNDEF(&_6$$5); - ZVAL_UNDEF(&_7$$5); + ZVAL_UNDEF(&_8$$5); ZVAL_UNDEF(&_9$$5); ZVAL_UNDEF(&_10$$5); - ZVAL_UNDEF(&_11$$5); ZEPHIR_MM_GROW(); zephir_fetch_params(1, 4, 0, &image, &offsetX_param, &offsetY_param, &opacity_param); @@ -78368,49 +76871,50 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _watermark) { opacity = (long) (zephir_safe_div_long_long(opacity, 100 TSRMLS_CC)); ZEPHIR_INIT_VAR(&watermark); object_init_ex(&watermark, zephir_get_internal_ce(SL("imagick"))); - ZEPHIR_CALL_METHOD(NULL, &watermark, "__construct", NULL, 0); - zephir_check_call_status(); + if (zephir_has_constructor(&watermark TSRMLS_CC)) { + ZEPHIR_CALL_METHOD(NULL, &watermark, "__construct", NULL, 0); + zephir_check_call_status(); + } ZEPHIR_INIT_VAR(&method); ZVAL_STRING(&method, "setImageOpacity"); - if (likely((zephir_method_exists_ex(&watermark, SL("getversion") TSRMLS_CC) == SUCCESS))) { - _0$$3 = zephir_fetch_class_str_ex(SL("Imagick"), ZEND_FETCH_CLASS_AUTO); - ZEPHIR_CALL_CE_STATIC(&version, _0$$3, "getversion", NULL, 0); + if (EXPECTED((zephir_method_exists_ex(&watermark, SL("getversion") TSRMLS_CC) == SUCCESS))) { + ZEPHIR_CALL_METHOD(&version, &watermark, "getversion", NULL, 0); zephir_check_call_status(); - zephir_array_fetch_string(&_1$$3, &version, SL("versionNumber"), PH_NOISY | PH_READONLY, "phalcon/image/adapter/imagick.zep", 365 TSRMLS_CC); - if (ZEPHIR_GE_LONG(&_1$$3, 0x700)) { + zephir_array_fetch_string(&_0$$3, &version, SL("versionNumber"), PH_NOISY | PH_READONLY, "phalcon/image/adapter/imagick.zep", 365 TSRMLS_CC); + if (ZEPHIR_GE_LONG(&_0$$3, 0x700)) { ZEPHIR_INIT_NVAR(&method); ZVAL_STRING(&method, "setImageAlpha"); } } - ZEPHIR_CALL_METHOD(&_2, image, "render", NULL, 0); + ZEPHIR_CALL_METHOD(&_1, image, "render", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, &watermark, "readimageblob", NULL, 0, &_2); + ZEPHIR_CALL_METHOD(NULL, &watermark, "readimageblob", NULL, 0, &_1); zephir_check_call_status(); - ZVAL_LONG(&_3, opacity); - ZEPHIR_CALL_METHOD_ZVAL(NULL, &watermark, &method, NULL, 0, &_3); + ZVAL_LONG(&_2, opacity); + ZEPHIR_CALL_METHOD_ZVAL(NULL, &watermark, &method, NULL, 0, &_2); zephir_check_call_status(); - zephir_read_property(&_3, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); - ZVAL_LONG(&_4, 0); - ZEPHIR_CALL_METHOD(NULL, &_3, "setiteratorindex", NULL, 0, &_4); + zephir_read_property(&_2, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); + ZVAL_LONG(&_3, 0); + ZEPHIR_CALL_METHOD(NULL, &_2, "setiteratorindex", NULL, 0, &_3); zephir_check_call_status(); while (1) { - zephir_read_property(&_5$$5, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_INIT_NVAR(&_6$$5); - ZVAL_STRING(&_6$$5, "Imagick::COMPOSITE_OVER"); - ZEPHIR_CALL_FUNCTION(&_7$$5, "constant", &_8, 197, &_6$$5); + zephir_read_property(&_4$$5, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); + ZEPHIR_INIT_NVAR(&_5$$5); + ZVAL_STRING(&_5$$5, "Imagick::COMPOSITE_OVER"); + ZEPHIR_CALL_FUNCTION(&_6$$5, "constant", &_7, 179, &_5$$5); zephir_check_call_status(); - ZVAL_LONG(&_9$$5, offsetX); - ZVAL_LONG(&_10$$5, offsetY); - ZEPHIR_CALL_METHOD(&ret, &_5$$5, "compositeimage", NULL, 0, &watermark, &_7$$5, &_9$$5, &_10$$5); + ZVAL_LONG(&_8$$5, offsetX); + ZVAL_LONG(&_9$$5, offsetY); + ZEPHIR_CALL_METHOD(&ret, &_4$$5, "compositeimage", NULL, 0, &watermark, &_6$$5, &_8$$5, &_9$$5); zephir_check_call_status(); if (!ZEPHIR_IS_TRUE_IDENTICAL(&ret)) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_image_exception_ce, "Imagick::compositeImage failed", "phalcon/image/adapter/imagick.zep", 379); return; } - zephir_read_property(&_9$$5, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_METHOD(&_11$$5, &_9$$5, "nextimage", NULL, 0); + zephir_read_property(&_8$$5, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); + ZEPHIR_CALL_METHOD(&_10$$5, &_8$$5, "nextimage", NULL, 0); zephir_check_call_status(); - if (ZEPHIR_IS_FALSE_IDENTICAL(&_11$$5)) { + if (ZEPHIR_IS_FALSE_IDENTICAL(&_10$$5)) { break; } } @@ -78481,19 +76985,23 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _text) { opacity = (long) (zephir_safe_div_long_long(opacity, 100 TSRMLS_CC)); ZEPHIR_INIT_VAR(&draw); object_init_ex(&draw, zephir_get_internal_ce(SL("imagickdraw"))); - ZEPHIR_CALL_METHOD(NULL, &draw, "__construct", NULL, 0); - zephir_check_call_status(); + if (zephir_has_constructor(&draw TSRMLS_CC)) { + ZEPHIR_CALL_METHOD(NULL, &draw, "__construct", NULL, 0); + zephir_check_call_status(); + } ZEPHIR_INIT_VAR(&_0); ZVAL_STRING(&_0, "rgb(%d, %d, %d)"); ZVAL_LONG(&_1, r); ZVAL_LONG(&_2, g); ZVAL_LONG(&_3, b); - ZEPHIR_CALL_FUNCTION(&color, "sprintf", NULL, 194, &_0, &_1, &_2, &_3); + ZEPHIR_CALL_FUNCTION(&color, "sprintf", NULL, 176, &_0, &_1, &_2, &_3); zephir_check_call_status(); ZEPHIR_INIT_NVAR(&_0); object_init_ex(&_0, zephir_get_internal_ce(SL("imagickpixel"))); - ZEPHIR_CALL_METHOD(NULL, &_0, "__construct", NULL, 0, &color); - zephir_check_call_status(); + if (zephir_has_constructor(&_0 TSRMLS_CC)) { + ZEPHIR_CALL_METHOD(NULL, &_0, "__construct", NULL, 0, &color); + zephir_check_call_status(); + } ZEPHIR_CALL_METHOD(NULL, &draw, "setfillcolor", NULL, 0, &_0); zephir_check_call_status(); if (!(Z_TYPE_P(&fontfile) == IS_UNDEF) && Z_STRLEN_P(&fontfile)) { @@ -78525,24 +77033,24 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _text) { if (_6$$7) { ZEPHIR_INIT_VAR(&_7$$8); ZVAL_STRING(&_7$$8, "Imagick::GRAVITY_SOUTHEAST"); - ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_8, 197, &_7$$8); + ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_8, 179, &_7$$8); zephir_check_call_status(); } else { if (zephir_is_true(offsetX)) { ZEPHIR_INIT_VAR(&_9$$10); ZVAL_STRING(&_9$$10, "Imagick::GRAVITY_EAST"); - ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_8, 197, &_9$$10); + ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_8, 179, &_9$$10); zephir_check_call_status(); } else { if (zephir_is_true(offsetY)) { ZEPHIR_INIT_VAR(&_10$$12); ZVAL_STRING(&_10$$12, "Imagick::GRAVITY_SOUTH"); - ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_8, 197, &_10$$12); + ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_8, 179, &_10$$12); zephir_check_call_status(); } else { ZEPHIR_INIT_VAR(&_11$$13); ZVAL_STRING(&_11$$13, "Imagick::GRAVITY_CENTER"); - ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_8, 197, &_11$$13); + ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_8, 179, &_11$$13); zephir_check_call_status(); } } @@ -78558,13 +77066,13 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _text) { ZVAL_LONG(offsetY, (y * -1)); ZEPHIR_INIT_VAR(&_12$$17); ZVAL_STRING(&_12$$17, "Imagick::GRAVITY_SOUTHEAST"); - ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_8, 197, &_12$$17); + ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_8, 179, &_12$$17); zephir_check_call_status(); } else { ZVAL_LONG(offsetX, 0); ZEPHIR_INIT_VAR(&_13$$18); ZVAL_STRING(&_13$$18, "Imagick::GRAVITY_NORTHEAST"); - ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_8, 197, &_13$$18); + ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_8, 179, &_13$$18); zephir_check_call_status(); } } else { @@ -78575,13 +77083,13 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _text) { ZVAL_LONG(offsetY, (y * -1)); ZEPHIR_INIT_VAR(&_14$$20); ZVAL_STRING(&_14$$20, "Imagick::GRAVITY_SOUTH"); - ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_8, 197, &_14$$20); + ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_8, 179, &_14$$20); zephir_check_call_status(); } else { ZVAL_LONG(offsetX, 0); ZEPHIR_INIT_VAR(&_15$$21); ZVAL_STRING(&_15$$21, "Imagick::GRAVITY_NORTH"); - ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_8, 197, &_15$$21); + ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_8, 179, &_15$$21); zephir_check_call_status(); } } @@ -78600,13 +77108,13 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _text) { ZVAL_LONG(offsetY, 0); ZEPHIR_INIT_VAR(&_16$$27); ZVAL_STRING(&_16$$27, "Imagick::GRAVITY_SOUTHEAST"); - ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_8, 197, &_16$$27); + ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_8, 179, &_16$$27); zephir_check_call_status(); } else { ZVAL_LONG(offsetY, 0); ZEPHIR_INIT_VAR(&_17$$28); ZVAL_STRING(&_17$$28, "Imagick::GRAVITY_SOUTH"); - ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_8, 197, &_17$$28); + ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_8, 179, &_17$$28); zephir_check_call_status(); } } else { @@ -78617,13 +77125,13 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _text) { ZVAL_LONG(offsetY, 0); ZEPHIR_INIT_VAR(&_18$$30); ZVAL_STRING(&_18$$30, "Imagick::GRAVITY_EAST"); - ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_8, 197, &_18$$30); + ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_8, 179, &_18$$30); zephir_check_call_status(); } else { ZVAL_LONG(offsetY, 0); ZEPHIR_INIT_VAR(&_19$$31); ZVAL_STRING(&_19$$31, "Imagick::GRAVITY_WEST"); - ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_8, 197, &_19$$31); + ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_8, 179, &_19$$31); zephir_check_call_status(); } } @@ -78639,13 +77147,13 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _text) { ZVAL_LONG(offsetY, (y * -1)); ZEPHIR_INIT_VAR(&_20$$35); ZVAL_STRING(&_20$$35, "Imagick::GRAVITY_SOUTHEAST"); - ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_8, 197, &_20$$35); + ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_8, 179, &_20$$35); zephir_check_call_status(); } else { ZVAL_LONG(offsetX, (x * -1)); ZEPHIR_INIT_VAR(&_21$$36); ZVAL_STRING(&_21$$36, "Imagick::GRAVITY_NORTHEAST"); - ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_8, 197, &_21$$36); + ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_8, 179, &_21$$36); zephir_check_call_status(); } } else { @@ -78656,13 +77164,13 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _text) { ZVAL_LONG(offsetY, (y * -1)); ZEPHIR_INIT_VAR(&_22$$38); ZVAL_STRING(&_22$$38, "Imagick::GRAVITY_SOUTHWEST"); - ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_8, 197, &_22$$38); + ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_8, 179, &_22$$38); zephir_check_call_status(); } else { ZVAL_LONG(offsetX, 0); ZEPHIR_INIT_VAR(&_23$$39); ZVAL_STRING(&_23$$39, "Imagick::GRAVITY_NORTHWEST"); - ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_8, 197, &_23$$39); + ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_8, 179, &_23$$39); zephir_check_call_status(); } } @@ -78723,8 +77231,10 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _mask) { ZEPHIR_INIT_VAR(&mask); object_init_ex(&mask, zephir_get_internal_ce(SL("imagick"))); - ZEPHIR_CALL_METHOD(NULL, &mask, "__construct", NULL, 0); - zephir_check_call_status(); + if (zephir_has_constructor(&mask TSRMLS_CC)) { + ZEPHIR_CALL_METHOD(NULL, &mask, "__construct", NULL, 0); + zephir_check_call_status(); + } ZEPHIR_CALL_METHOD(&_0, image, "render", NULL, 0); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, &mask, "readimageblob", NULL, 0, &_0); @@ -78741,7 +77251,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _mask) { zephir_read_property(&_4$$3, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); ZEPHIR_INIT_NVAR(&_5$$3); ZVAL_STRING(&_5$$3, "Imagick::COMPOSITE_DSTIN"); - ZEPHIR_CALL_FUNCTION(&_6$$3, "constant", &_7, 197, &_5$$3); + ZEPHIR_CALL_FUNCTION(&_6$$3, "constant", &_7, 179, &_5$$3); zephir_check_call_status(); ZVAL_LONG(&_8$$3, 0); ZVAL_LONG(&_9$$3, 0); @@ -78812,23 +77322,29 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _background) { ZVAL_LONG(&_1, r); ZVAL_LONG(&_2, g); ZVAL_LONG(&_3, b); - ZEPHIR_CALL_FUNCTION(&color, "sprintf", NULL, 194, &_0, &_1, &_2, &_3); + ZEPHIR_CALL_FUNCTION(&color, "sprintf", NULL, 176, &_0, &_1, &_2, &_3); zephir_check_call_status(); ZEPHIR_INIT_VAR(&pixel1); object_init_ex(&pixel1, zephir_get_internal_ce(SL("imagickpixel"))); - ZEPHIR_CALL_METHOD(NULL, &pixel1, "__construct", NULL, 0, &color); - zephir_check_call_status(); + if (zephir_has_constructor(&pixel1 TSRMLS_CC)) { + ZEPHIR_CALL_METHOD(NULL, &pixel1, "__construct", NULL, 0, &color); + zephir_check_call_status(); + } opacity = (long) (zephir_safe_div_long_long(opacity, 100 TSRMLS_CC)); ZEPHIR_INIT_VAR(&pixel2); object_init_ex(&pixel2, zephir_get_internal_ce(SL("imagickpixel"))); - ZEPHIR_INIT_NVAR(&_0); - ZVAL_STRING(&_0, "transparent"); - ZEPHIR_CALL_METHOD(NULL, &pixel2, "__construct", NULL, 0, &_0); - zephir_check_call_status(); + if (zephir_has_constructor(&pixel2 TSRMLS_CC)) { + ZEPHIR_INIT_NVAR(&_0); + ZVAL_STRING(&_0, "transparent"); + ZEPHIR_CALL_METHOD(NULL, &pixel2, "__construct", NULL, 0, &_0); + zephir_check_call_status(); + } ZEPHIR_INIT_VAR(&background); object_init_ex(&background, zephir_get_internal_ce(SL("imagick"))); - ZEPHIR_CALL_METHOD(NULL, &background, "__construct", NULL, 0); - zephir_check_call_status(); + if (zephir_has_constructor(&background TSRMLS_CC)) { + ZEPHIR_CALL_METHOD(NULL, &background, "__construct", NULL, 0); + zephir_check_call_status(); + } zephir_read_property(&_1, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); ZVAL_LONG(&_2, 0); ZEPHIR_CALL_METHOD(NULL, &_1, "setiteratorindex", NULL, 0, &_2); @@ -78843,7 +77359,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _background) { if (!(zephir_is_true(&_7$$3))) { ZEPHIR_INIT_NVAR(&_9$$4); ZVAL_STRING(&_9$$4, "Imagick::ALPHACHANNEL_SET"); - ZEPHIR_CALL_FUNCTION(&_10$$4, "constant", &_11, 197, &_9$$4); + ZEPHIR_CALL_FUNCTION(&_10$$4, "constant", &_11, 179, &_9$$4); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, &background, "setimagealphachannel", &_12, 0, &_10$$4); zephir_check_call_status(); @@ -78852,11 +77368,11 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _background) { zephir_check_call_status(); ZEPHIR_INIT_NVAR(&_14$$3); ZVAL_STRING(&_14$$3, "Imagick::EVALUATE_MULTIPLY"); - ZEPHIR_CALL_FUNCTION(&_15$$3, "constant", &_11, 197, &_14$$3); + ZEPHIR_CALL_FUNCTION(&_15$$3, "constant", &_11, 179, &_14$$3); zephir_check_call_status(); ZEPHIR_INIT_NVAR(&_14$$3); ZVAL_STRING(&_14$$3, "Imagick::CHANNEL_ALPHA"); - ZEPHIR_CALL_FUNCTION(&_16$$3, "constant", &_11, 197, &_14$$3); + ZEPHIR_CALL_FUNCTION(&_16$$3, "constant", &_11, 179, &_14$$3); zephir_check_call_status(); ZVAL_LONG(&_17$$3, opacity); ZEPHIR_CALL_METHOD(NULL, &background, "evaluateimage", &_18, 0, &_15$$3, &_17$$3, &_16$$3); @@ -78869,7 +77385,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _background) { zephir_read_property(&_21$$3, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); ZEPHIR_INIT_NVAR(&_14$$3); ZVAL_STRING(&_14$$3, "Imagick::COMPOSITE_DISSOLVE"); - ZEPHIR_CALL_FUNCTION(&_22$$3, "constant", &_11, 197, &_14$$3); + ZEPHIR_CALL_FUNCTION(&_22$$3, "constant", &_11, 179, &_14$$3); zephir_check_call_status(); ZVAL_LONG(&_23$$3, 0); ZVAL_LONG(&_24$$3, 0); @@ -79032,7 +77548,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _save) { ZVAL_LONG(&_0, 4); - ZEPHIR_CALL_FUNCTION(&ext, "pathinfo", NULL, 73, &file, &_0); + ZEPHIR_CALL_FUNCTION(&ext, "pathinfo", NULL, 67, &file, &_0); zephir_check_call_status(); zephir_read_property(&_0, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); ZEPHIR_CALL_METHOD(NULL, &_0, "setformat", NULL, 0, &ext); @@ -79052,7 +77568,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _save) { zephir_update_property_zval(this_ptr, SL("_mime"), &_6); ZEPHIR_INIT_VAR(&_7); ZVAL_STRING(&_7, "gif"); - ZEPHIR_CALL_FUNCTION(&_8, "strcasecmp", &_9, 16, &ext, &_7); + ZEPHIR_CALL_FUNCTION(&_8, "strcasecmp", &_9, 11, &ext, &_7); zephir_check_call_status(); if (ZEPHIR_IS_LONG(&_8, 0)) { zephir_read_property(&_10$$3, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); @@ -79060,7 +77576,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _save) { zephir_check_call_status(); ZEPHIR_INIT_VAR(&_11$$3); ZVAL_STRING(&_11$$3, "w"); - ZEPHIR_CALL_FUNCTION(&fp, "fopen", NULL, 295, &file, &_11$$3); + ZEPHIR_CALL_FUNCTION(&fp, "fopen", NULL, 263, &file, &_11$$3); zephir_check_call_status(); zephir_read_property(&_12$$3, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); ZEPHIR_CALL_METHOD(NULL, &_12$$3, "writeimagesfile", NULL, 0, &fp); @@ -79070,13 +77586,13 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _save) { } else { ZEPHIR_INIT_VAR(&_13$$4); ZVAL_STRING(&_13$$4, "jpg"); - ZEPHIR_CALL_FUNCTION(&_14$$4, "strcasecmp", &_9, 16, &ext, &_13$$4); + ZEPHIR_CALL_FUNCTION(&_14$$4, "strcasecmp", &_9, 11, &ext, &_13$$4); zephir_check_call_status(); _15$$4 = ZEPHIR_IS_LONG(&_14$$4, 0); if (!(_15$$4)) { ZEPHIR_INIT_NVAR(&_13$$4); ZVAL_STRING(&_13$$4, "jpeg"); - ZEPHIR_CALL_FUNCTION(&_16$$4, "strcasecmp", &_9, 16, &ext, &_13$$4); + ZEPHIR_CALL_FUNCTION(&_16$$4, "strcasecmp", &_9, 11, &ext, &_13$$4); zephir_check_call_status(); _15$$4 = ZEPHIR_IS_LONG(&_16$$4, 0); } @@ -79084,7 +77600,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _save) { zephir_read_property(&_17$$5, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); ZEPHIR_INIT_VAR(&_18$$5); ZVAL_STRING(&_18$$5, "Imagick::COMPRESSION_JPEG"); - ZEPHIR_CALL_FUNCTION(&_19$$5, "constant", NULL, 197, &_18$$5); + ZEPHIR_CALL_FUNCTION(&_19$$5, "constant", NULL, 179, &_18$$5); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, &_17$$5, "setimagecompression", NULL, 0, &_19$$5); zephir_check_call_status(); @@ -79156,7 +77672,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _render) { zephir_update_property_zval(this_ptr, SL("_mime"), &_2); ZEPHIR_INIT_VAR(&_3); ZVAL_STRING(&_3, "gif"); - ZEPHIR_CALL_FUNCTION(&_4, "strcasecmp", &_5, 16, &extension, &_3); + ZEPHIR_CALL_FUNCTION(&_4, "strcasecmp", &_5, 11, &extension, &_3); zephir_check_call_status(); if (ZEPHIR_IS_LONG_IDENTICAL(&_4, 0)) { ZEPHIR_CALL_METHOD(NULL, &image, "optimizeimagelayers", NULL, 0); @@ -79164,20 +77680,20 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _render) { } else { ZEPHIR_INIT_VAR(&_6$$4); ZVAL_STRING(&_6$$4, "jpg"); - ZEPHIR_CALL_FUNCTION(&_7$$4, "strcasecmp", &_5, 16, &extension, &_6$$4); + ZEPHIR_CALL_FUNCTION(&_7$$4, "strcasecmp", &_5, 11, &extension, &_6$$4); zephir_check_call_status(); _8$$4 = ZEPHIR_IS_LONG_IDENTICAL(&_7$$4, 0); if (!(_8$$4)) { ZEPHIR_INIT_NVAR(&_6$$4); ZVAL_STRING(&_6$$4, "jpeg"); - ZEPHIR_CALL_FUNCTION(&_9$$4, "strcasecmp", &_5, 16, &extension, &_6$$4); + ZEPHIR_CALL_FUNCTION(&_9$$4, "strcasecmp", &_5, 11, &extension, &_6$$4); zephir_check_call_status(); _8$$4 = ZEPHIR_IS_LONG_IDENTICAL(&_9$$4, 0); } if (_8$$4) { ZEPHIR_INIT_VAR(&_10$$5); ZVAL_STRING(&_10$$5, "Imagick::COMPRESSION_JPEG"); - ZEPHIR_CALL_FUNCTION(&_11$$5, "constant", NULL, 197, &_10$$5); + ZEPHIR_CALL_FUNCTION(&_11$$5, "constant", NULL, 179, &_10$$5); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, &image, "setimagecompression", NULL, 0, &_11$$5); zephir_check_call_status(); @@ -79472,11 +77988,11 @@ static PHP_METHOD(Phalcon_Logger_Adapter, critical) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &message_param, &context_param); - if (unlikely(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'message' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(message_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(message_param) == IS_STRING)) { zephir_get_strval(&message, message_param); } else { ZEPHIR_INIT_VAR(&message); @@ -79512,11 +78028,11 @@ static PHP_METHOD(Phalcon_Logger_Adapter, emergency) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &message_param, &context_param); - if (unlikely(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'message' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(message_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(message_param) == IS_STRING)) { zephir_get_strval(&message, message_param); } else { ZEPHIR_INIT_VAR(&message); @@ -79552,11 +78068,11 @@ static PHP_METHOD(Phalcon_Logger_Adapter, debug) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &message_param, &context_param); - if (unlikely(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'message' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(message_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(message_param) == IS_STRING)) { zephir_get_strval(&message, message_param); } else { ZEPHIR_INIT_VAR(&message); @@ -79592,11 +78108,11 @@ static PHP_METHOD(Phalcon_Logger_Adapter, error) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &message_param, &context_param); - if (unlikely(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'message' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(message_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(message_param) == IS_STRING)) { zephir_get_strval(&message, message_param); } else { ZEPHIR_INIT_VAR(&message); @@ -79632,11 +78148,11 @@ static PHP_METHOD(Phalcon_Logger_Adapter, info) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &message_param, &context_param); - if (unlikely(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'message' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(message_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(message_param) == IS_STRING)) { zephir_get_strval(&message, message_param); } else { ZEPHIR_INIT_VAR(&message); @@ -79672,11 +78188,11 @@ static PHP_METHOD(Phalcon_Logger_Adapter, notice) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &message_param, &context_param); - if (unlikely(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'message' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(message_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(message_param) == IS_STRING)) { zephir_get_strval(&message, message_param); } else { ZEPHIR_INIT_VAR(&message); @@ -79712,11 +78228,11 @@ static PHP_METHOD(Phalcon_Logger_Adapter, warning) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &message_param, &context_param); - if (unlikely(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'message' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(message_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(message_param) == IS_STRING)) { zephir_get_strval(&message, message_param); } else { ZEPHIR_INIT_VAR(&message); @@ -79752,11 +78268,11 @@ static PHP_METHOD(Phalcon_Logger_Adapter, alert) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &message_param, &context_param); - if (unlikely(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'message' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(message_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(message_param) == IS_STRING)) { zephir_get_strval(&message, message_param); } else { ZEPHIR_INIT_VAR(&message); @@ -79843,7 +78359,7 @@ static PHP_METHOD(Phalcon_Logger_Adapter, log) { if (zephir_is_true(&_3$$8)) { ZEPHIR_INIT_VAR(&_4$$9); object_init_ex(&_4$$9, phalcon_logger_item_ce); - ZEPHIR_CALL_METHOD(NULL, &_4$$9, "__construct", NULL, 25, &toggledMessage, &toggledType, ×tamp, &context); + ZEPHIR_CALL_METHOD(NULL, &_4$$9, "__construct", NULL, 20, &toggledMessage, &toggledType, ×tamp, &context); zephir_check_call_status(); zephir_update_property_array_append(this_ptr, SL("_queue"), &_4$$9 TSRMLS_CC); } else { @@ -80066,7 +78582,7 @@ static PHP_METHOD(Phalcon_Logger_Formatter, interpolate) { } ZEND_HASH_FOREACH_END(); ZEPHIR_INIT_NVAR(&value); ZEPHIR_INIT_NVAR(&key); - ZEPHIR_RETURN_CALL_FUNCTION("strtr", NULL, 26, &message, &replace); + ZEPHIR_RETURN_CALL_FUNCTION("strtr", NULL, 21, &message, &replace); zephir_check_call_status(); RETURN_MM(); } @@ -80396,11 +78912,11 @@ static PHP_METHOD(Phalcon_Logger_Multiple, critical) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &message_param, &context_param); - if (unlikely(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'message' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(message_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(message_param) == IS_STRING)) { zephir_get_strval(&message, message_param); } else { ZEPHIR_INIT_VAR(&message); @@ -80436,11 +78952,11 @@ static PHP_METHOD(Phalcon_Logger_Multiple, emergency) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &message_param, &context_param); - if (unlikely(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'message' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(message_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(message_param) == IS_STRING)) { zephir_get_strval(&message, message_param); } else { ZEPHIR_INIT_VAR(&message); @@ -80476,11 +78992,11 @@ static PHP_METHOD(Phalcon_Logger_Multiple, debug) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &message_param, &context_param); - if (unlikely(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'message' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(message_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(message_param) == IS_STRING)) { zephir_get_strval(&message, message_param); } else { ZEPHIR_INIT_VAR(&message); @@ -80516,11 +79032,11 @@ static PHP_METHOD(Phalcon_Logger_Multiple, error) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &message_param, &context_param); - if (unlikely(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'message' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(message_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(message_param) == IS_STRING)) { zephir_get_strval(&message, message_param); } else { ZEPHIR_INIT_VAR(&message); @@ -80556,11 +79072,11 @@ static PHP_METHOD(Phalcon_Logger_Multiple, info) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &message_param, &context_param); - if (unlikely(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'message' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(message_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(message_param) == IS_STRING)) { zephir_get_strval(&message, message_param); } else { ZEPHIR_INIT_VAR(&message); @@ -80596,11 +79112,11 @@ static PHP_METHOD(Phalcon_Logger_Multiple, notice) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &message_param, &context_param); - if (unlikely(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'message' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(message_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(message_param) == IS_STRING)) { zephir_get_strval(&message, message_param); } else { ZEPHIR_INIT_VAR(&message); @@ -80636,11 +79152,11 @@ static PHP_METHOD(Phalcon_Logger_Multiple, warning) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &message_param, &context_param); - if (unlikely(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'message' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(message_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(message_param) == IS_STRING)) { zephir_get_strval(&message, message_param); } else { ZEPHIR_INIT_VAR(&message); @@ -80676,11 +79192,11 @@ static PHP_METHOD(Phalcon_Logger_Multiple, alert) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &message_param, &context_param); - if (unlikely(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'message' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(message_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(message_param) == IS_STRING)) { zephir_get_strval(&message, message_param); } else { ZEPHIR_INIT_VAR(&message); @@ -80752,11 +79268,11 @@ static PHP_METHOD(Phalcon_Logger_Adapter_File, __construct) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &name_param, &options); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(&name, name_param); } else { ZEPHIR_INIT_VAR(&name); @@ -80783,14 +79299,14 @@ static PHP_METHOD(Phalcon_Logger_Adapter_File, __construct) { ZEPHIR_INIT_NVAR(&mode); ZVAL_STRING(&mode, "ab"); } - ZEPHIR_CALL_FUNCTION(&handler, "fopen", NULL, 295, &name, &mode); + ZEPHIR_CALL_FUNCTION(&handler, "fopen", NULL, 263, &name, &mode); zephir_check_call_status(); if (Z_TYPE_P(&handler) != IS_RESOURCE) { ZEPHIR_INIT_VAR(&_0$$7); object_init_ex(&_0$$7, phalcon_logger_exception_ce); ZEPHIR_INIT_VAR(&_1$$7); ZEPHIR_CONCAT_SVS(&_1$$7, "Can't open log file at '", &name, "'"); - ZEPHIR_CALL_METHOD(NULL, &_0$$7, "__construct", NULL, 9, &_1$$7); + ZEPHIR_CALL_METHOD(NULL, &_0$$7, "__construct", NULL, 4, &_1$$7); zephir_check_call_status(); zephir_throw_exception_debug(&_0$$7, "phalcon/logger/adapter/file.zep", 89 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -80819,7 +79335,7 @@ static PHP_METHOD(Phalcon_Logger_Adapter_File, getFormatter) { if (Z_TYPE_P(&_0) != IS_OBJECT) { ZEPHIR_INIT_VAR(&_1$$3); object_init_ex(&_1$$3, phalcon_logger_formatter_line_ce); - ZEPHIR_CALL_METHOD(NULL, &_1$$3, "__construct", NULL, 299); + ZEPHIR_CALL_METHOD(NULL, &_1$$3, "__construct", NULL, 267); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_formatter"), &_1$$3); } @@ -80915,7 +79431,7 @@ static PHP_METHOD(Phalcon_Logger_Adapter_File, __wakeup) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_logger_exception_ce, "Logger must be opened in append or write mode", "phalcon/logger/adapter/file.zep", 153); return; } - ZEPHIR_CALL_FUNCTION(&_1, "fopen", NULL, 295, &path, &mode); + ZEPHIR_CALL_FUNCTION(&_1, "fopen", NULL, 263, &path, &mode); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_fileHandler"), &_1); ZEPHIR_MM_RESTORE(); @@ -81011,15 +79527,15 @@ static PHP_METHOD(Phalcon_Logger_Adapter_Firephp, logInternal) { if (!(zephir_is_true(&_0))) { ZEPHIR_INIT_VAR(&_1$$3); ZVAL_STRING(&_1$$3, "X-Wf-Protocol-1: http://meta.wildfirehq.org/Protocol/JsonStream/0.2"); - ZEPHIR_CALL_FUNCTION(NULL, "header", &_2, 247, &_1$$3); + ZEPHIR_CALL_FUNCTION(NULL, "header", &_2, 215, &_1$$3); zephir_check_call_status(); ZEPHIR_INIT_NVAR(&_1$$3); ZVAL_STRING(&_1$$3, "X-Wf-1-Plugin-1: http://meta.firephp.org/Wildfire/Plugin/FirePHP/Library-FirePHPCore/0.3"); - ZEPHIR_CALL_FUNCTION(NULL, "header", &_2, 247, &_1$$3); + ZEPHIR_CALL_FUNCTION(NULL, "header", &_2, 215, &_1$$3); zephir_check_call_status(); ZEPHIR_INIT_NVAR(&_1$$3); ZVAL_STRING(&_1$$3, "X-Wf-Structure-1: http://meta.firephp.org/Wildfire/Structure/FirePHP/FirebugConsole/0.1"); - ZEPHIR_CALL_FUNCTION(NULL, "header", &_2, 247, &_1$$3); + ZEPHIR_CALL_FUNCTION(NULL, "header", &_2, 215, &_1$$3); zephir_check_call_status(); if (1) { zephir_update_property_zval(this_ptr, SL("_initialized"), &__$true); @@ -81034,7 +79550,7 @@ static PHP_METHOD(Phalcon_Logger_Adapter_Firephp, logInternal) { ZEPHIR_CALL_METHOD(&format, &_3, "format", NULL, 0, &message, &_4, &_5, &context); zephir_check_call_status(); ZVAL_LONG(&_4, 4500); - ZEPHIR_CALL_FUNCTION(&chunk, "str_split", NULL, 71, &format, &_4); + ZEPHIR_CALL_FUNCTION(&chunk, "str_split", NULL, 65, &format, &_4); zephir_check_call_status(); ZEPHIR_OBS_VAR(&index); zephir_read_property(&index, this_ptr, SL("_index"), PH_NOISY_CC); @@ -81055,7 +79571,7 @@ static PHP_METHOD(Phalcon_Logger_Adapter_Firephp, logInternal) { if (zephir_array_isset_long(&chunk, (zephir_get_numberval(&key) + 1))) { zephir_concat_self_str(&content, SL("|\\") TSRMLS_CC); } - ZEPHIR_CALL_FUNCTION(NULL, "header", &_2, 247, &content); + ZEPHIR_CALL_FUNCTION(NULL, "header", &_2, 215, &content); zephir_check_call_status(); ZEPHIR_SEPARATE(&index); zephir_increment(&index); @@ -81114,11 +79630,11 @@ static PHP_METHOD(Phalcon_Logger_Adapter_Stream, __construct) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &name_param, &options); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(&name, name_param); } else { ZEPHIR_INIT_VAR(&name); @@ -81140,14 +79656,14 @@ static PHP_METHOD(Phalcon_Logger_Adapter_Stream, __construct) { ZEPHIR_INIT_NVAR(&mode); ZVAL_STRING(&mode, "ab"); } - ZEPHIR_CALL_FUNCTION(&stream, "fopen", NULL, 295, &name, &mode); + ZEPHIR_CALL_FUNCTION(&stream, "fopen", NULL, 263, &name, &mode); zephir_check_call_status(); if (!(zephir_is_true(&stream))) { ZEPHIR_INIT_VAR(&_0$$6); object_init_ex(&_0$$6, phalcon_logger_exception_ce); ZEPHIR_INIT_VAR(&_1$$6); ZEPHIR_CONCAT_SVS(&_1$$6, "Can't open stream '", &name, "'"); - ZEPHIR_CALL_METHOD(NULL, &_0$$6, "__construct", NULL, 9, &_1$$6); + ZEPHIR_CALL_METHOD(NULL, &_0$$6, "__construct", NULL, 4, &_1$$6); zephir_check_call_status(); zephir_throw_exception_debug(&_0$$6, "phalcon/logger/adapter/stream.zep", 76 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -81174,7 +79690,7 @@ static PHP_METHOD(Phalcon_Logger_Adapter_Stream, getFormatter) { if (Z_TYPE_P(&_0) != IS_OBJECT) { ZEPHIR_INIT_VAR(&_1$$3); object_init_ex(&_1$$3, phalcon_logger_formatter_line_ce); - ZEPHIR_CALL_METHOD(NULL, &_1$$3, "__construct", NULL, 299); + ZEPHIR_CALL_METHOD(NULL, &_1$$3, "__construct", NULL, 267); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_formatter"), &_1$$3); } @@ -81291,7 +79807,7 @@ static PHP_METHOD(Phalcon_Logger_Adapter_Syslog, __construct) { ZEPHIR_INIT_NVAR(&facility); ZVAL_LONG(&facility, 8); } - ZEPHIR_CALL_FUNCTION(NULL, "openlog", NULL, 300, name, &option, &facility); + ZEPHIR_CALL_FUNCTION(NULL, "openlog", NULL, 268, name, &option, &facility); zephir_check_call_status(); if (1) { zephir_update_property_zval(this_ptr, SL("_opened"), &__$true); @@ -81367,7 +79883,7 @@ static PHP_METHOD(Phalcon_Logger_Adapter_Syslog, logInternal) { } zephir_array_fetch_long(&_3, &appliedFormat, 0, PH_NOISY | PH_READONLY, "phalcon/logger/adapter/syslog.zep", 104 TSRMLS_CC); zephir_array_fetch_long(&_4, &appliedFormat, 1, PH_NOISY | PH_READONLY, "phalcon/logger/adapter/syslog.zep", 104 TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(NULL, "syslog", NULL, 301, &_3, &_4); + ZEPHIR_CALL_FUNCTION(NULL, "syslog", NULL, 269, &_3, &_4); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -81387,7 +79903,7 @@ static PHP_METHOD(Phalcon_Logger_Adapter_Syslog, close) { if (!(zephir_is_true(&_0))) { RETURN_MM_BOOL(1); } - ZEPHIR_RETURN_CALL_FUNCTION("closelog", NULL, 302); + ZEPHIR_RETURN_CALL_FUNCTION("closelog", NULL, 270); zephir_check_call_status(); RETURN_MM(); @@ -81582,10 +80098,10 @@ static PHP_METHOD(Phalcon_Logger_Formatter_Firephp, format) { if (zephir_is_true(&_2)) { ZEPHIR_INIT_VAR(¶m$$4); ZVAL_LONG(¶m$$4, 2); - ZEPHIR_CALL_FUNCTION(&backtrace, "debug_backtrace", NULL, 157, ¶m$$4); + ZEPHIR_CALL_FUNCTION(&backtrace, "debug_backtrace", NULL, 144, ¶m$$4); zephir_check_call_status(); ZEPHIR_MAKE_REF(&backtrace); - ZEPHIR_CALL_FUNCTION(&lastTrace, "end", NULL, 177, &backtrace); + ZEPHIR_CALL_FUNCTION(&lastTrace, "end", NULL, 160, &backtrace); ZEPHIR_UNREF(&backtrace); zephir_check_call_status(); if (zephir_array_isset_string(&lastTrace, SL("file"))) { @@ -81883,7 +80399,7 @@ static PHP_METHOD(Phalcon_Logger_Formatter_Line, format) { ZEPHIR_INIT_VAR(&_0$$3); zephir_read_property(&_1$$3, this_ptr, SL("_dateFormat"), PH_NOISY_CC | PH_READONLY); ZVAL_LONG(&_2$$3, timestamp); - ZEPHIR_CALL_FUNCTION(&_3$$3, "date", NULL, 303, &_1$$3, &_2$$3); + ZEPHIR_CALL_FUNCTION(&_3$$3, "date", NULL, 271, &_1$$3, &_2$$3); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_4$$3); ZVAL_STRING(&_4$$3, "%date%"); @@ -82199,7 +80715,7 @@ static PHP_METHOD(Phalcon_Mvc_Application, handle) { object_init_ex(&_13$$21, phalcon_mvc_application_exception_ce); ZEPHIR_INIT_VAR(&_14$$21); ZEPHIR_CONCAT_SVS(&_14$$21, "Module definition path '", &path, "' doesn't exist"); - ZEPHIR_CALL_METHOD(NULL, &_13$$21, "__construct", NULL, 9, &_14$$21); + ZEPHIR_CALL_METHOD(NULL, &_13$$21, "__construct", NULL, 4, &_14$$21); zephir_check_call_status(); zephir_throw_exception_debug(&_13$$21, "phalcon/mvc/application.zep", 217 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -82468,7 +80984,7 @@ static PHP_METHOD(Phalcon_Mvc_Collection, __construct) { if (Z_TYPE_P(dependencyInjector) != IS_OBJECT) { - ZEPHIR_CALL_CE_STATIC(dependencyInjector, phalcon_di_ce, "getdefault", &_0, 1); + ZEPHIR_CALL_CE_STATIC(dependencyInjector, phalcon_di_ce, "getdefault", &_0, 0); zephir_check_call_status(); } if (Z_TYPE_P(dependencyInjector) != IS_OBJECT) { @@ -82681,11 +81197,11 @@ static PHP_METHOD(Phalcon_Mvc_Collection, setSource) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &source_param); - if (unlikely(Z_TYPE_P(source_param) != IS_STRING && Z_TYPE_P(source_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(source_param) != IS_STRING && Z_TYPE_P(source_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'source' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(source_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(source_param) == IS_STRING)) { zephir_get_strval(&source, source_param); } else { ZEPHIR_INIT_VAR(&source); @@ -82736,11 +81252,11 @@ static PHP_METHOD(Phalcon_Mvc_Collection, setConnectionService) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &connectionService_param); - if (unlikely(Z_TYPE_P(connectionService_param) != IS_STRING && Z_TYPE_P(connectionService_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(connectionService_param) != IS_STRING && Z_TYPE_P(connectionService_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'connectionService' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(connectionService_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(connectionService_param) == IS_STRING)) { zephir_get_strval(&connectionService, connectionService_param); } else { ZEPHIR_INIT_VAR(&connectionService); @@ -82808,11 +81324,11 @@ static PHP_METHOD(Phalcon_Mvc_Collection, readAttribute) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &attribute_param); - if (unlikely(Z_TYPE_P(attribute_param) != IS_STRING && Z_TYPE_P(attribute_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(attribute_param) != IS_STRING && Z_TYPE_P(attribute_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'attribute' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(attribute_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(attribute_param) == IS_STRING)) { zephir_get_strval(&attribute, attribute_param); } else { ZEPHIR_INIT_VAR(&attribute); @@ -82956,7 +81472,7 @@ static PHP_METHOD(Phalcon_Mvc_Collection, _getResultset) { object_init_ex(&_3$$4, phalcon_mvc_collection_exception_ce); ZEPHIR_INIT_VAR(&_4$$4); ZEPHIR_CONCAT_SVS(&_4$$4, "Object of class '", &className, "' must be an implementation of Phalcon\\Mvc\\CollectionInterface or an instance of Phalcon\\Mvc\\Collection\\Document"); - ZEPHIR_CALL_METHOD(NULL, &_3$$4, "__construct", NULL, 9, &_4$$4); + ZEPHIR_CALL_METHOD(NULL, &_3$$4, "__construct", NULL, 4, &_4$$4); zephir_check_call_status(); zephir_throw_exception_debug(&_3$$4, "phalcon/mvc/collection.zep", 362 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -83031,7 +81547,7 @@ static PHP_METHOD(Phalcon_Mvc_Collection, _getResultset) { } ZEPHIR_INIT_VAR(&collections); array_init(&collections); - ZEPHIR_CALL_FUNCTION(&_6, "iterator_to_array", NULL, 304, &documentsCursor, &__$false); + ZEPHIR_CALL_FUNCTION(&_6, "iterator_to_array", NULL, 272, &documentsCursor, &__$false); zephir_check_call_status(); zephir_is_iterable(&_6, 0, "phalcon/mvc/collection.zep", 457); ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&_6), _7) @@ -83340,7 +81856,7 @@ static PHP_METHOD(Phalcon_Mvc_Collection, validate) { zephir_check_call_status(); ZEPHIR_CALL_METHOD(&_9$$8, &message, "gettype", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, &_6$$8, "__construct", &_10, 8, &_7$$8, &_8$$8, &_9$$8); + ZEPHIR_CALL_METHOD(NULL, &_6$$8, "__construct", &_10, 3, &_7$$8, &_8$$8, &_9$$8); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, this_ptr, "appendmessage", &_11, 0, &_6$$8); zephir_check_call_status(); @@ -83384,11 +81900,11 @@ static PHP_METHOD(Phalcon_Mvc_Collection, fireEvent) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &eventName_param); - if (unlikely(Z_TYPE_P(eventName_param) != IS_STRING && Z_TYPE_P(eventName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(eventName_param) != IS_STRING && Z_TYPE_P(eventName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'eventName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(eventName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(eventName_param) == IS_STRING)) { zephir_get_strval(&eventName, eventName_param); } else { ZEPHIR_INIT_VAR(&eventName); @@ -83422,11 +81938,11 @@ static PHP_METHOD(Phalcon_Mvc_Collection, fireEventCancel) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &eventName_param); - if (unlikely(Z_TYPE_P(eventName_param) != IS_STRING && Z_TYPE_P(eventName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(eventName_param) != IS_STRING && Z_TYPE_P(eventName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'eventName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(eventName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(eventName_param) == IS_STRING)) { zephir_get_strval(&eventName, eventName_param); } else { ZEPHIR_INIT_VAR(&eventName); @@ -83654,7 +82170,7 @@ static PHP_METHOD(Phalcon_Mvc_Collection, save) { zephir_update_property_zval(this_ptr, SL("_errorMessages"), &_2); zephir_read_property(&_4, this_ptr, SL("_dependencyInjector"), PH_NOISY_CC | PH_READONLY); zephir_read_static_property_ce(&_5, phalcon_mvc_collection_ce, SL("_disableEvents"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_METHOD(&_3, this_ptr, "_presave", NULL, 305, &_4, &_5, &exists); + ZEPHIR_CALL_METHOD(&_3, this_ptr, "_presave", NULL, 273, &_4, &_5, &exists); zephir_check_call_status(); if (ZEPHIR_IS_FALSE_IDENTICAL(&_3)) { RETURN_MM_BOOL(0); @@ -83690,7 +82206,7 @@ static PHP_METHOD(Phalcon_Mvc_Collection, save) { } else { ZVAL_BOOL(&_9, 0); } - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_postsave", NULL, 306, &_8, &_9, &exists); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_postsave", NULL, 274, &_8, &_9, &exists); zephir_check_call_status(); RETURN_MM(); @@ -83739,7 +82255,7 @@ static PHP_METHOD(Phalcon_Mvc_Collection, create) { } else { ZVAL_BOOL(&_4, 0); } - ZEPHIR_CALL_METHOD(&_2, this_ptr, "_presave", NULL, 305, &_0, &_3, &_4); + ZEPHIR_CALL_METHOD(&_2, this_ptr, "_presave", NULL, 273, &_0, &_3, &_4); zephir_check_call_status(); if (ZEPHIR_IS_FALSE_IDENTICAL(&_2)) { RETURN_MM_BOOL(0); @@ -83780,7 +82296,7 @@ static PHP_METHOD(Phalcon_Mvc_Collection, create) { } else { ZVAL_BOOL(&_9, 0); } - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_postsave", NULL, 306, &_7, &_8, &_9); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_postsave", NULL, 274, &_7, &_8, &_9); zephir_check_call_status(); RETURN_MM(); @@ -83845,22 +82361,22 @@ static PHP_METHOD(Phalcon_Mvc_Collection, createIfNotExist) { } else { ZVAL_BOOL(&_4, 0); } - ZEPHIR_CALL_METHOD(&_2, this_ptr, "_presave", NULL, 305, &_0, &_3, &_4); + ZEPHIR_CALL_METHOD(&_2, this_ptr, "_presave", NULL, 273, &_0, &_3, &_4); zephir_check_call_status(); if (ZEPHIR_IS_FALSE_IDENTICAL(&_2)) { RETURN_MM_BOOL(0); } - ZEPHIR_CALL_FUNCTION(&keys, "array_flip", NULL, 307, &criteria); + ZEPHIR_CALL_FUNCTION(&keys, "array_flip", NULL, 275, &criteria); zephir_check_call_status(); ZEPHIR_CALL_METHOD(&data, this_ptr, "toarray", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_5, "array_diff_key", NULL, 308, &keys, &data); + ZEPHIR_CALL_FUNCTION(&_5, "array_diff_key", NULL, 276, &keys, &data); zephir_check_call_status(); if (zephir_is_true(&_5)) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_collection_exception_ce, "Criteria parameter must be array with one or more attributes of the model", "phalcon/mvc/collection.zep", 1134); return; } - ZEPHIR_CALL_FUNCTION(&query, "array_intersect_key", NULL, 309, &data, &keys); + ZEPHIR_CALL_FUNCTION(&query, "array_intersect_key", NULL, 277, &data, &keys); zephir_check_call_status(); success = 0; ZEPHIR_INIT_VAR(&_6); @@ -83889,7 +82405,7 @@ static PHP_METHOD(Phalcon_Mvc_Collection, createIfNotExist) { object_init_ex(&_11$$8, phalcon_mvc_model_message_ce); ZEPHIR_INIT_VAR(&_12$$8); ZVAL_STRING(&_12$$8, "Document already exists"); - ZEPHIR_CALL_METHOD(NULL, &_11$$8, "__construct", NULL, 8, &_12$$8); + ZEPHIR_CALL_METHOD(NULL, &_11$$8, "__construct", NULL, 3, &_12$$8); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, this_ptr, "appendmessage", NULL, 0, &_11$$8); zephir_check_call_status(); @@ -83905,7 +82421,7 @@ static PHP_METHOD(Phalcon_Mvc_Collection, createIfNotExist) { } else { ZVAL_BOOL(&_14, 0); } - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_postsave", NULL, 306, &_8, &_13, &_14); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_postsave", NULL, 274, &_8, &_13, &_14); zephir_check_call_status(); RETURN_MM(); @@ -83953,7 +82469,7 @@ static PHP_METHOD(Phalcon_Mvc_Collection, update) { zephir_update_property_zval(this_ptr, SL("_errorMessages"), &_1); zephir_read_property(&_0, this_ptr, SL("_dependencyInjector"), PH_NOISY_CC | PH_READONLY); zephir_read_static_property_ce(&_3, phalcon_mvc_collection_ce, SL("_disableEvents"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_METHOD(&_2, this_ptr, "_presave", NULL, 305, &_0, &_3, &exists); + ZEPHIR_CALL_METHOD(&_2, this_ptr, "_presave", NULL, 273, &_0, &_3, &exists); zephir_check_call_status(); if (ZEPHIR_IS_FALSE_IDENTICAL(&_2)) { RETURN_MM_BOOL(0); @@ -83987,7 +82503,7 @@ static PHP_METHOD(Phalcon_Mvc_Collection, update) { } else { ZVAL_BOOL(&_8, 0); } - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_postsave", NULL, 306, &_7, &_8, &exists); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_postsave", NULL, 274, &_7, &_8, &exists); zephir_check_call_status(); RETURN_MM(); @@ -84283,11 +82799,11 @@ static PHP_METHOD(Phalcon_Mvc_Collection, summatory) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &field_param, &conditions, &finalize); - if (unlikely(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'field' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(field_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(field_param) == IS_STRING)) { zephir_get_strval(&field, field_param); } else { ZEPHIR_INIT_VAR(&field); @@ -84551,7 +83067,7 @@ static PHP_METHOD(Phalcon_Mvc_Collection, toArray) { zephir_check_call_status(); ZEPHIR_INIT_VAR(&data); array_init(&data); - ZEPHIR_CALL_FUNCTION(&_0, "get_object_vars", NULL, 21, this_ptr); + ZEPHIR_CALL_FUNCTION(&_0, "get_object_vars", NULL, 16, this_ptr); zephir_check_call_status(); zephir_is_iterable(&_0, 0, "phalcon/mvc/collection.zep", 1633); ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&_0), _2, _3, _1) @@ -84592,7 +83108,7 @@ static PHP_METHOD(Phalcon_Mvc_Collection, serialize) { ZEPHIR_CALL_METHOD(&_0, this_ptr, "toarray", NULL, 0); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_FUNCTION("serialize", NULL, 65, &_0); + ZEPHIR_RETURN_CALL_FUNCTION("serialize", NULL, 59, &_0); zephir_check_call_status(); RETURN_MM(); @@ -84619,11 +83135,11 @@ static PHP_METHOD(Phalcon_Mvc_Collection, unserialize) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &data_param); - if (unlikely(Z_TYPE_P(data_param) != IS_STRING && Z_TYPE_P(data_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(data_param) != IS_STRING && Z_TYPE_P(data_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'data' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(data_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(data_param) == IS_STRING)) { zephir_get_strval(&data, data_param); } else { ZEPHIR_INIT_VAR(&data); @@ -84631,10 +83147,10 @@ static PHP_METHOD(Phalcon_Mvc_Collection, unserialize) { } - ZEPHIR_CALL_FUNCTION(&attributes, "unserialize", NULL, 66, &data); + ZEPHIR_CALL_FUNCTION(&attributes, "unserialize", NULL, 60, &data); zephir_check_call_status(); if (Z_TYPE_P(&attributes) == IS_ARRAY) { - ZEPHIR_CALL_CE_STATIC(&dependencyInjector, phalcon_di_ce, "getdefault", &_0, 1); + ZEPHIR_CALL_CE_STATIC(&dependencyInjector, phalcon_di_ce, "getdefault", &_0, 0); zephir_check_call_status(); if (Z_TYPE_P(&dependencyInjector) != IS_OBJECT) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_collection_exception_ce, "A dependency injector container is required to obtain the services related to the ODM", "phalcon/mvc/collection.zep", 1662); @@ -84840,11 +83356,11 @@ static PHP_METHOD(Phalcon_Mvc_Dispatcher, setControllerSuffix) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &controllerSuffix_param); - if (unlikely(Z_TYPE_P(controllerSuffix_param) != IS_STRING && Z_TYPE_P(controllerSuffix_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(controllerSuffix_param) != IS_STRING && Z_TYPE_P(controllerSuffix_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'controllerSuffix' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(controllerSuffix_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(controllerSuffix_param) == IS_STRING)) { zephir_get_strval(&controllerSuffix, controllerSuffix_param); } else { ZEPHIR_INIT_VAR(&controllerSuffix); @@ -84868,11 +83384,11 @@ static PHP_METHOD(Phalcon_Mvc_Dispatcher, setDefaultController) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &controllerName_param); - if (unlikely(Z_TYPE_P(controllerName_param) != IS_STRING && Z_TYPE_P(controllerName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(controllerName_param) != IS_STRING && Z_TYPE_P(controllerName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'controllerName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(controllerName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(controllerName_param) == IS_STRING)) { zephir_get_strval(&controllerName, controllerName_param); } else { ZEPHIR_INIT_VAR(&controllerName); @@ -84896,11 +83412,11 @@ static PHP_METHOD(Phalcon_Mvc_Dispatcher, setControllerName) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &controllerName_param); - if (unlikely(Z_TYPE_P(controllerName_param) != IS_STRING && Z_TYPE_P(controllerName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(controllerName_param) != IS_STRING && Z_TYPE_P(controllerName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'controllerName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(controllerName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(controllerName_param) == IS_STRING)) { zephir_get_strval(&controllerName, controllerName_param); } else { ZEPHIR_INIT_VAR(&controllerName); @@ -84970,11 +83486,11 @@ static PHP_METHOD(Phalcon_Mvc_Dispatcher, _throwDispatchException) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &message_param, &exceptionCode_param); - if (unlikely(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'message' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(message_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(message_param) == IS_STRING)) { zephir_get_strval(&message, message_param); } else { ZEPHIR_INIT_VAR(&message); @@ -84995,7 +83511,7 @@ static PHP_METHOD(Phalcon_Mvc_Dispatcher, _throwDispatchException) { ZEPHIR_INIT_VAR(&_1$$3); ZVAL_STRING(&_1$$3, "A dependency injection container is required to access the 'response' service"); ZVAL_LONG(&_2$$3, 0); - ZEPHIR_CALL_METHOD(NULL, &_0$$3, "__construct", NULL, 9, &_1$$3, &_2$$3); + ZEPHIR_CALL_METHOD(NULL, &_0$$3, "__construct", NULL, 4, &_1$$3, &_2$$3); zephir_check_call_status(); zephir_throw_exception_debug(&_0$$3, "phalcon/mvc/dispatcher.zep", 127 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -85014,7 +83530,7 @@ static PHP_METHOD(Phalcon_Mvc_Dispatcher, _throwDispatchException) { ZEPHIR_INIT_VAR(&exception); object_init_ex(&exception, phalcon_mvc_dispatcher_exception_ce); ZVAL_LONG(&_5, exceptionCode); - ZEPHIR_CALL_METHOD(NULL, &exception, "__construct", NULL, 9, &message, &_5); + ZEPHIR_CALL_METHOD(NULL, &exception, "__construct", NULL, 4, &message, &_5); zephir_check_call_status(); ZEPHIR_CALL_METHOD(&_3, this_ptr, "_handleexception", NULL, 0, &exception); zephir_check_call_status(); @@ -85266,11 +83782,11 @@ static PHP_METHOD(Phalcon_Mvc_Micro, map) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &routePattern_param, &handler); - if (unlikely(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'routePattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(routePattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(routePattern_param) == IS_STRING)) { zephir_get_strval(&routePattern, routePattern_param); } else { ZEPHIR_INIT_VAR(&routePattern); @@ -85305,11 +83821,11 @@ static PHP_METHOD(Phalcon_Mvc_Micro, get) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &routePattern_param, &handler); - if (unlikely(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'routePattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(routePattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(routePattern_param) == IS_STRING)) { zephir_get_strval(&routePattern, routePattern_param); } else { ZEPHIR_INIT_VAR(&routePattern); @@ -85344,11 +83860,11 @@ static PHP_METHOD(Phalcon_Mvc_Micro, post) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &routePattern_param, &handler); - if (unlikely(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'routePattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(routePattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(routePattern_param) == IS_STRING)) { zephir_get_strval(&routePattern, routePattern_param); } else { ZEPHIR_INIT_VAR(&routePattern); @@ -85383,11 +83899,11 @@ static PHP_METHOD(Phalcon_Mvc_Micro, put) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &routePattern_param, &handler); - if (unlikely(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'routePattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(routePattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(routePattern_param) == IS_STRING)) { zephir_get_strval(&routePattern, routePattern_param); } else { ZEPHIR_INIT_VAR(&routePattern); @@ -85422,11 +83938,11 @@ static PHP_METHOD(Phalcon_Mvc_Micro, patch) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &routePattern_param, &handler); - if (unlikely(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'routePattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(routePattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(routePattern_param) == IS_STRING)) { zephir_get_strval(&routePattern, routePattern_param); } else { ZEPHIR_INIT_VAR(&routePattern); @@ -85461,11 +83977,11 @@ static PHP_METHOD(Phalcon_Mvc_Micro, head) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &routePattern_param, &handler); - if (unlikely(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'routePattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(routePattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(routePattern_param) == IS_STRING)) { zephir_get_strval(&routePattern, routePattern_param); } else { ZEPHIR_INIT_VAR(&routePattern); @@ -85500,11 +84016,11 @@ static PHP_METHOD(Phalcon_Mvc_Micro, delete) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &routePattern_param, &handler); - if (unlikely(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'routePattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(routePattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(routePattern_param) == IS_STRING)) { zephir_get_strval(&routePattern, routePattern_param); } else { ZEPHIR_INIT_VAR(&routePattern); @@ -85539,11 +84055,11 @@ static PHP_METHOD(Phalcon_Mvc_Micro, options) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &routePattern_param, &handler); - if (unlikely(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'routePattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(routePattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(routePattern_param) == IS_STRING)) { zephir_get_strval(&routePattern, routePattern_param); } else { ZEPHIR_INIT_VAR(&routePattern); @@ -85608,7 +84124,7 @@ static PHP_METHOD(Phalcon_Mvc_Micro, mount) { if (zephir_is_true(&_0$$5)) { ZEPHIR_INIT_VAR(&lazyHandler); object_init_ex(&lazyHandler, phalcon_mvc_micro_lazyloader_ce); - ZEPHIR_CALL_METHOD(NULL, &lazyHandler, "__construct", NULL, 310, &mainHandler); + ZEPHIR_CALL_METHOD(NULL, &lazyHandler, "__construct", NULL, 278, &mainHandler); zephir_check_call_status(); } else { ZEPHIR_CPY_WRT(&lazyHandler, &mainHandler); @@ -85749,11 +84265,11 @@ static PHP_METHOD(Phalcon_Mvc_Micro, setService) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 1, &serviceName_param, &definition, &shared_param); - if (unlikely(Z_TYPE_P(serviceName_param) != IS_STRING && Z_TYPE_P(serviceName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(serviceName_param) != IS_STRING && Z_TYPE_P(serviceName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'serviceName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(serviceName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(serviceName_param) == IS_STRING)) { zephir_get_strval(&serviceName, serviceName_param); } else { ZEPHIR_INIT_VAR(&serviceName); @@ -85771,7 +84287,7 @@ static PHP_METHOD(Phalcon_Mvc_Micro, setService) { if (Z_TYPE_P(&dependencyInjector) != IS_OBJECT) { ZEPHIR_INIT_NVAR(&dependencyInjector); object_init_ex(&dependencyInjector, phalcon_di_factorydefault_ce); - ZEPHIR_CALL_METHOD(NULL, &dependencyInjector, "__construct", NULL, 181); + ZEPHIR_CALL_METHOD(NULL, &dependencyInjector, "__construct", NULL, 279); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_dependencyInjector"), &dependencyInjector); } @@ -85780,7 +84296,7 @@ static PHP_METHOD(Phalcon_Mvc_Micro, setService) { } else { ZVAL_BOOL(&_0, 0); } - ZEPHIR_RETURN_CALL_METHOD(&dependencyInjector, "set", NULL, 311, &serviceName, definition, &_0); + ZEPHIR_RETURN_CALL_METHOD(&dependencyInjector, "set", NULL, 280, &serviceName, definition, &_0); zephir_check_call_status(); RETURN_MM(); @@ -85799,11 +84315,11 @@ static PHP_METHOD(Phalcon_Mvc_Micro, hasService) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &serviceName_param); - if (unlikely(Z_TYPE_P(serviceName_param) != IS_STRING && Z_TYPE_P(serviceName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(serviceName_param) != IS_STRING && Z_TYPE_P(serviceName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'serviceName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(serviceName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(serviceName_param) == IS_STRING)) { zephir_get_strval(&serviceName, serviceName_param); } else { ZEPHIR_INIT_VAR(&serviceName); @@ -85816,11 +84332,11 @@ static PHP_METHOD(Phalcon_Mvc_Micro, hasService) { if (Z_TYPE_P(&dependencyInjector) != IS_OBJECT) { ZEPHIR_INIT_NVAR(&dependencyInjector); object_init_ex(&dependencyInjector, phalcon_di_factorydefault_ce); - ZEPHIR_CALL_METHOD(NULL, &dependencyInjector, "__construct", NULL, 181); + ZEPHIR_CALL_METHOD(NULL, &dependencyInjector, "__construct", NULL, 279); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_dependencyInjector"), &dependencyInjector); } - ZEPHIR_RETURN_CALL_METHOD(&dependencyInjector, "has", NULL, 312, &serviceName); + ZEPHIR_RETURN_CALL_METHOD(&dependencyInjector, "has", NULL, 281, &serviceName); zephir_check_call_status(); RETURN_MM(); @@ -85839,11 +84355,11 @@ static PHP_METHOD(Phalcon_Mvc_Micro, getService) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &serviceName_param); - if (unlikely(Z_TYPE_P(serviceName_param) != IS_STRING && Z_TYPE_P(serviceName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(serviceName_param) != IS_STRING && Z_TYPE_P(serviceName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'serviceName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(serviceName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(serviceName_param) == IS_STRING)) { zephir_get_strval(&serviceName, serviceName_param); } else { ZEPHIR_INIT_VAR(&serviceName); @@ -85856,11 +84372,11 @@ static PHP_METHOD(Phalcon_Mvc_Micro, getService) { if (Z_TYPE_P(&dependencyInjector) != IS_OBJECT) { ZEPHIR_INIT_NVAR(&dependencyInjector); object_init_ex(&dependencyInjector, phalcon_di_factorydefault_ce); - ZEPHIR_CALL_METHOD(NULL, &dependencyInjector, "__construct", NULL, 181); + ZEPHIR_CALL_METHOD(NULL, &dependencyInjector, "__construct", NULL, 279); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_dependencyInjector"), &dependencyInjector); } - ZEPHIR_RETURN_CALL_METHOD(&dependencyInjector, "get", NULL, 313, &serviceName); + ZEPHIR_RETURN_CALL_METHOD(&dependencyInjector, "get", NULL, 282, &serviceName); zephir_check_call_status(); RETURN_MM(); @@ -85885,11 +84401,11 @@ static PHP_METHOD(Phalcon_Mvc_Micro, getSharedService) { if (Z_TYPE_P(&dependencyInjector) != IS_OBJECT) { ZEPHIR_INIT_NVAR(&dependencyInjector); object_init_ex(&dependencyInjector, phalcon_di_factorydefault_ce); - ZEPHIR_CALL_METHOD(NULL, &dependencyInjector, "__construct", NULL, 181); + ZEPHIR_CALL_METHOD(NULL, &dependencyInjector, "__construct", NULL, 279); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_dependencyInjector"), &dependencyInjector); } - ZEPHIR_RETURN_CALL_METHOD(&dependencyInjector, "getshared", NULL, 314, serviceName); + ZEPHIR_RETURN_CALL_METHOD(&dependencyInjector, "getshared", NULL, 283, serviceName); zephir_check_call_status(); RETURN_MM(); @@ -85897,11 +84413,11 @@ static PHP_METHOD(Phalcon_Mvc_Micro, getSharedService) { static PHP_METHOD(Phalcon_Mvc_Micro, handle) { - zval _50$$59; + zval _51$$59; zend_class_entry *_18$$20; zend_bool _16$$7, _24$$7, _21$$24, _28$$31; int ZEPHIR_LAST_CALL_STATUS; - zval *uri = NULL, uri_sub, __$true, __$false, __$null, dependencyInjector, eventsManager, status, router, matchedRoute, handler, beforeHandlers, params, returnedValue, e, errorHandler, afterHandlers, notFoundHandler, finishHandlers, finish, before, after, response, modelBinder, bindCacheKey, routeName, realHandler, methodName, lazyReturned, afterBindingHandlers, afterBinding, _0$$5, _1$$5, _2$$4, _3$$4, _4$$7, _5$$7, _6$$8, _7$$8, _8$$9, _9$$9, *_10$$12, _11$$15, _12$$17, _13$$17, _14$$13, _15$$13, _17$$20, _19$$23, _20$$21, _22$$25, _23$$25, _25$$28, _26$$28, *_27$$30, _32$$31, _33$$31, _29$$32, _30$$34, _31$$34, _34$$37, *_35$$38, _36$$41, _37$$43, _38$$43, _39$$45, _40$$45, _41$$47, _42$$47, _43$$48, *_44$$49, _45$$52, _46$$54, _47$$54, _48$$50, _49$$58, _51$$67, _52$$67; + zval *uri = NULL, uri_sub, __$true, __$false, __$null, dependencyInjector, eventsManager, status, router, matchedRoute, handler, beforeHandlers, params, returnedValue, e, errorHandler, afterHandlers, notFoundHandler, finishHandlers, finish, before, after, response, modelBinder, bindCacheKey, routeName, realHandler, methodName, lazyReturned, afterBindingHandlers, afterBinding, _49, _0$$5, _1$$5, _2$$4, _3$$4, _4$$7, _5$$7, _6$$8, _7$$8, _8$$9, _9$$9, *_10$$12, _11$$15, _12$$17, _13$$17, _14$$13, _15$$13, _17$$20, _19$$23, _20$$21, _22$$25, _23$$25, _25$$28, _26$$28, *_27$$30, _32$$31, _33$$31, _29$$32, _30$$34, _31$$34, _34$$37, *_35$$38, _36$$41, _37$$43, _38$$43, _39$$45, _40$$45, _41$$47, _42$$47, _43$$48, *_44$$49, _45$$52, _46$$54, _47$$54, _48$$50, _50$$58, _52$$67, _53$$67; ZEPHIR_INIT_THIS(); ZVAL_UNDEF(&uri_sub); @@ -85934,6 +84450,7 @@ static PHP_METHOD(Phalcon_Mvc_Micro, handle) { ZVAL_UNDEF(&lazyReturned); ZVAL_UNDEF(&afterBindingHandlers); ZVAL_UNDEF(&afterBinding); + ZVAL_UNDEF(&_49); ZVAL_UNDEF(&_0$$5); ZVAL_UNDEF(&_1$$5); ZVAL_UNDEF(&_2$$4); @@ -85974,10 +84491,10 @@ static PHP_METHOD(Phalcon_Mvc_Micro, handle) { ZVAL_UNDEF(&_46$$54); ZVAL_UNDEF(&_47$$54); ZVAL_UNDEF(&_48$$50); - ZVAL_UNDEF(&_49$$58); - ZVAL_UNDEF(&_51$$67); + ZVAL_UNDEF(&_50$$58); ZVAL_UNDEF(&_52$$67); - ZVAL_UNDEF(&_50$$59); + ZVAL_UNDEF(&_53$$67); + ZVAL_UNDEF(&_51$$59); ZEPHIR_MM_GROW(); zephir_fetch_params(1, 0, 1, &uri); @@ -86033,7 +84550,7 @@ static PHP_METHOD(Phalcon_Mvc_Micro, handle) { object_init_ex(&_6$$8, phalcon_mvc_micro_exception_ce); ZEPHIR_INIT_VAR(&_7$$8); ZVAL_STRING(&_7$$8, "Matched route doesn't have an associated handler"); - ZEPHIR_CALL_METHOD(NULL, &_6$$8, "__construct", NULL, 9, &_7$$8); + ZEPHIR_CALL_METHOD(NULL, &_6$$8, "__construct", NULL, 4, &_7$$8); zephir_check_call_status_or_jump(try_end_1); zephir_throw_exception_debug(&_6$$8, "phalcon/mvc/micro.zep", 629 TSRMLS_CC); goto try_end_1; @@ -86081,7 +84598,7 @@ static PHP_METHOD(Phalcon_Mvc_Micro, handle) { object_init_ex(&_12$$17, phalcon_mvc_micro_exception_ce); ZEPHIR_INIT_NVAR(&_13$$17); ZVAL_STRING(&_13$$17, "'before' handler is not callable"); - ZEPHIR_CALL_METHOD(NULL, &_12$$17, "__construct", NULL, 9, &_13$$17); + ZEPHIR_CALL_METHOD(NULL, &_12$$17, "__construct", NULL, 4, &_13$$17); zephir_check_call_status_or_jump(try_end_1); zephir_throw_exception_debug(&_12$$17, "phalcon/mvc/micro.zep", 679 TSRMLS_CC); goto try_end_1; @@ -86203,7 +84720,7 @@ static PHP_METHOD(Phalcon_Mvc_Micro, handle) { object_init_ex(&_30$$34, phalcon_mvc_micro_exception_ce); ZEPHIR_INIT_NVAR(&_31$$34); ZVAL_STRING(&_31$$34, "'afterBinding' handler is not callable"); - ZEPHIR_CALL_METHOD(NULL, &_30$$34, "__construct", NULL, 9, &_31$$34); + ZEPHIR_CALL_METHOD(NULL, &_30$$34, "__construct", NULL, 4, &_31$$34); zephir_check_call_status_or_jump(try_end_1); zephir_throw_exception_debug(&_30$$34, "phalcon/mvc/micro.zep", 784 TSRMLS_CC); goto try_end_1; @@ -86258,7 +84775,7 @@ static PHP_METHOD(Phalcon_Mvc_Micro, handle) { object_init_ex(&_37$$43, phalcon_mvc_micro_exception_ce); ZEPHIR_INIT_NVAR(&_38$$43); ZVAL_STRING(&_38$$43, "One of the 'after' handlers is not callable"); - ZEPHIR_CALL_METHOD(NULL, &_37$$43, "__construct", NULL, 9, &_38$$43); + ZEPHIR_CALL_METHOD(NULL, &_37$$43, "__construct", NULL, 4, &_38$$43); zephir_check_call_status_or_jump(try_end_1); zephir_throw_exception_debug(&_37$$43, "phalcon/mvc/micro.zep", 845 TSRMLS_CC); goto try_end_1; @@ -86289,7 +84806,7 @@ static PHP_METHOD(Phalcon_Mvc_Micro, handle) { object_init_ex(&_41$$47, phalcon_mvc_micro_exception_ce); ZEPHIR_INIT_VAR(&_42$$47); ZVAL_STRING(&_42$$47, "Not-Found handler is not callable or is not defined"); - ZEPHIR_CALL_METHOD(NULL, &_41$$47, "__construct", NULL, 9, &_42$$47); + ZEPHIR_CALL_METHOD(NULL, &_41$$47, "__construct", NULL, 4, &_42$$47); zephir_check_call_status_or_jump(try_end_1); zephir_throw_exception_debug(&_41$$47, "phalcon/mvc/micro.zep", 869 TSRMLS_CC); goto try_end_1; @@ -86336,7 +84853,7 @@ static PHP_METHOD(Phalcon_Mvc_Micro, handle) { object_init_ex(&_46$$54, phalcon_mvc_micro_exception_ce); ZEPHIR_INIT_NVAR(&_47$$54); ZVAL_STRING(&_47$$54, "One of the 'finish' handlers is not callable"); - ZEPHIR_CALL_METHOD(NULL, &_46$$54, "__construct", NULL, 9, &_47$$54); + ZEPHIR_CALL_METHOD(NULL, &_46$$54, "__construct", NULL, 4, &_47$$54); zephir_check_call_status_or_jump(try_end_1); zephir_throw_exception_debug(&_46$$54, "phalcon/mvc/micro.zep", 921 TSRMLS_CC); goto try_end_1; @@ -86361,16 +84878,18 @@ static PHP_METHOD(Phalcon_Mvc_Micro, handle) { try_end_1: if (EG(exception)) { - ZVAL_OBJ(&e, EG(exception)); - Z_ADDREF_P(&e); - if (zephir_instance_of_ev(&e, zend_exception_get_default(TSRMLS_C) TSRMLS_CC)) { + ZEPHIR_INIT_VAR(&_49); + ZVAL_OBJ(&_49, EG(exception)); + Z_ADDREF_P(&_49); + if (zephir_instance_of_ev(&_49, zend_exception_get_default(TSRMLS_C) TSRMLS_CC)) { zend_clear_exception(TSRMLS_C); + ZEPHIR_CPY_WRT(&e, &_49); ZEPHIR_OBS_NVAR(&eventsManager); zephir_read_property(&eventsManager, this_ptr, SL("_eventsManager"), PH_NOISY_CC); if (Z_TYPE_P(&eventsManager) == IS_OBJECT) { - ZEPHIR_INIT_VAR(&_49$$58); - ZVAL_STRING(&_49$$58, "micro:beforeException"); - ZEPHIR_CALL_METHOD(&returnedValue, &eventsManager, "fire", NULL, 0, &_49$$58, this_ptr, &e); + ZEPHIR_INIT_VAR(&_50$$58); + ZVAL_STRING(&_50$$58, "micro:beforeException"); + ZEPHIR_CALL_METHOD(&returnedValue, &eventsManager, "fire", NULL, 0, &_50$$58, this_ptr, &e); zephir_check_call_status(); } ZEPHIR_OBS_VAR(&errorHandler); @@ -86380,11 +84899,11 @@ static PHP_METHOD(Phalcon_Mvc_Micro, handle) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_micro_exception_ce, "Error handler is not callable", "phalcon/mvc/micro.zep", 959); return; } - ZEPHIR_INIT_VAR(&_50$$59); - zephir_create_array(&_50$$59, 1, 0 TSRMLS_CC); - zephir_array_fast_append(&_50$$59, &e); + ZEPHIR_INIT_VAR(&_51$$59); + zephir_create_array(&_51$$59, 1, 0 TSRMLS_CC); + zephir_array_fast_append(&_51$$59, &e); ZEPHIR_INIT_NVAR(&returnedValue); - ZEPHIR_CALL_USER_FUNC_ARRAY(&returnedValue, &errorHandler, &_50$$59); + ZEPHIR_CALL_USER_FUNC_ARRAY(&returnedValue, &errorHandler, &_51$$59); zephir_check_call_status(); if (Z_TYPE_P(&returnedValue) == IS_OBJECT) { if (!(zephir_instance_of_ev(&returnedValue, phalcon_http_responseinterface_ce TSRMLS_CC))) { @@ -86409,11 +84928,11 @@ static PHP_METHOD(Phalcon_Mvc_Micro, handle) { } } if (Z_TYPE_P(&returnedValue) == IS_STRING) { - ZEPHIR_INIT_VAR(&_52$$67); - ZVAL_STRING(&_52$$67, "response"); - ZEPHIR_CALL_METHOD(&_51$$67, &dependencyInjector, "getshared", NULL, 0, &_52$$67); + ZEPHIR_INIT_VAR(&_53$$67); + ZVAL_STRING(&_53$$67, "response"); + ZEPHIR_CALL_METHOD(&_52$$67, &dependencyInjector, "getshared", NULL, 0, &_53$$67); zephir_check_call_status(); - ZEPHIR_CPY_WRT(&response, &_51$$67); + ZEPHIR_CPY_WRT(&response, &_52$$67); ZEPHIR_CALL_METHOD(NULL, &response, "setcontent", NULL, 0, &returnedValue); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, &response, "send", NULL, 0); @@ -86819,7 +85338,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, __construct) { if (Z_TYPE_P(dependencyInjector) != IS_OBJECT) { - ZEPHIR_CALL_CE_STATIC(dependencyInjector, phalcon_di_ce, "getdefault", &_0, 1); + ZEPHIR_CALL_CE_STATIC(dependencyInjector, phalcon_di_ce, "getdefault", &_0, 0); zephir_check_call_status(); } if (Z_TYPE_P(dependencyInjector) != IS_OBJECT) { @@ -86987,11 +85506,11 @@ static PHP_METHOD(Phalcon_Mvc_Model, setSource) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &source_param); - if (unlikely(Z_TYPE_P(source_param) != IS_STRING && Z_TYPE_P(source_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(source_param) != IS_STRING && Z_TYPE_P(source_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'source' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(source_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(source_param) == IS_STRING)) { zephir_get_strval(&source, source_param); } else { ZEPHIR_INIT_VAR(&source); @@ -87036,11 +85555,11 @@ static PHP_METHOD(Phalcon_Mvc_Model, setSchema) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &schema_param); - if (unlikely(Z_TYPE_P(schema_param) != IS_STRING && Z_TYPE_P(schema_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schema_param) != IS_STRING && Z_TYPE_P(schema_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schema' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schema_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schema_param) == IS_STRING)) { zephir_get_strval(&schema, schema_param); } else { ZEPHIR_INIT_VAR(&schema); @@ -87085,11 +85604,11 @@ static PHP_METHOD(Phalcon_Mvc_Model, setConnectionService) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &connectionService_param); - if (unlikely(Z_TYPE_P(connectionService_param) != IS_STRING && Z_TYPE_P(connectionService_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(connectionService_param) != IS_STRING && Z_TYPE_P(connectionService_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'connectionService' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(connectionService_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(connectionService_param) == IS_STRING)) { zephir_get_strval(&connectionService, connectionService_param); } else { ZEPHIR_INIT_VAR(&connectionService); @@ -87117,11 +85636,11 @@ static PHP_METHOD(Phalcon_Mvc_Model, setReadConnectionService) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &connectionService_param); - if (unlikely(Z_TYPE_P(connectionService_param) != IS_STRING && Z_TYPE_P(connectionService_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(connectionService_param) != IS_STRING && Z_TYPE_P(connectionService_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'connectionService' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(connectionService_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(connectionService_param) == IS_STRING)) { zephir_get_strval(&connectionService, connectionService_param); } else { ZEPHIR_INIT_VAR(&connectionService); @@ -87149,11 +85668,11 @@ static PHP_METHOD(Phalcon_Mvc_Model, setWriteConnectionService) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &connectionService_param); - if (unlikely(Z_TYPE_P(connectionService_param) != IS_STRING && Z_TYPE_P(connectionService_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(connectionService_param) != IS_STRING && Z_TYPE_P(connectionService_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'connectionService' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(connectionService_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(connectionService_param) == IS_STRING)) { zephir_get_strval(&connectionService, connectionService_param); } else { ZEPHIR_INIT_VAR(&connectionService); @@ -87373,7 +85892,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, assign) { object_init_ex(&_5$$13, phalcon_mvc_model_exception_ce); ZEPHIR_INIT_LNVAR(_6$$13); ZEPHIR_CONCAT_SVS(&_6$$13, "Column '", &attribute, "' doesn\\'t make part of the column map"); - ZEPHIR_CALL_METHOD(NULL, &_5$$13, "__construct", &_7, 9, &_6$$13); + ZEPHIR_CALL_METHOD(NULL, &_5$$13, "__construct", &_7, 4, &_6$$13); zephir_check_call_status(); zephir_throw_exception_debug(&_5$$13, "phalcon/mvc/model.zep", 487 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -87392,7 +85911,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, assign) { continue; } } - ZEPHIR_CALL_METHOD(&_8$$16, this_ptr, "_possiblesetter", &_9, 315, &attributeField, &value); + ZEPHIR_CALL_METHOD(&_8$$16, this_ptr, "_possiblesetter", &_9, 284, &attributeField, &value); zephir_check_call_status(); if (!(zephir_is_true(&_8$$16))) { zephir_update_property_zval_zval(this_ptr, &attributeField, &value TSRMLS_CC); @@ -87478,7 +85997,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, cloneResultMap) { object_init_ex(&_4$$7, phalcon_mvc_model_exception_ce); ZEPHIR_INIT_LNVAR(_5$$7); ZEPHIR_CONCAT_SVS(&_5$$7, "Column '", &key, "' doesn't make part of the column map"); - ZEPHIR_CALL_METHOD(NULL, &_4$$7, "__construct", &_6, 9, &_5$$7); + ZEPHIR_CALL_METHOD(NULL, &_4$$7, "__construct", &_6, 4, &_5$$7); zephir_check_call_status(); zephir_throw_exception_debug(&_4$$7, "phalcon/mvc/model.zep", 559 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -87500,7 +86019,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, cloneResultMap) { do { if (ZEPHIR_IS_LONG(&_8$$10, 0)) { ZVAL_LONG(&_9$$11, 10); - ZEPHIR_CALL_FUNCTION(&castValue, "intval", &_10, 36, &value, &_9$$11); + ZEPHIR_CALL_FUNCTION(&castValue, "intval", &_10, 30, &value, &_9$$11); zephir_check_call_status(); break; } @@ -87614,7 +86133,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, cloneResultMapHydrate) { object_init_ex(&_3$$11, phalcon_mvc_model_exception_ce); ZEPHIR_INIT_LNVAR(_4$$11); ZEPHIR_CONCAT_SVS(&_4$$11, "Column '", &key, "' doesn't make part of the column map"); - ZEPHIR_CALL_METHOD(NULL, &_3$$11, "__construct", &_5, 9, &_4$$11); + ZEPHIR_CALL_METHOD(NULL, &_3$$11, "__construct", &_5, 4, &_4$$11); zephir_check_call_status(); zephir_throw_exception_debug(&_3$$11, "phalcon/mvc/model.zep", 672 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -87746,7 +86265,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, find) { } - ZEPHIR_CALL_CE_STATIC(&dependencyInjector, phalcon_di_ce, "getdefault", &_0, 1); + ZEPHIR_CALL_CE_STATIC(&dependencyInjector, phalcon_di_ce, "getdefault", &_0, 0); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_2); ZVAL_STRING(&_2, "modelsManager"); @@ -87836,7 +86355,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, findFirst) { } - ZEPHIR_CALL_CE_STATIC(&dependencyInjector, phalcon_di_ce, "getdefault", &_0, 1); + ZEPHIR_CALL_CE_STATIC(&dependencyInjector, phalcon_di_ce, "getdefault", &_0, 0); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_2); ZVAL_STRING(&_2, "modelsManager"); @@ -87919,7 +86438,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, query) { if (Z_TYPE_P(dependencyInjector) != IS_OBJECT) { - ZEPHIR_CALL_CE_STATIC(dependencyInjector, phalcon_di_ce, "getdefault", &_0, 1); + ZEPHIR_CALL_CE_STATIC(dependencyInjector, phalcon_di_ce, "getdefault", &_0, 0); zephir_check_call_status(); } ZEPHIR_INIT_VAR(&criteria); @@ -87935,12 +86454,12 @@ static PHP_METHOD(Phalcon_Mvc_Model, query) { ZEPHIR_CALL_METHOD(NULL, &criteria, "__construct", NULL, 0); zephir_check_call_status(); } - ZEPHIR_CALL_METHOD(NULL, &criteria, "setdi", NULL, 316, dependencyInjector); + ZEPHIR_CALL_METHOD(NULL, &criteria, "setdi", NULL, 285, dependencyInjector); zephir_check_call_status(); } ZEPHIR_INIT_VAR(&_3); zephir_get_called_class(&_3 TSRMLS_CC); - ZEPHIR_CALL_METHOD(NULL, &criteria, "setmodelname", NULL, 317, &_3); + ZEPHIR_CALL_METHOD(NULL, &criteria, "setmodelname", NULL, 286, &_3); zephir_check_call_status(); RETURN_CCTOR(criteria); @@ -88039,7 +86558,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _exists) { object_init_ex(&_1$$9, phalcon_mvc_model_exception_ce); ZEPHIR_INIT_LNVAR(_2$$9); ZEPHIR_CONCAT_SVS(&_2$$9, "Column '", &field, "' isn't part of the column map"); - ZEPHIR_CALL_METHOD(NULL, &_1$$9, "__construct", &_3, 9, &_2$$9); + ZEPHIR_CALL_METHOD(NULL, &_1$$9, "__construct", &_3, 4, &_2$$9); zephir_check_call_status(); zephir_throw_exception_debug(&_1$$9, "phalcon/mvc/model.zep", 1038 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -88070,7 +86589,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _exists) { object_init_ex(&_5$$14, phalcon_mvc_model_exception_ce); ZEPHIR_INIT_LNVAR(_6$$14); ZEPHIR_CONCAT_SVS(&_6$$14, "Column '", &field, "' isn't part of the table columns"); - ZEPHIR_CALL_METHOD(NULL, &_5$$14, "__construct", &_3, 9, &_6$$14); + ZEPHIR_CALL_METHOD(NULL, &_5$$14, "__construct", &_3, 4, &_6$$14); zephir_check_call_status(); zephir_throw_exception_debug(&_5$$14, "phalcon/mvc/model.zep", 1064 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -88176,21 +86695,21 @@ static PHP_METHOD(Phalcon_Mvc_Model, _groupResult) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &functionName_param, &alias_param, ¶meters); - if (unlikely(Z_TYPE_P(functionName_param) != IS_STRING && Z_TYPE_P(functionName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(functionName_param) != IS_STRING && Z_TYPE_P(functionName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'functionName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(functionName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(functionName_param) == IS_STRING)) { zephir_get_strval(&functionName, functionName_param); } else { ZEPHIR_INIT_VAR(&functionName); ZVAL_EMPTY_STRING(&functionName); } - if (unlikely(Z_TYPE_P(alias_param) != IS_STRING && Z_TYPE_P(alias_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(alias_param) != IS_STRING && Z_TYPE_P(alias_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'alias' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(alias_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(alias_param) == IS_STRING)) { zephir_get_strval(&alias, alias_param); } else { ZEPHIR_INIT_VAR(&alias); @@ -88198,7 +86717,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _groupResult) { } - ZEPHIR_CALL_CE_STATIC(&dependencyInjector, phalcon_di_ce, "getdefault", &_0, 1); + ZEPHIR_CALL_CE_STATIC(&dependencyInjector, phalcon_di_ce, "getdefault", &_0, 0); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_2); ZVAL_STRING(&_2, "modelsManager"); @@ -88436,11 +86955,11 @@ static PHP_METHOD(Phalcon_Mvc_Model, fireEvent) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &eventName_param); - if (unlikely(Z_TYPE_P(eventName_param) != IS_STRING && Z_TYPE_P(eventName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(eventName_param) != IS_STRING && Z_TYPE_P(eventName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'eventName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(eventName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(eventName_param) == IS_STRING)) { zephir_get_strval(&eventName, eventName_param); } else { ZEPHIR_INIT_VAR(&eventName); @@ -88474,11 +86993,11 @@ static PHP_METHOD(Phalcon_Mvc_Model, fireEventCancel) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &eventName_param); - if (unlikely(Z_TYPE_P(eventName_param) != IS_STRING && Z_TYPE_P(eventName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(eventName_param) != IS_STRING && Z_TYPE_P(eventName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'eventName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(eventName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(eventName_param) == IS_STRING)) { zephir_get_strval(&eventName, eventName_param); } else { ZEPHIR_INIT_VAR(&eventName); @@ -88595,7 +87114,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, validate) { ZEPHIR_CALL_METHOD(&_6$$4, &message, "getcode", NULL, 0); zephir_check_call_status(); ZVAL_NULL(&_7$$4); - ZEPHIR_CALL_METHOD(NULL, &_2$$4, "__construct", &_8, 8, &_3$$4, &_4$$4, &_5$$4, &_7$$4, &_6$$4); + ZEPHIR_CALL_METHOD(NULL, &_2$$4, "__construct", &_8, 3, &_3$$4, &_4$$4, &_5$$4, &_7$$4, &_6$$4); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, this_ptr, "appendmessage", &_9, 0, &_2$$4); zephir_check_call_status(); @@ -88831,7 +87350,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysRestrict) { object_init_ex(&_16$$17, phalcon_mvc_model_message_ce); ZEPHIR_INIT_NVAR(&_17$$17); ZVAL_STRING(&_17$$17, "ConstraintViolation"); - ZEPHIR_CALL_METHOD(NULL, &_16$$17, "__construct", &_18, 8, &message, &fields, &_17$$17); + ZEPHIR_CALL_METHOD(NULL, &_16$$17, "__construct", &_18, 3, &message, &fields, &_17$$17); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, this_ptr, "appendmessage", &_19, 0, &_16$$17); zephir_check_call_status(); @@ -89111,7 +87630,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysReverseRestrict) { object_init_ex(&_13$$12, phalcon_mvc_model_message_ce); ZEPHIR_INIT_NVAR(&_14$$12); ZVAL_STRING(&_14$$12, "ConstraintViolation"); - ZEPHIR_CALL_METHOD(NULL, &_13$$12, "__construct", &_15, 8, &message, &fields, &_14$$12); + ZEPHIR_CALL_METHOD(NULL, &_13$$12, "__construct", &_15, 3, &message, &fields, &_14$$12); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, this_ptr, "appendmessage", &_16, 0, &_13$$12); zephir_check_call_status(); @@ -89219,7 +87738,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _preSave) { } } if (ZEPHIR_GLOBAL(orm).virtual_foreign_keys) { - ZEPHIR_CALL_METHOD(&_7$$9, this_ptr, "_checkforeignkeysrestrict", NULL, 318); + ZEPHIR_CALL_METHOD(&_7$$9, this_ptr, "_checkforeignkeysrestrict", NULL, 287); zephir_check_call_status(); if (ZEPHIR_IS_FALSE_IDENTICAL(&_7$$9)) { RETURN_MM_BOOL(0); @@ -89264,7 +87783,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _preSave) { object_init_ex(&_9$$20, phalcon_mvc_model_exception_ce); ZEPHIR_INIT_LNVAR(_10$$20); ZEPHIR_CONCAT_SVS(&_10$$20, "Column '", &field, "' isn't part of the column map"); - ZEPHIR_CALL_METHOD(NULL, &_9$$20, "__construct", &_11, 9, &_10$$20); + ZEPHIR_CALL_METHOD(NULL, &_9$$20, "__construct", &_11, 4, &_10$$20); zephir_check_call_status(); zephir_throw_exception_debug(&_9$$20, "phalcon/mvc/model.zep", 2071 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -89323,7 +87842,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _preSave) { ZEPHIR_CONCAT_VS(&_17$$32, &attributeField, " is required"); ZEPHIR_INIT_NVAR(&_18$$32); ZVAL_STRING(&_18$$32, "PresenceOf"); - ZEPHIR_CALL_METHOD(NULL, &_16$$32, "__construct", &_19, 8, &_17$$32, &attributeField, &_18$$32); + ZEPHIR_CALL_METHOD(NULL, &_16$$32, "__construct", &_19, 3, &_17$$32, &attributeField, &_18$$32); zephir_check_call_status(); zephir_update_property_array_append(this_ptr, SL("_errorMessages"), &_16$$32 TSRMLS_CC); error = 1; @@ -89457,10 +87976,10 @@ static PHP_METHOD(Phalcon_Mvc_Model, _postSave) { static PHP_METHOD(Phalcon_Mvc_Model, _doLowInsert) { - zend_bool useExplicitIdentity = 0, _17, _5$$11, _14$$22; + zend_bool useExplicitIdentity = 0, _17, _5$$11, _14$$23; zephir_fcall_cache_entry *_4 = NULL, *_6 = NULL, *_10 = NULL; int ZEPHIR_LAST_CALL_STATUS; - zval *metaData, metaData_sub, *connection, connection_sub, *table, table_sub, *identityField, identityField_sub, __$null, bindSkip, fields, values, bindTypes, attributes, bindDataTypes, automaticAttributes, field, columnMap, value, attributeField, success, bindType, defaultValue, sequenceName, defaultValues, source, schema, snapshot, lastInsertedId, manager, _0, *_1, _2$$8, _3$$8, _7$$13, _8$$13, _9$$15, _11$$17, _12$$20, _13$$20, _15$$27, _16$$27, _18$$30, _19$$30; + zval *metaData, metaData_sub, *connection, connection_sub, *table, table_sub, *identityField, identityField_sub, __$null, bindSkip, fields, values, bindTypes, attributes, bindDataTypes, automaticAttributes, field, columnMap, value, attributeField, success, bindType, defaultValue, sequenceName, defaultValues, source, schema, snapshot, lastInsertedId, manager, _0, *_1, _2$$8, _3$$8, _7$$14, _8$$14, _9$$16, _11$$18, _12$$21, _13$$21, _15$$28, _16$$28, _18$$31, _19$$31; ZEPHIR_INIT_THIS(); ZVAL_UNDEF(&metaData_sub); @@ -89492,16 +88011,16 @@ static PHP_METHOD(Phalcon_Mvc_Model, _doLowInsert) { ZVAL_UNDEF(&_0); ZVAL_UNDEF(&_2$$8); ZVAL_UNDEF(&_3$$8); - ZVAL_UNDEF(&_7$$13); - ZVAL_UNDEF(&_8$$13); - ZVAL_UNDEF(&_9$$15); - ZVAL_UNDEF(&_11$$17); - ZVAL_UNDEF(&_12$$20); - ZVAL_UNDEF(&_13$$20); - ZVAL_UNDEF(&_15$$27); - ZVAL_UNDEF(&_16$$27); - ZVAL_UNDEF(&_18$$30); - ZVAL_UNDEF(&_19$$30); + ZVAL_UNDEF(&_7$$14); + ZVAL_UNDEF(&_8$$14); + ZVAL_UNDEF(&_9$$16); + ZVAL_UNDEF(&_11$$18); + ZVAL_UNDEF(&_12$$21); + ZVAL_UNDEF(&_13$$21); + ZVAL_UNDEF(&_15$$28); + ZVAL_UNDEF(&_16$$28); + ZVAL_UNDEF(&_18$$31); + ZVAL_UNDEF(&_19$$31); ZEPHIR_MM_GROW(); zephir_fetch_params(1, 4, 0, &metaData, &connection, &table, &identityField); @@ -89535,7 +88054,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _doLowInsert) { ZEPHIR_INIT_NVAR(&columnMap); ZVAL_NULL(&columnMap); } - zephir_is_iterable(&attributes, 0, "phalcon/mvc/model.zep", 2327); + zephir_is_iterable(&attributes, 0, "phalcon/mvc/model.zep", 2329); ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&attributes), _1) { ZEPHIR_INIT_NVAR(&field); @@ -89548,7 +88067,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _doLowInsert) { object_init_ex(&_2$$8, phalcon_mvc_model_exception_ce); ZEPHIR_INIT_LNVAR(_3$$8); ZEPHIR_CONCAT_SVS(&_3$$8, "Column '", &field, "' isn't part of the column map"); - ZEPHIR_CALL_METHOD(NULL, &_2$$8, "__construct", &_4, 9, &_3$$8); + ZEPHIR_CALL_METHOD(NULL, &_2$$8, "__construct", &_4, 4, &_3$$8); zephir_check_call_status(); zephir_throw_exception_debug(&_2$$8, "phalcon/mvc/model.zep", 2276 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -89565,37 +88084,39 @@ static PHP_METHOD(Phalcon_Mvc_Model, _doLowInsert) { _5$$11 = zephir_array_isset(&defaultValues, &field); } if (_5$$11) { + zephir_array_update_zval(&snapshot, &attributeField, &__$null, PH_COPY | PH_SEPARATE); ZEPHIR_CALL_METHOD(&value, connection, "getdefaultvalue", &_6, 0); zephir_check_call_status(); + } else { + zephir_array_update_zval(&snapshot, &attributeField, &value, PH_COPY | PH_SEPARATE); } ZEPHIR_OBS_NVAR(&bindType); if (!(zephir_array_isset_fetch(&bindType, &bindDataTypes, &field, 0 TSRMLS_CC))) { - ZEPHIR_INIT_NVAR(&_7$$13); - object_init_ex(&_7$$13, phalcon_mvc_model_exception_ce); - ZEPHIR_INIT_LNVAR(_8$$13); - ZEPHIR_CONCAT_SVS(&_8$$13, "Column '", &field, "' have not defined a bind data type"); - ZEPHIR_CALL_METHOD(NULL, &_7$$13, "__construct", &_4, 9, &_8$$13); + ZEPHIR_INIT_NVAR(&_7$$14); + object_init_ex(&_7$$14, phalcon_mvc_model_exception_ce); + ZEPHIR_INIT_LNVAR(_8$$14); + ZEPHIR_CONCAT_SVS(&_8$$14, "Column '", &field, "' have not defined a bind data type"); + ZEPHIR_CALL_METHOD(NULL, &_7$$14, "__construct", &_4, 4, &_8$$14); zephir_check_call_status(); - zephir_throw_exception_debug(&_7$$13, "phalcon/mvc/model.zep", 2300 TSRMLS_CC); + zephir_throw_exception_debug(&_7$$14, "phalcon/mvc/model.zep", 2303 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } - zephir_array_append(&fields, &field, PH_SEPARATE, "phalcon/mvc/model.zep", 2303); - zephir_array_append(&values, &value, PH_SEPARATE, "phalcon/mvc/model.zep", 2303); - zephir_array_append(&bindTypes, &bindType, PH_SEPARATE, "phalcon/mvc/model.zep", 2303); - zephir_array_update_zval(&snapshot, &attributeField, &value, PH_COPY | PH_SEPARATE); + zephir_array_append(&fields, &field, PH_SEPARATE, "phalcon/mvc/model.zep", 2306); + zephir_array_append(&values, &value, PH_SEPARATE, "phalcon/mvc/model.zep", 2306); + zephir_array_append(&bindTypes, &bindType, PH_SEPARATE, "phalcon/mvc/model.zep", 2306); } else { if (zephir_array_isset(&defaultValues, &field)) { - ZEPHIR_CALL_METHOD(&_9$$15, connection, "getdefaultvalue", &_10, 0); + ZEPHIR_CALL_METHOD(&_9$$16, connection, "getdefaultvalue", &_10, 0); zephir_check_call_status(); - zephir_array_append(&values, &_9$$15, PH_SEPARATE, "phalcon/mvc/model.zep", 2308); + zephir_array_append(&values, &_9$$16, PH_SEPARATE, "phalcon/mvc/model.zep", 2310); zephir_array_update_zval(&snapshot, &attributeField, &__$null, PH_COPY | PH_SEPARATE); } else { - zephir_array_append(&values, &value, PH_SEPARATE, "phalcon/mvc/model.zep", 2314); + zephir_array_append(&values, &value, PH_SEPARATE, "phalcon/mvc/model.zep", 2316); zephir_array_update_zval(&snapshot, &attributeField, &value, PH_COPY | PH_SEPARATE); } - zephir_array_append(&fields, &field, PH_SEPARATE, "phalcon/mvc/model.zep", 2318); - zephir_array_append(&bindTypes, &bindSkip, PH_SEPARATE, "phalcon/mvc/model.zep", 2318); + zephir_array_append(&fields, &field, PH_SEPARATE, "phalcon/mvc/model.zep", 2320); + zephir_array_append(&bindTypes, &bindSkip, PH_SEPARATE, "phalcon/mvc/model.zep", 2320); } } } @@ -89604,22 +88125,22 @@ static PHP_METHOD(Phalcon_Mvc_Model, _doLowInsert) { if (!ZEPHIR_IS_FALSE_IDENTICAL(identityField)) { ZEPHIR_CALL_METHOD(&defaultValue, connection, "getdefaultidvalue", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_11$$17, connection, "useexplicitidvalue", NULL, 0); + ZEPHIR_CALL_METHOD(&_11$$18, connection, "useexplicitidvalue", NULL, 0); zephir_check_call_status(); - useExplicitIdentity = zephir_get_boolval(&_11$$17); + useExplicitIdentity = zephir_get_boolval(&_11$$18); if (useExplicitIdentity) { - zephir_array_append(&fields, identityField, PH_SEPARATE, "phalcon/mvc/model.zep", 2336); + zephir_array_append(&fields, identityField, PH_SEPARATE, "phalcon/mvc/model.zep", 2338); } if (Z_TYPE_P(&columnMap) == IS_ARRAY) { ZEPHIR_OBS_NVAR(&attributeField); if (!(zephir_array_isset_fetch(&attributeField, &columnMap, identityField, 0 TSRMLS_CC))) { - ZEPHIR_INIT_VAR(&_12$$20); - object_init_ex(&_12$$20, phalcon_mvc_model_exception_ce); - ZEPHIR_INIT_VAR(&_13$$20); - ZEPHIR_CONCAT_SVS(&_13$$20, "Identity column '", identityField, "' isn't part of the column map"); - ZEPHIR_CALL_METHOD(NULL, &_12$$20, "__construct", &_4, 9, &_13$$20); + ZEPHIR_INIT_VAR(&_12$$21); + object_init_ex(&_12$$21, phalcon_mvc_model_exception_ce); + ZEPHIR_INIT_VAR(&_13$$21); + ZEPHIR_CONCAT_SVS(&_13$$21, "Identity column '", identityField, "' isn't part of the column map"); + ZEPHIR_CALL_METHOD(NULL, &_12$$21, "__construct", &_4, 4, &_13$$21); zephir_check_call_status(); - zephir_throw_exception_debug(&_12$$20, "phalcon/mvc/model.zep", 2344 TSRMLS_CC); + zephir_throw_exception_debug(&_12$$21, "phalcon/mvc/model.zep", 2346 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -89628,38 +88149,38 @@ static PHP_METHOD(Phalcon_Mvc_Model, _doLowInsert) { } ZEPHIR_OBS_NVAR(&value); if (zephir_fetch_property_zval(&value, this_ptr, &attributeField, PH_SILENT_CC)) { - _14$$22 = Z_TYPE_P(&value) == IS_NULL; - if (!(_14$$22)) { - _14$$22 = ZEPHIR_IS_STRING_IDENTICAL(&value, ""); + _14$$23 = Z_TYPE_P(&value) == IS_NULL; + if (!(_14$$23)) { + _14$$23 = ZEPHIR_IS_STRING_IDENTICAL(&value, ""); } - if (_14$$22) { + if (_14$$23) { if (useExplicitIdentity) { - zephir_array_append(&values, &defaultValue, PH_SEPARATE, "phalcon/mvc/model.zep", 2357); - zephir_array_append(&bindTypes, &bindSkip, PH_SEPARATE, "phalcon/mvc/model.zep", 2357); + zephir_array_append(&values, &defaultValue, PH_SEPARATE, "phalcon/mvc/model.zep", 2359); + zephir_array_append(&bindTypes, &bindSkip, PH_SEPARATE, "phalcon/mvc/model.zep", 2359); } } else { if (!(useExplicitIdentity)) { - zephir_array_append(&fields, identityField, PH_SEPARATE, "phalcon/mvc/model.zep", 2365); + zephir_array_append(&fields, identityField, PH_SEPARATE, "phalcon/mvc/model.zep", 2367); } ZEPHIR_OBS_NVAR(&bindType); if (!(zephir_array_isset_fetch(&bindType, &bindDataTypes, identityField, 0 TSRMLS_CC))) { - ZEPHIR_INIT_VAR(&_15$$27); - object_init_ex(&_15$$27, phalcon_mvc_model_exception_ce); - ZEPHIR_INIT_VAR(&_16$$27); - ZEPHIR_CONCAT_SVS(&_16$$27, "Identity column '", identityField, "' isn\\'t part of the table columns"); - ZEPHIR_CALL_METHOD(NULL, &_15$$27, "__construct", &_4, 9, &_16$$27); + ZEPHIR_INIT_VAR(&_15$$28); + object_init_ex(&_15$$28, phalcon_mvc_model_exception_ce); + ZEPHIR_INIT_VAR(&_16$$28); + ZEPHIR_CONCAT_SVS(&_16$$28, "Identity column '", identityField, "' isn\\'t part of the table columns"); + ZEPHIR_CALL_METHOD(NULL, &_15$$28, "__construct", &_4, 4, &_16$$28); zephir_check_call_status(); - zephir_throw_exception_debug(&_15$$27, "phalcon/mvc/model.zep", 2372 TSRMLS_CC); + zephir_throw_exception_debug(&_15$$28, "phalcon/mvc/model.zep", 2374 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } - zephir_array_append(&values, &value, PH_SEPARATE, "phalcon/mvc/model.zep", 2375); - zephir_array_append(&bindTypes, &bindType, PH_SEPARATE, "phalcon/mvc/model.zep", 2375); + zephir_array_append(&values, &value, PH_SEPARATE, "phalcon/mvc/model.zep", 2377); + zephir_array_append(&bindTypes, &bindType, PH_SEPARATE, "phalcon/mvc/model.zep", 2377); } } else { if (useExplicitIdentity) { - zephir_array_append(&values, &defaultValue, PH_SEPARATE, "phalcon/mvc/model.zep", 2379); - zephir_array_append(&bindTypes, &bindSkip, PH_SEPARATE, "phalcon/mvc/model.zep", 2379); + zephir_array_append(&values, &defaultValue, PH_SEPARATE, "phalcon/mvc/model.zep", 2381); + zephir_array_append(&bindTypes, &bindSkip, PH_SEPARATE, "phalcon/mvc/model.zep", 2381); } } } @@ -89672,9 +88193,9 @@ static PHP_METHOD(Phalcon_Mvc_Model, _doLowInsert) { if (_17) { ZEPHIR_INIT_VAR(&sequenceName); ZVAL_NULL(&sequenceName); - ZEPHIR_CALL_METHOD(&_18$$30, connection, "supportsequences", NULL, 0); + ZEPHIR_CALL_METHOD(&_18$$31, connection, "supportsequences", NULL, 0); zephir_check_call_status(); - if (ZEPHIR_IS_TRUE_IDENTICAL(&_18$$30)) { + if (ZEPHIR_IS_TRUE_IDENTICAL(&_18$$31)) { if ((zephir_method_exists_ex(this_ptr, SL("getsequencename") TSRMLS_CC) == SUCCESS)) { ZEPHIR_CALL_METHOD(&sequenceName, this_ptr, "getsequencename", NULL, 0); zephir_check_call_status(); @@ -89695,9 +88216,9 @@ static PHP_METHOD(Phalcon_Mvc_Model, _doLowInsert) { zephir_check_call_status(); zephir_update_property_zval_zval(this_ptr, &attributeField, &lastInsertedId TSRMLS_CC); zephir_array_update_zval(&snapshot, &attributeField, &lastInsertedId, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(&_19$$30, &manager, "iskeepingsnapshots", NULL, 0, this_ptr); + ZEPHIR_CALL_METHOD(&_19$$31, &manager, "iskeepingsnapshots", NULL, 0, this_ptr); zephir_check_call_status(); - if (zephir_is_true(&_19$$30)) { + if (zephir_is_true(&_19$$31)) { zephir_update_property_zval(this_ptr, SL("_snapshot"), &snapshot); } zephir_update_property_zval(this_ptr, SL("_uniqueParams"), &__$null); @@ -89804,7 +88325,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _doLowUpdate) { ZEPHIR_INIT_NVAR(&columnMap); ZVAL_NULL(&columnMap); } - zephir_is_iterable(&nonPrimary, 0, "phalcon/mvc/model.zep", 2596); + zephir_is_iterable(&nonPrimary, 0, "phalcon/mvc/model.zep", 2598); ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&nonPrimary), _2) { ZEPHIR_INIT_NVAR(&field); @@ -89816,9 +88337,9 @@ static PHP_METHOD(Phalcon_Mvc_Model, _doLowUpdate) { object_init_ex(&_3$$9, phalcon_mvc_model_exception_ce); ZEPHIR_INIT_LNVAR(_4$$9); ZEPHIR_CONCAT_SVS(&_4$$9, "Column '", &field, "' have not defined a bind data type"); - ZEPHIR_CALL_METHOD(NULL, &_3$$9, "__construct", &_5, 9, &_4$$9); + ZEPHIR_CALL_METHOD(NULL, &_3$$9, "__construct", &_5, 4, &_4$$9); zephir_check_call_status(); - zephir_throw_exception_debug(&_3$$9, "phalcon/mvc/model.zep", 2488 TSRMLS_CC); + zephir_throw_exception_debug(&_3$$9, "phalcon/mvc/model.zep", 2490 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -89829,9 +88350,9 @@ static PHP_METHOD(Phalcon_Mvc_Model, _doLowUpdate) { object_init_ex(&_6$$11, phalcon_mvc_model_exception_ce); ZEPHIR_INIT_LNVAR(_7$$11); ZEPHIR_CONCAT_SVS(&_7$$11, "Column '", &field, "' isn't part of the column map"); - ZEPHIR_CALL_METHOD(NULL, &_6$$11, "__construct", &_5, 9, &_7$$11); + ZEPHIR_CALL_METHOD(NULL, &_6$$11, "__construct", &_5, 4, &_7$$11); zephir_check_call_status(); - zephir_throw_exception_debug(&_6$$11, "phalcon/mvc/model.zep", 2496 TSRMLS_CC); + zephir_throw_exception_debug(&_6$$11, "phalcon/mvc/model.zep", 2498 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -89841,9 +88362,9 @@ static PHP_METHOD(Phalcon_Mvc_Model, _doLowUpdate) { ZEPHIR_OBS_NVAR(&value); if (zephir_fetch_property_zval(&value, this_ptr, &attributeField, PH_SILENT_CC)) { if (!(useDynamicUpdate)) { - zephir_array_append(&fields, &field, PH_SEPARATE, "phalcon/mvc/model.zep", 2512); - zephir_array_append(&values, &value, PH_SEPARATE, "phalcon/mvc/model.zep", 2512); - zephir_array_append(&bindTypes, &bindType, PH_SEPARATE, "phalcon/mvc/model.zep", 2513); + zephir_array_append(&fields, &field, PH_SEPARATE, "phalcon/mvc/model.zep", 2514); + zephir_array_append(&values, &value, PH_SEPARATE, "phalcon/mvc/model.zep", 2514); + zephir_array_append(&bindTypes, &bindType, PH_SEPARATE, "phalcon/mvc/model.zep", 2515); } else { ZEPHIR_OBS_NVAR(&snapshotValue); if (!(zephir_array_isset_fetch(&snapshotValue, &snapshot, &attributeField, 0 TSRMLS_CC))) { @@ -89861,9 +88382,9 @@ static PHP_METHOD(Phalcon_Mvc_Model, _doLowUpdate) { object_init_ex(&_8$$22, phalcon_mvc_model_exception_ce); ZEPHIR_INIT_LNVAR(_9$$22); ZEPHIR_CONCAT_SVS(&_9$$22, "Column '", &field, "' have not defined a data type"); - ZEPHIR_CALL_METHOD(NULL, &_8$$22, "__construct", &_5, 9, &_9$$22); + ZEPHIR_CALL_METHOD(NULL, &_8$$22, "__construct", &_5, 4, &_9$$22); zephir_check_call_status(); - zephir_throw_exception_debug(&_8$$22, "phalcon/mvc/model.zep", 2538 TSRMLS_CC); + zephir_throw_exception_debug(&_8$$22, "phalcon/mvc/model.zep", 2540 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -89877,9 +88398,9 @@ static PHP_METHOD(Phalcon_Mvc_Model, _doLowUpdate) { break; } if (ZEPHIR_IS_LONG(&dataType, 3) || ZEPHIR_IS_LONG(&dataType, 7)) { - ZEPHIR_CALL_FUNCTION(&_10$$25, "floatval", &_11, 319, &snapshotValue); + ZEPHIR_CALL_FUNCTION(&_10$$25, "floatval", &_11, 288, &snapshotValue); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_12$$25, "floatval", &_11, 319, &value); + ZEPHIR_CALL_FUNCTION(&_12$$25, "floatval", &_11, 288, &value); zephir_check_call_status(); changed = !ZEPHIR_IS_IDENTICAL(&_10$$25, &_12$$25); break; @@ -89897,17 +88418,17 @@ static PHP_METHOD(Phalcon_Mvc_Model, _doLowUpdate) { } } if (changed) { - zephir_array_append(&fields, &field, PH_SEPARATE, "phalcon/mvc/model.zep", 2580); - zephir_array_append(&values, &value, PH_SEPARATE, "phalcon/mvc/model.zep", 2580); - zephir_array_append(&bindTypes, &bindType, PH_SEPARATE, "phalcon/mvc/model.zep", 2581); + zephir_array_append(&fields, &field, PH_SEPARATE, "phalcon/mvc/model.zep", 2582); + zephir_array_append(&values, &value, PH_SEPARATE, "phalcon/mvc/model.zep", 2582); + zephir_array_append(&bindTypes, &bindType, PH_SEPARATE, "phalcon/mvc/model.zep", 2583); } } zephir_array_update_zval(&newSnapshot, &attributeField, &value, PH_COPY | PH_SEPARATE); } else { zephir_array_update_zval(&newSnapshot, &attributeField, &__$null, PH_COPY | PH_SEPARATE); - zephir_array_append(&fields, &field, PH_SEPARATE, "phalcon/mvc/model.zep", 2588); - zephir_array_append(&values, &__$null, PH_SEPARATE, "phalcon/mvc/model.zep", 2588); - zephir_array_append(&bindTypes, &bindSkip, PH_SEPARATE, "phalcon/mvc/model.zep", 2588); + zephir_array_append(&fields, &field, PH_SEPARATE, "phalcon/mvc/model.zep", 2590); + zephir_array_append(&values, &__$null, PH_SEPARATE, "phalcon/mvc/model.zep", 2590); + zephir_array_append(&bindTypes, &bindSkip, PH_SEPARATE, "phalcon/mvc/model.zep", 2590); } } } ZEND_HASH_FOREACH_END(); @@ -89925,12 +88446,12 @@ static PHP_METHOD(Phalcon_Mvc_Model, _doLowUpdate) { ZEPHIR_CALL_METHOD(&primaryKeys, metaData, "getprimarykeyattributes", NULL, 0, this_ptr); zephir_check_call_status(); if (!(zephir_fast_count_int(&primaryKeys TSRMLS_CC))) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "A primary key must be defined in the model in order to perform the operation", "phalcon/mvc/model.zep", 2615); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "A primary key must be defined in the model in order to perform the operation", "phalcon/mvc/model.zep", 2617); return; } ZEPHIR_INIT_NVAR(&uniqueParams); array_init(&uniqueParams); - zephir_is_iterable(&primaryKeys, 0, "phalcon/mvc/model.zep", 2640); + zephir_is_iterable(&primaryKeys, 0, "phalcon/mvc/model.zep", 2642); ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&primaryKeys), _15$$31) { ZEPHIR_INIT_NVAR(&field); @@ -89942,9 +88463,9 @@ static PHP_METHOD(Phalcon_Mvc_Model, _doLowUpdate) { object_init_ex(&_16$$35, phalcon_mvc_model_exception_ce); ZEPHIR_INIT_LNVAR(_17$$35); ZEPHIR_CONCAT_SVS(&_17$$35, "Column '", &field, "' isn't part of the column map"); - ZEPHIR_CALL_METHOD(NULL, &_16$$35, "__construct", &_5, 9, &_17$$35); + ZEPHIR_CALL_METHOD(NULL, &_16$$35, "__construct", &_5, 4, &_17$$35); zephir_check_call_status(); - zephir_throw_exception_debug(&_16$$35, "phalcon/mvc/model.zep", 2626 TSRMLS_CC); + zephir_throw_exception_debug(&_16$$35, "phalcon/mvc/model.zep", 2628 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -89954,10 +88475,10 @@ static PHP_METHOD(Phalcon_Mvc_Model, _doLowUpdate) { ZEPHIR_OBS_NVAR(&value); if (zephir_fetch_property_zval(&value, this_ptr, &attributeField, PH_SILENT_CC)) { zephir_array_update_zval(&newSnapshot, &attributeField, &value, PH_COPY | PH_SEPARATE); - zephir_array_append(&uniqueParams, &value, PH_SEPARATE, "phalcon/mvc/model.zep", 2634); + zephir_array_append(&uniqueParams, &value, PH_SEPARATE, "phalcon/mvc/model.zep", 2636); } else { zephir_array_update_zval(&newSnapshot, &attributeField, &__$null, PH_COPY | PH_SEPARATE); - zephir_array_append(&uniqueParams, &__$null, PH_SEPARATE, "phalcon/mvc/model.zep", 2637); + zephir_array_append(&uniqueParams, &__$null, PH_SEPARATE, "phalcon/mvc/model.zep", 2639); } } ZEND_HASH_FOREACH_END(); ZEPHIR_INIT_NVAR(&field); @@ -90041,7 +88562,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _preSaveRelatedRecords) { ZEPHIR_CALL_METHOD(&_1, this_ptr, "getmodelsmanager", NULL, 0); zephir_check_call_status(); ZEPHIR_CPY_WRT(&manager, &_1); - zephir_is_iterable(related, 0, "phalcon/mvc/model.zep", 2756); + zephir_is_iterable(related, 0, "phalcon/mvc/model.zep", 2758); ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(related), _3, _4, _2) { ZEPHIR_INIT_NVAR(&name); @@ -90067,7 +88588,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _preSaveRelatedRecords) { } ZEPHIR_CALL_METHOD(NULL, connection, "rollback", &_8, 0, &_7$$6); zephir_check_call_status(); - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Only objects can be stored as part of belongs-to relations", "phalcon/mvc/model.zep", 2705); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Only objects can be stored as part of belongs-to relations", "phalcon/mvc/model.zep", 2707); return; } ZEPHIR_CALL_METHOD(&columns, &relation, "getfields", NULL, 0); @@ -90084,7 +88605,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _preSaveRelatedRecords) { } ZEPHIR_CALL_METHOD(NULL, connection, "rollback", &_10, 0, &_9$$7); zephir_check_call_status(); - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Not implemented", "phalcon/mvc/model.zep", 2714); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Not implemented", "phalcon/mvc/model.zep", 2716); return; } ZEPHIR_CALL_METHOD(&_11$$5, &record, "save", NULL, 0); @@ -90092,7 +88613,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _preSaveRelatedRecords) { if (!(zephir_is_true(&_11$$5))) { ZEPHIR_CALL_METHOD(&_12$$8, &record, "getmessages", NULL, 0); zephir_check_call_status(); - zephir_is_iterable(&_12$$8, 0, "phalcon/mvc/model.zep", 2743); + zephir_is_iterable(&_12$$8, 0, "phalcon/mvc/model.zep", 2745); ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&_12$$8), _13$$8) { ZEPHIR_INIT_NVAR(&message); @@ -90187,7 +88708,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _postSaveRelatedRecords) { ZEPHIR_CALL_METHOD(&_0, this_ptr, "getmodelsmanager", NULL, 0); zephir_check_call_status(); ZEPHIR_CPY_WRT(&manager, &_0); - zephir_is_iterable(related, 0, "phalcon/mvc/model.zep", 2947); + zephir_is_iterable(related, 0, "phalcon/mvc/model.zep", 2949); ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(related), _2, _3, _1) { ZEPHIR_INIT_NVAR(&name); @@ -90219,7 +88740,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _postSaveRelatedRecords) { } ZEPHIR_CALL_METHOD(NULL, connection, "rollback", &_9, 0, &_8$$6); zephir_check_call_status(); - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Only objects/arrays can be stored as part of has-many/has-one/has-many-to-many relations", "phalcon/mvc/model.zep", 2795); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Only objects/arrays can be stored as part of has-many/has-one/has-many-to-many relations", "phalcon/mvc/model.zep", 2797); return; } ZEPHIR_CALL_METHOD(&columns, &relation, "getfields", NULL, 0); @@ -90236,7 +88757,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _postSaveRelatedRecords) { } ZEPHIR_CALL_METHOD(NULL, connection, "rollback", &_11, 0, &_10$$7); zephir_check_call_status(); - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Not implemented", "phalcon/mvc/model.zep", 2804); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Not implemented", "phalcon/mvc/model.zep", 2806); return; } if (Z_TYPE_P(&record) == IS_OBJECT) { @@ -90259,9 +88780,9 @@ static PHP_METHOD(Phalcon_Mvc_Model, _postSaveRelatedRecords) { object_init_ex(&_14$$10, phalcon_mvc_model_exception_ce); ZEPHIR_INIT_LNVAR(_15$$10); ZEPHIR_CONCAT_SVS(&_15$$10, "The column '", &columns, "' needs to be present in the model"); - ZEPHIR_CALL_METHOD(NULL, &_14$$10, "__construct", &_16, 9, &_15$$10); + ZEPHIR_CALL_METHOD(NULL, &_14$$10, "__construct", &_16, 4, &_15$$10); zephir_check_call_status(); - zephir_throw_exception_debug(&_14$$10, "phalcon/mvc/model.zep", 2818 TSRMLS_CC); + zephir_throw_exception_debug(&_14$$10, "phalcon/mvc/model.zep", 2820 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -90276,7 +88797,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _postSaveRelatedRecords) { ZEPHIR_CALL_METHOD(&intermediateReferencedFields, &relation, "getintermediatereferencedfields", NULL, 0); zephir_check_call_status(); } - zephir_is_iterable(&relatedRecords, 0, "phalcon/mvc/model.zep", 2933); + zephir_is_iterable(&relatedRecords, 0, "phalcon/mvc/model.zep", 2935); ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&relatedRecords), _18$$4) { ZEPHIR_INIT_NVAR(&recordAfter); @@ -90290,7 +88811,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _postSaveRelatedRecords) { if (!(zephir_is_true(&_19$$12))) { ZEPHIR_CALL_METHOD(&_20$$14, &recordAfter, "getmessages", NULL, 0); zephir_check_call_status(); - zephir_is_iterable(&_20$$14, 0, "phalcon/mvc/model.zep", 2875); + zephir_is_iterable(&_20$$14, 0, "phalcon/mvc/model.zep", 2877); ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&_20$$14), _21$$14) { ZEPHIR_INIT_NVAR(&message); @@ -90327,7 +88848,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _postSaveRelatedRecords) { if (!(zephir_is_true(&_27$$17))) { ZEPHIR_CALL_METHOD(&_28$$18, &intermediateModel, "getmessages", NULL, 0); zephir_check_call_status(); - zephir_is_iterable(&_28$$18, 0, "phalcon/mvc/model.zep", 2927); + zephir_is_iterable(&_28$$18, 0, "phalcon/mvc/model.zep", 2929); ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&_28$$18), _29$$18) { ZEPHIR_INIT_NVAR(&message); @@ -90365,9 +88886,9 @@ static PHP_METHOD(Phalcon_Mvc_Model, _postSaveRelatedRecords) { object_init_ex(&_34$$22, phalcon_mvc_model_exception_ce); ZEPHIR_INIT_LNVAR(_35$$22); ZEPHIR_CONCAT_SVSVS(&_35$$22, "There are no defined relations for the model '", &className, "' using alias '", &name, "'"); - ZEPHIR_CALL_METHOD(NULL, &_34$$22, "__construct", &_16, 9, &_35$$22); + ZEPHIR_CALL_METHOD(NULL, &_34$$22, "__construct", &_16, 4, &_35$$22); zephir_check_call_status(); - zephir_throw_exception_debug(&_34$$22, "phalcon/mvc/model.zep", 2939 TSRMLS_CC); + zephir_throw_exception_debug(&_34$$22, "phalcon/mvc/model.zep", 2941 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -90503,9 +89024,9 @@ static PHP_METHOD(Phalcon_Mvc_Model, save) { object_init_ex(&_9$$12, phalcon_mvc_model_validationfailed_ce); ZEPHIR_CALL_METHOD(&_10$$12, this_ptr, "getmessages", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, &_9$$12, "__construct", NULL, 320, this_ptr, &_10$$12); + ZEPHIR_CALL_METHOD(NULL, &_9$$12, "__construct", NULL, 289, this_ptr, &_10$$12); zephir_check_call_status(); - zephir_throw_exception_debug(&_9$$12, "phalcon/mvc/model.zep", 3061 TSRMLS_CC); + zephir_throw_exception_debug(&_9$$12, "phalcon/mvc/model.zep", 3063 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -90599,7 +89120,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, create) { ZVAL_NULL(&_5$$3); ZEPHIR_INIT_VAR(&_6$$3); ZVAL_STRING(&_6$$3, "InvalidCreateAttempt"); - ZEPHIR_CALL_METHOD(NULL, &_3$$3, "__construct", NULL, 8, &_4$$3, &_5$$3, &_6$$3); + ZEPHIR_CALL_METHOD(NULL, &_3$$3, "__construct", NULL, 3, &_4$$3, &_5$$3, &_6$$3); zephir_check_call_status(); zephir_array_fast_append(&_2$$3, &_3$$3); zephir_update_property_zval(this_ptr, SL("_errorMessages"), &_2$$3); @@ -90662,7 +89183,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, update) { ZVAL_NULL(&_6$$4); ZEPHIR_INIT_VAR(&_7$$4); ZVAL_STRING(&_7$$4, "InvalidUpdateAttempt"); - ZEPHIR_CALL_METHOD(NULL, &_4$$4, "__construct", NULL, 8, &_5$$4, &_6$$4, &_7$$4); + ZEPHIR_CALL_METHOD(NULL, &_4$$4, "__construct", NULL, 3, &_5$$4, &_6$$4, &_7$$4); zephir_check_call_status(); zephir_array_fast_append(&_3$$4, &_4$$4); zephir_update_property_zval(this_ptr, SL("_errorMessages"), &_3$$4); @@ -90731,7 +89252,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, delete) { array_init(&_1); zephir_update_property_zval(this_ptr, SL("_errorMessages"), &_1); if (ZEPHIR_GLOBAL(orm).virtual_foreign_keys) { - ZEPHIR_CALL_METHOD(&_2$$3, this_ptr, "_checkforeignkeysreverserestrict", NULL, 321); + ZEPHIR_CALL_METHOD(&_2$$3, this_ptr, "_checkforeignkeysreverserestrict", NULL, 290); zephir_check_call_status(); if (ZEPHIR_IS_FALSE_IDENTICAL(&_2$$3)) { RETURN_MM_BOOL(0); @@ -90755,10 +89276,10 @@ static PHP_METHOD(Phalcon_Mvc_Model, delete) { ZVAL_NULL(&columnMap); } if (!(zephir_fast_count_int(&primaryKeys TSRMLS_CC))) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "A primary key must be defined in the model in order to perform the operation", "phalcon/mvc/model.zep", 3262); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "A primary key must be defined in the model in order to perform the operation", "phalcon/mvc/model.zep", 3264); return; } - zephir_is_iterable(&primaryKeys, 0, "phalcon/mvc/model.zep", 3305); + zephir_is_iterable(&primaryKeys, 0, "phalcon/mvc/model.zep", 3307); ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&primaryKeys), _3) { ZEPHIR_INIT_NVAR(&primaryKey); @@ -90769,9 +89290,9 @@ static PHP_METHOD(Phalcon_Mvc_Model, delete) { object_init_ex(&_4$$9, phalcon_mvc_model_exception_ce); ZEPHIR_INIT_LNVAR(_5$$9); ZEPHIR_CONCAT_SVS(&_5$$9, "Column '", &primaryKey, "' have not defined a bind data type"); - ZEPHIR_CALL_METHOD(NULL, &_4$$9, "__construct", &_6, 9, &_5$$9); + ZEPHIR_CALL_METHOD(NULL, &_4$$9, "__construct", &_6, 4, &_5$$9); zephir_check_call_status(); - zephir_throw_exception_debug(&_4$$9, "phalcon/mvc/model.zep", 3274 TSRMLS_CC); + zephir_throw_exception_debug(&_4$$9, "phalcon/mvc/model.zep", 3276 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -90782,9 +89303,9 @@ static PHP_METHOD(Phalcon_Mvc_Model, delete) { object_init_ex(&_7$$11, phalcon_mvc_model_exception_ce); ZEPHIR_INIT_LNVAR(_8$$11); ZEPHIR_CONCAT_SVS(&_8$$11, "Column '", &primaryKey, "' isn't part of the column map"); - ZEPHIR_CALL_METHOD(NULL, &_7$$11, "__construct", &_6, 9, &_8$$11); + ZEPHIR_CALL_METHOD(NULL, &_7$$11, "__construct", &_6, 4, &_8$$11); zephir_check_call_status(); - zephir_throw_exception_debug(&_7$$11, "phalcon/mvc/model.zep", 3282 TSRMLS_CC); + zephir_throw_exception_debug(&_7$$11, "phalcon/mvc/model.zep", 3284 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -90797,19 +89318,19 @@ static PHP_METHOD(Phalcon_Mvc_Model, delete) { object_init_ex(&_9$$13, phalcon_mvc_model_exception_ce); ZEPHIR_INIT_LNVAR(_10$$13); ZEPHIR_CONCAT_SVS(&_10$$13, "Cannot delete the record because the primary key attribute: '", &attributeField, "' wasn't set"); - ZEPHIR_CALL_METHOD(NULL, &_9$$13, "__construct", &_6, 9, &_10$$13); + ZEPHIR_CALL_METHOD(NULL, &_9$$13, "__construct", &_6, 4, &_10$$13); zephir_check_call_status(); - zephir_throw_exception_debug(&_9$$13, "phalcon/mvc/model.zep", 3294 TSRMLS_CC); + zephir_throw_exception_debug(&_9$$13, "phalcon/mvc/model.zep", 3296 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } - zephir_array_append(&values, &value, PH_SEPARATE, "phalcon/mvc/model.zep", 3300); + zephir_array_append(&values, &value, PH_SEPARATE, "phalcon/mvc/model.zep", 3302); ZEPHIR_CALL_METHOD(&_11$$8, &writeConnection, "escapeidentifier", &_12, 0, &primaryKey); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_13$$8); ZEPHIR_CONCAT_VS(&_13$$8, &_11$$8, " = ?"); - zephir_array_append(&conditions, &_13$$8, PH_SEPARATE, "phalcon/mvc/model.zep", 3301); - zephir_array_append(&bindTypes, &bindType, PH_SEPARATE, "phalcon/mvc/model.zep", 3302); + zephir_array_append(&conditions, &_13$$8, PH_SEPARATE, "phalcon/mvc/model.zep", 3303); + zephir_array_append(&bindTypes, &bindType, PH_SEPARATE, "phalcon/mvc/model.zep", 3304); } ZEND_HASH_FOREACH_END(); ZEPHIR_INIT_NVAR(&primaryKey); if (ZEPHIR_GLOBAL(orm).events) { @@ -90848,7 +89369,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, delete) { ZEPHIR_CALL_METHOD(&success, &writeConnection, "delete", NULL, 0, &table, &_17, &values, &bindTypes); zephir_check_call_status(); if (ZEPHIR_GLOBAL(orm).virtual_foreign_keys) { - ZEPHIR_CALL_METHOD(&_18$$20, this_ptr, "_checkforeignkeysreversecascade", NULL, 322); + ZEPHIR_CALL_METHOD(&_18$$20, this_ptr, "_checkforeignkeysreversecascade", NULL, 291); zephir_check_call_status(); if (ZEPHIR_IS_FALSE_IDENTICAL(&_18$$20)) { RETURN_MM_BOOL(0); @@ -90913,7 +89434,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, refresh) { zephir_read_property(&_0, this_ptr, SL("_dirtyState"), PH_NOISY_CC | PH_READONLY); if (!ZEPHIR_IS_LONG(&_0, 0)) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The record cannot be refreshed because it does not exist or is deleted", "phalcon/mvc/model.zep", 3380); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The record cannot be refreshed because it does not exist or is deleted", "phalcon/mvc/model.zep", 3382); return; } ZEPHIR_CALL_METHOD(&metaData, this_ptr, "getmodelsmetadata", NULL, 0); @@ -90940,7 +89461,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, refresh) { ZEPHIR_CALL_METHOD(&_2$$6, this_ptr, "_exists", NULL, 0, &metaData, &readConnection, &table); zephir_check_call_status(); if (!(zephir_is_true(&_2$$6))) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The record cannot be refreshed because it does not exist or is deleted", "phalcon/mvc/model.zep", 3403); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The record cannot be refreshed because it does not exist or is deleted", "phalcon/mvc/model.zep", 3405); return; } ZEPHIR_OBS_NVAR(&uniqueKey); @@ -90949,14 +89470,14 @@ static PHP_METHOD(Phalcon_Mvc_Model, refresh) { ZEPHIR_OBS_VAR(&uniqueParams); zephir_read_property(&uniqueParams, this_ptr, SL("_uniqueParams"), PH_NOISY_CC); if (Z_TYPE_P(&uniqueParams) != IS_ARRAY) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The record cannot be refreshed because it does not exist or is deleted", "phalcon/mvc/model.zep", 3411); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The record cannot be refreshed because it does not exist or is deleted", "phalcon/mvc/model.zep", 3413); return; } ZEPHIR_INIT_VAR(&fields); array_init(&fields); ZEPHIR_CALL_METHOD(&_3, &metaData, "getattributes", NULL, 0, this_ptr); zephir_check_call_status(); - zephir_is_iterable(&_3, 0, "phalcon/mvc/model.zep", 3425); + zephir_is_iterable(&_3, 0, "phalcon/mvc/model.zep", 3427); ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&_3), _4) { ZEPHIR_INIT_NVAR(&attribute); @@ -90964,7 +89485,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, refresh) { ZEPHIR_INIT_NVAR(&_5$$9); zephir_create_array(&_5$$9, 1, 0 TSRMLS_CC); zephir_array_fast_append(&_5$$9, &attribute); - zephir_array_append(&fields, &_5$$9, PH_SEPARATE, "phalcon/mvc/model.zep", 3419); + zephir_array_append(&fields, &_5$$9, PH_SEPARATE, "phalcon/mvc/model.zep", 3421); } ZEND_HASH_FOREACH_END(); ZEPHIR_INIT_NVAR(&attribute); ZEPHIR_CALL_METHOD(&dialect, &readConnection, "getdialect", NULL, 0); @@ -91032,11 +89553,11 @@ static PHP_METHOD(Phalcon_Mvc_Model, readAttribute) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &attribute_param); - if (unlikely(Z_TYPE_P(attribute_param) != IS_STRING && Z_TYPE_P(attribute_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(attribute_param) != IS_STRING && Z_TYPE_P(attribute_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'attribute' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(attribute_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(attribute_param) == IS_STRING)) { zephir_get_strval(&attribute, attribute_param); } else { ZEPHIR_INIT_VAR(&attribute); @@ -91065,11 +89586,11 @@ static PHP_METHOD(Phalcon_Mvc_Model, writeAttribute) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &attribute_param, &value); - if (unlikely(Z_TYPE_P(attribute_param) != IS_STRING && Z_TYPE_P(attribute_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(attribute_param) != IS_STRING && Z_TYPE_P(attribute_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'attribute' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(attribute_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(attribute_param) == IS_STRING)) { zephir_get_strval(&attribute, attribute_param); } else { ZEPHIR_INIT_VAR(&attribute); @@ -91126,7 +89647,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, skipAttributesOnCreate) { ZEPHIR_INIT_VAR(&keysAttributes); array_init(&keysAttributes); - zephir_is_iterable(&attributes, 0, "phalcon/mvc/model.zep", 3539); + zephir_is_iterable(&attributes, 0, "phalcon/mvc/model.zep", 3541); ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&attributes), _0) { ZEPHIR_INIT_NVAR(&attribute); @@ -91163,7 +89684,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, skipAttributesOnUpdate) { ZEPHIR_INIT_VAR(&keysAttributes); array_init(&keysAttributes); - zephir_is_iterable(&attributes, 0, "phalcon/mvc/model.zep", 3571); + zephir_is_iterable(&attributes, 0, "phalcon/mvc/model.zep", 3573); ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&attributes), _0) { ZEPHIR_INIT_NVAR(&attribute); @@ -91200,7 +89721,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, allowEmptyStringValues) { ZEPHIR_INIT_VAR(&keysAttributes); array_init(&keysAttributes); - zephir_is_iterable(&attributes, 0, "phalcon/mvc/model.zep", 3603); + zephir_is_iterable(&attributes, 0, "phalcon/mvc/model.zep", 3605); ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&attributes), _0) { ZEPHIR_INIT_NVAR(&attribute); @@ -91233,11 +89754,11 @@ static PHP_METHOD(Phalcon_Mvc_Model, hasOne) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 1, &fields, &referenceModel_param, &referencedFields, &options); - if (unlikely(Z_TYPE_P(referenceModel_param) != IS_STRING && Z_TYPE_P(referenceModel_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(referenceModel_param) != IS_STRING && Z_TYPE_P(referenceModel_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'referenceModel' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(referenceModel_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(referenceModel_param) == IS_STRING)) { zephir_get_strval(&referenceModel, referenceModel_param); } else { ZEPHIR_INIT_VAR(&referenceModel); @@ -91273,11 +89794,11 @@ static PHP_METHOD(Phalcon_Mvc_Model, belongsTo) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 1, &fields, &referenceModel_param, &referencedFields, &options); - if (unlikely(Z_TYPE_P(referenceModel_param) != IS_STRING && Z_TYPE_P(referenceModel_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(referenceModel_param) != IS_STRING && Z_TYPE_P(referenceModel_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'referenceModel' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(referenceModel_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(referenceModel_param) == IS_STRING)) { zephir_get_strval(&referenceModel, referenceModel_param); } else { ZEPHIR_INIT_VAR(&referenceModel); @@ -91313,11 +89834,11 @@ static PHP_METHOD(Phalcon_Mvc_Model, hasMany) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 1, &fields, &referenceModel_param, &referencedFields, &options); - if (unlikely(Z_TYPE_P(referenceModel_param) != IS_STRING && Z_TYPE_P(referenceModel_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(referenceModel_param) != IS_STRING && Z_TYPE_P(referenceModel_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'referenceModel' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(referenceModel_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(referenceModel_param) == IS_STRING)) { zephir_get_strval(&referenceModel, referenceModel_param); } else { ZEPHIR_INIT_VAR(&referenceModel); @@ -91356,21 +89877,21 @@ static PHP_METHOD(Phalcon_Mvc_Model, hasManyToMany) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 6, 1, &fields, &intermediateModel_param, &intermediateFields, &intermediateReferencedFields, &referenceModel_param, &referencedFields, &options); - if (unlikely(Z_TYPE_P(intermediateModel_param) != IS_STRING && Z_TYPE_P(intermediateModel_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(intermediateModel_param) != IS_STRING && Z_TYPE_P(intermediateModel_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'intermediateModel' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(intermediateModel_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(intermediateModel_param) == IS_STRING)) { zephir_get_strval(&intermediateModel, intermediateModel_param); } else { ZEPHIR_INIT_VAR(&intermediateModel); ZVAL_EMPTY_STRING(&intermediateModel); } - if (unlikely(Z_TYPE_P(referenceModel_param) != IS_STRING && Z_TYPE_P(referenceModel_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(referenceModel_param) != IS_STRING && Z_TYPE_P(referenceModel_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'referenceModel' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(referenceModel_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(referenceModel_param) == IS_STRING)) { zephir_get_strval(&referenceModel, referenceModel_param); } else { ZEPHIR_INIT_VAR(&referenceModel); @@ -91473,7 +89994,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, setSnapshotData) { if (Z_TYPE_P(columnMap) == IS_ARRAY) { ZEPHIR_INIT_VAR(&snapshot); array_init(&snapshot); - zephir_is_iterable(&data, 0, "phalcon/mvc/model.zep", 3828); + zephir_is_iterable(&data, 0, "phalcon/mvc/model.zep", 3830); ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&data), _1$$3, _2$$3, _0$$3) { ZEPHIR_INIT_NVAR(&key); @@ -91494,9 +90015,9 @@ static PHP_METHOD(Phalcon_Mvc_Model, setSnapshotData) { object_init_ex(&_3$$7, phalcon_mvc_model_exception_ce); ZEPHIR_INIT_LNVAR(_4$$7); ZEPHIR_CONCAT_SVS(&_4$$7, "Column '", &key, "' doesn't make part of the column map"); - ZEPHIR_CALL_METHOD(NULL, &_3$$7, "__construct", &_5, 9, &_4$$7); + ZEPHIR_CALL_METHOD(NULL, &_3$$7, "__construct", &_5, 4, &_4$$7); zephir_check_call_status(); - zephir_throw_exception_debug(&_3$$7, "phalcon/mvc/model.zep", 3810 TSRMLS_CC); + zephir_throw_exception_debug(&_3$$7, "phalcon/mvc/model.zep", 3812 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } else { @@ -91511,9 +90032,9 @@ static PHP_METHOD(Phalcon_Mvc_Model, setSnapshotData) { object_init_ex(&_6$$11, phalcon_mvc_model_exception_ce); ZEPHIR_INIT_LNVAR(_7$$11); ZEPHIR_CONCAT_SVS(&_7$$11, "Column '", &key, "' doesn't make part of the column map"); - ZEPHIR_CALL_METHOD(NULL, &_6$$11, "__construct", &_5, 9, &_7$$11); + ZEPHIR_CALL_METHOD(NULL, &_6$$11, "__construct", &_5, 4, &_7$$11); zephir_check_call_status(); - zephir_throw_exception_debug(&_6$$11, "phalcon/mvc/model.zep", 3819 TSRMLS_CC); + zephir_throw_exception_debug(&_6$$11, "phalcon/mvc/model.zep", 3821 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } else { @@ -91607,12 +90128,12 @@ static PHP_METHOD(Phalcon_Mvc_Model, getChangedFields) { ZEPHIR_OBS_VAR(&snapshot); zephir_read_property(&snapshot, this_ptr, SL("_snapshot"), PH_NOISY_CC); if (Z_TYPE_P(&snapshot) != IS_ARRAY) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The record doesn't have a valid data snapshot", "phalcon/mvc/model.zep", 3896); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The record doesn't have a valid data snapshot", "phalcon/mvc/model.zep", 3898); return; } zephir_read_property(&_0, this_ptr, SL("_dirtyState"), PH_NOISY_CC | PH_READONLY); if (!ZEPHIR_IS_LONG(&_0, 0)) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Change checking cannot be performed because the object has not been persisted or is deleted", "phalcon/mvc/model.zep", 3903); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Change checking cannot be performed because the object has not been persisted or is deleted", "phalcon/mvc/model.zep", 3905); return; } ZEPHIR_CALL_METHOD(&metaData, this_ptr, "getmodelsmetadata", NULL, 0); @@ -91628,7 +90149,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, getChangedFields) { ZEPHIR_INIT_VAR(&changed); array_init(&changed); ZEPHIR_INIT_VAR(&_1); - zephir_is_iterable(&allAttributes, 0, "phalcon/mvc/model.zep", 3956); + zephir_is_iterable(&allAttributes, 0, "phalcon/mvc/model.zep", 3958); ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&allAttributes), _3, _4, _2) { ZEPHIR_INIT_NVAR(&name); @@ -91640,17 +90161,17 @@ static PHP_METHOD(Phalcon_Mvc_Model, getChangedFields) { ZEPHIR_INIT_NVAR(&_1); ZVAL_COPY(&_1, _2); if (!(zephir_array_isset(&snapshot, &name))) { - zephir_array_append(&changed, &name, PH_SEPARATE, "phalcon/mvc/model.zep", 3935); + zephir_array_append(&changed, &name, PH_SEPARATE, "phalcon/mvc/model.zep", 3937); continue; } ZEPHIR_OBS_NVAR(&value); if (!(zephir_fetch_property_zval(&value, this_ptr, &name, PH_SILENT_CC))) { - zephir_array_append(&changed, &name, PH_SEPARATE, "phalcon/mvc/model.zep", 3943); + zephir_array_append(&changed, &name, PH_SEPARATE, "phalcon/mvc/model.zep", 3945); continue; } - zephir_array_fetch(&_5$$7, &snapshot, &name, PH_NOISY | PH_READONLY, "phalcon/mvc/model.zep", 3950 TSRMLS_CC); + zephir_array_fetch(&_5$$7, &snapshot, &name, PH_NOISY | PH_READONLY, "phalcon/mvc/model.zep", 3952 TSRMLS_CC); if (!ZEPHIR_IS_IDENTICAL(&value, &_5$$7)) { - zephir_array_append(&changed, &name, PH_SEPARATE, "phalcon/mvc/model.zep", 3951); + zephir_array_append(&changed, &name, PH_SEPARATE, "phalcon/mvc/model.zep", 3953); continue; } } ZEND_HASH_FOREACH_END(); @@ -91728,9 +90249,9 @@ static PHP_METHOD(Phalcon_Mvc_Model, getRelated) { object_init_ex(&_2$$3, phalcon_mvc_model_exception_ce); ZEPHIR_INIT_VAR(&_3$$3); ZEPHIR_CONCAT_SVSVS(&_3$$3, "There is no defined relations for the model '", &className, "' using alias '", &alias, "'"); - ZEPHIR_CALL_METHOD(NULL, &_2$$3, "__construct", NULL, 9, &_3$$3); + ZEPHIR_CALL_METHOD(NULL, &_2$$3, "__construct", NULL, 4, &_3$$3); zephir_check_call_status(); - zephir_throw_exception_debug(&_2$$3, "phalcon/mvc/model.zep", 3999 TSRMLS_CC); + zephir_throw_exception_debug(&_2$$3, "phalcon/mvc/model.zep", 4001 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -91766,21 +90287,21 @@ static PHP_METHOD(Phalcon_Mvc_Model, _getRelatedRecords) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &modelName_param, &method_param, &arguments); - if (unlikely(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'modelName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(modelName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(modelName_param) == IS_STRING)) { zephir_get_strval(&modelName, modelName_param); } else { ZEPHIR_INIT_VAR(&modelName); ZVAL_EMPTY_STRING(&modelName); } - if (unlikely(Z_TYPE_P(method_param) != IS_STRING && Z_TYPE_P(method_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(method_param) != IS_STRING && Z_TYPE_P(method_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'method' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(method_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(method_param) == IS_STRING)) { zephir_get_strval(&method, method_param); } else { ZEPHIR_INIT_VAR(&method); @@ -91890,9 +90411,9 @@ static PHP_METHOD(Phalcon_Mvc_Model, _invokeFinder) { object_init_ex(&_3$$7, phalcon_mvc_model_exception_ce); ZEPHIR_INIT_VAR(&_4$$7); ZEPHIR_CONCAT_SVS(&_4$$7, "The static method '", method, "' requires one argument"); - ZEPHIR_CALL_METHOD(NULL, &_3$$7, "__construct", NULL, 9, &_4$$7); + ZEPHIR_CALL_METHOD(NULL, &_3$$7, "__construct", NULL, 4, &_4$$7); zephir_check_call_status(); - zephir_throw_exception_debug(&_3$$7, "phalcon/mvc/model.zep", 4105 TSRMLS_CC); + zephir_throw_exception_debug(&_3$$7, "phalcon/mvc/model.zep", 4107 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -91915,7 +90436,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _invokeFinder) { if (zephir_array_isset(&attributes, &extraMethod)) { ZEPHIR_CPY_WRT(&field, &extraMethod); } else { - ZEPHIR_CALL_FUNCTION(&extraMethodFirst, "lcfirst", NULL, 68, &extraMethod); + ZEPHIR_CALL_FUNCTION(&extraMethodFirst, "lcfirst", NULL, 62, &extraMethod); zephir_check_call_status(); if (zephir_array_isset(&attributes, &extraMethodFirst)) { ZEPHIR_CPY_WRT(&field, &extraMethodFirst); @@ -91927,9 +90448,9 @@ static PHP_METHOD(Phalcon_Mvc_Model, _invokeFinder) { object_init_ex(&_7$$13, phalcon_mvc_model_exception_ce); ZEPHIR_INIT_VAR(&_8$$13); ZEPHIR_CONCAT_SVS(&_8$$13, "Cannot resolve attribute '", &extraMethod, "' in the model"); - ZEPHIR_CALL_METHOD(NULL, &_7$$13, "__construct", NULL, 9, &_8$$13); + ZEPHIR_CALL_METHOD(NULL, &_7$$13, "__construct", NULL, 4, &_8$$13); zephir_check_call_status(); - zephir_throw_exception_debug(&_7$$13, "phalcon/mvc/model.zep", 4139 TSRMLS_CC); + zephir_throw_exception_debug(&_7$$13, "phalcon/mvc/model.zep", 4141 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -91974,7 +90495,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, __call) { zephir_get_strval(&method, method_param); - ZEPHIR_CALL_SELF(&records, "_invokefinder", &_0, 323, &method, arguments); + ZEPHIR_CALL_SELF(&records, "_invokefinder", &_0, 292, &method, arguments); zephir_check_call_status(); if (Z_TYPE_P(&records) != IS_NULL) { RETURN_CCTOR(records); @@ -91996,9 +90517,9 @@ static PHP_METHOD(Phalcon_Mvc_Model, __call) { object_init_ex(&_2, phalcon_mvc_model_exception_ce); ZEPHIR_INIT_VAR(&_3); ZEPHIR_CONCAT_SVSVS(&_3, "The method '", &method, "' doesn't exist on model '", &modelName, "'"); - ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", NULL, 9, &_3); + ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", NULL, 4, &_3); zephir_check_call_status(); - zephir_throw_exception_debug(&_2, "phalcon/mvc/model.zep", 4190 TSRMLS_CC); + zephir_throw_exception_debug(&_2, "phalcon/mvc/model.zep", 4192 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; @@ -92024,16 +90545,16 @@ static PHP_METHOD(Phalcon_Mvc_Model, __callStatic) { zephir_get_strval(&method, method_param); - ZEPHIR_CALL_SELF(&records, "_invokefinder", &_0, 323, &method, arguments); + ZEPHIR_CALL_SELF(&records, "_invokefinder", &_0, 292, &method, arguments); zephir_check_call_status(); if (Z_TYPE_P(&records) == IS_NULL) { ZEPHIR_INIT_VAR(&_1$$3); object_init_ex(&_1$$3, phalcon_mvc_model_exception_ce); ZEPHIR_INIT_VAR(&_2$$3); ZEPHIR_CONCAT_SVS(&_2$$3, "The static method '", &method, "' doesn't exist"); - ZEPHIR_CALL_METHOD(NULL, &_1$$3, "__construct", NULL, 9, &_2$$3); + ZEPHIR_CALL_METHOD(NULL, &_1$$3, "__construct", NULL, 4, &_2$$3); zephir_check_call_status(); - zephir_throw_exception_debug(&_1$$3, "phalcon/mvc/model.zep", 4206 TSRMLS_CC); + zephir_throw_exception_debug(&_1$$3, "phalcon/mvc/model.zep", 4208 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -92107,7 +90628,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, __set) { zephir_check_call_status(); ZEPHIR_INIT_VAR(&related); array_init(&related); - zephir_is_iterable(value, 0, "phalcon/mvc/model.zep", 4266); + zephir_is_iterable(value, 0, "phalcon/mvc/model.zep", 4268); ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(value), _3$$6, _4$$6, _2$$6) { ZEPHIR_INIT_NVAR(&key); @@ -92120,7 +90641,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, __set) { ZVAL_COPY(&item, _2$$6); if (Z_TYPE_P(&item) == IS_OBJECT) { if (zephir_instance_of_ev(&item, phalcon_mvc_modelinterface_ce TSRMLS_CC)) { - zephir_array_append(&related, &item, PH_SEPARATE, "phalcon/mvc/model.zep", 4253); + zephir_array_append(&related, &item, PH_SEPARATE, "phalcon/mvc/model.zep", 4255); } } else { ZEPHIR_INIT_NVAR(&lowerKey); @@ -92150,13 +90671,13 @@ static PHP_METHOD(Phalcon_Mvc_Model, __set) { RETVAL_ZVAL(value, 1, 0); RETURN_MM(); } - ZEPHIR_CALL_METHOD(&_10, this_ptr, "_possiblesetter", NULL, 315, &property, value); + ZEPHIR_CALL_METHOD(&_10, this_ptr, "_possiblesetter", NULL, 284, &property, value); zephir_check_call_status(); if (zephir_is_true(&_10)) { RETVAL_ZVAL(value, 1, 0); RETURN_MM(); } - ZEPHIR_CALL_FUNCTION(&_11, "property_exists", NULL, 324, this_ptr, &property); + ZEPHIR_CALL_FUNCTION(&_11, "property_exists", NULL, 293, this_ptr, &property); zephir_check_call_status(); if (zephir_is_true(&_11)) { ZEPHIR_CALL_METHOD(&manager, this_ptr, "getmodelsmanager", &_1, 0); @@ -92168,9 +90689,9 @@ static PHP_METHOD(Phalcon_Mvc_Model, __set) { object_init_ex(&_13$$15, phalcon_mvc_model_exception_ce); ZEPHIR_INIT_VAR(&_14$$15); ZEPHIR_CONCAT_SVS(&_14$$15, "Property '", &property, "' does not have a setter."); - ZEPHIR_CALL_METHOD(NULL, &_13$$15, "__construct", NULL, 9, &_14$$15); + ZEPHIR_CALL_METHOD(NULL, &_13$$15, "__construct", NULL, 4, &_14$$15); zephir_check_call_status(); - zephir_throw_exception_debug(&_13$$15, "phalcon/mvc/model.zep", 4283 TSRMLS_CC); + zephir_throw_exception_debug(&_13$$15, "phalcon/mvc/model.zep", 4285 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -92238,11 +90759,11 @@ static PHP_METHOD(Phalcon_Mvc_Model, __get) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &property_param); - if (unlikely(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'property' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(property_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(property_param) == IS_STRING)) { zephir_get_strval(&property, property_param); } else { ZEPHIR_INIT_VAR(&property); @@ -92294,7 +90815,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, __get) { } ZEPHIR_INIT_VAR(&_7); ZEPHIR_CONCAT_SVSV(&_7, "Access to undefined property ", &modelName, "::", &property); - ZEPHIR_CALL_FUNCTION(NULL, "trigger_error", NULL, 2, &_7); + ZEPHIR_CALL_FUNCTION(NULL, "trigger_error", NULL, 1, &_7); zephir_check_call_status(); RETURN_MM_NULL(); @@ -92316,11 +90837,11 @@ static PHP_METHOD(Phalcon_Mvc_Model, __isset) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &property_param); - if (unlikely(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'property' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(property_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(property_param) == IS_STRING)) { zephir_get_strval(&property, property_param); } else { ZEPHIR_INIT_VAR(&property); @@ -92376,12 +90897,12 @@ static PHP_METHOD(Phalcon_Mvc_Model, serialize) { zephir_create_array(&_2$$4, 2, 0 TSRMLS_CC); zephir_array_update_string(&_2$$4, SL("_attributes"), &attributes, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_2$$4, SL("_snapshot"), &snapshot, PH_COPY | PH_SEPARATE); - ZEPHIR_RETURN_CALL_FUNCTION("serialize", &_3, 65, &_2$$4); + ZEPHIR_RETURN_CALL_FUNCTION("serialize", &_3, 59, &_2$$4); zephir_check_call_status(); RETURN_MM(); } } - ZEPHIR_RETURN_CALL_FUNCTION("serialize", &_3, 65, &attributes); + ZEPHIR_RETURN_CALL_FUNCTION("serialize", &_3, 59, &attributes); zephir_check_call_status(); RETURN_MM(); @@ -92411,11 +90932,11 @@ static PHP_METHOD(Phalcon_Mvc_Model, unserialize) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &data_param); - if (unlikely(Z_TYPE_P(data_param) != IS_STRING && Z_TYPE_P(data_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(data_param) != IS_STRING && Z_TYPE_P(data_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'data' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(data_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(data_param) == IS_STRING)) { zephir_get_strval(&data, data_param); } else { ZEPHIR_INIT_VAR(&data); @@ -92423,13 +90944,13 @@ static PHP_METHOD(Phalcon_Mvc_Model, unserialize) { } - ZEPHIR_CALL_FUNCTION(&attributes, "unserialize", NULL, 66, &data); + ZEPHIR_CALL_FUNCTION(&attributes, "unserialize", NULL, 60, &data); zephir_check_call_status(); if (Z_TYPE_P(&attributes) == IS_ARRAY) { - ZEPHIR_CALL_CE_STATIC(&dependencyInjector, phalcon_di_ce, "getdefault", &_0, 1); + ZEPHIR_CALL_CE_STATIC(&dependencyInjector, phalcon_di_ce, "getdefault", &_0, 0); zephir_check_call_status(); if (Z_TYPE_P(&dependencyInjector) != IS_OBJECT) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "A dependency injector container is required to obtain the services related to the ORM", "phalcon/mvc/model.zep", 4437); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "A dependency injector container is required to obtain the services related to the ORM", "phalcon/mvc/model.zep", 4439); return; } zephir_update_property_zval(this_ptr, SL("_dependencyInjector"), &dependencyInjector); @@ -92439,7 +90960,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, unserialize) { zephir_check_call_status(); ZEPHIR_CPY_WRT(&manager, &_1$$3); if (Z_TYPE_P(&manager) != IS_OBJECT) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The injected service 'modelsManager' is not valid", "phalcon/mvc/model.zep", 4450); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The injected service 'modelsManager' is not valid", "phalcon/mvc/model.zep", 4452); return; } zephir_update_property_zval(this_ptr, SL("_modelsManager"), &manager); @@ -92450,13 +90971,13 @@ static PHP_METHOD(Phalcon_Mvc_Model, unserialize) { if (zephir_is_true(&_1$$3)) { if (zephir_array_isset_string_fetch(&snapshot, &attributes, SL("_snapshot"), 1)) { zephir_update_property_zval(this_ptr, SL("_snapshot"), &snapshot); - zephir_array_fetch_string(&_3$$7, &attributes, SL("_attributes"), PH_NOISY | PH_READONLY, "phalcon/mvc/model.zep", 4465 TSRMLS_CC); + zephir_array_fetch_string(&_3$$7, &attributes, SL("_attributes"), PH_NOISY | PH_READONLY, "phalcon/mvc/model.zep", 4467 TSRMLS_CC); ZEPHIR_CPY_WRT(&attributes, &_3$$7); } else { zephir_update_property_zval(this_ptr, SL("_snapshot"), &attributes); } } - zephir_is_iterable(&attributes, 0, "phalcon/mvc/model.zep", 4478); + zephir_is_iterable(&attributes, 0, "phalcon/mvc/model.zep", 4480); ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&attributes), _5$$3, _6$$3, _4$$3) { ZEPHIR_INIT_NVAR(&key); @@ -92484,7 +91005,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, dump) { ZEPHIR_MM_GROW(); - ZEPHIR_RETURN_CALL_FUNCTION("get_object_vars", NULL, 21, this_ptr); + ZEPHIR_RETURN_CALL_FUNCTION("get_object_vars", NULL, 16, this_ptr); zephir_check_call_status(); RETURN_MM(); @@ -92526,7 +91047,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, toArray) { zephir_check_call_status(); ZEPHIR_CALL_METHOD(&_0, &metaData, "getattributes", NULL, 0, this_ptr); zephir_check_call_status(); - zephir_is_iterable(&_0, 0, "phalcon/mvc/model.zep", 4546); + zephir_is_iterable(&_0, 0, "phalcon/mvc/model.zep", 4548); ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&_0), _1) { ZEPHIR_INIT_NVAR(&attribute); @@ -92539,9 +91060,9 @@ static PHP_METHOD(Phalcon_Mvc_Model, toArray) { object_init_ex(&_2$$6, phalcon_mvc_model_exception_ce); ZEPHIR_INIT_LNVAR(_3$$6); ZEPHIR_CONCAT_SVS(&_3$$6, "Column '", &attribute, "' doesn't make part of the column map"); - ZEPHIR_CALL_METHOD(NULL, &_2$$6, "__construct", &_4, 9, &_3$$6); + ZEPHIR_CALL_METHOD(NULL, &_2$$6, "__construct", &_4, 4, &_3$$6); zephir_check_call_status(); - zephir_throw_exception_debug(&_2$$6, "phalcon/mvc/model.zep", 4524 TSRMLS_CC); + zephir_throw_exception_debug(&_2$$6, "phalcon/mvc/model.zep", 4526 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } else { @@ -92866,7 +91387,7 @@ static PHP_METHOD(Phalcon_Mvc_Router, __construct) { if (!defaultRoutes_param) { defaultRoutes = 1; } else { - if (unlikely(Z_TYPE_P(defaultRoutes_param) != IS_TRUE && Z_TYPE_P(defaultRoutes_param) != IS_FALSE)) { + if (UNEXPECTED(Z_TYPE_P(defaultRoutes_param) != IS_TRUE && Z_TYPE_P(defaultRoutes_param) != IS_FALSE)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'defaultRoutes' must be a bool") TSRMLS_CC); RETURN_MM_NULL(); } @@ -92884,7 +91405,7 @@ static PHP_METHOD(Phalcon_Mvc_Router, __construct) { add_assoc_long_ex(&_1$$3, SL("controller"), 1); ZEPHIR_INIT_VAR(&_2$$3); ZVAL_STRING(&_2$$3, "#^/([\\w0-9\\_\\-]+)[/]{0,1}$#u"); - ZEPHIR_CALL_METHOD(NULL, &_0$$3, "__construct", &_3, 77, &_2$$3, &_1$$3); + ZEPHIR_CALL_METHOD(NULL, &_0$$3, "__construct", &_3, 70, &_2$$3, &_1$$3); zephir_check_call_status(); zephir_array_append(&routes, &_0$$3, PH_SEPARATE, "phalcon/mvc/router.zep", 120); ZEPHIR_INIT_NVAR(&_2$$3); @@ -92896,7 +91417,7 @@ static PHP_METHOD(Phalcon_Mvc_Router, __construct) { add_assoc_long_ex(&_4$$3, SL("params"), 3); ZEPHIR_INIT_VAR(&_5$$3); ZVAL_STRING(&_5$$3, "#^/([\\w0-9\\_\\-]+)/([\\w0-9\\.\\_]+)(/.*)*$#u"); - ZEPHIR_CALL_METHOD(NULL, &_2$$3, "__construct", &_3, 77, &_5$$3, &_4$$3); + ZEPHIR_CALL_METHOD(NULL, &_2$$3, "__construct", &_3, 70, &_5$$3, &_4$$3); zephir_check_call_status(); zephir_array_append(&routes, &_2$$3, PH_SEPARATE, "phalcon/mvc/router.zep", 126); } @@ -93019,7 +91540,7 @@ static PHP_METHOD(Phalcon_Mvc_Router, removeExtraSlashes) { zephir_fetch_params(0, 1, 0, &remove_param); - if (unlikely(Z_TYPE_P(remove_param) != IS_TRUE && Z_TYPE_P(remove_param) != IS_FALSE)) { + if (UNEXPECTED(Z_TYPE_P(remove_param) != IS_TRUE && Z_TYPE_P(remove_param) != IS_FALSE)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'remove' must be a bool") TSRMLS_CC); RETURN_NULL(); } @@ -93046,11 +91567,11 @@ static PHP_METHOD(Phalcon_Mvc_Router, setDefaultNamespace) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &namespaceName_param); - if (unlikely(Z_TYPE_P(namespaceName_param) != IS_STRING && Z_TYPE_P(namespaceName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(namespaceName_param) != IS_STRING && Z_TYPE_P(namespaceName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'namespaceName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(namespaceName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(namespaceName_param) == IS_STRING)) { zephir_get_strval(&namespaceName, namespaceName_param); } else { ZEPHIR_INIT_VAR(&namespaceName); @@ -93074,11 +91595,11 @@ static PHP_METHOD(Phalcon_Mvc_Router, setDefaultModule) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &moduleName_param); - if (unlikely(Z_TYPE_P(moduleName_param) != IS_STRING && Z_TYPE_P(moduleName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(moduleName_param) != IS_STRING && Z_TYPE_P(moduleName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'moduleName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(moduleName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(moduleName_param) == IS_STRING)) { zephir_get_strval(&moduleName, moduleName_param); } else { ZEPHIR_INIT_VAR(&moduleName); @@ -93102,11 +91623,11 @@ static PHP_METHOD(Phalcon_Mvc_Router, setDefaultController) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &controllerName_param); - if (unlikely(Z_TYPE_P(controllerName_param) != IS_STRING && Z_TYPE_P(controllerName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(controllerName_param) != IS_STRING && Z_TYPE_P(controllerName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'controllerName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(controllerName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(controllerName_param) == IS_STRING)) { zephir_get_strval(&controllerName, controllerName_param); } else { ZEPHIR_INIT_VAR(&controllerName); @@ -93130,11 +91651,11 @@ static PHP_METHOD(Phalcon_Mvc_Router, setDefaultAction) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &actionName_param); - if (unlikely(Z_TYPE_P(actionName_param) != IS_STRING && Z_TYPE_P(actionName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(actionName_param) != IS_STRING && Z_TYPE_P(actionName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'actionName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(actionName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(actionName_param) == IS_STRING)) { zephir_get_strval(&actionName, actionName_param); } else { ZEPHIR_INIT_VAR(&actionName); @@ -93495,7 +92016,7 @@ static PHP_METHOD(Phalcon_Mvc_Router, handle) { object_init_ex(&_25$$36, phalcon_mvc_router_exception_ce); ZEPHIR_INIT_LNVAR(_26$$36); ZEPHIR_CONCAT_SV(&_26$$36, "Wrong key in paths: ", &part); - ZEPHIR_CALL_METHOD(NULL, &_25$$36, "__construct", &_27, 9, &_26$$36); + ZEPHIR_CALL_METHOD(NULL, &_25$$36, "__construct", &_27, 4, &_26$$36); zephir_check_call_status(); zephir_throw_exception_debug(&_25$$36, "phalcon/mvc/router.zep", 524 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -93569,7 +92090,7 @@ static PHP_METHOD(Phalcon_Mvc_Router, handle) { ZEPHIR_OBS_VAR(¬FoundPaths); zephir_read_property(¬FoundPaths, this_ptr, SL("_notFoundPaths"), PH_NOISY_CC); if (Z_TYPE_P(¬FoundPaths) != IS_NULL) { - ZEPHIR_CALL_CE_STATIC(&parts, phalcon_mvc_router_route_ce, "getroutepaths", &_33, 78, ¬FoundPaths); + ZEPHIR_CALL_CE_STATIC(&parts, phalcon_mvc_router_route_ce, "getroutepaths", &_33, 0, ¬FoundPaths); zephir_check_call_status(); ZEPHIR_INIT_NVAR(&routeFound); ZVAL_BOOL(&routeFound, 1); @@ -93667,11 +92188,11 @@ static PHP_METHOD(Phalcon_Mvc_Router, add) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 3, &pattern_param, &paths, &httpMethods, &position); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(&pattern, pattern_param); } else { ZEPHIR_INIT_VAR(&pattern); @@ -93694,7 +92215,7 @@ static PHP_METHOD(Phalcon_Mvc_Router, add) { ZEPHIR_INIT_VAR(&route); object_init_ex(&route, phalcon_mvc_router_route_ce); - ZEPHIR_CALL_METHOD(NULL, &route, "__construct", NULL, 77, &pattern, paths, httpMethods); + ZEPHIR_CALL_METHOD(NULL, &route, "__construct", NULL, 70, &pattern, paths, httpMethods); zephir_check_call_status(); do { if (ZEPHIR_IS_LONG(position, 1)) { @@ -93735,11 +92256,11 @@ static PHP_METHOD(Phalcon_Mvc_Router, addGet) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &pattern_param, &paths, &position); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(&pattern, pattern_param); } else { ZEPHIR_INIT_VAR(&pattern); @@ -93780,11 +92301,11 @@ static PHP_METHOD(Phalcon_Mvc_Router, addPost) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &pattern_param, &paths, &position); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(&pattern, pattern_param); } else { ZEPHIR_INIT_VAR(&pattern); @@ -93825,11 +92346,11 @@ static PHP_METHOD(Phalcon_Mvc_Router, addPut) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &pattern_param, &paths, &position); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(&pattern, pattern_param); } else { ZEPHIR_INIT_VAR(&pattern); @@ -93870,11 +92391,11 @@ static PHP_METHOD(Phalcon_Mvc_Router, addPatch) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &pattern_param, &paths, &position); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(&pattern, pattern_param); } else { ZEPHIR_INIT_VAR(&pattern); @@ -93915,11 +92436,11 @@ static PHP_METHOD(Phalcon_Mvc_Router, addDelete) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &pattern_param, &paths, &position); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(&pattern, pattern_param); } else { ZEPHIR_INIT_VAR(&pattern); @@ -93960,11 +92481,11 @@ static PHP_METHOD(Phalcon_Mvc_Router, addOptions) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &pattern_param, &paths, &position); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(&pattern, pattern_param); } else { ZEPHIR_INIT_VAR(&pattern); @@ -94005,11 +92526,11 @@ static PHP_METHOD(Phalcon_Mvc_Router, addHead) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &pattern_param, &paths, &position); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(&pattern, pattern_param); } else { ZEPHIR_INIT_VAR(&pattern); @@ -94050,11 +92571,11 @@ static PHP_METHOD(Phalcon_Mvc_Router, addPurge) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &pattern_param, &paths, &position); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(&pattern, pattern_param); } else { ZEPHIR_INIT_VAR(&pattern); @@ -94095,11 +92616,11 @@ static PHP_METHOD(Phalcon_Mvc_Router, addTrace) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &pattern_param, &paths, &position); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(&pattern, pattern_param); } else { ZEPHIR_INIT_VAR(&pattern); @@ -94140,11 +92661,11 @@ static PHP_METHOD(Phalcon_Mvc_Router, addConnect) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &pattern_param, &paths, &position); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(&pattern, pattern_param); } else { ZEPHIR_INIT_VAR(&pattern); @@ -94403,11 +92924,11 @@ static PHP_METHOD(Phalcon_Mvc_Router, getRouteByName) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(&name, name_param); } else { ZEPHIR_INIT_VAR(&name); @@ -94614,11 +93135,11 @@ static PHP_METHOD(Phalcon_Mvc_Url, setBaseUri) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &baseUri_param); - if (unlikely(Z_TYPE_P(baseUri_param) != IS_STRING && Z_TYPE_P(baseUri_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(baseUri_param) != IS_STRING && Z_TYPE_P(baseUri_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'baseUri' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(baseUri_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(baseUri_param) == IS_STRING)) { zephir_get_strval(&baseUri, baseUri_param); } else { ZEPHIR_INIT_VAR(&baseUri); @@ -94646,11 +93167,11 @@ static PHP_METHOD(Phalcon_Mvc_Url, setStaticBaseUri) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &staticBaseUri_param); - if (unlikely(Z_TYPE_P(staticBaseUri_param) != IS_STRING && Z_TYPE_P(staticBaseUri_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(staticBaseUri_param) != IS_STRING && Z_TYPE_P(staticBaseUri_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'staticBaseUri' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(staticBaseUri_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(staticBaseUri_param) == IS_STRING)) { zephir_get_strval(&staticBaseUri, staticBaseUri_param); } else { ZEPHIR_INIT_VAR(&staticBaseUri); @@ -94731,11 +93252,11 @@ static PHP_METHOD(Phalcon_Mvc_Url, setBasePath) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &basePath_param); - if (unlikely(Z_TYPE_P(basePath_param) != IS_STRING && Z_TYPE_P(basePath_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(basePath_param) != IS_STRING && Z_TYPE_P(basePath_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'basePath' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(basePath_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(basePath_param) == IS_STRING)) { zephir_get_strval(&basePath, basePath_param); } else { ZEPHIR_INIT_VAR(&basePath); @@ -94884,7 +93405,7 @@ static PHP_METHOD(Phalcon_Mvc_Url, get) { object_init_ex(&_10$$13, phalcon_mvc_url_exception_ce); ZEPHIR_INIT_VAR(&_11$$13); ZEPHIR_CONCAT_SVS(&_11$$13, "Cannot obtain a route using the name '", &routeName, "'"); - ZEPHIR_CALL_METHOD(NULL, &_10$$13, "__construct", NULL, 9, &_11$$13); + ZEPHIR_CALL_METHOD(NULL, &_10$$13, "__construct", NULL, 4, &_11$$13); zephir_check_call_status(); zephir_throw_exception_debug(&_10$$13, "phalcon/mvc/url.zep", 250 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -94940,7 +93461,7 @@ static PHP_METHOD(Phalcon_Mvc_Url, get) { } } if (zephir_is_true(args)) { - ZEPHIR_CALL_FUNCTION(&queryString, "http_build_query", NULL, 385, args); + ZEPHIR_CALL_FUNCTION(&queryString, "http_build_query", NULL, 348, args); zephir_check_call_status(); _25$$19 = Z_TYPE_P(&queryString) == IS_STRING; if (_25$$19) { @@ -95599,11 +94120,11 @@ static PHP_METHOD(Phalcon_Mvc_View, setParamToView) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &key_param, &value); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(&key, key_param); } else { ZEPHIR_INIT_VAR(&key); @@ -95662,11 +94183,11 @@ static PHP_METHOD(Phalcon_Mvc_View, setVar) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &key_param, &value); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(&key, key_param); } else { ZEPHIR_INIT_VAR(&key); @@ -95692,11 +94213,11 @@ static PHP_METHOD(Phalcon_Mvc_View, getVar) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &key_param); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(&key, key_param); } else { ZEPHIR_INIT_VAR(&key); @@ -95758,7 +94279,7 @@ static PHP_METHOD(Phalcon_Mvc_View, start) { ZEPHIR_MM_GROW(); - ZEPHIR_CALL_FUNCTION(NULL, "ob_start", NULL, 126); + ZEPHIR_CALL_FUNCTION(NULL, "ob_start", NULL, 115); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_content"), &__$null); RETURN_THIS(); @@ -95801,7 +94322,7 @@ static PHP_METHOD(Phalcon_Mvc_View, _loadTemplateEngines) { if (Z_TYPE_P(®isteredEngines) != IS_ARRAY) { ZEPHIR_INIT_VAR(&_1$$4); object_init_ex(&_1$$4, phalcon_mvc_view_engine_php_ce); - ZEPHIR_CALL_METHOD(NULL, &_1$$4, "__construct", NULL, 386, this_ptr, &dependencyInjector); + ZEPHIR_CALL_METHOD(NULL, &_1$$4, "__construct", NULL, 349, this_ptr, &dependencyInjector); zephir_check_call_status(); zephir_array_update_string(&engines, SL(".phtml"), &_1$$4, PH_COPY | PH_SEPARATE); } else { @@ -95839,7 +94360,7 @@ static PHP_METHOD(Phalcon_Mvc_View, _loadTemplateEngines) { object_init_ex(&_6$$12, phalcon_mvc_view_exception_ce); ZEPHIR_INIT_LNVAR(_7$$12); ZEPHIR_CONCAT_SV(&_7$$12, "Invalid template engine registration for extension: ", &extension); - ZEPHIR_CALL_METHOD(NULL, &_6$$12, "__construct", &_8, 9, &_7$$12); + ZEPHIR_CALL_METHOD(NULL, &_6$$12, "__construct", &_8, 4, &_7$$12); zephir_check_call_status(); zephir_throw_exception_debug(&_6$$12, "phalcon/mvc/view.zep", 563 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -95933,7 +94454,7 @@ static PHP_METHOD(Phalcon_Mvc_View, _engineRender) { { ZEPHIR_INIT_NVAR(&viewsDir); ZVAL_COPY(&viewsDir, _2); - ZEPHIR_CALL_METHOD(&_3$$3, this_ptr, "_isabsolutepath", &_4, 387, &viewPath); + ZEPHIR_CALL_METHOD(&_3$$3, this_ptr, "_isabsolutepath", &_4, 350, &viewPath); zephir_check_call_status(); if (!(zephir_is_true(&_3$$3))) { ZEPHIR_INIT_NVAR(&viewsDirPath); @@ -96047,7 +94568,7 @@ static PHP_METHOD(Phalcon_Mvc_View, _engineRender) { object_init_ex(&_23$$21, phalcon_mvc_view_exception_ce); ZEPHIR_INIT_VAR(&_24$$21); ZEPHIR_CONCAT_SVS(&_24$$21, "View '", &viewPath, "' was not found in any of the views directory"); - ZEPHIR_CALL_METHOD(NULL, &_23$$21, "__construct", NULL, 9, &_24$$21); + ZEPHIR_CALL_METHOD(NULL, &_23$$21, "__construct", NULL, 4, &_24$$21); zephir_check_call_status(); zephir_throw_exception_debug(&_23$$21, "phalcon/mvc/view.zep", 706 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -96098,11 +94619,11 @@ static PHP_METHOD(Phalcon_Mvc_View, exists) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &view_param); - if (unlikely(Z_TYPE_P(view_param) != IS_STRING && Z_TYPE_P(view_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(view_param) != IS_STRING && Z_TYPE_P(view_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'view' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(view_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(view_param) == IS_STRING)) { zephir_get_strval(&view, view_param); } else { ZEPHIR_INIT_VAR(&view); @@ -96215,21 +94736,21 @@ static PHP_METHOD(Phalcon_Mvc_View, render) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 1, &controllerName_param, &actionName_param, ¶ms); - if (unlikely(Z_TYPE_P(controllerName_param) != IS_STRING && Z_TYPE_P(controllerName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(controllerName_param) != IS_STRING && Z_TYPE_P(controllerName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'controllerName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(controllerName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(controllerName_param) == IS_STRING)) { zephir_get_strval(&controllerName, controllerName_param); } else { ZEPHIR_INIT_VAR(&controllerName); ZVAL_EMPTY_STRING(&controllerName); } - if (unlikely(Z_TYPE_P(actionName_param) != IS_STRING && Z_TYPE_P(actionName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(actionName_param) != IS_STRING && Z_TYPE_P(actionName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'actionName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(actionName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(actionName_param) == IS_STRING)) { zephir_get_strval(&actionName, actionName_param); } else { ZEPHIR_INIT_VAR(&actionName); @@ -96246,7 +94767,7 @@ static PHP_METHOD(Phalcon_Mvc_View, render) { zephir_update_property_zval(this_ptr, SL("_currentRenderLevel"), &_0); zephir_read_property(&_0, this_ptr, SL("_disabled"), PH_NOISY_CC | PH_READONLY); if (!ZEPHIR_IS_FALSE_IDENTICAL(&_0)) { - ZEPHIR_CALL_FUNCTION(&_1$$3, "ob_get_contents", &_2, 127); + ZEPHIR_CALL_FUNCTION(&_1$$3, "ob_get_contents", &_2, 116); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_content"), &_1$$3); RETURN_MM_BOOL(0); @@ -96311,7 +94832,7 @@ static PHP_METHOD(Phalcon_Mvc_View, render) { RETURN_MM_BOOL(0); } } - ZEPHIR_CALL_FUNCTION(&_10, "ob_get_contents", &_2, 127); + ZEPHIR_CALL_FUNCTION(&_10, "ob_get_contents", &_2, 116); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_content"), &_10); mustClean = 1; @@ -96529,11 +95050,11 @@ static PHP_METHOD(Phalcon_Mvc_View, getPartial) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &partialPath_param, ¶ms); - if (unlikely(Z_TYPE_P(partialPath_param) != IS_STRING && Z_TYPE_P(partialPath_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(partialPath_param) != IS_STRING && Z_TYPE_P(partialPath_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'partialPath' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(partialPath_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(partialPath_param) == IS_STRING)) { zephir_get_strval(&partialPath, partialPath_param); } else { ZEPHIR_INIT_VAR(&partialPath); @@ -96545,11 +95066,11 @@ static PHP_METHOD(Phalcon_Mvc_View, getPartial) { } - ZEPHIR_CALL_FUNCTION(NULL, "ob_start", NULL, 126); + ZEPHIR_CALL_FUNCTION(NULL, "ob_start", NULL, 115); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, this_ptr, "partial", NULL, 0, &partialPath, params); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_FUNCTION("ob_get_clean", NULL, 294); + ZEPHIR_RETURN_CALL_FUNCTION("ob_get_clean", NULL, 262); zephir_check_call_status(); RETURN_MM(); @@ -96577,11 +95098,11 @@ static PHP_METHOD(Phalcon_Mvc_View, partial) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &partialPath_param, ¶ms); - if (unlikely(Z_TYPE_P(partialPath_param) != IS_STRING && Z_TYPE_P(partialPath_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(partialPath_param) != IS_STRING && Z_TYPE_P(partialPath_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'partialPath' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(partialPath_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(partialPath_param) == IS_STRING)) { zephir_get_strval(&partialPath, partialPath_param); } else { ZEPHIR_INIT_VAR(&partialPath); @@ -96639,21 +95160,21 @@ static PHP_METHOD(Phalcon_Mvc_View, getRender) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 2, &controllerName_param, &actionName_param, ¶ms, &configCallback); - if (unlikely(Z_TYPE_P(controllerName_param) != IS_STRING && Z_TYPE_P(controllerName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(controllerName_param) != IS_STRING && Z_TYPE_P(controllerName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'controllerName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(controllerName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(controllerName_param) == IS_STRING)) { zephir_get_strval(&controllerName, controllerName_param); } else { ZEPHIR_INIT_VAR(&controllerName); ZVAL_EMPTY_STRING(&controllerName); } - if (unlikely(Z_TYPE_P(actionName_param) != IS_STRING && Z_TYPE_P(actionName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(actionName_param) != IS_STRING && Z_TYPE_P(actionName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'actionName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(actionName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(actionName_param) == IS_STRING)) { zephir_get_strval(&actionName, actionName_param); } else { ZEPHIR_INIT_VAR(&actionName); @@ -96691,7 +95212,7 @@ static PHP_METHOD(Phalcon_Mvc_View, getRender) { zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, &view, "render", NULL, 0, &controllerName, &actionName); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(NULL, "ob_end_clean", NULL, 128); + ZEPHIR_CALL_FUNCTION(NULL, "ob_end_clean", NULL, 117); zephir_check_call_status(); ZEPHIR_RETURN_CALL_METHOD(&view, "getcontent", NULL, 0); zephir_check_call_status(); @@ -96707,7 +95228,7 @@ static PHP_METHOD(Phalcon_Mvc_View, finish) { ZEPHIR_MM_GROW(); - ZEPHIR_CALL_FUNCTION(NULL, "ob_end_clean", NULL, 128); + ZEPHIR_CALL_FUNCTION(NULL, "ob_end_clean", NULL, 117); zephir_check_call_status(); RETURN_THIS(); @@ -97028,11 +95549,11 @@ static PHP_METHOD(Phalcon_Mvc_View, __set) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &key_param, &value); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(&key, key_param); } else { ZEPHIR_INIT_VAR(&key); @@ -97058,11 +95579,11 @@ static PHP_METHOD(Phalcon_Mvc_View, __get) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &key_param); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(&key, key_param); } else { ZEPHIR_INIT_VAR(&key); @@ -97099,11 +95620,11 @@ static PHP_METHOD(Phalcon_Mvc_View, __isset) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &key_param); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(&key, key_param); } else { ZEPHIR_INIT_VAR(&key); @@ -97370,11 +95891,11 @@ static PHP_METHOD(Phalcon_Mvc_Collection_Behavior, mustTakeAction) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &eventName_param); - if (unlikely(Z_TYPE_P(eventName_param) != IS_STRING && Z_TYPE_P(eventName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(eventName_param) != IS_STRING && Z_TYPE_P(eventName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'eventName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(eventName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(eventName_param) == IS_STRING)) { zephir_get_strval(&eventName, eventName_param); } else { ZEPHIR_INIT_VAR(&eventName); @@ -97404,11 +95925,11 @@ static PHP_METHOD(Phalcon_Mvc_Collection_Behavior, getOptions) { ZEPHIR_INIT_VAR(&eventName); ZVAL_STRING(&eventName, ""); } else { - if (unlikely(Z_TYPE_P(eventName_param) != IS_STRING && Z_TYPE_P(eventName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(eventName_param) != IS_STRING && Z_TYPE_P(eventName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'eventName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(eventName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(eventName_param) == IS_STRING)) { zephir_get_strval(&eventName, eventName_param); } else { ZEPHIR_INIT_VAR(&eventName); @@ -97525,11 +96046,11 @@ static PHP_METHOD(Phalcon_Mvc_Collection_Document, offsetExists) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &index_param); - if (unlikely(Z_TYPE_P(index_param) != IS_STRING && Z_TYPE_P(index_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(index_param) != IS_STRING && Z_TYPE_P(index_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'index' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(index_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(index_param) == IS_STRING)) { zephir_get_strval(&index, index_param); } else { ZEPHIR_INIT_VAR(&index); @@ -97553,11 +96074,11 @@ static PHP_METHOD(Phalcon_Mvc_Collection_Document, offsetGet) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &index_param); - if (unlikely(Z_TYPE_P(index_param) != IS_STRING && Z_TYPE_P(index_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(index_param) != IS_STRING && Z_TYPE_P(index_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'index' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(index_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(index_param) == IS_STRING)) { zephir_get_strval(&index, index_param); } else { ZEPHIR_INIT_VAR(&index); @@ -97586,11 +96107,11 @@ static PHP_METHOD(Phalcon_Mvc_Collection_Document, offsetSet) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &index_param, &value); - if (unlikely(Z_TYPE_P(index_param) != IS_STRING && Z_TYPE_P(index_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(index_param) != IS_STRING && Z_TYPE_P(index_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'index' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(index_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(index_param) == IS_STRING)) { zephir_get_strval(&index, index_param); } else { ZEPHIR_INIT_VAR(&index); @@ -97652,11 +96173,11 @@ static PHP_METHOD(Phalcon_Mvc_Collection_Document, writeAttribute) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &attribute_param, &value); - if (unlikely(Z_TYPE_P(attribute_param) != IS_STRING && Z_TYPE_P(attribute_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(attribute_param) != IS_STRING && Z_TYPE_P(attribute_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'attribute' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(attribute_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(attribute_param) == IS_STRING)) { zephir_get_strval(&attribute, attribute_param); } else { ZEPHIR_INIT_VAR(&attribute); @@ -97677,7 +96198,7 @@ static PHP_METHOD(Phalcon_Mvc_Collection_Document, toArray) { ZEPHIR_MM_GROW(); - ZEPHIR_RETURN_CALL_FUNCTION("get_object_vars", NULL, 21, this_ptr); + ZEPHIR_RETURN_CALL_FUNCTION("get_object_vars", NULL, 16, this_ptr); zephir_check_call_status(); RETURN_MM(); @@ -97915,11 +96436,11 @@ static PHP_METHOD(Phalcon_Mvc_Collection_Manager, isInitialized) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &modelName_param); - if (unlikely(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'modelName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(modelName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(modelName_param) == IS_STRING)) { zephir_get_strval(&modelName, modelName_param); } else { ZEPHIR_INIT_VAR(&modelName); @@ -97956,11 +96477,11 @@ static PHP_METHOD(Phalcon_Mvc_Collection_Manager, setConnectionService) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &model, &connectionService_param); - if (unlikely(Z_TYPE_P(connectionService_param) != IS_STRING && Z_TYPE_P(connectionService_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(connectionService_param) != IS_STRING && Z_TYPE_P(connectionService_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'connectionService' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(connectionService_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(connectionService_param) == IS_STRING)) { zephir_get_strval(&connectionService, connectionService_param); } else { ZEPHIR_INIT_VAR(&connectionService); @@ -98124,11 +96645,11 @@ static PHP_METHOD(Phalcon_Mvc_Collection_Manager, notifyEvent) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &eventName_param, &model); - if (unlikely(Z_TYPE_P(eventName_param) != IS_STRING && Z_TYPE_P(eventName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(eventName_param) != IS_STRING && Z_TYPE_P(eventName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'eventName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(eventName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(eventName_param) == IS_STRING)) { zephir_get_strval(&eventName, eventName_param); } else { ZEPHIR_INIT_VAR(&eventName); @@ -98210,11 +96731,11 @@ static PHP_METHOD(Phalcon_Mvc_Collection_Manager, missingMethod) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &model, &eventName_param, &data); - if (unlikely(Z_TYPE_P(eventName_param) != IS_STRING && Z_TYPE_P(eventName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(eventName_param) != IS_STRING && Z_TYPE_P(eventName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'eventName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(eventName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(eventName_param) == IS_STRING)) { zephir_get_strval(&eventName, eventName_param); } else { ZEPHIR_INIT_VAR(&eventName); @@ -98367,11 +96888,11 @@ static PHP_METHOD(Phalcon_Mvc_Collection_Behavior_SoftDelete, notify) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &type_param, &model); - if (unlikely(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'type' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(type_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(type_param) == IS_STRING)) { zephir_get_strval(&type, type_param); } else { ZEPHIR_INIT_VAR(&type); @@ -98467,11 +96988,11 @@ static PHP_METHOD(Phalcon_Mvc_Collection_Behavior_Timestampable, notify) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &type_param, &model); - if (unlikely(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'type' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(type_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(type_param) == IS_STRING)) { zephir_get_strval(&type, type_param); } else { ZEPHIR_INIT_VAR(&type); @@ -98496,7 +97017,7 @@ static PHP_METHOD(Phalcon_Mvc_Collection_Behavior_Timestampable, notify) { ZVAL_NULL(×tamp); ZEPHIR_OBS_VAR(&format); if (zephir_array_isset_string_fetch(&format, &options, SL("format"), 0)) { - ZEPHIR_CALL_FUNCTION(×tamp, "date", NULL, 303, &format); + ZEPHIR_CALL_FUNCTION(×tamp, "date", NULL, 271, &format); zephir_check_call_status(); } else { ZEPHIR_OBS_VAR(&generator); @@ -98614,11 +97135,11 @@ static PHP_METHOD(Phalcon_Mvc_Micro_Collection, _addMap) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 4, 0, &method_param, &routePattern, &handler, &name); - if (unlikely(Z_TYPE_P(method_param) != IS_STRING && Z_TYPE_P(method_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(method_param) != IS_STRING && Z_TYPE_P(method_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'method' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(method_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(method_param) == IS_STRING)) { zephir_get_strval(&method, method_param); } else { ZEPHIR_INIT_VAR(&method); @@ -98648,11 +97169,11 @@ static PHP_METHOD(Phalcon_Mvc_Micro_Collection, setPrefix) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &prefix_param); - if (unlikely(Z_TYPE_P(prefix_param) != IS_STRING && Z_TYPE_P(prefix_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(prefix_param) != IS_STRING && Z_TYPE_P(prefix_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'prefix' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(prefix_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(prefix_param) == IS_STRING)) { zephir_get_strval(&prefix, prefix_param); } else { ZEPHIR_INIT_VAR(&prefix); @@ -98723,7 +97244,7 @@ static PHP_METHOD(Phalcon_Mvc_Micro_Collection, setLazy) { zephir_fetch_params(0, 1, 0, &lazy_param); - if (unlikely(Z_TYPE_P(lazy_param) != IS_TRUE && Z_TYPE_P(lazy_param) != IS_FALSE)) { + if (UNEXPECTED(Z_TYPE_P(lazy_param) != IS_TRUE && Z_TYPE_P(lazy_param) != IS_FALSE)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'lazy' must be a bool") TSRMLS_CC); RETURN_NULL(); } @@ -98773,11 +97294,11 @@ static PHP_METHOD(Phalcon_Mvc_Micro_Collection, map) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 1, &routePattern_param, &handler, &name); - if (unlikely(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'routePattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(routePattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(routePattern_param) == IS_STRING)) { zephir_get_strval(&routePattern, routePattern_param); } else { ZEPHIR_INIT_VAR(&routePattern); @@ -98812,11 +97333,11 @@ static PHP_METHOD(Phalcon_Mvc_Micro_Collection, get) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 1, &routePattern_param, &handler, &name); - if (unlikely(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'routePattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(routePattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(routePattern_param) == IS_STRING)) { zephir_get_strval(&routePattern, routePattern_param); } else { ZEPHIR_INIT_VAR(&routePattern); @@ -98852,11 +97373,11 @@ static PHP_METHOD(Phalcon_Mvc_Micro_Collection, post) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 1, &routePattern_param, &handler, &name); - if (unlikely(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'routePattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(routePattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(routePattern_param) == IS_STRING)) { zephir_get_strval(&routePattern, routePattern_param); } else { ZEPHIR_INIT_VAR(&routePattern); @@ -98892,11 +97413,11 @@ static PHP_METHOD(Phalcon_Mvc_Micro_Collection, put) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 1, &routePattern_param, &handler, &name); - if (unlikely(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'routePattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(routePattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(routePattern_param) == IS_STRING)) { zephir_get_strval(&routePattern, routePattern_param); } else { ZEPHIR_INIT_VAR(&routePattern); @@ -98932,11 +97453,11 @@ static PHP_METHOD(Phalcon_Mvc_Micro_Collection, patch) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 1, &routePattern_param, &handler, &name); - if (unlikely(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'routePattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(routePattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(routePattern_param) == IS_STRING)) { zephir_get_strval(&routePattern, routePattern_param); } else { ZEPHIR_INIT_VAR(&routePattern); @@ -98972,11 +97493,11 @@ static PHP_METHOD(Phalcon_Mvc_Micro_Collection, head) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 1, &routePattern_param, &handler, &name); - if (unlikely(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'routePattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(routePattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(routePattern_param) == IS_STRING)) { zephir_get_strval(&routePattern, routePattern_param); } else { ZEPHIR_INIT_VAR(&routePattern); @@ -99012,11 +97533,11 @@ static PHP_METHOD(Phalcon_Mvc_Micro_Collection, delete) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 1, &routePattern_param, &handler, &name); - if (unlikely(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'routePattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(routePattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(routePattern_param) == IS_STRING)) { zephir_get_strval(&routePattern, routePattern_param); } else { ZEPHIR_INIT_VAR(&routePattern); @@ -99052,11 +97573,11 @@ static PHP_METHOD(Phalcon_Mvc_Micro_Collection, options) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 1, &routePattern_param, &handler, &name); - if (unlikely(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'routePattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(routePattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(routePattern_param) == IS_STRING)) { zephir_get_strval(&routePattern, routePattern_param); } else { ZEPHIR_INIT_VAR(&routePattern); @@ -99186,11 +97707,11 @@ static PHP_METHOD(Phalcon_Mvc_Micro_LazyLoader, __construct) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &definition_param); - if (unlikely(Z_TYPE_P(definition_param) != IS_STRING && Z_TYPE_P(definition_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(definition_param) != IS_STRING && Z_TYPE_P(definition_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'definition' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(definition_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(definition_param) == IS_STRING)) { zephir_get_strval(&definition, definition_param); } else { ZEPHIR_INIT_VAR(&definition); @@ -99225,11 +97746,11 @@ static PHP_METHOD(Phalcon_Mvc_Micro_LazyLoader, __call) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &method_param, &arguments); - if (unlikely(Z_TYPE_P(method_param) != IS_STRING && Z_TYPE_P(method_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(method_param) != IS_STRING && Z_TYPE_P(method_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'method' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(method_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(method_param) == IS_STRING)) { zephir_get_strval(&method, method_param); } else { ZEPHIR_INIT_VAR(&method); @@ -99287,11 +97808,11 @@ static PHP_METHOD(Phalcon_Mvc_Micro_LazyLoader, callMethod) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 1, &method_param, &arguments, &modelBinder); - if (unlikely(Z_TYPE_P(method_param) != IS_STRING && Z_TYPE_P(method_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(method_param) != IS_STRING && Z_TYPE_P(method_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'method' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(method_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(method_param) == IS_STRING)) { zephir_get_strval(&method, method_param); } else { ZEPHIR_INIT_VAR(&method); @@ -99383,11 +97904,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Behavior, mustTakeAction) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &eventName_param); - if (unlikely(Z_TYPE_P(eventName_param) != IS_STRING && Z_TYPE_P(eventName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(eventName_param) != IS_STRING && Z_TYPE_P(eventName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'eventName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(eventName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(eventName_param) == IS_STRING)) { zephir_get_strval(&eventName, eventName_param); } else { ZEPHIR_INIT_VAR(&eventName); @@ -99417,11 +97938,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Behavior, getOptions) { ZEPHIR_INIT_VAR(&eventName); ZVAL_STRING(&eventName, ""); } else { - if (unlikely(Z_TYPE_P(eventName_param) != IS_STRING && Z_TYPE_P(eventName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(eventName_param) != IS_STRING && Z_TYPE_P(eventName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'eventName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(eventName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(eventName_param) == IS_STRING)) { zephir_get_strval(&eventName, eventName_param); } else { ZEPHIR_INIT_VAR(&eventName); @@ -99775,16 +98296,16 @@ static PHP_METHOD(Phalcon_Mvc_Model_Binder, getParamsFromReflection) { ZEPHIR_INIT_VAR(&reflection); if (Z_TYPE_P(methodName) != IS_NULL) { object_init_ex(&reflection, zephir_get_internal_ce(SL("reflectionmethod"))); - ZEPHIR_CALL_METHOD(NULL, &reflection, "__construct", NULL, 325, handler, methodName); + ZEPHIR_CALL_METHOD(NULL, &reflection, "__construct", NULL, 294, handler, methodName); zephir_check_call_status(); } else { object_init_ex(&reflection, zephir_get_internal_ce(SL("reflectionfunction"))); - ZEPHIR_CALL_METHOD(NULL, &reflection, "__construct", NULL, 82, handler); + ZEPHIR_CALL_METHOD(NULL, &reflection, "__construct", NULL, 74, handler); zephir_check_call_status(); } zephir_read_property(&_0, this_ptr, SL("cache"), PH_NOISY_CC | PH_READONLY); ZEPHIR_CPY_WRT(&cache, &_0); - ZEPHIR_CALL_METHOD(&methodParams, &reflection, "getparameters", NULL, 83); + ZEPHIR_CALL_METHOD(&methodParams, &reflection, "getparameters", NULL, 75); zephir_check_call_status(); ZEPHIR_INIT_VAR(¶msKeys); zephir_array_keys(¶msKeys, ¶ms TSRMLS_CC); @@ -99816,7 +98337,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Binder, getParamsFromReflection) { zephir_array_fetch(¶mValue, ¶ms, ¶mKey, PH_NOISY, "phalcon/mvc/model/binder.zep", 160 TSRMLS_CC); ZEPHIR_INIT_NVAR(&_5$$5); ZVAL_STRING(&_5$$5, "Phalcon\\Mvc\\Model"); - ZEPHIR_CALL_FUNCTION(&_6$$5, "is_subclass_of", &_7, 326, &className, &_5$$5); + ZEPHIR_CALL_FUNCTION(&_6$$5, "is_subclass_of", &_7, 295, &className, &_5$$5); zephir_check_call_status(); if (ZEPHIR_IS_STRING(&className, "Phalcon\\Mvc\\Model")) { if (Z_TYPE_P(&realClasses) == IS_NULL) { @@ -99845,7 +98366,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Binder, getParamsFromReflection) { object_init_ex(&_10$$15, phalcon_mvc_model_exception_ce); ZEPHIR_INIT_LNVAR(_11$$15); ZEPHIR_CONCAT_SVS(&_11$$15, "You should provide model class name for ", ¶mKey, " parameter"); - ZEPHIR_CALL_METHOD(NULL, &_10$$15, "__construct", &_12, 9, &_11$$15); + ZEPHIR_CALL_METHOD(NULL, &_10$$15, "__construct", &_12, 4, &_11$$15); zephir_check_call_status(); zephir_throw_exception_debug(&_10$$15, "phalcon/mvc/model/binder.zep", 177 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -100026,11 +98547,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, setModelName) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &modelName_param); - if (unlikely(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'modelName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(modelName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(modelName_param) == IS_STRING)) { zephir_get_strval(&modelName, modelName_param); } else { ZEPHIR_INIT_VAR(&modelName); @@ -100193,11 +98714,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, join) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 3, &model_param, &conditions, &alias, &type); - if (unlikely(Z_TYPE_P(model_param) != IS_STRING && Z_TYPE_P(model_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(model_param) != IS_STRING && Z_TYPE_P(model_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'model' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(model_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(model_param) == IS_STRING)) { zephir_get_strval(&model, model_param); } else { ZEPHIR_INIT_VAR(&model); @@ -100265,11 +98786,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, innerJoin) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &model_param, &conditions, &alias); - if (unlikely(Z_TYPE_P(model_param) != IS_STRING && Z_TYPE_P(model_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(model_param) != IS_STRING && Z_TYPE_P(model_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'model' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(model_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(model_param) == IS_STRING)) { zephir_get_strval(&model, model_param); } else { ZEPHIR_INIT_VAR(&model); @@ -100309,11 +98830,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, leftJoin) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &model_param, &conditions, &alias); - if (unlikely(Z_TYPE_P(model_param) != IS_STRING && Z_TYPE_P(model_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(model_param) != IS_STRING && Z_TYPE_P(model_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'model' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(model_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(model_param) == IS_STRING)) { zephir_get_strval(&model, model_param); } else { ZEPHIR_INIT_VAR(&model); @@ -100353,11 +98874,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, rightJoin) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &model_param, &conditions, &alias); - if (unlikely(Z_TYPE_P(model_param) != IS_STRING && Z_TYPE_P(model_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(model_param) != IS_STRING && Z_TYPE_P(model_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'model' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(model_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(model_param) == IS_STRING)) { zephir_get_strval(&model, model_param); } else { ZEPHIR_INIT_VAR(&model); @@ -100406,11 +98927,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, where) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &conditions_param, &bindParams, &bindTypes); - if (unlikely(Z_TYPE_P(conditions_param) != IS_STRING && Z_TYPE_P(conditions_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(conditions_param) != IS_STRING && Z_TYPE_P(conditions_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'conditions' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(conditions_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(conditions_param) == IS_STRING)) { zephir_get_strval(&conditions, conditions_param); } else { ZEPHIR_INIT_VAR(&conditions); @@ -100478,11 +98999,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, addWhere) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &conditions_param, &bindParams, &bindTypes); - if (unlikely(Z_TYPE_P(conditions_param) != IS_STRING && Z_TYPE_P(conditions_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(conditions_param) != IS_STRING && Z_TYPE_P(conditions_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'conditions' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(conditions_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(conditions_param) == IS_STRING)) { zephir_get_strval(&conditions, conditions_param); } else { ZEPHIR_INIT_VAR(&conditions); @@ -100522,11 +99043,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, andWhere) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &conditions_param, &bindParams, &bindTypes); - if (unlikely(Z_TYPE_P(conditions_param) != IS_STRING && Z_TYPE_P(conditions_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(conditions_param) != IS_STRING && Z_TYPE_P(conditions_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'conditions' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(conditions_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(conditions_param) == IS_STRING)) { zephir_get_strval(&conditions, conditions_param); } else { ZEPHIR_INIT_VAR(&conditions); @@ -100573,11 +99094,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, orWhere) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &conditions_param, &bindParams, &bindTypes); - if (unlikely(Z_TYPE_P(conditions_param) != IS_STRING && Z_TYPE_P(conditions_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(conditions_param) != IS_STRING && Z_TYPE_P(conditions_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'conditions' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(conditions_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(conditions_param) == IS_STRING)) { zephir_get_strval(&conditions, conditions_param); } else { ZEPHIR_INIT_VAR(&conditions); @@ -100627,11 +99148,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, betweenWhere) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &expr_param, &minimum, &maximum); - if (unlikely(Z_TYPE_P(expr_param) != IS_STRING && Z_TYPE_P(expr_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(expr_param) != IS_STRING && Z_TYPE_P(expr_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'expr' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(expr_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(expr_param) == IS_STRING)) { zephir_get_strval(&expr, expr_param); } else { ZEPHIR_INIT_VAR(&expr); @@ -100683,11 +99204,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, notBetweenWhere) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &expr_param, &minimum, &maximum); - if (unlikely(Z_TYPE_P(expr_param) != IS_STRING && Z_TYPE_P(expr_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(expr_param) != IS_STRING && Z_TYPE_P(expr_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'expr' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(expr_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(expr_param) == IS_STRING)) { zephir_get_strval(&expr, expr_param); } else { ZEPHIR_INIT_VAR(&expr); @@ -100742,11 +99263,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, inWhere) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &expr_param, &values_param); - if (unlikely(Z_TYPE_P(expr_param) != IS_STRING && Z_TYPE_P(expr_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(expr_param) != IS_STRING && Z_TYPE_P(expr_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'expr' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(expr_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(expr_param) == IS_STRING)) { zephir_get_strval(&expr, expr_param); } else { ZEPHIR_INIT_VAR(&expr); @@ -100816,11 +99337,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, notInWhere) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &expr_param, &values_param); - if (unlikely(Z_TYPE_P(expr_param) != IS_STRING && Z_TYPE_P(expr_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(expr_param) != IS_STRING && Z_TYPE_P(expr_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'expr' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(expr_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(expr_param) == IS_STRING)) { zephir_get_strval(&expr, expr_param); } else { ZEPHIR_INIT_VAR(&expr); @@ -100873,11 +99394,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, conditions) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &conditions_param); - if (unlikely(Z_TYPE_P(conditions_param) != IS_STRING && Z_TYPE_P(conditions_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(conditions_param) != IS_STRING && Z_TYPE_P(conditions_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'conditions' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(conditions_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(conditions_param) == IS_STRING)) { zephir_get_strval(&conditions, conditions_param); } else { ZEPHIR_INIT_VAR(&conditions); @@ -100904,11 +99425,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, order) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &orderColumns_param); - if (unlikely(Z_TYPE_P(orderColumns_param) != IS_STRING && Z_TYPE_P(orderColumns_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(orderColumns_param) != IS_STRING && Z_TYPE_P(orderColumns_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'orderColumns' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(orderColumns_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(orderColumns_param) == IS_STRING)) { zephir_get_strval(&orderColumns, orderColumns_param); } else { ZEPHIR_INIT_VAR(&orderColumns); @@ -100935,11 +99456,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, orderBy) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &orderColumns_param); - if (unlikely(Z_TYPE_P(orderColumns_param) != IS_STRING && Z_TYPE_P(orderColumns_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(orderColumns_param) != IS_STRING && Z_TYPE_P(orderColumns_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'orderColumns' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(orderColumns_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(orderColumns_param) == IS_STRING)) { zephir_get_strval(&orderColumns, orderColumns_param); } else { ZEPHIR_INIT_VAR(&orderColumns); @@ -101025,15 +99546,15 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, limit) { ZVAL_LONG(&_0, limit); - ZEPHIR_CALL_FUNCTION(&_1, "abs", &_2, 199, &_0); + ZEPHIR_CALL_FUNCTION(&_1, "abs", &_2, 181, &_0); zephir_check_call_status(); limit = zephir_get_numberval(&_1); - if (unlikely(limit == 0)) { + if (UNEXPECTED(limit == 0)) { RETURN_THIS(); } if (zephir_is_numeric(offset)) { ZVAL_LONG(&_3$$4, zephir_get_intval(offset)); - ZEPHIR_CALL_FUNCTION(offset, "abs", &_2, 199, &_3$$4); + ZEPHIR_CALL_FUNCTION(offset, "abs", &_2, 181, &_3$$4); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_4$$4); zephir_create_array(&_4$$4, 2, 0 TSRMLS_CC); @@ -101300,11 +99821,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, fromInput) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 1, &dependencyInjector, &modelName_param, &data_param, &operator_param); - if (unlikely(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'modelName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(modelName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(modelName_param) == IS_STRING)) { zephir_get_strval(&modelName, modelName_param); } else { ZEPHIR_INIT_VAR(&modelName); @@ -101315,11 +99836,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, fromInput) { ZEPHIR_INIT_VAR(&operator); ZVAL_STRING(&operator, "AND"); } else { - if (unlikely(Z_TYPE_P(operator_param) != IS_STRING && Z_TYPE_P(operator_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(operator_param) != IS_STRING && Z_TYPE_P(operator_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'operator' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(operator_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(operator_param) == IS_STRING)) { zephir_get_strval(&operator, operator_param); } else { ZEPHIR_INIT_VAR(&operator); @@ -101408,12 +99929,12 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, fromInput) { ZEPHIR_INIT_VAR(&_13$$10); ZEPHIR_CONCAT_SVS(&_13$$10, " ", &operator, " "); zephir_fast_join(&_12$$10, &_13$$10, &conditions TSRMLS_CC); - ZEPHIR_CALL_METHOD(NULL, &criteria, "where", NULL, 327, &_12$$10); + ZEPHIR_CALL_METHOD(NULL, &criteria, "where", NULL, 296, &_12$$10); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, &criteria, "bind", NULL, 328, &bind); + ZEPHIR_CALL_METHOD(NULL, &criteria, "bind", NULL, 297, &bind); zephir_check_call_status(); } - ZEPHIR_CALL_METHOD(NULL, &criteria, "setmodelname", NULL, 317, &modelName); + ZEPHIR_CALL_METHOD(NULL, &criteria, "setmodelname", NULL, 286, &modelName); zephir_check_call_status(); RETURN_CCTOR(criteria); @@ -101749,11 +100270,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, isInitialized) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &modelName_param); - if (unlikely(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'modelName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(modelName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(modelName_param) == IS_STRING)) { zephir_get_strval(&modelName, modelName_param); } else { ZEPHIR_INIT_VAR(&modelName); @@ -101807,11 +100328,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, load) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &modelName_param, &newInstance_param); - if (unlikely(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'modelName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(modelName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(modelName_param) == IS_STRING)) { zephir_get_strval(&modelName, modelName_param); } else { ZEPHIR_INIT_VAR(&modelName); @@ -101846,7 +100367,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, load) { object_init_ex(&_4$$4, phalcon_mvc_model_exception_ce); ZEPHIR_INIT_VAR(&_5$$4); ZEPHIR_CONCAT_SVS(&_5$$4, "Model '", &modelName, "' could not be loaded"); - ZEPHIR_CALL_METHOD(NULL, &_4$$4, "__construct", NULL, 9, &_5$$4); + ZEPHIR_CALL_METHOD(NULL, &_4$$4, "__construct", NULL, 4, &_5$$4); zephir_check_call_status(); zephir_throw_exception_debug(&_4$$4, "phalcon/mvc/model/manager.zep", 296 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -101889,11 +100410,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, setModelSource) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &model, &source_param); - if (unlikely(Z_TYPE_P(source_param) != IS_STRING && Z_TYPE_P(source_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(source_param) != IS_STRING && Z_TYPE_P(source_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'source' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(source_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(source_param) == IS_STRING)) { zephir_get_strval(&source, source_param); } else { ZEPHIR_INIT_VAR(&source); @@ -101933,7 +100454,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, isVisibleModelProperty) { zephir_get_class(&className, model, 0 TSRMLS_CC); zephir_read_property(&_0, this_ptr, SL("_modelVisibility"), PH_NOISY_CC | PH_READONLY); if (!(zephir_array_isset(&_0, &className))) { - ZEPHIR_CALL_FUNCTION(&_1$$3, "get_object_vars", NULL, 21, model); + ZEPHIR_CALL_FUNCTION(&_1$$3, "get_object_vars", NULL, 16, model); zephir_check_call_status(); zephir_update_property_array(this_ptr, SL("_modelVisibility"), &className, &_1$$3 TSRMLS_CC); } @@ -101991,11 +100512,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, setModelSchema) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &model, &schema_param); - if (unlikely(Z_TYPE_P(schema_param) != IS_STRING && Z_TYPE_P(schema_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schema_param) != IS_STRING && Z_TYPE_P(schema_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schema' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schema_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schema_param) == IS_STRING)) { zephir_get_strval(&schema, schema_param); } else { ZEPHIR_INIT_VAR(&schema); @@ -102048,11 +100569,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, setConnectionService) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &model, &connectionService_param); - if (unlikely(Z_TYPE_P(connectionService_param) != IS_STRING && Z_TYPE_P(connectionService_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(connectionService_param) != IS_STRING && Z_TYPE_P(connectionService_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'connectionService' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(connectionService_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(connectionService_param) == IS_STRING)) { zephir_get_strval(&connectionService, connectionService_param); } else { ZEPHIR_INIT_VAR(&connectionService); @@ -102081,11 +100602,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, setWriteConnectionService) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &model, &connectionService_param); - if (unlikely(Z_TYPE_P(connectionService_param) != IS_STRING && Z_TYPE_P(connectionService_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(connectionService_param) != IS_STRING && Z_TYPE_P(connectionService_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'connectionService' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(connectionService_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(connectionService_param) == IS_STRING)) { zephir_get_strval(&connectionService, connectionService_param); } else { ZEPHIR_INIT_VAR(&connectionService); @@ -102113,11 +100634,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, setReadConnectionService) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &model, &connectionService_param); - if (unlikely(Z_TYPE_P(connectionService_param) != IS_STRING && Z_TYPE_P(connectionService_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(connectionService_param) != IS_STRING && Z_TYPE_P(connectionService_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'connectionService' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(connectionService_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(connectionService_param) == IS_STRING)) { zephir_get_strval(&connectionService, connectionService_param); } else { ZEPHIR_INIT_VAR(&connectionService); @@ -102302,11 +100823,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, notifyEvent) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &eventName_param, &model); - if (unlikely(Z_TYPE_P(eventName_param) != IS_STRING && Z_TYPE_P(eventName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(eventName_param) != IS_STRING && Z_TYPE_P(eventName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'eventName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(eventName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(eventName_param) == IS_STRING)) { zephir_get_strval(&eventName, eventName_param); } else { ZEPHIR_INIT_VAR(&eventName); @@ -102383,11 +100904,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, missingMethod) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &model, &eventName_param, &data); - if (unlikely(Z_TYPE_P(eventName_param) != IS_STRING && Z_TYPE_P(eventName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(eventName_param) != IS_STRING && Z_TYPE_P(eventName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'eventName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(eventName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(eventName_param) == IS_STRING)) { zephir_get_strval(&eventName, eventName_param); } else { ZEPHIR_INIT_VAR(&eventName); @@ -102592,11 +101113,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, addHasOne) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 4, 1, &model, &fields, &referencedModel_param, &referencedFields, &options); - if (unlikely(Z_TYPE_P(referencedModel_param) != IS_STRING && Z_TYPE_P(referencedModel_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(referencedModel_param) != IS_STRING && Z_TYPE_P(referencedModel_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'referencedModel' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(referencedModel_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(referencedModel_param) == IS_STRING)) { zephir_get_strval(&referencedModel, referencedModel_param); } else { ZEPHIR_INIT_VAR(&referencedModel); @@ -102629,7 +101150,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, addHasOne) { ZEPHIR_INIT_VAR(&relation); object_init_ex(&relation, phalcon_mvc_model_relation_ce); ZVAL_LONG(&_1, 1); - ZEPHIR_CALL_METHOD(NULL, &relation, "__construct", NULL, 329, &_1, &referencedModel, fields, referencedFields, options); + ZEPHIR_CALL_METHOD(NULL, &relation, "__construct", NULL, 298, &_1, &referencedModel, fields, referencedFields, options); zephir_check_call_status(); ZEPHIR_OBS_VAR(&alias); if (zephir_array_isset_string_fetch(&alias, options, SL("alias"), 0)) { @@ -102687,11 +101208,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, addBelongsTo) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 4, 1, &model, &fields, &referencedModel_param, &referencedFields, &options); - if (unlikely(Z_TYPE_P(referencedModel_param) != IS_STRING && Z_TYPE_P(referencedModel_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(referencedModel_param) != IS_STRING && Z_TYPE_P(referencedModel_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'referencedModel' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(referencedModel_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(referencedModel_param) == IS_STRING)) { zephir_get_strval(&referencedModel, referencedModel_param); } else { ZEPHIR_INIT_VAR(&referencedModel); @@ -102724,7 +101245,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, addBelongsTo) { ZEPHIR_INIT_VAR(&relation); object_init_ex(&relation, phalcon_mvc_model_relation_ce); ZVAL_LONG(&_1, 0); - ZEPHIR_CALL_METHOD(NULL, &relation, "__construct", NULL, 329, &_1, &referencedModel, fields, referencedFields, options); + ZEPHIR_CALL_METHOD(NULL, &relation, "__construct", NULL, 298, &_1, &referencedModel, fields, referencedFields, options); zephir_check_call_status(); ZEPHIR_OBS_VAR(&alias); if (zephir_array_isset_string_fetch(&alias, options, SL("alias"), 0)) { @@ -102782,11 +101303,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, addHasMany) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 4, 1, &model, &fields, &referencedModel_param, &referencedFields, &options); - if (unlikely(Z_TYPE_P(referencedModel_param) != IS_STRING && Z_TYPE_P(referencedModel_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(referencedModel_param) != IS_STRING && Z_TYPE_P(referencedModel_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'referencedModel' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(referencedModel_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(referencedModel_param) == IS_STRING)) { zephir_get_strval(&referencedModel, referencedModel_param); } else { ZEPHIR_INIT_VAR(&referencedModel); @@ -102820,7 +101341,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, addHasMany) { ZEPHIR_INIT_VAR(&relation); object_init_ex(&relation, phalcon_mvc_model_relation_ce); ZVAL_LONG(&_0, 2); - ZEPHIR_CALL_METHOD(NULL, &relation, "__construct", NULL, 329, &_0, &referencedModel, fields, referencedFields, options); + ZEPHIR_CALL_METHOD(NULL, &relation, "__construct", NULL, 298, &_0, &referencedModel, fields, referencedFields, options); zephir_check_call_status(); ZEPHIR_OBS_VAR(&alias); if (zephir_array_isset_string_fetch(&alias, options, SL("alias"), 0)) { @@ -102882,21 +101403,21 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, addHasManyToMany) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 7, 1, &model, &fields, &intermediateModel_param, &intermediateFields, &intermediateReferencedFields, &referencedModel_param, &referencedFields, &options); - if (unlikely(Z_TYPE_P(intermediateModel_param) != IS_STRING && Z_TYPE_P(intermediateModel_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(intermediateModel_param) != IS_STRING && Z_TYPE_P(intermediateModel_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'intermediateModel' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(intermediateModel_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(intermediateModel_param) == IS_STRING)) { zephir_get_strval(&intermediateModel, intermediateModel_param); } else { ZEPHIR_INIT_VAR(&intermediateModel); ZVAL_EMPTY_STRING(&intermediateModel); } - if (unlikely(Z_TYPE_P(referencedModel_param) != IS_STRING && Z_TYPE_P(referencedModel_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(referencedModel_param) != IS_STRING && Z_TYPE_P(referencedModel_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'referencedModel' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(referencedModel_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(referencedModel_param) == IS_STRING)) { zephir_get_strval(&referencedModel, referencedModel_param); } else { ZEPHIR_INIT_VAR(&referencedModel); @@ -102938,9 +101459,9 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, addHasManyToMany) { ZEPHIR_INIT_VAR(&relation); object_init_ex(&relation, phalcon_mvc_model_relation_ce); ZVAL_LONG(&_0, 4); - ZEPHIR_CALL_METHOD(NULL, &relation, "__construct", NULL, 329, &_0, &referencedModel, fields, referencedFields, options); + ZEPHIR_CALL_METHOD(NULL, &relation, "__construct", NULL, 298, &_0, &referencedModel, fields, referencedFields, options); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, &relation, "setintermediaterelation", NULL, 330, intermediateFields, &intermediateModel, intermediateReferencedFields); + ZEPHIR_CALL_METHOD(NULL, &relation, "setintermediaterelation", NULL, 299, intermediateFields, &intermediateModel, intermediateReferencedFields); zephir_check_call_status(); ZEPHIR_OBS_VAR(&alias); if (zephir_array_isset_string_fetch(&alias, options, SL("alias"), 0)) { @@ -102988,21 +101509,21 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, existsBelongsTo) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &modelName_param, &modelRelation_param); - if (unlikely(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'modelName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(modelName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(modelName_param) == IS_STRING)) { zephir_get_strval(&modelName, modelName_param); } else { ZEPHIR_INIT_VAR(&modelName); ZVAL_EMPTY_STRING(&modelName); } - if (unlikely(Z_TYPE_P(modelRelation_param) != IS_STRING && Z_TYPE_P(modelRelation_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(modelRelation_param) != IS_STRING && Z_TYPE_P(modelRelation_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'modelRelation' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(modelRelation_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(modelRelation_param) == IS_STRING)) { zephir_get_strval(&modelRelation, modelRelation_param); } else { ZEPHIR_INIT_VAR(&modelRelation); @@ -103044,21 +101565,21 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, existsHasMany) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &modelName_param, &modelRelation_param); - if (unlikely(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'modelName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(modelName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(modelName_param) == IS_STRING)) { zephir_get_strval(&modelName, modelName_param); } else { ZEPHIR_INIT_VAR(&modelName); ZVAL_EMPTY_STRING(&modelName); } - if (unlikely(Z_TYPE_P(modelRelation_param) != IS_STRING && Z_TYPE_P(modelRelation_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(modelRelation_param) != IS_STRING && Z_TYPE_P(modelRelation_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'modelRelation' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(modelRelation_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(modelRelation_param) == IS_STRING)) { zephir_get_strval(&modelRelation, modelRelation_param); } else { ZEPHIR_INIT_VAR(&modelRelation); @@ -103100,21 +101621,21 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, existsHasOne) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &modelName_param, &modelRelation_param); - if (unlikely(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'modelName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(modelName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(modelName_param) == IS_STRING)) { zephir_get_strval(&modelName, modelName_param); } else { ZEPHIR_INIT_VAR(&modelName); ZVAL_EMPTY_STRING(&modelName); } - if (unlikely(Z_TYPE_P(modelRelation_param) != IS_STRING && Z_TYPE_P(modelRelation_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(modelRelation_param) != IS_STRING && Z_TYPE_P(modelRelation_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'modelRelation' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(modelRelation_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(modelRelation_param) == IS_STRING)) { zephir_get_strval(&modelRelation, modelRelation_param); } else { ZEPHIR_INIT_VAR(&modelRelation); @@ -103156,21 +101677,21 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, existsHasManyToMany) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &modelName_param, &modelRelation_param); - if (unlikely(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'modelName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(modelName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(modelName_param) == IS_STRING)) { zephir_get_strval(&modelName, modelName_param); } else { ZEPHIR_INIT_VAR(&modelName); ZVAL_EMPTY_STRING(&modelName); } - if (unlikely(Z_TYPE_P(modelRelation_param) != IS_STRING && Z_TYPE_P(modelRelation_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(modelRelation_param) != IS_STRING && Z_TYPE_P(modelRelation_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'modelRelation' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(modelRelation_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(modelRelation_param) == IS_STRING)) { zephir_get_strval(&modelRelation, modelRelation_param); } else { ZEPHIR_INIT_VAR(&modelRelation); @@ -103210,21 +101731,21 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, getRelationByAlias) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &modelName_param, &alias_param); - if (unlikely(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'modelName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(modelName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(modelName_param) == IS_STRING)) { zephir_get_strval(&modelName, modelName_param); } else { ZEPHIR_INIT_VAR(&modelName); ZVAL_EMPTY_STRING(&modelName); } - if (unlikely(Z_TYPE_P(alias_param) != IS_STRING && Z_TYPE_P(alias_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(alias_param) != IS_STRING && Z_TYPE_P(alias_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'alias' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(alias_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(alias_param) == IS_STRING)) { zephir_get_strval(&alias, alias_param); } else { ZEPHIR_INIT_VAR(&alias); @@ -103454,11 +101975,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, getRelationRecords) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 1, &relation, &method_param, &record, ¶meters); - if (unlikely(Z_TYPE_P(method_param) != IS_STRING && Z_TYPE_P(method_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(method_param) != IS_STRING && Z_TYPE_P(method_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'method' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(method_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(method_param) == IS_STRING)) { zephir_get_strval(&method, method_param); } else { ZEPHIR_INIT_VAR(&method); @@ -103512,7 +102033,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, getRelationRecords) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Not supported", "phalcon/mvc/model/manager.zep", 1254); return; } - ZEPHIR_CALL_METHOD(&_5$$3, this_ptr, "_mergefindparameters", &_6, 331, &extraParameters, parameters); + ZEPHIR_CALL_METHOD(&_5$$3, this_ptr, "_mergefindparameters", &_6, 300, &extraParameters, parameters); zephir_check_call_status(); ZEPHIR_CALL_METHOD(&builder, this_ptr, "createbuilder", NULL, 0, &_5$$3); zephir_check_call_status(); @@ -103600,10 +102121,10 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, getRelationRecords) { ZEPHIR_CALL_METHOD(&_26, record, "getdi", NULL, 0); zephir_check_call_status(); zephir_array_update_string(&findParams, SL("di"), &_26, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(&findArguments, this_ptr, "_mergefindparameters", &_6, 331, &findParams, parameters); + ZEPHIR_CALL_METHOD(&findArguments, this_ptr, "_mergefindparameters", &_6, 300, &findParams, parameters); zephir_check_call_status(); if (Z_TYPE_P(&extraParameters) == IS_ARRAY) { - ZEPHIR_CALL_METHOD(&findParams, this_ptr, "_mergefindparameters", &_6, 331, &findArguments, &extraParameters); + ZEPHIR_CALL_METHOD(&findParams, this_ptr, "_mergefindparameters", &_6, 300, &findArguments, &extraParameters); zephir_check_call_status(); } else { ZEPHIR_CPY_WRT(&findParams, &findArguments); @@ -103679,21 +102200,21 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, getReusableRecords) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &modelName_param, &key_param); - if (unlikely(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'modelName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(modelName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(modelName_param) == IS_STRING)) { zephir_get_strval(&modelName, modelName_param); } else { ZEPHIR_INIT_VAR(&modelName); ZVAL_EMPTY_STRING(&modelName); } - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(&key, key_param); } else { ZEPHIR_INIT_VAR(&key); @@ -103722,21 +102243,21 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, setReusableRecords) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &modelName_param, &key_param, &records); - if (unlikely(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'modelName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(modelName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(modelName_param) == IS_STRING)) { zephir_get_strval(&modelName, modelName_param); } else { ZEPHIR_INIT_VAR(&modelName); ZVAL_EMPTY_STRING(&modelName); } - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(&key, key_param); } else { ZEPHIR_INIT_VAR(&key); @@ -103784,21 +102305,21 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, getBelongsToRecords) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 4, 1, &method_param, &modelName_param, &modelRelation, &record, ¶meters); - if (unlikely(Z_TYPE_P(method_param) != IS_STRING && Z_TYPE_P(method_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(method_param) != IS_STRING && Z_TYPE_P(method_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'method' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(method_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(method_param) == IS_STRING)) { zephir_get_strval(&method, method_param); } else { ZEPHIR_INIT_VAR(&method); ZVAL_EMPTY_STRING(&method); } - if (unlikely(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'modelName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(modelName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(modelName_param) == IS_STRING)) { zephir_get_strval(&modelName, modelName_param); } else { ZEPHIR_INIT_VAR(&modelName); @@ -103851,21 +102372,21 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, getHasManyRecords) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 4, 1, &method_param, &modelName_param, &modelRelation, &record, ¶meters); - if (unlikely(Z_TYPE_P(method_param) != IS_STRING && Z_TYPE_P(method_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(method_param) != IS_STRING && Z_TYPE_P(method_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'method' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(method_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(method_param) == IS_STRING)) { zephir_get_strval(&method, method_param); } else { ZEPHIR_INIT_VAR(&method); ZVAL_EMPTY_STRING(&method); } - if (unlikely(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'modelName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(modelName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(modelName_param) == IS_STRING)) { zephir_get_strval(&modelName, modelName_param); } else { ZEPHIR_INIT_VAR(&modelName); @@ -103918,21 +102439,21 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, getHasOneRecords) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 4, 1, &method_param, &modelName_param, &modelRelation, &record, ¶meters); - if (unlikely(Z_TYPE_P(method_param) != IS_STRING && Z_TYPE_P(method_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(method_param) != IS_STRING && Z_TYPE_P(method_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'method' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(method_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(method_param) == IS_STRING)) { zephir_get_strval(&method, method_param); } else { ZEPHIR_INIT_VAR(&method); ZVAL_EMPTY_STRING(&method); } - if (unlikely(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'modelName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(modelName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(modelName_param) == IS_STRING)) { zephir_get_strval(&modelName, modelName_param); } else { ZEPHIR_INIT_VAR(&modelName); @@ -104108,11 +102629,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, getRelations) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &modelName_param); - if (unlikely(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'modelName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(modelName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(modelName_param) == IS_STRING)) { zephir_get_strval(&modelName, modelName_param); } else { ZEPHIR_INIT_VAR(&modelName); @@ -104183,21 +102704,21 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, getRelationsBetween) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &first_param, &second_param); - if (unlikely(Z_TYPE_P(first_param) != IS_STRING && Z_TYPE_P(first_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(first_param) != IS_STRING && Z_TYPE_P(first_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'first' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(first_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(first_param) == IS_STRING)) { zephir_get_strval(&first, first_param); } else { ZEPHIR_INIT_VAR(&first); ZVAL_EMPTY_STRING(&first); } - if (unlikely(Z_TYPE_P(second_param) != IS_STRING && Z_TYPE_P(second_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(second_param) != IS_STRING && Z_TYPE_P(second_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'second' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(second_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(second_param) == IS_STRING)) { zephir_get_strval(&second, second_param); } else { ZEPHIR_INIT_VAR(&second); @@ -104248,11 +102769,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, createQuery) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &phql_param); - if (unlikely(Z_TYPE_P(phql_param) != IS_STRING && Z_TYPE_P(phql_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(phql_param) != IS_STRING && Z_TYPE_P(phql_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'phql' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(phql_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(phql_param) == IS_STRING)) { zephir_get_strval(&phql, phql_param); } else { ZEPHIR_INIT_VAR(&phql); @@ -104296,11 +102817,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, executeQuery) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &phql_param, &placeholders, &types); - if (unlikely(Z_TYPE_P(phql_param) != IS_STRING && Z_TYPE_P(phql_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(phql_param) != IS_STRING && Z_TYPE_P(phql_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'phql' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(phql_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(phql_param) == IS_STRING)) { zephir_get_strval(&phql, phql_param); } else { ZEPHIR_INIT_VAR(&phql); @@ -104420,11 +102941,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, getNamespaceAlias) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &alias_param); - if (unlikely(Z_TYPE_P(alias_param) != IS_STRING && Z_TYPE_P(alias_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(alias_param) != IS_STRING && Z_TYPE_P(alias_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'alias' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(alias_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(alias_param) == IS_STRING)) { zephir_get_strval(&alias, alias_param); } else { ZEPHIR_INIT_VAR(&alias); @@ -104441,7 +102962,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, getNamespaceAlias) { object_init_ex(&_1, phalcon_mvc_model_exception_ce); ZEPHIR_INIT_VAR(&_2); ZEPHIR_CONCAT_SVS(&_2, "Namespace alias '", &alias, "' is not registered"); - ZEPHIR_CALL_METHOD(NULL, &_1, "__construct", NULL, 9, &_2); + ZEPHIR_CALL_METHOD(NULL, &_1, "__construct", NULL, 4, &_2); zephir_check_call_status(); zephir_throw_exception_debug(&_1, "phalcon/mvc/model/manager.zep", 1708 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -104468,7 +102989,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, __destruct) { ZEPHIR_MM_GROW(); phalcon_orm_destroy_cache(TSRMLS_C); - ZEPHIR_CALL_CE_STATIC(NULL, phalcon_mvc_model_query_ce, "clean", &_0, 332); + ZEPHIR_CALL_CE_STATIC(NULL, phalcon_mvc_model_query_ce, "clean", &_0, 0); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -104637,11 +103158,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Message, __construct) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 4, &message_param, &field, &type, &model, &code_param); - if (unlikely(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'message' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(message_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(message_param) == IS_STRING)) { zephir_get_strval(&message, message_param); } else { ZEPHIR_INIT_VAR(&message); @@ -104690,11 +103211,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Message, setType) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &type_param); - if (unlikely(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'type' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(type_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(type_param) == IS_STRING)) { zephir_get_strval(&type, type_param); } else { ZEPHIR_INIT_VAR(&type); @@ -104727,11 +103248,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Message, setMessage) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &message_param); - if (unlikely(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'message' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(message_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(message_param) == IS_STRING)) { zephir_get_strval(&message, message_param); } else { ZEPHIR_INIT_VAR(&message); @@ -104865,7 +103386,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Message, __set_state) { zephir_array_fetch_string(&_1, &message, SL("_field"), PH_NOISY | PH_READONLY, "phalcon/mvc/model/message.zep", 182 TSRMLS_CC); zephir_array_fetch_string(&_2, &message, SL("_type"), PH_NOISY | PH_READONLY, "phalcon/mvc/model/message.zep", 182 TSRMLS_CC); zephir_array_fetch_string(&_3, &message, SL("_code"), PH_NOISY | PH_READONLY, "phalcon/mvc/model/message.zep", 182 TSRMLS_CC); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 8, &_0, &_1, &_2, &_3); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 3, &_0, &_1, &_2, &_3); zephir_check_call_status(); RETURN_MM(); @@ -105017,7 +103538,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData, _initialize) { object_init_ex(&_0$$8, phalcon_mvc_model_exception_ce); ZEPHIR_INIT_VAR(&_1$$8); ZEPHIR_CONCAT_SV(&_1$$8, "Invalid meta-data for model ", &className); - ZEPHIR_CALL_METHOD(NULL, &_0$$8, "__construct", NULL, 9, &_1$$8); + ZEPHIR_CALL_METHOD(NULL, &_0$$8, "__construct", NULL, 4, &_1$$8); zephir_check_call_status(); zephir_throw_exception_debug(&_0$$8, "phalcon/mvc/model/metadata.zep", 122 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -105164,7 +103685,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData, readMetaData) { ZEPHIR_CONCAT_VSVV(&key, &_0, "-", &schema, &source); zephir_read_property(&_1, this_ptr, SL("_metaData"), PH_NOISY_CC | PH_READONLY); if (!(zephir_array_isset(&_1, &key))) { - ZEPHIR_CALL_METHOD(NULL, this_ptr, "_initialize", NULL, 10, model, &key, &source, &schema); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "_initialize", NULL, 5, model, &key, &source, &schema); zephir_check_call_status(); } zephir_read_property(&_2, this_ptr, SL("_metaData"), PH_NOISY_CC | PH_READONLY); @@ -105207,7 +103728,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData, readMetaDataIndex) { zephir_read_property(&_1, this_ptr, SL("_metaData"), PH_NOISY_CC | PH_READONLY); zephir_array_fetch(&_2, &_1, &key, PH_READONLY, "phalcon/mvc/model/metadata.zep", 281 TSRMLS_CC); if (!(zephir_array_isset_long(&_2, index))) { - ZEPHIR_CALL_METHOD(NULL, this_ptr, "_initialize", NULL, 10, model, &key, &source, &schema); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "_initialize", NULL, 5, model, &key, &source, &schema); zephir_check_call_status(); } zephir_read_property(&_3, this_ptr, SL("_metaData"), PH_NOISY_CC | PH_READONLY); @@ -105260,7 +103781,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData, writeMetaDataIndex) { ZEPHIR_CONCAT_VSVV(&key, &_2, "-", &schema, &source); zephir_read_property(&_3, this_ptr, SL("_metaData"), PH_NOISY_CC | PH_READONLY); if (!(zephir_array_isset(&_3, &key))) { - ZEPHIR_CALL_METHOD(NULL, this_ptr, "_initialize", NULL, 10, model, &key, &source, &schema); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "_initialize", NULL, 5, model, &key, &source, &schema); zephir_check_call_status(); } zephir_update_property_array_multi(this_ptr, SL("_metaData"), data TSRMLS_CC, SL("zl"), 2, &key, index); @@ -105298,7 +103819,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData, readColumnMap) { ZVAL_NULL(&_1$$4); ZVAL_NULL(&_2$$4); ZVAL_NULL(&_3$$4); - ZEPHIR_CALL_METHOD(NULL, this_ptr, "_initialize", NULL, 10, model, &_1$$4, &_2$$4, &_3$$4); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "_initialize", NULL, 5, model, &_1$$4, &_2$$4, &_3$$4); zephir_check_call_status(); zephir_read_property(&_1$$4, this_ptr, SL("_columnMap"), PH_NOISY_CC | PH_READONLY); ZEPHIR_OBS_NVAR(&data); @@ -105340,7 +103861,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData, readColumnMapIndex) { ZVAL_NULL(&_1$$4); ZVAL_NULL(&_2$$4); ZVAL_NULL(&_3$$4); - ZEPHIR_CALL_METHOD(NULL, this_ptr, "_initialize", NULL, 10, model, &_1$$4, &_2$$4, &_3$$4); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "_initialize", NULL, 5, model, &_1$$4, &_2$$4, &_3$$4); zephir_check_call_status(); zephir_read_property(&_1$$4, this_ptr, SL("_columnMap"), PH_NOISY_CC | PH_READONLY); ZEPHIR_OBS_NVAR(&columnMapModel); @@ -105367,7 +103888,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData, getAttributes) { ZVAL_LONG(&_0, 0); - ZEPHIR_CALL_METHOD(&data, this_ptr, "readmetadataindex", NULL, 11, model, &_0); + ZEPHIR_CALL_METHOD(&data, this_ptr, "readmetadataindex", NULL, 6, model, &_0); zephir_check_call_status(); if (Z_TYPE_P(&data) != IS_ARRAY) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The meta-data is invalid or is corrupt", "phalcon/mvc/model/metadata.zep", 402); @@ -105393,7 +103914,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData, getPrimaryKeyAttributes) { ZVAL_LONG(&_0, 1); - ZEPHIR_CALL_METHOD(&data, this_ptr, "readmetadataindex", NULL, 11, model, &_0); + ZEPHIR_CALL_METHOD(&data, this_ptr, "readmetadataindex", NULL, 6, model, &_0); zephir_check_call_status(); if (Z_TYPE_P(&data) != IS_ARRAY) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The meta-data is invalid or is corrupt", "phalcon/mvc/model/metadata.zep", 423); @@ -105419,7 +103940,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData, getNonPrimaryKeyAttributes) { ZVAL_LONG(&_0, 2); - ZEPHIR_CALL_METHOD(&data, this_ptr, "readmetadataindex", NULL, 11, model, &_0); + ZEPHIR_CALL_METHOD(&data, this_ptr, "readmetadataindex", NULL, 6, model, &_0); zephir_check_call_status(); if (Z_TYPE_P(&data) != IS_ARRAY) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The meta-data is invalid or is corrupt", "phalcon/mvc/model/metadata.zep", 444); @@ -105445,7 +103966,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData, getNotNullAttributes) { ZVAL_LONG(&_0, 3); - ZEPHIR_CALL_METHOD(&data, this_ptr, "readmetadataindex", NULL, 11, model, &_0); + ZEPHIR_CALL_METHOD(&data, this_ptr, "readmetadataindex", NULL, 6, model, &_0); zephir_check_call_status(); if (Z_TYPE_P(&data) != IS_ARRAY) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The meta-data is invalid or is corrupt", "phalcon/mvc/model/metadata.zep", 465); @@ -105471,7 +103992,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData, getDataTypes) { ZVAL_LONG(&_0, 4); - ZEPHIR_CALL_METHOD(&data, this_ptr, "readmetadataindex", NULL, 11, model, &_0); + ZEPHIR_CALL_METHOD(&data, this_ptr, "readmetadataindex", NULL, 6, model, &_0); zephir_check_call_status(); if (Z_TYPE_P(&data) != IS_ARRAY) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The meta-data is invalid or is corrupt", "phalcon/mvc/model/metadata.zep", 486); @@ -105497,7 +104018,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData, getDataTypesNumeric) { ZVAL_LONG(&_0, 5); - ZEPHIR_CALL_METHOD(&data, this_ptr, "readmetadataindex", NULL, 11, model, &_0); + ZEPHIR_CALL_METHOD(&data, this_ptr, "readmetadataindex", NULL, 6, model, &_0); zephir_check_call_status(); if (Z_TYPE_P(&data) != IS_ARRAY) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The meta-data is invalid or is corrupt", "phalcon/mvc/model/metadata.zep", 507); @@ -105522,7 +104043,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData, getIdentityField) { ZVAL_LONG(&_0, 8); - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "readmetadataindex", NULL, 11, model, &_0); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "readmetadataindex", NULL, 6, model, &_0); zephir_check_call_status(); RETURN_MM(); @@ -105544,7 +104065,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData, getBindTypes) { ZVAL_LONG(&_0, 9); - ZEPHIR_CALL_METHOD(&data, this_ptr, "readmetadataindex", NULL, 11, model, &_0); + ZEPHIR_CALL_METHOD(&data, this_ptr, "readmetadataindex", NULL, 6, model, &_0); zephir_check_call_status(); if (Z_TYPE_P(&data) != IS_ARRAY) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The meta-data is invalid or is corrupt", "phalcon/mvc/model/metadata.zep", 547); @@ -105570,7 +104091,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData, getAutomaticCreateAttributes) { ZVAL_LONG(&_0, 10); - ZEPHIR_CALL_METHOD(&data, this_ptr, "readmetadataindex", NULL, 11, model, &_0); + ZEPHIR_CALL_METHOD(&data, this_ptr, "readmetadataindex", NULL, 6, model, &_0); zephir_check_call_status(); if (Z_TYPE_P(&data) != IS_ARRAY) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The meta-data is invalid or is corrupt", "phalcon/mvc/model/metadata.zep", 568); @@ -105596,7 +104117,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData, getAutomaticUpdateAttributes) { ZVAL_LONG(&_0, 11); - ZEPHIR_CALL_METHOD(&data, this_ptr, "readmetadataindex", NULL, 11, model, &_0); + ZEPHIR_CALL_METHOD(&data, this_ptr, "readmetadataindex", NULL, 6, model, &_0); zephir_check_call_status(); if (Z_TYPE_P(&data) != IS_ARRAY) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The meta-data is invalid or is corrupt", "phalcon/mvc/model/metadata.zep", 589); @@ -105624,7 +104145,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData, setAutomaticCreateAttributes) { ZVAL_LONG(&_0, 10); - ZEPHIR_CALL_METHOD(NULL, this_ptr, "writemetadataindex", NULL, 12, model, &_0, &attributes); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "writemetadataindex", NULL, 7, model, &_0, &attributes); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -105648,7 +104169,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData, setAutomaticUpdateAttributes) { ZVAL_LONG(&_0, 11); - ZEPHIR_CALL_METHOD(NULL, this_ptr, "writemetadataindex", NULL, 12, model, &_0, &attributes); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "writemetadataindex", NULL, 7, model, &_0, &attributes); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -105672,7 +104193,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData, setEmptyStringAttributes) { ZVAL_LONG(&_0, 13); - ZEPHIR_CALL_METHOD(NULL, this_ptr, "writemetadataindex", NULL, 12, model, &_0, &attributes); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "writemetadataindex", NULL, 7, model, &_0, &attributes); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -105694,7 +104215,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData, getEmptyStringAttributes) { ZVAL_LONG(&_0, 13); - ZEPHIR_CALL_METHOD(&data, this_ptr, "readmetadataindex", NULL, 11, model, &_0); + ZEPHIR_CALL_METHOD(&data, this_ptr, "readmetadataindex", NULL, 6, model, &_0); zephir_check_call_status(); if (Z_TYPE_P(&data) != IS_ARRAY) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The meta-data is invalid or is corrupt", "phalcon/mvc/model/metadata.zep", 661); @@ -105720,7 +104241,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData, getDefaultValues) { ZVAL_LONG(&_0, 12); - ZEPHIR_CALL_METHOD(&data, this_ptr, "readmetadataindex", NULL, 11, model, &_0); + ZEPHIR_CALL_METHOD(&data, this_ptr, "readmetadataindex", NULL, 6, model, &_0); zephir_check_call_status(); if (Z_TYPE_P(&data) != IS_ARRAY) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The meta-data is invalid or is corrupt", "phalcon/mvc/model/metadata.zep", 682); @@ -105747,7 +104268,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData, getColumnMap) { ZVAL_LONG(&_0, 0); - ZEPHIR_CALL_METHOD(&data, this_ptr, "readcolumnmapindex", NULL, 13, model, &_0); + ZEPHIR_CALL_METHOD(&data, this_ptr, "readcolumnmapindex", NULL, 8, model, &_0); zephir_check_call_status(); _1 = Z_TYPE_P(&data) != IS_NULL; if (_1) { @@ -105778,7 +104299,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData, getReverseColumnMap) { ZVAL_LONG(&_0, 1); - ZEPHIR_CALL_METHOD(&data, this_ptr, "readcolumnmapindex", NULL, 13, model, &_0); + ZEPHIR_CALL_METHOD(&data, this_ptr, "readcolumnmapindex", NULL, 8, model, &_0); zephir_check_call_status(); _1 = Z_TYPE_P(&data) != IS_NULL; if (_1) { @@ -105816,7 +104337,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData, hasAttribute) { if (Z_TYPE_P(&columnMap) == IS_ARRAY) { RETURN_MM_BOOL(zephir_array_isset(&columnMap, &attribute)); } else { - ZEPHIR_CALL_METHOD(&_0$$4, this_ptr, "readmetadata", NULL, 14, model); + ZEPHIR_CALL_METHOD(&_0$$4, this_ptr, "readmetadata", NULL, 9, model); zephir_check_call_status(); zephir_array_fetch_long(&_1$$4, &_0$$4, 4, PH_READONLY, "phalcon/mvc/model/metadata.zep", 751 TSRMLS_CC); RETURN_MM_BOOL(zephir_array_isset(&_1$$4, &attribute)); @@ -106294,7 +104815,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getQualified) { zephir_read_property(&_1$$5, this_ptr, SL("_phql"), PH_NOISY_CC | PH_READONLY); ZEPHIR_INIT_VAR(&_2$$5); ZEPHIR_CONCAT_SVSV(&_2$$5, "Unknown model or alias '", &columnDomain, "' (11), when preparing: ", &_1$$5); - ZEPHIR_CALL_METHOD(NULL, &_0$$5, "__construct", NULL, 9, &_2$$5); + ZEPHIR_CALL_METHOD(NULL, &_0$$5, "__construct", NULL, 4, &_2$$5); zephir_check_call_status(); zephir_throw_exception_debug(&_0$$5, "phalcon/mvc/model/query.zep", 227 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -106310,7 +104831,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getQualified) { zephir_read_property(&_4$$7, this_ptr, SL("_phql"), PH_NOISY_CC | PH_READONLY); ZEPHIR_INIT_VAR(&_5$$7); ZEPHIR_CONCAT_SVSV(&_5$$7, "There is no model related to model or alias '", &columnDomain, "', when executing: ", &_4$$7); - ZEPHIR_CALL_METHOD(NULL, &_3$$7, "__construct", NULL, 9, &_5$$7); + ZEPHIR_CALL_METHOD(NULL, &_3$$7, "__construct", NULL, 4, &_5$$7); zephir_check_call_status(); zephir_throw_exception_debug(&_3$$7, "phalcon/mvc/model/query.zep", 246 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -106330,7 +104851,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getQualified) { zephir_read_property(&_7$$10, this_ptr, SL("_phql"), PH_NOISY_CC | PH_READONLY); ZEPHIR_INIT_VAR(&_8$$10); ZEPHIR_CONCAT_SVSVSV(&_8$$10, "Column '", &columnName, "' doesn't belong to the model or alias '", &columnDomain, "', when executing: ", &_7$$10); - ZEPHIR_CALL_METHOD(NULL, &_6$$10, "__construct", NULL, 9, &_8$$10); + ZEPHIR_CALL_METHOD(NULL, &_6$$10, "__construct", NULL, 4, &_8$$10); zephir_check_call_status(); zephir_throw_exception_debug(&_6$$10, "phalcon/mvc/model/query.zep", 258 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -106359,7 +104880,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getQualified) { zephir_read_property(&_14$$15, this_ptr, SL("_phql"), PH_NOISY_CC | PH_READONLY); ZEPHIR_INIT_LNVAR(_15$$15); ZEPHIR_CONCAT_SVSV(&_15$$15, "The column '", &columnName, "' is ambiguous, when preparing: ", &_14$$15); - ZEPHIR_CALL_METHOD(NULL, &_13$$15, "__construct", NULL, 9, &_15$$15); + ZEPHIR_CALL_METHOD(NULL, &_13$$15, "__construct", NULL, 4, &_15$$15); zephir_check_call_status(); zephir_throw_exception_debug(&_13$$15, "phalcon/mvc/model/query.zep", 279 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -106375,7 +104896,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getQualified) { zephir_read_property(&_17$$16, this_ptr, SL("_phql"), PH_NOISY_CC | PH_READONLY); ZEPHIR_INIT_VAR(&_18$$16); ZEPHIR_CONCAT_SVSV(&_18$$16, "Column '", &columnName, "' doesn't belong to any of the selected models (1), when preparing: ", &_17$$16); - ZEPHIR_CALL_METHOD(NULL, &_16$$16, "__construct", NULL, 9, &_18$$16); + ZEPHIR_CALL_METHOD(NULL, &_16$$16, "__construct", NULL, 4, &_18$$16); zephir_check_call_status(); zephir_throw_exception_debug(&_16$$16, "phalcon/mvc/model/query.zep", 291 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -106396,7 +104917,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getQualified) { zephir_read_property(&_20$$18, this_ptr, SL("_phql"), PH_NOISY_CC | PH_READONLY); ZEPHIR_INIT_VAR(&_21$$18); ZEPHIR_CONCAT_SVSV(&_21$$18, "Can't obtain model's source from models list: '", &className, "', when preparing: ", &_20$$18); - ZEPHIR_CALL_METHOD(NULL, &_19$$18, "__construct", NULL, 9, &_21$$18); + ZEPHIR_CALL_METHOD(NULL, &_19$$18, "__construct", NULL, 4, &_21$$18); zephir_check_call_status(); zephir_throw_exception_debug(&_19$$18, "phalcon/mvc/model/query.zep", 309 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -106417,7 +104938,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getQualified) { zephir_read_property(&_23$$22, this_ptr, SL("_phql"), PH_NOISY_CC | PH_READONLY); ZEPHIR_INIT_VAR(&_24$$22); ZEPHIR_CONCAT_SVSV(&_24$$22, "Column '", &columnName, "' doesn't belong to any of the selected models (3), when preparing: ", &_23$$22); - ZEPHIR_CALL_METHOD(NULL, &_22$$22, "__construct", NULL, 9, &_24$$22); + ZEPHIR_CALL_METHOD(NULL, &_22$$22, "__construct", NULL, 4, &_24$$22); zephir_check_call_status(); zephir_throw_exception_debug(&_22$$22, "phalcon/mvc/model/query.zep", 328 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -106458,7 +104979,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getCallArgument) { add_assoc_stringl_ex(return_value, SL("type"), SL("all")); RETURN_MM(); } - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_getexpression", NULL, 338, &argument); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_getexpression", NULL, 305, &argument); zephir_check_call_status(); RETURN_MM(); @@ -106505,11 +105026,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getCaseExpression) { zephir_create_array(&_2$$4, 3, 0 TSRMLS_CC); add_assoc_stringl_ex(&_2$$4, SL("type"), SL("when")); zephir_array_fetch_string(&_4$$4, &whenExpr, SL("left"), PH_NOISY | PH_READONLY, "phalcon/mvc/model/query.zep", 369 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_3$$4, this_ptr, "_getexpression", &_5, 338, &_4$$4); + ZEPHIR_CALL_METHOD(&_3$$4, this_ptr, "_getexpression", &_5, 305, &_4$$4); zephir_check_call_status(); zephir_array_update_string(&_2$$4, SL("expr"), &_3$$4, PH_COPY | PH_SEPARATE); zephir_array_fetch_string(&_6$$4, &whenExpr, SL("right"), PH_NOISY | PH_READONLY, "phalcon/mvc/model/query.zep", 370 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_3$$4, this_ptr, "_getexpression", &_5, 338, &_6$$4); + ZEPHIR_CALL_METHOD(&_3$$4, this_ptr, "_getexpression", &_5, 305, &_6$$4); zephir_check_call_status(); zephir_array_update_string(&_2$$4, SL("then"), &_3$$4, PH_COPY | PH_SEPARATE); zephir_array_append(&whenClauses, &_2$$4, PH_SEPARATE, "phalcon/mvc/model/query.zep", 371); @@ -106518,7 +105039,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getCaseExpression) { zephir_create_array(&_7$$5, 2, 0 TSRMLS_CC); add_assoc_stringl_ex(&_7$$5, SL("type"), SL("else")); zephir_array_fetch_string(&_9$$5, &whenExpr, SL("left"), PH_NOISY | PH_READONLY, "phalcon/mvc/model/query.zep", 375 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_8$$5, this_ptr, "_getexpression", &_5, 338, &_9$$5); + ZEPHIR_CALL_METHOD(&_8$$5, this_ptr, "_getexpression", &_5, 305, &_9$$5); zephir_check_call_status(); zephir_array_update_string(&_7$$5, SL("expr"), &_8$$5, PH_COPY | PH_SEPARATE); zephir_array_append(&whenClauses, &_7$$5, PH_SEPARATE, "phalcon/mvc/model/query.zep", 376); @@ -106528,7 +105049,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getCaseExpression) { zephir_create_array(return_value, 3, 0 TSRMLS_CC); add_assoc_stringl_ex(return_value, SL("type"), SL("case")); zephir_array_fetch_string(&_11, &expr, SL("left"), PH_NOISY | PH_READONLY, "phalcon/mvc/model/query.zep", 382 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_10, this_ptr, "_getexpression", &_5, 338, &_11); + ZEPHIR_CALL_METHOD(&_10, this_ptr, "_getexpression", &_5, 305, &_11); zephir_check_call_status(); zephir_array_update_string(return_value, SL("expr"), &_10, PH_COPY | PH_SEPARATE); zephir_array_update_string(return_value, SL("when-clauses"), &whenClauses, PH_COPY | PH_SEPARATE); @@ -106576,14 +105097,14 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getFunctionCall) { { ZEPHIR_INIT_NVAR(&argument); ZVAL_COPY(&argument, _0$$6); - ZEPHIR_CALL_METHOD(&_1$$7, this_ptr, "_getcallargument", &_2, 339, &argument); + ZEPHIR_CALL_METHOD(&_1$$7, this_ptr, "_getcallargument", &_2, 306, &argument); zephir_check_call_status(); zephir_array_append(&functionArgs, &_1$$7, PH_SEPARATE, "phalcon/mvc/model/query.zep", 406); } ZEND_HASH_FOREACH_END(); ZEPHIR_INIT_NVAR(&argument); } else { zephir_create_array(&functionArgs, 1, 0 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_3$$8, this_ptr, "_getcallargument", &_2, 339, &arguments); + ZEPHIR_CALL_METHOD(&_3$$8, this_ptr, "_getcallargument", &_2, 306, &arguments); zephir_check_call_status(); zephir_array_fast_append(&functionArgs, &_3$$8); } @@ -106705,7 +105226,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getExpression) { } else { ZVAL_BOOL(&_0$$5, 0); } - ZEPHIR_CALL_METHOD(&left, this_ptr, "_getexpression", &_1, 338, &exprLeft, &_0$$5); + ZEPHIR_CALL_METHOD(&left, this_ptr, "_getexpression", &_1, 305, &exprLeft, &_0$$5); zephir_check_call_status(); } ZEPHIR_OBS_VAR(&exprRight); @@ -106715,7 +105236,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getExpression) { } else { ZVAL_BOOL(&_2$$6, 0); } - ZEPHIR_CALL_METHOD(&right, this_ptr, "_getexpression", &_1, 338, &exprRight, &_2$$6); + ZEPHIR_CALL_METHOD(&right, this_ptr, "_getexpression", &_1, 305, &exprRight, &_2$$6); zephir_check_call_status(); } } @@ -106793,7 +105314,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getExpression) { break; } if (ZEPHIR_IS_LONG(&exprType, 355)) { - ZEPHIR_CALL_METHOD(&exprReturn, this_ptr, "_getqualified", &_3, 340, expr); + ZEPHIR_CALL_METHOD(&exprReturn, this_ptr, "_getqualified", &_3, 307, expr); zephir_check_call_status(); break; } @@ -107034,7 +105555,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getExpression) { object_init_ex(&_24$$44, phalcon_mvc_model_exception_ce); ZEPHIR_INIT_VAR(&_25$$44); ZEPHIR_CONCAT_SV(&_25$$44, "Bind value is required for array type placeholder: ", &name); - ZEPHIR_CALL_METHOD(NULL, &_24$$44, "__construct", NULL, 9, &_25$$44); + ZEPHIR_CALL_METHOD(NULL, &_24$$44, "__construct", NULL, 4, &_25$$44); zephir_check_call_status(); zephir_throw_exception_debug(&_24$$44, "phalcon/mvc/model/query.zep", 632 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -107045,7 +105566,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getExpression) { object_init_ex(&_26$$45, phalcon_mvc_model_exception_ce); ZEPHIR_INIT_VAR(&_27$$45); ZEPHIR_CONCAT_SV(&_27$$45, "Bind type requires an array in placeholder: ", &name); - ZEPHIR_CALL_METHOD(NULL, &_26$$45, "__construct", NULL, 9, &_27$$45); + ZEPHIR_CALL_METHOD(NULL, &_26$$45, "__construct", NULL, 4, &_27$$45); zephir_check_call_status(); zephir_throw_exception_debug(&_26$$45, "phalcon/mvc/model/query.zep", 636 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -107056,7 +105577,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getExpression) { object_init_ex(&_28$$46, phalcon_mvc_model_exception_ce); ZEPHIR_INIT_VAR(&_29$$46); ZEPHIR_CONCAT_SV(&_29$$46, "At least one value must be bound in placeholder: ", &name); - ZEPHIR_CALL_METHOD(NULL, &_28$$46, "__construct", NULL, 9, &_29$$46); + ZEPHIR_CALL_METHOD(NULL, &_28$$46, "__construct", NULL, 4, &_29$$46); zephir_check_call_status(); zephir_throw_exception_debug(&_28$$46, "phalcon/mvc/model/query.zep", 640 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -107076,7 +105597,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getExpression) { object_init_ex(&_31$$47, phalcon_mvc_model_exception_ce); ZEPHIR_INIT_VAR(&_32$$47); ZEPHIR_CONCAT_SV(&_32$$47, "Unknown bind type: ", &bindType); - ZEPHIR_CALL_METHOD(NULL, &_31$$47, "__construct", NULL, 9, &_32$$47); + ZEPHIR_CALL_METHOD(NULL, &_31$$47, "__construct", NULL, 4, &_32$$47); zephir_check_call_status(); zephir_throw_exception_debug(&_31$$47, "phalcon/mvc/model/query.zep", 652 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -107238,12 +105759,12 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getExpression) { break; } if (ZEPHIR_IS_LONG(&exprType, 350)) { - ZEPHIR_CALL_METHOD(&exprReturn, this_ptr, "_getfunctioncall", NULL, 341, expr); + ZEPHIR_CALL_METHOD(&exprReturn, this_ptr, "_getfunctioncall", NULL, 308, expr); zephir_check_call_status(); break; } if (ZEPHIR_IS_LONG(&exprType, 409)) { - ZEPHIR_CALL_METHOD(&exprReturn, this_ptr, "_getcaseexpression", NULL, 342, expr); + ZEPHIR_CALL_METHOD(&exprReturn, this_ptr, "_getcaseexpression", NULL, 309, expr); zephir_check_call_status(); break; } @@ -107252,7 +105773,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getExpression) { zephir_create_array(&exprReturn, 2, 0 TSRMLS_CC); add_assoc_stringl_ex(&exprReturn, SL("type"), SL("select")); ZVAL_BOOL(&_36$$68, 1); - ZEPHIR_CALL_METHOD(&_35$$68, this_ptr, "_prepareselect", NULL, 343, expr, &_36$$68); + ZEPHIR_CALL_METHOD(&_35$$68, this_ptr, "_prepareselect", NULL, 310, expr, &_36$$68); zephir_check_call_status(); zephir_array_update_string(&exprReturn, SL("value"), &_35$$68, PH_COPY | PH_SEPARATE); break; @@ -107261,7 +105782,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getExpression) { object_init_ex(&_37$$69, phalcon_mvc_model_exception_ce); ZEPHIR_INIT_VAR(&_38$$69); ZEPHIR_CONCAT_SV(&_38$$69, "Unknown expression type ", &exprType); - ZEPHIR_CALL_METHOD(NULL, &_37$$69, "__construct", NULL, 9, &_38$$69); + ZEPHIR_CALL_METHOD(NULL, &_37$$69, "__construct", NULL, 4, &_38$$69); zephir_check_call_status(); zephir_throw_exception_debug(&_37$$69, "phalcon/mvc/model/query.zep", 741 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -107271,7 +105792,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getExpression) { RETURN_CCTOR(exprReturn); } if (zephir_array_isset_string(expr, SL("domain"))) { - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_getqualified", &_3, 340, expr); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_getqualified", &_3, 307, expr); zephir_check_call_status(); RETURN_MM(); } @@ -107283,7 +105804,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getExpression) { { ZEPHIR_INIT_NVAR(&exprListItem); ZVAL_COPY(&exprListItem, _39$$71); - ZEPHIR_CALL_METHOD(&_40$$72, this_ptr, "_getexpression", &_1, 338, &exprListItem); + ZEPHIR_CALL_METHOD(&_40$$72, this_ptr, "_getexpression", &_1, 305, &exprListItem); zephir_check_call_status(); zephir_array_append(&listItems, &_40$$72, PH_SEPARATE, "phalcon/mvc/model/query.zep", 760); } ZEND_HASH_FOREACH_END(); @@ -107367,7 +105888,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getSelectColumn) { add_assoc_stringl_ex(&sqlColumn, SL("type"), SL("object")); zephir_array_update_string(&sqlColumn, SL("model"), &modelName, PH_COPY | PH_SEPARATE); zephir_array_update_string(&sqlColumn, SL("column"), &source, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_FUNCTION(&_4$$5, "lcfirst", &_5, 68, &modelName); + ZEPHIR_CALL_FUNCTION(&_4$$5, "lcfirst", &_5, 62, &modelName); zephir_check_call_status(); zephir_array_update_string(&sqlColumn, SL("balias"), &_4$$5, PH_COPY | PH_SEPARATE); if (Z_TYPE_P(&eager) != IS_NULL) { @@ -107397,7 +105918,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getSelectColumn) { zephir_read_property(&_8$$9, this_ptr, SL("_phql"), PH_NOISY_CC | PH_READONLY); ZEPHIR_INIT_VAR(&_9$$9); ZEPHIR_CONCAT_SVSV(&_9$$9, "Unknown model or alias '", &columnDomain, "' (2), when preparing: ", &_8$$9); - ZEPHIR_CALL_METHOD(NULL, &_7$$9, "__construct", NULL, 9, &_9$$9); + ZEPHIR_CALL_METHOD(NULL, &_7$$9, "__construct", NULL, 4, &_9$$9); zephir_check_call_status(); zephir_throw_exception_debug(&_7$$9, "phalcon/mvc/model/query.zep", 829 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -107412,7 +105933,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getSelectColumn) { zephir_array_fetch(&modelName, &sqlAliasesModels, &columnDomain, PH_NOISY, "phalcon/mvc/model/query.zep", 843 TSRMLS_CC); if (Z_TYPE_P(&preparedAlias) != IS_STRING) { if (ZEPHIR_IS_EQUAL(&columnDomain, &modelName)) { - ZEPHIR_CALL_FUNCTION(&preparedAlias, "lcfirst", &_5, 68, &modelName); + ZEPHIR_CALL_FUNCTION(&preparedAlias, "lcfirst", &_5, 62, &modelName); zephir_check_call_status(); } else { ZEPHIR_CPY_WRT(&preparedAlias, &columnDomain); @@ -107438,7 +105959,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getSelectColumn) { add_assoc_stringl_ex(&sqlColumn, SL("type"), SL("scalar")); ZEPHIR_OBS_VAR(&columnData); zephir_array_fetch_string(&columnData, &column, SL("column"), PH_NOISY, "phalcon/mvc/model/query.zep", 886 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&sqlExprColumn, this_ptr, "_getexpression", NULL, 338, &columnData); + ZEPHIR_CALL_METHOD(&sqlExprColumn, this_ptr, "_getexpression", NULL, 305, &columnData); zephir_check_call_status(); ZEPHIR_OBS_VAR(&balias); if (zephir_array_isset_string_fetch(&balias, &sqlExprColumn, SL("balias"), 0)) { @@ -107458,7 +105979,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getSelectColumn) { object_init_ex(&_12, phalcon_mvc_model_exception_ce); ZEPHIR_INIT_VAR(&_13); ZEPHIR_CONCAT_SV(&_13, "Unknown type of column ", &columnType); - ZEPHIR_CALL_METHOD(NULL, &_12, "__construct", NULL, 9, &_13); + ZEPHIR_CALL_METHOD(NULL, &_12, "__construct", NULL, 4, &_13); zephir_check_call_status(); zephir_throw_exception_debug(&_12, "phalcon/mvc/model/query.zep", 908 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -107614,7 +106135,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getJoinType) { zephir_read_property(&_1, this_ptr, SL("_phql"), PH_NOISY_CC | PH_READONLY); ZEPHIR_INIT_VAR(&_2); ZEPHIR_CONCAT_SVSV(&_2, "Unknown join type ", &type, ", when preparing: ", &_1); - ZEPHIR_CALL_METHOD(NULL, &_0, "__construct", NULL, 9, &_2); + ZEPHIR_CALL_METHOD(NULL, &_0, "__construct", NULL, 4, &_2); zephir_check_call_status(); zephir_throw_exception_debug(&_0, "phalcon/mvc/model/query.zep", 1006 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -107660,11 +106181,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getSingleJoin) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 5, 0, &joinType_param, &joinSource, &modelAlias, &joinAlias, &relation); - if (unlikely(Z_TYPE_P(joinType_param) != IS_STRING && Z_TYPE_P(joinType_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(joinType_param) != IS_STRING && Z_TYPE_P(joinType_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'joinType' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(joinType_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(joinType_param) == IS_STRING)) { zephir_get_strval(&joinType, joinType_param); } else { ZEPHIR_INIT_VAR(&joinType); @@ -107690,7 +106211,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getSingleJoin) { add_assoc_long_ex(&_2$$3, SL("type"), 355); zephir_array_update_string(&_2$$3, SL("domain"), modelAlias, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_2$$3, SL("name"), &fields, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(&_1$$3, this_ptr, "_getqualified", &_3, 340, &_2$$3); + ZEPHIR_CALL_METHOD(&_1$$3, this_ptr, "_getqualified", &_3, 307, &_2$$3); zephir_check_call_status(); zephir_array_update_string(&_0$$3, SL("left"), &_1$$3, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_VAR(&_4$$3); @@ -107698,7 +106219,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getSingleJoin) { add_assoc_stringl_ex(&_4$$3, SL("type"), SL("qualified")); zephir_array_update_string(&_4$$3, SL("domain"), joinAlias, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_4$$3, SL("name"), &referencedFields, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(&_1$$3, this_ptr, "_getqualified", &_3, 340, &_4$$3); + ZEPHIR_CALL_METHOD(&_1$$3, this_ptr, "_getqualified", &_3, 307, &_4$$3); zephir_check_call_status(); zephir_array_update_string(&_0$$3, SL("right"), &_1$$3, PH_COPY | PH_SEPARATE); zephir_array_fast_append(&sqlJoinConditions, &_0$$3); @@ -107723,7 +106244,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getSingleJoin) { zephir_read_property(&_9$$6, this_ptr, SL("_phql"), PH_NOISY_CC | PH_READONLY); ZEPHIR_INIT_LNVAR(_10$$6); ZEPHIR_CONCAT_SVSVSV(&_10$$6, "The number of fields must be equal to the number of referenced fields in join ", modelAlias, "-", joinAlias, ", when preparing: ", &_9$$6); - ZEPHIR_CALL_METHOD(NULL, &_8$$6, "__construct", &_11, 9, &_10$$6); + ZEPHIR_CALL_METHOD(NULL, &_8$$6, "__construct", &_11, 4, &_10$$6); zephir_check_call_status(); zephir_throw_exception_debug(&_8$$6, "phalcon/mvc/model/query.zep", 1072 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -107738,7 +106259,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getSingleJoin) { add_assoc_long_ex(&_14$$5, SL("type"), 355); zephir_array_update_string(&_14$$5, SL("domain"), modelAlias, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_14$$5, SL("name"), &field, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(&_13$$5, this_ptr, "_getqualified", &_3, 340, &_14$$5); + ZEPHIR_CALL_METHOD(&_13$$5, this_ptr, "_getqualified", &_3, 307, &_14$$5); zephir_check_call_status(); zephir_array_update_string(&_12$$5, SL("left"), &_13$$5, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_NVAR(&_15$$5); @@ -107746,7 +106267,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getSingleJoin) { add_assoc_stringl_ex(&_15$$5, SL("type"), SL("qualified")); zephir_array_update_string(&_15$$5, SL("domain"), joinAlias, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_15$$5, SL("name"), &referencedField, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(&_13$$5, this_ptr, "_getqualified", &_3, 340, &_15$$5); + ZEPHIR_CALL_METHOD(&_13$$5, this_ptr, "_getqualified", &_3, 307, &_15$$5); zephir_check_call_status(); zephir_array_update_string(&_12$$5, SL("right"), &_13$$5, PH_COPY | PH_SEPARATE); zephir_array_append(&sqlJoinPartialConditions, &_12$$5, PH_SEPARATE, "phalcon/mvc/model/query.zep", 1093); @@ -107854,7 +106375,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getMultiJoin) { zephir_read_property(&_4$$5, this_ptr, SL("_phql"), PH_NOISY_CC | PH_READONLY); ZEPHIR_INIT_LNVAR(_5$$5); ZEPHIR_CONCAT_SVSVSV(&_5$$5, "The number of fields must be equal to the number of referenced fields in join ", modelAlias, "-", joinAlias, ", when preparing: ", &_4$$5); - ZEPHIR_CALL_METHOD(NULL, &_3$$5, "__construct", &_6, 9, &_5$$5); + ZEPHIR_CALL_METHOD(NULL, &_3$$5, "__construct", &_6, 4, &_5$$5); zephir_check_call_status(); zephir_throw_exception_debug(&_3$$5, "phalcon/mvc/model/query.zep", 1194 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -107871,7 +106392,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getMultiJoin) { add_assoc_long_ex(&_8$$4, SL("type"), 355); zephir_array_update_string(&_8$$4, SL("domain"), modelAlias, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_8$$4, SL("name"), &field, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(&_7$$4, this_ptr, "_getqualified", &_9, 340, &_8$$4); + ZEPHIR_CALL_METHOD(&_7$$4, this_ptr, "_getqualified", &_9, 307, &_8$$4); zephir_check_call_status(); zephir_array_update_string(&sqlEqualsJoinCondition, SL("left"), &_7$$4, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_NVAR(&_10$$4); @@ -107879,7 +106400,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getMultiJoin) { add_assoc_stringl_ex(&_10$$4, SL("type"), SL("qualified")); zephir_array_update_string(&_10$$4, SL("domain"), joinAlias, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_10$$4, SL("name"), &referencedFields, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(&_7$$4, this_ptr, "_getqualified", &_9, 340, &_10$$4); + ZEPHIR_CALL_METHOD(&_7$$4, this_ptr, "_getqualified", &_9, 307, &_10$$4); zephir_check_call_status(); zephir_array_update_string(&sqlEqualsJoinCondition, SL("right"), &_7$$4, PH_COPY | PH_SEPARATE); } ZEND_HASH_FOREACH_END(); @@ -107903,7 +106424,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getMultiJoin) { add_assoc_long_ex(&_15$$6, SL("type"), 355); zephir_array_update_string(&_15$$6, SL("domain"), modelAlias, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_15$$6, SL("name"), &fields, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(&_14$$6, this_ptr, "_getqualified", &_9, 340, &_15$$6); + ZEPHIR_CALL_METHOD(&_14$$6, this_ptr, "_getqualified", &_9, 307, &_15$$6); zephir_check_call_status(); zephir_array_update_string(&_13$$6, SL("left"), &_14$$6, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_VAR(&_16$$6); @@ -107911,7 +106432,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getMultiJoin) { add_assoc_stringl_ex(&_16$$6, SL("type"), SL("qualified")); zephir_array_update_string(&_16$$6, SL("domain"), &intermediateModelName, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_16$$6, SL("name"), &intermediateFields, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(&_14$$6, this_ptr, "_getqualified", &_9, 340, &_16$$6); + ZEPHIR_CALL_METHOD(&_14$$6, this_ptr, "_getqualified", &_9, 307, &_16$$6); zephir_check_call_status(); zephir_array_update_string(&_13$$6, SL("right"), &_14$$6, PH_COPY | PH_SEPARATE); zephir_array_fast_append(&_12$$6, &_13$$6); @@ -107932,7 +106453,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getMultiJoin) { add_assoc_long_ex(&_17$$6, SL("type"), 355); zephir_array_update_string(&_17$$6, SL("domain"), &intermediateModelName, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_17$$6, SL("name"), &intermediateReferencedFields, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(&_14$$6, this_ptr, "_getqualified", &_9, 340, &_17$$6); + ZEPHIR_CALL_METHOD(&_14$$6, this_ptr, "_getqualified", &_9, 307, &_17$$6); zephir_check_call_status(); zephir_array_update_string(&_13$$6, SL("left"), &_14$$6, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_VAR(&_18$$6); @@ -107940,7 +106461,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getMultiJoin) { add_assoc_stringl_ex(&_18$$6, SL("type"), SL("qualified")); zephir_array_update_string(&_18$$6, SL("domain"), &referencedModelName, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_18$$6, SL("name"), &referencedFields, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(&_14$$6, this_ptr, "_getqualified", &_9, 340, &_18$$6); + ZEPHIR_CALL_METHOD(&_14$$6, this_ptr, "_getqualified", &_9, 307, &_18$$6); zephir_check_call_status(); zephir_array_update_string(&_13$$6, SL("right"), &_14$$6, PH_COPY | PH_SEPARATE); zephir_array_fast_append(&_12$$6, &_13$$6); @@ -108083,7 +106604,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getJoins) { { ZEPHIR_INIT_NVAR(&joinItem); ZVAL_COPY(&joinItem, _0); - ZEPHIR_CALL_METHOD(&joinData, this_ptr, "_getjoin", &_1, 344, &manager, &joinItem); + ZEPHIR_CALL_METHOD(&joinData, this_ptr, "_getjoin", &_1, 311, &manager, &joinItem); zephir_check_call_status(); ZEPHIR_OBS_NVAR(&source); zephir_array_fetch_string(&source, &joinData, SL("source"), PH_NOISY, "phalcon/mvc/model/query.zep", 1334 TSRMLS_CC); @@ -108097,7 +106618,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getJoins) { zephir_create_array(&completeSource, 2, 0 TSRMLS_CC); zephir_array_fast_append(&completeSource, &source); zephir_array_fast_append(&completeSource, &schema); - ZEPHIR_CALL_METHOD(&joinType, this_ptr, "_getjointype", &_2, 345, &joinItem); + ZEPHIR_CALL_METHOD(&joinType, this_ptr, "_getjointype", &_2, 312, &joinItem); zephir_check_call_status(); ZEPHIR_OBS_NVAR(&aliasExpr); if (zephir_array_isset_string_fetch(&aliasExpr, &joinItem, SL("alias"), 0)) { @@ -108109,7 +106630,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getJoins) { zephir_read_property(&_4$$9, this_ptr, SL("_phql"), PH_NOISY_CC | PH_READONLY); ZEPHIR_INIT_LNVAR(_5$$9); ZEPHIR_CONCAT_SVSV(&_5$$9, "Cannot use '", &alias, "' as join alias because it was already used, when preparing: ", &_4$$9); - ZEPHIR_CALL_METHOD(NULL, &_3$$9, "__construct", &_6, 9, &_5$$9); + ZEPHIR_CALL_METHOD(NULL, &_3$$9, "__construct", &_6, 4, &_5$$9); zephir_check_call_status(); zephir_throw_exception_debug(&_3$$9, "phalcon/mvc/model/query.zep", 1358 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -108132,7 +106653,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getJoins) { zephir_read_property(&_8$$11, this_ptr, SL("_phql"), PH_NOISY_CC | PH_READONLY); ZEPHIR_INIT_LNVAR(_9$$11); ZEPHIR_CONCAT_SVSV(&_9$$11, "Cannot use '", &realModelName, "' as join alias because it was already used, when preparing: ", &_8$$11); - ZEPHIR_CALL_METHOD(NULL, &_7$$11, "__construct", &_6, 9, &_9$$11); + ZEPHIR_CALL_METHOD(NULL, &_7$$11, "__construct", &_6, 4, &_9$$11); zephir_check_call_status(); zephir_throw_exception_debug(&_7$$11, "phalcon/mvc/model/query.zep", 1419 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -108170,7 +106691,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getJoins) { ZVAL_COPY(&joinItem, _10); ZEPHIR_OBS_NVAR(&joinExpr); if (zephir_array_isset_string_fetch(&joinExpr, &joinItem, SL("conditions"), 0)) { - ZEPHIR_CALL_METHOD(&_13$$13, this_ptr, "_getexpression", &_14, 338, &joinExpr); + ZEPHIR_CALL_METHOD(&_13$$13, this_ptr, "_getexpression", &_14, 305, &joinExpr); zephir_check_call_status(); zephir_array_update_zval(&joinPreCondition, &joinAliasName, &_13$$13, PH_COPY | PH_SEPARATE); } @@ -108267,7 +106788,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getJoins) { zephir_read_property(&_35$$22, this_ptr, SL("_phql"), PH_NOISY_CC | PH_READONLY); ZEPHIR_INIT_LNVAR(_36$$22); ZEPHIR_CONCAT_SVSVSV(&_36$$22, "There is more than one relation between models '", &fromModelName, "' and '", &joinModel, "', the join must be done using an alias, when preparing: ", &_35$$22); - ZEPHIR_CALL_METHOD(NULL, &_34$$22, "__construct", &_6, 9, &_36$$22); + ZEPHIR_CALL_METHOD(NULL, &_34$$22, "__construct", &_6, 4, &_36$$22); zephir_check_call_status(); zephir_throw_exception_debug(&_34$$22, "phalcon/mvc/model/query.zep", 1561 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -108283,10 +106804,10 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getJoins) { ZEPHIR_CALL_METHOD(&_37$$23, &relation, "isthrough", NULL, 0); zephir_check_call_status(); if (!(zephir_is_true(&_37$$23))) { - ZEPHIR_CALL_METHOD(&sqlJoin, this_ptr, "_getsinglejoin", &_38, 346, &joinType, &joinSource, &modelAlias, &joinAlias, &relation); + ZEPHIR_CALL_METHOD(&sqlJoin, this_ptr, "_getsinglejoin", &_38, 313, &joinType, &joinSource, &modelAlias, &joinAlias, &relation); zephir_check_call_status(); } else { - ZEPHIR_CALL_METHOD(&sqlJoin, this_ptr, "_getmultijoin", &_39, 347, &joinType, &joinSource, &modelAlias, &joinAlias, &relation); + ZEPHIR_CALL_METHOD(&sqlJoin, this_ptr, "_getmultijoin", &_39, 314, &joinType, &joinSource, &modelAlias, &joinAlias, &relation); zephir_check_call_status(); } if (zephir_array_isset_long(&sqlJoin, 0)) { @@ -108370,7 +106891,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getOrderClause) { ZEPHIR_INIT_NVAR(&orderItem); ZVAL_COPY(&orderItem, _0); zephir_array_fetch_string(&_1$$5, &orderItem, SL("column"), PH_NOISY | PH_READONLY, "phalcon/mvc/model/query.zep", 1650 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&orderPartExpr, this_ptr, "_getexpression", &_2, 338, &_1$$5); + ZEPHIR_CALL_METHOD(&orderPartExpr, this_ptr, "_getexpression", &_2, 305, &_1$$5); zephir_check_call_status(); if (zephir_array_isset_string_fetch(&orderSort, &orderItem, SL("sort"), 1)) { ZEPHIR_INIT_NVAR(&orderPartSort); @@ -108427,14 +106948,14 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getGroupClause) { { ZEPHIR_INIT_NVAR(&groupItem); ZVAL_COPY(&groupItem, _0$$3); - ZEPHIR_CALL_METHOD(&_1$$4, this_ptr, "_getexpression", &_2, 338, &groupItem); + ZEPHIR_CALL_METHOD(&_1$$4, this_ptr, "_getexpression", &_2, 305, &groupItem); zephir_check_call_status(); zephir_array_append(&groupParts, &_1$$4, PH_SEPARATE, "phalcon/mvc/model/query.zep", 1684); } ZEND_HASH_FOREACH_END(); ZEPHIR_INIT_NVAR(&groupItem); } else { zephir_create_array(&groupParts, 1, 0 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_3$$5, this_ptr, "_getexpression", &_2, 338, &group); + ZEPHIR_CALL_METHOD(&_3$$5, this_ptr, "_getexpression", &_2, 305, &group); zephir_check_call_status(); zephir_array_fast_append(&groupParts, &_3$$5); } @@ -108467,13 +106988,13 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getLimitClause) { array_init(&limit); ZEPHIR_OBS_VAR(&number); if (zephir_array_isset_string_fetch(&number, &limitClause, SL("number"), 0)) { - ZEPHIR_CALL_METHOD(&_0$$3, this_ptr, "_getexpression", &_1, 338, &number); + ZEPHIR_CALL_METHOD(&_0$$3, this_ptr, "_getexpression", &_1, 305, &number); zephir_check_call_status(); zephir_array_update_string(&limit, SL("number"), &_0$$3, PH_COPY | PH_SEPARATE); } ZEPHIR_OBS_VAR(&offset); if (zephir_array_isset_string_fetch(&offset, &limitClause, SL("offset"), 0)) { - ZEPHIR_CALL_METHOD(&_2$$4, this_ptr, "_getexpression", &_1, 338, &offset); + ZEPHIR_CALL_METHOD(&_2$$4, this_ptr, "_getexpression", &_1, 305, &offset); zephir_check_call_status(); zephir_array_update_string(&limit, SL("offset"), &_2$$4, PH_COPY | PH_SEPARATE); } @@ -108717,7 +107238,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _prepareSelect) { zephir_read_property(&_8$$20, this_ptr, SL("_phql"), PH_NOISY_CC | PH_READONLY); ZEPHIR_INIT_LNVAR(_9$$20); ZEPHIR_CONCAT_SVSV(&_9$$20, "Alias '", &alias, "' is used more than once, when preparing: ", &_8$$20); - ZEPHIR_CALL_METHOD(NULL, &_7$$20, "__construct", &_10, 9, &_9$$20); + ZEPHIR_CALL_METHOD(NULL, &_7$$20, "__construct", &_10, 4, &_9$$20); zephir_check_call_status(); zephir_throw_exception_debug(&_7$$20, "phalcon/mvc/model/query.zep", 1850 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -108795,7 +107316,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _prepareSelect) { zephir_read_property(&_19$$31, this_ptr, SL("_phql"), PH_NOISY_CC | PH_READONLY); ZEPHIR_INIT_LNVAR(_20$$31); ZEPHIR_CONCAT_SVSVSV(&_20$$31, "Can't find a relationship between '", &realModelName, "' and '", &relationModel, "' when preparing: ", &_19$$31); - ZEPHIR_CALL_METHOD(NULL, &_18$$31, "__construct", &_10, 9, &_20$$31); + ZEPHIR_CALL_METHOD(NULL, &_18$$31, "__construct", &_10, 4, &_20$$31); zephir_check_call_status(); zephir_throw_exception_debug(&_18$$31, "phalcon/mvc/model/query.zep", 1906 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -108891,12 +107412,12 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _prepareSelect) { zephir_array_update_string(&select, SL("joins"), &automaticJoins, PH_COPY | PH_SEPARATE); } } - ZEPHIR_CALL_METHOD(&sqlJoins, this_ptr, "_getjoins", &_37, 348, &select); + ZEPHIR_CALL_METHOD(&sqlJoins, this_ptr, "_getjoins", &_37, 315, &select); zephir_check_call_status(); } else { if (zephir_fast_count_int(&automaticJoins TSRMLS_CC)) { zephir_array_update_string(&select, SL("joins"), &automaticJoins, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(&sqlJoins, this_ptr, "_getjoins", &_37, 348, &select); + ZEPHIR_CALL_METHOD(&sqlJoins, this_ptr, "_getjoins", &_37, 315, &select); zephir_check_call_status(); } else { ZEPHIR_INIT_NVAR(&sqlJoins); @@ -108911,7 +107432,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _prepareSelect) { { ZEPHIR_INIT_NVAR(&column); ZVAL_COPY(&column, _38); - ZEPHIR_CALL_METHOD(&_39$$41, this_ptr, "_getselectcolumn", &_40, 349, &column); + ZEPHIR_CALL_METHOD(&_39$$41, this_ptr, "_getselectcolumn", &_40, 316, &column); zephir_check_call_status(); zephir_is_iterable(&_39$$41, 0, "phalcon/mvc/model/query.zep", 2024); ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&_39$$41), _41$$41) @@ -108961,31 +107482,31 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _prepareSelect) { } ZEPHIR_OBS_VAR(&where); if (zephir_array_isset_string_fetch(&where, ast, SL("where"), 0)) { - ZEPHIR_CALL_METHOD(&_45$$51, this_ptr, "_getexpression", &_46, 338, &where); + ZEPHIR_CALL_METHOD(&_45$$51, this_ptr, "_getexpression", &_46, 305, &where); zephir_check_call_status(); zephir_array_update_string(&sqlSelect, SL("where"), &_45$$51, PH_COPY | PH_SEPARATE); } ZEPHIR_OBS_VAR(&groupBy); if (zephir_array_isset_string_fetch(&groupBy, ast, SL("groupBy"), 0)) { - ZEPHIR_CALL_METHOD(&_47$$52, this_ptr, "_getgroupclause", NULL, 350, &groupBy); + ZEPHIR_CALL_METHOD(&_47$$52, this_ptr, "_getgroupclause", NULL, 317, &groupBy); zephir_check_call_status(); zephir_array_update_string(&sqlSelect, SL("group"), &_47$$52, PH_COPY | PH_SEPARATE); } ZEPHIR_OBS_VAR(&having); if (zephir_array_isset_string_fetch(&having, ast, SL("having"), 0)) { - ZEPHIR_CALL_METHOD(&_48$$53, this_ptr, "_getexpression", &_46, 338, &having); + ZEPHIR_CALL_METHOD(&_48$$53, this_ptr, "_getexpression", &_46, 305, &having); zephir_check_call_status(); zephir_array_update_string(&sqlSelect, SL("having"), &_48$$53, PH_COPY | PH_SEPARATE); } ZEPHIR_OBS_VAR(&order); if (zephir_array_isset_string_fetch(&order, ast, SL("orderBy"), 0)) { - ZEPHIR_CALL_METHOD(&_49$$54, this_ptr, "_getorderclause", NULL, 351, &order); + ZEPHIR_CALL_METHOD(&_49$$54, this_ptr, "_getorderclause", NULL, 318, &order); zephir_check_call_status(); zephir_array_update_string(&sqlSelect, SL("order"), &_49$$54, PH_COPY | PH_SEPARATE); } ZEPHIR_OBS_VAR(&limit); if (zephir_array_isset_string_fetch(&limit, ast, SL("limit"), 0)) { - ZEPHIR_CALL_METHOD(&_50$$55, this_ptr, "_getlimitclause", NULL, 352, &limit); + ZEPHIR_CALL_METHOD(&_50$$55, this_ptr, "_getlimitclause", NULL, 319, &limit); zephir_check_call_status(); zephir_array_update_string(&sqlSelect, SL("limit"), &_50$$55, PH_COPY | PH_SEPARATE); } @@ -109110,7 +107631,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _prepareInsert) { } else { ZVAL_BOOL(&_9$$9, 0); } - ZEPHIR_CALL_METHOD(&_8$$9, this_ptr, "_getexpression", &_10, 338, &exprValue, &_9$$9); + ZEPHIR_CALL_METHOD(&_8$$9, this_ptr, "_getexpression", &_10, 305, &exprValue, &_9$$9); zephir_check_call_status(); zephir_array_update_string(&_6$$9, SL("value"), &_8$$9, PH_COPY | PH_SEPARATE); zephir_array_append(&exprValues, &_6$$9, PH_SEPARATE, "phalcon/mvc/model/query.zep", 2139); @@ -109141,7 +107662,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _prepareInsert) { zephir_read_property(&_15$$12, this_ptr, SL("_phql"), PH_NOISY_CC | PH_READONLY); ZEPHIR_INIT_LNVAR(_16$$12); ZEPHIR_CONCAT_SVSVSV(&_16$$12, "The model '", &modelName, "' doesn't have the attribute '", &name, "', when preparing: ", &_15$$12); - ZEPHIR_CALL_METHOD(NULL, &_14$$12, "__construct", &_17, 9, &_16$$12); + ZEPHIR_CALL_METHOD(NULL, &_14$$12, "__construct", &_17, 4, &_16$$12); zephir_check_call_status(); zephir_throw_exception_debug(&_14$$12, "phalcon/mvc/model/query.zep", 2159 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -109334,7 +107855,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _prepareUpdate) { } else { ZVAL_BOOL(&_10$$17, 0); } - ZEPHIR_CALL_METHOD(&_8$$17, this_ptr, "_getexpression", &_11, 338, &_9$$17, &_10$$17); + ZEPHIR_CALL_METHOD(&_8$$17, this_ptr, "_getexpression", &_11, 305, &_9$$17, &_10$$17); zephir_check_call_status(); zephir_array_append(&sqlFields, &_8$$17, PH_SEPARATE, "phalcon/mvc/model/query.zep", 2289); ZEPHIR_OBS_NVAR(&exprColumn); @@ -109349,7 +107870,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _prepareUpdate) { } else { ZVAL_BOOL(&_15$$17, 0); } - ZEPHIR_CALL_METHOD(&_14$$17, this_ptr, "_getexpression", &_11, 338, &exprColumn, &_15$$17); + ZEPHIR_CALL_METHOD(&_14$$17, this_ptr, "_getexpression", &_11, 305, &exprColumn, &_15$$17); zephir_check_call_status(); zephir_array_update_string(&_12$$17, SL("value"), &_14$$17, PH_COPY | PH_SEPARATE); zephir_array_append(&sqlValues, &_12$$17, PH_SEPARATE, "phalcon/mvc/model/query.zep", 2294); @@ -109364,13 +107885,13 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _prepareUpdate) { ZEPHIR_OBS_VAR(&where); if (zephir_array_isset_string_fetch(&where, &ast, SL("where"), 0)) { ZVAL_BOOL(&_17$$18, 1); - ZEPHIR_CALL_METHOD(&_16$$18, this_ptr, "_getexpression", &_11, 338, &where, &_17$$18); + ZEPHIR_CALL_METHOD(&_16$$18, this_ptr, "_getexpression", &_11, 305, &where, &_17$$18); zephir_check_call_status(); zephir_array_update_string(&sqlUpdate, SL("where"), &_16$$18, PH_COPY | PH_SEPARATE); } ZEPHIR_OBS_VAR(&limit); if (zephir_array_isset_string_fetch(&limit, &ast, SL("limit"), 0)) { - ZEPHIR_CALL_METHOD(&_18$$19, this_ptr, "_getlimitclause", NULL, 352, &limit); + ZEPHIR_CALL_METHOD(&_18$$19, this_ptr, "_getlimitclause", NULL, 319, &limit); zephir_check_call_status(); zephir_array_update_string(&sqlUpdate, SL("limit"), &_18$$19, PH_COPY | PH_SEPARATE); } @@ -109519,13 +108040,13 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _prepareDelete) { ZEPHIR_OBS_VAR(&where); if (zephir_array_isset_string_fetch(&where, &ast, SL("where"), 0)) { ZVAL_BOOL(&_8$$14, 1); - ZEPHIR_CALL_METHOD(&_7$$14, this_ptr, "_getexpression", NULL, 338, &where, &_8$$14); + ZEPHIR_CALL_METHOD(&_7$$14, this_ptr, "_getexpression", NULL, 305, &where, &_8$$14); zephir_check_call_status(); zephir_array_update_string(&sqlDelete, SL("where"), &_7$$14, PH_COPY | PH_SEPARATE); } ZEPHIR_OBS_VAR(&limit); if (zephir_array_isset_string_fetch(&limit, &ast, SL("limit"), 0)) { - ZEPHIR_CALL_METHOD(&_9$$15, this_ptr, "_getlimitclause", NULL, 352, &limit); + ZEPHIR_CALL_METHOD(&_9$$15, this_ptr, "_getlimitclause", NULL, 319, &limit); zephir_check_call_status(); zephir_array_update_string(&sqlDelete, SL("limit"), &_9$$15, PH_COPY | PH_SEPARATE); } @@ -109585,22 +108106,22 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, parse) { zephir_update_property_zval(this_ptr, SL("_type"), &type); do { if (ZEPHIR_IS_LONG(&type, 309)) { - ZEPHIR_CALL_METHOD(&irPhql, this_ptr, "_prepareselect", NULL, 343); + ZEPHIR_CALL_METHOD(&irPhql, this_ptr, "_prepareselect", NULL, 310); zephir_check_call_status(); break; } if (ZEPHIR_IS_LONG(&type, 306)) { - ZEPHIR_CALL_METHOD(&irPhql, this_ptr, "_prepareinsert", NULL, 353); + ZEPHIR_CALL_METHOD(&irPhql, this_ptr, "_prepareinsert", NULL, 320); zephir_check_call_status(); break; } if (ZEPHIR_IS_LONG(&type, 300)) { - ZEPHIR_CALL_METHOD(&irPhql, this_ptr, "_prepareupdate", NULL, 354); + ZEPHIR_CALL_METHOD(&irPhql, this_ptr, "_prepareupdate", NULL, 321); zephir_check_call_status(); break; } if (ZEPHIR_IS_LONG(&type, 303)) { - ZEPHIR_CALL_METHOD(&irPhql, this_ptr, "_preparedelete", NULL, 355); + ZEPHIR_CALL_METHOD(&irPhql, this_ptr, "_preparedelete", NULL, 322); zephir_check_call_status(); break; } @@ -109608,7 +108129,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, parse) { object_init_ex(&_2$$13, phalcon_mvc_model_exception_ce); ZEPHIR_INIT_VAR(&_3$$13); ZEPHIR_CONCAT_SVSV(&_3$$13, "Unknown statement ", &type, ", when preparing: ", &phql); - ZEPHIR_CALL_METHOD(NULL, &_2$$13, "__construct", NULL, 9, &_3$$13); + ZEPHIR_CALL_METHOD(NULL, &_2$$13, "__construct", NULL, 4, &_3$$13); zephir_check_call_status(); zephir_throw_exception_debug(&_2$$13, "phalcon/mvc/model/query.zep", 2487 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -110104,13 +108625,13 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _executeSelect) { object_init_ex(&_46$$66, phalcon_mvc_model_exception_ce); ZEPHIR_INIT_VAR(&_47$$66); ZEPHIR_CONCAT_SVS(&_47$$66, "Resultset class \"", &resultsetClassName, "\" not found"); - ZEPHIR_CALL_METHOD(NULL, &_46$$66, "__construct", NULL, 9, &_47$$66); + ZEPHIR_CALL_METHOD(NULL, &_46$$66, "__construct", NULL, 4, &_47$$66); zephir_check_call_status(); zephir_throw_exception_debug(&_46$$66, "phalcon/mvc/model/query.zep", 2832 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } - ZEPHIR_CALL_FUNCTION(&_48$$65, "class_implements", NULL, 356, &resultsetClassName); + ZEPHIR_CALL_FUNCTION(&_48$$65, "class_implements", NULL, 323, &resultsetClassName); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_49$$65); ZVAL_STRING(&_49$$65, "Phalcon\\Mvc\\Model\\ResultsetInterface"); @@ -110119,7 +108640,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _executeSelect) { object_init_ex(&_50$$67, phalcon_mvc_model_exception_ce); ZEPHIR_INIT_VAR(&_51$$67); ZEPHIR_CONCAT_SVS(&_51$$67, "Resultset class \"", &resultsetClassName, "\" must be an implementation of Phalcon\\Mvc\\Model\\ResultsetInterface"); - ZEPHIR_CALL_METHOD(NULL, &_50$$67, "__construct", NULL, 9, &_51$$67); + ZEPHIR_CALL_METHOD(NULL, &_50$$67, "__construct", NULL, 4, &_51$$67); zephir_check_call_status(); zephir_throw_exception_debug(&_50$$67, "phalcon/mvc/model/query.zep", 2836 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -110146,12 +108667,12 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _executeSelect) { } else { ZVAL_BOOL(&_55$$53, 0); } - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 357, &simpleColumnMap, &resultObject, &resultData, &cache, &_55$$53); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 324, &simpleColumnMap, &resultObject, &resultData, &cache, &_55$$53); zephir_check_call_status(); RETURN_MM(); } object_init_ex(return_value, phalcon_mvc_model_resultset_complex_ce); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 358, &columns1, &resultData, &cache); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 325, &columns1, &resultData, &cache); zephir_check_call_status(); RETURN_MM(); @@ -110301,7 +108822,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _executeInsert) { object_init_ex(&_11$$16, phalcon_mvc_model_exception_ce); ZEPHIR_INIT_LNVAR(_12$$16); ZEPHIR_CONCAT_SVS(&_12$$16, "Bound parameter '", &wildcard, "' cannot be replaced because it isn't in the placeholders list"); - ZEPHIR_CALL_METHOD(NULL, &_11$$16, "__construct", &_13, 9, &_12$$16); + ZEPHIR_CALL_METHOD(NULL, &_11$$16, "__construct", &_13, 4, &_12$$16); zephir_check_call_status(); zephir_throw_exception_debug(&_11$$16, "phalcon/mvc/model/query.zep", 2949 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -110313,7 +108834,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _executeInsert) { object_init_ex(&insertValue, phalcon_db_rawvalue_ce); ZEPHIR_CALL_METHOD(&_14$$17, &dialect, "getsqlexpression", &_15, 0, &exprValue); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, &insertValue, "__construct", &_16, 24, &_14$$17); + ZEPHIR_CALL_METHOD(NULL, &insertValue, "__construct", &_16, 19, &_14$$17); zephir_check_call_status(); break; } while(0); @@ -110328,7 +108849,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _executeInsert) { object_init_ex(&_17$$20, phalcon_mvc_model_exception_ce); ZEPHIR_INIT_LNVAR(_18$$20); ZEPHIR_CONCAT_SVS(&_18$$20, "Column '", &fieldName, "' isn't part of the column map"); - ZEPHIR_CALL_METHOD(NULL, &_17$$20, "__construct", &_13, 9, &_18$$20); + ZEPHIR_CALL_METHOD(NULL, &_17$$20, "__construct", &_13, 4, &_18$$20); zephir_check_call_status(); zephir_throw_exception_debug(&_17$$20, "phalcon/mvc/model/query.zep", 2967 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -110353,7 +108874,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _executeInsert) { object_init_ex(return_value, phalcon_mvc_model_query_status_ce); ZEPHIR_CALL_METHOD(&_20, &insertModel, "create", NULL, 0, &insertValues); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 359, &_20, &insertModel); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 326, &_20, &insertModel); zephir_check_call_status(); RETURN_MM(); @@ -110502,7 +109023,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _executeUpdate) { object_init_ex(&_11$$16, phalcon_mvc_model_exception_ce); ZEPHIR_INIT_LNVAR(_12$$16); ZEPHIR_CONCAT_SVS(&_12$$16, "Bound parameter '", &wildcard, "' cannot be replaced because it's not in the placeholders list"); - ZEPHIR_CALL_METHOD(NULL, &_11$$16, "__construct", &_13, 9, &_12$$16); + ZEPHIR_CALL_METHOD(NULL, &_11$$16, "__construct", &_13, 4, &_12$$16); zephir_check_call_status(); zephir_throw_exception_debug(&_11$$16, "phalcon/mvc/model/query.zep", 3085 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -110518,7 +109039,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _executeUpdate) { object_init_ex(&updateValue, phalcon_db_rawvalue_ce); ZEPHIR_CALL_METHOD(&_14$$18, &dialect, "getsqlexpression", &_15, 0, &exprValue); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, &updateValue, "__construct", &_16, 24, &_14$$18); + ZEPHIR_CALL_METHOD(NULL, &updateValue, "__construct", &_16, 19, &_14$$18); zephir_check_call_status(); break; } while(0); @@ -110527,12 +109048,12 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _executeUpdate) { } ZEND_HASH_FOREACH_END(); ZEPHIR_INIT_NVAR(&field); ZEPHIR_INIT_NVAR(&number); - ZEPHIR_CALL_METHOD(&records, this_ptr, "_getrelatedrecords", NULL, 360, &model, intermediate, &selectBindParams, &selectBindTypes); + ZEPHIR_CALL_METHOD(&records, this_ptr, "_getrelatedrecords", NULL, 327, &model, intermediate, &selectBindParams, &selectBindTypes); zephir_check_call_status(); if (!(zephir_fast_count_int(&records TSRMLS_CC))) { object_init_ex(return_value, phalcon_mvc_model_query_status_ce); ZVAL_BOOL(&_17$$19, 1); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", &_18, 359, &_17$$19); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", &_18, 326, &_17$$19); zephir_check_call_status(); RETURN_MM(); } @@ -110566,7 +109087,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _executeUpdate) { zephir_check_call_status(); object_init_ex(return_value, phalcon_mvc_model_query_status_ce); ZVAL_BOOL(&_23$$24, 0); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", &_18, 359, &_23$$24, &record); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", &_18, 326, &_23$$24, &record); zephir_check_call_status(); RETURN_MM(); } @@ -110577,7 +109098,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _executeUpdate) { zephir_check_call_status(); object_init_ex(return_value, phalcon_mvc_model_query_status_ce); ZVAL_BOOL(&_25, 1); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", &_18, 359, &_25); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", &_18, 326, &_25); zephir_check_call_status(); RETURN_MM(); @@ -110627,12 +109148,12 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _executeDelete) { ZEPHIR_CALL_METHOD(&model, &_1$$4, "load", NULL, 0, &modelName); zephir_check_call_status(); } - ZEPHIR_CALL_METHOD(&records, this_ptr, "_getrelatedrecords", NULL, 360, &model, intermediate, bindParams, bindTypes); + ZEPHIR_CALL_METHOD(&records, this_ptr, "_getrelatedrecords", NULL, 327, &model, intermediate, bindParams, bindTypes); zephir_check_call_status(); if (!(zephir_fast_count_int(&records TSRMLS_CC))) { object_init_ex(return_value, phalcon_mvc_model_query_status_ce); ZVAL_BOOL(&_2$$5, 1); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", &_3, 359, &_2$$5); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", &_3, 326, &_2$$5); zephir_check_call_status(); RETURN_MM(); } @@ -110666,7 +109187,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _executeDelete) { zephir_check_call_status(); object_init_ex(return_value, phalcon_mvc_model_query_status_ce); ZVAL_BOOL(&_8$$10, 0); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", &_3, 359, &_8$$10, &record); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", &_3, 326, &_8$$10, &record); zephir_check_call_status(); RETURN_MM(); } @@ -110677,7 +109198,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _executeDelete) { zephir_check_call_status(); object_init_ex(return_value, phalcon_mvc_model_query_status_ce); ZVAL_BOOL(&_10, 1); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", &_3, 359, &_10); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", &_3, 326, &_10); zephir_check_call_status(); RETURN_MM(); @@ -110742,17 +109263,17 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getRelatedRecords) { } ZEPHIR_INIT_VAR(&query); object_init_ex(&query, phalcon_mvc_model_query_ce); - ZEPHIR_CALL_METHOD(NULL, &query, "__construct", NULL, 361); + ZEPHIR_CALL_METHOD(NULL, &query, "__construct", NULL, 328); zephir_check_call_status(); zephir_read_property(&_5, this_ptr, SL("_dependencyInjector"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_METHOD(NULL, &query, "setdi", NULL, 362, &_5); + ZEPHIR_CALL_METHOD(NULL, &query, "setdi", NULL, 329, &_5); zephir_check_call_status(); ZVAL_LONG(&_6, 309); - ZEPHIR_CALL_METHOD(NULL, &query, "settype", NULL, 363, &_6); + ZEPHIR_CALL_METHOD(NULL, &query, "settype", NULL, 330, &_6); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, &query, "setintermediate", NULL, 364, &selectIr); + ZEPHIR_CALL_METHOD(NULL, &query, "setintermediate", NULL, 331, &selectIr); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_METHOD(&query, "execute", NULL, 365, bindParams, bindTypes); + ZEPHIR_RETURN_CALL_METHOD(&query, "execute", NULL, 332, bindParams, bindTypes); zephir_check_call_status(); RETURN_MM(); @@ -110897,22 +109418,22 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, execute) { zephir_read_property(&type, this_ptr, SL("_type"), PH_NOISY_CC); do { if (ZEPHIR_IS_LONG(&type, 309)) { - ZEPHIR_CALL_METHOD(&result, this_ptr, "_executeselect", NULL, 366, &intermediate, &mergedParams, &mergedTypes); + ZEPHIR_CALL_METHOD(&result, this_ptr, "_executeselect", NULL, 333, &intermediate, &mergedParams, &mergedTypes); zephir_check_call_status(); break; } if (ZEPHIR_IS_LONG(&type, 306)) { - ZEPHIR_CALL_METHOD(&result, this_ptr, "_executeinsert", NULL, 367, &intermediate, &mergedParams, &mergedTypes); + ZEPHIR_CALL_METHOD(&result, this_ptr, "_executeinsert", NULL, 334, &intermediate, &mergedParams, &mergedTypes); zephir_check_call_status(); break; } if (ZEPHIR_IS_LONG(&type, 300)) { - ZEPHIR_CALL_METHOD(&result, this_ptr, "_executeupdate", NULL, 368, &intermediate, &mergedParams, &mergedTypes); + ZEPHIR_CALL_METHOD(&result, this_ptr, "_executeupdate", NULL, 335, &intermediate, &mergedParams, &mergedTypes); zephir_check_call_status(); break; } if (ZEPHIR_IS_LONG(&type, 303)) { - ZEPHIR_CALL_METHOD(&result, this_ptr, "_executedelete", NULL, 369, &intermediate, &mergedParams, &mergedTypes); + ZEPHIR_CALL_METHOD(&result, this_ptr, "_executedelete", NULL, 336, &intermediate, &mergedParams, &mergedTypes); zephir_check_call_status(); break; } @@ -110920,7 +109441,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, execute) { object_init_ex(&_4$$27, phalcon_mvc_model_exception_ce); ZEPHIR_INIT_VAR(&_5$$27); ZEPHIR_CONCAT_SV(&_5$$27, "Unknown statement ", &type); - ZEPHIR_CALL_METHOD(NULL, &_4$$27, "__construct", NULL, 9, &_5$$27); + ZEPHIR_CALL_METHOD(NULL, &_4$$27, "__construct", NULL, 4, &_5$$27); zephir_check_call_status(); zephir_throw_exception_debug(&_4$$27, "phalcon/mvc/model/query.zep", 3431 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -110976,7 +109497,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, getSingleResult) { zephir_check_call_status(); RETURN_MM(); } - ZEPHIR_CALL_METHOD(&_1, this_ptr, "execute", NULL, 365, bindParams, bindTypes); + ZEPHIR_CALL_METHOD(&_1, this_ptr, "execute", NULL, 332, bindParams, bindTypes); zephir_check_call_status(); ZEPHIR_RETURN_CALL_METHOD(&_1, "getfirst", NULL, 0); zephir_check_call_status(); @@ -111208,7 +109729,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, getSql) { zephir_read_property(&_1$$3, this_ptr, SL("_bindParams"), PH_NOISY_CC | PH_READONLY); zephir_read_property(&_2$$3, this_ptr, SL("_bindTypes"), PH_NOISY_CC | PH_READONLY); ZVAL_BOOL(&_3$$3, 1); - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_executeselect", NULL, 366, &intermediate, &_1$$3, &_2$$3, &_3$$3); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_executeselect", NULL, 333, &intermediate, &_1$$3, &_2$$3, &_3$$3); zephir_check_call_status(); RETURN_MM(); } @@ -111330,11 +109851,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Relation, __construct) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 4, 1, &type, &referencedModel_param, &fields, &referencedFields, &options); - if (unlikely(Z_TYPE_P(referencedModel_param) != IS_STRING && Z_TYPE_P(referencedModel_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(referencedModel_param) != IS_STRING && Z_TYPE_P(referencedModel_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'referencedModel' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(referencedModel_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(referencedModel_param) == IS_STRING)) { zephir_get_strval(&referencedModel, referencedModel_param); } else { ZEPHIR_INIT_VAR(&referencedModel); @@ -111368,11 +109889,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Relation, setIntermediateRelation) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &intermediateFields, &intermediateModel_param, &intermediateReferencedFields); - if (unlikely(Z_TYPE_P(intermediateModel_param) != IS_STRING && Z_TYPE_P(intermediateModel_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(intermediateModel_param) != IS_STRING && Z_TYPE_P(intermediateModel_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'intermediateModel' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(intermediateModel_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(intermediateModel_param) == IS_STRING)) { zephir_get_strval(&intermediateModel, intermediateModel_param); } else { ZEPHIR_INIT_VAR(&intermediateModel); @@ -111445,11 +109966,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Relation, getOption) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(&name, name_param); } else { ZEPHIR_INIT_VAR(&name); @@ -111784,7 +110305,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Resultset, next) { zephir_read_property(&_0, this_ptr, SL("_pointer"), PH_NOISY_CC | PH_READONLY); ZVAL_LONG(&_1, (zephir_get_numberval(&_0) + 1)); - ZEPHIR_CALL_METHOD(NULL, this_ptr, "seek", NULL, 74, &_1); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "seek", NULL, 68, &_1); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -111834,7 +110355,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Resultset, rewind) { ZEPHIR_MM_GROW(); ZVAL_LONG(&_0, 0); - ZEPHIR_CALL_METHOD(NULL, this_ptr, "seek", NULL, 74, &_0); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "seek", NULL, 68, &_0); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -111976,7 +110497,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Resultset, offsetGet) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &index_param); - if (unlikely(Z_TYPE_P(index_param) != IS_LONG)) { + if (UNEXPECTED(Z_TYPE_P(index_param) != IS_LONG)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'index' must be a int") TSRMLS_CC); RETURN_MM_NULL(); } @@ -111986,7 +110507,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Resultset, offsetGet) { zephir_read_property(&_0, this_ptr, SL("_count"), PH_NOISY_CC | PH_READONLY); if (ZEPHIR_GT_LONG(&_0, index)) { ZVAL_LONG(&_1$$3, index); - ZEPHIR_CALL_METHOD(NULL, this_ptr, "seek", NULL, 74, &_1$$3); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "seek", NULL, 68, &_1$$3); zephir_check_call_status(); ZEPHIR_RETURN_CALL_METHOD(this_ptr, "current", NULL, 0); zephir_check_call_status(); @@ -112069,7 +110590,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Resultset, getFirst) { RETURN_MM_BOOL(0); } ZVAL_LONG(&_1, 0); - ZEPHIR_CALL_METHOD(NULL, this_ptr, "seek", NULL, 74, &_1); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "seek", NULL, 68, &_1); zephir_check_call_status(); ZEPHIR_RETURN_CALL_METHOD(this_ptr, "current", NULL, 0); zephir_check_call_status(); @@ -112094,7 +110615,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Resultset, getLast) { RETURN_MM_BOOL(0); } ZVAL_LONG(&_0, (zephir_get_numberval(&count) - 1)); - ZEPHIR_CALL_METHOD(NULL, this_ptr, "seek", NULL, 74, &_0); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "seek", NULL, 68, &_0); zephir_check_call_status(); ZEPHIR_RETURN_CALL_METHOD(this_ptr, "current", NULL, 0); zephir_check_call_status(); @@ -112213,7 +110734,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Resultset, update) { ZEPHIR_INIT_VAR(&connection); ZVAL_NULL(&connection); transaction = 0; - ZEPHIR_CALL_METHOD(NULL, this_ptr, "rewind", NULL, 75); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "rewind", NULL, 69); zephir_check_call_status(); while (1) { ZEPHIR_CALL_METHOD(&_0, this_ptr, "valid", &_1, 0); @@ -112300,7 +110821,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Resultset, delete) { ZEPHIR_INIT_VAR(&connection); ZVAL_NULL(&connection); transaction = 0; - ZEPHIR_CALL_METHOD(NULL, this_ptr, "rewind", NULL, 75); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "rewind", NULL, 69); zephir_check_call_status(); while (1) { ZEPHIR_CALL_METHOD(&_0, this_ptr, "valid", &_1, 0); @@ -112380,7 +110901,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Resultset, filter) { array_init(&records); ZEPHIR_INIT_VAR(¶meters); array_init(¶meters); - ZEPHIR_CALL_METHOD(NULL, this_ptr, "rewind", NULL, 75); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "rewind", NULL, 69); zephir_check_call_status(); while (1) { ZEPHIR_CALL_METHOD(&_0, this_ptr, "valid", &_1, 0); @@ -112428,7 +110949,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Resultset, jsonSerialize) { ZEPHIR_INIT_VAR(&records); array_init(&records); - ZEPHIR_CALL_METHOD(NULL, this_ptr, "rewind", NULL, 75); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "rewind", NULL, 69); zephir_check_call_status(); while (1) { ZEPHIR_CALL_METHOD(&_0, this_ptr, "valid", &_1, 0); @@ -112630,11 +111151,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Row, writeAttribute) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &attribute_param, &value); - if (unlikely(Z_TYPE_P(attribute_param) != IS_STRING && Z_TYPE_P(attribute_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(attribute_param) != IS_STRING && Z_TYPE_P(attribute_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'attribute' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(attribute_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(attribute_param) == IS_STRING)) { zephir_get_strval(&attribute, attribute_param); } else { ZEPHIR_INIT_VAR(&attribute); @@ -112655,7 +111176,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Row, toArray) { ZEPHIR_MM_GROW(); - ZEPHIR_RETURN_CALL_FUNCTION("get_object_vars", NULL, 21, this_ptr); + ZEPHIR_RETURN_CALL_FUNCTION("get_object_vars", NULL, 16, this_ptr); zephir_check_call_status(); RETURN_MM(); @@ -112860,7 +111381,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Transaction, rollback) { ZEPHIR_INIT_VAR(&_1$$4); object_init_ex(&_1$$4, phalcon_mvc_model_transaction_failed_ce); zephir_read_property(&_2$$4, this_ptr, SL("_rollbackRecord"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_METHOD(NULL, &_1$$4, "__construct", NULL, 376, rollbackMessage, &_2$$4); + ZEPHIR_CALL_METHOD(NULL, &_1$$4, "__construct", NULL, 340, rollbackMessage, &_2$$4); zephir_check_call_status(); zephir_throw_exception_debug(&_1$$4, "phalcon/mvc/model/transaction.zep", 163 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -112884,7 +111405,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Transaction, getConnection) { zephir_read_property(&_0, this_ptr, SL("_rollbackOnAbort"), PH_NOISY_CC | PH_READONLY); if (zephir_is_true(&_0)) { - ZEPHIR_CALL_FUNCTION(&_1$$3, "connection_aborted", NULL, 377); + ZEPHIR_CALL_FUNCTION(&_1$$3, "connection_aborted", NULL, 341); zephir_check_call_status(); if (zephir_is_true(&_1$$3)) { ZEPHIR_INIT_VAR(&_2$$4); @@ -113175,11 +111696,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Validator, appendMessage) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &message_param, &field, &type); - if (unlikely(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'message' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(message_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(message_param) == IS_STRING)) { zephir_get_strval(&message, message_param); } else { ZEPHIR_INIT_VAR(&message); @@ -113209,7 +111730,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Validator, appendMessage) { } ZEPHIR_INIT_VAR(&_3); object_init_ex(&_3, phalcon_mvc_model_message_ce); - ZEPHIR_CALL_METHOD(NULL, &_3, "__construct", NULL, 8, &message, field, type); + ZEPHIR_CALL_METHOD(NULL, &_3, "__construct", NULL, 3, &message, field, type); zephir_check_call_status(); zephir_update_property_array_append(this_ptr, SL("_messages"), &_3 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -113248,11 +111769,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Validator, getOption) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &option_param, &defaultValue); - if (unlikely(Z_TYPE_P(option_param) != IS_STRING && Z_TYPE_P(option_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(option_param) != IS_STRING && Z_TYPE_P(option_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'option' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(option_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(option_param) == IS_STRING)) { zephir_get_strval(&option, option_param); } else { ZEPHIR_INIT_VAR(&option); @@ -113286,11 +111807,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Validator, isSetOption) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &option_param); - if (unlikely(Z_TYPE_P(option_param) != IS_STRING && Z_TYPE_P(option_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(option_param) != IS_STRING && Z_TYPE_P(option_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'option' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(option_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(option_param) == IS_STRING)) { zephir_get_strval(&option, option_param); } else { ZEPHIR_INIT_VAR(&option); @@ -113389,11 +111910,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Behavior_SoftDelete, notify) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &type_param, &model); - if (unlikely(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'type' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(type_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(type_param) == IS_STRING)) { zephir_get_strval(&type, type_param); } else { ZEPHIR_INIT_VAR(&type); @@ -113489,11 +112010,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Behavior_Timestampable, notify) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &type_param, &model); - if (unlikely(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'type' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(type_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(type_param) == IS_STRING)) { zephir_get_strval(&type, type_param); } else { ZEPHIR_INIT_VAR(&type); @@ -113518,7 +112039,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Behavior_Timestampable, notify) { ZVAL_NULL(×tamp); ZEPHIR_OBS_VAR(&format); if (zephir_array_isset_string_fetch(&format, &options, SL("format"), 0)) { - ZEPHIR_CALL_FUNCTION(×tamp, "date", NULL, 303, &format); + ZEPHIR_CALL_FUNCTION(×tamp, "date", NULL, 271, &format); zephir_check_call_status(); } else { ZEPHIR_OBS_VAR(&generator); @@ -113644,11 +112165,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Apc, read) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &key_param); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(&key, key_param); } else { ZEPHIR_INIT_VAR(&key); @@ -113659,7 +112180,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Apc, read) { zephir_read_property(&_0, this_ptr, SL("_prefix"), PH_NOISY_CC | PH_READONLY); ZEPHIR_INIT_VAR(&_1); ZEPHIR_CONCAT_SVV(&_1, "$PMM$", &_0, &key); - ZEPHIR_CALL_FUNCTION(&data, "apc_fetch", NULL, 85, &_1); + ZEPHIR_CALL_FUNCTION(&data, "apc_fetch", NULL, 77, &_1); zephir_check_call_status(); if (Z_TYPE_P(&data) == IS_ARRAY) { RETURN_CCTOR(data); @@ -113684,11 +112205,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Apc, write) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &key_param, &data); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(&key, key_param); } else { ZEPHIR_INIT_VAR(&key); @@ -113700,7 +112221,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Apc, write) { ZEPHIR_INIT_VAR(&_1); ZEPHIR_CONCAT_SVV(&_1, "$PMM$", &_0, &key); zephir_read_property(&_2, this_ptr, SL("_ttl"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(NULL, "apc_store", NULL, 86, &_1, data, &_2); + ZEPHIR_CALL_FUNCTION(NULL, "apc_store", NULL, 78, &_1, data, &_2); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -113793,11 +112314,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Files, read) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &key_param); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(&key, key_param); } else { ZEPHIR_INIT_VAR(&key); @@ -113842,11 +112363,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Files, write) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &key_param, &data); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(&key, key_param); } else { ZEPHIR_INIT_VAR(&key); @@ -113976,9 +112497,9 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Libmemcached, __construct) { ZEPHIR_OBS_VAR(&_4); zephir_read_property(&_4, this_ptr, SL("_ttl"), PH_NOISY_CC); zephir_array_update_string(&_3, SL("lifetime"), &_4, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", NULL, 333, &_3); + ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", NULL, 301, &_3); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, &_1, "__construct", NULL, 334, &_2, options); + ZEPHIR_CALL_METHOD(NULL, &_1, "__construct", NULL, 302, &_2, options); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_memcache"), &_1); ZEPHIR_MM_RESTORE(); @@ -113999,11 +112520,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Libmemcached, read) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &key_param); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(&key, key_param); } else { ZEPHIR_INIT_VAR(&key); @@ -114035,11 +112556,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Libmemcached, write) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &key_param, &data); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(&key, key_param); } else { ZEPHIR_INIT_VAR(&key); @@ -114095,7 +112616,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Libmemcached, reset) { ZEPHIR_INIT_NVAR(&_0$$3); ZEPHIR_INIT_NVAR(&key); } - ZEPHIR_CALL_PARENT(NULL, phalcon_mvc_model_metadata_libmemcached_ce, this_ptr, "reset", &_5, 335); + ZEPHIR_CALL_PARENT(NULL, phalcon_mvc_model_metadata_libmemcached_ce, this_ptr, "reset", &_5, 0); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -114215,9 +112736,9 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Memcache, __construct) { ZEPHIR_OBS_VAR(&_7); zephir_read_property(&_7, this_ptr, SL("_ttl"), PH_NOISY_CC); zephir_array_update_string(&_6, SL("lifetime"), &_7, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(NULL, &_5, "__construct", NULL, 333, &_6); + ZEPHIR_CALL_METHOD(NULL, &_5, "__construct", NULL, 301, &_6); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, &_4, "__construct", NULL, 336, &_5, options); + ZEPHIR_CALL_METHOD(NULL, &_4, "__construct", NULL, 303, &_5, options); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_memcache"), &_4); ZEPHIR_MM_RESTORE(); @@ -114238,11 +112759,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Memcache, read) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &key_param); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(&key, key_param); } else { ZEPHIR_INIT_VAR(&key); @@ -114274,11 +112795,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Memcache, write) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &key_param, &data); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(&key, key_param); } else { ZEPHIR_INIT_VAR(&key); @@ -114334,7 +112855,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Memcache, reset) { ZEPHIR_INIT_NVAR(&_0$$3); ZEPHIR_INIT_NVAR(&key); } - ZEPHIR_CALL_PARENT(NULL, phalcon_mvc_model_metadata_memcache_ce, this_ptr, "reset", &_5, 335); + ZEPHIR_CALL_PARENT(NULL, phalcon_mvc_model_metadata_memcache_ce, this_ptr, "reset", &_5, 0); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -114414,11 +112935,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Memory, read) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &key_param); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(&key, key_param); } else { ZEPHIR_INIT_VAR(&key); @@ -114442,11 +112963,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Memory, write) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &key_param, &data); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(&key, key_param); } else { ZEPHIR_INIT_VAR(&key); @@ -114572,9 +113093,9 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Redis, __construct) { ZEPHIR_OBS_VAR(&_7); zephir_read_property(&_7, this_ptr, SL("_ttl"), PH_NOISY_CC); zephir_array_update_string(&_6, SL("lifetime"), &_7, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(NULL, &_5, "__construct", NULL, 333, &_6); + ZEPHIR_CALL_METHOD(NULL, &_5, "__construct", NULL, 301, &_6); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, &_4, "__construct", NULL, 337, &_5, options); + ZEPHIR_CALL_METHOD(NULL, &_4, "__construct", NULL, 304, &_5, options); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_redis"), &_4); ZEPHIR_MM_RESTORE(); @@ -114595,11 +113116,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Redis, read) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &key_param); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(&key, key_param); } else { ZEPHIR_INIT_VAR(&key); @@ -114631,11 +113152,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Redis, write) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &key_param, &data); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(&key, key_param); } else { ZEPHIR_INIT_VAR(&key); @@ -114691,7 +113212,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Redis, reset) { ZEPHIR_INIT_NVAR(&_0$$3); ZEPHIR_INIT_NVAR(&key); } - ZEPHIR_CALL_PARENT(NULL, phalcon_mvc_model_metadata_redis_ce, this_ptr, "reset", &_5, 335); + ZEPHIR_CALL_PARENT(NULL, phalcon_mvc_model_metadata_redis_ce, this_ptr, "reset", &_5, 0); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -114782,11 +113303,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Session, read) { zephir_get_global(&_SESSION, SL("_SESSION")); zephir_fetch_params(1, 1, 0, &key_param); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(&key, key_param); } else { ZEPHIR_INIT_VAR(&key); @@ -114821,11 +113342,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Session, write) { zephir_get_global(&_SESSION, SL("_SESSION")); zephir_fetch_params(1, 2, 0, &key_param, &data); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(&key, key_param); } else { ZEPHIR_INIT_VAR(&key); @@ -114932,11 +113453,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Xcache, read) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &key_param); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(&key, key_param); } else { ZEPHIR_INIT_VAR(&key); @@ -114947,7 +113468,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Xcache, read) { zephir_read_property(&_0, this_ptr, SL("_prefix"), PH_NOISY_CC | PH_READONLY); ZEPHIR_INIT_VAR(&_1); ZEPHIR_CONCAT_SVV(&_1, "$PMM$", &_0, &key); - ZEPHIR_CALL_FUNCTION(&data, "xcache_get", NULL, 87, &_1); + ZEPHIR_CALL_FUNCTION(&data, "xcache_get", NULL, 79, &_1); zephir_check_call_status(); if (Z_TYPE_P(&data) == IS_ARRAY) { RETURN_CCTOR(data); @@ -114972,11 +113493,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Xcache, write) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &key_param, &data); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(&key, key_param); } else { ZEPHIR_INIT_VAR(&key); @@ -114988,7 +113509,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Xcache, write) { ZEPHIR_INIT_VAR(&_1); ZEPHIR_CONCAT_SVV(&_1, "$PMM$", &_0, &key); zephir_read_property(&_2, this_ptr, SL("_ttl"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(NULL, "xcache_set", NULL, 88, &_1, data, &_2); + ZEPHIR_CALL_FUNCTION(NULL, "xcache_set", NULL, 80, &_1, data, &_2); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -115117,7 +113638,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Strategy_Annotations, getMetaData) object_init_ex(&_1$$4, phalcon_mvc_model_exception_ce); ZEPHIR_INIT_VAR(&_2$$4); ZEPHIR_CONCAT_SV(&_2$$4, "No annotations were found in class ", &className); - ZEPHIR_CALL_METHOD(NULL, &_1$$4, "__construct", NULL, 9, &_2$$4); + ZEPHIR_CALL_METHOD(NULL, &_1$$4, "__construct", NULL, 4, &_2$$4); zephir_check_call_status(); zephir_throw_exception_debug(&_1$$4, "phalcon/mvc/model/metadata/strategy/annotations.zep", 51 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -115130,7 +113651,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Strategy_Annotations, getMetaData) object_init_ex(&_3$$5, phalcon_mvc_model_exception_ce); ZEPHIR_INIT_VAR(&_4$$5); ZEPHIR_CONCAT_SV(&_4$$5, "No properties with annotations were found in class ", &className); - ZEPHIR_CALL_METHOD(NULL, &_3$$5, "__construct", NULL, 9, &_4$$5); + ZEPHIR_CALL_METHOD(NULL, &_3$$5, "__construct", NULL, 4, &_4$$5); zephir_check_call_status(); zephir_throw_exception_debug(&_3$$5, "phalcon/mvc/model/metadata/strategy/annotations.zep", 60 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -115365,7 +113886,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Strategy_Annotations, getColumnMaps object_init_ex(&_1$$4, phalcon_mvc_model_exception_ce); ZEPHIR_INIT_VAR(&_2$$4); ZEPHIR_CONCAT_SV(&_2$$4, "No annotations were found in class ", &className); - ZEPHIR_CALL_METHOD(NULL, &_1$$4, "__construct", NULL, 9, &_2$$4); + ZEPHIR_CALL_METHOD(NULL, &_1$$4, "__construct", NULL, 4, &_2$$4); zephir_check_call_status(); zephir_throw_exception_debug(&_1$$4, "phalcon/mvc/model/metadata/strategy/annotations.zep", 217 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -115378,7 +113899,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Strategy_Annotations, getColumnMaps object_init_ex(&_3$$5, phalcon_mvc_model_exception_ce); ZEPHIR_INIT_VAR(&_4$$5); ZEPHIR_CONCAT_SV(&_4$$5, "No properties with annotations were found in class ", &className); - ZEPHIR_CALL_METHOD(NULL, &_3$$5, "__construct", NULL, 9, &_4$$5); + ZEPHIR_CALL_METHOD(NULL, &_3$$5, "__construct", NULL, 4, &_4$$5); zephir_check_call_status(); zephir_throw_exception_debug(&_3$$5, "phalcon/mvc/model/metadata/strategy/annotations.zep", 225 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -115524,7 +114045,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Strategy_Introspection, getMetaData zephir_get_class(&_2$$3, model, 0 TSRMLS_CC); ZEPHIR_INIT_VAR(&_3$$3); ZEPHIR_CONCAT_SVSV(&_3$$3, "Table '", &completeTable, "' doesn't exist in database when dumping meta-data for ", &_2$$3); - ZEPHIR_CALL_METHOD(NULL, &_1$$3, "__construct", NULL, 9, &_3$$3); + ZEPHIR_CALL_METHOD(NULL, &_1$$3, "__construct", NULL, 4, &_3$$3); zephir_check_call_status(); zephir_throw_exception_debug(&_1$$3, "phalcon/mvc/model/metadata/strategy/introspection.zep", 68 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -115545,7 +114066,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Strategy_Introspection, getMetaData zephir_get_class(&_5$$6, model, 0 TSRMLS_CC); ZEPHIR_INIT_VAR(&_6$$6); ZEPHIR_CONCAT_SVSV(&_6$$6, "Cannot obtain table columns for the mapped source '", &completeTable, "' used in model ", &_5$$6); - ZEPHIR_CALL_METHOD(NULL, &_4$$6, "__construct", NULL, 9, &_6$$6); + ZEPHIR_CALL_METHOD(NULL, &_4$$6, "__construct", NULL, 4, &_6$$6); zephir_check_call_status(); zephir_throw_exception_debug(&_4$$6, "phalcon/mvc/model/metadata/strategy/introspection.zep", 88 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -116111,11 +114632,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, join) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 3, &model_param, &conditions, &alias, &type); - if (unlikely(Z_TYPE_P(model_param) != IS_STRING && Z_TYPE_P(model_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(model_param) != IS_STRING && Z_TYPE_P(model_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'model' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(model_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(model_param) == IS_STRING)) { zephir_get_strval(&model, model_param); } else { ZEPHIR_INIT_VAR(&model); @@ -116163,11 +114684,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, innerJoin) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &model_param, &conditions, &alias); - if (unlikely(Z_TYPE_P(model_param) != IS_STRING && Z_TYPE_P(model_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(model_param) != IS_STRING && Z_TYPE_P(model_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'model' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(model_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(model_param) == IS_STRING)) { zephir_get_strval(&model, model_param); } else { ZEPHIR_INIT_VAR(&model); @@ -116213,11 +114734,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, leftJoin) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &model_param, &conditions, &alias); - if (unlikely(Z_TYPE_P(model_param) != IS_STRING && Z_TYPE_P(model_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(model_param) != IS_STRING && Z_TYPE_P(model_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'model' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(model_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(model_param) == IS_STRING)) { zephir_get_strval(&model, model_param); } else { ZEPHIR_INIT_VAR(&model); @@ -116263,11 +114784,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, rightJoin) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &model_param, &conditions, &alias); - if (unlikely(Z_TYPE_P(model_param) != IS_STRING && Z_TYPE_P(model_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(model_param) != IS_STRING && Z_TYPE_P(model_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'model' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(model_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(model_param) == IS_STRING)) { zephir_get_strval(&model, model_param); } else { ZEPHIR_INIT_VAR(&model); @@ -116374,11 +114895,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, andWhere) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &conditions_param, &bindParams, &bindTypes); - if (unlikely(Z_TYPE_P(conditions_param) != IS_STRING && Z_TYPE_P(conditions_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(conditions_param) != IS_STRING && Z_TYPE_P(conditions_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'conditions' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(conditions_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(conditions_param) == IS_STRING)) { zephir_get_strval(&conditions, conditions_param); } else { ZEPHIR_INIT_VAR(&conditions); @@ -116424,11 +114945,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, orWhere) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &conditions_param, &bindParams, &bindTypes); - if (unlikely(Z_TYPE_P(conditions_param) != IS_STRING && Z_TYPE_P(conditions_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(conditions_param) != IS_STRING && Z_TYPE_P(conditions_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'conditions' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(conditions_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(conditions_param) == IS_STRING)) { zephir_get_strval(&conditions, conditions_param); } else { ZEPHIR_INIT_VAR(&conditions); @@ -116485,11 +115006,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, betweenWhere) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 1, &expr_param, &minimum, &maximum, &operator_param); - if (unlikely(Z_TYPE_P(expr_param) != IS_STRING && Z_TYPE_P(expr_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(expr_param) != IS_STRING && Z_TYPE_P(expr_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'expr' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(expr_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(expr_param) == IS_STRING)) { zephir_get_strval(&expr, expr_param); } else { ZEPHIR_INIT_VAR(&expr); @@ -116499,11 +115020,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, betweenWhere) { ZEPHIR_INIT_VAR(&operator); ZVAL_STRING(&operator, "and"); } else { - if (unlikely(Z_TYPE_P(operator_param) != IS_STRING && Z_TYPE_P(operator_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(operator_param) != IS_STRING && Z_TYPE_P(operator_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'operator' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(operator_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(operator_param) == IS_STRING)) { zephir_get_strval(&operator, operator_param); } else { ZEPHIR_INIT_VAR(&operator); @@ -116521,9 +115042,9 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, betweenWhere) { object_init_ex(&_1$$3, phalcon_mvc_model_exception_ce); ZEPHIR_INIT_VAR(&_2$$3); ZVAL_STRING(&_2$$3, "Operator % is not available."); - ZEPHIR_CALL_FUNCTION(&_3$$3, "sprintf", NULL, 194, &_2$$3, &operator); + ZEPHIR_CALL_FUNCTION(&_3$$3, "sprintf", NULL, 176, &_2$$3, &operator); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, &_1$$3, "__construct", NULL, 9, &_3$$3); + ZEPHIR_CALL_METHOD(NULL, &_1$$3, "__construct", NULL, 4, &_3$$3); zephir_check_call_status(); zephir_throw_exception_debug(&_1$$3, "phalcon/mvc/model/query/builder.zep", 689 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -116583,11 +115104,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, notBetweenWhere) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 1, &expr_param, &minimum, &maximum, &operator_param); - if (unlikely(Z_TYPE_P(expr_param) != IS_STRING && Z_TYPE_P(expr_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(expr_param) != IS_STRING && Z_TYPE_P(expr_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'expr' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(expr_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(expr_param) == IS_STRING)) { zephir_get_strval(&expr, expr_param); } else { ZEPHIR_INIT_VAR(&expr); @@ -116597,11 +115118,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, notBetweenWhere) { ZEPHIR_INIT_VAR(&operator); ZVAL_STRING(&operator, "and"); } else { - if (unlikely(Z_TYPE_P(operator_param) != IS_STRING && Z_TYPE_P(operator_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(operator_param) != IS_STRING && Z_TYPE_P(operator_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'operator' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(operator_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(operator_param) == IS_STRING)) { zephir_get_strval(&operator, operator_param); } else { ZEPHIR_INIT_VAR(&operator); @@ -116619,9 +115140,9 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, notBetweenWhere) { object_init_ex(&_1$$3, phalcon_mvc_model_exception_ce); ZEPHIR_INIT_VAR(&_2$$3); ZVAL_STRING(&_2$$3, "Operator % is not available."); - ZEPHIR_CALL_FUNCTION(&_3$$3, "sprintf", NULL, 194, &_2$$3, &operator); + ZEPHIR_CALL_FUNCTION(&_3$$3, "sprintf", NULL, 176, &_2$$3, &operator); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, &_1$$3, "__construct", NULL, 9, &_3$$3); + ZEPHIR_CALL_METHOD(NULL, &_1$$3, "__construct", NULL, 4, &_3$$3); zephir_check_call_status(); zephir_throw_exception_debug(&_1$$3, "phalcon/mvc/model/query/builder.zep", 732 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -116686,11 +115207,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, inWhere) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 1, &expr_param, &values_param, &operator_param); - if (unlikely(Z_TYPE_P(expr_param) != IS_STRING && Z_TYPE_P(expr_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(expr_param) != IS_STRING && Z_TYPE_P(expr_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'expr' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(expr_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(expr_param) == IS_STRING)) { zephir_get_strval(&expr, expr_param); } else { ZEPHIR_INIT_VAR(&expr); @@ -116701,11 +115222,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, inWhere) { ZEPHIR_INIT_VAR(&operator); ZVAL_STRING(&operator, "and"); } else { - if (unlikely(Z_TYPE_P(operator_param) != IS_STRING && Z_TYPE_P(operator_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(operator_param) != IS_STRING && Z_TYPE_P(operator_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'operator' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(operator_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(operator_param) == IS_STRING)) { zephir_get_strval(&operator, operator_param); } else { ZEPHIR_INIT_VAR(&operator); @@ -116723,9 +115244,9 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, inWhere) { object_init_ex(&_1$$3, phalcon_mvc_model_exception_ce); ZEPHIR_INIT_VAR(&_2$$3); ZVAL_STRING(&_2$$3, "Operator % is not available."); - ZEPHIR_CALL_FUNCTION(&_3$$3, "sprintf", NULL, 194, &_2$$3, &operator); + ZEPHIR_CALL_FUNCTION(&_3$$3, "sprintf", NULL, 176, &_2$$3, &operator); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, &_1$$3, "__construct", NULL, 9, &_3$$3); + ZEPHIR_CALL_METHOD(NULL, &_1$$3, "__construct", NULL, 4, &_3$$3); zephir_check_call_status(); zephir_throw_exception_debug(&_1$$3, "phalcon/mvc/model/query/builder.zep", 775 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -116811,11 +115332,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, notInWhere) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 1, &expr_param, &values_param, &operator_param); - if (unlikely(Z_TYPE_P(expr_param) != IS_STRING && Z_TYPE_P(expr_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(expr_param) != IS_STRING && Z_TYPE_P(expr_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'expr' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(expr_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(expr_param) == IS_STRING)) { zephir_get_strval(&expr, expr_param); } else { ZEPHIR_INIT_VAR(&expr); @@ -116826,11 +115347,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, notInWhere) { ZEPHIR_INIT_VAR(&operator); ZVAL_STRING(&operator, "and"); } else { - if (unlikely(Z_TYPE_P(operator_param) != IS_STRING && Z_TYPE_P(operator_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(operator_param) != IS_STRING && Z_TYPE_P(operator_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'operator' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(operator_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(operator_param) == IS_STRING)) { zephir_get_strval(&operator, operator_param); } else { ZEPHIR_INIT_VAR(&operator); @@ -116848,9 +115369,9 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, notInWhere) { object_init_ex(&_1$$3, phalcon_mvc_model_exception_ce); ZEPHIR_INIT_VAR(&_2$$3); ZVAL_STRING(&_2$$3, "Operator % is not available."); - ZEPHIR_CALL_FUNCTION(&_3$$3, "sprintf", NULL, 194, &_2$$3, &operator); + ZEPHIR_CALL_FUNCTION(&_3$$3, "sprintf", NULL, 176, &_2$$3, &operator); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, &_1$$3, "__construct", NULL, 9, &_3$$3); + ZEPHIR_CALL_METHOD(NULL, &_1$$3, "__construct", NULL, 4, &_3$$3); zephir_check_call_status(); zephir_throw_exception_debug(&_1$$3, "phalcon/mvc/model/query/builder.zep", 824 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -116948,11 +115469,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, having) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &having_param); - if (unlikely(Z_TYPE_P(having_param) != IS_STRING && Z_TYPE_P(having_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(having_param) != IS_STRING && Z_TYPE_P(having_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'having' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(having_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(having_param) == IS_STRING)) { zephir_get_strval(&having, having_param); } else { ZEPHIR_INIT_VAR(&having); @@ -117022,10 +115543,10 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, limit) { ZVAL_LONG(&_0, limit); - ZEPHIR_CALL_FUNCTION(&_1, "abs", &_2, 199, &_0); + ZEPHIR_CALL_FUNCTION(&_1, "abs", &_2, 181, &_0); zephir_check_call_status(); limit = zephir_get_numberval(&_1); - if (unlikely(limit == 0)) { + if (UNEXPECTED(limit == 0)) { RETURN_THIS(); } ZEPHIR_INIT_ZVAL_NREF(_0); @@ -117033,7 +115554,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, limit) { zephir_update_property_zval(this_ptr, SL("_limit"), &_0); if (zephir_is_numeric(offset)) { ZVAL_LONG(&_3$$4, zephir_get_intval(offset)); - ZEPHIR_CALL_FUNCTION(&_4$$4, "abs", &_2, 199, &_3$$4); + ZEPHIR_CALL_FUNCTION(&_4$$4, "abs", &_2, 181, &_3$$4); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_offset"), &_4$$4); } @@ -117211,7 +115732,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, getPhql) { ZEPHIR_OBS_VAR(&dependencyInjector); zephir_read_property(&dependencyInjector, this_ptr, SL("_dependencyInjector"), PH_NOISY_CC); if (Z_TYPE_P(&dependencyInjector) != IS_OBJECT) { - ZEPHIR_CALL_CE_STATIC(&dependencyInjector, phalcon_di_ce, "getdefault", &_0, 1); + ZEPHIR_CALL_CE_STATIC(&dependencyInjector, phalcon_di_ce, "getdefault", &_0, 0); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_dependencyInjector"), &dependencyInjector); } @@ -117274,7 +115795,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, getPhql) { object_init_ex(&_5$$17, phalcon_mvc_model_exception_ce); ZEPHIR_INIT_VAR(&_6$$17); ZEPHIR_CONCAT_SVS(&_6$$17, "Column '", &firstPrimaryKey, "' isn't part of the column map"); - ZEPHIR_CALL_METHOD(NULL, &_5$$17, "__construct", NULL, 9, &_6$$17); + ZEPHIR_CALL_METHOD(NULL, &_5$$17, "__construct", NULL, 4, &_6$$17); zephir_check_call_status(); zephir_throw_exception_debug(&_5$$17, "phalcon/mvc/model/query/builder.zep", 1094 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -117283,9 +115804,9 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, getPhql) { } else { ZEPHIR_CPY_WRT(&attributeField, &firstPrimaryKey); } - ZEPHIR_CALL_METHOD(&_7$$13, this_ptr, "autoescape", &_8, 370, &model); + ZEPHIR_CALL_METHOD(&_7$$13, this_ptr, "autoescape", &_8, 337, &model); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_9$$13, this_ptr, "autoescape", &_8, 370, &attributeField); + ZEPHIR_CALL_METHOD(&_9$$13, this_ptr, "autoescape", &_8, 337, &attributeField); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_10$$13); ZEPHIR_CONCAT_VSVSV(&_10$$13, &_7$$13, ".", &_9$$13, " = ", &conditions); @@ -117335,7 +115856,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, getPhql) { if (Z_TYPE_P(&columnAlias) == IS_LONG) { zephir_array_append(&selectedColumns, &column, PH_SEPARATE, "phalcon/mvc/model/query/builder.zep", 1135); } else { - ZEPHIR_CALL_METHOD(&_15$$28, this_ptr, "autoescape", &_8, 370, &columnAlias); + ZEPHIR_CALL_METHOD(&_15$$28, this_ptr, "autoescape", &_8, 337, &columnAlias); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_16$$28); ZEPHIR_CONCAT_VSV(&_16$$28, &column, " AS ", &_15$$28); @@ -117367,11 +115888,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, getPhql) { ZVAL_COPY(&model, _18$$31); ZEPHIR_INIT_NVAR(&selectedColumn); if (Z_TYPE_P(&modelColumnAlias) == IS_LONG) { - ZEPHIR_CALL_METHOD(&_21$$33, this_ptr, "autoescape", &_8, 370, &model); + ZEPHIR_CALL_METHOD(&_21$$33, this_ptr, "autoescape", &_8, 337, &model); zephir_check_call_status(); ZEPHIR_CONCAT_VS(&selectedColumn, &_21$$33, ".*"); } else { - ZEPHIR_CALL_METHOD(&_22$$34, this_ptr, "autoescape", &_8, 370, &modelColumnAlias); + ZEPHIR_CALL_METHOD(&_22$$34, this_ptr, "autoescape", &_8, 337, &modelColumnAlias); zephir_check_call_status(); ZEPHIR_CONCAT_VS(&selectedColumn, &_22$$34, ".*"); } @@ -117383,7 +115904,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, getPhql) { zephir_fast_join_str(&_23$$31, SL(", "), &selectedColumns TSRMLS_CC); zephir_concat_self(&phql, &_23$$31 TSRMLS_CC); } else { - ZEPHIR_CALL_METHOD(&_24$$35, this_ptr, "autoescape", &_8, 370, &models); + ZEPHIR_CALL_METHOD(&_24$$35, this_ptr, "autoescape", &_8, 337, &models); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_25$$35); ZEPHIR_CONCAT_VS(&_25$$35, &_24$$35, ".*"); @@ -117405,14 +115926,14 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, getPhql) { ZEPHIR_INIT_NVAR(&model); ZVAL_COPY(&model, _26$$36); if (Z_TYPE_P(&modelAlias) == IS_STRING) { - ZEPHIR_CALL_METHOD(&_29$$38, this_ptr, "autoescape", &_8, 370, &model); + ZEPHIR_CALL_METHOD(&_29$$38, this_ptr, "autoescape", &_8, 337, &model); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_30$$38, this_ptr, "autoescape", &_8, 370, &modelAlias); + ZEPHIR_CALL_METHOD(&_30$$38, this_ptr, "autoescape", &_8, 337, &modelAlias); zephir_check_call_status(); ZEPHIR_INIT_NVAR(&selectedModel); ZEPHIR_CONCAT_VSV(&selectedModel, &_29$$38, " AS ", &_30$$38); } else { - ZEPHIR_CALL_METHOD(&selectedModel, this_ptr, "autoescape", &_8, 370, &model); + ZEPHIR_CALL_METHOD(&selectedModel, this_ptr, "autoescape", &_8, 337, &model); zephir_check_call_status(); } zephir_array_append(&selectedModels, &selectedModel, PH_SEPARATE, "phalcon/mvc/model/query/builder.zep", 1184); @@ -117425,7 +115946,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, getPhql) { ZEPHIR_CONCAT_SV(&_32$$36, " FROM ", &_31$$36); zephir_concat_self(&phql, &_32$$36 TSRMLS_CC); } else { - ZEPHIR_CALL_METHOD(&_33$$40, this_ptr, "autoescape", &_8, 370, &models); + ZEPHIR_CALL_METHOD(&_33$$40, this_ptr, "autoescape", &_8, 337, &models); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_34$$40); ZEPHIR_CONCAT_SV(&_34$$40, " FROM ", &_33$$40); @@ -117448,20 +115969,20 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, getPhql) { ZEPHIR_OBS_NVAR(&joinType); zephir_array_fetch_long(&joinType, &join, 3, PH_NOISY, "phalcon/mvc/model/query/builder.zep", 1219 TSRMLS_CC); if (zephir_is_true(&joinType)) { - ZEPHIR_CALL_METHOD(&_36$$43, this_ptr, "autoescape", &_8, 370, &joinModel); + ZEPHIR_CALL_METHOD(&_36$$43, this_ptr, "autoescape", &_8, 337, &joinModel); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_37$$43); ZEPHIR_CONCAT_SVSV(&_37$$43, " ", &joinType, " JOIN ", &_36$$43); zephir_concat_self(&phql, &_37$$43 TSRMLS_CC); } else { - ZEPHIR_CALL_METHOD(&_38$$44, this_ptr, "autoescape", &_8, 370, &joinModel); + ZEPHIR_CALL_METHOD(&_38$$44, this_ptr, "autoescape", &_8, 337, &joinModel); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_39$$44); ZEPHIR_CONCAT_SV(&_39$$44, " JOIN ", &_38$$44); zephir_concat_self(&phql, &_39$$44 TSRMLS_CC); } if (zephir_is_true(&joinAlias)) { - ZEPHIR_CALL_METHOD(&_40$$45, this_ptr, "autoescape", &_8, 370, &joinAlias); + ZEPHIR_CALL_METHOD(&_40$$45, this_ptr, "autoescape", &_8, 337, &joinAlias); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_41$$45); ZEPHIR_CONCAT_SV(&_41$$45, " AS ", &_40$$45); @@ -117506,7 +116027,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, getPhql) { { ZEPHIR_INIT_NVAR(&groupItem); ZVAL_COPY(&groupItem, _48$$49); - ZEPHIR_CALL_METHOD(&_49$$52, this_ptr, "autoescape", &_8, 370, &groupItem); + ZEPHIR_CALL_METHOD(&_49$$52, this_ptr, "autoescape", &_8, 337, &groupItem); zephir_check_call_status(); zephir_array_append(&groupItems, &_49$$52, PH_SEPARATE, "phalcon/mvc/model/query/builder.zep", 1268); } ZEND_HASH_FOREACH_END(); @@ -117537,7 +116058,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, getPhql) { { ZEPHIR_INIT_NVAR(&orderItem); ZVAL_COPY(&orderItem, _53$$56); - ZEPHIR_CALL_METHOD(&_54$$57, this_ptr, "autoescape", &_8, 370, &orderItem); + ZEPHIR_CALL_METHOD(&_54$$57, this_ptr, "autoescape", &_8, 337, &orderItem); zephir_check_call_status(); zephir_array_append(&orderItems, &_54$$57, PH_SEPARATE, "phalcon/mvc/model/query/builder.zep", 1289); } ZEND_HASH_FOREACH_END(); @@ -117584,7 +116105,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, getPhql) { if (zephir_is_numeric(&number)) { zephir_concat_self_str(&phql, SL(" LIMIT :APL0:") TSRMLS_CC); ZVAL_LONG(&_58$$67, 10); - ZEPHIR_CALL_FUNCTION(&_59$$67, "intval", &_60, 36, &number, &_58$$67); + ZEPHIR_CALL_FUNCTION(&_59$$67, "intval", &_60, 30, &number, &_58$$67); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_61$$67); ZVAL_STRING(&_61$$67, "APL0"); @@ -117597,7 +116118,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, getPhql) { if (zephir_is_numeric(&offset)) { zephir_concat_self_str(&phql, SL(" OFFSET :APL1:") TSRMLS_CC); ZVAL_LONG(&_64$$68, 10); - ZEPHIR_CALL_FUNCTION(&_65$$68, "intval", &_60, 36, &offset, &_64$$68); + ZEPHIR_CALL_FUNCTION(&_65$$68, "intval", &_60, 30, &offset, &_64$$68); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_66$$68); ZVAL_STRING(&_66$$68, "APL1"); @@ -117641,7 +116162,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, getQuery) { ZEPHIR_MM_GROW(); - ZEPHIR_CALL_METHOD(&phql, this_ptr, "getphql", NULL, 371); + ZEPHIR_CALL_METHOD(&phql, this_ptr, "getphql", NULL, 338); zephir_check_call_status(); zephir_read_property(&_0, this_ptr, SL("_dependencyInjector"), PH_NOISY_CC | PH_READONLY); ZEPHIR_CPY_WRT(&dependencyInjector, &_0); @@ -117820,11 +116341,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Lang, parsePHQL) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &phql_param); - if (unlikely(Z_TYPE_P(phql_param) != IS_STRING && Z_TYPE_P(phql_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(phql_param) != IS_STRING && Z_TYPE_P(phql_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'phql' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(phql_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(phql_param) == IS_STRING)) { zephir_get_strval(&phql, phql_param); } else { ZEPHIR_INIT_VAR(&phql); @@ -129729,7 +128250,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Resultset_Complex, __construct) { zephir_update_property_zval(this_ptr, SL("_columnTypes"), columnTypes); - ZEPHIR_CALL_PARENT(NULL, phalcon_mvc_model_resultset_complex_ce, this_ptr, "__construct", &_0, 372, result, cache); + ZEPHIR_CALL_PARENT(NULL, phalcon_mvc_model_resultset_complex_ce, this_ptr, "__construct", &_0, 0, result, cache); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -129952,7 +128473,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Resultset_Complex, toArray) { ZEPHIR_INIT_VAR(&records); array_init(&records); - ZEPHIR_CALL_METHOD(NULL, this_ptr, "rewind", NULL, 75); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "rewind", NULL, 69); zephir_check_call_status(); while (1) { ZEPHIR_CALL_METHOD(&_0, this_ptr, "valid", &_1, 0); @@ -129960,7 +128481,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Resultset_Complex, toArray) { if (!(zephir_is_true(&_0))) { break; } - ZEPHIR_CALL_METHOD(¤t, this_ptr, "current", &_2, 373); + ZEPHIR_CALL_METHOD(¤t, this_ptr, "current", &_2, 339); zephir_check_call_status(); zephir_array_append(&records, ¤t, PH_SEPARATE, "phalcon/mvc/model/resultset/complex.zep", 263); ZEPHIR_CALL_METHOD(NULL, this_ptr, "next", &_3, 0); @@ -130000,7 +128521,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Resultset_Complex, serialize) { zephir_array_update_string(&_0, SL("rows"), &records, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_0, SL("columnTypes"), &columnTypes, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_0, SL("hydrateMode"), &hydrateMode, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_FUNCTION(&serialized, "serialize", NULL, 65, &_0); + ZEPHIR_CALL_FUNCTION(&serialized, "serialize", NULL, 59, &_0); zephir_check_call_status(); RETURN_CCTOR(serialized); @@ -130027,11 +128548,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Resultset_Complex, unserialize) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &data_param); - if (unlikely(Z_TYPE_P(data_param) != IS_STRING && Z_TYPE_P(data_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(data_param) != IS_STRING && Z_TYPE_P(data_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'data' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(data_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(data_param) == IS_STRING)) { zephir_get_strval(&data, data_param); } else { ZEPHIR_INIT_VAR(&data); @@ -130044,7 +128565,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Resultset_Complex, unserialize) { } else { zephir_update_property_zval(this_ptr, SL("_disableHydration"), &__$false); } - ZEPHIR_CALL_FUNCTION(&resultset, "unserialize", NULL, 66, &data); + ZEPHIR_CALL_FUNCTION(&resultset, "unserialize", NULL, 60, &data); zephir_check_call_status(); if (Z_TYPE_P(&resultset) != IS_ARRAY) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Invalid serialization data", "phalcon/mvc/model/resultset/complex.zep", 310); @@ -130120,7 +128641,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Resultset_Simple, __construct) { zephir_update_property_zval(this_ptr, SL("_model"), model); zephir_update_property_zval(this_ptr, SL("_columnMap"), columnMap); zephir_update_property_zval(this_ptr, SL("_keepSnapshots"), keepSnapshots); - ZEPHIR_CALL_PARENT(NULL, phalcon_mvc_model_resultset_simple_ce, this_ptr, "__construct", &_0, 372, result, cache); + ZEPHIR_CALL_PARENT(NULL, phalcon_mvc_model_resultset_simple_ce, this_ptr, "__construct", &_0, 0, result, cache); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -130194,12 +128715,12 @@ static PHP_METHOD(Phalcon_Mvc_Model_Resultset_Simple, current) { zephir_read_property(&_7$$9, this_ptr, SL("_model"), PH_NOISY_CC | PH_READONLY); zephir_read_property(&_8$$9, this_ptr, SL("_keepSnapshots"), PH_NOISY_CC | PH_READONLY); ZVAL_LONG(&_9$$9, 0); - ZEPHIR_CALL_CE_STATIC(&activeRow, phalcon_mvc_model_ce, "cloneresultmap", &_6, 374, &_7$$9, &row, &columnMap, &_9$$9, &_8$$9); + ZEPHIR_CALL_CE_STATIC(&activeRow, phalcon_mvc_model_ce, "cloneresultmap", &_6, 0, &_7$$9, &row, &columnMap, &_9$$9, &_8$$9); zephir_check_call_status(); } break; } - ZEPHIR_CALL_CE_STATIC(&activeRow, phalcon_mvc_model_ce, "cloneresultmaphydrate", &_10, 375, &row, &columnMap, &hydrateMode); + ZEPHIR_CALL_CE_STATIC(&activeRow, phalcon_mvc_model_ce, "cloneresultmaphydrate", &_10, 0, &row, &columnMap, &hydrateMode); zephir_check_call_status(); break; } while(0); @@ -130293,7 +128814,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Resultset_Simple, toArray) { object_init_ex(&_5$$10, phalcon_mvc_model_exception_ce); ZEPHIR_INIT_LNVAR(_6$$10); ZEPHIR_CONCAT_SVS(&_6$$10, "Column '", &key, "' is not part of the column map"); - ZEPHIR_CALL_METHOD(NULL, &_5$$10, "__construct", &_7, 9, &_6$$10); + ZEPHIR_CALL_METHOD(NULL, &_5$$10, "__construct", &_7, 4, &_6$$10); zephir_check_call_status(); zephir_throw_exception_debug(&_5$$10, "phalcon/mvc/model/resultset/simple.zep", 199 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -130306,7 +128827,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Resultset_Simple, toArray) { object_init_ex(&_8$$12, phalcon_mvc_model_exception_ce); ZEPHIR_INIT_LNVAR(_9$$12); ZEPHIR_CONCAT_SVS(&_9$$12, "Column '", &key, "' is not part of the column map"); - ZEPHIR_CALL_METHOD(NULL, &_8$$12, "__construct", &_7, 9, &_9$$12); + ZEPHIR_CALL_METHOD(NULL, &_8$$12, "__construct", &_7, 4, &_9$$12); zephir_check_call_status(); zephir_throw_exception_debug(&_8$$12, "phalcon/mvc/model/resultset/simple.zep", 205 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -130362,7 +128883,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Resultset_Simple, serialize) { ZEPHIR_OBS_NVAR(&_1); zephir_read_property(&_1, this_ptr, SL("_keepSnapshots"), PH_NOISY_CC); zephir_array_update_string(&_0, SL("keepSnapshots"), &_1, PH_COPY | PH_SEPARATE); - ZEPHIR_RETURN_CALL_FUNCTION("serialize", NULL, 65, &_0); + ZEPHIR_RETURN_CALL_FUNCTION("serialize", NULL, 59, &_0); zephir_check_call_status(); RETURN_MM(); @@ -130389,11 +128910,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Resultset_Simple, unserialize) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &data_param); - if (unlikely(Z_TYPE_P(data_param) != IS_STRING && Z_TYPE_P(data_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(data_param) != IS_STRING && Z_TYPE_P(data_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'data' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(data_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(data_param) == IS_STRING)) { zephir_get_strval(&data, data_param); } else { ZEPHIR_INIT_VAR(&data); @@ -130401,7 +128922,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Resultset_Simple, unserialize) { } - ZEPHIR_CALL_FUNCTION(&resultset, "unserialize", NULL, 66, &data); + ZEPHIR_CALL_FUNCTION(&resultset, "unserialize", NULL, 60, &data); zephir_check_call_status(); if (Z_TYPE_P(&resultset) != IS_ARRAY) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Invalid serialization data", "phalcon/mvc/model/resultset/simple.zep", 252); @@ -130480,11 +129001,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Transaction_Failed, __construct) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &message_param, &record); - if (unlikely(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'message' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(message_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(message_param) == IS_STRING)) { zephir_get_strval(&message, message_param); } else { ZEPHIR_INIT_VAR(&message); @@ -130589,7 +129110,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Transaction_Manager, __construct) { if (!(zephir_is_true(dependencyInjector))) { - ZEPHIR_CALL_CE_STATIC(dependencyInjector, phalcon_di_ce, "getdefault", &_0, 1); + ZEPHIR_CALL_CE_STATIC(dependencyInjector, phalcon_di_ce, "getdefault", &_0, 0); zephir_check_call_status(); } zephir_update_property_zval(this_ptr, SL("_dependencyInjector"), dependencyInjector); @@ -130636,11 +129157,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Transaction_Manager, setDbService) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &service_param); - if (unlikely(Z_TYPE_P(service_param) != IS_STRING && Z_TYPE_P(service_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(service_param) != IS_STRING && Z_TYPE_P(service_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'service' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(service_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(service_param) == IS_STRING)) { zephir_get_strval(&service, service_param); } else { ZEPHIR_INIT_VAR(&service); @@ -130743,7 +129264,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Transaction_Manager, get) { ZEPHIR_INIT_VAR(&_3$$4); ZVAL_STRING(&_3$$4, "rollbackPendent"); zephir_array_fast_append(&_2$$4, &_3$$4); - ZEPHIR_CALL_FUNCTION(NULL, "register_shutdown_function", NULL, 378, &_2$$4); + ZEPHIR_CALL_FUNCTION(NULL, "register_shutdown_function", NULL, 342, &_2$$4); zephir_check_call_status(); } if (1) { @@ -130822,9 +129343,9 @@ static PHP_METHOD(Phalcon_Mvc_Model_Transaction_Manager, getOrCreateTransaction) } else { ZVAL_BOOL(&_4, 0); } - ZEPHIR_CALL_METHOD(NULL, &transaction, "__construct", NULL, 379, &dependencyInjector, &_4, &_3); + ZEPHIR_CALL_METHOD(NULL, &transaction, "__construct", NULL, 343, &dependencyInjector, &_4, &_3); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, &transaction, "settransactionmanager", NULL, 380, this_ptr); + ZEPHIR_CALL_METHOD(NULL, &transaction, "settransactionmanager", NULL, 344, this_ptr); zephir_check_call_status(); zephir_update_property_array_append(this_ptr, SL("_transactions"), &transaction TSRMLS_CC); RETURN_ON_FAILURE(zephir_property_incr(this_ptr, SL("_number") TSRMLS_CC)); @@ -131138,7 +129659,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Validator_Email, validate) { RETURN_MM_BOOL(1); } ZVAL_LONG(&_3, 274); - ZEPHIR_CALL_FUNCTION(&_4, "filter_var", NULL, 198, &value, &_3); + ZEPHIR_CALL_FUNCTION(&_4, "filter_var", NULL, 180, &value, &_3); zephir_check_call_status(); if (!(zephir_is_true(&_4))) { ZEPHIR_INIT_VAR(&_5$$5); @@ -131152,7 +129673,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Validator_Email, validate) { ZEPHIR_INIT_VAR(&_6$$5); zephir_create_array(&_6$$5, 1, 0 TSRMLS_CC); zephir_array_update_string(&_6$$5, SL(":field"), &field, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_FUNCTION(&_7$$5, "strtr", NULL, 26, &message, &_6$$5); + ZEPHIR_CALL_FUNCTION(&_7$$5, "strtr", NULL, 21, &message, &_6$$5); zephir_check_call_status(); ZEPHIR_INIT_NVAR(&_5$$5); ZVAL_STRING(&_5$$5, "Email"); @@ -131259,7 +129780,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Validator_Exclusionin, validate) { ZEPHIR_INIT_NVAR(&_4$$7); zephir_fast_join_str(&_4$$7, SL(", "), &domain TSRMLS_CC); zephir_array_update_string(&_5$$7, SL(":domain"), &_4$$7, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_FUNCTION(&_6$$7, "strtr", NULL, 26, &message, &_5$$7); + ZEPHIR_CALL_FUNCTION(&_6$$7, "strtr", NULL, 21, &message, &_5$$7); zephir_check_call_status(); ZEPHIR_INIT_NVAR(&_4$$7); ZVAL_STRING(&_4$$7, "Exclusion"); @@ -131371,7 +129892,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Validator_Inclusionin, validate) { ZEPHIR_CALL_METHOD(&strict, this_ptr, "getoption", NULL, 0, &_5$$7); zephir_check_call_status(); } - ZEPHIR_CALL_FUNCTION(&_6, "in_array", NULL, 381, &value, &domain, &strict); + ZEPHIR_CALL_FUNCTION(&_6, "in_array", NULL, 345, &value, &domain, &strict); zephir_check_call_status(); if (!(zephir_is_true(&_6))) { ZEPHIR_INIT_VAR(&_7$$9); @@ -131388,7 +129909,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Validator_Inclusionin, validate) { ZEPHIR_INIT_NVAR(&_7$$9); zephir_fast_join_str(&_7$$9, SL(", "), &domain TSRMLS_CC); zephir_array_update_string(&_8$$9, SL(":domain"), &_7$$9, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_FUNCTION(&_9$$9, "strtr", NULL, 26, &message, &_8$$9); + ZEPHIR_CALL_FUNCTION(&_9$$9, "strtr", NULL, 21, &message, &_8$$9); zephir_check_call_status(); ZEPHIR_INIT_NVAR(&_7$$9); ZVAL_STRING(&_7$$9, "Inclusion"); @@ -131519,7 +130040,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Validator_Ip, validate) { zephir_bitwise_or_function(&_8, &_7, &allowReserved TSRMLS_CC); zephir_array_update_string(&options, SL("flags"), &_8, PH_COPY | PH_SEPARATE); ZVAL_LONG(&_1, 275); - ZEPHIR_CALL_FUNCTION(&_9, "filter_var", NULL, 198, &value, &_1, &options); + ZEPHIR_CALL_FUNCTION(&_9, "filter_var", NULL, 180, &value, &_1, &options); zephir_check_call_status(); if (!(zephir_is_true(&_9))) { ZEPHIR_INIT_VAR(&_10$$5); @@ -131531,7 +130052,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Validator_Ip, validate) { ZEPHIR_INIT_VAR(&_12$$5); zephir_create_array(&_12$$5, 1, 0 TSRMLS_CC); zephir_array_update_string(&_12$$5, SL(":field"), &field, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_FUNCTION(&_13$$5, "strtr", NULL, 26, &message, &_12$$5); + ZEPHIR_CALL_FUNCTION(&_13$$5, "strtr", NULL, 21, &message, &_12$$5); zephir_check_call_status(); ZEPHIR_INIT_NVAR(&_10$$5); ZVAL_STRING(&_10$$5, "IP"); @@ -131617,7 +130138,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Validator_Numericality, validate) { ZEPHIR_INIT_VAR(&_4$$5); zephir_create_array(&_4$$5, 1, 0 TSRMLS_CC); zephir_array_update_string(&_4$$5, SL(":field"), &field, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_FUNCTION(&_5$$5, "strtr", NULL, 26, &message, &_4$$5); + ZEPHIR_CALL_FUNCTION(&_5$$5, "strtr", NULL, 21, &message, &_4$$5); zephir_check_call_status(); ZEPHIR_INIT_NVAR(&_3$$5); ZVAL_STRING(&_3$$5, "Numericality"); @@ -131699,7 +130220,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Validator_PresenceOf, validate) { ZEPHIR_INIT_VAR(&_4$$4); zephir_create_array(&_4$$4, 1, 0 TSRMLS_CC); zephir_array_update_string(&_4$$4, SL(":field"), &field, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_FUNCTION(&_5$$4, "strtr", NULL, 26, &message, &_4$$4); + ZEPHIR_CALL_FUNCTION(&_5$$4, "strtr", NULL, 21, &message, &_4$$4); zephir_check_call_status(); ZEPHIR_INIT_NVAR(&_3$$4); ZVAL_STRING(&_3$$4, "PresenceOf"); @@ -131812,7 +130333,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Validator_Regex, validate) { ZEPHIR_INIT_VAR(&_6$$8); zephir_create_array(&_6$$8, 1, 0 TSRMLS_CC); zephir_array_update_string(&_6$$8, SL(":field"), &field, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_FUNCTION(&_7$$8, "strtr", NULL, 26, &message, &_6$$8); + ZEPHIR_CALL_FUNCTION(&_7$$8, "strtr", NULL, 21, &message, &_6$$8); zephir_check_call_status(); ZEPHIR_INIT_NVAR(&_5$$8); ZVAL_STRING(&_5$$8, "Regex"); @@ -131914,7 +130435,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Validator_StringLength, validate) { RETURN_MM_BOOL(1); } if ((zephir_function_exists_ex(SL("mb_strlen") TSRMLS_CC) == SUCCESS)) { - ZEPHIR_CALL_FUNCTION(&length, "mb_strlen", NULL, 382, &value); + ZEPHIR_CALL_FUNCTION(&length, "mb_strlen", NULL, 346, &value); zephir_check_call_status(); } else { ZEPHIR_INIT_NVAR(&length); @@ -131938,7 +130459,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Validator_StringLength, validate) { zephir_create_array(&_6$$9, 2, 0 TSRMLS_CC); zephir_array_update_string(&_6$$9, SL(":field"), &field, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_6$$9, SL(":max"), &maximum, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_FUNCTION(&_7$$9, "strtr", &_8, 26, &message, &_6$$9); + ZEPHIR_CALL_FUNCTION(&_7$$9, "strtr", &_8, 21, &message, &_6$$9); zephir_check_call_status(); ZEPHIR_INIT_NVAR(&_5$$9); ZVAL_STRING(&_5$$9, "TooLong"); @@ -131965,7 +130486,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Validator_StringLength, validate) { zephir_create_array(&_11$$12, 2, 0 TSRMLS_CC); zephir_array_update_string(&_11$$12, SL(":field"), &field, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_11$$12, SL(":min"), &minimum, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_FUNCTION(&_12$$12, "strtr", &_8, 26, &message, &_11$$12); + ZEPHIR_CALL_FUNCTION(&_12$$12, "strtr", &_8, 21, &message, &_11$$12); zephir_check_call_status(); ZEPHIR_INIT_NVAR(&_10$$12); ZVAL_STRING(&_10$$12, "TooShort"); @@ -132094,7 +130615,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Validator_Uniqueness, validate) { object_init_ex(&_2$$8, phalcon_mvc_model_exception_ce); ZEPHIR_INIT_LNVAR(_3$$8); ZEPHIR_CONCAT_SVS(&_3$$8, "Column '", &composeField, "' isn't part of the column map"); - ZEPHIR_CALL_METHOD(NULL, &_2$$8, "__construct", &_4, 9, &_3$$8); + ZEPHIR_CALL_METHOD(NULL, &_2$$8, "__construct", &_4, 4, &_3$$8); zephir_check_call_status(); zephir_throw_exception_debug(&_2$$8, "phalcon/mvc/model/validator/uniqueness.zep", 107 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -132109,7 +130630,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Validator_Uniqueness, validate) { object_init_ex(&_5$$10, phalcon_mvc_model_exception_ce); ZEPHIR_INIT_LNVAR(_6$$10); ZEPHIR_CONCAT_SVS(&_6$$10, "Column '", &columnField, "' isn't part of the table columns"); - ZEPHIR_CALL_METHOD(NULL, &_5$$10, "__construct", &_4, 9, &_6$$10); + ZEPHIR_CALL_METHOD(NULL, &_5$$10, "__construct", &_4, 4, &_6$$10); zephir_check_call_status(); zephir_throw_exception_debug(&_5$$10, "phalcon/mvc/model/validator/uniqueness.zep", 117 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -132135,7 +130656,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Validator_Uniqueness, validate) { object_init_ex(&_11$$13, phalcon_mvc_model_exception_ce); ZEPHIR_INIT_VAR(&_12$$13); ZEPHIR_CONCAT_SVS(&_12$$13, "Column '", &field, "' isn't part of the column map"); - ZEPHIR_CALL_METHOD(NULL, &_11$$13, "__construct", &_4, 9, &_12$$13); + ZEPHIR_CALL_METHOD(NULL, &_11$$13, "__construct", &_4, 4, &_12$$13); zephir_check_call_status(); zephir_throw_exception_debug(&_11$$13, "phalcon/mvc/model/validator/uniqueness.zep", 137 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -132150,7 +130671,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Validator_Uniqueness, validate) { object_init_ex(&_13$$15, phalcon_mvc_model_exception_ce); ZEPHIR_INIT_VAR(&_14$$15); ZEPHIR_CONCAT_SVS(&_14$$15, "Column '", &columnField, "' isn't part of the table columns"); - ZEPHIR_CALL_METHOD(NULL, &_13$$15, "__construct", &_4, 9, &_14$$15); + ZEPHIR_CALL_METHOD(NULL, &_13$$15, "__construct", &_4, 4, &_14$$15); zephir_check_call_status(); zephir_throw_exception_debug(&_13$$15, "phalcon/mvc/model/validator/uniqueness.zep", 147 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -132188,7 +130709,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Validator_Uniqueness, validate) { object_init_ex(&_20$$20, phalcon_mvc_model_exception_ce); ZEPHIR_INIT_LNVAR(_21$$20); ZEPHIR_CONCAT_SVS(&_21$$20, "Column '", &primaryField, "' isn't part of the table columns"); - ZEPHIR_CALL_METHOD(NULL, &_20$$20, "__construct", &_4, 9, &_21$$20); + ZEPHIR_CALL_METHOD(NULL, &_20$$20, "__construct", &_4, 4, &_21$$20); zephir_check_call_status(); zephir_throw_exception_debug(&_20$$20, "phalcon/mvc/model/validator/uniqueness.zep", 177 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -132201,7 +130722,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Validator_Uniqueness, validate) { object_init_ex(&_22$$22, phalcon_mvc_model_exception_ce); ZEPHIR_INIT_LNVAR(_23$$22); ZEPHIR_CONCAT_SVS(&_23$$22, "Column '", &primaryField, "' isn't part of the column map"); - ZEPHIR_CALL_METHOD(NULL, &_22$$22, "__construct", &_4, 9, &_23$$22); + ZEPHIR_CALL_METHOD(NULL, &_22$$22, "__construct", &_4, 4, &_23$$22); zephir_check_call_status(); zephir_throw_exception_debug(&_22$$22, "phalcon/mvc/model/validator/uniqueness.zep", 185 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -132259,7 +130780,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Validator_Uniqueness, validate) { ZVAL_STRING(&message, "Value of field: ':field' is already present in another record"); } } - ZEPHIR_CALL_FUNCTION(&_32$$24, "strtr", NULL, 26, &message, &replacePairs); + ZEPHIR_CALL_FUNCTION(&_32$$24, "strtr", NULL, 21, &message, &replacePairs); zephir_check_call_status(); ZEPHIR_INIT_NVAR(&_30$$24); ZVAL_STRING(&_30$$24, "Unique"); @@ -132336,7 +130857,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Validator_Url, validate) { RETURN_MM_BOOL(1); } ZVAL_LONG(&_3, 273); - ZEPHIR_CALL_FUNCTION(&_4, "filter_var", NULL, 198, &value, &_3); + ZEPHIR_CALL_FUNCTION(&_4, "filter_var", NULL, 180, &value, &_3); zephir_check_call_status(); if (!(zephir_is_true(&_4))) { ZEPHIR_INIT_VAR(&_5$$5); @@ -132350,7 +130871,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Validator_Url, validate) { ZEPHIR_INIT_VAR(&_6$$5); zephir_create_array(&_6$$5, 1, 0 TSRMLS_CC); zephir_array_update_string(&_6$$5, SL(":field"), &field, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_FUNCTION(&_7$$5, "strtr", NULL, 26, &message, &_6$$5); + ZEPHIR_CALL_FUNCTION(&_7$$5, "strtr", NULL, 21, &message, &_6$$5); zephir_check_call_status(); ZEPHIR_INIT_NVAR(&_5$$5); ZVAL_STRING(&_5$$5, "Url"); @@ -132403,11 +130924,11 @@ static PHP_METHOD(Phalcon_Mvc_Router_Annotations, addResource) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &handler_param, &prefix_param); - if (unlikely(Z_TYPE_P(handler_param) != IS_STRING && Z_TYPE_P(handler_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(handler_param) != IS_STRING && Z_TYPE_P(handler_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'handler' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(handler_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(handler_param) == IS_STRING)) { zephir_get_strval(&handler, handler_param); } else { ZEPHIR_INIT_VAR(&handler); @@ -132417,11 +130938,11 @@ static PHP_METHOD(Phalcon_Mvc_Router_Annotations, addResource) { ZEPHIR_INIT_VAR(&prefix); ZVAL_STRING(&prefix, ""); } else { - if (unlikely(Z_TYPE_P(prefix_param) != IS_STRING && Z_TYPE_P(prefix_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(prefix_param) != IS_STRING && Z_TYPE_P(prefix_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'prefix' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(prefix_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(prefix_param) == IS_STRING)) { zephir_get_strval(&prefix, prefix_param); } else { ZEPHIR_INIT_VAR(&prefix); @@ -132454,21 +130975,21 @@ static PHP_METHOD(Phalcon_Mvc_Router_Annotations, addModuleResource) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 1, &module_param, &handler_param, &prefix_param); - if (unlikely(Z_TYPE_P(module_param) != IS_STRING && Z_TYPE_P(module_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(module_param) != IS_STRING && Z_TYPE_P(module_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'module' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(module_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(module_param) == IS_STRING)) { zephir_get_strval(&module, module_param); } else { ZEPHIR_INIT_VAR(&module); ZVAL_EMPTY_STRING(&module); } - if (unlikely(Z_TYPE_P(handler_param) != IS_STRING && Z_TYPE_P(handler_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(handler_param) != IS_STRING && Z_TYPE_P(handler_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'handler' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(handler_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(handler_param) == IS_STRING)) { zephir_get_strval(&handler, handler_param); } else { ZEPHIR_INIT_VAR(&handler); @@ -132478,11 +130999,11 @@ static PHP_METHOD(Phalcon_Mvc_Router_Annotations, addModuleResource) { ZEPHIR_INIT_VAR(&prefix); ZVAL_STRING(&prefix, ""); } else { - if (unlikely(Z_TYPE_P(prefix_param) != IS_STRING && Z_TYPE_P(prefix_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(prefix_param) != IS_STRING && Z_TYPE_P(prefix_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'prefix' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(prefix_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(prefix_param) == IS_STRING)) { zephir_get_strval(&prefix, prefix_param); } else { ZEPHIR_INIT_VAR(&prefix); @@ -132546,11 +131067,11 @@ static PHP_METHOD(Phalcon_Mvc_Router_Annotations, handle) { ZEPHIR_INIT_VAR(&uri); ZVAL_STRING(&uri, ""); } else { - if (unlikely(Z_TYPE_P(uri_param) != IS_STRING && Z_TYPE_P(uri_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(uri_param) != IS_STRING && Z_TYPE_P(uri_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'uri' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(uri_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(uri_param) == IS_STRING)) { zephir_get_strval(&uri, uri_param); } else { ZEPHIR_INIT_VAR(&uri); @@ -132675,7 +131196,7 @@ static PHP_METHOD(Phalcon_Mvc_Router_Annotations, handle) { } } ZEND_HASH_FOREACH_END(); ZEPHIR_INIT_NVAR(&scope); - ZEPHIR_CALL_PARENT(NULL, phalcon_mvc_router_annotations_ce, this_ptr, "handle", &_14, 383, &realUri); + ZEPHIR_CALL_PARENT(NULL, phalcon_mvc_router_annotations_ce, this_ptr, "handle", &_14, 0, &realUri); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -132697,11 +131218,11 @@ static PHP_METHOD(Phalcon_Mvc_Router_Annotations, processControllerAnnotation) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &handler_param, &annotation); - if (unlikely(Z_TYPE_P(handler_param) != IS_STRING && Z_TYPE_P(handler_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(handler_param) != IS_STRING && Z_TYPE_P(handler_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'handler' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(handler_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(handler_param) == IS_STRING)) { zephir_get_strval(&handler, handler_param); } else { ZEPHIR_INIT_VAR(&handler); @@ -132761,41 +131282,41 @@ static PHP_METHOD(Phalcon_Mvc_Router_Annotations, processActionAnnotation) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 5, 0, &module_param, &namespaceName_param, &controller_param, &action_param, &annotation); - if (unlikely(Z_TYPE_P(module_param) != IS_STRING && Z_TYPE_P(module_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(module_param) != IS_STRING && Z_TYPE_P(module_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'module' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(module_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(module_param) == IS_STRING)) { zephir_get_strval(&module, module_param); } else { ZEPHIR_INIT_VAR(&module); ZVAL_EMPTY_STRING(&module); } - if (unlikely(Z_TYPE_P(namespaceName_param) != IS_STRING && Z_TYPE_P(namespaceName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(namespaceName_param) != IS_STRING && Z_TYPE_P(namespaceName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'namespaceName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(namespaceName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(namespaceName_param) == IS_STRING)) { zephir_get_strval(&namespaceName, namespaceName_param); } else { ZEPHIR_INIT_VAR(&namespaceName); ZVAL_EMPTY_STRING(&namespaceName); } - if (unlikely(Z_TYPE_P(controller_param) != IS_STRING && Z_TYPE_P(controller_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(controller_param) != IS_STRING && Z_TYPE_P(controller_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'controller' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(controller_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(controller_param) == IS_STRING)) { zephir_get_strval(&controller, controller_param); } else { ZEPHIR_INIT_VAR(&controller); ZVAL_EMPTY_STRING(&controller); } - if (unlikely(Z_TYPE_P(action_param) != IS_STRING && Z_TYPE_P(action_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(action_param) != IS_STRING && Z_TYPE_P(action_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'action' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(action_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(action_param) == IS_STRING)) { zephir_get_strval(&action, action_param); } else { ZEPHIR_INIT_VAR(&action); @@ -132989,11 +131510,11 @@ static PHP_METHOD(Phalcon_Mvc_Router_Annotations, setControllerSuffix) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &controllerSuffix_param); - if (unlikely(Z_TYPE_P(controllerSuffix_param) != IS_STRING && Z_TYPE_P(controllerSuffix_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(controllerSuffix_param) != IS_STRING && Z_TYPE_P(controllerSuffix_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'controllerSuffix' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(controllerSuffix_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(controllerSuffix_param) == IS_STRING)) { zephir_get_strval(&controllerSuffix, controllerSuffix_param); } else { ZEPHIR_INIT_VAR(&controllerSuffix); @@ -133017,11 +131538,11 @@ static PHP_METHOD(Phalcon_Mvc_Router_Annotations, setActionSuffix) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &actionSuffix_param); - if (unlikely(Z_TYPE_P(actionSuffix_param) != IS_STRING && Z_TYPE_P(actionSuffix_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(actionSuffix_param) != IS_STRING && Z_TYPE_P(actionSuffix_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'actionSuffix' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(actionSuffix_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(actionSuffix_param) == IS_STRING)) { zephir_get_strval(&actionSuffix, actionSuffix_param); } else { ZEPHIR_INIT_VAR(&actionSuffix); @@ -133293,11 +131814,11 @@ static PHP_METHOD(Phalcon_Mvc_Router_Group, add) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &pattern_param, &paths, &httpMethods); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(&pattern, pattern_param); } else { ZEPHIR_INIT_VAR(&pattern); @@ -133334,11 +131855,11 @@ static PHP_METHOD(Phalcon_Mvc_Router_Group, addGet) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &pattern_param, &paths); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(&pattern, pattern_param); } else { ZEPHIR_INIT_VAR(&pattern); @@ -133373,11 +131894,11 @@ static PHP_METHOD(Phalcon_Mvc_Router_Group, addPost) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &pattern_param, &paths); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(&pattern, pattern_param); } else { ZEPHIR_INIT_VAR(&pattern); @@ -133412,11 +131933,11 @@ static PHP_METHOD(Phalcon_Mvc_Router_Group, addPut) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &pattern_param, &paths); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(&pattern, pattern_param); } else { ZEPHIR_INIT_VAR(&pattern); @@ -133451,11 +131972,11 @@ static PHP_METHOD(Phalcon_Mvc_Router_Group, addPatch) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &pattern_param, &paths); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(&pattern, pattern_param); } else { ZEPHIR_INIT_VAR(&pattern); @@ -133490,11 +132011,11 @@ static PHP_METHOD(Phalcon_Mvc_Router_Group, addDelete) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &pattern_param, &paths); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(&pattern, pattern_param); } else { ZEPHIR_INIT_VAR(&pattern); @@ -133529,11 +132050,11 @@ static PHP_METHOD(Phalcon_Mvc_Router_Group, addOptions) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &pattern_param, &paths); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(&pattern, pattern_param); } else { ZEPHIR_INIT_VAR(&pattern); @@ -133568,11 +132089,11 @@ static PHP_METHOD(Phalcon_Mvc_Router_Group, addHead) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &pattern_param, &paths); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(&pattern, pattern_param); } else { ZEPHIR_INIT_VAR(&pattern); @@ -133630,11 +132151,11 @@ static PHP_METHOD(Phalcon_Mvc_Router_Group, _addRoute) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &pattern_param, &paths, &httpMethods); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(&pattern, pattern_param); } else { ZEPHIR_INIT_VAR(&pattern); @@ -133654,7 +132175,7 @@ static PHP_METHOD(Phalcon_Mvc_Router_Group, _addRoute) { zephir_read_property(&defaultPaths, this_ptr, SL("_paths"), PH_NOISY_CC); if (Z_TYPE_P(&defaultPaths) == IS_ARRAY) { if (Z_TYPE_P(paths) == IS_STRING) { - ZEPHIR_CALL_CE_STATIC(&processedPaths, phalcon_mvc_router_route_ce, "getroutepaths", &_0, 78, paths); + ZEPHIR_CALL_CE_STATIC(&processedPaths, phalcon_mvc_router_route_ce, "getroutepaths", &_0, 0, paths); zephir_check_call_status(); } else { ZEPHIR_CPY_WRT(&processedPaths, paths); @@ -133673,10 +132194,10 @@ static PHP_METHOD(Phalcon_Mvc_Router_Group, _addRoute) { zephir_read_property(&_1, this_ptr, SL("_prefix"), PH_NOISY_CC | PH_READONLY); ZEPHIR_INIT_VAR(&_2); ZEPHIR_CONCAT_VV(&_2, &_1, &pattern); - ZEPHIR_CALL_METHOD(NULL, &route, "__construct", NULL, 77, &_2, &mergedPaths, httpMethods); + ZEPHIR_CALL_METHOD(NULL, &route, "__construct", NULL, 70, &_2, &mergedPaths, httpMethods); zephir_check_call_status(); zephir_update_property_array_append(this_ptr, SL("_routes"), &route TSRMLS_CC); - ZEPHIR_CALL_METHOD(NULL, &route, "setgroup", NULL, 384, this_ptr); + ZEPHIR_CALL_METHOD(NULL, &route, "setgroup", NULL, 347, this_ptr); zephir_check_call_status(); RETURN_CCTOR(route); @@ -133797,11 +132318,11 @@ static PHP_METHOD(Phalcon_Mvc_Router_Route, __construct) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &pattern_param, &paths, &httpMethods); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(&pattern, pattern_param); } else { ZEPHIR_INIT_VAR(&pattern); @@ -133861,11 +132382,11 @@ static PHP_METHOD(Phalcon_Mvc_Router_Route, compilePattern) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &pattern_param); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(&pattern, pattern_param); } else { ZEPHIR_INIT_VAR(&pattern); @@ -133986,11 +132507,11 @@ static PHP_METHOD(Phalcon_Mvc_Router_Route, extractNamedParams) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &pattern_param); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(&pattern, pattern_param); } else { ZEPHIR_INIT_VAR(&pattern); @@ -134234,11 +132755,11 @@ static PHP_METHOD(Phalcon_Mvc_Router_Route, reConfigure) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &pattern_param, &paths); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(&pattern, pattern_param); } else { ZEPHIR_INIT_VAR(&pattern); @@ -134563,11 +133084,11 @@ static PHP_METHOD(Phalcon_Mvc_Router_Route, setHostname) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &hostname_param); - if (unlikely(Z_TYPE_P(hostname_param) != IS_STRING && Z_TYPE_P(hostname_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(hostname_param) != IS_STRING && Z_TYPE_P(hostname_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'hostname' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(hostname_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(hostname_param) == IS_STRING)) { zephir_get_strval(&hostname, hostname_param); } else { ZEPHIR_INIT_VAR(&hostname); @@ -134626,11 +133147,11 @@ static PHP_METHOD(Phalcon_Mvc_Router_Route, convert) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &name_param, &converter); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(&name, name_param); } else { ZEPHIR_INIT_VAR(&name); @@ -135198,11 +133719,11 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine, partial) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &partialPath_param, ¶ms); - if (unlikely(Z_TYPE_P(partialPath_param) != IS_STRING && Z_TYPE_P(partialPath_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(partialPath_param) != IS_STRING && Z_TYPE_P(partialPath_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'partialPath' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(partialPath_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(partialPath_param) == IS_STRING)) { zephir_get_strval(&partialPath, partialPath_param); } else { ZEPHIR_INIT_VAR(&partialPath); @@ -135355,11 +133876,11 @@ static PHP_METHOD(Phalcon_Mvc_View_Simple, setViewsDir) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &viewsDir_param); - if (unlikely(Z_TYPE_P(viewsDir_param) != IS_STRING && Z_TYPE_P(viewsDir_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(viewsDir_param) != IS_STRING && Z_TYPE_P(viewsDir_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'viewsDir' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(viewsDir_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(viewsDir_param) == IS_STRING)) { zephir_get_strval(&viewsDir, viewsDir_param); } else { ZEPHIR_INIT_VAR(&viewsDir); @@ -135434,7 +133955,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Simple, _loadTemplateEngines) { if (Z_TYPE_P(®isteredEngines) != IS_ARRAY) { ZEPHIR_INIT_VAR(&_0$$4); object_init_ex(&_0$$4, phalcon_mvc_view_engine_php_ce); - ZEPHIR_CALL_METHOD(NULL, &_0$$4, "__construct", NULL, 386, this_ptr, &dependencyInjector); + ZEPHIR_CALL_METHOD(NULL, &_0$$4, "__construct", NULL, 349, this_ptr, &dependencyInjector); zephir_check_call_status(); zephir_array_update_string(&engines, SL(".phtml"), &_0$$4, PH_COPY | PH_SEPARATE); } else { @@ -135474,7 +133995,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Simple, _loadTemplateEngines) { object_init_ex(&_5$$13, phalcon_mvc_view_exception_ce); ZEPHIR_INIT_LNVAR(_6$$13); ZEPHIR_CONCAT_SV(&_6$$13, "Invalid template engine registration for extension: ", &extension); - ZEPHIR_CALL_METHOD(NULL, &_5$$13, "__construct", &_7, 9, &_6$$13); + ZEPHIR_CALL_METHOD(NULL, &_5$$13, "__construct", &_7, 4, &_6$$13); zephir_check_call_status(); zephir_throw_exception_debug(&_5$$13, "phalcon/mvc/view/simple.zep", 185 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -135531,11 +134052,11 @@ static PHP_METHOD(Phalcon_Mvc_View_Simple, _internalRender) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &path_param, ¶ms); - if (unlikely(Z_TYPE_P(path_param) != IS_STRING && Z_TYPE_P(path_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(path_param) != IS_STRING && Z_TYPE_P(path_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'path' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(path_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(path_param) == IS_STRING)) { zephir_get_strval(&path, path_param); } else { ZEPHIR_INIT_VAR(&path); @@ -135633,7 +134154,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Simple, _internalRender) { object_init_ex(&_17$$15, phalcon_mvc_view_exception_ce); ZEPHIR_INIT_VAR(&_18$$15); ZEPHIR_CONCAT_SVS(&_18$$15, "View '", &viewsDirPath, "' was not found in the views directory"); - ZEPHIR_CALL_METHOD(NULL, &_17$$15, "__construct", NULL, 9, &_18$$15); + ZEPHIR_CALL_METHOD(NULL, &_17$$15, "__construct", NULL, 4, &_18$$15); zephir_check_call_status(); zephir_throw_exception_debug(&_17$$15, "phalcon/mvc/view/simple.zep", 283 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -135675,11 +134196,11 @@ static PHP_METHOD(Phalcon_Mvc_View_Simple, render) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &path_param, ¶ms); - if (unlikely(Z_TYPE_P(path_param) != IS_STRING && Z_TYPE_P(path_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(path_param) != IS_STRING && Z_TYPE_P(path_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'path' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(path_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(path_param) == IS_STRING)) { zephir_get_strval(&path, path_param); } else { ZEPHIR_INIT_VAR(&path); @@ -135724,7 +134245,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Simple, render) { ZEPHIR_INIT_VAR(&_1); zephir_create_symbol_table(TSRMLS_C); - ZEPHIR_CALL_FUNCTION(NULL, "ob_start", NULL, 126); + ZEPHIR_CALL_FUNCTION(NULL, "ob_start", NULL, 115); zephir_check_call_status(); ZEPHIR_OBS_VAR(&viewParams); zephir_read_property(&viewParams, this_ptr, SL("_viewParams"), PH_NOISY_CC); @@ -135738,7 +134259,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Simple, render) { } else { ZEPHIR_CPY_WRT(&mergedParams, &viewParams); } - ZEPHIR_CALL_METHOD(NULL, this_ptr, "_internalrender", NULL, 406, &path, &mergedParams); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "_internalrender", NULL, 369, &path, &mergedParams); zephir_check_call_status(); if (Z_TYPE_P(&cache) == IS_OBJECT) { ZEPHIR_CALL_METHOD(&_2$$12, &cache, "isstarted", NULL, 0); @@ -135757,7 +134278,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Simple, render) { zephir_check_call_status(); } } - ZEPHIR_CALL_FUNCTION(NULL, "ob_end_clean", NULL, 128); + ZEPHIR_CALL_FUNCTION(NULL, "ob_end_clean", NULL, 117); zephir_check_call_status(); RETURN_MM_MEMBER(this_ptr, "_content"); @@ -135781,11 +134302,11 @@ static PHP_METHOD(Phalcon_Mvc_View_Simple, partial) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &partialPath_param, ¶ms); - if (unlikely(Z_TYPE_P(partialPath_param) != IS_STRING && Z_TYPE_P(partialPath_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(partialPath_param) != IS_STRING && Z_TYPE_P(partialPath_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'partialPath' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(partialPath_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(partialPath_param) == IS_STRING)) { zephir_get_strval(&partialPath, partialPath_param); } else { ZEPHIR_INIT_VAR(&partialPath); @@ -135797,7 +134318,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Simple, partial) { } - ZEPHIR_CALL_FUNCTION(NULL, "ob_start", NULL, 126); + ZEPHIR_CALL_FUNCTION(NULL, "ob_start", NULL, 115); zephir_check_call_status(); if (Z_TYPE_P(params) == IS_ARRAY) { ZEPHIR_OBS_VAR(&viewParams); @@ -135814,12 +134335,12 @@ static PHP_METHOD(Phalcon_Mvc_View_Simple, partial) { } else { ZEPHIR_CPY_WRT(&mergedParams, params); } - ZEPHIR_CALL_METHOD(NULL, this_ptr, "_internalrender", NULL, 406, &partialPath, &mergedParams); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "_internalrender", NULL, 369, &partialPath, &mergedParams); zephir_check_call_status(); if (Z_TYPE_P(params) == IS_ARRAY) { zephir_update_property_zval(this_ptr, SL("_viewParams"), &viewParams); } - ZEPHIR_CALL_FUNCTION(NULL, "ob_end_clean", NULL, 128); + ZEPHIR_CALL_FUNCTION(NULL, "ob_end_clean", NULL, 117); zephir_check_call_status(); zephir_read_property(&_1, this_ptr, SL("_content"), PH_NOISY_CC | PH_READONLY); zend_print_zval(&_1, 0); @@ -135980,11 +134501,11 @@ static PHP_METHOD(Phalcon_Mvc_View_Simple, setParamToView) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &key_param, &value); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(&key, key_param); } else { ZEPHIR_INIT_VAR(&key); @@ -136050,11 +134571,11 @@ static PHP_METHOD(Phalcon_Mvc_View_Simple, setVar) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &key_param, &value); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(&key, key_param); } else { ZEPHIR_INIT_VAR(&key); @@ -136080,11 +134601,11 @@ static PHP_METHOD(Phalcon_Mvc_View_Simple, getVar) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &key_param); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(&key, key_param); } else { ZEPHIR_INIT_VAR(&key); @@ -136120,11 +134641,11 @@ static PHP_METHOD(Phalcon_Mvc_View_Simple, setContent) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &content_param); - if (unlikely(Z_TYPE_P(content_param) != IS_STRING && Z_TYPE_P(content_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(content_param) != IS_STRING && Z_TYPE_P(content_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'content' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(content_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(content_param) == IS_STRING)) { zephir_get_strval(&content, content_param); } else { ZEPHIR_INIT_VAR(&content); @@ -136167,11 +134688,11 @@ static PHP_METHOD(Phalcon_Mvc_View_Simple, __set) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &key_param, &value); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(&key, key_param); } else { ZEPHIR_INIT_VAR(&key); @@ -136197,11 +134718,11 @@ static PHP_METHOD(Phalcon_Mvc_View_Simple, __get) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &key_param); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(&key, key_param); } else { ZEPHIR_INIT_VAR(&key); @@ -136256,11 +134777,11 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Php, render) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 1, &path_param, ¶ms, &mustClean_param); - if (unlikely(Z_TYPE_P(path_param) != IS_STRING && Z_TYPE_P(path_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(path_param) != IS_STRING && Z_TYPE_P(path_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'path' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(path_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(path_param) == IS_STRING)) { zephir_get_strval(&path, path_param); } else { ZEPHIR_INIT_VAR(&path); @@ -136274,7 +134795,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Php, render) { if (mustClean == 1) { - ZEPHIR_CALL_FUNCTION(NULL, "ob_clean", NULL, 388); + ZEPHIR_CALL_FUNCTION(NULL, "ob_clean", NULL, 351); zephir_check_call_status(); } if (Z_TYPE_P(params) == IS_ARRAY) { @@ -136302,7 +134823,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Php, render) { } if (mustClean == 1) { zephir_read_property(&_4$$6, this_ptr, SL("_view"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(&_5$$6, "ob_get_contents", NULL, 127); + ZEPHIR_CALL_FUNCTION(&_5$$6, "ob_get_contents", NULL, 116); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, &_4$$6, "setcontent", NULL, 0, &_5$$6); zephir_check_call_status(); @@ -136383,18 +134904,18 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt, getCompiler) { ZEPHIR_INIT_NVAR(&compiler); object_init_ex(&compiler, phalcon_mvc_view_engine_volt_compiler_ce); zephir_read_property(&_0$$3, this_ptr, SL("_view"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_METHOD(NULL, &compiler, "__construct", NULL, 389, &_0$$3); + ZEPHIR_CALL_METHOD(NULL, &compiler, "__construct", NULL, 352, &_0$$3); zephir_check_call_status(); zephir_read_property(&_1$$3, this_ptr, SL("_dependencyInjector"), PH_NOISY_CC | PH_READONLY); ZEPHIR_CPY_WRT(&dependencyInjector, &_1$$3); if (Z_TYPE_P(&dependencyInjector) == IS_OBJECT) { - ZEPHIR_CALL_METHOD(NULL, &compiler, "setdi", NULL, 390, &dependencyInjector); + ZEPHIR_CALL_METHOD(NULL, &compiler, "setdi", NULL, 353, &dependencyInjector); zephir_check_call_status(); } ZEPHIR_OBS_VAR(&options); zephir_read_property(&options, this_ptr, SL("_options"), PH_NOISY_CC); if (Z_TYPE_P(&options) == IS_ARRAY) { - ZEPHIR_CALL_METHOD(NULL, &compiler, "setoptions", NULL, 391, &options); + ZEPHIR_CALL_METHOD(NULL, &compiler, "setoptions", NULL, 354, &options); zephir_check_call_status(); } zephir_update_property_zval(this_ptr, SL("_compiler"), &compiler); @@ -136426,11 +134947,11 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt, render) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 1, &templatePath_param, ¶ms, &mustClean_param); - if (unlikely(Z_TYPE_P(templatePath_param) != IS_STRING && Z_TYPE_P(templatePath_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(templatePath_param) != IS_STRING && Z_TYPE_P(templatePath_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'templatePath' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(templatePath_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(templatePath_param) == IS_STRING)) { zephir_get_strval(&templatePath, templatePath_param); } else { ZEPHIR_INIT_VAR(&templatePath); @@ -136444,7 +134965,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt, render) { if (mustClean) { - ZEPHIR_CALL_FUNCTION(NULL, "ob_clean", NULL, 388); + ZEPHIR_CALL_FUNCTION(NULL, "ob_clean", NULL, 351); zephir_check_call_status(); } ZEPHIR_CALL_METHOD(&compiler, this_ptr, "getcompiler", NULL, 0); @@ -136478,7 +134999,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt, render) { } if (mustClean) { zephir_read_property(&_4$$6, this_ptr, SL("_view"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(&_5$$6, "ob_get_contents", NULL, 127); + ZEPHIR_CALL_FUNCTION(&_5$$6, "ob_get_contents", NULL, 116); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, &_4$$6, "setcontent", NULL, 0, &_5$$6); zephir_check_call_status(); @@ -136509,7 +135030,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt, length) { RETURN_MM_LONG(zephir_fast_count_int(item TSRMLS_CC)); } if ((zephir_function_exists_ex(SL("mb_strlen") TSRMLS_CC) == SUCCESS)) { - ZEPHIR_RETURN_CALL_FUNCTION("mb_strlen", NULL, 382, item); + ZEPHIR_RETURN_CALL_FUNCTION("mb_strlen", NULL, 346, item); zephir_check_call_status(); RETURN_MM(); } @@ -136538,7 +135059,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt, isIncluded) { } if (Z_TYPE_P(haystack) == IS_STRING) { if ((zephir_function_exists_ex(SL("mb_strpos") TSRMLS_CC) == SUCCESS)) { - ZEPHIR_CALL_FUNCTION(&_0$$5, "mb_strpos", NULL, 392, haystack, needle); + ZEPHIR_CALL_FUNCTION(&_0$$5, "mb_strpos", NULL, 355, haystack, needle); zephir_check_call_status(); RETURN_MM_BOOL(!ZEPHIR_IS_FALSE_IDENTICAL(&_0$$5)); } @@ -136567,21 +135088,21 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt, convertEncoding) { zephir_fetch_params(1, 3, 0, &text_param, &from_param, &to_param); zephir_get_strval(&text, text_param); - if (unlikely(Z_TYPE_P(from_param) != IS_STRING && Z_TYPE_P(from_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(from_param) != IS_STRING && Z_TYPE_P(from_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'from' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(from_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(from_param) == IS_STRING)) { zephir_get_strval(&from, from_param); } else { ZEPHIR_INIT_VAR(&from); ZVAL_EMPTY_STRING(&from); } - if (unlikely(Z_TYPE_P(to_param) != IS_STRING && Z_TYPE_P(to_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(to_param) != IS_STRING && Z_TYPE_P(to_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'to' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(to_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(to_param) == IS_STRING)) { zephir_get_strval(&to, to_param); } else { ZEPHIR_INIT_VAR(&to); @@ -136594,7 +135115,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt, convertEncoding) { _0 = ZEPHIR_IS_STRING(&to, "utf8"); } if (_0) { - ZEPHIR_RETURN_CALL_FUNCTION("utf8_encode", NULL, 393, &text); + ZEPHIR_RETURN_CALL_FUNCTION("utf8_encode", NULL, 356, &text); zephir_check_call_status(); RETURN_MM(); } @@ -136603,17 +135124,17 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt, convertEncoding) { _1 = ZEPHIR_IS_STRING(&from, "utf8"); } if (_1) { - ZEPHIR_RETURN_CALL_FUNCTION("utf8_decode", NULL, 394, &text); + ZEPHIR_RETURN_CALL_FUNCTION("utf8_decode", NULL, 357, &text); zephir_check_call_status(); RETURN_MM(); } if ((zephir_function_exists_ex(SL("mb_convert_encoding") TSRMLS_CC) == SUCCESS)) { - ZEPHIR_RETURN_CALL_FUNCTION("mb_convert_encoding", NULL, 187, &text, &from, &to); + ZEPHIR_RETURN_CALL_FUNCTION("mb_convert_encoding", NULL, 169, &text, &from, &to); zephir_check_call_status(); RETURN_MM(); } if ((zephir_function_exists_ex(SL("iconv") TSRMLS_CC) == SUCCESS)) { - ZEPHIR_RETURN_CALL_FUNCTION("iconv", NULL, 395, &from, &to, &text); + ZEPHIR_RETURN_CALL_FUNCTION("iconv", NULL, 358, &from, &to, &text); zephir_check_call_status(); RETURN_MM(); } @@ -136698,19 +135219,19 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt, slice) { } if (Z_TYPE_P(value) == IS_ARRAY) { ZVAL_LONG(&_5$$9, start); - ZEPHIR_RETURN_CALL_FUNCTION("array_slice", NULL, 396, value, &_5$$9, &length); + ZEPHIR_RETURN_CALL_FUNCTION("array_slice", NULL, 359, value, &_5$$9, &length); zephir_check_call_status(); RETURN_MM(); } if ((zephir_function_exists_ex(SL("mb_substr") TSRMLS_CC) == SUCCESS)) { if (Z_TYPE_P(&length) != IS_NULL) { ZVAL_LONG(&_6$$11, start); - ZEPHIR_RETURN_CALL_FUNCTION("mb_substr", &_7, 397, value, &_6$$11, &length); + ZEPHIR_RETURN_CALL_FUNCTION("mb_substr", &_7, 360, value, &_6$$11, &length); zephir_check_call_status(); RETURN_MM(); } ZVAL_LONG(&_8$$10, start); - ZEPHIR_RETURN_CALL_FUNCTION("mb_substr", &_7, 397, value, &_8$$10); + ZEPHIR_RETURN_CALL_FUNCTION("mb_substr", &_7, 360, value, &_8$$10); zephir_check_call_status(); RETURN_MM(); } @@ -136741,7 +135262,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt, sort) { ZEPHIR_MAKE_REF(&value); - ZEPHIR_CALL_FUNCTION(NULL, "asort", NULL, 398, &value); + ZEPHIR_CALL_FUNCTION(NULL, "asort", NULL, 361, &value); ZEPHIR_UNREF(&value); zephir_check_call_status(); RETURN_CTOR(value); @@ -136766,11 +135287,11 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt, callMacro) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &name_param, &arguments_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(&name, name_param); } else { ZEPHIR_INIT_VAR(&name); @@ -136791,13 +135312,13 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt, callMacro) { object_init_ex(&_1$$3, phalcon_mvc_view_exception_ce); ZEPHIR_INIT_VAR(&_2$$3); ZEPHIR_CONCAT_SVS(&_2$$3, "Macro '", &name, "' does not exist"); - ZEPHIR_CALL_METHOD(NULL, &_1$$3, "__construct", NULL, 9, &_2$$3); + ZEPHIR_CALL_METHOD(NULL, &_1$$3, "__construct", NULL, 4, &_2$$3); zephir_check_call_status(); zephir_throw_exception_debug(&_1$$3, "phalcon/mvc/view/engine/volt.zep", 287 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } - ZEPHIR_RETURN_CALL_FUNCTION("call_user_func", NULL, 399, ¯o, &arguments); + ZEPHIR_RETURN_CALL_FUNCTION("call_user_func", NULL, 362, ¯o, &arguments); zephir_check_call_status(); RETURN_MM(); @@ -136943,11 +135464,11 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, setOption) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &option_param, &value); - if (unlikely(Z_TYPE_P(option_param) != IS_STRING && Z_TYPE_P(option_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(option_param) != IS_STRING && Z_TYPE_P(option_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'option' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(option_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(option_param) == IS_STRING)) { zephir_get_strval(&option, option_param); } else { ZEPHIR_INIT_VAR(&option); @@ -136973,11 +135494,11 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, getOption) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &option_param); - if (unlikely(Z_TYPE_P(option_param) != IS_STRING && Z_TYPE_P(option_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(option_param) != IS_STRING && Z_TYPE_P(option_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'option' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(option_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(option_param) == IS_STRING)) { zephir_get_strval(&option, option_param); } else { ZEPHIR_INIT_VAR(&option); @@ -137022,11 +135543,11 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, fireExtensionEvent) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &name_param, &arguments); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(&name, name_param); } else { ZEPHIR_INIT_VAR(&name); @@ -137122,11 +135643,11 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, addFunction) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &name_param, &definition); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(&name, name_param); } else { ZEPHIR_INIT_VAR(&name); @@ -137160,11 +135681,11 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, addFilter) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &name_param, &definition); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(&name, name_param); } else { ZEPHIR_INIT_VAR(&name); @@ -137197,11 +135718,11 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, setUniquePrefix) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &prefix_param); - if (unlikely(Z_TYPE_P(prefix_param) != IS_STRING && Z_TYPE_P(prefix_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(prefix_param) != IS_STRING && Z_TYPE_P(prefix_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'prefix' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(prefix_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(prefix_param) == IS_STRING)) { zephir_get_strval(&prefix, prefix_param); } else { ZEPHIR_INIT_VAR(&prefix); @@ -137337,7 +135858,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, attributeReader) { } } } else { - ZEPHIR_CALL_METHOD(&leftCode, this_ptr, "expression", &_7, 400, &left); + ZEPHIR_CALL_METHOD(&leftCode, this_ptr, "expression", &_7, 363, &left); zephir_check_call_status(); ZEPHIR_OBS_VAR(&leftType); zephir_array_fetch_string(&leftType, &left, SL("type"), PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 328 TSRMLS_CC); @@ -137359,7 +135880,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, attributeReader) { zephir_array_fetch_string(&_10$$11, &right, SL("value"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 341 TSRMLS_CC); zephir_concat_self(&exprCode, &_10$$11 TSRMLS_CC); } else { - ZEPHIR_CALL_METHOD(&_11$$12, this_ptr, "expression", &_7, 400, &right); + ZEPHIR_CALL_METHOD(&_11$$12, this_ptr, "expression", &_7, 363, &right); zephir_check_call_status(); zephir_concat_self(&exprCode, &_11$$12 TSRMLS_CC); } @@ -137417,7 +135938,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, functionCall) { ZVAL_NULL(&funcArguments); ZEPHIR_OBS_NVAR(&funcArguments); if (zephir_array_isset_string_fetch(&funcArguments, &expr, SL("arguments"), 0)) { - ZEPHIR_CALL_METHOD(&arguments, this_ptr, "expression", &_0, 400, &funcArguments); + ZEPHIR_CALL_METHOD(&arguments, this_ptr, "expression", &_0, 363, &funcArguments); zephir_check_call_status(); } else { ZEPHIR_INIT_NVAR(&arguments); @@ -137440,7 +135961,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, functionCall) { zephir_array_fast_append(&_1$$6, &funcArguments); ZEPHIR_INIT_VAR(&_2$$6); ZVAL_STRING(&_2$$6, "compileFunction"); - ZEPHIR_CALL_METHOD(&code, this_ptr, "fireextensionevent", NULL, 401, &_2$$6, &_1$$6); + ZEPHIR_CALL_METHOD(&code, this_ptr, "fireextensionevent", NULL, 364, &_2$$6, &_1$$6); zephir_check_call_status(); if (Z_TYPE_P(&code) == IS_STRING) { RETURN_CCTOR(code); @@ -137472,7 +135993,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, functionCall) { zephir_array_fetch_string(&_6$$9, &expr, SL("line"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 418 TSRMLS_CC); ZEPHIR_INIT_VAR(&_7$$9); ZEPHIR_CONCAT_SVSVSV(&_7$$9, "Invalid definition for user function '", &name, "' in ", &_5$$9, " on line ", &_6$$9); - ZEPHIR_CALL_METHOD(NULL, &_4$$9, "__construct", NULL, 9, &_7$$9); + ZEPHIR_CALL_METHOD(NULL, &_4$$9, "__construct", NULL, 4, &_7$$9); zephir_check_call_status(); zephir_throw_exception_debug(&_4$$9, "phalcon/mvc/view/engine/volt/compiler.zep", 418 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -137501,7 +136022,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, functionCall) { ZEPHIR_OBS_VAR(&exprLevel); zephir_read_property(&exprLevel, this_ptr, SL("_exprLevel"), PH_NOISY_CC); if (Z_TYPE_P(&block) == IS_ARRAY) { - ZEPHIR_CALL_METHOD(&code, this_ptr, "_statementlistorextends", NULL, 402, &block); + ZEPHIR_CALL_METHOD(&code, this_ptr, "_statementlistorextends", NULL, 365, &block); zephir_check_call_status(); if (ZEPHIR_IS_LONG(&exprLevel, 1)) { ZEPHIR_CPY_WRT(&escapedCode, &code); @@ -137528,7 +136049,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, functionCall) { } ZEPHIR_INIT_VAR(&_9$$5); zephir_camelize(&_9$$5, &name, NULL ); - ZEPHIR_CALL_FUNCTION(&method, "lcfirst", NULL, 68, &_9$$5); + ZEPHIR_CALL_FUNCTION(&method, "lcfirst", NULL, 62, &_9$$5); zephir_check_call_status(); ZEPHIR_INIT_VAR(&className); ZVAL_STRING(&className, "Phalcon\\Tag"); @@ -137597,7 +136118,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, functionCall) { ZEPHIR_CONCAT_SVSVS(return_value, "$this->callMacro('", &name, "', [", &arguments, "])"); RETURN_MM(); } - ZEPHIR_CALL_METHOD(&_10, this_ptr, "expression", &_0, 400, &nameExpr); + ZEPHIR_CALL_METHOD(&_10, this_ptr, "expression", &_0, 363, &nameExpr); zephir_check_call_status(); ZEPHIR_CONCAT_VSVS(return_value, &_10, "(", &arguments, ")"); RETURN_MM(); @@ -137670,28 +136191,28 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, resolveTest) { if (zephir_array_isset_string_fetch(&name, &testName, SL("value"), 0)) { if (ZEPHIR_IS_STRING(&name, "divisibleby")) { zephir_array_fetch_string(&_1$$12, &test, SL("arguments"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 632 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_0$$12, this_ptr, "expression", &_2, 400, &_1$$12); + ZEPHIR_CALL_METHOD(&_0$$12, this_ptr, "expression", &_2, 363, &_1$$12); zephir_check_call_status(); ZEPHIR_CONCAT_SVSVS(return_value, "(((", &left, ") % (", &_0$$12, ")) == 0)"); RETURN_MM(); } if (ZEPHIR_IS_STRING(&name, "sameas")) { zephir_array_fetch_string(&_4$$13, &test, SL("arguments"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 639 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_3$$13, this_ptr, "expression", &_2, 400, &_4$$13); + ZEPHIR_CALL_METHOD(&_3$$13, this_ptr, "expression", &_2, 363, &_4$$13); zephir_check_call_status(); ZEPHIR_CONCAT_SVSVS(return_value, "(", &left, ") === (", &_3$$13, ")"); RETURN_MM(); } if (ZEPHIR_IS_STRING(&name, "type")) { zephir_array_fetch_string(&_6$$14, &test, SL("arguments"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 646 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_5$$14, this_ptr, "expression", &_2, 400, &_6$$14); + ZEPHIR_CALL_METHOD(&_5$$14, this_ptr, "expression", &_2, 363, &_6$$14); zephir_check_call_status(); ZEPHIR_CONCAT_SVSVS(return_value, "gettype(", &left, ") === (", &_5$$14, ")"); RETURN_MM(); } } } - ZEPHIR_CALL_METHOD(&_7, this_ptr, "expression", &_2, 400, &test); + ZEPHIR_CALL_METHOD(&_7, this_ptr, "expression", &_2, 363, &test); zephir_check_call_status(); ZEPHIR_CONCAT_VSV(return_value, &left, " == ", &_7); RETURN_MM(); @@ -137760,7 +136281,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, resolveFilter) { zephir_array_fetch_string(&_2$$5, &filter, SL("line"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 679 TSRMLS_CC); ZEPHIR_INIT_VAR(&_3$$5); ZEPHIR_CONCAT_SVSV(&_3$$5, "Unknown filter type in ", &_1$$5, " on line ", &_2$$5); - ZEPHIR_CALL_METHOD(NULL, &_0$$5, "__construct", NULL, 9, &_3$$5); + ZEPHIR_CALL_METHOD(NULL, &_0$$5, "__construct", NULL, 4, &_3$$5); zephir_check_call_status(); zephir_throw_exception_debug(&_0$$5, "phalcon/mvc/view/engine/volt/compiler.zep", 679 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -137794,11 +136315,11 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, resolveFilter) { zephir_array_update_string(&_4$$7, SL("file"), &file, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_4$$7, SL("line"), &line, PH_COPY | PH_SEPARATE); ZEPHIR_MAKE_REF(&funcArguments); - ZEPHIR_CALL_FUNCTION(NULL, "array_unshift", NULL, 403, &funcArguments, &_4$$7); + ZEPHIR_CALL_FUNCTION(NULL, "array_unshift", NULL, 366, &funcArguments, &_4$$7); ZEPHIR_UNREF(&funcArguments); zephir_check_call_status(); } - ZEPHIR_CALL_METHOD(&arguments, this_ptr, "expression", NULL, 400, &funcArguments); + ZEPHIR_CALL_METHOD(&arguments, this_ptr, "expression", NULL, 363, &funcArguments); zephir_check_call_status(); } else { ZEPHIR_CPY_WRT(&arguments, &left); @@ -137813,7 +136334,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, resolveFilter) { zephir_array_fast_append(&_6$$9, &funcArguments); ZEPHIR_INIT_VAR(&_7$$9); ZVAL_STRING(&_7$$9, "compileFilter"); - ZEPHIR_CALL_METHOD(&code, this_ptr, "fireextensionevent", NULL, 401, &_7$$9, &_6$$9); + ZEPHIR_CALL_METHOD(&code, this_ptr, "fireextensionevent", NULL, 364, &_7$$9, &_6$$9); zephir_check_call_status(); if (Z_TYPE_P(&code) == IS_STRING) { RETURN_CCTOR(code); @@ -137845,7 +136366,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, resolveFilter) { zephir_array_fetch_string(&_11$$12, &filter, SL("line"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 763 TSRMLS_CC); ZEPHIR_INIT_VAR(&_12$$12); ZEPHIR_CONCAT_SVSVSV(&_12$$12, "Invalid definition for user filter '", &name, "' in ", &_10$$12, " on line ", &_11$$12); - ZEPHIR_CALL_METHOD(NULL, &_9$$12, "__construct", NULL, 9, &_12$$12); + ZEPHIR_CALL_METHOD(NULL, &_9$$12, "__construct", NULL, 4, &_12$$12); zephir_check_call_status(); zephir_throw_exception_debug(&_9$$12, "phalcon/mvc/view/engine/volt/compiler.zep", 763 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -137974,7 +136495,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, resolveFilter) { zephir_array_fetch_string(&_18, &filter, SL("line"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 952 TSRMLS_CC); ZEPHIR_INIT_VAR(&_19); ZEPHIR_CONCAT_SVSVSV(&_19, "Unknown filter \"", &name, "\" in ", &_17, " on line ", &_18); - ZEPHIR_CALL_METHOD(NULL, &_16, "__construct", NULL, 9, &_19); + ZEPHIR_CALL_METHOD(NULL, &_16, "__construct", NULL, 4, &_19); zephir_check_call_status(); zephir_throw_exception_debug(&_16, "phalcon/mvc/view/engine/volt/compiler.zep", 952 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -138042,7 +136563,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, expression) { zephir_array_fast_append(&_0$$4, &expr); ZEPHIR_INIT_NVAR(&_1$$4); ZVAL_STRING(&_1$$4, "resolveExpression"); - ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "fireextensionevent", &_2, 401, &_1$$4, &_0$$4); + ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "fireextensionevent", &_2, 364, &_1$$4, &_0$$4); zephir_check_call_status(); if (Z_TYPE_P(&exprCode) == IS_STRING) { break; @@ -138058,7 +136579,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, expression) { ZEPHIR_INIT_NVAR(&singleExpr); ZVAL_COPY(&singleExpr, _3$$6); zephir_array_fetch_string(&_4$$7, &singleExpr, SL("expr"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 986 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&singleExprCode, this_ptr, "expression", &_5, 400, &_4$$7); + ZEPHIR_CALL_METHOD(&singleExprCode, this_ptr, "expression", &_5, 363, &_4$$7); zephir_check_call_status(); ZEPHIR_OBS_NVAR(&name); if (zephir_array_isset_string_fetch(&name, &singleExpr, SL("name"), 0)) { @@ -138081,7 +136602,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, expression) { } ZEPHIR_OBS_NVAR(&left); if (zephir_array_isset_string_fetch(&left, &expr, SL("left"), 0)) { - ZEPHIR_CALL_METHOD(&leftCode, this_ptr, "expression", &_5, 400, &left); + ZEPHIR_CALL_METHOD(&leftCode, this_ptr, "expression", &_5, 363, &left); zephir_check_call_status(); } if (ZEPHIR_IS_LONG(&type, 311)) { @@ -138092,13 +136613,13 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, expression) { } if (ZEPHIR_IS_LONG(&type, 124)) { zephir_array_fetch_string(&_10$$13, &expr, SL("right"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 1024 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "resolvefilter", &_11, 404, &_10$$13, &leftCode); + ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "resolvefilter", &_11, 367, &_10$$13, &leftCode); zephir_check_call_status(); break; } ZEPHIR_OBS_NVAR(&right); if (zephir_array_isset_string_fetch(&right, &expr, SL("right"), 0)) { - ZEPHIR_CALL_METHOD(&rightCode, this_ptr, "expression", &_5, 400, &right); + ZEPHIR_CALL_METHOD(&rightCode, this_ptr, "expression", &_5, 363, &right); zephir_check_call_status(); } ZEPHIR_INIT_NVAR(&exprCode); @@ -138274,7 +136795,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, expression) { if (ZEPHIR_IS_LONG(&type, 365)) { ZEPHIR_OBS_NVAR(&start); if (zephir_array_isset_string_fetch(&start, &expr, SL("start"), 0)) { - ZEPHIR_CALL_METHOD(&startCode, this_ptr, "expression", &_5, 400, &start); + ZEPHIR_CALL_METHOD(&startCode, this_ptr, "expression", &_5, 363, &start); zephir_check_call_status(); } else { ZEPHIR_INIT_NVAR(&startCode); @@ -138282,7 +136803,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, expression) { } ZEPHIR_OBS_NVAR(&end); if (zephir_array_isset_string_fetch(&end, &expr, SL("end"), 0)) { - ZEPHIR_CALL_METHOD(&endCode, this_ptr, "expression", &_5, 400, &end); + ZEPHIR_CALL_METHOD(&endCode, this_ptr, "expression", &_5, 363, &end); zephir_check_call_status(); } else { ZEPHIR_INIT_NVAR(&endCode); @@ -138374,7 +136895,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, expression) { } if (ZEPHIR_IS_LONG(&type, 366)) { zephir_array_fetch_string(&_19$$69, &expr, SL("ternary"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 1254 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_18$$69, this_ptr, "expression", &_5, 400, &_19$$69); + ZEPHIR_CALL_METHOD(&_18$$69, this_ptr, "expression", &_5, 363, &_19$$69); zephir_check_call_status(); ZEPHIR_INIT_NVAR(&exprCode); ZEPHIR_CONCAT_SVSVSVS(&exprCode, "(", &_18$$69, " ? ", &leftCode, " : ", &rightCode, ")"); @@ -138401,7 +136922,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, expression) { zephir_array_fetch_string(&_22$$73, &expr, SL("line"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 1270 TSRMLS_CC); ZEPHIR_INIT_LNVAR(_23$$73); ZEPHIR_CONCAT_SVSVSV(&_23$$73, "Unknown expression ", &type, " in ", &_21$$73, " on line ", &_22$$73); - ZEPHIR_CALL_METHOD(NULL, &_20$$73, "__construct", &_24, 9, &_23$$73); + ZEPHIR_CALL_METHOD(NULL, &_20$$73, "__construct", &_24, 4, &_23$$73); zephir_check_call_status(); zephir_throw_exception_debug(&_20$$73, "phalcon/mvc/view/engine/volt/compiler.zep", 1270 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -138449,7 +136970,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, _statementListOrExtends ZEPHIR_INIT_NVAR(&statement); } if (isStatementList == 1) { - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_statementlist", NULL, 405, statements); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_statementlist", NULL, 368, statements); zephir_check_call_status(); RETURN_MM(); } @@ -138536,7 +137057,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileForeach) { ZEPHIR_CONCAT_VV(&prefixLevel, &prefix, &level); ZEPHIR_OBS_VAR(&expr); zephir_array_fetch_string(&expr, &statement, SL("expr"), PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 1356 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "expression", &_0, 400, &expr); + ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "expression", &_0, 363, &expr); zephir_check_call_status(); ZEPHIR_OBS_VAR(&blockStatements); zephir_array_fetch_string(&blockStatements, &statement, SL("block_statements"), PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 1362 TSRMLS_CC); @@ -138571,7 +137092,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileForeach) { } else { ZVAL_BOOL(&_3, 0); } - ZEPHIR_CALL_METHOD(&code, this_ptr, "_statementlist", NULL, 405, &blockStatements, &_3); + ZEPHIR_CALL_METHOD(&code, this_ptr, "_statementlist", NULL, 368, &blockStatements, &_3); zephir_check_call_status(); ZEPHIR_OBS_VAR(&loopContext); zephir_read_property(&loopContext, this_ptr, SL("_loopPointers"), PH_NOISY_CC); @@ -138622,7 +137143,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileForeach) { } ZEPHIR_OBS_VAR(&ifExpr); if (zephir_array_isset_string_fetch(&ifExpr, &statement, SL("if_expr"), 0)) { - ZEPHIR_CALL_METHOD(&_15$$13, this_ptr, "expression", &_0, 400, &ifExpr); + ZEPHIR_CALL_METHOD(&_15$$13, this_ptr, "expression", &_0, 363, &ifExpr); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_16$$13); ZEPHIR_CONCAT_SVS(&_16$$13, "if (", &_15$$13, ") { ?>"); @@ -138738,7 +137259,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileIf) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "Corrupt statement", "phalcon/mvc/view/engine/volt/compiler.zep", 1509); return; } - ZEPHIR_CALL_METHOD(&_0, this_ptr, "expression", NULL, 400, &expr); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "expression", NULL, 363, &expr); zephir_check_call_status(); zephir_array_fetch_string(&_2, &statement, SL("true_statements"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 1515 TSRMLS_CC); if (extendsMode) { @@ -138746,7 +137267,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileIf) { } else { ZVAL_BOOL(&_3, 0); } - ZEPHIR_CALL_METHOD(&_1, this_ptr, "_statementlist", &_4, 405, &_2, &_3); + ZEPHIR_CALL_METHOD(&_1, this_ptr, "_statementlist", &_4, 368, &_2, &_3); zephir_check_call_status(); ZEPHIR_INIT_VAR(&compilation); ZEPHIR_CONCAT_SVSV(&compilation, "", &_1); @@ -138757,7 +137278,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileIf) { } else { ZVAL_BOOL(&_6$$4, 0); } - ZEPHIR_CALL_METHOD(&_5$$4, this_ptr, "_statementlist", &_4, 405, &blockStatements, &_6$$4); + ZEPHIR_CALL_METHOD(&_5$$4, this_ptr, "_statementlist", &_4, 368, &blockStatements, &_6$$4); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_7$$4); ZEPHIR_CONCAT_SV(&_7$$4, "", &_5$$4); @@ -138790,7 +137311,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileElseIf) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "Corrupt statement", "phalcon/mvc/view/engine/volt/compiler.zep", 1544); return; } - ZEPHIR_CALL_METHOD(&_0, this_ptr, "expression", NULL, 400, &expr); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "expression", NULL, 363, &expr); zephir_check_call_status(); ZEPHIR_CONCAT_SVS(return_value, ""); RETURN_MM(); @@ -138847,9 +137368,9 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileCache) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "Corrupt statement", "phalcon/mvc/view/engine/volt/compiler.zep", 1564); return; } - ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "expression", &_0, 400, &expr); + ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "expression", &_0, 363, &expr); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_1, this_ptr, "expression", &_0, 400, &expr); + ZEPHIR_CALL_METHOD(&_1, this_ptr, "expression", &_0, 363, &expr); zephir_check_call_status(); ZEPHIR_INIT_VAR(&compilation); ZEPHIR_CONCAT_SVS(&compilation, "di->get('viewCache'); "); @@ -138884,7 +137405,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileCache) { } else { ZVAL_BOOL(&_12, 0); } - ZEPHIR_CALL_METHOD(&_10, this_ptr, "_statementlist", NULL, 405, &_11, &_12); + ZEPHIR_CALL_METHOD(&_10, this_ptr, "_statementlist", NULL, 368, &_11, &_12); zephir_check_call_status(); zephir_concat_self(&compilation, &_10 TSRMLS_CC); ZEPHIR_OBS_NVAR(&lifetime); @@ -138955,10 +137476,10 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileSet) { ZEPHIR_INIT_NVAR(&assignment); ZVAL_COPY(&assignment, _0); zephir_array_fetch_string(&_1$$4, &assignment, SL("expr"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 1627 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "expression", &_2, 400, &_1$$4); + ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "expression", &_2, 363, &_1$$4); zephir_check_call_status(); zephir_array_fetch_string(&_3$$4, &assignment, SL("variable"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 1632 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&target, this_ptr, "expression", &_2, 400, &_3$$4); + ZEPHIR_CALL_METHOD(&target, this_ptr, "expression", &_2, 363, &_3$$4); zephir_check_call_status(); zephir_array_fetch_string(&_4$$4, &assignment, SL("op"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 1638 TSRMLS_CC); do { @@ -139021,7 +137542,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileDo) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "Corrupted statement", "phalcon/mvc/view/engine/volt/compiler.zep", 1678); return; } - ZEPHIR_CALL_METHOD(&_0, this_ptr, "expression", NULL, 400, &expr); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "expression", NULL, 363, &expr); zephir_check_call_status(); ZEPHIR_CONCAT_SVS(return_value, ""); RETURN_MM(); @@ -139050,7 +137571,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileReturn) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "Corrupted statement", "phalcon/mvc/view/engine/volt/compiler.zep", 1698); return; } - ZEPHIR_CALL_METHOD(&_0, this_ptr, "expression", NULL, 400, &expr); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "expression", NULL, 363, &expr); zephir_check_call_status(); ZEPHIR_CONCAT_SVS(return_value, ""); RETURN_MM(); @@ -139093,7 +137614,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileAutoEscape) { } else { ZVAL_BOOL(&_1, 0); } - ZEPHIR_CALL_METHOD(&compilation, this_ptr, "_statementlist", NULL, 405, &_0, &_1); + ZEPHIR_CALL_METHOD(&compilation, this_ptr, "_statementlist", NULL, 368, &_0, &_1); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_autoescape"), &oldAutoescape); RETURN_CCTOR(compilation); @@ -139127,7 +137648,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileEcho) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "Corrupt statement", "phalcon/mvc/view/engine/volt/compiler.zep", 1748); return; } - ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "expression", NULL, 400, &expr); + ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "expression", NULL, 363, &expr); zephir_check_call_status(); zephir_array_fetch_string(&_0, &expr, SL("type"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 1756 TSRMLS_CC); if (ZEPHIR_IS_LONG(&_0, 350)) { @@ -139204,14 +137725,14 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileInclude) { RETURN_CCTOR(compilation); } } - ZEPHIR_CALL_METHOD(&path, this_ptr, "expression", &_3, 400, &pathExpr); + ZEPHIR_CALL_METHOD(&path, this_ptr, "expression", &_3, 363, &pathExpr); zephir_check_call_status(); ZEPHIR_OBS_VAR(¶ms); if (!(zephir_array_isset_string_fetch(¶ms, &statement, SL("params"), 0))) { ZEPHIR_CONCAT_SVS(return_value, "partial(", &path, "); ?>"); RETURN_MM(); } - ZEPHIR_CALL_METHOD(&_4, this_ptr, "expression", &_3, 400, ¶ms); + ZEPHIR_CALL_METHOD(&_4, this_ptr, "expression", &_3, 363, ¶ms); zephir_check_call_status(); ZEPHIR_CONCAT_SVSVS(return_value, "partial(", &path, ", ", &_4, "); ?>"); RETURN_MM(); @@ -139274,7 +137795,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileMacro) { object_init_ex(&_1$$4, phalcon_mvc_view_engine_volt_exception_ce); ZEPHIR_INIT_VAR(&_2$$4); ZEPHIR_CONCAT_SVS(&_2$$4, "Macro '", &name, "' is already defined"); - ZEPHIR_CALL_METHOD(NULL, &_1$$4, "__construct", NULL, 9, &_2$$4); + ZEPHIR_CALL_METHOD(NULL, &_1$$4, "__construct", NULL, 4, &_2$$4); zephir_check_call_status(); zephir_throw_exception_debug(&_1$$4, "phalcon/mvc/view/engine/volt/compiler.zep", 1867 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -139323,7 +137844,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileMacro) { zephir_concat_self_str(&code, SL(" } else { ") TSRMLS_CC); ZEPHIR_OBS_NVAR(&defaultValue); if (zephir_array_isset_string_fetch(&defaultValue, ¶meter, SL("default"), 0)) { - ZEPHIR_CALL_METHOD(&_12$$8, this_ptr, "expression", &_13, 400, &defaultValue); + ZEPHIR_CALL_METHOD(&_12$$8, this_ptr, "expression", &_13, 363, &defaultValue); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_14$$8); ZEPHIR_CONCAT_SVSVS(&_14$$8, "$", &variableName, " = ", &_12$$8, ";"); @@ -139346,7 +137867,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileMacro) { } else { ZVAL_BOOL(&_17$$10, 0); } - ZEPHIR_CALL_METHOD(&_16$$10, this_ptr, "_statementlist", NULL, 405, &blockStatements, &_17$$10); + ZEPHIR_CALL_METHOD(&_16$$10, this_ptr, "_statementlist", NULL, 368, &blockStatements, &_17$$10); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_18$$10); ZEPHIR_CONCAT_VS(&_18$$10, &_16$$10, "> 1))); ZEPHIR_INIT_NVAR(&mask); @@ -154638,27 +153160,27 @@ static PHP_METHOD(Phalcon_Security_Random, number) { ZVAL_LONG(&_15$$7, 1); ZEPHIR_INIT_NVAR(&_16$$7); zephir_substr(&_16$$7, &rnd, 0 , 1 , 0); - ZEPHIR_CALL_FUNCTION(&_17$$7, "ord", &_9, 140, &_16$$7); + ZEPHIR_CALL_FUNCTION(&_17$$7, "ord", &_9, 128, &_16$$7); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_18$$7); zephir_bitwise_and_function(&_18$$7, &_17$$7, &mask TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_17$$7, "chr", &_19, 138, &_18$$7); + ZEPHIR_CALL_FUNCTION(&_17$$7, "chr", &_19, 126, &_18$$7); zephir_check_call_status(); ZVAL_LONG(&_20$$7, 0); ZVAL_LONG(&_21$$7, 1); - ZEPHIR_CALL_FUNCTION(&_22$$7, "substr_replace", &_23, 434, &rnd, &_17$$7, &_20$$7, &_21$$7); + ZEPHIR_CALL_FUNCTION(&_22$$7, "substr_replace", &_23, 397, &rnd, &_17$$7, &_20$$7, &_21$$7); zephir_check_call_status(); ZEPHIR_CPY_WRT(&rnd, &_22$$7); } while (ZEPHIR_LT(&bin, &rnd)); ZEPHIR_INIT_NVAR(&_6); ZVAL_STRING(&_6, "H*"); - ZEPHIR_CALL_FUNCTION(&ret, "unpack", NULL, 430, &_6, &rnd); + ZEPHIR_CALL_FUNCTION(&ret, "unpack", NULL, 393, &_6, &rnd); zephir_check_call_status(); ZEPHIR_MAKE_REF(&ret); - ZEPHIR_CALL_FUNCTION(&_24, "array_shift", NULL, 129, &ret); + ZEPHIR_CALL_FUNCTION(&_24, "array_shift", NULL, 118, &ret); ZEPHIR_UNREF(&ret); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_FUNCTION("hexdec", NULL, 435, &_24); + ZEPHIR_RETURN_CALL_FUNCTION("hexdec", NULL, 398, &_24); zephir_check_call_status(); RETURN_MM(); @@ -154736,7 +153258,7 @@ static PHP_METHOD(Phalcon_Session_Adapter, start) { ZEPHIR_MM_GROW(); - ZEPHIR_CALL_FUNCTION(&_0, "headers_sent", NULL, 27); + ZEPHIR_CALL_FUNCTION(&_0, "headers_sent", NULL, 22); zephir_check_call_status(); if (!(zephir_is_true(&_0))) { zephir_read_property(&_1$$3, this_ptr, SL("_started"), PH_NOISY_CC | PH_READONLY); @@ -154747,7 +153269,7 @@ static PHP_METHOD(Phalcon_Session_Adapter, start) { _2$$3 = !ZEPHIR_IS_LONG_IDENTICAL(&_3$$3, 2); } if (_2$$3) { - ZEPHIR_CALL_FUNCTION(NULL, "session_start", NULL, 28); + ZEPHIR_CALL_FUNCTION(NULL, "session_start", NULL, 23); zephir_check_call_status(); if (1) { zephir_update_property_zval(this_ptr, SL("_started"), &__$true); @@ -154808,7 +153330,7 @@ static PHP_METHOD(Phalcon_Session_Adapter, setName) { zephir_get_strval(&name, name_param); - ZEPHIR_CALL_FUNCTION(NULL, "session_name", NULL, 29, &name); + ZEPHIR_CALL_FUNCTION(NULL, "session_name", NULL, 24, &name); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -154822,7 +153344,7 @@ static PHP_METHOD(Phalcon_Session_Adapter, getName) { ZEPHIR_MM_GROW(); - ZEPHIR_RETURN_CALL_FUNCTION("session_name", NULL, 29); + ZEPHIR_RETURN_CALL_FUNCTION("session_name", NULL, 24); zephir_check_call_status(); RETURN_MM(); @@ -154848,7 +153370,7 @@ static PHP_METHOD(Phalcon_Session_Adapter, regenerateId) { ZVAL_BOOL(&_0, (deleteOldSession ? 1 : 0)); - ZEPHIR_CALL_FUNCTION(NULL, "session_regenerate_id", NULL, 30, &_0); + ZEPHIR_CALL_FUNCTION(NULL, "session_regenerate_id", NULL, 25, &_0); zephir_check_call_status(); RETURN_THIS(); @@ -154906,7 +153428,6 @@ static PHP_METHOD(Phalcon_Session_Adapter, get) { static PHP_METHOD(Phalcon_Session_Adapter, set) { - int _2, _1$$3; zval *index_param = NULL, *value, value_sub, _SESSION, uniqueId, _0$$3; zval index; ZEPHIR_INIT_THIS(); @@ -154928,18 +153449,10 @@ static PHP_METHOD(Phalcon_Session_Adapter, set) { if (!(ZEPHIR_IS_EMPTY(&uniqueId))) { ZEPHIR_INIT_VAR(&_0$$3); ZEPHIR_CONCAT_VSV(&_0$$3, &uniqueId, "#", &index); - _1$$3 = zephir_maybe_separate_zval(&_SESSION); - zephir_array_update_zval(&_SESSION, &_0$$3, value, PH_COPY | PH_SEPARATE); - if (_1$$3) { - ZEPHIR_SET_SYMBOL(&EG(symbol_table), "_SESSION", &_SESSION); - } + zephir_array_update_zval(&_SESSION, &_0$$3, value, PH_COPY); RETURN_MM_NULL(); } - _2 = zephir_maybe_separate_zval(&_SESSION); - zephir_array_update_zval(&_SESSION, &index, value, PH_COPY | PH_SEPARATE); - if (_2) { - ZEPHIR_SET_SYMBOL(&EG(symbol_table), "_SESSION", &_SESSION); - } + zephir_array_update_zval(&_SESSION, &index, value, PH_COPY); ZEPHIR_MM_RESTORE(); } @@ -155010,7 +153523,7 @@ static PHP_METHOD(Phalcon_Session_Adapter, getId) { ZEPHIR_MM_GROW(); - ZEPHIR_RETURN_CALL_FUNCTION("session_id", NULL, 31); + ZEPHIR_RETURN_CALL_FUNCTION("session_id", NULL, 26); zephir_check_call_status(); RETURN_MM(); @@ -155031,7 +153544,7 @@ static PHP_METHOD(Phalcon_Session_Adapter, setId) { zephir_get_strval(&id, id_param); - ZEPHIR_CALL_FUNCTION(NULL, "session_id", NULL, 31, &id); + ZEPHIR_CALL_FUNCTION(NULL, "session_id", NULL, 26, &id); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -155108,7 +153621,7 @@ static PHP_METHOD(Phalcon_Session_Adapter, destroy) { } else { zephir_update_property_zval(this_ptr, SL("_started"), &__$false); } - ZEPHIR_RETURN_CALL_FUNCTION("session_destroy", NULL, 32); + ZEPHIR_RETURN_CALL_FUNCTION("session_destroy", NULL, 27); zephir_check_call_status(); RETURN_MM(); @@ -155124,7 +153637,7 @@ static PHP_METHOD(Phalcon_Session_Adapter, status) { ZEPHIR_MM_GROW(); - ZEPHIR_CALL_FUNCTION(&status, "session_status", NULL, 33); + ZEPHIR_CALL_FUNCTION(&status, "session_status", NULL, 28); zephir_check_call_status(); do { if (ZEPHIR_IS_LONG(&status, 0)) { @@ -155238,7 +153751,7 @@ static PHP_METHOD(Phalcon_Session_Adapter, __destruct) { zephir_read_property(&_0, this_ptr, SL("_started"), PH_NOISY_CC | PH_READONLY); if (zephir_is_true(&_0)) { - ZEPHIR_CALL_FUNCTION(NULL, "session_write_close", NULL, 34); + ZEPHIR_CALL_FUNCTION(NULL, "session_write_close", NULL, 29); zephir_check_call_status(); if (0) { zephir_update_property_zval(this_ptr, SL("_started"), &__$true); @@ -155338,11 +153851,11 @@ static PHP_METHOD(Phalcon_Session_Bag, __construct) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(&name, name_param); } else { ZEPHIR_INIT_VAR(&name); @@ -155402,7 +153915,7 @@ static PHP_METHOD(Phalcon_Session_Bag, initialize) { ZEPHIR_OBS_VAR(&dependencyInjector); zephir_read_property(&dependencyInjector, this_ptr, SL("_dependencyInjector"), PH_NOISY_CC); if (Z_TYPE_P(&dependencyInjector) != IS_OBJECT) { - ZEPHIR_CALL_CE_STATIC(&dependencyInjector, phalcon_di_ce, "getdefault", &_0, 1); + ZEPHIR_CALL_CE_STATIC(&dependencyInjector, phalcon_di_ce, "getdefault", &_0, 0); zephir_check_call_status(); if (Z_TYPE_P(&dependencyInjector) != IS_OBJECT) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_session_exception_ce, "A dependency injection object is required to access the 'session' service", "phalcon/session/bag.zep", 91); @@ -155478,11 +153991,11 @@ static PHP_METHOD(Phalcon_Session_Bag, set) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &property_param, &value); - if (unlikely(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'property' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(property_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(property_param) == IS_STRING)) { zephir_get_strval(&property, property_param); } else { ZEPHIR_INIT_VAR(&property); @@ -155518,11 +154031,11 @@ static PHP_METHOD(Phalcon_Session_Bag, __set) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &property_param, &value); - if (unlikely(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'property' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(property_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(property_param) == IS_STRING)) { zephir_get_strval(&property, property_param); } else { ZEPHIR_INIT_VAR(&property); @@ -155553,11 +154066,11 @@ static PHP_METHOD(Phalcon_Session_Bag, get) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &property_param, &defaultValue); - if (unlikely(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'property' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(property_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(property_param) == IS_STRING)) { zephir_get_strval(&property, property_param); } else { ZEPHIR_INIT_VAR(&property); @@ -155595,11 +154108,11 @@ static PHP_METHOD(Phalcon_Session_Bag, __get) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &property_param); - if (unlikely(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'property' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(property_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(property_param) == IS_STRING)) { zephir_get_strval(&property, property_param); } else { ZEPHIR_INIT_VAR(&property); @@ -155627,11 +154140,11 @@ static PHP_METHOD(Phalcon_Session_Bag, has) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &property_param); - if (unlikely(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'property' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(property_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(property_param) == IS_STRING)) { zephir_get_strval(&property, property_param); } else { ZEPHIR_INIT_VAR(&property); @@ -155661,11 +154174,11 @@ static PHP_METHOD(Phalcon_Session_Bag, __isset) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &property_param); - if (unlikely(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'property' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(property_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(property_param) == IS_STRING)) { zephir_get_strval(&property, property_param); } else { ZEPHIR_INIT_VAR(&property); @@ -155695,11 +154208,11 @@ static PHP_METHOD(Phalcon_Session_Bag, remove) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &property_param); - if (unlikely(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'property' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(property_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(property_param) == IS_STRING)) { zephir_get_strval(&property, property_param); } else { ZEPHIR_INIT_VAR(&property); @@ -155739,11 +154252,11 @@ static PHP_METHOD(Phalcon_Session_Bag, __unset) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &property_param); - if (unlikely(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'property' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(property_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(property_param) == IS_STRING)) { zephir_get_strval(&property, property_param); } else { ZEPHIR_INIT_VAR(&property); @@ -155796,7 +154309,7 @@ static PHP_METHOD(Phalcon_Session_Bag, getIterator) { } object_init_ex(return_value, zephir_get_internal_ce(SL("arrayiterator"))); zephir_read_property(&_1, this_ptr, SL("_data"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 439, &_1); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 401, &_1); zephir_check_call_status(); RETURN_MM(); @@ -155815,11 +154328,11 @@ static PHP_METHOD(Phalcon_Session_Bag, offsetSet) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &property_param, &value); - if (unlikely(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'property' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(property_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(property_param) == IS_STRING)) { zephir_get_strval(&property, property_param); } else { ZEPHIR_INIT_VAR(&property); @@ -155845,11 +154358,11 @@ static PHP_METHOD(Phalcon_Session_Bag, offsetExists) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &property_param); - if (unlikely(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'property' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(property_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(property_param) == IS_STRING)) { zephir_get_strval(&property, property_param); } else { ZEPHIR_INIT_VAR(&property); @@ -155875,11 +154388,11 @@ static PHP_METHOD(Phalcon_Session_Bag, offsetUnset) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &property_param); - if (unlikely(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'property' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(property_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(property_param) == IS_STRING)) { zephir_get_strval(&property, property_param); } else { ZEPHIR_INIT_VAR(&property); @@ -155905,11 +154418,11 @@ static PHP_METHOD(Phalcon_Session_Bag, offsetGet) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &property_param); - if (unlikely(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'property' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(property_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(property_param) == IS_STRING)) { zephir_get_strval(&property, property_param); } else { ZEPHIR_INIT_VAR(&property); @@ -156085,7 +154598,7 @@ static PHP_METHOD(Phalcon_Session_Adapter_Libmemcached, __construct) { ZVAL_LONG(&lifetime, 8600); } ZVAL_LONG(&_0, 2592000); - ZEPHIR_CALL_FUNCTION(&_1, "min", NULL, 436, &lifetime, &_0); + ZEPHIR_CALL_FUNCTION(&_1, "min", NULL, 399, &lifetime, &_0); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_lifetime"), &_1); ZEPHIR_OBS_VAR(&prefix); @@ -156112,7 +154625,7 @@ static PHP_METHOD(Phalcon_Session_Adapter_Libmemcached, __construct) { ZEPHIR_OBS_VAR(&_5); zephir_read_property(&_5, this_ptr, SL("_lifetime"), PH_NOISY_CC); zephir_array_update_string(&_4, SL("lifetime"), &_5, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(NULL, &_3, "__construct", NULL, 333, &_4); + ZEPHIR_CALL_METHOD(NULL, &_3, "__construct", NULL, 301, &_4); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_6); zephir_create_array(&_6, 5, 0 TSRMLS_CC); @@ -156121,7 +154634,7 @@ static PHP_METHOD(Phalcon_Session_Adapter_Libmemcached, __construct) { zephir_array_update_string(&_6, SL("prefix"), &prefix, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_6, SL("statsKey"), &statsKey, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_6, SL("persistent_id"), &persistentId, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", NULL, 334, &_3, &_6); + ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", NULL, 302, &_3, &_6); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_libmemcached"), &_2); ZEPHIR_INIT_VAR(&_7); @@ -156160,9 +154673,9 @@ static PHP_METHOD(Phalcon_Session_Adapter_Libmemcached, __construct) { ZEPHIR_INIT_NVAR(&_8); ZVAL_STRING(&_8, "gc"); zephir_array_fast_append(&_13, &_8); - ZEPHIR_CALL_FUNCTION(NULL, "session_set_save_handler", NULL, 437, &_7, &_9, &_10, &_11, &_12, &_13); + ZEPHIR_CALL_FUNCTION(NULL, "session_set_save_handler", NULL, 400, &_7, &_9, &_10, &_11, &_12, &_13); zephir_check_call_status(); - ZEPHIR_CALL_PARENT(NULL, phalcon_session_adapter_libmemcached_ce, this_ptr, "__construct", &_14, 438, &options); + ZEPHIR_CALL_PARENT(NULL, phalcon_session_adapter_libmemcached_ce, this_ptr, "__construct", &_14, 0, &options); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -156422,9 +154935,9 @@ static PHP_METHOD(Phalcon_Session_Adapter_Memcache, __construct) { ZEPHIR_OBS_VAR(&_6); zephir_read_property(&_6, this_ptr, SL("_lifetime"), PH_NOISY_CC); zephir_array_update_string(&_5, SL("lifetime"), &_6, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(NULL, &_4, "__construct", NULL, 333, &_5); + ZEPHIR_CALL_METHOD(NULL, &_4, "__construct", NULL, 301, &_5); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, &_3, "__construct", NULL, 336, &_4, &options); + ZEPHIR_CALL_METHOD(NULL, &_3, "__construct", NULL, 303, &_4, &options); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_memcache"), &_3); ZEPHIR_INIT_VAR(&_7); @@ -156463,9 +154976,9 @@ static PHP_METHOD(Phalcon_Session_Adapter_Memcache, __construct) { ZEPHIR_INIT_NVAR(&_8); ZVAL_STRING(&_8, "gc"); zephir_array_fast_append(&_13, &_8); - ZEPHIR_CALL_FUNCTION(NULL, "session_set_save_handler", NULL, 437, &_7, &_9, &_10, &_11, &_12, &_13); + ZEPHIR_CALL_FUNCTION(NULL, "session_set_save_handler", NULL, 400, &_7, &_9, &_10, &_11, &_12, &_13); zephir_check_call_status(); - ZEPHIR_CALL_PARENT(NULL, phalcon_session_adapter_memcache_ce, this_ptr, "__construct", &_14, 438, &options); + ZEPHIR_CALL_PARENT(NULL, phalcon_session_adapter_memcache_ce, this_ptr, "__construct", &_14, 0, &options); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -156705,7 +155218,7 @@ static PHP_METHOD(Phalcon_Session_Adapter_Redis, __construct) { ZEPHIR_CALL_METHOD(NULL, &_3, "__construct", NULL, 0, &_4); zephir_check_call_status(); } - ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", NULL, 337, &_3, &options); + ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", NULL, 304, &_3, &options); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_redis"), &_2); ZEPHIR_INIT_VAR(&_6); @@ -156744,9 +155257,9 @@ static PHP_METHOD(Phalcon_Session_Adapter_Redis, __construct) { ZEPHIR_INIT_NVAR(&_7); ZVAL_STRING(&_7, "gc"); zephir_array_fast_append(&_12, &_7); - ZEPHIR_CALL_FUNCTION(NULL, "session_set_save_handler", NULL, 437, &_6, &_8, &_9, &_10, &_11, &_12); + ZEPHIR_CALL_FUNCTION(NULL, "session_set_save_handler", NULL, 400, &_6, &_8, &_9, &_10, &_11, &_12); zephir_check_call_status(); - ZEPHIR_CALL_PARENT(NULL, phalcon_session_adapter_redis_ce, this_ptr, "__construct", &_13, 438, &options); + ZEPHIR_CALL_PARENT(NULL, phalcon_session_adapter_redis_ce, this_ptr, "__construct", &_13, 0, &options); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -156985,7 +155498,7 @@ static PHP_METHOD(Phalcon_Tag_Select, selectField) { } ZEPHIR_OBS_VAR(&value); if (!(zephir_array_isset_string_fetch(&value, ¶ms, SL("value"), 0))) { - ZEPHIR_CALL_CE_STATIC(&value, phalcon_tag_ce, "getvalue", &_1, 6, &id, ¶ms); + ZEPHIR_CALL_CE_STATIC(&value, phalcon_tag_ce, "getvalue", &_1, 0, &id, ¶ms); zephir_check_call_status(); } else { zephir_array_unset_string(¶ms, SL("value"), PH_SEPARATE); @@ -157031,7 +155544,7 @@ static PHP_METHOD(Phalcon_Tag_Select, selectField) { zephir_array_unset_string(¶ms, SL("using"), PH_SEPARATE); ZEPHIR_INIT_VAR(&_5); ZVAL_STRING(&_5, "", &_10$$24); - ZEPHIR_CALL_SELF(&_8$$24, "_optionsfromresultset", &_9, 444, &options, &using, &value, &_11$$24); + ZEPHIR_CALL_SELF(&_8$$24, "_optionsfromresultset", &_9, 406, &options, &using, &value, &_11$$24); zephir_check_call_status(); zephir_concat_self(&code, &_8$$24 TSRMLS_CC); } else { @@ -157058,7 +155571,7 @@ static PHP_METHOD(Phalcon_Tag_Select, selectField) { ZEPHIR_GET_CONSTANT(&_14$$26, "PHP_EOL"); ZEPHIR_INIT_VAR(&_15$$26); ZEPHIR_CONCAT_SV(&_15$$26, "", &_14$$26); - ZEPHIR_CALL_SELF(&_12$$26, "_optionsfromarray", &_13, 445, &options, &value, &_15$$26); + ZEPHIR_CALL_SELF(&_12$$26, "_optionsfromarray", &_13, 407, &options, &value, &_15$$26); zephir_check_call_status(); zephir_concat_self(&code, &_12$$26 TSRMLS_CC); } else { @@ -157123,7 +155636,7 @@ static PHP_METHOD(Phalcon_Tag_Select, _optionsFromResultset) { ZEPHIR_OBS_VAR(&usingOne); zephir_array_fetch_long(&usingOne, using, 1, PH_NOISY, "phalcon/tag/select.zep", 168 TSRMLS_CC); } - ZEPHIR_CALL_CE_STATIC(&_0, phalcon_tag_ce, "getescaperservice", &_1, 446); + ZEPHIR_CALL_CE_STATIC(&_0, phalcon_tag_ce, "getescaperservice", &_1, 0); zephir_check_call_status(); ZEPHIR_CPY_WRT(&escaper, &_0); _2 = zephir_get_iterator(resultset TSRMLS_CC); @@ -157254,12 +155767,12 @@ static PHP_METHOD(Phalcon_Tag_Select, _optionsFromArray) { } ZEPHIR_INIT_NVAR(&optionText); ZVAL_COPY(&optionText, _0); - ZEPHIR_CALL_FUNCTION(&escaped, "htmlspecialchars", &_3, 188, &optionValue); + ZEPHIR_CALL_FUNCTION(&escaped, "htmlspecialchars", &_3, 170, &optionValue); zephir_check_call_status(); if (Z_TYPE_P(&optionText) == IS_ARRAY) { ZEPHIR_INIT_NVAR(&_4$$4); ZEPHIR_GET_CONSTANT(&_4$$4, "PHP_EOL"); - ZEPHIR_CALL_SELF(&_5$$4, "_optionsfromarray", &_6, 445, &optionText, value, closeOption); + ZEPHIR_CALL_SELF(&_5$$4, "_optionsfromarray", &_6, 407, &optionText, value, closeOption); zephir_check_call_status(); ZEPHIR_INIT_NVAR(&_7$$4); ZEPHIR_GET_CONSTANT(&_7$$4, "PHP_EOL"); @@ -157382,11 +155895,11 @@ static PHP_METHOD(Phalcon_Translate_Adapter, t) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &translateKey_param, &placeholders); - if (unlikely(Z_TYPE_P(translateKey_param) != IS_STRING && Z_TYPE_P(translateKey_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(translateKey_param) != IS_STRING && Z_TYPE_P(translateKey_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'translateKey' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(translateKey_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(translateKey_param) == IS_STRING)) { zephir_get_strval(&translateKey, translateKey_param); } else { ZEPHIR_INIT_VAR(&translateKey); @@ -157418,11 +155931,11 @@ static PHP_METHOD(Phalcon_Translate_Adapter, _) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &translateKey_param, &placeholders); - if (unlikely(Z_TYPE_P(translateKey_param) != IS_STRING && Z_TYPE_P(translateKey_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(translateKey_param) != IS_STRING && Z_TYPE_P(translateKey_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'translateKey' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(translateKey_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(translateKey_param) == IS_STRING)) { zephir_get_strval(&translateKey, translateKey_param); } else { ZEPHIR_INIT_VAR(&translateKey); @@ -157469,11 +155982,11 @@ static PHP_METHOD(Phalcon_Translate_Adapter, offsetExists) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &translateKey_param); - if (unlikely(Z_TYPE_P(translateKey_param) != IS_STRING && Z_TYPE_P(translateKey_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(translateKey_param) != IS_STRING && Z_TYPE_P(translateKey_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'translateKey' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(translateKey_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(translateKey_param) == IS_STRING)) { zephir_get_strval(&translateKey, translateKey_param); } else { ZEPHIR_INIT_VAR(&translateKey); @@ -157516,11 +156029,11 @@ static PHP_METHOD(Phalcon_Translate_Adapter, offsetGet) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &translateKey_param); - if (unlikely(Z_TYPE_P(translateKey_param) != IS_STRING && Z_TYPE_P(translateKey_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(translateKey_param) != IS_STRING && Z_TYPE_P(translateKey_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'translateKey' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(translateKey_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(translateKey_param) == IS_STRING)) { zephir_get_strval(&translateKey, translateKey_param); } else { ZEPHIR_INIT_VAR(&translateKey); @@ -157550,11 +156063,11 @@ static PHP_METHOD(Phalcon_Translate_Adapter, replacePlaceholders) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &translation_param, &placeholders); - if (unlikely(Z_TYPE_P(translation_param) != IS_STRING && Z_TYPE_P(translation_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(translation_param) != IS_STRING && Z_TYPE_P(translation_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'translation' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(translation_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(translation_param) == IS_STRING)) { zephir_get_strval(&translation, translation_param); } else { ZEPHIR_INIT_VAR(&translation); @@ -157678,7 +156191,7 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Csv, __construct) { ZEPHIR_OBS_COPY_OR_DUP(&options, options_param); - ZEPHIR_CALL_PARENT(NULL, phalcon_translate_adapter_csv_ce, this_ptr, "__construct", &_0, 455, &options); + ZEPHIR_CALL_PARENT(NULL, phalcon_translate_adapter_csv_ce, this_ptr, "__construct", &_0, 0, &options); zephir_check_call_status(); if (!(zephir_array_isset_string(&options, SL("content")))) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_translate_exception_ce, "Parameter 'content' is required", "phalcon/translate/adapter/csv.zep", 42); @@ -157690,7 +156203,7 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Csv, __construct) { ZVAL_STRING(&_3, ";"); ZEPHIR_INIT_VAR(&_4); ZVAL_STRING(&_4, "\""); - ZEPHIR_CALL_METHOD(NULL, this_ptr, "_load", NULL, 456, &_1, &_2, &_3, &_4); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "_load", NULL, 414, &_1, &_2, &_3, &_4); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -157727,21 +156240,21 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Csv, _load) { ZEPHIR_INIT_VAR(&_0); ZVAL_STRING(&_0, "rb"); - ZEPHIR_CALL_FUNCTION(&fileHandler, "fopen", NULL, 295, file, &_0); + ZEPHIR_CALL_FUNCTION(&fileHandler, "fopen", NULL, 263, file, &_0); zephir_check_call_status(); if (Z_TYPE_P(&fileHandler) != IS_RESOURCE) { ZEPHIR_INIT_VAR(&_1$$3); object_init_ex(&_1$$3, phalcon_translate_exception_ce); ZEPHIR_INIT_VAR(&_2$$3); ZEPHIR_CONCAT_SVS(&_2$$3, "Error opening translation file '", file, "'"); - ZEPHIR_CALL_METHOD(NULL, &_1$$3, "__construct", NULL, 9, &_2$$3); + ZEPHIR_CALL_METHOD(NULL, &_1$$3, "__construct", NULL, 4, &_2$$3); zephir_check_call_status(); zephir_throw_exception_debug(&_1$$3, "phalcon/translate/adapter/csv.zep", 63 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } while (1) { - ZEPHIR_CALL_FUNCTION(&data, "fgetcsv", &_3, 457, &fileHandler, length, delimiter, enclosure); + ZEPHIR_CALL_FUNCTION(&data, "fgetcsv", &_3, 415, &fileHandler, length, delimiter, enclosure); zephir_check_call_status(); if (ZEPHIR_IS_FALSE_IDENTICAL(&data)) { break; @@ -157784,11 +156297,11 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Csv, query) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &index_param, &placeholders); - if (unlikely(Z_TYPE_P(index_param) != IS_STRING && Z_TYPE_P(index_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(index_param) != IS_STRING && Z_TYPE_P(index_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'index' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(index_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(index_param) == IS_STRING)) { zephir_get_strval(&index, index_param); } else { ZEPHIR_INIT_VAR(&index); @@ -157823,11 +156336,11 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Csv, exists) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &index_param); - if (unlikely(Z_TYPE_P(index_param) != IS_STRING && Z_TYPE_P(index_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(index_param) != IS_STRING && Z_TYPE_P(index_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'index' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(index_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(index_param) == IS_STRING)) { zephir_get_strval(&index, index_param); } else { ZEPHIR_INIT_VAR(&index); @@ -157946,7 +156459,7 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, __construct) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_translate_exception_ce, "This class requires the gettext extension for PHP", "phalcon/translate/adapter/gettext.zep", 72); return; } - ZEPHIR_CALL_PARENT(NULL, phalcon_translate_adapter_gettext_ce, this_ptr, "__construct", &_0, 455, &options); + ZEPHIR_CALL_PARENT(NULL, phalcon_translate_adapter_gettext_ce, this_ptr, "__construct", &_0, 0, &options); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, this_ptr, "prepareoptions", NULL, 0, &options); zephir_check_call_status(); @@ -157969,11 +156482,11 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, query) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &index_param, &placeholders); - if (unlikely(Z_TYPE_P(index_param) != IS_STRING && Z_TYPE_P(index_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(index_param) != IS_STRING && Z_TYPE_P(index_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'index' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(index_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(index_param) == IS_STRING)) { zephir_get_strval(&index, index_param); } else { ZEPHIR_INIT_VAR(&index); @@ -157985,7 +156498,7 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, query) { } - ZEPHIR_CALL_FUNCTION(&translation, "gettext", NULL, 458, &index); + ZEPHIR_CALL_FUNCTION(&translation, "gettext", NULL, 416, &index); zephir_check_call_status(); ZEPHIR_RETURN_CALL_METHOD(this_ptr, "replaceplaceholders", NULL, 0, &translation, placeholders); zephir_check_call_status(); @@ -158006,11 +156519,11 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, exists) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &index_param); - if (unlikely(Z_TYPE_P(index_param) != IS_STRING && Z_TYPE_P(index_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(index_param) != IS_STRING && Z_TYPE_P(index_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'index' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(index_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(index_param) == IS_STRING)) { zephir_get_strval(&index, index_param); } else { ZEPHIR_INIT_VAR(&index); @@ -158043,27 +156556,27 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, nquery) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 2, &msgid1_param, &msgid2_param, &count_param, &placeholders, &domain_param); - if (unlikely(Z_TYPE_P(msgid1_param) != IS_STRING && Z_TYPE_P(msgid1_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(msgid1_param) != IS_STRING && Z_TYPE_P(msgid1_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'msgid1' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(msgid1_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(msgid1_param) == IS_STRING)) { zephir_get_strval(&msgid1, msgid1_param); } else { ZEPHIR_INIT_VAR(&msgid1); ZVAL_EMPTY_STRING(&msgid1); } - if (unlikely(Z_TYPE_P(msgid2_param) != IS_STRING && Z_TYPE_P(msgid2_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(msgid2_param) != IS_STRING && Z_TYPE_P(msgid2_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'msgid2' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(msgid2_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(msgid2_param) == IS_STRING)) { zephir_get_strval(&msgid2, msgid2_param); } else { ZEPHIR_INIT_VAR(&msgid2); ZVAL_EMPTY_STRING(&msgid2); } - if (unlikely(Z_TYPE_P(count_param) != IS_LONG)) { + if (UNEXPECTED(Z_TYPE_P(count_param) != IS_LONG)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'count' must be a int") TSRMLS_CC); RETURN_MM_NULL(); } @@ -158076,11 +156589,11 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, nquery) { ZEPHIR_INIT_VAR(&domain); ZVAL_STRING(&domain, ""); } else { - if (unlikely(Z_TYPE_P(domain_param) != IS_STRING && Z_TYPE_P(domain_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(domain_param) != IS_STRING && Z_TYPE_P(domain_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'domain' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(domain_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(domain_param) == IS_STRING)) { zephir_get_strval(&domain, domain_param); } else { ZEPHIR_INIT_VAR(&domain); @@ -158091,11 +156604,11 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, nquery) { if (!(!(Z_TYPE_P(&domain) == IS_UNDEF) && Z_STRLEN_P(&domain))) { ZVAL_LONG(&_0$$3, count); - ZEPHIR_CALL_FUNCTION(&translation, "ngettext", NULL, 459, &msgid1, &msgid2, &_0$$3); + ZEPHIR_CALL_FUNCTION(&translation, "ngettext", NULL, 417, &msgid1, &msgid2, &_0$$3); zephir_check_call_status(); } else { ZVAL_LONG(&_1$$4, count); - ZEPHIR_CALL_FUNCTION(&translation, "dngettext", NULL, 460, &domain, &msgid1, &msgid2, &_1$$4); + ZEPHIR_CALL_FUNCTION(&translation, "dngettext", NULL, 418, &domain, &msgid1, &msgid2, &_1$$4); zephir_check_call_status(); } ZEPHIR_RETURN_CALL_METHOD(this_ptr, "replaceplaceholders", NULL, 0, &translation, placeholders); @@ -158117,7 +156630,7 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, setDomain) { - ZEPHIR_RETURN_CALL_FUNCTION("textdomain", NULL, 461, domain); + ZEPHIR_RETURN_CALL_FUNCTION("textdomain", NULL, 419, domain); zephir_check_call_status(); RETURN_MM(); @@ -158135,7 +156648,7 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, resetDomain) { ZEPHIR_CALL_METHOD(&_0, this_ptr, "getdefaultdomain", NULL, 0); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_FUNCTION("textdomain", NULL, 461, &_0); + ZEPHIR_RETURN_CALL_FUNCTION("textdomain", NULL, 419, &_0); zephir_check_call_status(); RETURN_MM(); @@ -158152,11 +156665,11 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, setDefaultDomain) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &domain_param); - if (unlikely(Z_TYPE_P(domain_param) != IS_STRING && Z_TYPE_P(domain_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(domain_param) != IS_STRING && Z_TYPE_P(domain_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'domain' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(domain_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(domain_param) == IS_STRING)) { zephir_get_strval(&domain, domain_param); } else { ZEPHIR_INIT_VAR(&domain); @@ -158204,7 +156717,7 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, setDirectory) { } ZEPHIR_INIT_NVAR(&value); ZVAL_COPY(&value, _0$$4); - ZEPHIR_CALL_FUNCTION(NULL, "bindtextdomain", &_3, 462, &key, &value); + ZEPHIR_CALL_FUNCTION(NULL, "bindtextdomain", &_3, 420, &key, &value); zephir_check_call_status(); } ZEND_HASH_FOREACH_END(); ZEPHIR_INIT_NVAR(&value); @@ -158212,7 +156725,7 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, setDirectory) { } else { ZEPHIR_CALL_METHOD(&_4$$6, this_ptr, "getdefaultdomain", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(NULL, "bindtextdomain", &_3, 462, &_4$$6, directory); + ZEPHIR_CALL_FUNCTION(NULL, "bindtextdomain", &_3, 420, &_4$$6, directory); zephir_check_call_status(); } ZEPHIR_MM_RESTORE(); @@ -158243,16 +156756,16 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, setLocale) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &category_param, &locale_param); - if (unlikely(Z_TYPE_P(category_param) != IS_LONG)) { + if (UNEXPECTED(Z_TYPE_P(category_param) != IS_LONG)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'category' must be a int") TSRMLS_CC); RETURN_MM_NULL(); } category = Z_LVAL_P(category_param); - if (unlikely(Z_TYPE_P(locale_param) != IS_STRING && Z_TYPE_P(locale_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(locale_param) != IS_STRING && Z_TYPE_P(locale_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'locale' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(locale_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(locale_param) == IS_STRING)) { zephir_get_strval(&locale, locale_param); } else { ZEPHIR_INIT_VAR(&locale); @@ -158261,8 +156774,8 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, setLocale) { ZEPHIR_INIT_VAR(&_0); - ZEPHIR_CALL_FUNCTION(&_1, "func_get_args", NULL, 173); - zephir_check_call_status(); + ZEPHIR_INIT_VAR(&_1); + zephir_get_args(&_1); ZEPHIR_INIT_VAR(&_2); ZVAL_STRING(&_2, "setlocale"); ZEPHIR_CALL_USER_FUNC_ARRAY(&_0, &_2, &_1); @@ -158274,21 +156787,21 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, setLocale) { zephir_read_property(&_3, this_ptr, SL("_locale"), PH_NOISY_CC | PH_READONLY); ZEPHIR_INIT_VAR(&_4); ZEPHIR_CONCAT_SV(&_4, "LC_ALL=", &_3); - ZEPHIR_CALL_FUNCTION(NULL, "putenv", &_5, 463, &_4); + ZEPHIR_CALL_FUNCTION(NULL, "putenv", &_5, 421, &_4); zephir_check_call_status(); zephir_read_property(&_6, this_ptr, SL("_locale"), PH_NOISY_CC | PH_READONLY); ZEPHIR_INIT_VAR(&_7); ZEPHIR_CONCAT_SV(&_7, "LANG=", &_6); - ZEPHIR_CALL_FUNCTION(NULL, "putenv", &_5, 463, &_7); + ZEPHIR_CALL_FUNCTION(NULL, "putenv", &_5, 421, &_7); zephir_check_call_status(); zephir_read_property(&_8, this_ptr, SL("_locale"), PH_NOISY_CC | PH_READONLY); ZEPHIR_INIT_VAR(&_9); ZEPHIR_CONCAT_SV(&_9, "LANGUAGE=", &_8); - ZEPHIR_CALL_FUNCTION(NULL, "putenv", &_5, 463, &_9); + ZEPHIR_CALL_FUNCTION(NULL, "putenv", &_5, 421, &_9); zephir_check_call_status(); zephir_read_property(&_10, this_ptr, SL("_locale"), PH_NOISY_CC | PH_READONLY); ZVAL_LONG(&_11, 6); - ZEPHIR_CALL_FUNCTION(NULL, "setlocale", NULL, 443, &_11, &_10); + ZEPHIR_CALL_FUNCTION(NULL, "setlocale", NULL, 405, &_11, &_10); zephir_check_call_status(); RETURN_MM_MEMBER(this_ptr, "_locale"); @@ -158396,7 +156909,7 @@ static PHP_METHOD(Phalcon_Translate_Adapter_NativeArray, __construct) { ZEPHIR_OBS_COPY_OR_DUP(&options, options_param); - ZEPHIR_CALL_PARENT(NULL, phalcon_translate_adapter_nativearray_ce, this_ptr, "__construct", &_0, 455, &options); + ZEPHIR_CALL_PARENT(NULL, phalcon_translate_adapter_nativearray_ce, this_ptr, "__construct", &_0, 0, &options); zephir_check_call_status(); ZEPHIR_OBS_VAR(&data); if (!(zephir_array_isset_string_fetch(&data, &options, SL("content"), 0))) { @@ -158428,11 +156941,11 @@ static PHP_METHOD(Phalcon_Translate_Adapter_NativeArray, query) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &index_param, &placeholders); - if (unlikely(Z_TYPE_P(index_param) != IS_STRING && Z_TYPE_P(index_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(index_param) != IS_STRING && Z_TYPE_P(index_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'index' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(index_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(index_param) == IS_STRING)) { zephir_get_strval(&index, index_param); } else { ZEPHIR_INIT_VAR(&index); @@ -158467,11 +156980,11 @@ static PHP_METHOD(Phalcon_Translate_Adapter_NativeArray, exists) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &index_param); - if (unlikely(Z_TYPE_P(index_param) != IS_STRING && Z_TYPE_P(index_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(index_param) != IS_STRING && Z_TYPE_P(index_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'index' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(index_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(index_param) == IS_STRING)) { zephir_get_strval(&index, index_param); } else { ZEPHIR_INIT_VAR(&index); @@ -158523,11 +157036,11 @@ static PHP_METHOD(Phalcon_Translate_Interpolator_AssociativeArray, replacePlaceh ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &translation_param, &placeholders); - if (unlikely(Z_TYPE_P(translation_param) != IS_STRING && Z_TYPE_P(translation_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(translation_param) != IS_STRING && Z_TYPE_P(translation_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'translation' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(translation_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(translation_param) == IS_STRING)) { zephir_get_strval(&translation, translation_param); } else { ZEPHIR_INIT_VAR(&translation); @@ -158603,11 +157116,11 @@ static PHP_METHOD(Phalcon_Translate_Interpolator_IndexedArray, replacePlaceholde ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &translation_param, &placeholders); - if (unlikely(Z_TYPE_P(translation_param) != IS_STRING && Z_TYPE_P(translation_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(translation_param) != IS_STRING && Z_TYPE_P(translation_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'translation' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(translation_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(translation_param) == IS_STRING)) { zephir_get_strval(&translation, translation_param); } else { ZEPHIR_INIT_VAR(&translation); @@ -158625,7 +157138,7 @@ static PHP_METHOD(Phalcon_Translate_Interpolator_IndexedArray, replacePlaceholde } if (_0) { ZEPHIR_MAKE_REF(placeholders); - ZEPHIR_CALL_FUNCTION(NULL, "array_unshift", NULL, 403, placeholders, &translation); + ZEPHIR_CALL_FUNCTION(NULL, "array_unshift", NULL, 366, placeholders, &translation); ZEPHIR_UNREF(placeholders); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_1$$3); @@ -158717,11 +157230,11 @@ static PHP_METHOD(Phalcon_Validation_Message, __construct) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 3, &message_param, &field, &type_param, &code_param); - if (unlikely(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'message' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(message_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(message_param) == IS_STRING)) { zephir_get_strval(&message, message_param); } else { ZEPHIR_INIT_VAR(&message); @@ -158765,11 +157278,11 @@ static PHP_METHOD(Phalcon_Validation_Message, setType) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &type_param); - if (unlikely(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'type' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(type_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(type_param) == IS_STRING)) { zephir_get_strval(&type, type_param); } else { ZEPHIR_INIT_VAR(&type); @@ -158802,11 +157315,11 @@ static PHP_METHOD(Phalcon_Validation_Message, setMessage) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &message_param); - if (unlikely(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'message' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(message_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(message_param) == IS_STRING)) { zephir_get_strval(&message, message_param); } else { ZEPHIR_INIT_VAR(&message); @@ -158913,7 +157426,7 @@ static PHP_METHOD(Phalcon_Validation_Message, __set_state) { zephir_array_fetch_string(&_0, &message, SL("_message"), PH_NOISY | PH_READONLY, "phalcon/validation/message.zep", 134 TSRMLS_CC); zephir_array_fetch_string(&_1, &message, SL("_field"), PH_NOISY | PH_READONLY, "phalcon/validation/message.zep", 134 TSRMLS_CC); zephir_array_fetch_string(&_2, &message, SL("_type"), PH_NOISY | PH_READONLY, "phalcon/validation/message.zep", 134 TSRMLS_CC); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 467, &_0, &_1, &_2); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 425, &_0, &_1, &_2); zephir_check_call_status(); RETURN_MM(); @@ -159010,11 +157523,11 @@ static PHP_METHOD(Phalcon_Validation_Validator, isSetOption) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &key_param); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(&key, key_param); } else { ZEPHIR_INIT_VAR(&key); @@ -159039,11 +157552,11 @@ static PHP_METHOD(Phalcon_Validation_Validator, hasOption) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &key_param); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(&key, key_param); } else { ZEPHIR_INIT_VAR(&key); @@ -159073,11 +157586,11 @@ static PHP_METHOD(Phalcon_Validation_Validator, getOption) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &key_param, &defaultValue); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(&key, key_param); } else { ZEPHIR_INIT_VAR(&key); @@ -159121,11 +157634,11 @@ static PHP_METHOD(Phalcon_Validation_Validator, setOption) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &key_param, &value); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(&key, key_param); } else { ZEPHIR_INIT_VAR(&key); @@ -159226,7 +157739,7 @@ static PHP_METHOD(Phalcon_Validation_Message_Group, offsetGet) { zephir_fetch_params(0, 1, 0, &index_param); - if (unlikely(Z_TYPE_P(index_param) != IS_LONG)) { + if (UNEXPECTED(Z_TYPE_P(index_param) != IS_LONG)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'index' must be a int") TSRMLS_CC); RETURN_NULL(); } @@ -159253,7 +157766,7 @@ static PHP_METHOD(Phalcon_Validation_Message_Group, offsetSet) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &index_param, &message); - if (unlikely(Z_TYPE_P(index_param) != IS_LONG)) { + if (UNEXPECTED(Z_TYPE_P(index_param) != IS_LONG)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'index' must be a int") TSRMLS_CC); RETURN_MM_NULL(); } @@ -159312,7 +157825,7 @@ static PHP_METHOD(Phalcon_Validation_Message_Group, offsetUnset) { zephir_read_property(&_1$$3, this_ptr, SL("_messages"), PH_NOISY_CC | PH_READONLY); ZVAL_LONG(&_2$$3, 1); ZEPHIR_MAKE_REF(&_1$$3); - ZEPHIR_CALL_FUNCTION(NULL, "array_splice", NULL, 468, &_1$$3, index, &_2$$3); + ZEPHIR_CALL_FUNCTION(NULL, "array_splice", NULL, 426, &_1$$3, index, &_2$$3); ZEPHIR_UNREF(&_1$$3); zephir_check_call_status(); } @@ -159409,11 +157922,11 @@ static PHP_METHOD(Phalcon_Validation_Message_Group, filter) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &fieldName_param); - if (unlikely(Z_TYPE_P(fieldName_param) != IS_STRING && Z_TYPE_P(fieldName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(fieldName_param) != IS_STRING && Z_TYPE_P(fieldName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'fieldName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(fieldName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(fieldName_param) == IS_STRING)) { zephir_get_strval(&fieldName, fieldName_param); } else { ZEPHIR_INIT_VAR(&fieldName); @@ -159540,7 +158053,7 @@ static PHP_METHOD(Phalcon_Validation_Message_Group, __set_state) { object_init_ex(return_value, phalcon_validation_message_group_ce); zephir_array_fetch_string(&_0, group, SL("_messages"), PH_NOISY | PH_READONLY, "phalcon/validation/message/group.zep", 271 TSRMLS_CC); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 3, &_0); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 2, &_0); zephir_check_call_status(); RETURN_MM(); @@ -159613,11 +158126,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_Alnum, validate) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &validation, &field_param); - if (unlikely(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'field' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(field_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(field_param) == IS_STRING)) { zephir_get_strval(&field, field_param); } else { ZEPHIR_INIT_VAR(&field); @@ -159627,7 +158140,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Alnum, validate) { ZEPHIR_CALL_METHOD(&value, validation, "getvalue", NULL, 0, &field); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_0, "ctype_alnum", NULL, 469, &value); + ZEPHIR_CALL_FUNCTION(&_0, "ctype_alnum", NULL, 427, &value); zephir_check_call_status(); if (!(zephir_is_true(&_0))) { ZEPHIR_INIT_VAR(&_1$$3); @@ -159669,11 +158182,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_Alnum, validate) { } ZEPHIR_INIT_NVAR(&_1$$3); object_init_ex(&_1$$3, phalcon_validation_message_ce); - ZEPHIR_CALL_FUNCTION(&_6$$3, "strtr", NULL, 26, &message, &replacePairs); + ZEPHIR_CALL_FUNCTION(&_6$$3, "strtr", NULL, 21, &message, &replacePairs); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_7$$3); ZVAL_STRING(&_7$$3, "Alnum"); - ZEPHIR_CALL_METHOD(NULL, &_1$$3, "__construct", NULL, 467, &_6$$3, &field, &_7$$3, &code); + ZEPHIR_CALL_METHOD(NULL, &_1$$3, "__construct", NULL, 425, &_6$$3, &field, &_7$$3, &code); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, &_1$$3); zephir_check_call_status(); @@ -159729,11 +158242,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_Alpha, validate) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &validation, &field_param); - if (unlikely(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'field' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(field_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(field_param) == IS_STRING)) { zephir_get_strval(&field, field_param); } else { ZEPHIR_INIT_VAR(&field); @@ -159788,11 +158301,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_Alpha, validate) { } ZEPHIR_INIT_NVAR(&_3$$3); object_init_ex(&_3$$3, phalcon_validation_message_ce); - ZEPHIR_CALL_FUNCTION(&_8$$3, "strtr", NULL, 26, &message, &replacePairs); + ZEPHIR_CALL_FUNCTION(&_8$$3, "strtr", NULL, 21, &message, &replacePairs); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_9$$3); ZVAL_STRING(&_9$$3, "Alpha"); - ZEPHIR_CALL_METHOD(NULL, &_3$$3, "__construct", NULL, 467, &_8$$3, &field, &_9$$3, &code); + ZEPHIR_CALL_METHOD(NULL, &_3$$3, "__construct", NULL, 425, &_8$$3, &field, &_9$$3, &code); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, &_3$$3); zephir_check_call_status(); @@ -159851,11 +158364,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_Between, validate) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &validation, &field_param); - if (unlikely(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'field' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(field_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(field_param) == IS_STRING)) { zephir_get_strval(&field, field_param); } else { ZEPHIR_INIT_VAR(&field); @@ -159927,11 +158440,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_Between, validate) { } ZEPHIR_INIT_NVAR(&_4$$5); object_init_ex(&_4$$5, phalcon_validation_message_ce); - ZEPHIR_CALL_FUNCTION(&_9$$5, "strtr", NULL, 26, &message, &replacePairs); + ZEPHIR_CALL_FUNCTION(&_9$$5, "strtr", NULL, 21, &message, &replacePairs); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_10$$5); ZVAL_STRING(&_10$$5, "Between"); - ZEPHIR_CALL_METHOD(NULL, &_4$$5, "__construct", NULL, 467, &_9$$5, &field, &_10$$5, &code); + ZEPHIR_CALL_METHOD(NULL, &_4$$5, "__construct", NULL, 425, &_9$$5, &field, &_10$$5, &code); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, &_4$$5); zephir_check_call_status(); @@ -159988,11 +158501,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_Callback, validate) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &validation, &field_param); - if (unlikely(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'field' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(field_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(field_param) == IS_STRING)) { zephir_get_strval(&field, field_param); } else { ZEPHIR_INIT_VAR(&field); @@ -160011,7 +158524,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Callback, validate) { ZEPHIR_CALL_METHOD(&data, validation, "getdata", NULL, 0); zephir_check_call_status(); } - ZEPHIR_CALL_FUNCTION(&returnedValue, "call_user_func", NULL, 399, &callback, &data); + ZEPHIR_CALL_FUNCTION(&returnedValue, "call_user_func", NULL, 362, &callback, &data); zephir_check_call_status(); _1$$3 = Z_TYPE_P(&returnedValue) == IS_OBJECT; if (_1$$3) { @@ -160058,11 +158571,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_Callback, validate) { } ZEPHIR_INIT_NVAR(&_2$$6); object_init_ex(&_2$$6, phalcon_validation_message_ce); - ZEPHIR_CALL_FUNCTION(&_7$$6, "strtr", NULL, 26, &message, &replacePairs); + ZEPHIR_CALL_FUNCTION(&_7$$6, "strtr", NULL, 21, &message, &replacePairs); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_8$$6); ZVAL_STRING(&_8$$6, "Callback"); - ZEPHIR_CALL_METHOD(NULL, &_2$$6, "__construct", NULL, 467, &_7$$6, &field, &_8$$6, &code); + ZEPHIR_CALL_METHOD(NULL, &_2$$6, "__construct", NULL, 425, &_7$$6, &field, &_8$$6, &code); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, &_2$$6); zephir_check_call_status(); @@ -160131,11 +158644,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_Confirmation, validate) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &validation, &field_param); - if (unlikely(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'field' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(field_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(field_param) == IS_STRING)) { zephir_get_strval(&field, field_param); } else { ZEPHIR_INIT_VAR(&field); @@ -160155,7 +158668,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Confirmation, validate) { zephir_check_call_status(); ZEPHIR_CALL_METHOD(&valueWith, validation, "getvalue", NULL, 0, &fieldWith); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_2, this_ptr, "compare", NULL, 470, &value, &valueWith); + ZEPHIR_CALL_METHOD(&_2, this_ptr, "compare", NULL, 428, &value, &valueWith); zephir_check_call_status(); if (!(zephir_is_true(&_2))) { ZEPHIR_INIT_VAR(&_3$$4); @@ -160210,11 +158723,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_Confirmation, validate) { } ZEPHIR_INIT_NVAR(&_3$$4); object_init_ex(&_3$$4, phalcon_validation_message_ce); - ZEPHIR_CALL_FUNCTION(&_9$$4, "strtr", NULL, 26, &message, &replacePairs); + ZEPHIR_CALL_FUNCTION(&_9$$4, "strtr", NULL, 21, &message, &replacePairs); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_10$$4); ZVAL_STRING(&_10$$4, "Confirmation"); - ZEPHIR_CALL_METHOD(NULL, &_3$$4, "__construct", NULL, 467, &_9$$4, &field, &_10$$4, &code); + ZEPHIR_CALL_METHOD(NULL, &_3$$4, "__construct", NULL, 425, &_9$$4, &field, &_10$$4, &code); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, &_3$$4); zephir_check_call_status(); @@ -160260,12 +158773,12 @@ static PHP_METHOD(Phalcon_Validation_Validator_Confirmation, compare) { } ZEPHIR_INIT_VAR(&_3$$3); ZVAL_STRING(&_3$$3, "utf-8"); - ZEPHIR_CALL_FUNCTION(&_4$$3, "mb_strtolower", &_5, 201, &a, &_3$$3); + ZEPHIR_CALL_FUNCTION(&_4$$3, "mb_strtolower", &_5, 183, &a, &_3$$3); zephir_check_call_status(); zephir_get_strval(&a, &_4$$3); ZEPHIR_INIT_NVAR(&_3$$3); ZVAL_STRING(&_3$$3, "utf-8"); - ZEPHIR_CALL_FUNCTION(&_6$$3, "mb_strtolower", &_5, 201, &b, &_3$$3); + ZEPHIR_CALL_FUNCTION(&_6$$3, "mb_strtolower", &_5, 183, &b, &_3$$3); zephir_check_call_status(); zephir_get_strval(&b, &_6$$3); } @@ -160317,11 +158830,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_CreditCard, validate) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &validation, &field_param); - if (unlikely(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'field' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(field_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(field_param) == IS_STRING)) { zephir_get_strval(&field, field_param); } else { ZEPHIR_INIT_VAR(&field); @@ -160331,7 +158844,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_CreditCard, validate) { ZEPHIR_CALL_METHOD(&value, validation, "getvalue", NULL, 0, &field); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&valid, this_ptr, "verifybyluhnalgorithm", NULL, 471, &value); + ZEPHIR_CALL_METHOD(&valid, this_ptr, "verifybyluhnalgorithm", NULL, 429, &value); zephir_check_call_status(); if (!(zephir_is_true(&valid))) { ZEPHIR_INIT_VAR(&_0$$3); @@ -160373,11 +158886,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_CreditCard, validate) { } ZEPHIR_INIT_NVAR(&_0$$3); object_init_ex(&_0$$3, phalcon_validation_message_ce); - ZEPHIR_CALL_FUNCTION(&_5$$3, "strtr", NULL, 26, &message, &replacePairs); + ZEPHIR_CALL_FUNCTION(&_5$$3, "strtr", NULL, 21, &message, &replacePairs); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_6$$3); ZVAL_STRING(&_6$$3, "CreditCard"); - ZEPHIR_CALL_METHOD(NULL, &_0$$3, "__construct", NULL, 467, &_5$$3, &field, &_6$$3, &code); + ZEPHIR_CALL_METHOD(NULL, &_0$$3, "__construct", NULL, 425, &_5$$3, &field, &_6$$3, &code); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, &_0$$3); zephir_check_call_status(); @@ -160415,13 +158928,13 @@ static PHP_METHOD(Phalcon_Validation_Validator_CreditCard, verifyByLuhnAlgorithm - ZEPHIR_CALL_FUNCTION(&_0, "str_split", &_1, 71, number); + ZEPHIR_CALL_FUNCTION(&_0, "str_split", &_1, 65, number); zephir_check_call_status(); zephir_get_arrval(&_2, &_0); ZEPHIR_CPY_WRT(&digits, &_2); ZEPHIR_INIT_VAR(&hash); ZVAL_STRING(&hash, ""); - ZEPHIR_CALL_FUNCTION(&_4, "array_reverse", NULL, 442, &digits); + ZEPHIR_CALL_FUNCTION(&_4, "array_reverse", NULL, 404, &digits); zephir_check_call_status(); zephir_is_iterable(&_4, 0, "phalcon/validation/validator/creditcard.zep", 118); ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&_4), _6, _7, _5) @@ -160445,9 +158958,9 @@ static PHP_METHOD(Phalcon_Validation_Validator_CreditCard, verifyByLuhnAlgorithm } ZEND_HASH_FOREACH_END(); ZEPHIR_INIT_NVAR(&digit); ZEPHIR_INIT_NVAR(&position); - ZEPHIR_CALL_FUNCTION(&_9, "str_split", &_1, 71, &hash); + ZEPHIR_CALL_FUNCTION(&_9, "str_split", &_1, 65, &hash); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&result, "array_sum", NULL, 472, &_9); + ZEPHIR_CALL_FUNCTION(&result, "array_sum", NULL, 430, &_9); zephir_check_call_status(); RETURN_MM_BOOL((zephir_safe_mod_zval_long(&result, 10 TSRMLS_CC) == 0)); @@ -160498,11 +159011,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_Date, validate) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &validation, &field_param); - if (unlikely(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'field' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(field_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(field_param) == IS_STRING)) { zephir_get_strval(&field, field_param); } else { ZEPHIR_INIT_VAR(&field); @@ -160524,7 +159037,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Date, validate) { ZEPHIR_INIT_NVAR(&format); ZVAL_STRING(&format, "Y-m-d"); } - ZEPHIR_CALL_METHOD(&_2, this_ptr, "checkdate", NULL, 473, &value, &format); + ZEPHIR_CALL_METHOD(&_2, this_ptr, "checkdate", NULL, 431, &value, &format); zephir_check_call_status(); if (!(zephir_is_true(&_2))) { ZEPHIR_INIT_VAR(&_3$$5); @@ -160558,11 +159071,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_Date, validate) { } ZEPHIR_INIT_NVAR(&_3$$5); object_init_ex(&_3$$5, phalcon_validation_message_ce); - ZEPHIR_CALL_FUNCTION(&_7$$5, "strtr", NULL, 26, &message, &replacePairs); + ZEPHIR_CALL_FUNCTION(&_7$$5, "strtr", NULL, 21, &message, &replacePairs); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_8$$5); ZVAL_STRING(&_8$$5, "Date"); - ZEPHIR_CALL_METHOD(NULL, &_3$$5, "__construct", NULL, 467, &_7$$5, &field, &_8$$5); + ZEPHIR_CALL_METHOD(NULL, &_3$$5, "__construct", NULL, 425, &_7$$5, &field, &_8$$5); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, &_3$$5); zephir_check_call_status(); @@ -160659,11 +159172,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_Digit, validate) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &validation, &field_param); - if (unlikely(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'field' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(field_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(field_param) == IS_STRING)) { zephir_get_strval(&field, field_param); } else { ZEPHIR_INIT_VAR(&field); @@ -160675,7 +159188,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Digit, validate) { zephir_check_call_status(); _0 = Z_TYPE_P(&value) == IS_LONG; if (!(_0)) { - ZEPHIR_CALL_FUNCTION(&_1, "ctype_digit", NULL, 474, &value); + ZEPHIR_CALL_FUNCTION(&_1, "ctype_digit", NULL, 432, &value); zephir_check_call_status(); _0 = zephir_is_true(&_1); } @@ -160721,11 +159234,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_Digit, validate) { } ZEPHIR_INIT_NVAR(&_2); object_init_ex(&_2, phalcon_validation_message_ce); - ZEPHIR_CALL_FUNCTION(&_7, "strtr", NULL, 26, &message, &replacePairs); + ZEPHIR_CALL_FUNCTION(&_7, "strtr", NULL, 21, &message, &replacePairs); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_8); ZVAL_STRING(&_8, "Digit"); - ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", NULL, 467, &_7, &field, &_8, &code); + ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", NULL, 425, &_7, &field, &_8, &code); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, &_2); zephir_check_call_status(); @@ -160778,11 +159291,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_Email, validate) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &validation, &field_param); - if (unlikely(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'field' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(field_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(field_param) == IS_STRING)) { zephir_get_strval(&field, field_param); } else { ZEPHIR_INIT_VAR(&field); @@ -160793,7 +159306,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Email, validate) { ZEPHIR_CALL_METHOD(&value, validation, "getvalue", NULL, 0, &field); zephir_check_call_status(); ZVAL_LONG(&_0, 274); - ZEPHIR_CALL_FUNCTION(&_1, "filter_var", NULL, 198, &value, &_0); + ZEPHIR_CALL_FUNCTION(&_1, "filter_var", NULL, 180, &value, &_0); zephir_check_call_status(); if (!(zephir_is_true(&_1))) { ZEPHIR_INIT_VAR(&_2$$3); @@ -160835,11 +159348,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_Email, validate) { } ZEPHIR_INIT_NVAR(&_2$$3); object_init_ex(&_2$$3, phalcon_validation_message_ce); - ZEPHIR_CALL_FUNCTION(&_7$$3, "strtr", NULL, 26, &message, &replacePairs); + ZEPHIR_CALL_FUNCTION(&_7$$3, "strtr", NULL, 21, &message, &replacePairs); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_8$$3); ZVAL_STRING(&_8$$3, "Email"); - ZEPHIR_CALL_METHOD(NULL, &_2$$3, "__construct", NULL, 467, &_7$$3, &field, &_8$$3, &code); + ZEPHIR_CALL_METHOD(NULL, &_2$$3, "__construct", NULL, 425, &_7$$3, &field, &_8$$3, &code); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, &_2$$3); zephir_check_call_status(); @@ -160918,11 +159431,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_ExclusionIn, validate) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &validation, &field_param); - if (unlikely(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'field' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(field_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(field_param) == IS_STRING)) { zephir_get_strval(&field, field_param); } else { ZEPHIR_INIT_VAR(&field); @@ -160966,7 +159479,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_ExclusionIn, validate) { return; } } - ZEPHIR_CALL_FUNCTION(&_4, "in_array", NULL, 381, &value, &domain, &strict); + ZEPHIR_CALL_FUNCTION(&_4, "in_array", NULL, 345, &value, &domain, &strict); zephir_check_call_status(); if (zephir_is_true(&_4)) { ZEPHIR_INIT_VAR(&_5$$9); @@ -161011,11 +159524,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_ExclusionIn, validate) { } ZEPHIR_INIT_NVAR(&_5$$9); object_init_ex(&_5$$9, phalcon_validation_message_ce); - ZEPHIR_CALL_FUNCTION(&_10$$9, "strtr", NULL, 26, &message, &replacePairs); + ZEPHIR_CALL_FUNCTION(&_10$$9, "strtr", NULL, 21, &message, &replacePairs); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_11$$9); ZVAL_STRING(&_11$$9, "ExclusionIn"); - ZEPHIR_CALL_METHOD(NULL, &_5$$9, "__construct", NULL, 467, &_10$$9, &field, &_11$$9, &code); + ZEPHIR_CALL_METHOD(NULL, &_5$$9, "__construct", NULL, 425, &_10$$9, &field, &_11$$9, &code); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, &_5$$9); zephir_check_call_status(); @@ -161159,11 +159672,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, validate) { zephir_get_global(&_SERVER, SL("_SERVER")); zephir_fetch_params(1, 2, 0, &validation, &field_param); - if (unlikely(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'field' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(field_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(field_param) == IS_STRING)) { zephir_get_strval(&field, field_param); } else { ZEPHIR_INIT_VAR(&field); @@ -161236,11 +159749,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, validate) { } ZEPHIR_INIT_NVAR(&_11$$6); object_init_ex(&_11$$6, phalcon_validation_message_ce); - ZEPHIR_CALL_FUNCTION(&_14$$6, "strtr", &_15, 26, &message, &replacePairs); + ZEPHIR_CALL_FUNCTION(&_14$$6, "strtr", &_15, 21, &message, &replacePairs); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_16$$6); ZVAL_STRING(&_16$$6, "FileIniSize"); - ZEPHIR_CALL_METHOD(NULL, &_11$$6, "__construct", &_17, 467, &_14$$6, &field, &_16$$6, &code); + ZEPHIR_CALL_METHOD(NULL, &_11$$6, "__construct", &_17, 425, &_14$$6, &field, &_16$$6, &code); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, &_11$$6); zephir_check_call_status(); @@ -161258,7 +159771,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, validate) { _21 = _19; if (!(_21)) { zephir_array_fetch_string(&_22, &value, SL("tmp_name"), PH_NOISY | PH_READONLY, "phalcon/validation/validator/file.zep", 138 TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_23, "is_uploaded_file", NULL, 243, &_22); + ZEPHIR_CALL_FUNCTION(&_23, "is_uploaded_file", NULL, 211, &_22); zephir_check_call_status(); _21 = !zephir_is_true(&_23); } @@ -161282,11 +159795,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, validate) { } ZEPHIR_INIT_NVAR(&_24$$9); object_init_ex(&_24$$9, phalcon_validation_message_ce); - ZEPHIR_CALL_FUNCTION(&_27$$9, "strtr", &_15, 26, &message, &replacePairs); + ZEPHIR_CALL_FUNCTION(&_27$$9, "strtr", &_15, 21, &message, &replacePairs); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_28$$9); ZVAL_STRING(&_28$$9, "FileEmpty"); - ZEPHIR_CALL_METHOD(NULL, &_24$$9, "__construct", &_17, 467, &_27$$9, &field, &_28$$9, &code); + ZEPHIR_CALL_METHOD(NULL, &_24$$9, "__construct", &_17, 425, &_27$$9, &field, &_28$$9, &code); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, &_24$$9); zephir_check_call_status(); @@ -161320,11 +159833,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, validate) { } ZEPHIR_INIT_NVAR(&_31$$12); object_init_ex(&_31$$12, phalcon_validation_message_ce); - ZEPHIR_CALL_FUNCTION(&_34$$12, "strtr", &_15, 26, &message, &replacePairs); + ZEPHIR_CALL_FUNCTION(&_34$$12, "strtr", &_15, 21, &message, &replacePairs); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_35$$12); ZVAL_STRING(&_35$$12, "FileValid"); - ZEPHIR_CALL_METHOD(NULL, &_31$$12, "__construct", &_17, 467, &_34$$12, &field, &_35$$12, &code); + ZEPHIR_CALL_METHOD(NULL, &_31$$12, "__construct", &_17, 425, &_34$$12, &field, &_35$$12, &code); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, &_31$$12); zephir_check_call_status(); @@ -161371,7 +159884,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, validate) { zephir_array_fetch_long(&unit, &matches, 2, PH_NOISY, "phalcon/validation/validator/file.zep", 186 TSRMLS_CC); } zephir_array_fetch_long(&_42$$15, &matches, 1, PH_NOISY | PH_READONLY, "phalcon/validation/validator/file.zep", 189 TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_43$$15, "floatval", &_44, 319, &_42$$15); + ZEPHIR_CALL_FUNCTION(&_43$$15, "floatval", &_44, 288, &_42$$15); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_45$$15); zephir_array_fetch(&_46$$15, &byteUnits, &unit, PH_NOISY | PH_READONLY, "phalcon/validation/validator/file.zep", 189 TSRMLS_CC); @@ -161380,9 +159893,9 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, validate) { ZEPHIR_INIT_VAR(&bytes); mul_function(&bytes, &_43$$15, &_45$$15 TSRMLS_CC); zephir_array_fetch_string(&_48$$15, &value, SL("size"), PH_NOISY | PH_READONLY, "phalcon/validation/validator/file.zep", 191 TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_43$$15, "floatval", &_44, 319, &_48$$15); + ZEPHIR_CALL_FUNCTION(&_43$$15, "floatval", &_44, 288, &_48$$15); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_49$$15, "floatval", &_44, 319, &bytes); + ZEPHIR_CALL_FUNCTION(&_49$$15, "floatval", &_44, 288, &bytes); zephir_check_call_status(); if (ZEPHIR_GT(&_43$$15, &_49$$15)) { ZEPHIR_INIT_VAR(&_50$$18); @@ -161405,11 +159918,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, validate) { } ZEPHIR_INIT_NVAR(&_50$$18); object_init_ex(&_50$$18, phalcon_validation_message_ce); - ZEPHIR_CALL_FUNCTION(&_53$$18, "strtr", &_15, 26, &message, &replacePairs); + ZEPHIR_CALL_FUNCTION(&_53$$18, "strtr", &_15, 21, &message, &replacePairs); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_54$$18); ZVAL_STRING(&_54$$18, "FileSize"); - ZEPHIR_CALL_METHOD(NULL, &_50$$18, "__construct", &_17, 467, &_53$$18, &field, &_54$$18, &code); + ZEPHIR_CALL_METHOD(NULL, &_50$$18, "__construct", &_17, 425, &_53$$18, &field, &_54$$18, &code); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, &_50$$18); zephir_check_call_status(); @@ -161435,12 +159948,12 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, validate) { } if ((zephir_function_exists_ex(SL("finfo_open") TSRMLS_CC) == SUCCESS)) { ZVAL_LONG(&_57$$24, 16); - ZEPHIR_CALL_FUNCTION(&tmp, "finfo_open", NULL, 240, &_57$$24); + ZEPHIR_CALL_FUNCTION(&tmp, "finfo_open", NULL, 208, &_57$$24); zephir_check_call_status(); zephir_array_fetch_string(&_58$$24, &value, SL("tmp_name"), PH_NOISY | PH_READONLY, "phalcon/validation/validator/file.zep", 222 TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&mime, "finfo_file", NULL, 241, &tmp, &_58$$24); + ZEPHIR_CALL_FUNCTION(&mime, "finfo_file", NULL, 209, &tmp, &_58$$24); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(NULL, "finfo_close", NULL, 242, &tmp); + ZEPHIR_CALL_FUNCTION(NULL, "finfo_close", NULL, 210, &tmp); zephir_check_call_status(); } else { ZEPHIR_OBS_NVAR(&mime); @@ -161469,11 +159982,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, validate) { } ZEPHIR_INIT_NVAR(&_59$$26); object_init_ex(&_59$$26, phalcon_validation_message_ce); - ZEPHIR_CALL_FUNCTION(&_62$$26, "strtr", &_15, 26, &message, &replacePairs); + ZEPHIR_CALL_FUNCTION(&_62$$26, "strtr", &_15, 21, &message, &replacePairs); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_63$$26); ZVAL_STRING(&_63$$26, "FileType"); - ZEPHIR_CALL_METHOD(NULL, &_59$$26, "__construct", &_17, 467, &_62$$26, &field, &_63$$26, &code); + ZEPHIR_CALL_METHOD(NULL, &_59$$26, "__construct", &_17, 425, &_62$$26, &field, &_63$$26, &code); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, &_59$$26); zephir_check_call_status(); @@ -161494,7 +160007,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, validate) { } if (_65) { zephir_array_fetch_string(&_67$$29, &value, SL("tmp_name"), PH_NOISY | PH_READONLY, "phalcon/validation/validator/file.zep", 247 TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&tmp, "getimagesize", NULL, 251, &_67$$29); + ZEPHIR_CALL_FUNCTION(&tmp, "getimagesize", NULL, 219, &_67$$29); zephir_check_call_status(); ZEPHIR_OBS_VAR(&width); zephir_array_fetch_long(&width, &tmp, 0, PH_NOISY, "phalcon/validation/validator/file.zep", 248 TSRMLS_CC); @@ -161550,11 +160063,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, validate) { } ZEPHIR_INIT_NVAR(&_73$$33); object_init_ex(&_73$$33, phalcon_validation_message_ce); - ZEPHIR_CALL_FUNCTION(&_76$$33, "strtr", &_15, 26, &message, &replacePairs); + ZEPHIR_CALL_FUNCTION(&_76$$33, "strtr", &_15, 21, &message, &replacePairs); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_77$$33); ZVAL_STRING(&_77$$33, "FileMinResolution"); - ZEPHIR_CALL_METHOD(NULL, &_73$$33, "__construct", &_17, 467, &_76$$33, &field, &_77$$33, &code); + ZEPHIR_CALL_METHOD(NULL, &_73$$33, "__construct", &_17, 425, &_76$$33, &field, &_77$$33, &code); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, &_73$$33); zephir_check_call_status(); @@ -161604,11 +160117,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, validate) { } ZEPHIR_INIT_NVAR(&_82$$38); object_init_ex(&_82$$38, phalcon_validation_message_ce); - ZEPHIR_CALL_FUNCTION(&_85$$38, "strtr", &_15, 26, &message, &replacePairs); + ZEPHIR_CALL_FUNCTION(&_85$$38, "strtr", &_15, 21, &message, &replacePairs); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_86$$38); ZVAL_STRING(&_86$$38, "FileMaxResolution"); - ZEPHIR_CALL_METHOD(NULL, &_82$$38, "__construct", &_17, 467, &_85$$38, &field, &_86$$38, &code); + ZEPHIR_CALL_METHOD(NULL, &_82$$38, "__construct", &_17, 425, &_85$$38, &field, &_86$$38, &code); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, &_82$$38); zephir_check_call_status(); @@ -161636,11 +160149,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, isAllowEmpty) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &validation, &field_param); - if (unlikely(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'field' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(field_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(field_param) == IS_STRING)) { zephir_get_strval(&field, field_param); } else { ZEPHIR_INIT_VAR(&field); @@ -161717,11 +160230,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_Identical, validate) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &validation, &field_param); - if (unlikely(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'field' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(field_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(field_param) == IS_STRING)) { zephir_get_strval(&field, field_param); } else { ZEPHIR_INIT_VAR(&field); @@ -161802,11 +160315,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_Identical, validate) { } ZEPHIR_INIT_NVAR(&_8$$8); object_init_ex(&_8$$8, phalcon_validation_message_ce); - ZEPHIR_CALL_FUNCTION(&_13$$8, "strtr", NULL, 26, &message, &replacePairs); + ZEPHIR_CALL_FUNCTION(&_13$$8, "strtr", NULL, 21, &message, &replacePairs); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_14$$8); ZVAL_STRING(&_14$$8, "Identical"); - ZEPHIR_CALL_METHOD(NULL, &_8$$8, "__construct", NULL, 467, &_13$$8, &field, &_14$$8, &code); + ZEPHIR_CALL_METHOD(NULL, &_8$$8, "__construct", NULL, 425, &_13$$8, &field, &_14$$8, &code); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, &_8$$8); zephir_check_call_status(); @@ -161867,11 +160380,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_InclusionIn, validate) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &validation, &field_param); - if (unlikely(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'field' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(field_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(field_param) == IS_STRING)) { zephir_get_strval(&field, field_param); } else { ZEPHIR_INIT_VAR(&field); @@ -161915,7 +160428,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_InclusionIn, validate) { return; } } - ZEPHIR_CALL_FUNCTION(&_4, "in_array", NULL, 381, &value, &domain, &strict); + ZEPHIR_CALL_FUNCTION(&_4, "in_array", NULL, 345, &value, &domain, &strict); zephir_check_call_status(); if (!(zephir_is_true(&_4))) { ZEPHIR_INIT_VAR(&_5$$9); @@ -161960,11 +160473,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_InclusionIn, validate) { } ZEPHIR_INIT_NVAR(&_5$$9); object_init_ex(&_5$$9, phalcon_validation_message_ce); - ZEPHIR_CALL_FUNCTION(&_10$$9, "strtr", NULL, 26, &message, &replacePairs); + ZEPHIR_CALL_FUNCTION(&_10$$9, "strtr", NULL, 21, &message, &replacePairs); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_11$$9); ZVAL_STRING(&_11$$9, "InclusionIn"); - ZEPHIR_CALL_METHOD(NULL, &_5$$9, "__construct", NULL, 467, &_10$$9, &field, &_11$$9, &code); + ZEPHIR_CALL_METHOD(NULL, &_5$$9, "__construct", NULL, 425, &_10$$9, &field, &_11$$9, &code); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, &_5$$9); zephir_check_call_status(); @@ -162020,11 +160533,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_Numericality, validate) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &validation, &field_param); - if (unlikely(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'field' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(field_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(field_param) == IS_STRING)) { zephir_get_strval(&field, field_param); } else { ZEPHIR_INIT_VAR(&field); @@ -162079,11 +160592,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_Numericality, validate) { } ZEPHIR_INIT_NVAR(&_3$$3); object_init_ex(&_3$$3, phalcon_validation_message_ce); - ZEPHIR_CALL_FUNCTION(&_8$$3, "strtr", NULL, 26, &message, &replacePairs); + ZEPHIR_CALL_FUNCTION(&_8$$3, "strtr", NULL, 21, &message, &replacePairs); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_9$$3); ZVAL_STRING(&_9$$3, "Numericality"); - ZEPHIR_CALL_METHOD(NULL, &_3$$3, "__construct", NULL, 467, &_8$$3, &field, &_9$$3, &code); + ZEPHIR_CALL_METHOD(NULL, &_3$$3, "__construct", NULL, 425, &_8$$3, &field, &_9$$3, &code); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, &_3$$3); zephir_check_call_status(); @@ -162137,11 +160650,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_PresenceOf, validate) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &validation, &field_param); - if (unlikely(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'field' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(field_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(field_param) == IS_STRING)) { zephir_get_strval(&field, field_param); } else { ZEPHIR_INIT_VAR(&field); @@ -162195,11 +160708,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_PresenceOf, validate) { } ZEPHIR_INIT_NVAR(&_1$$3); object_init_ex(&_1$$3, phalcon_validation_message_ce); - ZEPHIR_CALL_FUNCTION(&_6$$3, "strtr", NULL, 26, &message, &replacePairs); + ZEPHIR_CALL_FUNCTION(&_6$$3, "strtr", NULL, 21, &message, &replacePairs); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_7$$3); ZVAL_STRING(&_7$$3, "PresenceOf"); - ZEPHIR_CALL_METHOD(NULL, &_1$$3, "__construct", NULL, 467, &_6$$3, &field, &_7$$3, &code); + ZEPHIR_CALL_METHOD(NULL, &_1$$3, "__construct", NULL, 425, &_6$$3, &field, &_7$$3, &code); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, &_1$$3); zephir_check_call_status(); @@ -162258,11 +160771,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_Regex, validate) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &validation, &field_param); - if (unlikely(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'field' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(field_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(field_param) == IS_STRING)) { zephir_get_strval(&field, field_param); } else { ZEPHIR_INIT_VAR(&field); @@ -162330,11 +160843,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_Regex, validate) { } ZEPHIR_INIT_NVAR(&_3$$6); object_init_ex(&_3$$6, phalcon_validation_message_ce); - ZEPHIR_CALL_FUNCTION(&_8$$6, "strtr", NULL, 26, &message, &replacePairs); + ZEPHIR_CALL_FUNCTION(&_8$$6, "strtr", NULL, 21, &message, &replacePairs); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_9$$6); ZVAL_STRING(&_9$$6, "Regex"); - ZEPHIR_CALL_METHOD(NULL, &_3$$6, "__construct", NULL, 467, &_8$$6, &field, &_9$$6, &code); + ZEPHIR_CALL_METHOD(NULL, &_3$$6, "__construct", NULL, 425, &_8$$6, &field, &_9$$6, &code); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, &_3$$6); zephir_check_call_status(); @@ -162404,11 +160917,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_StringLength, validate) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &validation, &field_param); - if (unlikely(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'field' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(field_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(field_param) == IS_STRING)) { zephir_get_strval(&field, field_param); } else { ZEPHIR_INIT_VAR(&field); @@ -162455,7 +160968,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_StringLength, validate) { ZEPHIR_CPY_WRT(&code, &_3$$6); } if ((zephir_function_exists_ex(SL("mb_strlen") TSRMLS_CC) == SUCCESS)) { - ZEPHIR_CALL_FUNCTION(&length, "mb_strlen", NULL, 382, &value); + ZEPHIR_CALL_FUNCTION(&length, "mb_strlen", NULL, 346, &value); zephir_check_call_status(); } else { ZEPHIR_INIT_NVAR(&length); @@ -162491,11 +161004,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_StringLength, validate) { } ZEPHIR_INIT_NVAR(&_6$$11); object_init_ex(&_6$$11, phalcon_validation_message_ce); - ZEPHIR_CALL_FUNCTION(&_9$$11, "strtr", &_10, 26, &message, &replacePairs); + ZEPHIR_CALL_FUNCTION(&_9$$11, "strtr", &_10, 21, &message, &replacePairs); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_11$$11); ZVAL_STRING(&_11$$11, "TooLong"); - ZEPHIR_CALL_METHOD(NULL, &_6$$11, "__construct", &_12, 467, &_9$$11, &field, &_11$$11, &code); + ZEPHIR_CALL_METHOD(NULL, &_6$$11, "__construct", &_12, 425, &_9$$11, &field, &_11$$11, &code); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, &_6$$11); zephir_check_call_status(); @@ -162532,11 +161045,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_StringLength, validate) { } ZEPHIR_INIT_NVAR(&_15$$16); object_init_ex(&_15$$16, phalcon_validation_message_ce); - ZEPHIR_CALL_FUNCTION(&_18$$16, "strtr", &_10, 26, &message, &replacePairs); + ZEPHIR_CALL_FUNCTION(&_18$$16, "strtr", &_10, 21, &message, &replacePairs); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_19$$16); ZVAL_STRING(&_19$$16, "TooShort"); - ZEPHIR_CALL_METHOD(NULL, &_15$$16, "__construct", &_12, 467, &_18$$16, &field, &_19$$16, &code); + ZEPHIR_CALL_METHOD(NULL, &_15$$16, "__construct", &_12, 425, &_18$$16, &field, &_19$$16, &code); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, &_15$$16); zephir_check_call_status(); @@ -162617,7 +161130,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Uniqueness, validate) { ZEPHIR_INIT_VAR(&_3$$3); zephir_create_array(&_3$$3, 1, 0 TSRMLS_CC); zephir_array_update_string(&_3$$3, SL(":field"), &label, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_FUNCTION(&_4$$3, "strtr", NULL, 26, &message, &_3$$3); + ZEPHIR_CALL_FUNCTION(&_4$$3, "strtr", NULL, 21, &message, &_3$$3); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_6$$3); ZVAL_STRING(&_6$$3, "code"); @@ -162625,7 +161138,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Uniqueness, validate) { zephir_check_call_status(); ZEPHIR_INIT_NVAR(&_6$$3); ZVAL_STRING(&_6$$3, "Uniqueness"); - ZEPHIR_CALL_METHOD(NULL, &_1$$3, "__construct", NULL, 467, &_4$$3, field, &_6$$3, &_5$$3); + ZEPHIR_CALL_METHOD(NULL, &_1$$3, "__construct", NULL, 425, &_4$$3, field, &_6$$3, &_5$$3); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, &_1$$3); zephir_check_call_status(); @@ -162754,11 +161267,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_Uniqueness, getColumnNameReal) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &record, &field_param); - if (unlikely(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'field' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(field_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(field_param) == IS_STRING)) { zephir_get_strval(&field, field_param); } else { ZEPHIR_INIT_VAR(&field); @@ -162931,7 +161444,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Uniqueness, isUniquenessModel) { zephir_array_keys(&_9$$6, &except TSRMLS_CC); ZVAL_LONG(&_10$$6, 0); ZVAL_LONG(&_11$$6, (zephir_fast_count_int(&except TSRMLS_CC) - 1)); - ZEPHIR_CALL_FUNCTION(&_12$$6, "range", &_13, 447, &_10$$6, &_11$$6); + ZEPHIR_CALL_FUNCTION(&_12$$6, "range", &_13, 408, &_10$$6, &_11$$6); zephir_check_call_status(); _8$$6 = !ZEPHIR_IS_IDENTICAL(&_9$$6, &_12$$6); } @@ -163302,11 +161815,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_Url, validate) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &validation, &field_param); - if (unlikely(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'field' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(field_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(field_param) == IS_STRING)) { zephir_get_strval(&field, field_param); } else { ZEPHIR_INIT_VAR(&field); @@ -163317,7 +161830,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Url, validate) { ZEPHIR_CALL_METHOD(&value, validation, "getvalue", NULL, 0, &field); zephir_check_call_status(); ZVAL_LONG(&_0, 273); - ZEPHIR_CALL_FUNCTION(&_1, "filter_var", NULL, 198, &value, &_0); + ZEPHIR_CALL_FUNCTION(&_1, "filter_var", NULL, 180, &value, &_0); zephir_check_call_status(); if (!(zephir_is_true(&_1))) { ZEPHIR_INIT_VAR(&_2$$3); @@ -163359,11 +161872,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_Url, validate) { } ZEPHIR_INIT_NVAR(&_2$$3); object_init_ex(&_2$$3, phalcon_validation_message_ce); - ZEPHIR_CALL_FUNCTION(&_7$$3, "strtr", NULL, 26, &message, &replacePairs); + ZEPHIR_CALL_FUNCTION(&_7$$3, "strtr", NULL, 21, &message, &replacePairs); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_8$$3); ZVAL_STRING(&_8$$3, "Url"); - ZEPHIR_CALL_METHOD(NULL, &_2$$3, "__construct", NULL, 467, &_7$$3, &field, &_8$$3, &code); + ZEPHIR_CALL_METHOD(NULL, &_2$$3, "__construct", NULL, 425, &_7$$3, &field, &_8$$3, &code); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, &_2$$3); zephir_check_call_status(); diff --git a/build/php7/32bits/phalcon.zep.h b/build/php7/32bits/phalcon.zep.h index 12526b3efda..77f89ce6db7 100644 --- a/build/php7/32bits/phalcon.zep.h +++ b/build/php7/32bits/phalcon.zep.h @@ -17490,7 +17490,7 @@ ZEPHIR_INIT_FUNCS(phalcon_queue_beanstalk_method_entry) { PHP_ME(Phalcon_Queue_Beanstalk, readStatus, NULL, ZEND_ACC_FINAL|ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Queue_Beanstalk, readYaml, NULL, ZEND_ACC_FINAL|ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Queue_Beanstalk, read, arginfo_phalcon_queue_beanstalk_read, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Queue_Beanstalk, write, arginfo_phalcon_queue_beanstalk_write, ZEND_ACC_PROTECTED) + PHP_ME(Phalcon_Queue_Beanstalk, write, arginfo_phalcon_queue_beanstalk_write, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Queue_Beanstalk, disconnect, NULL, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Queue_Beanstalk, quit, NULL, ZEND_ACC_PUBLIC) PHP_FE_END diff --git a/build/php7/32bits/php_phalcon.h b/build/php7/32bits/php_phalcon.h index 2641c90e127..c1ab55cb0f0 100644 --- a/build/php7/32bits/php_phalcon.h +++ b/build/php7/32bits/php_phalcon.h @@ -13,7 +13,7 @@ +------------------------------------------------------------------------+ | Zephir Language | +------------------------------------------------------------------------+ - | Copyright (c) 2011-2016 Zephir Team (http://www.zephir-lang.com) | + | Copyright (c) 2011-2017 Zephir Team (http://www.zephir-lang.com) | +------------------------------------------------------------------------+ | This source file is subject to the New BSD License that is bundled | | with this package in the file docs/LICENSE.txt. | @@ -96,10 +96,6 @@ typedef zend_function zephir_fcall_cache_entry; return FAILURE; \ } -/** Macros for branch prediction */ -#define likely(x) EXPECTED(x) -#define unlikely(x) UNEXPECTED(x) - #if defined(__GNUC__) && (defined(__clang__) || ((__GNUC__ * 100 + __GNUC_MINOR__) >= 405)) # define UNREACHABLE() __builtin_unreachable() # define ASSUME(x) if (x) {} else __builtin_unreachable() @@ -130,10 +126,6 @@ typedef zend_function zephir_fcall_cache_entry; # define __builtin_constant_p(s) (0) #endif -#ifndef ZEND_MOD_END -# define ZEND_MOD_END { NULL, NULL, NULL, 0 } -#endif - #ifndef __func__ # define __func__ __FUNCTION__ #endif @@ -144,20 +136,17 @@ typedef zend_function zephir_fcall_cache_entry; # define ZEPHIR_NO_OPT #endif -#ifdef ZTS -#define zephir_nts_static -#else -#define zephir_nts_static -#endif +#define likely(x) EXPECTED(x) +#define unlikely(x) UNEXPECTED(x) #endif #define PHP_PHALCON_NAME "phalcon" -#define PHP_PHALCON_VERSION "3.1.1" +#define PHP_PHALCON_VERSION "3.1.2" #define PHP_PHALCON_EXTNAME "phalcon" #define PHP_PHALCON_AUTHOR "Phalcon Team and contributors" -#define PHP_PHALCON_ZEPVERSION "0.9.6a-dev-3a72ba9bb5" +#define PHP_PHALCON_ZEPVERSION "0.9.7-1fae5e50ac" #define PHP_PHALCON_DESCRIPTION "Web framework delivered as a C-extension for PHP" typedef struct _zephir_struct_db { diff --git a/build/php7/64bits/config.w32 b/build/php7/64bits/config.w32 index c6b6f1514dd..b9fd9f14931 100644 --- a/build/php7/64bits/config.w32 +++ b/build/php7/64bits/config.w32 @@ -1,4 +1,6 @@ + ARG_ENABLE("phalcon", "enable phalcon", "no"); + if (PHP_PHALCON != "no") { EXTENSION("phalcon", "phalcon.zep.c", null, "-I"+configure_module_dirname); ADD_FLAG("CFLAGS", "/D ZEPHIR_RELEASE /Oi /Ot /Oy /Ob2 /Gs /GF /Gy /GL"); diff --git a/build/php7/64bits/phalcon.zep.c b/build/php7/64bits/phalcon.zep.c index a25bfa0e87d..084c0ddc923 100644 --- a/build/php7/64bits/phalcon.zep.c +++ b/build/php7/64bits/phalcon.zep.c @@ -2086,6 +2086,9 @@ static int zephir_declare_class_constant_string(zend_class_entry *ce, const char this_ptr = NULL; \ } +static void zephir_get_args(zval* return_value); +static void zephir_get_arg(zval* return_value, zend_long idx); + #endif /* ZEPHIR_KERNEL_MAIN_H */ @@ -2128,12 +2131,12 @@ static int ZEPHIR_FASTCALL zephir_memory_restore_stack(); static void ZEPHIR_FASTCALL zephir_memory_observe(zval *var); static void ZEPHIR_FASTCALL zephir_memory_alloc(zval *var); -static int ZEPHIR_FASTCALL zephir_clean_restore_stack(TSRMLS_D); +static int ZEPHIR_FASTCALL zephir_clean_restore_stack(); #define zephir_safe_zval_ptr_dtor(pzval) -static void zephir_create_symbol_table(TSRMLS_D); -static int zephir_set_symbol(zval *key_name, zval *value TSRMLS_DC); +static void zephir_create_symbol_table(); +static int zephir_set_symbol(zval *key_name, zval *value); static int zephir_set_symbol_str(char *key_name, unsigned int key_length, zval *value); #define ZEPHIR_INIT_VAR(z) zephir_memory_alloc(z); @@ -2281,15 +2284,6 @@ static void zephir_throw_exception_string_debug(zend_class_entry *ce, const char -#ifndef ZEPHIR_KERNEL_HASH_H -#define ZEPHIR_KERNEL_HASH_H - - -#endif - - - - #ifndef ZEPHIR_KERNEL_DEBUG_H #define ZEPHIR_KERNEL_DEBUG_H @@ -2346,8 +2340,8 @@ static void zephir_get_called_class(zval *return_value); zend_class_entry *zephir_fetch_class(const zval *class_name); zend_class_entry *zephir_fetch_class_str_ex(const char *class_name, size_t length, int fetch_type); static void zephir_get_class(zval *result, zval *object, int lower); -static void zephir_get_class_ns(zval *result, zval *object, int lower TSRMLS_DC); -static void zephir_get_ns_class(zval *result, zval *object, int lower TSRMLS_DC); +static void zephir_get_class_ns(zval *result, zval *object, int lower); +static void zephir_get_ns_class(zval *result, zval *object, int lower); /** Cloning/Instance of */ static int zephir_clone(zval *destination, zval *obj); @@ -2393,7 +2387,7 @@ static int zephir_create_closure_ex(zval *return_value, zval *this_ptr, zend_cla /** Create instances */ static int zephir_create_instance(zval *return_value, const zval *class_name); -static int zephir_create_instance_params(zval *return_value, const zval *class_name, const zval *params TSRMLS_DC); +static int zephir_create_instance_params(zval *return_value, const zval *class_name, const zval *params); /** Increment/Decrement properties */ #define zephir_property_incr(object, property) zephir_property_incr_decr(object, property, 1) @@ -2467,48 +2461,16 @@ static void zephir_fast_array_merge(zval *return_value, zval *array1, zval *arra static int zephir_fast_in_array(zval *needle, zval *haystack); #define zephir_array_fast_append(arr, value) \ - Z_TRY_ADDREF_P(value); \ - zend_hash_next_index_insert(Z_ARRVAL_P(arr), value); + do { \ + Z_TRY_ADDREF_P(value); \ + zend_hash_next_index_insert(Z_ARRVAL_P(arr), value); \ + } while (0) #endif /* ZEPHIR_KERNEL_ARRAY_H */ - - - -#ifndef ZEPHIR_KERNEL_FCALL_EXT_H -#define ZEPHIR_KERNEL_FCALL_EXT_H - - - -#define ZEPHIR_FCALL_TYPE_UNKNOWN 0 -#define ZEPHIR_FCALL_TYPE_FUNC 1 -#define ZEPHIR_FCALL_TYPE_ZVAL_METHOD 2 -#define ZEPHIR_FCALL_TYPE_CLASS_PARENT_METHOD 3 -#define ZEPHIR_FCALL_TYPE_CLASS_SELF_METHOD 4 -#define ZEPHIR_FCALL_TYPE_CLASS_STATIC_METHOD 5 -#define ZEPHIR_FCALL_TYPE_CE_METHOD 6 - -typedef struct _zephir_fcall_info { - int type; - zend_class_entry *ce; - zval *object_ptr; - const char *class_name; - int class_length; - const char *func_name; - int func_length; -} zephir_fcall_info; - -static int zephir_call_function_opt(zend_fcall_info *fci, zend_fcall_info_cache *fci_cache, zephir_fcall_info *info, zval **params); -static int zephir_call_func_aparams_fast(zval *return_value_ptr, zephir_fcall_cache_entry **cache_entry, uint param_count, zval **params); - -#endif - - - - #ifndef ZEPHIR_KERNEL_STRING_H #define ZEPHIR_KERNEL_STRING_H @@ -2573,6 +2535,8 @@ static void zephir_append_printable_array(smart_str *implstr, const zval *value) static int zephir_hash_equals(const zval *known_zval, const zval *user_zval); +static void zephir_string_to_hex(zval *return_value, zval *var); + #endif /* ZEPHIR_KERNEL_STRING_H */ @@ -2607,15 +2571,7 @@ typedef enum _zephir_call_type { zephir_fcall_cache_entry **cache_entry_ = cache; \ zval *params_[] = {ZEPHIR_FETCH_VA_ARGS __VA_ARGS__}; \ ZEPHIR_OBSERVE_OR_NULLIFY_PPZV(return_value_ptr); \ - if (__builtin_constant_p(func_name)) { \ - if (cache_entry_ && *cache_entry_) { \ - ZEPHIR_LAST_CALL_STATUS = zephir_call_func_aparams_fast(return_value_ptr, cache, ZEPHIR_CALL_NUM_PARAMS(params_), ZEPHIR_PASS_CALL_PARAMS(params_)); \ - } else { \ - ZEPHIR_LAST_CALL_STATUS = zephir_call_func_aparams(return_value_ptr, func_name, sizeof(func_name)-1, cache, cache_slot, ZEPHIR_CALL_NUM_PARAMS(params_), ZEPHIR_PASS_CALL_PARAMS(params_)); \ - } \ - } else { \ - ZEPHIR_LAST_CALL_STATUS = zephir_call_func_aparams(return_value_ptr, func_name, strlen(func_name), cache, cache_slot, ZEPHIR_CALL_NUM_PARAMS(params_), ZEPHIR_PASS_CALL_PARAMS(params_)); \ - } \ + ZEPHIR_LAST_CALL_STATUS = zephir_call_func_aparams(return_value_ptr, func_name, strlen(func_name), cache, cache_slot, ZEPHIR_CALL_NUM_PARAMS(params_), ZEPHIR_PASS_CALL_PARAMS(params_)); \ } while (0) #define ZEPHIR_CALL_ZVAL_FUNCTION(return_value_ptr, func_name, cache, cache_slot, ...) \ @@ -2874,7 +2830,6 @@ typedef enum _zephir_call_type { static int zephir_call_func_aparams(zval *return_value_ptr, const char *func_name, uint func_length, zephir_fcall_cache_entry **cache_entry, int cache_slot, uint param_count, zval **params); -static int zephir_call_func_aparams_fast(zval *return_value_ptr, zephir_fcall_cache_entry **cache_entry, uint param_count, zval **params); static int zephir_call_zval_func_aparams(zval *return_value_ptr, zval *func_name, zephir_fcall_cache_entry **cache_entry, int cache_slot, @@ -2997,22 +2952,24 @@ ZEPHIR_ATTR_WARN_UNUSED_RESULT ZEPHIR_ATTR_NONNULL static inline int zephir_has_ } #define zephir_check_call_status() \ - do \ + do { \ if (ZEPHIR_LAST_CALL_STATUS == FAILURE) { \ ZEPHIR_MM_RESTORE(); \ return; \ - } \ - while(0) + } \ + } while(0) #define zephir_check_call_status_or_jump(label) \ - if (ZEPHIR_LAST_CALL_STATUS == FAILURE) { \ - if (EG(exception)) { \ - goto label; \ - } else { \ - ZEPHIR_MM_RESTORE(); \ - return; \ + do { \ + if (ZEPHIR_LAST_CALL_STATUS == FAILURE) { \ + if (EG(exception)) { \ + goto label; \ + } else { \ + ZEPHIR_MM_RESTORE(); \ + return; \ + } \ } \ - } + } while (0) #ifdef ZEPHIR_RELEASE #define ZEPHIR_TEMP_PARAM_COPY 0 @@ -3024,24 +2981,6 @@ ZEPHIR_ATTR_WARN_UNUSED_RESULT ZEPHIR_ATTR_NONNULL static inline int zephir_has_ static void zephir_eval_php(zval *str, zval *retval_ptr, char *context); -static inline void zephir_set_called_scope(zend_execute_data *ex, zend_class_entry *called_scope) -{ - while (ex) { - if (Z_TYPE(ex->This) == IS_OBJECT) { - Z_OBJCE(ex->This) = called_scope; - return; - } else if (Z_CE(ex->This)) { - Z_CE(ex->This) = called_scope; - return; - } else if (ex->func) { - if (ex->func->type != ZEND_INTERNAL_FUNCTION || ex->func->common.scope) { - return; - } - } - ex = ex->prev_execute_data; - } -} - #endif /* ZEPHIR_KERNEL_FCALL_H */ @@ -3085,9 +3024,9 @@ static int zephir_fclose(zval *stream_zval); static void zephir_file_get_contents(zval *return_value, zval *filename); static void zephir_file_put_contents(zval *return_value, zval *filename, zval *data); -static void zephir_basename(zval *return_value, zval *path TSRMLS_DC); +static void zephir_basename(zval *return_value, zval *path); static void zephir_filemtime(zval *return_value, zval *path); -static int zephir_compare_mtime(zval *filename1, zval *filename2 TSRMLS_DC); +static int zephir_compare_mtime(zval *filename1, zval *filename2); static void zephir_prepare_virtual_path(zval *return_value, zval *path, zval *virtual_separator); static void zephir_unique_path_key(zval *return_value, zval *path); @@ -3532,7 +3471,7 @@ long zephir_mt_rand(long min, long max); double zephir_ceil(zval *op1); static void zephir_round(zval *return_value, zval *op1, zval *op2, zval *op3); -double zephir_ldexp(zval *value, zval *expval TSRMLS_DC); +double zephir_ldexp(zval *value, zval *expval); #endif @@ -3548,6 +3487,8 @@ static void zephir_var_dump(zval *var); static void zephir_var_export(zval *var); static void zephir_var_export_ex(zval *return_value, zval *var); +static void zephir_get_defined_vars(zval *return_value); + #endif @@ -3630,7 +3571,7 @@ static void zephir_exit(zval *ptr); static int zephir_is_iterable_ex(zval *arr, int duplicate) { - if (unlikely(Z_TYPE_P(arr) != IS_ARRAY)) { + if (UNEXPECTED(Z_TYPE_P(arr) != IS_ARRAY)) { return 0; } //TODO: duplicate @@ -3688,7 +3629,7 @@ static int zephir_get_global(zval *arr, const char *global, unsigned int global_ ZVAL_UNDEF(arr); if (&EG(symbol_table)) { - if ((gv = zend_hash_find(&EG(symbol_table), str)) != NULL) { + if ((gv = zend_hash_find_ind(&EG(symbol_table), str)) != NULL) { ZVAL_DEREF(gv); if (Z_TYPE_P(gv) == IS_ARRAY) { ZVAL_COPY_VALUE(arr, gv); @@ -3699,9 +3640,7 @@ static int zephir_get_global(zval *arr, const char *global, unsigned int global_ } array_init(arr); - zend_hash_update(&EG(symbol_table), str, arr); - //zend_string_free(str); - + zend_string_free(str); return SUCCESS; } @@ -3764,7 +3703,7 @@ static int zephir_fast_count_ev(zval *value) #endif if (Z_OBJ_HT_P(value)->count_elements) { - Z_OBJ_HT(*value)->count_elements(value, &count TSRMLS_CC); + Z_OBJ_HT(*value)->count_elements(value, &count); return (int) count > 0; } @@ -3806,7 +3745,7 @@ static int zephir_fast_count_int(zval *value) #endif if (Z_OBJ_HT_P(value)->count_elements) { - Z_OBJ_HT(*value)->count_elements(value, &count TSRMLS_CC); + Z_OBJ_HT(*value)->count_elements(value, &count); return (int) count; } @@ -3926,6 +3865,7 @@ static void zephir_gettype(zval *return_value, zval *arg) break; } } + /* no break */ default: RETVAL_STRING("unknown type"); @@ -3949,7 +3889,7 @@ static int zephir_declare_class_constant(zend_class_entry *ce, const char *name, { #if PHP_VERSION_ID >= 70100 int ret; - + zend_string *key = zend_string_init(name, name_length, ce->type & ZEND_INTERNAL_CLASS); ret = zend_declare_class_constant_ex(ce, key, value, ZEND_ACC_PUBLIC, NULL); zend_string_release(key); @@ -4009,6 +3949,83 @@ static int zephir_declare_class_constant_string(zend_class_entry *ce, const char return zephir_declare_class_constant_stringl(ce, name, name_length, value, strlen(value)); } +static void zephir_get_args(zval *return_value) +{ + zend_execute_data *ex = EG(current_execute_data); + uint32_t arg_count = ZEND_CALL_NUM_ARGS(ex); + + array_init_size(return_value, arg_count); + if (arg_count) { + uint32_t first_extra_arg = ex->func->op_array.num_args; + zval *p = ZEND_CALL_ARG(ex, 1); + uint32_t i = 0; + + if (arg_count > first_extra_arg) { + while (i < first_extra_arg) { + zval *q = p; + + if (Z_TYPE_P(q) != IS_UNDEF) { + ZVAL_DEREF(q); + Z_TRY_ADDREF_P(q); + zend_hash_next_index_insert_new(Z_ARRVAL_P(return_value), q); + } + + ++p; + ++i; + } + + p = ZEND_CALL_VAR_NUM(ex, ex->func->op_array.last_var + ex->func->op_array.T); + } + + while (i < arg_count) { + zval *q = p; + + if (Z_TYPE_P(q) != IS_UNDEF) { + ZVAL_DEREF(q); + Z_TRY_ADDREF_P(q); + zend_hash_next_index_insert_new(Z_ARRVAL_P(return_value), q); + } + + ++p; + ++i; + } + } +} + +static void zephir_get_arg(zval *return_value, zend_long idx) +{ + zend_execute_data *ex = EG(current_execute_data); + uint32_t arg_count = ZEND_CALL_NUM_ARGS(ex); + zval *arg; + uint32_t first_extra_arg; + + if (UNEXPECTED(idx < 0)) { + zend_error(E_WARNING, "zephir_get_arg(): The argument number should be >= 0"); + RETURN_FALSE; + } + + if (UNEXPECTED((zend_ulong)idx >= arg_count)) { + zend_error(E_WARNING, "zephir_get_arg(): Argument " ZEND_LONG_FMT " not passed to function", idx); + RETURN_FALSE; + } + + first_extra_arg = ex->func->op_array.num_args; + if ((zend_ulong)idx >= first_extra_arg && (arg_count > first_extra_arg)) { + arg = ZEND_CALL_VAR_NUM(ex, ex->func->op_array.last_var + ex->func->op_array.T) + (idx - first_extra_arg); + } + else { + arg = ZEND_CALL_VAR_NUM(ex, idx); + } + + if (EXPECTED(!Z_ISUNDEF_P(arg))) { + ZVAL_DEREF(arg); + ZVAL_COPY(return_value, arg); + return; + } + + RETURN_NULL(); +} + @@ -4189,7 +4206,7 @@ static void zephir_memory_restore_stack_common(zend_zephir_globals_def *g) } #ifndef ZEPHIR_RELEASE -static int ZEPHIR_FASTCALL zephir_memory_restore_stack(const char *func TSRMLS_DC) +static int ZEPHIR_FASTCALL zephir_memory_restore_stack(const char *func) { zend_zephir_globals_def *zephir_globals_ptr = ZEPHIR_VGLOBAL; @@ -4215,7 +4232,7 @@ static void ZEPHIR_FASTCALL zephir_memory_grow_stack(const char *func) zephir_memory_entry *entry; zend_zephir_globals_def *g = ZEPHIR_VGLOBAL; if (g->start_memory == NULL) { - zephir_initialize_memory(g TSRMLS_CC); + zephir_initialize_memory(g); } entry = zephir_memory_grow_stack_common(g); entry->func = func; @@ -4326,7 +4343,7 @@ static void zephir_deinitialize_memory() zephir_globals_ptr->initialized = 0; } -static void zephir_create_symbol_table(TSRMLS_D) +static void zephir_create_symbol_table() { /*zephir_symbol_table *entry; zend_zephir_globals_def *zephir_globals_ptr = ZEPHIR_VGLOBAL; @@ -4353,7 +4370,7 @@ static void zephir_create_symbol_table(TSRMLS_D) ex->symbol_table = symbol_table;*/ } -static int zephir_set_symbol(zval *key_name, zval *value TSRMLS_DC) +static int zephir_set_symbol(zval *key_name, zval *value) { zend_array *symbol_table; @@ -4671,14 +4688,6 @@ static void zephir_throw_exception_format(zend_class_entry *ce, const char *form -#ifdef HAVE_CONFIG_H -#endif - - - - - - #ifdef HAVE_CONFIG_H #endif @@ -4847,7 +4856,7 @@ zend_class_entry *zephir_fetch_class_str_ex(const char *class_name, size_t lengt zend_class_entry *zephir_fetch_class(const zval *class_name) { if (Z_TYPE_P(class_name) == IS_STRING) { - return zend_fetch_class(Z_STR_P(class_name), ZEND_FETCH_CLASS_DEFAULT TSRMLS_CC); + return zend_fetch_class(Z_STR_P(class_name), ZEND_FETCH_CLASS_DEFAULT); } php_error_docref(NULL, E_WARNING, "class name must be a string"); @@ -5025,7 +5034,7 @@ static int zephir_interface_exists(const zval *class_name, int autoload) return 0; } - php_error_docref(NULL TSRMLS_CC, E_WARNING, "interface name must be a string"); + php_error_docref(NULL, E_WARNING, "interface name must be a string"); return 0; } @@ -5065,7 +5074,7 @@ static int zephir_clone(zval *destination, zval *obj) static int zephir_isset_property(zval *object, const char *property_name, unsigned int property_length) { if (Z_TYPE_P(object) == IS_OBJECT) { - if (likely(zend_hash_str_exists(&Z_OBJCE_P(object)->properties_info, property_name, property_length))) { + if (EXPECTED(zend_hash_str_exists(&Z_OBJCE_P(object)->properties_info, property_name, property_length))) { return 1; } return zend_hash_str_exists(Z_OBJ_HT_P(object)->get_properties(object), property_name, property_length); @@ -5079,7 +5088,7 @@ static int zephir_isset_property_zval(zval *object, const zval *property) if (Z_TYPE_P(object) == IS_OBJECT) { if (Z_TYPE_P(property) == IS_STRING) { - if (likely(zend_hash_str_exists(&Z_OBJCE_P(object)->properties_info, Z_STRVAL_P(property), Z_STRLEN_P(property)))) { + if (EXPECTED(zend_hash_str_exists(&Z_OBJCE_P(object)->properties_info, Z_STRVAL_P(property), Z_STRLEN_P(property)))) { return 1; } else { return zend_hash_str_exists(Z_OBJ_HT_P(object)->get_properties(object), Z_STRVAL_P(property), Z_STRLEN_P(property)); @@ -5125,9 +5134,6 @@ static int zephir_read_property(zval *result, zval *object, const char *property } ce = Z_OBJCE_P(object); - if (ce->parent) { - ce = zephir_lookup_class_ce(ce, property_name, property_length); - } #if PHP_VERSION_ID >= 70100 old_scope = EG(fake_scope); @@ -5135,6 +5141,9 @@ static int zephir_read_property(zval *result, zval *object, const char *property #else old_scope = EG(scope); EG(scope) = ce; + if (ce->parent) { + ce = zephir_lookup_class_ce(ce, property_name, property_length); + } #endif if (!Z_OBJ_HT_P(object)->read_property) { @@ -5177,7 +5186,7 @@ static int zephir_fetch_property(zval *result, zval *object, const char *propert static int zephir_fetch_property_zval(zval *result, zval *object, zval *property, int silent) { - if (unlikely(Z_TYPE_P(property) != IS_STRING)) { + if (UNEXPECTED(Z_TYPE_P(property) != IS_STRING)) { ZVAL_NULL(result); return 0; } @@ -5200,7 +5209,7 @@ static int zephir_return_property(zval *return_value, zval *object, char *proper static int zephir_read_property_zval(zval *result, zval *object, zval *property, int flags) { - if (unlikely(Z_TYPE_P(property) != IS_STRING)) { + if (UNEXPECTED(Z_TYPE_P(property) != IS_STRING)) { if ((flags & PH_NOISY) == PH_NOISY) { php_error_docref(NULL, E_NOTICE, "Cannot access empty property %d", Z_TYPE_P(property)); } @@ -5505,7 +5514,7 @@ static int zephir_method_exists_ex(const zval *object, const char *method_name, { zend_class_entry *ce; - if (likely(Z_TYPE_P(object) == IS_OBJECT)) { + if (EXPECTED(Z_TYPE_P(object) == IS_OBJECT)) { ce = Z_OBJCE_P(object); } else { if (Z_TYPE_P(object) == IS_STRING) { @@ -5800,18 +5809,18 @@ static int zephir_create_instance(zval *return_value, const zval *class_name) return SUCCESS; } -static int zephir_create_instance_params(zval *return_value, const zval *class_name, const zval *params TSRMLS_DC) +static int zephir_create_instance_params(zval *return_value, const zval *class_name, const zval *params) { int outcome; zend_class_entry *ce; if (Z_TYPE_P(class_name) != IS_STRING) { - zephir_throw_exception_string(spl_ce_RuntimeException, SL("Invalid class name") TSRMLS_CC); + zephir_throw_exception_string(spl_ce_RuntimeException, SL("Invalid class name")); return FAILURE; } if (Z_TYPE_P(params) != IS_ARRAY) { - zephir_throw_exception_string(spl_ce_RuntimeException, SL("Instantiation parameters must be an array") TSRMLS_CC); + zephir_throw_exception_string(spl_ce_RuntimeException, SL("Instantiation parameters must be an array")); return FAILURE; } @@ -5834,7 +5843,7 @@ static int zephir_create_instance_params(zval *return_value, const zval *class_n zval *item; int i = 0; - if (likely(param_count) <= 10) { + if (EXPECTED(param_count <= 10)) { params_ptr = static_params; } else { params_arr = emalloc(param_count * sizeof(zval*)); @@ -5851,7 +5860,7 @@ static int zephir_create_instance_params(zval *return_value, const zval *class_n outcome = zephir_call_class_method_aparams(NULL, ce, zephir_fcall_method, return_value, SL("__construct"), NULL, 0, param_count, params_ptr); - if (unlikely(params_arr != NULL)) { + if (UNEXPECTED(params_arr != NULL)) { efree(params_arr); } } @@ -5944,7 +5953,7 @@ static int zephir_array_isset_string_fetch(zval *fetched, zval *arr, char *index { zval *zv; - if (likely(Z_TYPE_P(arr) == IS_ARRAY)) { + if (EXPECTED(Z_TYPE_P(arr) == IS_ARRAY)) { if ((zv = zend_hash_str_find(Z_ARRVAL_P(arr), index, index_length)) != NULL) { if (!readonly) { ZVAL_COPY(fetched, zv); @@ -5964,7 +5973,7 @@ static int zephir_array_isset_long_fetch(zval *fetched, zval *arr, unsigned long { zval *zv; - if (likely(Z_TYPE_P(arr) == IS_ARRAY)) { + if (EXPECTED(Z_TYPE_P(arr) == IS_ARRAY)) { if ((zv = zend_hash_index_find(Z_ARRVAL_P(arr), index)) != NULL) { if (!readonly) { ZVAL_COPY(fetched, zv); @@ -6015,7 +6024,7 @@ static int ZEPHIR_FASTCALL zephir_array_isset(const zval *arr, zval *index) static int ZEPHIR_FASTCALL zephir_array_isset_string(const zval *arr, const char *index, uint index_length) { - if (likely(Z_TYPE_P(arr) == IS_ARRAY)) { + if (EXPECTED(Z_TYPE_P(arr) == IS_ARRAY)) { return zend_hash_str_exists(Z_ARRVAL_P(arr), index, index_length); } @@ -6024,7 +6033,7 @@ static int ZEPHIR_FASTCALL zephir_array_isset_string(const zval *arr, const char static int ZEPHIR_FASTCALL zephir_array_isset_long(const zval *arr, unsigned long index) { - if (likely(Z_TYPE_P(arr) == IS_ARRAY)) { + if (EXPECTED(Z_TYPE_P(arr) == IS_ARRAY)) { return zend_hash_index_exists(Z_ARRVAL_P(arr), index); } @@ -6188,7 +6197,7 @@ static int zephir_array_fetch_string(zval *return_value, zval *arr, const char * { zval *zv; - if (likely(Z_TYPE_P(arr) == IS_ARRAY)) { + if (EXPECTED(Z_TYPE_P(arr) == IS_ARRAY)) { if ((zv = zend_hash_str_find(Z_ARRVAL_P(arr), index, index_length)) != NULL) { if ((flags & PH_READONLY) == PH_READONLY) { @@ -6220,7 +6229,7 @@ static int zephir_array_fetch_long(zval *return_value, zval *arr, unsigned long { zval *zv; - if (likely(Z_TYPE_P(arr) == IS_ARRAY)) { + if (EXPECTED(Z_TYPE_P(arr) == IS_ARRAY)) { if ((zv = zend_hash_index_find(Z_ARRVAL_P(arr), index)) != NULL) { if ((flags & PH_READONLY) == PH_READONLY) { @@ -6393,7 +6402,7 @@ static void zephir_array_keys(zval *return_value, zval *input) zend_ulong num_idx; zend_string *str_idx; - if (likely(Z_TYPE_P(input) == IS_ARRAY)) { + if (EXPECTED(Z_TYPE_P(input) == IS_ARRAY)) { array_init_size(return_value, zend_hash_num_elements(Z_ARRVAL_P(input))); zend_hash_real_init(Z_ARRVAL_P(return_value), 1); ZEND_HASH_FILL_PACKED(Z_ARRVAL_P(return_value)) { @@ -6698,1306 +6707,6 @@ static void zephir_fast_array_merge(zval *return_value, zval *array1, zval *arra - - - - - - - -static int zephir_call_func_aparams_fast(zval *return_value_ptr, zephir_fcall_cache_entry **cache_entry, zend_uint param_count, zval *params[]) -{ - uint32_t i; - zend_class_entry *calling_scope = NULL; - zend_execute_data *call, dummy_execute_data; - zval retval_local; - zval *retval_ptr = return_value_ptr ? return_value_ptr : &retval_local; - zend_class_entry *orig_scope; - zend_function *func; - - if (return_value_ptr) { - zval_ptr_dtor(return_value_ptr); - ZVAL_UNDEF(return_value_ptr); - } else { - ZVAL_UNDEF(&retval_local); - } - - if (!EG(active)) { - return FAILURE; /* executor is already inactive */ - } - - if (EG(exception)) { - return FAILURE; /* we would result in an instable executor otherwise */ - } - -#if PHP_VERSION_ID >= 70100 - //orig_scope = EG(fake_scope); -#else - orig_scope = EG(scope); -#endif - - /* Initialize execute_data */ - if (!EG(current_execute_data)) { - /* This only happens when we're called outside any execute()'s - * It shouldn't be strictly necessary to NULL execute_data out, - * but it may make bugs easier to spot - */ - memset(&dummy_execute_data, 0, sizeof(zend_execute_data)); - EG(current_execute_data) = &dummy_execute_data; - } else if (EG(current_execute_data)->func && - ZEND_USER_CODE(EG(current_execute_data)->func->common.type) && - EG(current_execute_data)->opline->opcode != ZEND_DO_FCALL && - EG(current_execute_data)->opline->opcode != ZEND_DO_ICALL && - EG(current_execute_data)->opline->opcode != ZEND_DO_UCALL && - EG(current_execute_data)->opline->opcode != ZEND_DO_FCALL_BY_NAME) { - /* Insert fake frame in case of include or magic calls */ - dummy_execute_data = *EG(current_execute_data); - dummy_execute_data.prev_execute_data = EG(current_execute_data); - dummy_execute_data.call = NULL; - dummy_execute_data.opline = NULL; - dummy_execute_data.func = NULL; - EG(current_execute_data) = &dummy_execute_data; - } - -#ifndef ZEPHIR_RELEASE - func = (*cache_entry)->f; - ++(*cache_entry)->times; -#else - func = *cache_entry; -#endif - - calling_scope = NULL; - call = zend_vm_stack_push_call_frame(ZEND_CALL_TOP_FUNCTION, func, param_count, NULL, NULL); - - for (i = 0; i < param_count; i++) { - zval *param; - zval *arg = params[i]; - - if (ARG_SHOULD_BE_SENT_BY_REF(func, i + 1)) { - if (!Z_ISREF_P(arg)) { - /*if (!ARG_MAY_BE_SENT_BY_REF(func, i + 1)) { - if (i) { - // hack to clean up the stack - ZEND_CALL_NUM_ARGS(call) = i; - zend_vm_stack_free_args(call); - } - zend_vm_stack_free_call_frame(call); - - zend_error(E_WARNING, "Parameter %d to %s%s%s() expected to be a reference, value given", - i+1, - func->common.scope ? ZSTR_VAL(func->common.scope->name) : "", - func->common.scope ? "::" : "", - ZSTR_VAL(func->common.function_name)); - if (EG(current_execute_data) == &dummy_execute_data) { - EG(current_execute_data) = dummy_execute_data.prev_execute_data; - } - return FAILURE; - }*/ - - ZVAL_NEW_REF(arg, arg); - } - Z_ADDREF_P(arg); - } else { - if (Z_ISREF_P(arg) && - !(func->common.fn_flags & ZEND_ACC_CALL_VIA_TRAMPOLINE)) { - /* don't separate references for __call */ - arg = Z_REFVAL_P(arg); - } - if (Z_OPT_REFCOUNTED_P(arg)) { - Z_ADDREF_P(arg); - } - } - param = ZEND_CALL_ARG(call, i+1); - ZVAL_COPY_VALUE(param, arg); - } - -#if PHP_VERSION_ID >= 70100 - //EG(fake_scope)= calling_scope; - - if (UNEXPECTED(func->op_array.fn_flags & ZEND_ACC_CLOSURE)) { - ZEND_ASSERT(GC_TYPE((zend_object*)func->op_array.prototype) == IS_OBJECT); - GC_REFCOUNT((zend_object*)func->op_array.prototype)++; - ZEND_ADD_CALL_FLAG(call, ZEND_CALL_CLOSURE); - } - - ZVAL_NULL(retval_ptr); -#else - EG(scope) = calling_scope; - - Z_OBJ(call->This) = NULL; -#endif - - if (func->type == ZEND_USER_FUNCTION) { - int call_via_handler = (func->common.fn_flags & ZEND_ACC_CALL_VIA_TRAMPOLINE) != 0; -#if PHP_VERSION_ID >= 70100 - //EG(fake_scope)= func->common.scope; -#else - EG(scope) = func->common.scope; -#endif - call->symbol_table = NULL; - -#if PHP_VERSION_ID >= 70100 - zend_init_execute_data(call, &func->op_array, retval_ptr); - zend_execute_ex(call); -#else - if (UNEXPECTED(func->op_array.fn_flags & ZEND_ACC_CLOSURE)) { - ZEND_ASSERT(GC_TYPE((zend_object*)func->op_array.prototype) == IS_OBJECT); - GC_REFCOUNT((zend_object*)func->op_array.prototype)++; - ZEND_ADD_CALL_FLAG(call, ZEND_CALL_CLOSURE); - } - - if (EXPECTED((func->op_array.fn_flags & ZEND_ACC_GENERATOR) == 0)) { - zend_init_execute_data(call, &func->op_array, retval_ptr); - zend_execute_ex(call); - } else { - zend_generator_create_zval(call, &func->op_array, retval_ptr); - } -#endif - if (call_via_handler) { - /* We must re-initialize function again */ - *cache_entry = NULL; - } - } else if (func->type == ZEND_INTERNAL_FUNCTION) { - int call_via_handler = (func->common.fn_flags & ZEND_ACC_CALL_VIA_TRAMPOLINE) != 0; - if (func->common.scope) { -#if PHP_VERSION_ID >= 70100 - ZVAL_NULL(retval_ptr); - //EG(fake_scope)= func->common.scope; -#else - EG(scope) = func->common.scope; -#endif - } - call->prev_execute_data = EG(current_execute_data); - call->return_value = NULL; /* this is not a constructor call */ - EG(current_execute_data) = call; - if (EXPECTED(zend_execute_internal == NULL)) { - /* saves one function call if zend_execute_internal is not used */ - func->internal_function.handler(call, retval_ptr); - } else { - zend_execute_internal(call, retval_ptr); - } - EG(current_execute_data) = call->prev_execute_data; - zend_vm_stack_free_args(call); - - /* We shouldn't fix bad extensions here, - because it can break proper ones (Bug #34045) - if (!EX(function_state).function->common.return_reference) - { - INIT_PZVAL(f->retval); - }*/ - if (EG(exception)) { - zval_ptr_dtor(retval_ptr); - ZVAL_UNDEF(retval_ptr); - } - - if (call_via_handler) { - /* We must re-initialize function again */ - *cache_entry = NULL; - } - } else { /* ZEND_OVERLOADED_FUNCTION */ -#if PHP_VERSION_ID < 70100 - ZVAL_NULL(retval_ptr); -#endif - zend_throw_error(NULL, "Cannot call overloaded function for non-object"); - zend_vm_stack_free_args(call); - - if (func->type == ZEND_OVERLOADED_FUNCTION_TEMPORARY) { - zend_string_release(func->common.function_name); - } - efree(func); - - if (EG(exception)) { - zval_ptr_dtor(retval_ptr); - ZVAL_UNDEF(retval_ptr); - } - } - -#if PHP_VERSION_ID >= 70100 - //EG(fake_scope)= orig_scope; -#else - EG(scope) = orig_scope; -#endif - zend_vm_stack_free_call_frame(call); - - if (EG(current_execute_data) == &dummy_execute_data) { - EG(current_execute_data) = dummy_execute_data.prev_execute_data; - } - - if (EG(exception)) { - zend_throw_exception_internal(NULL); - } - return SUCCESS; -} - -static int zephir_is_callable_check_class(const char *name, int name_len, zend_fcall_info_cache *fcc, int *strict_class, char **error) /* {{{ */ -{ - int ret = 0; - zend_class_entry *pce; - zend_class_entry *scope, *called_scope; - char *lcname = zend_str_tolower_dup(name, name_len); -#if PHP_VERSION_ID >= 70100 - scope = EG(fake_scope); - called_scope = zend_get_called_scope(EG(current_execute_data)); -#else - scope = EG(scope); - called_scope = EG(current_execute_data)->called_scope; -#endif - *strict_class = 0; - if (name_len == sizeof("self") - 1 && - !memcmp(lcname, "self", sizeof("self") - 1)) { - if (!scope) { - if (error) *error = estrdup("cannot access self:: when no class scope is active"); - } else { - fcc->called_scope = called_scope; - if (!fcc->object) { - fcc->object = Z_OBJ(EG(current_execute_data)->This); - } - ret = 1; - } - } else if (name_len == sizeof("parent") - 1 && - !memcmp(lcname, "parent", sizeof("parent") - 1)) { - if (!scope) { - if (error) *error = estrdup("cannot access parent:: when no class scope is active"); - } else if (!scope->parent) { - if (error) *error = estrdup("cannot access parent:: when current class scope has no parent"); - } else { - fcc->called_scope = called_scope; - if (!fcc->object) { - fcc->object = Z_OBJ(EG(current_execute_data)->This); - } - *strict_class = 1; - ret = 1; - } - } else if (name_len == sizeof("static") - 1 && - !memcmp(lcname, "static", sizeof("static") - 1)) { - if (!called_scope) { - if (error) *error = estrdup("cannot access static:: when no class scope is active"); - } else { - fcc->called_scope = called_scope; - if (!fcc->object) { - fcc->object = Z_OBJ(EG(current_execute_data)->This); - } - *strict_class = 1; - ret = 1; - } - } else { - zend_string *class_name; - class_name = zend_string_init(name, name_len, 0); - if ((pce = zend_lookup_class_ex(class_name, NULL, 1)) != NULL) { - scope = EG(current_execute_data) ? EG(current_execute_data)->func->common.scope : NULL; - fcc->calling_scope = pce; - if (scope && !fcc->object && EG(current_execute_data) && Z_OBJ(EG(current_execute_data)->This) && - instanceof_function(Z_OBJCE(EG(current_execute_data)->This), scope TSRMLS_CC) && - instanceof_function(scope, fcc->calling_scope TSRMLS_CC)) { - fcc->object = Z_OBJ(EG(current_execute_data)->This); - fcc->called_scope = fcc->object->ce; - } else { - fcc->called_scope = fcc->object ? fcc->object->ce : fcc->calling_scope; - } - *strict_class = 1; - ret = 1; - } else { - if (error) zephir_spprintf(error, 0, "class '%.*s' not found", name_len, name); - } - zend_string_free(class_name); - } - efree(lcname); - return ret; -} - -static int zephir_is_callable_check_func(int check_flags, zval *callable, zend_fcall_info_cache *fcc, int strict_class, char **error TSRMLS_DC) /* {{{ */ -{ - zend_class_entry *ce_org = fcc->calling_scope; - int retval = 0; - char *mname, *lmname; - zend_string *zs_mname; - const char *colon; - int clen, mlen; - zend_class_entry *last_scope; - HashTable *ftable; - int call_via_handler = 0; - - if (error) { - *error = NULL; - } - - fcc->calling_scope = NULL; - fcc->function_handler = NULL; - - if (!ce_org) { - /* Skip leading \ */ - if (Z_STRVAL_P(callable)[0] == '\\') { - mlen = Z_STRLEN_P(callable) - 1; - lmname = zend_str_tolower_dup(Z_STRVAL_P(callable) + 1, mlen); - } else { - mlen = Z_STRLEN_P(callable); - lmname = zend_str_tolower_dup(Z_STRVAL_P(callable), mlen); - } - /* Check if function with given name exists. - * This may be a compound name that includes namespace name */ - if (EXPECTED((fcc->function_handler = zend_hash_str_find_ptr(EG(function_table), lmname, mlen)) != NULL)) { - efree(lmname); - return 1; - } - efree(lmname); - } - - /* Split name into class/namespace and method/function names */ - if ((colon = zend_memrchr(Z_STRVAL_P(callable), ':', Z_STRLEN_P(callable))) != NULL && - colon > Z_STRVAL_P(callable) && - *(colon-1) == ':' - ) { - colon--; - clen = colon - Z_STRVAL_P(callable); - mlen = Z_STRLEN_P(callable) - clen - 2; - - if (colon == Z_STRVAL_P(callable)) { - if (error) zephir_spprintf(error, 0, "invalid function name"); - return 0; - } - - /* This is a compound name. - * Try to fetch class and then find static method. */ -#if PHP_VERSION_ID >= 70100 - last_scope = EG(fake_scope); - if (ce_org) { - EG(fake_scope) = ce_org; - } - - if (!zephir_is_callable_check_class(Z_STRVAL_P(callable), clen, fcc, &strict_class, error TSRMLS_CC)) { - EG(fake_scope) = last_scope; - return 0; - } - EG(fake_scope) = last_scope; -#else - last_scope = EG(scope); - if (ce_org) { - EG(scope) = ce_org; - } - - if (!zephir_is_callable_check_class(Z_STRVAL_P(callable), clen, fcc, &strict_class, error TSRMLS_CC)) { - EG(scope) = last_scope; - return 0; - } - EG(scope) = last_scope; -#endif - - ftable = &fcc->calling_scope->function_table; - if (ce_org && !instanceof_function(ce_org, fcc->calling_scope TSRMLS_CC)) { - if (error) zephir_spprintf(error, 0, "class '%s' is not a subclass of '%s'", ce_org->name, fcc->calling_scope->name); - return 0; - } - mname = Z_STRVAL_P(callable) + clen + 2; - } else if (ce_org) { - /* Try to fetch find static method of given class. */ - mlen = Z_STRLEN_P(callable); - mname = Z_STRVAL_P(callable); - ftable = &ce_org->function_table; - fcc->calling_scope = ce_org; - } else { - /* We already checked for plain function before. */ - if (error && !(check_flags & IS_CALLABLE_CHECK_SILENT)) { - zephir_spprintf(error, 0, "function '%s' not found or invalid function name", Z_STRVAL_P(callable)); - } - return 0; - } - - zs_mname = zend_string_init(mname, mlen, 0); - lmname = zend_str_tolower_dup(mname, mlen); - if (strict_class && - fcc->calling_scope && - mlen == sizeof(ZEND_CONSTRUCTOR_FUNC_NAME)-1 && - !memcmp(lmname, ZEND_CONSTRUCTOR_FUNC_NAME, sizeof(ZEND_CONSTRUCTOR_FUNC_NAME) - 1)) { - fcc->function_handler = fcc->calling_scope->constructor; - if (fcc->function_handler) { - retval = 1; - } - } else if ((fcc->function_handler = zend_hash_str_find_ptr(ftable, lmname, mlen)) != NULL) { - retval = 1; -#if PHP_VERSION_ID >= 70100 - last_scope = EG(fake_scope); -#else - last_scope = EG(scope); -#endif - if ((fcc->function_handler->op_array.fn_flags & ZEND_ACC_CHANGED) && - !strict_class && last_scope && - instanceof_function(fcc->function_handler->common.scope, last_scope TSRMLS_CC)) { - zend_function *priv_fbc; - - if ((priv_fbc = zend_hash_str_find_ptr(&last_scope->function_table, lmname, mlen)) != NULL - && priv_fbc->common.fn_flags & ZEND_ACC_PRIVATE - && priv_fbc->common.scope == last_scope) { - fcc->function_handler = priv_fbc; - } - } - } else { - if (fcc->object && fcc->calling_scope == ce_org) { - if (strict_class && ce_org->__call) { - fcc->function_handler = zend_get_call_trampoline_func(ce_org, zs_mname, 0); - call_via_handler = 1; - retval = 1; - } else if (fcc->object->handlers->get_method) { - fcc->function_handler = fcc->object->handlers->get_method(&fcc->object, zs_mname, NULL); - if (fcc->function_handler) { - if (strict_class && - (!fcc->function_handler->common.scope || - !instanceof_function(ce_org, fcc->function_handler->common.scope TSRMLS_CC))) { - if ((fcc->function_handler->common.fn_flags & ZEND_ACC_CALL_VIA_HANDLER) != 0) { - if (fcc->function_handler->type != ZEND_OVERLOADED_FUNCTION) { - zend_string_release(fcc->function_handler->common.function_name); - } - zend_free_trampoline(fcc->function_handler); - } - } else { - retval = 1; - call_via_handler = (fcc->function_handler->common.fn_flags & ZEND_ACC_CALL_VIA_HANDLER) != 0; - } - } - } - } else if (fcc->calling_scope) { - if (fcc->calling_scope->get_static_method) { - fcc->function_handler = fcc->calling_scope->get_static_method(fcc->calling_scope, zs_mname); - } else { - fcc->function_handler = zend_std_get_static_method(fcc->calling_scope, zs_mname, NULL); - } - if (fcc->function_handler) { - retval = 1; - call_via_handler = (fcc->function_handler->common.fn_flags & ZEND_ACC_CALL_VIA_HANDLER) != 0; - if (call_via_handler && !fcc->object && EG(current_execute_data) && Z_OBJ(EG(current_execute_data)->This) && - instanceof_function(Z_OBJCE(EG(current_execute_data)->This), fcc->calling_scope)) { - fcc->object = Z_OBJ(EG(current_execute_data)->This); - } - } - } - } - - if (retval) { - if (fcc->calling_scope && !call_via_handler) { - if (!fcc->object && (fcc->function_handler->common.fn_flags & ZEND_ACC_ABSTRACT)) { - if (error) { - zephir_spprintf(error, 0, "cannot call abstract method %s::%s()", fcc->calling_scope->name, fcc->function_handler->common.function_name); - retval = 0; - } else { - zend_error(E_ERROR, "Cannot call abstract method %s::%s()", fcc->calling_scope->name, fcc->function_handler->common.function_name); - } - } else if (!fcc->object && !(fcc->function_handler->common.fn_flags & ZEND_ACC_STATIC)) { - int severity; - char *verb; - if (fcc->function_handler->common.fn_flags & ZEND_ACC_ALLOW_STATIC) { - severity = E_STRICT; - verb = "should not"; - } else { - /* An internal function assumes $this is present and won't check that. So PHP would crash by allowing the call. */ - severity = E_ERROR; - verb = "cannot"; - } - if ((check_flags & IS_CALLABLE_CHECK_IS_STATIC) != 0) { - retval = 0; - } - - if (error) { - zephir_spprintf(error, 0, "non-static method %s::%s() %s be called statically", fcc->calling_scope->name, fcc->function_handler->common.function_name, verb); - if (severity == E_ERROR) { - retval = 0; - } - } else if (retval) { - zend_error(severity, "Non-static method %s::%s() %s be called statically", fcc->calling_scope->name, fcc->function_handler->common.function_name, verb); - } - } - } - } else if (error && !(check_flags & IS_CALLABLE_CHECK_SILENT)) { - if (fcc->calling_scope) { - if (error) zephir_spprintf(error, 0, "class '%s' does not have a method '%s'", fcc->calling_scope->name, mname); - } else { - if (error) zephir_spprintf(error, 0, "function '%s' does not exist", mname); - } - } - efree(lmname); - - zend_string_free(zs_mname); - if (fcc->object) { - fcc->called_scope = fcc->object->ce; - } - if (retval) { - fcc->initialized = 1; - } - return retval; -} - -static zend_bool zephir_is_callable_ex(zval *callable, zend_object *object, uint check_flags, char **callable_name, int *callable_name_len, zend_fcall_info_cache *fcc, char **error) /* {{{ */ -{ - zend_bool ret; - int callable_name_len_local; - zend_fcall_info_cache fcc_local; - - if (callable_name) { - *callable_name = NULL; - } - if (callable_name_len == NULL) { - callable_name_len = &callable_name_len_local; - } - if (fcc == NULL) { - fcc = &fcc_local; - } - if (error) { - *error = NULL; - } - - fcc->initialized = 0; - fcc->calling_scope = NULL; - fcc->called_scope = NULL; - fcc->function_handler = NULL; - fcc->object = NULL; - - if (object && - (!EG(objects_store).object_buckets || - !IS_OBJ_VALID(EG(objects_store).object_buckets[object->handle]))) { - return 0; - } - - switch (Z_TYPE_P(callable)) { - - case IS_STRING: - if (object) { - fcc->object = object; - fcc->calling_scope = object->ce; - if (callable_name) { - char *ptr; - - *callable_name_len = fcc->calling_scope->name->len + Z_STRLEN_P(callable) + sizeof("::") - 1; - ptr = *callable_name = emalloc(*callable_name_len + 1); - memcpy(ptr, fcc->calling_scope->name->val, fcc->calling_scope->name->len); - ptr += fcc->calling_scope->name->len; - memcpy(ptr, "::", sizeof("::") - 1); - ptr += sizeof("::") - 1; - memcpy(ptr, Z_STRVAL_P(callable), Z_STRLEN_P(callable) + 1); - } - } else if (callable_name) { - *callable_name = estrndup(Z_STRVAL_P(callable), Z_STRLEN_P(callable)); - *callable_name_len = Z_STRLEN_P(callable); - } - if (check_flags & IS_CALLABLE_CHECK_SYNTAX_ONLY) { - fcc->called_scope = fcc->calling_scope; - return 1; - } - - ret = zephir_is_callable_check_func(check_flags, callable, fcc, 0, error); - if (fcc == &fcc_local && - fcc->function_handler && - ((fcc->function_handler->type == ZEND_INTERNAL_FUNCTION && - (fcc->function_handler->common.fn_flags & ZEND_ACC_CALL_VIA_HANDLER)) || - fcc->function_handler->type == ZEND_OVERLOADED_FUNCTION_TEMPORARY || - fcc->function_handler->type == ZEND_OVERLOADED_FUNCTION)) { - if (fcc->function_handler->type != ZEND_OVERLOADED_FUNCTION) { - zend_string_release(fcc->function_handler->common.function_name); - } - zend_free_trampoline(fcc->function_handler); - } - return ret; - - case IS_ARRAY: - { - zval *method = NULL; - zval *obj = NULL; - int strict_class = 0; - if (zend_hash_num_elements(Z_ARRVAL_P(callable)) == 2) { - obj = zend_hash_index_find(Z_ARRVAL_P(callable), 0); - method = zend_hash_index_find(Z_ARRVAL_P(callable), 1); - } - - do { - if (obj == NULL || method == NULL) { - break; - } - ZVAL_DEREF(method); - if (Z_TYPE_P(method) != IS_STRING) { - break; - } - - ZVAL_DEREF(obj); - if (Z_TYPE_P(obj) == IS_STRING) { - if (callable_name) { - char *ptr; - - *callable_name_len = Z_STRLEN_P(obj) + Z_STRLEN_P(method) + sizeof("::") - 1; - ptr = *callable_name = emalloc(*callable_name_len + 1); - memcpy(ptr, Z_STRVAL_P(obj), Z_STRLEN_P(obj)); - ptr += Z_STRLEN_P(obj); - memcpy(ptr, "::", sizeof("::") - 1); - ptr += sizeof("::") - 1; - memcpy(ptr, Z_STRVAL_P(method), Z_STRLEN_P(method) + 1); - } - - if (check_flags & IS_CALLABLE_CHECK_SYNTAX_ONLY) { - return 1; - } - - if (!zephir_is_callable_check_class(Z_STRVAL_P(obj), Z_STRLEN_P(obj), fcc, &strict_class, error)) { - return 0; - } - - } else { - if (!EG(objects_store).object_buckets || - !IS_OBJ_VALID(EG(objects_store).object_buckets[Z_OBJ_HANDLE_P(obj)])) { - return 0; - } - fcc->calling_scope = Z_OBJCE_P(obj); /* TBFixed: what if it's overloaded? */ - fcc->object = Z_OBJ_P(obj); - - if (callable_name) { - char *ptr; - - *callable_name_len = fcc->calling_scope->name->len + Z_STRLEN_P(method) + sizeof("::") - 1; - ptr = *callable_name = emalloc(*callable_name_len + 1); - memcpy(ptr, fcc->calling_scope->name->val, fcc->calling_scope->name->len); - ptr += fcc->calling_scope->name->len; - memcpy(ptr, "::", sizeof("::") - 1); - ptr += sizeof("::") - 1; - memcpy(ptr, Z_STRVAL_P(method), Z_STRLEN_P(method) + 1); - } - - if (check_flags & IS_CALLABLE_CHECK_SYNTAX_ONLY) { - fcc->called_scope = fcc->calling_scope; - return 1; - } - } - - ret = zephir_is_callable_check_func(check_flags, method, fcc, strict_class, error); - if (fcc == &fcc_local && - fcc->function_handler && - ((fcc->function_handler->type == ZEND_INTERNAL_FUNCTION && - (fcc->function_handler->common.fn_flags & ZEND_ACC_CALL_VIA_HANDLER)) || - fcc->function_handler->type == ZEND_OVERLOADED_FUNCTION_TEMPORARY || - fcc->function_handler->type == ZEND_OVERLOADED_FUNCTION)) { - if (fcc->function_handler->type != ZEND_OVERLOADED_FUNCTION) { - zend_string_release(fcc->function_handler->common.function_name); - } - zend_free_trampoline(fcc->function_handler); - } - return ret; - - } while (0); - if (zend_hash_num_elements(Z_ARRVAL_P(callable)) == 2) { - if (!obj || (!Z_ISREF_P(obj)? - (Z_TYPE_P(obj) != IS_STRING && Z_TYPE_P(obj) != IS_OBJECT) : - (Z_TYPE_P(Z_REFVAL_P(obj)) != IS_STRING && Z_TYPE_P(Z_REFVAL_P(obj)) != IS_OBJECT))) { - if (error) zephir_spprintf(error, 0, "first array member is not a valid class name or object"); - } else { - if (error) zephir_spprintf(error, 0, "second array member is not a valid method"); - } - } else { - if (error) zephir_spprintf(error, 0, "array must have exactly two members"); - } - if (callable_name) { - *callable_name = estrndup("Array", sizeof("Array")-1); - *callable_name_len = sizeof("Array") - 1; - } - } - return 0; - - case IS_OBJECT: - if (Z_OBJ_HANDLER_P(callable, get_closure) && Z_OBJ_HANDLER_P(callable, get_closure)(callable, &fcc->calling_scope, &fcc->function_handler, &fcc->object) == SUCCESS) { - fcc->called_scope = fcc->calling_scope; - if (callable_name) { - zend_class_entry *ce = Z_OBJCE_P(callable); /* TBFixed: what if it's overloaded? */ - - *callable_name_len = ce->name->len + sizeof("::__invoke") - 1; - *callable_name = emalloc(*callable_name_len + 1); - memcpy(*callable_name, ce->name->val, ce->name->len); - memcpy((*callable_name) + ce->name->len, "::__invoke", sizeof("::__invoke")); - } - return 1; - } - /* break missing intentionally */ - - default: - if (callable_name) { - zval expr_copy; - int use_copy = zend_make_printable_zval(callable, &expr_copy); - - *callable_name = estrndup(Z_STRVAL(expr_copy), Z_STRLEN(expr_copy)); - *callable_name_len = Z_STRLEN(expr_copy); - if (use_copy) { - zval_dtor(&expr_copy); - } - } - if (error) zephir_spprintf(error, 0, "no array or string given"); - return 0; - } -} - -static zend_bool zephir_is_info_dynamic_callable(zephir_fcall_info *info, zend_fcall_info_cache *fcc, zend_class_entry *ce_org, int strict_class) -{ - int call_via_handler = 0, retval = 0; - zend_string *zs_lcname = zend_string_alloc(info->func_length, 0); - zend_str_tolower_copy(ZSTR_VAL(zs_lcname), info->func_name, info->func_length); - - if (fcc->object && fcc->calling_scope == ce_org) { - if (strict_class && ce_org->__call) { - fcc->function_handler = zend_get_call_trampoline_func(ce_org, zs_lcname, 0); - call_via_handler = 1; - retval = 1; - } else if (fcc->object->handlers->get_method) { - fcc->function_handler = fcc->object->handlers->get_method(&fcc->object, zs_lcname, NULL); - if (fcc->function_handler) { - if (strict_class && - (!fcc->function_handler->common.scope || - !instanceof_function(ce_org, fcc->function_handler->common.scope TSRMLS_CC))) { - if ((fcc->function_handler->common.fn_flags & ZEND_ACC_CALL_VIA_HANDLER) != 0) { - if (fcc->function_handler->type != ZEND_OVERLOADED_FUNCTION) { - zend_string_release(fcc->function_handler->common.function_name); - } - zend_free_trampoline(fcc->function_handler); - } - } else { - call_via_handler = (fcc->function_handler->common.fn_flags & ZEND_ACC_CALL_VIA_HANDLER) != 0; - retval = 1; - } - } - } - } else if (fcc->calling_scope) { - if (fcc->calling_scope->get_static_method) { - fcc->function_handler = fcc->calling_scope->get_static_method(fcc->calling_scope, zs_lcname); - } else { - fcc->function_handler = zend_std_get_static_method(fcc->calling_scope, zs_lcname, NULL); - } - if (fcc->function_handler) { - call_via_handler = (fcc->function_handler->common.fn_flags & ZEND_ACC_CALL_VIA_HANDLER) != 0; - if (call_via_handler && !fcc->object && EG(current_execute_data) && Z_OBJ(EG(current_execute_data)->This) && - instanceof_function(Z_OBJCE(EG(current_execute_data)->This), fcc->calling_scope)) { - fcc->object = Z_OBJ(EG(current_execute_data)->This); - } - retval = 1; - } - } - - zend_string_release(zs_lcname); - return retval; -} - -static zend_bool zephir_is_info_callable_ex(zephir_fcall_info *info, zend_fcall_info_cache *fcc TSRMLS_DC) -{ - int retval = 0; - zend_class_entry *ce_org = fcc->calling_scope, *scope, *called_scope; - zend_fcall_info_cache fcc_local; - -#if PHP_VERSION_ID >= 70100 - if(ce_org) { - scope = ce_org; - } else { - scope = zend_get_executed_scope(); - } - called_scope = zend_get_called_scope(EG(current_execute_data)); -#else - scope = EG(scope); - called_scope = EG(current_execute_data)->called_scope; -#endif - - if (fcc == NULL) { - fcc = &fcc_local; - } - - fcc->initialized = 0; - fcc->calling_scope = NULL; - fcc->called_scope = NULL; - fcc->function_handler = NULL; - fcc->object = NULL; - - switch (info->type) { - - case ZEPHIR_FCALL_TYPE_FUNC: - - if ((fcc->function_handler = zend_hash_str_find_ptr(EG(function_table), info->func_name, info->func_length)) != NULL) { - if (fcc == &fcc_local && - fcc->function_handler && - ((fcc->function_handler->type == ZEND_INTERNAL_FUNCTION && - (fcc->function_handler->common.fn_flags & ZEND_ACC_CALL_VIA_HANDLER)) || - fcc->function_handler->type == ZEND_OVERLOADED_FUNCTION_TEMPORARY || - fcc->function_handler->type == ZEND_OVERLOADED_FUNCTION)) { - if (fcc->function_handler->type != ZEND_OVERLOADED_FUNCTION) { - efree((char*)fcc->function_handler->common.function_name); - } - zend_string_release(fcc->function_handler->common.function_name); - } - fcc->initialized = 1; - return 1; - } - break; - - case ZEPHIR_FCALL_TYPE_ZVAL_METHOD: - if (!EG(objects_store).object_buckets || !IS_OBJ_VALID(EG(objects_store).object_buckets[Z_OBJ_HANDLE_P(info->object_ptr)])) { - return 0; - } - fcc->calling_scope = Z_OBJCE_P(info->object_ptr); /* TBFixed: what if it's overloaded? */ - fcc->called_scope = fcc->calling_scope; - fcc->object = Z_OBJ_P(info->object_ptr); - - if (!ce_org) { - ce_org = fcc->calling_scope; - } - - if ((fcc->function_handler = zend_hash_str_find_ptr(&info->ce->function_table, info->func_name, info->func_length + 1)) != NULL) { - if (fcc == &fcc_local && - fcc->function_handler && - ((fcc->function_handler->type == ZEND_INTERNAL_FUNCTION && - (fcc->function_handler->common.fn_flags & ZEND_ACC_CALL_VIA_HANDLER)) || - fcc->function_handler->type == ZEND_OVERLOADED_FUNCTION_TEMPORARY || - fcc->function_handler->type == ZEND_OVERLOADED_FUNCTION)) { - if (fcc->function_handler->type != ZEND_OVERLOADED_FUNCTION) { - zend_string_release(fcc->function_handler->common.function_name); - } - zend_free_trampoline(fcc->function_handler); - } - retval = 1; - } - - if (!retval) { - retval = zephir_is_info_dynamic_callable(info, fcc, ce_org, 0 TSRMLS_CC); - } - break; - - case ZEPHIR_FCALL_TYPE_CLASS_SELF_METHOD: - - if (!called_scope) { - return 0; // cannot access self:: when no class scope is active - } - - fcc->called_scope = called_scope; - fcc->calling_scope = scope; - if (!fcc->object) { - fcc->object = Z_OBJ(EG(current_execute_data)->This); - } - if ((fcc->function_handler = zend_hash_str_find_ptr(&fcc->calling_scope->function_table, info->func_name, info->func_length)) != NULL) { - if (fcc == &fcc_local && - fcc->function_handler && - ((fcc->function_handler->type == ZEND_INTERNAL_FUNCTION && - (fcc->function_handler->common.fn_flags & ZEND_ACC_CALL_VIA_HANDLER)) || - fcc->function_handler->type == ZEND_OVERLOADED_FUNCTION_TEMPORARY || - fcc->function_handler->type == ZEND_OVERLOADED_FUNCTION)) { - if (fcc->function_handler->type != ZEND_OVERLOADED_FUNCTION) { - zend_string_release(fcc->function_handler->common.function_name); - } - zend_free_trampoline(fcc->function_handler); - } - retval = 1; - } - - if (!retval) { - retval = zephir_is_info_dynamic_callable(info, fcc, ce_org, 0 TSRMLS_CC); - } - break; - - case ZEPHIR_FCALL_TYPE_CLASS_PARENT_METHOD: - - if (!scope) { - return 0; // cannot access parent:: when no class scope is active - } - - if (!scope->parent) { - return 0; // cannot access parent:: when current class scope has no parent - } - - fcc->calling_scope = scope->parent; - fcc->called_scope = called_scope; - if (!fcc->object) { - fcc->object = Z_OBJ(EG(current_execute_data)->This); - } - - if ((fcc->function_handler = zend_hash_str_find_ptr(&fcc->calling_scope->function_table, info->func_name, info->func_length)) != NULL) { - if (fcc == &fcc_local && - fcc->function_handler && - ((fcc->function_handler->type == ZEND_INTERNAL_FUNCTION && - (fcc->function_handler->common.fn_flags & ZEND_ACC_CALL_VIA_HANDLER)) || - fcc->function_handler->type == ZEND_OVERLOADED_FUNCTION_TEMPORARY || - fcc->function_handler->type == ZEND_OVERLOADED_FUNCTION)) { - if (fcc->function_handler->type != ZEND_OVERLOADED_FUNCTION) { - zend_string_release(fcc->function_handler->common.function_name); - } - zend_free_trampoline(fcc->function_handler); - } - retval = 1; - } - - if (!retval) { - retval = zephir_is_info_dynamic_callable(info, fcc, ce_org, 1 TSRMLS_CC); - } - break; - - case ZEPHIR_FCALL_TYPE_CLASS_STATIC_METHOD: - - if (!EG(current_execute_data) || !called_scope) { - return 0; // cannot access static:: when no class scope is active - } - - fcc->called_scope = called_scope; - if (!fcc->object) { - fcc->object = Z_OBJ(EG(current_execute_data)->This); - } - fcc->calling_scope = fcc->called_scope; - - if ((fcc->function_handler = zend_hash_str_find_ptr(&fcc->calling_scope->function_table, info->func_name, info->func_length)) != NULL) { - if (fcc == &fcc_local && - fcc->function_handler && - ((fcc->function_handler->type == ZEND_INTERNAL_FUNCTION && - (fcc->function_handler->common.fn_flags & ZEND_ACC_CALL_VIA_HANDLER)) || - fcc->function_handler->type == ZEND_OVERLOADED_FUNCTION_TEMPORARY || - fcc->function_handler->type == ZEND_OVERLOADED_FUNCTION)) { - if (fcc->function_handler->type != ZEND_OVERLOADED_FUNCTION) { - zend_string_release(fcc->function_handler->common.function_name); - } - zend_free_trampoline(fcc->function_handler); - } - retval = 1; - } - - if (!retval) { - retval = zephir_is_info_dynamic_callable(info, fcc, ce_org, 1 TSRMLS_CC); - } - break; - - case ZEPHIR_FCALL_TYPE_CE_METHOD: - { - zend_class_entry *scope = EG(current_execute_data) ? EG(current_execute_data)->func->common.scope : NULL;; - - fcc->calling_scope = info->ce; - if (scope && !fcc->object && EG(current_execute_data) && Z_OBJ(EG(current_execute_data)->This) && - instanceof_function(Z_OBJCE(EG(current_execute_data)->This), scope) && - instanceof_function(scope, fcc->calling_scope)) { - fcc->object = Z_OBJ(EG(current_execute_data)->This); - fcc->called_scope = Z_OBJCE(EG(current_execute_data)->This); - } else { - fcc->called_scope = fcc->object ? fcc->object->ce : fcc->calling_scope; - } - - if ((fcc->function_handler = zend_hash_str_find_ptr(&fcc->calling_scope->function_table, info->func_name, info->func_length)) != NULL) { - if (fcc == &fcc_local && - fcc->function_handler && - ((fcc->function_handler->type == ZEND_INTERNAL_FUNCTION && - (fcc->function_handler->common.fn_flags & ZEND_ACC_CALL_VIA_HANDLER)) || - fcc->function_handler->type == ZEND_OVERLOADED_FUNCTION_TEMPORARY || - fcc->function_handler->type == ZEND_OVERLOADED_FUNCTION)) { - if (fcc->function_handler->type != ZEND_OVERLOADED_FUNCTION) { - zend_string_release(fcc->function_handler->common.function_name); - } - zend_free_trampoline(fcc->function_handler); - } - retval = 1; - } - - if (!retval) { - retval = zephir_is_info_dynamic_callable(info, fcc, ce_org, 1 TSRMLS_CC); - } - } - break; - } - - if (fcc->object) { - fcc->called_scope = fcc->object->ce; - } - if (retval) { - fcc->initialized = 1; - } - - return retval; -} - -static int zephir_call_function_opt(zend_fcall_info *fci, zend_fcall_info_cache *fci_cache, zephir_fcall_info *info, zval *params[]) -{ - uint32_t i; - zend_class_entry *calling_scope = NULL; - zend_execute_data *call, dummy_execute_data; - zend_fcall_info_cache fci_cache_local; - zend_function *func; - zend_class_entry *orig_scope; - - ZVAL_UNDEF(fci->retval); - - if (!EG(active)) { - return FAILURE; /* executor is already inactive */ - } - - if (EG(exception)) { - return FAILURE; /* we would result in an instable executor otherwise */ - } - - switch (fci->size) { - case sizeof(zend_fcall_info): - break; /* nothing to do currently */ - default: - zend_error_noreturn(E_CORE_ERROR, "Corrupted fcall_info provided to zend_call_function()"); - break; - } - -#if PHP_VERSION_ID >= 70100 - //orig_scope = EG(fake_scope); -#else - orig_scope = EG(scope); -#endif - - /* Initialize execute_data */ - if (!EG(current_execute_data)) { - /* This only happens when we're called outside any execute()'s - * It shouldn't be strictly necessary to NULL execute_data out, - * but it may make bugs easier to spot - */ - memset(&dummy_execute_data, 0, sizeof(zend_execute_data)); - EG(current_execute_data) = &dummy_execute_data; - } else if (EG(current_execute_data)->func && - ZEND_USER_CODE(EG(current_execute_data)->func->common.type) && - EG(current_execute_data)->opline->opcode != ZEND_DO_FCALL && - EG(current_execute_data)->opline->opcode != ZEND_DO_ICALL && - EG(current_execute_data)->opline->opcode != ZEND_DO_UCALL && - EG(current_execute_data)->opline->opcode != ZEND_DO_FCALL_BY_NAME) { - /* Insert fake frame in case of include or magic calls */ - dummy_execute_data = *EG(current_execute_data); - dummy_execute_data.prev_execute_data = EG(current_execute_data); - dummy_execute_data.call = NULL; - dummy_execute_data.opline = NULL; - dummy_execute_data.func = NULL; - EG(current_execute_data) = &dummy_execute_data; - } - - if (!fci_cache || !fci_cache->initialized) { - char *error = NULL; - - if (!fci_cache) { - fci_cache = &fci_cache_local; - } - - if (!info) { - char *callable_name; - if (!zephir_is_callable_ex(&fci->function_name, fci->object, IS_CALLABLE_CHECK_SILENT, &callable_name, NULL, fci_cache, &error)) { - if (error) { - zend_error(E_WARNING, "Invalid callback %s, %s", callable_name, error); - efree(error); - } - if (callable_name) { - efree(callable_name); - } - if (EG(current_execute_data) == &dummy_execute_data) { - EG(current_execute_data) = dummy_execute_data.prev_execute_data; - } - return FAILURE; - } else { - if (error) { - zend_error(E_STRICT, "%s", error); - efree(error); - } - } - efree(callable_name); - } else { - if (!zephir_is_info_callable_ex(info, fci_cache)) { - return FAILURE; - } - } - } - - func = fci_cache->function_handler; -#if PHP_VERSION_ID >= 70100 - fci->object = (func->common.fn_flags & ZEND_ACC_STATIC) ? NULL : fci_cache->object; - call = zend_vm_stack_push_call_frame(ZEND_CALL_TOP_FUNCTION, func, fci->param_count, fci_cache->called_scope, fci->object); -#else - call = zend_vm_stack_push_call_frame(ZEND_CALL_TOP_FUNCTION, - func, fci->param_count, fci_cache->called_scope, fci_cache->object); - fci->object = fci_cache->object; -#endif - calling_scope = fci_cache->calling_scope; - if (fci->object && - (!EG(objects_store).object_buckets || - !IS_OBJ_VALID(EG(objects_store).object_buckets[fci->object->handle]))) { - if (EG(current_execute_data) == &dummy_execute_data) { - EG(current_execute_data) = dummy_execute_data.prev_execute_data; - } - return FAILURE; - } - - if (func->common.fn_flags & (ZEND_ACC_ABSTRACT|ZEND_ACC_DEPRECATED)) { - if (func->common.fn_flags & ZEND_ACC_ABSTRACT) { - zend_throw_error(NULL, "Cannot call abstract method %s::%s()", ZSTR_VAL(func->common.scope->name), ZSTR_VAL(func->common.function_name)); - return FAILURE; - } - if (func->common.fn_flags & ZEND_ACC_DEPRECATED) { - zend_error(E_DEPRECATED, "Function %s%s%s() is deprecated", - func->common.scope ? ZSTR_VAL(func->common.scope->name) : "", - func->common.scope ? "::" : "", - ZSTR_VAL(func->common.function_name)); - } - } - - for (i = 0; i < fci->param_count; i++) { - zval *param; - zval *arg = params[i]; - - if (ARG_SHOULD_BE_SENT_BY_REF(func, i + 1)) { - if (UNEXPECTED(!Z_ISREF_P(arg))) { - /*if (fci->no_separation && - !ARG_MAY_BE_SENT_BY_REF(func, i + 1)) { - if (i) { - // hack to clean up the stack - ZEND_CALL_NUM_ARGS(call) = i; - zend_vm_stack_free_args(call); - } - zend_vm_stack_free_call_frame(call); - - zend_error(E_WARNING, "Parameter %d to %s%s%s() expected to be a reference, value given", - i+1, - func->common.scope ? ZSTR_VAL(func->common.scope->name) : "", - func->common.scope ? "::" : "", - ZSTR_VAL(func->common.function_name)); - if (EG(current_execute_data) == &dummy_execute_data) { - EG(current_execute_data) = dummy_execute_data.prev_execute_data; - } - return FAILURE; - } */ - - ZVAL_NEW_REF(arg, arg); - } - Z_ADDREF_P(arg); - } else { - if (Z_ISREF_P(arg) && - !(func->common.fn_flags & ZEND_ACC_CALL_VIA_TRAMPOLINE)) { - /* don't separate references for __call */ - arg = Z_REFVAL_P(arg); - } - if (Z_OPT_REFCOUNTED_P(arg)) { - Z_ADDREF_P(arg); - } - } - param = ZEND_CALL_ARG(call, i+1); - ZVAL_COPY_VALUE(param, arg); - } - -#if PHP_VERSION_ID >= 70100 - //EG(fake_scope) = calling_scope; - if(fci_cache->object) { - Z_OBJ(call->This) = fci_cache->object; - } - if (UNEXPECTED(func->op_array.fn_flags & ZEND_ACC_CLOSURE)) { - ZEND_ASSERT(GC_TYPE((zend_object*)func->op_array.prototype) == IS_OBJECT); - GC_REFCOUNT((zend_object*)func->op_array.prototype)++; - ZEND_ADD_CALL_FLAG(call, ZEND_CALL_CLOSURE); - } -#else - EG(scope) = calling_scope; - if (func->common.fn_flags & ZEND_ACC_STATIC) { - fci->object = NULL; - } - Z_OBJ(call->This) = fci->object; -#endif - - if (func->type == ZEND_USER_FUNCTION) { - int call_via_handler = (func->common.fn_flags & ZEND_ACC_CALL_VIA_TRAMPOLINE) != 0; - -#if PHP_VERSION_ID >= 70100 - //EG(fake_scope) = func->common.scope; - //call->symbol_table = NULL; -#else - EG(scope) = func->common.scope; - call->symbol_table = fci->symbol_table; -#endif - -#if PHP_VERSION_ID >= 70100 - zend_init_execute_data(call, &func->op_array, fci->retval); - zend_execute_ex(call); -#else - if (UNEXPECTED(func->op_array.fn_flags & ZEND_ACC_CLOSURE)) { - ZEND_ASSERT(GC_TYPE((zend_object*)func->op_array.prototype) == IS_OBJECT); - GC_REFCOUNT((zend_object*)func->op_array.prototype)++; - ZEND_ADD_CALL_FLAG(call, ZEND_CALL_CLOSURE); - } - if (EXPECTED((func->op_array.fn_flags & ZEND_ACC_GENERATOR) == 0)) { - zend_init_execute_data(call, &func->op_array, fci->retval); - zend_execute_ex(call); - } else { - zend_generator_create_zval(call, &func->op_array, fci->retval); - } -#endif - if (call_via_handler) { - /* We must re-initialize function again */ - fci_cache->initialized = 0; - } - } else if (func->type == ZEND_INTERNAL_FUNCTION) { - int call_via_handler = (func->common.fn_flags & ZEND_ACC_CALL_VIA_TRAMPOLINE) != 0; - ZVAL_NULL(fci->retval); - if (func->common.scope) { -#if PHP_VERSION_ID >= 70100 - //EG(fake_scope) = func->common.scope; -#else - EG(scope) = func->common.scope; -#endif - } - call->prev_execute_data = EG(current_execute_data); - call->return_value = NULL; /* this is not a constructor call */ - EG(current_execute_data) = call; - if (EXPECTED(zend_execute_internal == NULL)) { - /* saves one function call if zend_execute_internal is not used */ - func->internal_function.handler(call, fci->retval); - } else { - zend_execute_internal(call, fci->retval); - } - EG(current_execute_data) = call->prev_execute_data; - zend_vm_stack_free_args(call); - - /* We shouldn't fix bad extensions here, - because it can break proper ones (Bug #34045) - if (!EX(function_state).function->common.return_reference) - { - INIT_PZVAL(f->retval); - }*/ - if (EG(exception)) { - zval_ptr_dtor(fci->retval); - ZVAL_UNDEF(fci->retval); - } - - if (call_via_handler) { - /* We must re-initialize function again */ - fci_cache->initialized = 0; - } - } else { /* ZEND_OVERLOADED_FUNCTION */ - ZVAL_NULL(fci->retval); - - /* Not sure what should be done here if it's a static method */ - if (fci->object) { - call->prev_execute_data = EG(current_execute_data); - EG(current_execute_data) = call; - fci->object->handlers->call_method(func->common.function_name, fci->object, call, fci->retval); - EG(current_execute_data) = call->prev_execute_data; - } else { - zend_throw_error(NULL, "Cannot call overloaded function for non-object"); - } - - zend_vm_stack_free_args(call); - - if (func->type == ZEND_OVERLOADED_FUNCTION_TEMPORARY) { - zend_string_release(func->common.function_name); - } - efree(func); - - if (EG(exception)) { - zval_ptr_dtor(fci->retval); - ZVAL_UNDEF(fci->retval); - } - } - -#if PHP_VERSION_ID >= 70100 - //EG(fake_scope) = orig_scope; -#else - EG(scope) = orig_scope; -#endif - zend_vm_stack_free_call_frame(call); - - if (EG(current_execute_data) == &dummy_execute_data) { - EG(current_execute_data) = dummy_execute_data.prev_execute_data; - } - - if (EG(exception)) { - zend_throw_exception_internal(NULL); - } - return SUCCESS; -} - - - #ifdef HAVE_CONFIG_H #endif @@ -8488,7 +7197,7 @@ static void zephir_camelize(zval *return_value, const zval *str, const zval *del smart_str camelize_str = {0}; char *marker, ch, *delim; - if (unlikely(Z_TYPE_P(str) != IS_STRING)) { + if (UNEXPECTED(Z_TYPE_P(str) != IS_STRING)) { zend_error(E_WARNING, "Invalid arguments supplied for camelize()"); RETURN_EMPTY_STRING(); } @@ -8615,7 +7324,7 @@ static int zephir_memnstr_str(const zval *haystack, char *needle, unsigned int n static void zephir_fast_explode(zval *return_value, zval *delimiter, zval *str, long limit) { - if (unlikely(Z_TYPE_P(str) != IS_STRING || Z_TYPE_P(delimiter) != IS_STRING)) { + if (UNEXPECTED(Z_TYPE_P(str) != IS_STRING || Z_TYPE_P(delimiter) != IS_STRING)) { zend_error(E_WARNING, "Invalid arguments supplied for explode()"); RETURN_EMPTY_STRING(); } @@ -8628,7 +7337,7 @@ static void zephir_fast_explode_str(zval *return_value, const char *delim, int d { zend_string *delimiter; - if (unlikely(Z_TYPE_P(str) != IS_STRING)) { + if (UNEXPECTED(Z_TYPE_P(str) != IS_STRING)) { zend_error(E_WARNING, "Invalid arguments supplied for explode()"); RETURN_EMPTY_STRING(); } @@ -8643,7 +7352,7 @@ static void zephir_fast_strpos(zval *return_value, const zval *haystack, const z { const char *found = NULL; - if (unlikely(Z_TYPE_P(haystack) != IS_STRING || Z_TYPE_P(needle) != IS_STRING)) { + if (UNEXPECTED(Z_TYPE_P(haystack) != IS_STRING || Z_TYPE_P(needle) != IS_STRING)) { ZVAL_NULL(return_value); zend_error(E_WARNING, "Invalid arguments supplied for strpos()"); return; @@ -8674,7 +7383,7 @@ static void zephir_fast_strpos_str(zval *return_value, const zval *haystack, cha { const char *found = NULL; - if (unlikely(Z_TYPE_P(haystack) != IS_STRING)) { + if (UNEXPECTED(Z_TYPE_P(haystack) != IS_STRING)) { ZVAL_NULL(return_value); zend_error(E_WARNING, "Invalid arguments supplied for strpos()"); return; @@ -8988,7 +7697,8 @@ static void zephir_preg_match(zval *return_value, zval *regex, zval *subject, zv ZVAL_LONG(&tmp_flags, flags); ZVAL_LONG(&tmp_offset, offset); - ZVAL_UNDEF(&tmp_matches); + ZVAL_NULL(&tmp_matches); + ZVAL_MAKE_REF(&tmp_matches); { zval *tmp_params[5] = { regex, subject, &tmp_matches, &tmp_flags, &tmp_offset }; @@ -9035,7 +7745,7 @@ static int zephir_json_decode(zval *return_value, zval *v, zend_bool assoc) zval copy; int use_copy = 0; - if (unlikely(Z_TYPE_P(v) != IS_STRING)) { + if (UNEXPECTED(Z_TYPE_P(v) != IS_STRING)) { use_copy = zend_make_printable_zval(v, ©); if (use_copy) { v = © @@ -9044,7 +7754,7 @@ static int zephir_json_decode(zval *return_value, zval *v, zend_bool assoc) php_json_decode(return_value, Z_STRVAL_P(v), Z_STRLEN_P(v), assoc, 512 /* JSON_PARSER_DEFAULT_DEPTH */); - if (unlikely(use_copy)) { + if (UNEXPECTED(use_copy)) { zval_dtor(©); } @@ -9144,7 +7854,7 @@ static void zephir_ucfirst(zval *return_value, zval *s) char *c; int use_copy = 0; - if (unlikely(Z_TYPE_P(s) != IS_STRING)) { + if (UNEXPECTED(Z_TYPE_P(s) != IS_STRING)) { use_copy = zend_make_printable_zval(s, ©); if (use_copy) { s = © @@ -9160,7 +7870,7 @@ static void zephir_ucfirst(zval *return_value, zval *s) *c = toupper((unsigned char)*c); } - if (unlikely(use_copy)) { + if (UNEXPECTED(use_copy)) { zval_dtor(©); } } @@ -9170,7 +7880,7 @@ static void zephir_addslashes(zval *return_value, zval *str) zval copy; int use_copy = 0; - if (unlikely(Z_TYPE_P(str) != IS_STRING)) { + if (UNEXPECTED(Z_TYPE_P(str) != IS_STRING)) { use_copy = zend_make_printable_zval(str, ©); if (use_copy) { str = © @@ -9179,7 +7889,7 @@ static void zephir_addslashes(zval *return_value, zval *str) ZVAL_STR(return_value, php_addslashes(Z_STR_P(str), 0)); - if (unlikely(use_copy)) { + if (UNEXPECTED(use_copy)) { zval_dtor(©); } } @@ -9189,7 +7899,7 @@ static void zephir_stripslashes(zval *return_value, zval *str) zval copy; int use_copy = 0; - if (unlikely(Z_TYPE_P(str) != IS_STRING)) { + if (UNEXPECTED(Z_TYPE_P(str) != IS_STRING)) { use_copy = zend_make_printable_zval(str, ©); if (use_copy) { str = © @@ -9199,7 +7909,7 @@ static void zephir_stripslashes(zval *return_value, zval *str) ZVAL_STRINGL(return_value, Z_STRVAL_P(str), Z_STRLEN_P(str)); php_stripslashes(Z_STR_P(return_value)); - if (unlikely(use_copy)) { + if (UNEXPECTED(use_copy)) { zval_dtor(©); } } @@ -9209,7 +7919,7 @@ static void zephir_stripcslashes(zval *return_value, zval *str) zval copy; int use_copy = 0; - if (unlikely(Z_TYPE_P(str) != IS_STRING)) { + if (UNEXPECTED(Z_TYPE_P(str) != IS_STRING)) { use_copy = zend_make_printable_zval(str, ©); if (use_copy) { str = © @@ -9219,7 +7929,7 @@ static void zephir_stripcslashes(zval *return_value, zval *str) ZVAL_STRINGL(return_value, Z_STRVAL_P(str), Z_STRLEN_P(str)); php_stripcslashes(Z_STR_P(return_value)); - if (unlikely(use_copy)) { + if (UNEXPECTED(use_copy)) { zval_dtor(©); } } @@ -9248,6 +7958,37 @@ static int zephir_hash_equals(const zval *known_zval, const zval *user_zval) return (int) (result == 0); } +static void zephir_string_to_hex(zval *return_value, zval *var) +{ + int use_copy = 0; + zval copy; + size_t i; + char *s; + zend_string *res; + + if (Z_TYPE_P(var) != IS_STRING) { + use_copy = zend_make_printable_zval(var, ©); + if (use_copy) { + var = © + } + } + + res = zend_string_alloc(2*Z_STRLEN_P(var) + 1, 0); + s = Z_STRVAL_P(var); + for (i=0; ival + 2*i, "%hhX", s[i]); + } + + res->val[2*Z_STRLEN_P(var)] = 0; + res->len = 2*Z_STRLEN_P(var); + zend_string_forget_hash_val(res); + ZVAL_STR(return_value, res); + + if (use_copy) { + zval_dtor(var); + } +} + @@ -9284,7 +8025,7 @@ static int zephir_has_constructor_ce(const zend_class_entry *ce) return 0; } -static ulong zephir_make_fcall_info_key(char **result, size_t *length, const zend_class_entry *obj_ce, zephir_call_type type, zephir_fcall_info *info) +static ulong zephir_make_fcall_key(char **result, size_t *length, const zend_class_entry *obj_ce, zephir_call_type type, zval *function_name) { const zend_class_entry *calling_scope; char *buf = NULL, *c; @@ -9327,114 +8068,6 @@ static ulong zephir_make_fcall_info_key(char **result, size_t *length, const zen calling_scope = NULL; } - switch (info->type) { - - case ZEPHIR_FCALL_TYPE_FUNC: - - l = (size_t)(info->func_length) + 1; - c = (char*) info->func_name; - len = 2 * ppzce_size + l + 1; - buf = emalloc(len); - - memcpy(buf, c, l); - memcpy(buf + l, &calling_scope, ppzce_size); - memcpy(buf + l + ppzce_size, &obj_ce, ppzce_size); - buf[len - 1] = '\0'; - break; - - case ZEPHIR_FCALL_TYPE_CLASS_SELF_METHOD: - case ZEPHIR_FCALL_TYPE_CLASS_STATIC_METHOD: - case ZEPHIR_FCALL_TYPE_CLASS_PARENT_METHOD: - l = (size_t)(info->func_length) + 2; /* reserve 1 char for fcall-type */ - c = (char*) info->func_name; - len = 2 * ppzce_size + l + 1; - buf = emalloc(len); - - buf[0] = info->type; - memcpy(buf + 1, c, l - 1); - memcpy(buf + l, &calling_scope, ppzce_size); - memcpy(buf + l + ppzce_size, &obj_ce, ppzce_size); - buf[len - 1] = '\0'; - break; - - case ZEPHIR_FCALL_TYPE_CE_METHOD: - case ZEPHIR_FCALL_TYPE_ZVAL_METHOD: - l = (size_t)(info->func_length) + 1; - c = (char*) info->func_name; - len = 2 * ppzce_size + l + 1; - buf = emalloc(len); - - memcpy(buf, c, l); - memcpy(buf + l, &calling_scope, ppzce_size); - memcpy(buf + l + ppzce_size, &obj_ce, ppzce_size); - buf[len - 1] = '\0'; - break; - } - - if (EXPECTED(buf != NULL)) { - size_t i; - - for (i = 0; i < l; ++i) { - char c = buf[i]; - c = tolower_map[(unsigned char)c]; - buf[i] = c; - hash = (hash << 5) + hash + c; - } - - for (i = l; i < len; ++i) { - char c = buf[i]; - hash = (hash << 5) + hash + c; - } - } - - *result = buf; - *length = len; - return hash; -} - -static ulong zephir_make_fcall_key(char **result, size_t *length, const zend_class_entry *obj_ce, zephir_call_type type, zval *function_name TSRMLS_DC) -{ - const zend_class_entry *calling_scope; - char *buf = NULL, *c; - size_t l = 0, len = 0; - const size_t ppzce_size = sizeof(zend_class_entry**); - ulong hash = 5381; - -#if PHP_VERSION_ID >= 70100 - calling_scope = EG(fake_scope); -#else - calling_scope = EG(scope); -#endif - *result = NULL; - *length = 0; - - if (calling_scope && type == zephir_fcall_parent) { - calling_scope = calling_scope->parent; - if (UNEXPECTED(!calling_scope)) { - return 0; - } - } - else if (type == zephir_fcall_static) { -#if PHP_VERSION_ID >= 70100 - calling_scope = zend_get_called_scope(EG(current_execute_data)); -#else - calling_scope = EG(current_execute_data)->called_scope; -#endif - if (UNEXPECTED(!calling_scope)) { - return 0; - } - } - - if ( - calling_scope - && obj_ce - && calling_scope != obj_ce - && !instanceof_function(obj_ce, calling_scope) - && !instanceof_function(calling_scope, obj_ce) - ) { - calling_scope = NULL; - } - if (Z_TYPE_P(function_name) == IS_STRING) { l = (size_t)(Z_STRLEN_P(function_name)) + 1; c = Z_STRVAL_P(function_name); @@ -9487,95 +8120,9 @@ static ulong zephir_make_fcall_key(char **result, size_t *length, const zend_cla return hash; } -ZEPHIR_ATTR_NONNULL static void zephir_fcall_populate_fci_cache(zend_fcall_info_cache *fcic, zend_fcall_info *fci, zephir_call_type type) -{ - zend_class_entry *scope, *called_scope; -#if PHP_VERSION_ID >= 70100 - scope = EG(fake_scope); - called_scope = zend_get_called_scope(EG(current_execute_data)); -#else - scope = EG(scope); - called_scope = EG(current_execute_data)->called_scope; -#endif - - switch (type) { - case zephir_fcall_parent: - if (scope && scope->parent) { - fcic->calling_scope = scope->parent; - fcic->called_scope = called_scope; - fcic->object = fci->object ? fci->object : Z_OBJ(EG(current_execute_data)->This); - fcic->initialized = 1; - } - - break; - - case zephir_fcall_self: - if (scope) { - fcic->calling_scope = scope; - fcic->called_scope = called_scope; - fcic->object = fci->object ? fci->object : Z_OBJ(EG(current_execute_data)->This); - fcic->initialized = 1; - } - - break; - - case zephir_fcall_static: - if (called_scope) { - fcic->called_scope = called_scope; - fcic->calling_scope = called_scope; - fcic->object = fci->object ? fci->object : Z_OBJ(EG(current_execute_data)->This); - fcic->initialized = 1; - } - - break; - - case zephir_fcall_function: - fcic->calling_scope = NULL; - fcic->called_scope = NULL; - fcic->object = NULL; - fcic->initialized = 1; - break; - - case zephir_fcall_ce: { - fcic->initialized = 1; - fcic->calling_scope = scope; - /* called_scope: Instead of the checks below, which seem unnecessary/broken? */ - fcic->called_scope = fcic->calling_scope; - fcic->object = NULL; - - break; - } - - case zephir_fcall_method: - fcic->initialized = 1; - fcic->calling_scope = scope; - fcic->object = fci->object; - if (fci->object) { - fcic->called_scope = fci->object->ce; - } - else if (scope && !(called_scope && instanceof_function(called_scope, scope))) { - fcic->called_scope = scope; - } - else { - fcic->called_scope = called_scope; - } - - break; - - default: -#ifndef ZEPHIR_RELEASE - fprintf(stderr, "%s: unknown call type (%d)\n", __func__, (int) type); - abort(); -#endif - fcic->initialized = 0; /* not strictly necessary but just to be safe */ - break; - } - -} - static 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 *params[], zephir_fcall_info *info) + zval *params[]) { zval local_retval_ptr; int status; @@ -9586,12 +8133,10 @@ static int zephir_call_user_function(zval *object_pp, zend_class_entry *obj_ce, ulong fcall_key_hash; size_t fcall_key_len; zephir_fcall_cache_entry *temp_cache_entry = NULL; - zend_class_entry *old_scope; - int reload_cache = 1; + int reload_cache = 1, i; -#if PHP_VERSION_ID >= 70100 - //old_scope = EG(fake_scope); -#else +#if PHP_VERSION_ID < 70100 + zend_class_entry *old_scope; old_scope = EG(scope); #endif @@ -9610,120 +8155,151 @@ static int zephir_call_user_function(zval *object_pp, zend_class_entry *obj_ce, return FAILURE; } - if (type != zephir_fcall_function && !object_pp) { - object_pp = EG(current_execute_data) && Z_OBJ(EG(current_execute_data)->This) ? &EG(current_execute_data)->This : NULL; - if (!obj_ce && object_pp) { - obj_ce = Z_OBJCE_P(object_pp); - } - } - if (obj_ce) { -#if PHP_VERSION_ID >= 70100 - //EG(fake_scope) = obj_ce; -#else +#if PHP_VERSION_ID < 70100 EG(scope) = obj_ce; #endif } - if (!cache_entry || !*cache_entry) { - if (zephir_globals_ptr->cache_enabled) { - - if (cache_slot > 0) { - if (zephir_globals_ptr->scache[cache_slot]) { - reload_cache = 0; - temp_cache_entry = zephir_globals_ptr->scache[cache_slot]; - if (cache_entry) { - *cache_entry = temp_cache_entry; - } + if ((!cache_entry || !*cache_entry) && zephir_globals_ptr->cache_enabled) { + if (cache_slot > 0) { + if (zephir_globals_ptr->scache[cache_slot]) { + reload_cache = 0; + temp_cache_entry = zephir_globals_ptr->scache[cache_slot]; + if (cache_entry) { + *cache_entry = temp_cache_entry; } } + } - if (reload_cache) { - if (info) { - fcall_key_hash = zephir_make_fcall_info_key(&fcall_key, &fcall_key_len, (object_pp && type != zephir_fcall_ce ? Z_OBJCE_P(object_pp) : obj_ce), type, info); - } else { - fcall_key_hash = zephir_make_fcall_key(&fcall_key, &fcall_key_len, (object_pp && type != zephir_fcall_ce ? Z_OBJCE_P(object_pp) : obj_ce), type, function_name); - } - } + if (reload_cache) { + fcall_key_hash = zephir_make_fcall_key(&fcall_key, &fcall_key_len, (object_pp && type != zephir_fcall_ce ? Z_OBJCE_P(object_pp) : obj_ce), type, function_name); } } fci.size = sizeof(fci); #if PHP_VERSION_ID < 70100 fci.function_table = obj_ce ? &obj_ce->function_table : EG(function_table); + fci.symbol_table = NULL; #endif fci.object = object_pp ? Z_OBJ_P(object_pp) : NULL; - if (function_name) ZVAL_COPY_VALUE(&fci.function_name, function_name); + ZVAL_COPY_VALUE(&fci.function_name, function_name); fci.retval = retval_ptr ? retval_ptr : &local_retval_ptr; fci.param_count = param_count; fci.params = NULL; - //fci.params: Passed as separate parameter to prevent the need to convert zval ** to zval * + /* fci.params: Passed as separate parameter to prevent the need to convert zval ** to zval * */ fci.no_separation = 1; -#if PHP_VERSION_ID < 70100 - fci.symbol_table = NULL; -#endif - fcic.initialized = 0; - fcic.function_handler = NULL; - fcic.calling_scope = NULL; - fcic.called_scope = NULL; - if (!cache_entry || !*cache_entry) { - if (fcall_key && (temp_cache_entry = zend_hash_str_find_ptr(zephir_globals_ptr->fcache, fcall_key, fcall_key_len)) != NULL) { - zephir_fcall_populate_fci_cache(&fcic, &fci, type); + if (cache_entry && *cache_entry) { + /* We have a cache record, initialize scope */ + fcic.initialized = 1; + fcic.calling_scope = obj_ce; -#ifndef ZEPHIR_RELEASE - fcic.function_handler = temp_cache_entry->f; - ++(temp_cache_entry->times); + if (object_pp) { + fcic.called_scope = Z_OBJCE_P(object_pp); + } + else { + zend_class_entry *called_scope; +#if PHP_VERSION_ID >= 70100 + called_scope = zend_get_called_scope(EG(current_execute_data)); #else - fcic.function_handler = temp_cache_entry; + called_scope = EG(current_execute_data)->called_scope; #endif - /*memcpy(&clone, &fcic, sizeof(clone));*/ + + if (obj_ce && (!called_scope || instanceof_function(called_scope, obj_ce))) { + fcic.called_scope = obj_ce; + } + else { + fcic.called_scope = called_scope; + } } - } else { - zephir_fcall_populate_fci_cache(&fcic, &fci, type); + + fcic.object = object_pp ? Z_OBJ_P(object_pp) : NULL; + #ifndef ZEPHIR_RELEASE fcic.function_handler = (*cache_entry)->f; ++(*cache_entry)->times; #else fcic.function_handler = *cache_entry; -#endif -#if PHP_VERSION_ID >= 70100 - fcic.called_scope = obj_ce ? obj_ce : (EG(current_execute_data) ? Z_OBJCE(EG(current_execute_data)->This) : NULL); #endif } + else if ((cache_entry && !*cache_entry) || zephir_globals_ptr->cache_enabled) { + /* The caller is interested in caching OR we have the call cache enabled */ + zend_string *callable_name = NULL; + char *error = NULL; - /* fcic.initialized = 0; */ - //status = ZEPHIR_ZEND_CALL_FUNCTION_WRAPPER(&fci, &fcic, info); - status = zephir_call_function_opt(&fci, &fcic, info, params); + zend_is_callable_ex(&fci.function_name, fci.object, IS_CALLABLE_CHECK_SILENT, &callable_name, &fcic, &error); + if (error) { efree(error); } + if (callable_name) { zend_string_release(callable_name); } + } + else { + fcic.initialized = 0; + } -#if PHP_VERSION_ID >= 70100 - //EG(fake_scope) = old_scope; +#ifdef _MSC_VER + zval *p = emalloc(sizeof(zval) * (fci.param_count + 1)); #else - EG(scope) = old_scope; + zval p[fci.param_count]; #endif + for (i=0; iname)); + } + fprintf(stderr, "> %s called: %p, calling: %p, obj: %p, h: %p, type=%d\n", Z_STRVAL(tmp), fcic.called_scope, fcic.calling_scope, fcic.object, fcic.function_handler, (int)type); +#endif + status = zend_call_function(&fci, &fcic); +#if 0 + fprintf(stderr, "< called: %p, calling: %p, obj: %p, h: %p\n", fcic.called_scope, fcic.calling_scope, fcic.object, fcic.function_handler); +#endif + +#ifdef _MSC_VER + efree(p); +#endif + +#if PHP_VERSION_ID < 70100 + EG(scope) = old_scope; +#endif + + /* Skip caching IF: + * call failed OR there was an exception (to be safe) OR cache key is not defined OR + * fcall cache was deinitialized OR we have a slot cache + */ + if (EXPECTED(status != FAILURE) && !EG(exception) && fcall_key && fcic.initialized && !temp_cache_entry) { + int add_failed = 0; #ifndef ZEPHIR_RELEASE - zephir_fcall_cache_entry *cache_entry_temp = malloc(sizeof(zephir_fcall_cache_entry)); - cache_entry_temp->f = fcic.function_handler; - cache_entry_temp->times = 0; + zephir_fcall_cache_entry *cache_entry_temp = malloc(sizeof(zephir_fcall_cache_entry)); + cache_entry_temp->f = fcic.function_handler; + cache_entry_temp->times = 0; #else - zephir_fcall_cache_entry *cache_entry_temp = fcic.function_handler; + zephir_fcall_cache_entry *cache_entry_temp = fcic.function_handler; #endif + + if (zephir_globals_ptr->cache_enabled) { + /** TODO: maybe construct zend_string (we do have a valid fcall_key) to avoid hash recalculation */ if (NULL == zend_hash_str_add_ptr(zephir_globals_ptr->fcache, fcall_key, fcall_key_len, cache_entry_temp)) { + add_failed = 1; + } + } + + if (cache_entry) { + if (cache_slot > 0) { + *cache_entry = cache_entry_temp; + zephir_globals_ptr->scache[cache_slot] = *cache_entry; + } + } + else if (add_failed) { #ifndef ZEPHIR_RELEASE - free(cache_entry_temp); - free(temp_cache_entry); + free(cache_entry_temp); #endif - } else { - if (cache_entry) { - *cache_entry = cache_entry_temp; - if (cache_slot > 0) { - zephir_globals_ptr->scache[cache_slot] = *cache_entry; - } - } - } } } @@ -9745,8 +8321,6 @@ static int zephir_call_func_aparams(zval *return_value_ptr, const char *func_nam { int status; zval rv, *rvp = return_value_ptr ? return_value_ptr : &rv; - zval *func = NULL; - zephir_fcall_info info; ZVAL_UNDEF(&rv); @@ -9758,12 +8332,10 @@ static int zephir_call_func_aparams(zval *return_value_ptr, const char *func_nam } #endif - info.type = ZEPHIR_FCALL_TYPE_FUNC; - info.class_name = NULL; - info.func_name = func_name; - info.func_length = func_length; - - status = zephir_call_user_function(NULL, NULL, zephir_fcall_function, func, rvp, cache_entry, cache_slot, param_count, params, &info); + zval f; + ZVAL_STRINGL(&f, func_name, func_length); + status = zephir_call_user_function(NULL, NULL, zephir_fcall_function, &f, rvp, cache_entry, cache_slot, param_count, params); + zval_ptr_dtor(&f); if (status == FAILURE && !EG(exception)) { zephir_throw_exception_format(spl_ce_RuntimeException, "Call to undefined function %s()", func_name); @@ -9805,7 +8377,7 @@ static int zephir_call_zval_func_aparams(zval *return_value_ptr, zval *func_name } #endif - status = zephir_call_user_function(NULL, NULL, zephir_fcall_function, func_name, rvp, cache_entry, cache_slot, param_count, params, NULL); + status = zephir_call_user_function(NULL, NULL, zephir_fcall_function, func_name, rvp, cache_entry, cache_slot, param_count, params); if (status == FAILURE && !EG(exception)) { zephir_throw_exception_format(spl_ce_RuntimeException, "Call to undefined function %s()", Z_TYPE_P(func_name) ? Z_STRVAL_P(func_name) : "undefined"); @@ -9835,11 +8407,8 @@ static int zephir_call_class_method_aparams(zval *return_value_ptr, zend_class_e zephir_fcall_cache_entry **cache_entry, int cache_slot, uint param_count, zval **params) { - char *possible_method; zval rv, *rvp = return_value_ptr ? return_value_ptr : &rv; - zval *fn = NULL; int status; - zephir_fcall_info info; ZVAL_UNDEF(&rv); @@ -9853,7 +8422,7 @@ static int zephir_call_class_method_aparams(zval *return_value_ptr, zend_class_e if (object) { if (Z_TYPE_P(object) != IS_OBJECT) { - zephir_throw_exception_format(spl_ce_RuntimeException TSRMLS_CC, "Trying to call method %s on a non-object", method_name); + zephir_throw_exception_format(spl_ce_RuntimeException, "Trying to call method %s on a non-object", method_name); if (return_value_ptr) { zval_ptr_dtor(return_value_ptr); ZVAL_UNDEF(return_value_ptr); @@ -9861,73 +8430,49 @@ static int zephir_call_class_method_aparams(zval *return_value_ptr, zend_class_e return FAILURE; } } -#if PHP_VERSION_ID < 70100 - if (!cache_entry || !*cache_entry) { -#endif + + zval method; + array_init_size(&method, 2); + switch (type) { case zephir_fcall_parent: - info.type = ZEPHIR_FCALL_TYPE_CLASS_PARENT_METHOD; + add_next_index_string(&method, "parent"); break; case zephir_fcall_self: - assert(!ce); - info.type = ZEPHIR_FCALL_TYPE_CLASS_SELF_METHOD; + add_next_index_string(&method, "self"); break; case zephir_fcall_static: - assert(!ce); - info.type = ZEPHIR_FCALL_TYPE_CLASS_STATIC_METHOD; + add_next_index_string(&method, "static"); break; case zephir_fcall_ce: - assert(ce != NULL); - info.type = ZEPHIR_FCALL_TYPE_CE_METHOD; - info.ce = ce; + add_next_index_string(&method, ZSTR_VAL(ce->name)); break; - case zephir_fcall_method: default: - assert(object != NULL); - info.type = ZEPHIR_FCALL_TYPE_ZVAL_METHOD; - info.object_ptr = object; - info.ce = ce; + assert(object); + Z_TRY_ADDREF_P(object); + add_next_index_zval(&method, object); break; - } - info.func_name = method_name; - info.func_length = method_len; -#if PHP_VERSION_ID < 70100 } -#endif - status = zephir_call_user_function(object ? object : NULL, ce, type, fn, rvp, cache_entry, cache_slot, param_count, params, &info); + add_next_index_stringl(&method, method_name, method_len); - if (status == FAILURE && !EG(exception)) { - - if (ce) { - //possible_method = zephir_fcall_possible_method(ce, method_name); - possible_method = NULL; // todo - } else { - possible_method = "undefined"; - } + status = zephir_call_user_function(object, ce, type, &method, rvp, cache_entry, cache_slot, param_count, params); + zval_ptr_dtor(&method); + if (status == FAILURE && !EG(exception)) { switch (type) { - case zephir_fcall_parent: - if (possible_method) { - zephir_throw_exception_format(spl_ce_RuntimeException, "Call to undefined method parent::%s(), did you mean '%s'?", method_name, possible_method); - } else { - zephir_throw_exception_format(spl_ce_RuntimeException, "Call to undefined method parent::%s()", method_name); - } + zephir_throw_exception_format(spl_ce_RuntimeException, "Call to undefined method parent::%s()", method_name); break; case zephir_fcall_self: - if (possible_method) { - zephir_throw_exception_format(spl_ce_RuntimeException, "Call to undefined method self::%s(), did you mean '%s'?", method_name, possible_method); - } else { - zephir_throw_exception_format(spl_ce_RuntimeException, "Call to undefined method self::%s()", method_name); - } + zephir_throw_exception_format(spl_ce_RuntimeException, "Call to undefined method self::%s()", method_name); break; case zephir_fcall_static: @@ -9939,11 +8484,7 @@ static int zephir_call_class_method_aparams(zval *return_value_ptr, zend_class_e break; case zephir_fcall_method: - if (possible_method) { - zephir_throw_exception_format(spl_ce_RuntimeException, "Call to undefined method %s::%s(), did you mean '%s'?", ce->name, method_name, possible_method); - } else { - zephir_throw_exception_format(spl_ce_RuntimeException, "Call to undefined method %s::%s()", ce->name, method_name); - } + zephir_throw_exception_format(spl_ce_RuntimeException, "Call to undefined method %s::%s()", ce->name, method_name); break; default: @@ -10103,7 +8644,7 @@ static int zephir_require_ret(zval *return_value_ptr, const char *require_path) } #if PHP_VERSION_ID >= 70100 - new_op_array->scope = EG(fake_scope); + new_op_array->scope = EG(fake_scope) ? EG(fake_scope) : zend_get_executed_scope(); #else new_op_array->scope = EG(scope); #endif @@ -10154,7 +8695,7 @@ static int zephir_require_ret(zval *return_value_ptr, const char *require_path) static void zephir_basename(zval *return_value, zval *path) { - if (likely(Z_TYPE_P(path) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(path) == IS_STRING)) { zend_string *ret; ret = php_basename(Z_STRVAL_P(path), Z_STRLEN_P(path), NULL, 0); ZVAL_STR(return_value, ret); @@ -10180,23 +8721,23 @@ static int zephir_file_exists(zval *filename) return SUCCESS; } -static int zephir_compare_mtime(zval *filename1, zval *filename2 TSRMLS_DC) +static int zephir_compare_mtime(zval *filename1, zval *filename2) { php_stream_statbuf statbuffer1, statbuffer2; if (Z_TYPE_P(filename1) != IS_STRING || Z_TYPE_P(filename2) != IS_STRING) { - php_error_docref(NULL TSRMLS_CC, E_WARNING, "Invalid arguments supplied for compare_mtime()"); + php_error_docref(NULL, E_WARNING, "Invalid arguments supplied for compare_mtime()"); return 0; } if (php_stream_stat_path_ex(Z_STRVAL_P(filename1), 0, &statbuffer1, NULL)) { - php_error_docref(NULL TSRMLS_CC, E_WARNING, "mstat failed for %s", Z_STRVAL_P(filename1)); + php_error_docref(NULL, E_WARNING, "mstat failed for %s", Z_STRVAL_P(filename1)); return 0; } if (php_stream_stat_path_ex(Z_STRVAL_P(filename2), 0, &statbuffer2, NULL)) { - php_error_docref(NULL TSRMLS_CC, E_WARNING, "mstat failed for %s", Z_STRVAL_P(filename2)); + php_error_docref(NULL, E_WARNING, "mstat failed for %s", Z_STRVAL_P(filename2)); return 0; } @@ -10294,7 +8835,7 @@ static void zephir_file_get_contents(zval *return_value, zval *filename) php_stream_context *context = NULL; if (Z_TYPE_P(filename) != IS_STRING) { - php_error_docref(NULL TSRMLS_CC, E_WARNING, "Invalid arguments supplied for zephir_file_get_contents()"); + php_error_docref(NULL, E_WARNING, "Invalid arguments supplied for zephir_file_get_contents()"); RETVAL_FALSE; return; } @@ -10391,7 +8932,7 @@ static void zephir_file_put_contents(zval *return_value, zval *filename, zval *d static void zephir_filemtime(zval *return_value, zval *path) { - if (likely(Z_TYPE_P(path) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(path) == IS_STRING)) { php_stat(Z_STRVAL_P(path), (php_stat_len)(Z_STRLEN_P(path)), FS_MTIME, return_value); } else { ZVAL_FALSE(return_value); @@ -13218,7 +11759,7 @@ static void zephir_concat_function(zval *result, zval *op1, zval *op2) /* {{{ */ { zval tmp; /* Force separate zval, if op2=result will be reallocated */ - if (unlikely(result == op2)) { + if (UNEXPECTED(result == op2)) { ZVAL_COPY_VALUE(&tmp, op2); op2 = &tmp; } @@ -13408,7 +11949,7 @@ long zephir_mt_rand(long min, long max) return number; } -double zephir_ldexp(zval *value, zval *expval TSRMLS_DC) +double zephir_ldexp(zval *value, zval *expval) { int exp = (int) zephir_get_numberval(expval); @@ -13461,6 +12002,16 @@ static void zephir_var_export_ex(zval *return_value, zval *var) ZVAL_STR(return_value, buf.s); } +static void zephir_get_defined_vars(zval *return_value) +{ + zend_array *symtable = zend_rebuild_symbol_table(); + if (EXPECTED(symtable != NULL)) { + RETURN_ARR(zend_array_dup(symtable)); + } + + RETURN_NULL(); +} + @@ -13861,76 +12412,6 @@ static int phalcon_cssmin(zval *return_value, zval *style TSRMLS_DC); #endif /* PHALCON_ASSETS_FILTERS_CSSMINIFIER_H */ -/* jsmin.c - 2013-03-29 - -Copyright (c) 2002 Douglas Crockford (www.crockford.com) - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to deal in -the Software without restriction, including without limitation the rights to -use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies -of the Software, and to permit persons to whom the Software is furnished to do -so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -The Software shall be used for Good, not Evil. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. -*/ - -#ifndef PHALCON_ASSETS_FILTERS_CSSMINIFIER_H -#define PHALCON_ASSETS_FILTERS_CSSMINIFIER_H - - -static int phalcon_cssmin(zval *return_value, zval *style TSRMLS_DC); - -#endif /* PHALCON_ASSETS_FILTERS_CSSMINIFIER_H */ - - -/* jsmin.c - 2013-03-29 - -Copyright (c) 2002 Douglas Crockford (www.crockford.com) - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to deal in -the Software without restriction, including without limitation the rights to -use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies -of the Software, and to permit persons to whom the Software is furnished to do -so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -The Software shall be used for Good, not Evil. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. -*/ - -#ifndef PHALCON_ASSETS_FILTERS_JSMINIFIER_H -#define PHALCON_ASSETS_FILTERS_JSMINIFIER_H - - -static int phalcon_jsmin(zval *return_value, zval *script TSRMLS_DC); - -#endif /* PHALCON_ASSETS_FILTERS_JSMINIFIER_H */ - - #ifdef HAVE_CONFIG_H #endif @@ -14176,11 +12657,11 @@ static PHP_METHOD(Phalcon_Application, getModule) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(&name, name_param); } else { ZEPHIR_INIT_VAR(&name); @@ -14195,7 +12676,7 @@ static PHP_METHOD(Phalcon_Application, getModule) { object_init_ex(&_1$$3, phalcon_application_exception_ce); ZEPHIR_INIT_VAR(&_2$$3); ZEPHIR_CONCAT_SVS(&_2$$3, "Module '", &name, "' isn't registered in the application container"); - ZEPHIR_CALL_METHOD(NULL, &_1$$3, "__construct", NULL, 9, &_2$$3); + ZEPHIR_CALL_METHOD(NULL, &_1$$3, "__construct", NULL, 4, &_2$$3); zephir_check_call_status(); zephir_throw_exception_debug(&_1$$3, "phalcon/application.zep", 123 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -14216,11 +12697,11 @@ static PHP_METHOD(Phalcon_Application, setDefaultModule) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &defaultModule_param); - if (unlikely(Z_TYPE_P(defaultModule_param) != IS_STRING && Z_TYPE_P(defaultModule_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(defaultModule_param) != IS_STRING && Z_TYPE_P(defaultModule_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'defaultModule' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(defaultModule_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(defaultModule_param) == IS_STRING)) { zephir_get_strval(&defaultModule, defaultModule_param); } else { ZEPHIR_INIT_VAR(&defaultModule); @@ -14349,7 +12830,7 @@ static PHP_METHOD(Phalcon_Config, offsetExists) { ZEPHIR_SEPARATE_PARAM(index); - ZEPHIR_CALL_FUNCTION(&_0, "strval", NULL, 18, index); + ZEPHIR_CALL_FUNCTION(&_0, "strval", NULL, 13, index); zephir_check_call_status(); ZEPHIR_CPY_WRT(index, &_0); RETURN_MM_BOOL(zephir_isset_property_zval(this_ptr, index TSRMLS_CC)); @@ -14378,7 +12859,7 @@ static PHP_METHOD(Phalcon_Config, get) { } - ZEPHIR_CALL_FUNCTION(&_0, "strval", NULL, 18, index); + ZEPHIR_CALL_FUNCTION(&_0, "strval", NULL, 13, index); zephir_check_call_status(); ZEPHIR_CPY_WRT(index, &_0); if (zephir_isset_property_zval(this_ptr, index TSRMLS_CC)) { @@ -14407,7 +12888,7 @@ static PHP_METHOD(Phalcon_Config, offsetGet) { ZEPHIR_SEPARATE_PARAM(index); - ZEPHIR_CALL_FUNCTION(&_0, "strval", NULL, 18, index); + ZEPHIR_CALL_FUNCTION(&_0, "strval", NULL, 13, index); zephir_check_call_status(); ZEPHIR_CPY_WRT(index, &_0); ZEPHIR_OBS_VAR(&_1); @@ -14433,13 +12914,13 @@ static PHP_METHOD(Phalcon_Config, offsetSet) { ZEPHIR_SEPARATE_PARAM(index); - ZEPHIR_CALL_FUNCTION(&_0, "strval", NULL, 18, index); + ZEPHIR_CALL_FUNCTION(&_0, "strval", NULL, 13, index); zephir_check_call_status(); ZEPHIR_CPY_WRT(index, &_0); if (Z_TYPE_P(value) == IS_ARRAY) { ZEPHIR_INIT_VAR(&_1$$3); object_init_ex(&_1$$3, phalcon_config_ce); - ZEPHIR_CALL_METHOD(NULL, &_1$$3, "__construct", NULL, 19, value); + ZEPHIR_CALL_METHOD(NULL, &_1$$3, "__construct", NULL, 14, value); zephir_check_call_status(); zephir_update_property_zval_zval(this_ptr, index, &_1$$3 TSRMLS_CC); } else { @@ -14465,7 +12946,7 @@ static PHP_METHOD(Phalcon_Config, offsetUnset) { ZEPHIR_SEPARATE_PARAM(index); - ZEPHIR_CALL_FUNCTION(&_0, "strval", NULL, 18, index); + ZEPHIR_CALL_FUNCTION(&_0, "strval", NULL, 13, index); zephir_check_call_status(); ZEPHIR_CPY_WRT(index, &_0); zephir_update_property_zval_zval(this_ptr, index, &__$null TSRMLS_CC); @@ -14486,7 +12967,7 @@ static PHP_METHOD(Phalcon_Config, merge) { - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_merge", NULL, 20, config); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_merge", NULL, 15, config); zephir_check_call_status(); RETURN_MM(); @@ -14510,7 +12991,7 @@ static PHP_METHOD(Phalcon_Config, toArray) { ZEPHIR_INIT_VAR(&arrayConfig); array_init(&arrayConfig); - ZEPHIR_CALL_FUNCTION(&_0, "get_object_vars", NULL, 21, this_ptr); + ZEPHIR_CALL_FUNCTION(&_0, "get_object_vars", NULL, 16, this_ptr); zephir_check_call_status(); zephir_is_iterable(&_0, 0, "phalcon/config.zep", 196); ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&_0), _2, _3, _1) @@ -14551,7 +13032,7 @@ static PHP_METHOD(Phalcon_Config, count) { ZEPHIR_MM_GROW(); - ZEPHIR_CALL_FUNCTION(&_0, "get_object_vars", NULL, 21, this_ptr); + ZEPHIR_CALL_FUNCTION(&_0, "get_object_vars", NULL, 16, this_ptr); zephir_check_call_status(); RETURN_MM_LONG(zephir_fast_count_int(&_0 TSRMLS_CC)); @@ -14573,7 +13054,7 @@ static PHP_METHOD(Phalcon_Config, __set_state) { object_init_ex(return_value, phalcon_config_ce); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 19, &data); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 14, &data); zephir_check_call_status(); RETURN_MM(); @@ -14614,7 +13095,7 @@ static PHP_METHOD(Phalcon_Config, _merge) { } ZEPHIR_CALL_METHOD(&number, instance, "count", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_0, "get_object_vars", NULL, 21, config); + ZEPHIR_CALL_FUNCTION(&_0, "get_object_vars", NULL, 16, config); zephir_check_call_status(); zephir_is_iterable(&_0, 0, "phalcon/config.zep", 261); ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&_0), _2, _3, _1) @@ -14639,14 +13120,14 @@ static PHP_METHOD(Phalcon_Config, _merge) { _5$$6 = zephir_instance_of_ev(&value, phalcon_config_ce TSRMLS_CC); } if (_5$$6) { - ZEPHIR_CALL_METHOD(NULL, this_ptr, "_merge", &_6, 20, &value, &localObject); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "_merge", &_6, 15, &value, &localObject); zephir_check_call_status(); continue; } } } if (zephir_is_numeric(&key)) { - ZEPHIR_CALL_FUNCTION(&key, "strval", &_7, 18, &number); + ZEPHIR_CALL_FUNCTION(&key, "strval", &_7, 13, &number); zephir_check_call_status(); ZEPHIR_SEPARATE(&number); zephir_increment(&number); @@ -14709,7 +13190,7 @@ static PHP_METHOD(Phalcon_Crypt, setPadding) { zephir_fetch_params(0, 1, 0, &scheme_param); - if (unlikely(Z_TYPE_P(scheme_param) != IS_LONG)) { + if (UNEXPECTED(Z_TYPE_P(scheme_param) != IS_LONG)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'scheme' must be a int") TSRMLS_CC); RETURN_NULL(); } @@ -14734,11 +13215,11 @@ static PHP_METHOD(Phalcon_Crypt, setCipher) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &cipher_param); - if (unlikely(Z_TYPE_P(cipher_param) != IS_STRING && Z_TYPE_P(cipher_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(cipher_param) != IS_STRING && Z_TYPE_P(cipher_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'cipher' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(cipher_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(cipher_param) == IS_STRING)) { zephir_get_strval(&cipher, cipher_param); } else { ZEPHIR_INIT_VAR(&cipher); @@ -14771,11 +13252,11 @@ static PHP_METHOD(Phalcon_Crypt, setKey) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &key_param); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(&key, key_param); } else { ZEPHIR_INIT_VAR(&key); @@ -14835,22 +13316,22 @@ static PHP_METHOD(Phalcon_Crypt, _cryptPadText) { zephir_fetch_params(1, 4, 0, &text_param, &mode_param, &blockSize_param, &paddingType_param); zephir_get_strval(&text, text_param); - if (unlikely(Z_TYPE_P(mode_param) != IS_STRING && Z_TYPE_P(mode_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(mode_param) != IS_STRING && Z_TYPE_P(mode_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'mode' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(mode_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(mode_param) == IS_STRING)) { zephir_get_strval(&mode, mode_param); } else { ZEPHIR_INIT_VAR(&mode); ZVAL_EMPTY_STRING(&mode); } - if (unlikely(Z_TYPE_P(blockSize_param) != IS_LONG)) { + if (UNEXPECTED(Z_TYPE_P(blockSize_param) != IS_LONG)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'blockSize' must be a int") TSRMLS_CC); RETURN_MM_NULL(); } blockSize = Z_LVAL_P(blockSize_param); - if (unlikely(Z_TYPE_P(paddingType_param) != IS_LONG)) { + if (UNEXPECTED(Z_TYPE_P(paddingType_param) != IS_LONG)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'paddingType' must be a int") TSRMLS_CC); RETURN_MM_NULL(); } @@ -14873,13 +13354,13 @@ static PHP_METHOD(Phalcon_Crypt, _cryptPadText) { do { if (paddingType == 1) { ZVAL_LONG(&_1$$5, 0); - ZEPHIR_CALL_FUNCTION(&_2$$5, "chr", &_3, 138, &_1$$5); + ZEPHIR_CALL_FUNCTION(&_2$$5, "chr", &_3, 126, &_1$$5); zephir_check_call_status(); ZVAL_LONG(&_1$$5, (paddingSize - 1)); - ZEPHIR_CALL_FUNCTION(&_4$$5, "str_repeat", &_5, 139, &_2$$5, &_1$$5); + ZEPHIR_CALL_FUNCTION(&_4$$5, "str_repeat", &_5, 127, &_2$$5, &_1$$5); zephir_check_call_status(); ZVAL_LONG(&_1$$5, paddingSize); - ZEPHIR_CALL_FUNCTION(&_6$$5, "chr", &_3, 138, &_1$$5); + ZEPHIR_CALL_FUNCTION(&_6$$5, "chr", &_3, 126, &_1$$5); zephir_check_call_status(); ZEPHIR_INIT_NVAR(&padding); ZEPHIR_CONCAT_VV(&padding, &_4$$5, &_6$$5); @@ -14887,10 +13368,10 @@ static PHP_METHOD(Phalcon_Crypt, _cryptPadText) { } if (paddingType == 2) { ZVAL_LONG(&_7$$6, paddingSize); - ZEPHIR_CALL_FUNCTION(&_8$$6, "chr", &_3, 138, &_7$$6); + ZEPHIR_CALL_FUNCTION(&_8$$6, "chr", &_3, 126, &_7$$6); zephir_check_call_status(); ZVAL_LONG(&_7$$6, paddingSize); - ZEPHIR_CALL_FUNCTION(&padding, "str_repeat", &_5, 139, &_8$$6, &_7$$6); + ZEPHIR_CALL_FUNCTION(&padding, "str_repeat", &_5, 127, &_8$$6, &_7$$6); zephir_check_call_status(); break; } @@ -14911,28 +13392,28 @@ static PHP_METHOD(Phalcon_Crypt, _cryptPadText) { _9$$7 = 1; } i = _10$$7; - ZEPHIR_CALL_FUNCTION(&_12$$8, "rand", &_13, 115); + ZEPHIR_CALL_FUNCTION(&_12$$8, "rand", &_13, 104); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_14$$8, "chr", &_3, 138, &_12$$8); + ZEPHIR_CALL_FUNCTION(&_14$$8, "chr", &_3, 126, &_12$$8); zephir_check_call_status(); zephir_concat_self(&padding, &_14$$8 TSRMLS_CC); } } ZVAL_LONG(&_15$$7, paddingSize); - ZEPHIR_CALL_FUNCTION(&_16$$7, "chr", &_3, 138, &_15$$7); + ZEPHIR_CALL_FUNCTION(&_16$$7, "chr", &_3, 126, &_15$$7); zephir_check_call_status(); zephir_concat_self(&padding, &_16$$7 TSRMLS_CC); break; } if (paddingType == 4) { ZVAL_LONG(&_17$$9, 0x80); - ZEPHIR_CALL_FUNCTION(&_18$$9, "chr", &_3, 138, &_17$$9); + ZEPHIR_CALL_FUNCTION(&_18$$9, "chr", &_3, 126, &_17$$9); zephir_check_call_status(); ZVAL_LONG(&_17$$9, 0); - ZEPHIR_CALL_FUNCTION(&_19$$9, "chr", &_3, 138, &_17$$9); + ZEPHIR_CALL_FUNCTION(&_19$$9, "chr", &_3, 126, &_17$$9); zephir_check_call_status(); ZVAL_LONG(&_17$$9, (paddingSize - 1)); - ZEPHIR_CALL_FUNCTION(&_20$$9, "str_repeat", &_5, 139, &_19$$9, &_17$$9); + ZEPHIR_CALL_FUNCTION(&_20$$9, "str_repeat", &_5, 127, &_19$$9, &_17$$9); zephir_check_call_status(); ZEPHIR_INIT_NVAR(&padding); ZEPHIR_CONCAT_VV(&padding, &_18$$9, &_20$$9); @@ -14940,10 +13421,10 @@ static PHP_METHOD(Phalcon_Crypt, _cryptPadText) { } if (paddingType == 5) { ZVAL_LONG(&_21$$10, 0); - ZEPHIR_CALL_FUNCTION(&_22$$10, "chr", &_3, 138, &_21$$10); + ZEPHIR_CALL_FUNCTION(&_22$$10, "chr", &_3, 126, &_21$$10); zephir_check_call_status(); ZVAL_LONG(&_21$$10, paddingSize); - ZEPHIR_CALL_FUNCTION(&padding, "str_repeat", &_5, 139, &_22$$10, &_21$$10); + ZEPHIR_CALL_FUNCTION(&padding, "str_repeat", &_5, 127, &_22$$10, &_21$$10); zephir_check_call_status(); break; } @@ -14951,7 +13432,7 @@ static PHP_METHOD(Phalcon_Crypt, _cryptPadText) { ZEPHIR_INIT_VAR(&_23$$11); ZVAL_STRING(&_23$$11, " "); ZVAL_LONG(&_24$$11, paddingSize); - ZEPHIR_CALL_FUNCTION(&padding, "str_repeat", &_5, 139, &_23$$11, &_24$$11); + ZEPHIR_CALL_FUNCTION(&padding, "str_repeat", &_5, 127, &_23$$11, &_24$$11); zephir_check_call_status(); break; } @@ -15014,22 +13495,22 @@ static PHP_METHOD(Phalcon_Crypt, _cryptUnpadText) { zephir_fetch_params(1, 4, 0, &text_param, &mode_param, &blockSize_param, &paddingType_param); zephir_get_strval(&text, text_param); - if (unlikely(Z_TYPE_P(mode_param) != IS_STRING && Z_TYPE_P(mode_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(mode_param) != IS_STRING && Z_TYPE_P(mode_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'mode' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(mode_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(mode_param) == IS_STRING)) { zephir_get_strval(&mode, mode_param); } else { ZEPHIR_INIT_VAR(&mode); ZVAL_EMPTY_STRING(&mode); } - if (unlikely(Z_TYPE_P(blockSize_param) != IS_LONG)) { + if (UNEXPECTED(Z_TYPE_P(blockSize_param) != IS_LONG)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'blockSize' must be a int") TSRMLS_CC); RETURN_MM_NULL(); } blockSize = Z_LVAL_P(blockSize_param); - if (unlikely(Z_TYPE_P(paddingType_param) != IS_LONG)) { + if (UNEXPECTED(Z_TYPE_P(paddingType_param) != IS_LONG)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'paddingType' must be a int") TSRMLS_CC); RETURN_MM_NULL(); } @@ -15057,16 +13538,16 @@ static PHP_METHOD(Phalcon_Crypt, _cryptUnpadText) { ZVAL_LONG(&_4$$4, 1); ZEPHIR_INIT_VAR(&last); zephir_substr(&last, &text, zephir_get_intval(&_3$$4), 1 , 0); - ZEPHIR_CALL_FUNCTION(&_5$$4, "ord", &_6, 140, &last); + ZEPHIR_CALL_FUNCTION(&_5$$4, "ord", &_6, 128, &last); zephir_check_call_status(); ord = zephir_get_intval(&_5$$4); if (ord <= blockSize) { paddingSize = ord; ZVAL_LONG(&_7$$5, 0); - ZEPHIR_CALL_FUNCTION(&_8$$5, "chr", &_9, 138, &_7$$5); + ZEPHIR_CALL_FUNCTION(&_8$$5, "chr", &_9, 126, &_7$$5); zephir_check_call_status(); ZVAL_LONG(&_7$$5, (paddingSize - 1)); - ZEPHIR_CALL_FUNCTION(&_10$$5, "str_repeat", &_11, 139, &_8$$5, &_7$$5); + ZEPHIR_CALL_FUNCTION(&_10$$5, "str_repeat", &_11, 127, &_8$$5, &_7$$5); zephir_check_call_status(); ZEPHIR_INIT_VAR(&padding); ZEPHIR_CONCAT_VV(&padding, &_10$$5, &last); @@ -15084,16 +13565,16 @@ static PHP_METHOD(Phalcon_Crypt, _cryptUnpadText) { ZVAL_LONG(&_14$$7, 1); ZEPHIR_INIT_NVAR(&last); zephir_substr(&last, &text, zephir_get_intval(&_13$$7), 1 , 0); - ZEPHIR_CALL_FUNCTION(&_15$$7, "ord", &_6, 140, &last); + ZEPHIR_CALL_FUNCTION(&_15$$7, "ord", &_6, 128, &last); zephir_check_call_status(); ord = zephir_get_intval(&_15$$7); if (ord <= blockSize) { paddingSize = ord; ZVAL_LONG(&_16$$8, paddingSize); - ZEPHIR_CALL_FUNCTION(&_17$$8, "chr", &_9, 138, &_16$$8); + ZEPHIR_CALL_FUNCTION(&_17$$8, "chr", &_9, 126, &_16$$8); zephir_check_call_status(); ZVAL_LONG(&_16$$8, paddingSize); - ZEPHIR_CALL_FUNCTION(&padding, "str_repeat", &_11, 139, &_17$$8, &_16$$8); + ZEPHIR_CALL_FUNCTION(&padding, "str_repeat", &_11, 127, &_17$$8, &_16$$8); zephir_check_call_status(); ZVAL_LONG(&_16$$8, (length - paddingSize)); ZEPHIR_INIT_VAR(&_18$$8); @@ -15109,7 +13590,7 @@ static PHP_METHOD(Phalcon_Crypt, _cryptUnpadText) { ZVAL_LONG(&_20$$10, 1); ZEPHIR_INIT_NVAR(&last); zephir_substr(&last, &text, zephir_get_intval(&_19$$10), 1 , 0); - ZEPHIR_CALL_FUNCTION(&_21$$10, "ord", &_6, 140, &last); + ZEPHIR_CALL_FUNCTION(&_21$$10, "ord", &_6, 128, &last); zephir_check_call_status(); paddingSize = zephir_get_intval(&_21$$10); break; @@ -15239,11 +13720,11 @@ static PHP_METHOD(Phalcon_Crypt, encrypt) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &text_param, &key_param); - if (unlikely(Z_TYPE_P(text_param) != IS_STRING && Z_TYPE_P(text_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(text_param) != IS_STRING && Z_TYPE_P(text_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'text' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(text_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(text_param) == IS_STRING)) { zephir_get_strval(&text, text_param); } else { ZEPHIR_INIT_VAR(&text); @@ -15253,11 +13734,11 @@ static PHP_METHOD(Phalcon_Crypt, encrypt) { ZEPHIR_INIT_VAR(&key); ZVAL_STRING(&key, ""); } else { - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(&key, key_param); } else { ZEPHIR_INIT_VAR(&key); @@ -15284,20 +13765,20 @@ static PHP_METHOD(Phalcon_Crypt, encrypt) { zephir_read_property(&cipher, this_ptr, SL("_cipher"), PH_NOISY_CC); ZEPHIR_INIT_VAR(&_0); ZVAL_STRING(&_0, "-"); - ZEPHIR_CALL_FUNCTION(&_1, "strrpos", NULL, 141, &cipher, &_0); + ZEPHIR_CALL_FUNCTION(&_1, "strrpos", NULL, 129, &cipher, &_0); zephir_check_call_status(); ZVAL_LONG(&_2, (zephir_get_numberval(&_1) - zephir_fast_strlen_ev(&cipher))); ZEPHIR_INIT_NVAR(&_0); zephir_substr(&_0, &cipher, zephir_get_intval(&_2), 0, ZEPHIR_SUBSTR_NO_LENGTH); ZEPHIR_INIT_VAR(&mode); zephir_fast_strtolower(&mode, &_0); - ZEPHIR_CALL_FUNCTION(&_3, "openssl_get_cipher_methods", NULL, 142, &__$true); + ZEPHIR_CALL_FUNCTION(&_3, "openssl_get_cipher_methods", NULL, 130, &__$true); zephir_check_call_status(); if (!(zephir_fast_in_array(&cipher, &_3 TSRMLS_CC))) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_crypt_exception_ce, "Cipher algorithm is unknown", "phalcon/crypt.zep", 297); return; } - ZEPHIR_CALL_FUNCTION(&ivSize, "openssl_cipher_iv_length", &_4, 143, &cipher); + ZEPHIR_CALL_FUNCTION(&ivSize, "openssl_cipher_iv_length", &_4, 131, &cipher); zephir_check_call_status(); if (ZEPHIR_GT_LONG(&ivSize, 0)) { ZEPHIR_CPY_WRT(&blockSize, &ivSize); @@ -15306,12 +13787,12 @@ static PHP_METHOD(Phalcon_Crypt, encrypt) { ZEPHIR_CONCAT_SV(&_5$$9, "-", &mode); ZEPHIR_INIT_VAR(&_6$$9); ZVAL_STRING(&_6$$9, ""); - ZEPHIR_CALL_FUNCTION(&_7$$9, "str_ireplace", NULL, 144, &_5$$9, &_6$$9, &cipher); + ZEPHIR_CALL_FUNCTION(&_7$$9, "str_ireplace", NULL, 132, &_5$$9, &_6$$9, &cipher); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&blockSize, "openssl_cipher_iv_length", &_4, 143, &_7$$9); + ZEPHIR_CALL_FUNCTION(&blockSize, "openssl_cipher_iv_length", &_4, 131, &_7$$9); zephir_check_call_status(); } - ZEPHIR_CALL_FUNCTION(&iv, "openssl_random_pseudo_bytes", NULL, 145, &ivSize); + ZEPHIR_CALL_FUNCTION(&iv, "openssl_random_pseudo_bytes", NULL, 133, &ivSize); zephir_check_call_status(); ZEPHIR_OBS_VAR(&paddingType); zephir_read_property(&paddingType, this_ptr, SL("_padding"), PH_NOISY_CC); @@ -15330,7 +13811,7 @@ static PHP_METHOD(Phalcon_Crypt, encrypt) { ZEPHIR_CPY_WRT(&padded, &text); } ZVAL_LONG(&_10, 1); - ZEPHIR_CALL_FUNCTION(&_11, "openssl_encrypt", NULL, 146, &padded, &cipher, &encryptKey, &_10, &iv); + ZEPHIR_CALL_FUNCTION(&_11, "openssl_encrypt", NULL, 134, &padded, &cipher, &encryptKey, &_10, &iv); zephir_check_call_status(); ZEPHIR_CONCAT_VV(return_value, &iv, &_11); RETURN_MM(); @@ -15372,11 +13853,11 @@ static PHP_METHOD(Phalcon_Crypt, decrypt) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &text_param, &key); - if (unlikely(Z_TYPE_P(text_param) != IS_STRING && Z_TYPE_P(text_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(text_param) != IS_STRING && Z_TYPE_P(text_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'text' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(text_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(text_param) == IS_STRING)) { zephir_get_strval(&text, text_param); } else { ZEPHIR_INIT_VAR(&text); @@ -15406,20 +13887,20 @@ static PHP_METHOD(Phalcon_Crypt, decrypt) { zephir_read_property(&cipher, this_ptr, SL("_cipher"), PH_NOISY_CC); ZEPHIR_INIT_VAR(&_0); ZVAL_STRING(&_0, "-"); - ZEPHIR_CALL_FUNCTION(&_1, "strrpos", NULL, 141, &cipher, &_0); + ZEPHIR_CALL_FUNCTION(&_1, "strrpos", NULL, 129, &cipher, &_0); zephir_check_call_status(); ZVAL_LONG(&_2, (zephir_get_numberval(&_1) - zephir_fast_strlen_ev(&cipher))); ZEPHIR_INIT_NVAR(&_0); zephir_substr(&_0, &cipher, zephir_get_intval(&_2), 0, ZEPHIR_SUBSTR_NO_LENGTH); ZEPHIR_INIT_VAR(&mode); zephir_fast_strtolower(&mode, &_0); - ZEPHIR_CALL_FUNCTION(&_3, "openssl_get_cipher_methods", NULL, 142, &__$true); + ZEPHIR_CALL_FUNCTION(&_3, "openssl_get_cipher_methods", NULL, 130, &__$true); zephir_check_call_status(); if (!(zephir_fast_in_array(&cipher, &_3 TSRMLS_CC))) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_crypt_exception_ce, "Cipher algorithm is unknown", "phalcon/crypt.zep", 348); return; } - ZEPHIR_CALL_FUNCTION(&ivSize, "openssl_cipher_iv_length", &_4, 143, &cipher); + ZEPHIR_CALL_FUNCTION(&ivSize, "openssl_cipher_iv_length", &_4, 131, &cipher); zephir_check_call_status(); if (ZEPHIR_GT_LONG(&ivSize, 0)) { ZEPHIR_CPY_WRT(&blockSize, &ivSize); @@ -15428,9 +13909,9 @@ static PHP_METHOD(Phalcon_Crypt, decrypt) { ZEPHIR_CONCAT_SV(&_5$$9, "-", &mode); ZEPHIR_INIT_VAR(&_6$$9); ZVAL_STRING(&_6$$9, ""); - ZEPHIR_CALL_FUNCTION(&_7$$9, "str_ireplace", NULL, 144, &_5$$9, &_6$$9, &cipher); + ZEPHIR_CALL_FUNCTION(&_7$$9, "str_ireplace", NULL, 132, &_5$$9, &_6$$9, &cipher); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&blockSize, "openssl_cipher_iv_length", &_4, 143, &_7$$9); + ZEPHIR_CALL_FUNCTION(&blockSize, "openssl_cipher_iv_length", &_4, 131, &_7$$9); zephir_check_call_status(); } ZEPHIR_INIT_VAR(&_8); @@ -15439,7 +13920,7 @@ static PHP_METHOD(Phalcon_Crypt, decrypt) { ZEPHIR_INIT_VAR(&_10); zephir_substr(&_10, &text, 0 , zephir_get_intval(&ivSize), 0); ZVAL_LONG(&_11, 1); - ZEPHIR_CALL_FUNCTION(&decrypted, "openssl_decrypt", NULL, 147, &_8, &cipher, &decryptKey, &_11, &_10); + ZEPHIR_CALL_FUNCTION(&decrypted, "openssl_decrypt", NULL, 135, &_8, &cipher, &decryptKey, &_11, &_10); zephir_check_call_status(); ZEPHIR_OBS_VAR(&paddingType); zephir_read_property(&paddingType, this_ptr, SL("_padding"), PH_NOISY_CC); @@ -15477,11 +13958,11 @@ static PHP_METHOD(Phalcon_Crypt, encryptBase64) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &text_param, &key, &safe_param); - if (unlikely(Z_TYPE_P(text_param) != IS_STRING && Z_TYPE_P(text_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(text_param) != IS_STRING && Z_TYPE_P(text_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'text' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(text_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(text_param) == IS_STRING)) { zephir_get_strval(&text, text_param); } else { ZEPHIR_INIT_VAR(&text); @@ -15494,7 +13975,7 @@ static PHP_METHOD(Phalcon_Crypt, encryptBase64) { if (!safe_param) { safe = 0; } else { - if (unlikely(Z_TYPE_P(safe_param) != IS_TRUE && Z_TYPE_P(safe_param) != IS_FALSE)) { + if (UNEXPECTED(Z_TYPE_P(safe_param) != IS_TRUE && Z_TYPE_P(safe_param) != IS_FALSE)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'safe' must be a bool") TSRMLS_CC); RETURN_MM_NULL(); } @@ -15505,19 +13986,19 @@ static PHP_METHOD(Phalcon_Crypt, encryptBase64) { if (safe == 1) { ZEPHIR_CALL_METHOD(&_0$$3, this_ptr, "encrypt", &_1, 0, &text, key); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_2$$3, "base64_encode", &_3, 120, &_0$$3); + ZEPHIR_CALL_FUNCTION(&_2$$3, "base64_encode", &_3, 109, &_0$$3); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_4$$3); ZVAL_STRING(&_4$$3, "+/"); ZEPHIR_INIT_VAR(&_5$$3); ZVAL_STRING(&_5$$3, "-_"); - ZEPHIR_RETURN_CALL_FUNCTION("strtr", NULL, 26, &_2$$3, &_4$$3, &_5$$3); + ZEPHIR_RETURN_CALL_FUNCTION("strtr", NULL, 21, &_2$$3, &_4$$3, &_5$$3); zephir_check_call_status(); RETURN_MM(); } ZEPHIR_CALL_METHOD(&_6, this_ptr, "encrypt", &_1, 0, &text, key); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_FUNCTION("base64_encode", &_3, 120, &_6); + ZEPHIR_RETURN_CALL_FUNCTION("base64_encode", &_3, 109, &_6); zephir_check_call_status(); RETURN_MM(); @@ -15544,11 +14025,11 @@ static PHP_METHOD(Phalcon_Crypt, decryptBase64) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &text_param, &key, &safe_param); - if (unlikely(Z_TYPE_P(text_param) != IS_STRING && Z_TYPE_P(text_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(text_param) != IS_STRING && Z_TYPE_P(text_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'text' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(text_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(text_param) == IS_STRING)) { zephir_get_strval(&text, text_param); } else { ZEPHIR_INIT_VAR(&text); @@ -15561,7 +14042,7 @@ static PHP_METHOD(Phalcon_Crypt, decryptBase64) { if (!safe_param) { safe = 0; } else { - if (unlikely(Z_TYPE_P(safe_param) != IS_TRUE && Z_TYPE_P(safe_param) != IS_FALSE)) { + if (UNEXPECTED(Z_TYPE_P(safe_param) != IS_TRUE && Z_TYPE_P(safe_param) != IS_FALSE)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'safe' must be a bool") TSRMLS_CC); RETURN_MM_NULL(); } @@ -15574,15 +14055,15 @@ static PHP_METHOD(Phalcon_Crypt, decryptBase64) { ZVAL_STRING(&_0$$3, "-_"); ZEPHIR_INIT_VAR(&_1$$3); ZVAL_STRING(&_1$$3, "+/"); - ZEPHIR_CALL_FUNCTION(&_2$$3, "strtr", NULL, 26, &text, &_0$$3, &_1$$3); + ZEPHIR_CALL_FUNCTION(&_2$$3, "strtr", NULL, 21, &text, &_0$$3, &_1$$3); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_3$$3, "base64_decode", &_4, 121, &_2$$3); + ZEPHIR_CALL_FUNCTION(&_3$$3, "base64_decode", &_4, 110, &_2$$3); zephir_check_call_status(); ZEPHIR_RETURN_CALL_METHOD(this_ptr, "decrypt", &_5, 0, &_3$$3, key); zephir_check_call_status(); RETURN_MM(); } - ZEPHIR_CALL_FUNCTION(&_6, "base64_decode", &_4, 121, &text); + ZEPHIR_CALL_FUNCTION(&_6, "base64_decode", &_4, 110, &text); zephir_check_call_status(); ZEPHIR_RETURN_CALL_METHOD(this_ptr, "decrypt", &_5, 0, &_6, key); zephir_check_call_status(); @@ -15600,7 +14081,7 @@ static PHP_METHOD(Phalcon_Crypt, getAvailableCiphers) { ZEPHIR_MM_GROW(); - ZEPHIR_RETURN_CALL_FUNCTION("openssl_get_cipher_methods", NULL, 142, &__$true); + ZEPHIR_RETURN_CALL_FUNCTION("openssl_get_cipher_methods", NULL, 130, &__$true); zephir_check_call_status(); RETURN_MM(); @@ -15767,11 +14248,11 @@ static PHP_METHOD(Phalcon_Debug, setUri) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &uri_param); - if (unlikely(Z_TYPE_P(uri_param) != IS_STRING && Z_TYPE_P(uri_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(uri_param) != IS_STRING && Z_TYPE_P(uri_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'uri' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(uri_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(uri_param) == IS_STRING)) { zephir_get_strval(&uri, uri_param); } else { ZEPHIR_INIT_VAR(&uri); @@ -15906,7 +14387,7 @@ static PHP_METHOD(Phalcon_Debug, listenExceptions) { ZEPHIR_INIT_VAR(&_1); ZVAL_STRING(&_1, "onUncaughtException"); zephir_array_fast_append(&_0, &_1); - ZEPHIR_CALL_FUNCTION(NULL, "set_exception_handler", NULL, 155, &_0); + ZEPHIR_CALL_FUNCTION(NULL, "set_exception_handler", NULL, 142, &_0); zephir_check_call_status(); RETURN_THIS(); @@ -15931,7 +14412,7 @@ static PHP_METHOD(Phalcon_Debug, listenLowSeverity) { ZEPHIR_INIT_VAR(&_1); ZVAL_STRING(&_1, "onUncaughtLowSeverity"); zephir_array_fast_append(&_0, &_1); - ZEPHIR_CALL_FUNCTION(NULL, "set_error_handler", NULL, 156, &_0); + ZEPHIR_CALL_FUNCTION(NULL, "set_error_handler", NULL, 143, &_0); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_2); zephir_create_array(&_2, 2, 0 TSRMLS_CC); @@ -15939,7 +14420,7 @@ static PHP_METHOD(Phalcon_Debug, listenLowSeverity) { ZEPHIR_INIT_NVAR(&_1); ZVAL_STRING(&_1, "onUncaughtException"); zephir_array_fast_append(&_2, &_1); - ZEPHIR_CALL_FUNCTION(NULL, "set_exception_handler", NULL, 155, &_2); + ZEPHIR_CALL_FUNCTION(NULL, "set_exception_handler", NULL, 142, &_2); zephir_check_call_status(); RETURN_THIS(); @@ -15983,7 +14464,7 @@ static PHP_METHOD(Phalcon_Debug, debugVar) { ZEPHIR_INIT_VAR(&_0); zephir_create_array(&_0, 3, 0 TSRMLS_CC); zephir_array_fast_append(&_0, varz); - ZEPHIR_CALL_FUNCTION(&_1, "debug_backtrace", NULL, 157); + ZEPHIR_CALL_FUNCTION(&_1, "debug_backtrace", NULL, 144); zephir_check_call_status(); zephir_array_fast_append(&_0, &_1); ZEPHIR_INIT_VAR(&_2); @@ -16035,7 +14516,7 @@ static PHP_METHOD(Phalcon_Debug, _escapeString) { ZVAL_LONG(&_3$$3, 2); ZEPHIR_INIT_VAR(&_4$$3); ZVAL_STRING(&_4$$3, "utf-8"); - ZEPHIR_RETURN_CALL_FUNCTION("htmlentities", NULL, 158, &_0$$3, &_3$$3, &_4$$3); + ZEPHIR_RETURN_CALL_FUNCTION("htmlentities", NULL, 145, &_0$$3, &_3$$3, &_4$$3); zephir_check_call_status(); RETURN_MM(); } @@ -16111,7 +14592,7 @@ static PHP_METHOD(Phalcon_Debug, _getArrayDump) { zephir_check_call_status(); } else if (Z_TYPE_P(&v) == IS_ARRAY) { ZVAL_LONG(&_6$$8, (zephir_get_numberval(n) + 1)); - ZEPHIR_CALL_METHOD(&_5$$8, this_ptr, "_getarraydump", &_7, 159, &v, &_6$$8); + ZEPHIR_CALL_METHOD(&_5$$8, this_ptr, "_getarraydump", &_7, 146, &v, &_6$$8); zephir_check_call_status(); ZEPHIR_INIT_NVAR(&varDump); ZEPHIR_CONCAT_SVS(&varDump, "Array(", &_5$$8, ")"); @@ -16187,7 +14668,7 @@ static PHP_METHOD(Phalcon_Debug, _getVarDump) { } } if (Z_TYPE_P(variable) == IS_ARRAY) { - ZEPHIR_CALL_METHOD(&_2$$11, this_ptr, "_getarraydump", &_1, 159, variable); + ZEPHIR_CALL_METHOD(&_2$$11, this_ptr, "_getarraydump", &_1, 146, variable); zephir_check_call_status(); ZEPHIR_CONCAT_SVS(return_value, "Array(", &_2$$11, ")"); RETURN_MM(); @@ -16213,7 +14694,7 @@ static PHP_METHOD(Phalcon_Debug, getMajorVersion) { ZEPHIR_MM_GROW(); - ZEPHIR_CALL_CE_STATIC(&_0, phalcon_version_ce, "get", &_1, 160); + ZEPHIR_CALL_CE_STATIC(&_0, phalcon_version_ce, "get", &_1, 0); zephir_check_call_status(); ZEPHIR_INIT_VAR(&parts); zephir_fast_explode_str(&parts, SL(" "), &_0, LONG_MAX TSRMLS_CC); @@ -16241,17 +14722,17 @@ static PHP_METHOD(Phalcon_Debug, getVersion) { ZEPHIR_INIT_VAR(&link); zephir_create_array(&link, 4, 0 TSRMLS_CC); ZVAL_LONG(&_2, 0); - ZEPHIR_CALL_CE_STATIC(&_0, phalcon_version_ce, "getpart", &_1, 161, &_2); + ZEPHIR_CALL_CE_STATIC(&_0, phalcon_version_ce, "getpart", &_1, 0, &_2); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_3); ZEPHIR_CONCAT_SVS(&_3, "https://docs.phalconphp.com/en/", &_0, ".0.0/"); zephir_array_update_string(&link, SL("action"), &_3, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_CE_STATIC(&_4, phalcon_version_ce, "get", &_5, 160); + ZEPHIR_CALL_CE_STATIC(&_4, phalcon_version_ce, "get", &_5, 0); zephir_check_call_status(); zephir_array_update_string(&link, SL("text"), &_4, PH_COPY | PH_SEPARATE); zephir_array_update_string(&link, SL("local"), &__$false, PH_COPY | PH_SEPARATE); add_assoc_stringl_ex(&link, SL("target"), SL("_new")); - ZEPHIR_CALL_CE_STATIC(&_4, phalcon_tag_ce, "linkto", &_6, 162, &link); + ZEPHIR_CALL_CE_STATIC(&_4, phalcon_tag_ce, "linkto", &_6, 0, &link); zephir_check_call_status(); ZEPHIR_CONCAT_SVS(return_value, "
Phalcon Framework ", &_4, "
"); RETURN_MM(); @@ -16425,9 +14906,9 @@ static PHP_METHOD(Phalcon_Debug, showTraceItem) { } else { ZEPHIR_INIT_VAR(&classReflection); object_init_ex(&classReflection, zephir_get_internal_ce(SL("reflectionclass"))); - ZEPHIR_CALL_METHOD(NULL, &classReflection, "__construct", NULL, 91, &className); + ZEPHIR_CALL_METHOD(NULL, &classReflection, "__construct", NULL, 83, &className); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_7$$5, &classReflection, "isinternal", NULL, 163); + ZEPHIR_CALL_METHOD(&_7$$5, &classReflection, "isinternal", NULL, 147); zephir_check_call_status(); if (zephir_is_true(&_7$$5)) { ZEPHIR_INIT_VAR(&_8$$6); @@ -16458,9 +14939,9 @@ static PHP_METHOD(Phalcon_Debug, showTraceItem) { if ((zephir_function_exists(&functionName TSRMLS_CC) == SUCCESS)) { ZEPHIR_INIT_VAR(&functionReflection); object_init_ex(&functionReflection, zephir_get_internal_ce(SL("reflectionfunction"))); - ZEPHIR_CALL_METHOD(NULL, &functionReflection, "__construct", NULL, 82, &functionName); + ZEPHIR_CALL_METHOD(NULL, &functionReflection, "__construct", NULL, 74, &functionName); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_13$$10, &functionReflection, "isinternal", NULL, 164); + ZEPHIR_CALL_METHOD(&_13$$10, &functionReflection, "isinternal", NULL, 148); zephir_check_call_status(); if (zephir_is_true(&_13$$10)) { ZEPHIR_INIT_VAR(&_14$$11); @@ -16515,7 +14996,7 @@ static PHP_METHOD(Phalcon_Debug, showTraceItem) { ZEPHIR_OBS_VAR(&showFiles); zephir_read_property(&showFiles, this_ptr, SL("_showFiles"), PH_NOISY_CC); if (zephir_is_true(&showFiles)) { - ZEPHIR_CALL_FUNCTION(&lines, "file", NULL, 165, &filez); + ZEPHIR_CALL_FUNCTION(&lines, "file", NULL, 149, &filez); zephir_check_call_status(); ZEPHIR_INIT_VAR(&numberLines); ZVAL_LONG(&numberLines, zephir_fast_count_int(&lines TSRMLS_CC)); @@ -16597,7 +15078,7 @@ static PHP_METHOD(Phalcon_Debug, showTraceItem) { ZVAL_LONG(&_42$$29, 2); ZEPHIR_INIT_NVAR(&_43$$29); ZVAL_STRING(&_43$$29, "UTF-8"); - ZEPHIR_CALL_FUNCTION(&_44$$29, "htmlentities", &_45, 158, &_39$$29, &_42$$29, &_43$$29); + ZEPHIR_CALL_FUNCTION(&_44$$29, "htmlentities", &_45, 145, &_39$$29, &_42$$29, &_43$$29); zephir_check_call_status(); zephir_concat_self(&html, &_44$$29 TSRMLS_CC); } @@ -16632,7 +15113,7 @@ static PHP_METHOD(Phalcon_Debug, onUncaughtLowSeverity) { - ZEPHIR_CALL_FUNCTION(&_0, "error_reporting", NULL, 166); + ZEPHIR_CALL_FUNCTION(&_0, "error_reporting", NULL, 150); zephir_check_call_status(); ZEPHIR_SINIT_VAR(_1); zephir_bitwise_and_function(&_1, &_0, severity TSRMLS_CC); @@ -16640,7 +15121,7 @@ static PHP_METHOD(Phalcon_Debug, onUncaughtLowSeverity) { ZEPHIR_INIT_VAR(&_2$$3); object_init_ex(&_2$$3, zephir_get_internal_ce(SL("errorexception"))); ZVAL_LONG(&_3$$3, 0); - ZEPHIR_CALL_METHOD(NULL, &_2$$3, "__construct", NULL, 167, message, &_3$$3, severity, file, line); + ZEPHIR_CALL_METHOD(NULL, &_2$$3, "__construct", NULL, 151, message, &_3$$3, severity, file, line); zephir_check_call_status(); zephir_throw_exception_debug(&_2$$3, "phalcon/debug.zep", 565 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -16712,10 +15193,10 @@ static PHP_METHOD(Phalcon_Debug, onUncaughtException) { - ZEPHIR_CALL_FUNCTION(&obLevel, "ob_get_level", NULL, 168); + ZEPHIR_CALL_FUNCTION(&obLevel, "ob_get_level", NULL, 152); zephir_check_call_status(); if (ZEPHIR_GT_LONG(&obLevel, 0)) { - ZEPHIR_CALL_FUNCTION(NULL, "ob_end_clean", NULL, 128); + ZEPHIR_CALL_FUNCTION(NULL, "ob_end_clean", NULL, 117); zephir_check_call_status(); } zephir_read_static_property_ce(&_0, phalcon_debug_ce, SL("_isActive"), PH_NOISY_CC | PH_READONLY); @@ -16783,7 +15264,7 @@ static PHP_METHOD(Phalcon_Debug, onUncaughtException) { } ZEPHIR_INIT_NVAR(&traceItem); ZVAL_COPY(&traceItem, _11$$5); - ZEPHIR_CALL_METHOD(&_14$$7, this_ptr, "showtraceitem", &_15, 169, &n, &traceItem); + ZEPHIR_CALL_METHOD(&_14$$7, this_ptr, "showtraceitem", &_15, 153, &n, &traceItem); zephir_check_call_status(); zephir_concat_self(&html, &_14$$7 TSRMLS_CC); } ZEND_HASH_FOREACH_END(); @@ -16808,7 +15289,7 @@ static PHP_METHOD(Phalcon_Debug, onUncaughtException) { ZEPHIR_CONCAT_SVSVS(&_19$$9, "
"); zephir_concat_self(&html, &_19$$9 TSRMLS_CC); } else { - ZEPHIR_CALL_FUNCTION(&_20$$10, "print_r", &_21, 170, &value, &__$true); + ZEPHIR_CALL_FUNCTION(&_20$$10, "print_r", &_21, 154, &value, &__$true); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_22$$10); ZEPHIR_CONCAT_SVSVS(&_22$$10, ""); @@ -16842,7 +15323,7 @@ static PHP_METHOD(Phalcon_Debug, onUncaughtException) { zephir_concat_self_str(&html, SL("
Memory
Usage", &_34$$5, "
", &keyRequest, "", &value, "
", &keyRequest, "", &_20$$10, "
") TSRMLS_CC); zephir_concat_self_str(&html, SL("
") TSRMLS_CC); zephir_concat_self_str(&html, SL("") TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_29$$5, "get_included_files", NULL, 171); + ZEPHIR_CALL_FUNCTION(&_29$$5, "get_included_files", NULL, 155); zephir_check_call_status(); zephir_is_iterable(&_29$$5, 0, "phalcon/debug.zep", 693); ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&_29$$5), _31$$5, _32$$5, _30$$5) @@ -16863,7 +15344,7 @@ static PHP_METHOD(Phalcon_Debug, onUncaughtException) { ZEPHIR_INIT_NVAR(&keyFile); zephir_concat_self_str(&html, SL("
#Path
") TSRMLS_CC); zephir_concat_self_str(&html, SL("
") TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_34$$5, "memory_get_usage", NULL, 172, &__$true); + ZEPHIR_CALL_FUNCTION(&_34$$5, "memory_get_usage", NULL, 156, &__$true); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_35$$5); ZEPHIR_CONCAT_SVS(&_35$$5, ""); @@ -16994,11 +15475,11 @@ static PHP_METHOD(Phalcon_Di, set) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 1, &name_param, &definition, &shared_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(&name, name_param); } else { ZEPHIR_INIT_VAR(&name); @@ -17018,7 +15499,7 @@ static PHP_METHOD(Phalcon_Di, set) { } else { ZVAL_BOOL(&_0, 0); } - ZEPHIR_CALL_METHOD(NULL, &service, "__construct", NULL, 67, &name, definition, &_0); + ZEPHIR_CALL_METHOD(NULL, &service, "__construct", NULL, 61, &name, definition, &_0); zephir_check_call_status(); zephir_update_property_array(this_ptr, SL("_services"), &name, &service TSRMLS_CC); RETURN_CCTOR(service); @@ -17039,11 +15520,11 @@ static PHP_METHOD(Phalcon_Di, setShared) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &name_param, &definition); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(&name, name_param); } else { ZEPHIR_INIT_VAR(&name); @@ -17071,11 +15552,11 @@ static PHP_METHOD(Phalcon_Di, remove) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(&name, name_param); } else { ZEPHIR_INIT_VAR(&name); @@ -17108,11 +15589,11 @@ static PHP_METHOD(Phalcon_Di, attempt) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 1, &name_param, &definition, &shared_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(&name, name_param); } else { ZEPHIR_INIT_VAR(&name); @@ -17134,7 +15615,7 @@ static PHP_METHOD(Phalcon_Di, attempt) { } else { ZVAL_BOOL(&_1$$3, 0); } - ZEPHIR_CALL_METHOD(NULL, &service, "__construct", NULL, 67, &name, definition, &_1$$3); + ZEPHIR_CALL_METHOD(NULL, &service, "__construct", NULL, 61, &name, definition, &_1$$3); zephir_check_call_status(); zephir_update_property_array(this_ptr, SL("_services"), &name, &service TSRMLS_CC); RETURN_CCTOR(service); @@ -17155,11 +15636,11 @@ static PHP_METHOD(Phalcon_Di, setRaw) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &name_param, &rawDefinition); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(&name, name_param); } else { ZEPHIR_INIT_VAR(&name); @@ -17189,11 +15670,11 @@ static PHP_METHOD(Phalcon_Di, getRaw) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(&name, name_param); } else { ZEPHIR_INIT_VAR(&name); @@ -17212,7 +15693,7 @@ static PHP_METHOD(Phalcon_Di, getRaw) { object_init_ex(&_1, phalcon_di_exception_ce); ZEPHIR_INIT_VAR(&_2); ZEPHIR_CONCAT_SVS(&_2, "Service '", &name, "' wasn't found in the dependency injection container"); - ZEPHIR_CALL_METHOD(NULL, &_1, "__construct", NULL, 9, &_2); + ZEPHIR_CALL_METHOD(NULL, &_1, "__construct", NULL, 4, &_2); zephir_check_call_status(); zephir_throw_exception_debug(&_1, "phalcon/di.zep", 191 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -17236,11 +15717,11 @@ static PHP_METHOD(Phalcon_Di, getService) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(&name, name_param); } else { ZEPHIR_INIT_VAR(&name); @@ -17257,7 +15738,7 @@ static PHP_METHOD(Phalcon_Di, getService) { object_init_ex(&_1, phalcon_di_exception_ce); ZEPHIR_INIT_VAR(&_2); ZEPHIR_CONCAT_SVS(&_2, "Service '", &name, "' wasn't found in the dependency injection container"); - ZEPHIR_CALL_METHOD(NULL, &_1, "__construct", NULL, 9, &_2); + ZEPHIR_CALL_METHOD(NULL, &_1, "__construct", NULL, 4, &_2); zephir_check_call_status(); zephir_throw_exception_debug(&_1, "phalcon/di.zep", 205 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -17292,11 +15773,11 @@ static PHP_METHOD(Phalcon_Di, get) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &name_param, ¶meters); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(&name, name_param); } else { ZEPHIR_INIT_VAR(&name); @@ -17334,7 +15815,7 @@ static PHP_METHOD(Phalcon_Di, get) { object_init_ex(&_4$$7, phalcon_di_exception_ce); ZEPHIR_INIT_VAR(&_5$$7); ZEPHIR_CONCAT_SVS(&_5$$7, "Service '", &name, "' wasn't found in the dependency injection container"); - ZEPHIR_CALL_METHOD(NULL, &_4$$7, "__construct", NULL, 9, &_5$$7); + ZEPHIR_CALL_METHOD(NULL, &_4$$7, "__construct", NULL, 4, &_5$$7); zephir_check_call_status(); zephir_throw_exception_debug(&_4$$7, "phalcon/di.zep", 236 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -17394,11 +15875,11 @@ static PHP_METHOD(Phalcon_Di, getShared) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &name_param, ¶meters); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(&name, name_param); } else { ZEPHIR_INIT_VAR(&name); @@ -17444,11 +15925,11 @@ static PHP_METHOD(Phalcon_Di, has) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(&name, name_param); } else { ZEPHIR_INIT_VAR(&name); @@ -17491,11 +15972,11 @@ static PHP_METHOD(Phalcon_Di, offsetExists) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(&name, name_param); } else { ZEPHIR_INIT_VAR(&name); @@ -17522,11 +16003,11 @@ static PHP_METHOD(Phalcon_Di, offsetSet) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &name_param, &definition); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(&name, name_param); } else { ZEPHIR_INIT_VAR(&name); @@ -17552,11 +16033,11 @@ static PHP_METHOD(Phalcon_Di, offsetGet) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(&name, name_param); } else { ZEPHIR_INIT_VAR(&name); @@ -17581,11 +16062,11 @@ static PHP_METHOD(Phalcon_Di, offsetUnset) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(&name, name_param); } else { ZEPHIR_INIT_VAR(&name); @@ -17623,11 +16104,11 @@ static PHP_METHOD(Phalcon_Di, __call) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &method_param, &arguments); - if (unlikely(Z_TYPE_P(method_param) != IS_STRING && Z_TYPE_P(method_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(method_param) != IS_STRING && Z_TYPE_P(method_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'method' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(method_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(method_param) == IS_STRING)) { zephir_get_strval(&method, method_param); } else { ZEPHIR_INIT_VAR(&method); @@ -17645,7 +16126,7 @@ static PHP_METHOD(Phalcon_Di, __call) { ZVAL_LONG(&_0$$3, 3); ZEPHIR_INIT_VAR(&_1$$3); zephir_substr(&_1$$3, &method, 3 , 0, ZEPHIR_SUBSTR_NO_LENGTH); - ZEPHIR_CALL_FUNCTION(&possibleService, "lcfirst", &_2, 68, &_1$$3); + ZEPHIR_CALL_FUNCTION(&possibleService, "lcfirst", &_2, 62, &_1$$3); zephir_check_call_status(); if (zephir_array_isset(&services, &possibleService)) { if (zephir_fast_count_int(arguments TSRMLS_CC)) { @@ -17664,7 +16145,7 @@ static PHP_METHOD(Phalcon_Di, __call) { ZVAL_LONG(&_4$$8, 3); ZEPHIR_INIT_VAR(&_5$$8); zephir_substr(&_5$$8, &method, 3 , 0, ZEPHIR_SUBSTR_NO_LENGTH); - ZEPHIR_CALL_FUNCTION(&_6$$8, "lcfirst", &_2, 68, &_5$$8); + ZEPHIR_CALL_FUNCTION(&_6$$8, "lcfirst", &_2, 62, &_5$$8); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, this_ptr, "set", NULL, 0, &_6$$8, &definition); zephir_check_call_status(); @@ -17675,7 +16156,7 @@ static PHP_METHOD(Phalcon_Di, __call) { object_init_ex(&_7, phalcon_di_exception_ce); ZEPHIR_INIT_VAR(&_8); ZEPHIR_CONCAT_SVS(&_8, "Call to undefined method or service '", &method, "'"); - ZEPHIR_CALL_METHOD(NULL, &_7, "__construct", NULL, 9, &_8); + ZEPHIR_CALL_METHOD(NULL, &_7, "__construct", NULL, 4, &_8); zephir_check_call_status(); zephir_throw_exception_debug(&_7, "phalcon/di.zep", 406 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -18278,7 +16759,7 @@ static PHP_METHOD(Phalcon_Dispatcher, setModelBinding) { if (value) { ZEPHIR_INIT_VAR(&_1$$4); object_init_ex(&_1$$4, phalcon_mvc_model_binder_ce); - ZEPHIR_CALL_METHOD(NULL, &_1$$4, "__construct", NULL, 69, cache); + ZEPHIR_CALL_METHOD(NULL, &_1$$4, "__construct", NULL, 63, cache); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_modelBinder"), &_1$$4); } @@ -18343,13 +16824,14 @@ static PHP_METHOD(Phalcon_Dispatcher, getModelBinder) { static PHP_METHOD(Phalcon_Dispatcher, dispatch) { - zval handler, e, _0$$4; + zval handler, e, _0, _1$$4; int ZEPHIR_LAST_CALL_STATUS; ZEPHIR_INIT_THIS(); ZVAL_UNDEF(&handler); ZVAL_UNDEF(&e); - ZVAL_UNDEF(&_0$$4); + ZVAL_UNDEF(&_0); + ZVAL_UNDEF(&_1$$4); ZEPHIR_MM_GROW(); @@ -18362,13 +16844,15 @@ static PHP_METHOD(Phalcon_Dispatcher, dispatch) { try_end_1: if (EG(exception)) { - ZVAL_OBJ(&e, EG(exception)); - Z_ADDREF_P(&e); - if (zephir_instance_of_ev(&e, zend_exception_get_default(TSRMLS_C) TSRMLS_CC)) { + ZEPHIR_INIT_VAR(&_0); + ZVAL_OBJ(&_0, EG(exception)); + Z_ADDREF_P(&_0); + if (zephir_instance_of_ev(&_0, zend_exception_get_default(TSRMLS_C) TSRMLS_CC)) { zend_clear_exception(TSRMLS_C); - ZEPHIR_CALL_METHOD(&_0$$4, this_ptr, "_handleexception", NULL, 0, &e); + ZEPHIR_CPY_WRT(&e, &_0); + ZEPHIR_CALL_METHOD(&_1$$4, this_ptr, "_handleexception", NULL, 0, &e); zephir_check_call_status(); - if (ZEPHIR_IS_FALSE_IDENTICAL(&_0$$4)) { + if (ZEPHIR_IS_FALSE_IDENTICAL(&_1$$4)) { RETURN_MM_BOOL(0); } zephir_throw_exception_debug(&e, "phalcon/dispatcher.zep", 413 TSRMLS_CC); @@ -18384,8 +16868,8 @@ static PHP_METHOD(Phalcon_Dispatcher, _dispatch) { zval _30$$6; zend_bool hasService = 0, wasFresh; - zephir_fcall_cache_entry *_7 = NULL, *_8 = NULL, *_9 = NULL, *_12 = NULL, *_15 = NULL, *_18 = NULL, *_20 = NULL, *_21 = NULL, *_24 = NULL, *_28 = NULL, *_33 = NULL, *_37 = NULL, *_41 = NULL, *_47 = NULL, *_53 = NULL, *_58 = NULL, *_60 = NULL, *_64 = NULL, *_66 = NULL; - zval __$true, __$false, value, handler, dependencyInjector, namespaceName, handlerName, actionName, params, eventsManager, actionSuffix, handlerClass, status, actionMethod, modelBinder, e, bindCacheKey, _0, _1$$3, _2$$3, _3$$4, _4$$4, _5$$7, _6$$7, _10$$8, _11$$8, _13$$8, _14$$6, _49$$6, _16$$12, _17$$12, _19$$13, _22$$16, _23$$16, _25$$17, _26$$19, _27$$19, _29$$20, _31$$23, _32$$23, _34$$23, _35$$22, _36$$22, _38$$26, _39$$28, _40$$28, _42$$28, _43$$31, _44$$31, _45$$36, _46$$36, _48$$36, _50$$39, _51$$40, _52$$40, _54$$40, _55$$43, _56$$43, _57$$46, _59$$47, _61$$48, _62$$51, _63$$51, _65$$51, _67$$54, _68$$54, _69$$57; + zephir_fcall_cache_entry *_7 = NULL, *_8 = NULL, *_9 = NULL, *_12 = NULL, *_15 = NULL, *_18 = NULL, *_20 = NULL, *_21 = NULL, *_24 = NULL, *_28 = NULL, *_33 = NULL, *_37 = NULL, *_41 = NULL, *_47 = NULL, *_53 = NULL, *_58 = NULL, *_61 = NULL, *_65 = NULL, *_67 = NULL; + zval __$true, __$false, value, handler, dependencyInjector, namespaceName, handlerName, actionName, params, eventsManager, actionSuffix, handlerClass, status, actionMethod, modelBinder, e, bindCacheKey, _0, _1$$3, _2$$3, _3$$4, _4$$4, _5$$7, _6$$7, _10$$8, _11$$8, _13$$8, _14$$6, _49$$6, _59$$6, _16$$12, _17$$12, _19$$13, _22$$16, _23$$16, _25$$17, _26$$19, _27$$19, _29$$20, _31$$23, _32$$23, _34$$23, _35$$22, _36$$22, _38$$26, _39$$28, _40$$28, _42$$28, _43$$31, _44$$31, _45$$36, _46$$36, _48$$36, _50$$39, _51$$40, _52$$40, _54$$40, _55$$43, _56$$43, _57$$46, _60$$47, _62$$48, _63$$51, _64$$51, _66$$51, _68$$54, _69$$54, _70$$57; int ZEPHIR_LAST_CALL_STATUS, numberDispatches = 0; ZEPHIR_INIT_THIS(); @@ -18418,6 +16902,7 @@ static PHP_METHOD(Phalcon_Dispatcher, _dispatch) { ZVAL_UNDEF(&_13$$8); ZVAL_UNDEF(&_14$$6); ZVAL_UNDEF(&_49$$6); + ZVAL_UNDEF(&_59$$6); ZVAL_UNDEF(&_16$$12); ZVAL_UNDEF(&_17$$12); ZVAL_UNDEF(&_19$$13); @@ -18448,14 +16933,14 @@ static PHP_METHOD(Phalcon_Dispatcher, _dispatch) { ZVAL_UNDEF(&_55$$43); ZVAL_UNDEF(&_56$$43); ZVAL_UNDEF(&_57$$46); - ZVAL_UNDEF(&_59$$47); - ZVAL_UNDEF(&_61$$48); - ZVAL_UNDEF(&_62$$51); + ZVAL_UNDEF(&_60$$47); + ZVAL_UNDEF(&_62$$48); ZVAL_UNDEF(&_63$$51); - ZVAL_UNDEF(&_65$$51); - ZVAL_UNDEF(&_67$$54); + ZVAL_UNDEF(&_64$$51); + ZVAL_UNDEF(&_66$$51); ZVAL_UNDEF(&_68$$54); - ZVAL_UNDEF(&_69$$57); + ZVAL_UNDEF(&_69$$54); + ZVAL_UNDEF(&_70$$57); ZVAL_UNDEF(&_30$$6); ZEPHIR_MM_GROW(); @@ -18715,15 +17200,17 @@ static PHP_METHOD(Phalcon_Dispatcher, _dispatch) { try_end_1: if (EG(exception)) { - ZVAL_OBJ(&e, EG(exception)); - Z_ADDREF_P(&e); - if (zephir_instance_of_ev(&e, zend_exception_get_default(TSRMLS_C) TSRMLS_CC)) { + ZEPHIR_INIT_NVAR(&_59$$6); + ZVAL_OBJ(&_59$$6, EG(exception)); + Z_ADDREF_P(&_59$$6); + if (zephir_instance_of_ev(&_59$$6, zend_exception_get_default(TSRMLS_C) TSRMLS_CC)) { zend_clear_exception(TSRMLS_C); - ZEPHIR_CALL_METHOD(&_59$$47, this_ptr, "_handleexception", &_60, 0, &e); + ZEPHIR_CPY_WRT(&e, &_59$$6); + ZEPHIR_CALL_METHOD(&_60$$47, this_ptr, "_handleexception", &_61, 0, &e); zephir_check_call_status(); - if (ZEPHIR_IS_FALSE_IDENTICAL(&_59$$47)) { - zephir_read_property(&_61$$48, this_ptr, SL("_finished"), PH_NOISY_CC | PH_READONLY); - if (ZEPHIR_IS_FALSE_IDENTICAL(&_61$$48)) { + if (ZEPHIR_IS_FALSE_IDENTICAL(&_60$$47)) { + zephir_read_property(&_62$$48, this_ptr, SL("_finished"), PH_NOISY_CC | PH_READONLY); + if (ZEPHIR_IS_FALSE_IDENTICAL(&_62$$48)) { continue; } } else { @@ -18734,38 +17221,38 @@ static PHP_METHOD(Phalcon_Dispatcher, _dispatch) { } } if (Z_TYPE_P(&eventsManager) == IS_OBJECT) { - ZEPHIR_INIT_NVAR(&_63$$51); - ZVAL_STRING(&_63$$51, "dispatch:afterExecuteRoute"); - ZEPHIR_CALL_METHOD(&_62$$51, &eventsManager, "fire", &_64, 0, &_63$$51, this_ptr, &value); + ZEPHIR_INIT_NVAR(&_64$$51); + ZVAL_STRING(&_64$$51, "dispatch:afterExecuteRoute"); + ZEPHIR_CALL_METHOD(&_63$$51, &eventsManager, "fire", &_65, 0, &_64$$51, this_ptr, &value); zephir_check_call_status(); - if (ZEPHIR_IS_FALSE_IDENTICAL(&_62$$51)) { + if (ZEPHIR_IS_FALSE_IDENTICAL(&_63$$51)) { continue; } - zephir_read_property(&_65$$51, this_ptr, SL("_finished"), PH_NOISY_CC | PH_READONLY); - if (ZEPHIR_IS_FALSE_IDENTICAL(&_65$$51)) { + zephir_read_property(&_66$$51, this_ptr, SL("_finished"), PH_NOISY_CC | PH_READONLY); + if (ZEPHIR_IS_FALSE_IDENTICAL(&_66$$51)) { continue; } - ZEPHIR_INIT_NVAR(&_63$$51); - ZVAL_STRING(&_63$$51, "dispatch:afterDispatch"); - ZEPHIR_CALL_METHOD(NULL, &eventsManager, "fire", &_66, 0, &_63$$51, this_ptr); + ZEPHIR_INIT_NVAR(&_64$$51); + ZVAL_STRING(&_64$$51, "dispatch:afterDispatch"); + ZEPHIR_CALL_METHOD(NULL, &eventsManager, "fire", &_67, 0, &_64$$51, this_ptr); zephir_check_call_status(); } if ((zephir_method_exists_ex(&handler, SL("afterexecuteroute") TSRMLS_CC) == SUCCESS)) { - ZEPHIR_CALL_METHOD(&_67$$54, &handler, "afterexecuteroute", NULL, 0, this_ptr, &value); + ZEPHIR_CALL_METHOD(&_68$$54, &handler, "afterexecuteroute", NULL, 0, this_ptr, &value); zephir_check_call_status(); - if (ZEPHIR_IS_FALSE_IDENTICAL(&_67$$54)) { + if (ZEPHIR_IS_FALSE_IDENTICAL(&_68$$54)) { continue; } - zephir_read_property(&_68$$54, this_ptr, SL("_finished"), PH_NOISY_CC | PH_READONLY); - if (ZEPHIR_IS_FALSE_IDENTICAL(&_68$$54)) { + zephir_read_property(&_69$$54, this_ptr, SL("_finished"), PH_NOISY_CC | PH_READONLY); + if (ZEPHIR_IS_FALSE_IDENTICAL(&_69$$54)) { continue; } } } if (Z_TYPE_P(&eventsManager) == IS_OBJECT) { - ZEPHIR_INIT_VAR(&_69$$57); - ZVAL_STRING(&_69$$57, "dispatch:afterDispatchLoop"); - ZEPHIR_CALL_METHOD(NULL, &eventsManager, "fire", NULL, 0, &_69$$57, this_ptr); + ZEPHIR_INIT_VAR(&_70$$57); + ZVAL_STRING(&_70$$57, "dispatch:afterDispatchLoop"); + ZEPHIR_CALL_METHOD(NULL, &eventsManager, "fire", NULL, 0, &_70$$57, this_ptr); zephir_check_call_status(); } RETURN_CCTOR(handler); @@ -19202,14 +17689,14 @@ static PHP_METHOD(Phalcon_Escaper, detectEncoding) { { ZEPHIR_INIT_NVAR(&charset); ZVAL_COPY(&charset, _2); - ZEPHIR_CALL_FUNCTION(&_3$$5, "mb_detect_encoding", &_4, 185, &str, &charset, &__$true); + ZEPHIR_CALL_FUNCTION(&_3$$5, "mb_detect_encoding", &_4, 167, &str, &charset, &__$true); zephir_check_call_status(); if (zephir_is_true(&_3$$5)) { RETURN_CCTOR(charset); } } ZEND_HASH_FOREACH_END(); ZEPHIR_INIT_NVAR(&charset); - ZEPHIR_RETURN_CALL_FUNCTION("mb_detect_encoding", &_4, 185, &str); + ZEPHIR_RETURN_CALL_FUNCTION("mb_detect_encoding", &_4, 167, &str); zephir_check_call_status(); RETURN_MM(); @@ -19236,11 +17723,11 @@ static PHP_METHOD(Phalcon_Escaper, normalizeEncoding) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_escaper_exception_ce, "Extension 'mbstring' is required", "phalcon/escaper.zep", 144); return; } - ZEPHIR_CALL_METHOD(&_0, this_ptr, "detectencoding", NULL, 186, &str); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "detectencoding", NULL, 168, &str); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_1); ZVAL_STRING(&_1, "UTF-32"); - ZEPHIR_RETURN_CALL_FUNCTION("mb_convert_encoding", NULL, 187, &str, &_1, &_0); + ZEPHIR_RETURN_CALL_FUNCTION("mb_convert_encoding", NULL, 169, &str, &_1, &_0); zephir_check_call_status(); RETURN_MM(); @@ -19267,7 +17754,7 @@ static PHP_METHOD(Phalcon_Escaper, escapeHtml) { zephir_read_property(&_0, this_ptr, SL("_htmlQuoteType"), PH_NOISY_CC | PH_READONLY); zephir_read_property(&_1, this_ptr, SL("_encoding"), PH_NOISY_CC | PH_READONLY); zephir_read_property(&_2, this_ptr, SL("_doubleEncode"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_RETURN_CALL_FUNCTION("htmlspecialchars", NULL, 188, &text, &_0, &_1, &_2); + ZEPHIR_RETURN_CALL_FUNCTION("htmlspecialchars", NULL, 170, &text, &_0, &_1, &_2); zephir_check_call_status(); RETURN_MM(); @@ -19294,7 +17781,7 @@ static PHP_METHOD(Phalcon_Escaper, escapeHtmlAttr) { zephir_read_property(&_0, this_ptr, SL("_encoding"), PH_NOISY_CC | PH_READONLY); zephir_read_property(&_1, this_ptr, SL("_doubleEncode"), PH_NOISY_CC | PH_READONLY); ZVAL_LONG(&_2, 3); - ZEPHIR_RETURN_CALL_FUNCTION("htmlspecialchars", NULL, 188, &attribute, &_2, &_0, &_1); + ZEPHIR_RETURN_CALL_FUNCTION("htmlspecialchars", NULL, 170, &attribute, &_2, &_0, &_1); zephir_check_call_status(); RETURN_MM(); @@ -19316,7 +17803,7 @@ static PHP_METHOD(Phalcon_Escaper, escapeCss) { zephir_get_strval(&css, css_param); - ZEPHIR_CALL_METHOD(&_0, this_ptr, "normalizeencoding", NULL, 189, &css); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "normalizeencoding", NULL, 171, &css); zephir_check_call_status(); zephir_escape_css(return_value, &_0); RETURN_MM(); @@ -19339,7 +17826,7 @@ static PHP_METHOD(Phalcon_Escaper, escapeJs) { zephir_get_strval(&js, js_param); - ZEPHIR_CALL_METHOD(&_0, this_ptr, "normalizeencoding", NULL, 189, &js); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "normalizeencoding", NULL, 171, &js); zephir_check_call_status(); zephir_escape_js(return_value, &_0); RETURN_MM(); @@ -19361,7 +17848,7 @@ static PHP_METHOD(Phalcon_Escaper, escapeUrl) { zephir_get_strval(&url, url_param); - ZEPHIR_RETURN_CALL_FUNCTION("rawurlencode", NULL, 190, &url); + ZEPHIR_RETURN_CALL_FUNCTION("rawurlencode", NULL, 172, &url); zephir_check_call_status(); RETURN_MM(); @@ -19477,11 +17964,11 @@ static PHP_METHOD(Phalcon_Filter, add) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &name_param, &handler); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(&name, name_param); } else { ZEPHIR_INIT_VAR(&name); @@ -19639,11 +18126,11 @@ static PHP_METHOD(Phalcon_Filter, _sanitize) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &value, &filter_param); - if (unlikely(Z_TYPE_P(filter_param) != IS_STRING && Z_TYPE_P(filter_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(filter_param) != IS_STRING && Z_TYPE_P(filter_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'filter' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(filter_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(filter_param) == IS_STRING)) { zephir_get_strval(&filter, filter_param); } else { ZEPHIR_INIT_VAR(&filter); @@ -19678,15 +18165,15 @@ static PHP_METHOD(Phalcon_Filter, _sanitize) { if (ZEPHIR_IS_STRING(&filter, "email")) { ZEPHIR_INIT_VAR(&_4$$5); ZVAL_STRING(&_4$$5, "FILTER_SANITIZE_EMAIL"); - ZEPHIR_CALL_FUNCTION(&_5$$5, "constant", NULL, 197, &_4$$5); + ZEPHIR_CALL_FUNCTION(&_5$$5, "constant", NULL, 179, &_4$$5); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_FUNCTION("filter_var", &_6, 198, value, &_5$$5); + ZEPHIR_RETURN_CALL_FUNCTION("filter_var", &_6, 180, value, &_5$$5); zephir_check_call_status(); RETURN_MM(); } if (ZEPHIR_IS_STRING(&filter, "int")) { ZVAL_LONG(&_7$$6, 519); - ZEPHIR_RETURN_CALL_FUNCTION("filter_var", &_6, 198, value, &_7$$6); + ZEPHIR_RETURN_CALL_FUNCTION("filter_var", &_6, 180, value, &_7$$6); zephir_check_call_status(); RETURN_MM(); } @@ -19695,13 +18182,13 @@ static PHP_METHOD(Phalcon_Filter, _sanitize) { } if (ZEPHIR_IS_STRING(&filter, "absint")) { ZVAL_LONG(&_8$$8, zephir_get_intval(value)); - ZEPHIR_RETURN_CALL_FUNCTION("abs", NULL, 199, &_8$$8); + ZEPHIR_RETURN_CALL_FUNCTION("abs", NULL, 181, &_8$$8); zephir_check_call_status(); RETURN_MM(); } if (ZEPHIR_IS_STRING(&filter, "string")) { ZVAL_LONG(&_9$$9, 513); - ZEPHIR_RETURN_CALL_FUNCTION("filter_var", &_6, 198, value, &_9$$9); + ZEPHIR_RETURN_CALL_FUNCTION("filter_var", &_6, 180, value, &_9$$9); zephir_check_call_status(); RETURN_MM(); } @@ -19710,7 +18197,7 @@ static PHP_METHOD(Phalcon_Filter, _sanitize) { zephir_create_array(&_10$$10, 1, 0 TSRMLS_CC); add_assoc_long_ex(&_10$$10, SL("flags"), 4096); ZVAL_LONG(&_11$$10, 520); - ZEPHIR_RETURN_CALL_FUNCTION("filter_var", &_6, 198, value, &_11$$10, &_10$$10); + ZEPHIR_RETURN_CALL_FUNCTION("filter_var", &_6, 180, value, &_11$$10, &_10$$10); zephir_check_call_status(); RETURN_MM(); } @@ -19722,7 +18209,7 @@ static PHP_METHOD(Phalcon_Filter, _sanitize) { ZVAL_STRING(&_12$$12, "/[^A-Za-z0-9]/"); ZEPHIR_INIT_VAR(&_13$$12); ZVAL_STRING(&_13$$12, ""); - ZEPHIR_RETURN_CALL_FUNCTION("preg_replace", NULL, 39, &_12$$12, &_13$$12, value); + ZEPHIR_RETURN_CALL_FUNCTION("preg_replace", NULL, 33, &_12$$12, &_13$$12, value); zephir_check_call_status(); RETURN_MM(); } @@ -19731,13 +18218,13 @@ static PHP_METHOD(Phalcon_Filter, _sanitize) { RETURN_MM(); } if (ZEPHIR_IS_STRING(&filter, "striptags")) { - ZEPHIR_RETURN_CALL_FUNCTION("strip_tags", NULL, 200, value); + ZEPHIR_RETURN_CALL_FUNCTION("strip_tags", NULL, 182, value); zephir_check_call_status(); RETURN_MM(); } if (ZEPHIR_IS_STRING(&filter, "lower")) { if ((zephir_function_exists_ex(SL("mb_strtolower") TSRMLS_CC) == SUCCESS)) { - ZEPHIR_RETURN_CALL_FUNCTION("mb_strtolower", NULL, 201, value); + ZEPHIR_RETURN_CALL_FUNCTION("mb_strtolower", NULL, 183, value); zephir_check_call_status(); RETURN_MM(); } @@ -19746,7 +18233,7 @@ static PHP_METHOD(Phalcon_Filter, _sanitize) { } if (ZEPHIR_IS_STRING(&filter, "upper")) { if ((zephir_function_exists_ex(SL("mb_strtoupper") TSRMLS_CC) == SUCCESS)) { - ZEPHIR_RETURN_CALL_FUNCTION("mb_strtoupper", NULL, 202, value); + ZEPHIR_RETURN_CALL_FUNCTION("mb_strtoupper", NULL, 184, value); zephir_check_call_status(); RETURN_MM(); } @@ -19757,7 +18244,7 @@ static PHP_METHOD(Phalcon_Filter, _sanitize) { object_init_ex(&_14$$19, phalcon_filter_exception_ce); ZEPHIR_INIT_VAR(&_15$$19); ZEPHIR_CONCAT_SVS(&_15$$19, "Sanitize filter '", &filter, "' is not supported"); - ZEPHIR_CALL_METHOD(NULL, &_14$$19, "__construct", NULL, 9, &_15$$19); + ZEPHIR_CALL_METHOD(NULL, &_14$$19, "__construct", NULL, 4, &_15$$19); zephir_check_call_status(); zephir_throw_exception_debug(&_14$$19, "phalcon/filter.zep", 214 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -19975,7 +18462,7 @@ static PHP_METHOD(Phalcon_Flash, getDI) { ZEPHIR_OBS_VAR(&di); zephir_read_property(&di, this_ptr, SL("_dependencyInjector"), PH_NOISY_CC); if (Z_TYPE_P(&di) != IS_OBJECT) { - ZEPHIR_CALL_CE_STATIC(&di, phalcon_di_ce, "getdefault", &_0, 1); + ZEPHIR_CALL_CE_STATIC(&di, phalcon_di_ce, "getdefault", &_0, 0); zephir_check_call_status(); } RETURN_CCTOR(di); @@ -20363,11 +18850,11 @@ static PHP_METHOD(Phalcon_Kernel, preComputeHashKey) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &key_param); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(&key, key_param); } else { ZEPHIR_INIT_VAR(&key); @@ -20808,7 +19295,7 @@ static PHP_METHOD(Phalcon_Loader, register) { ZVAL_STRING(&_2$$3, "autoLoad"); zephir_array_fast_append(&_1$$3, &_2$$3); ZVAL_BOOL(&_3$$3, (prepend ? 1 : 0)); - ZEPHIR_CALL_FUNCTION(NULL, "spl_autoload_register", NULL, 296, &_1$$3, &__$true, &_3$$3); + ZEPHIR_CALL_FUNCTION(NULL, "spl_autoload_register", NULL, 264, &_1$$3, &__$true, &_3$$3); zephir_check_call_status(); if (1) { zephir_update_property_zval(this_ptr, SL("_registered"), &__$true); @@ -20843,7 +19330,7 @@ static PHP_METHOD(Phalcon_Loader, unregister) { ZEPHIR_INIT_VAR(&_2$$3); ZVAL_STRING(&_2$$3, "autoLoad"); zephir_array_fast_append(&_1$$3, &_2$$3); - ZEPHIR_CALL_FUNCTION(NULL, "spl_autoload_unregister", NULL, 297, &_1$$3); + ZEPHIR_CALL_FUNCTION(NULL, "spl_autoload_unregister", NULL, 265, &_1$$3); zephir_check_call_status(); if (0) { zephir_update_property_zval(this_ptr, SL("_registered"), &__$true); @@ -20890,7 +19377,7 @@ static PHP_METHOD(Phalcon_Loader, loadFiles) { ZEPHIR_CALL_METHOD(NULL, &_3$$4, "fire", NULL, 0, &_4$$4, this_ptr, &filePath); zephir_check_call_status(); } - ZEPHIR_CALL_FUNCTION(&_5$$3, "is_file", &_6, 298, &filePath); + ZEPHIR_CALL_FUNCTION(&_5$$3, "is_file", &_6, 266, &filePath); zephir_check_call_status(); if (zephir_is_true(&_5$$3)) { ZEPHIR_OBS_NVAR(&_7$$5); @@ -20957,11 +19444,11 @@ static PHP_METHOD(Phalcon_Loader, autoLoad) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &className_param); - if (unlikely(Z_TYPE_P(className_param) != IS_STRING && Z_TYPE_P(className_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(className_param) != IS_STRING && Z_TYPE_P(className_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'className' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(className_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(className_param) == IS_STRING)) { zephir_get_strval(&className, className_param); } else { ZEPHIR_INIT_VAR(&className); @@ -21049,7 +19536,7 @@ static PHP_METHOD(Phalcon_Loader, autoLoad) { ZEPHIR_CALL_METHOD(NULL, &eventsManager, "fire", &_12, 0, &_11$$11, this_ptr); zephir_check_call_status(); } - ZEPHIR_CALL_FUNCTION(&_13$$10, "is_file", &_14, 298, &filePath); + ZEPHIR_CALL_FUNCTION(&_13$$10, "is_file", &_14, 266, &filePath); zephir_check_call_status(); if (zephir_is_true(&_13$$10)) { if (Z_TYPE_P(&eventsManager) == IS_OBJECT) { @@ -21100,7 +19587,7 @@ static PHP_METHOD(Phalcon_Loader, autoLoad) { ZEPHIR_CALL_METHOD(NULL, &eventsManager, "fire", &_22, 0, &_21$$16, this_ptr, &filePath); zephir_check_call_status(); } - ZEPHIR_CALL_FUNCTION(&_23$$15, "is_file", &_14, 298, &filePath); + ZEPHIR_CALL_FUNCTION(&_23$$15, "is_file", &_14, 266, &filePath); zephir_check_call_status(); if (zephir_is_true(&_23$$15)) { if (Z_TYPE_P(&eventsManager) == IS_OBJECT) { @@ -21298,11 +19785,11 @@ static PHP_METHOD(Phalcon_Registry, offsetExists) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &offset_param); - if (unlikely(Z_TYPE_P(offset_param) != IS_STRING && Z_TYPE_P(offset_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(offset_param) != IS_STRING && Z_TYPE_P(offset_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'offset' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(offset_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(offset_param) == IS_STRING)) { zephir_get_strval(&offset, offset_param); } else { ZEPHIR_INIT_VAR(&offset); @@ -21328,11 +19815,11 @@ static PHP_METHOD(Phalcon_Registry, offsetGet) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &offset_param); - if (unlikely(Z_TYPE_P(offset_param) != IS_STRING && Z_TYPE_P(offset_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(offset_param) != IS_STRING && Z_TYPE_P(offset_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'offset' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(offset_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(offset_param) == IS_STRING)) { zephir_get_strval(&offset, offset_param); } else { ZEPHIR_INIT_VAR(&offset); @@ -21358,11 +19845,11 @@ static PHP_METHOD(Phalcon_Registry, offsetSet) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &offset_param, &value); - if (unlikely(Z_TYPE_P(offset_param) != IS_STRING && Z_TYPE_P(offset_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(offset_param) != IS_STRING && Z_TYPE_P(offset_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'offset' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(offset_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(offset_param) == IS_STRING)) { zephir_get_strval(&offset, offset_param); } else { ZEPHIR_INIT_VAR(&offset); @@ -21387,11 +19874,11 @@ static PHP_METHOD(Phalcon_Registry, offsetUnset) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &offset_param); - if (unlikely(Z_TYPE_P(offset_param) != IS_STRING && Z_TYPE_P(offset_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(offset_param) != IS_STRING && Z_TYPE_P(offset_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'offset' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(offset_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(offset_param) == IS_STRING)) { zephir_get_strval(&offset, offset_param); } else { ZEPHIR_INIT_VAR(&offset); @@ -21430,7 +19917,7 @@ static PHP_METHOD(Phalcon_Registry, next) { zephir_read_property(&_0, this_ptr, SL("_data"), PH_NOISY_CC | PH_READONLY); ZEPHIR_MAKE_REF(&_0); - ZEPHIR_CALL_FUNCTION(NULL, "next", NULL, 417, &_0); + ZEPHIR_CALL_FUNCTION(NULL, "next", NULL, 380, &_0); ZEPHIR_UNREF(&_0); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -21448,7 +19935,7 @@ static PHP_METHOD(Phalcon_Registry, key) { ZEPHIR_MM_GROW(); zephir_read_property(&_0, this_ptr, SL("_data"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_RETURN_CALL_FUNCTION("key", NULL, 418, &_0); + ZEPHIR_RETURN_CALL_FUNCTION("key", NULL, 381, &_0); zephir_check_call_status(); RETURN_MM(); @@ -21466,7 +19953,7 @@ static PHP_METHOD(Phalcon_Registry, rewind) { zephir_read_property(&_0, this_ptr, SL("_data"), PH_NOISY_CC | PH_READONLY); ZEPHIR_MAKE_REF(&_0); - ZEPHIR_CALL_FUNCTION(NULL, "reset", NULL, 419, &_0); + ZEPHIR_CALL_FUNCTION(NULL, "reset", NULL, 382, &_0); ZEPHIR_UNREF(&_0); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -21485,7 +19972,7 @@ static PHP_METHOD(Phalcon_Registry, valid) { ZEPHIR_MM_GROW(); zephir_read_property(&_0, this_ptr, SL("_data"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(&_1, "key", NULL, 418, &_0); + ZEPHIR_CALL_FUNCTION(&_1, "key", NULL, 381, &_0); zephir_check_call_status(); RETURN_MM_BOOL(Z_TYPE_P(&_1) != IS_NULL); @@ -21502,7 +19989,7 @@ static PHP_METHOD(Phalcon_Registry, current) { ZEPHIR_MM_GROW(); zephir_read_property(&_0, this_ptr, SL("_data"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_RETURN_CALL_FUNCTION("current", NULL, 420, &_0); + ZEPHIR_RETURN_CALL_FUNCTION("current", NULL, 383, &_0); zephir_check_call_status(); RETURN_MM(); @@ -21521,11 +20008,11 @@ static PHP_METHOD(Phalcon_Registry, __set) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &key_param, &value); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(&key, key_param); } else { ZEPHIR_INIT_VAR(&key); @@ -21533,7 +20020,7 @@ static PHP_METHOD(Phalcon_Registry, __set) { } - ZEPHIR_CALL_METHOD(NULL, this_ptr, "offsetset", NULL, 421, &key, value); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "offsetset", NULL, 384, &key, value); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -21551,11 +20038,11 @@ static PHP_METHOD(Phalcon_Registry, __get) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &key_param); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(&key, key_param); } else { ZEPHIR_INIT_VAR(&key); @@ -21563,7 +20050,7 @@ static PHP_METHOD(Phalcon_Registry, __get) { } - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "offsetget", NULL, 422, &key); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "offsetget", NULL, 385, &key); zephir_check_call_status(); RETURN_MM(); @@ -21581,11 +20068,11 @@ static PHP_METHOD(Phalcon_Registry, __isset) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &key_param); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(&key, key_param); } else { ZEPHIR_INIT_VAR(&key); @@ -21593,7 +20080,7 @@ static PHP_METHOD(Phalcon_Registry, __isset) { } - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "offsetexists", NULL, 423, &key); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "offsetexists", NULL, 386, &key); zephir_check_call_status(); RETURN_MM(); @@ -21611,11 +20098,11 @@ static PHP_METHOD(Phalcon_Registry, __unset) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &key_param); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(&key, key_param); } else { ZEPHIR_INIT_VAR(&key); @@ -21623,7 +20110,7 @@ static PHP_METHOD(Phalcon_Registry, __unset) { } - ZEPHIR_CALL_METHOD(NULL, this_ptr, "offsetunset", NULL, 424, &key); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "offsetunset", NULL, 387, &key); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -21765,7 +20252,7 @@ static PHP_METHOD(Phalcon_Security, setRandomBytes) { zephir_fetch_params(0, 1, 0, &randomBytes_param); - if (unlikely(Z_TYPE_P(randomBytes_param) != IS_LONG)) { + if (UNEXPECTED(Z_TYPE_P(randomBytes_param) != IS_LONG)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'randomBytes' must be a long") TSRMLS_CC); RETURN_NULL(); } @@ -21937,7 +20424,7 @@ static PHP_METHOD(Phalcon_Security, hash) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_security_exception_ce, "Unable to get random bytes for the salt", "phalcon/security.zep", 222); return; } - ZEPHIR_RETURN_CALL_FUNCTION("crypt", &_6, 425, &password, &saltBytes); + ZEPHIR_RETURN_CALL_FUNCTION("crypt", &_6, 388, &password, &saltBytes); zephir_check_call_status(); RETURN_MM(); } @@ -21958,7 +20445,7 @@ static PHP_METHOD(Phalcon_Security, hash) { } ZEPHIR_INIT_VAR(&_8$$15); ZEPHIR_CONCAT_SVSVS(&_8$$15, "$", &variant, "$", &saltBytes, "$"); - ZEPHIR_RETURN_CALL_FUNCTION("crypt", &_6, 425, &password, &_8$$15); + ZEPHIR_RETURN_CALL_FUNCTION("crypt", &_6, 388, &password, &_8$$15); zephir_check_call_status(); RETURN_MM(); } @@ -21979,11 +20466,11 @@ static PHP_METHOD(Phalcon_Security, hash) { ZEPHIR_INIT_VAR(&_10$$17); ZVAL_STRING(&_10$$17, "%02s"); ZVAL_LONG(&_9$$17, workFactor); - ZEPHIR_CALL_FUNCTION(&_11$$17, "sprintf", NULL, 194, &_10$$17, &_9$$17); + ZEPHIR_CALL_FUNCTION(&_11$$17, "sprintf", NULL, 176, &_10$$17, &_9$$17); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_12$$17); ZEPHIR_CONCAT_SVSVSVS(&_12$$17, "$2", &variant, "$", &_11$$17, "$", &saltBytes, "$"); - ZEPHIR_RETURN_CALL_FUNCTION("crypt", &_6, 425, &password, &_12$$17); + ZEPHIR_RETURN_CALL_FUNCTION("crypt", &_6, 388, &password, &_12$$17); zephir_check_call_status(); RETURN_MM(); } while(0); @@ -22030,7 +20517,7 @@ static PHP_METHOD(Phalcon_Security, checkHash) { RETURN_MM_BOOL(0); } } - ZEPHIR_CALL_FUNCTION(&_1, "crypt", NULL, 425, &password, &passwordHash); + ZEPHIR_CALL_FUNCTION(&_1, "crypt", NULL, 388, &password, &passwordHash); zephir_check_call_status(); zephir_get_strval(&_2, &_1); ZEPHIR_CPY_WRT(&cryptedHash, &_2); @@ -22348,14 +20835,14 @@ static PHP_METHOD(Phalcon_Security, computeHmac) { ZVAL_BOOL(&_0, (raw ? 1 : 0)); - ZEPHIR_CALL_FUNCTION(&hmac, "hash_hmac", NULL, 426, &algo, &data, &key, &_0); + ZEPHIR_CALL_FUNCTION(&hmac, "hash_hmac", NULL, 389, &algo, &data, &key, &_0); zephir_check_call_status(); if (!(zephir_is_true(&hmac))) { ZEPHIR_INIT_VAR(&_1$$3); object_init_ex(&_1$$3, phalcon_security_exception_ce); ZEPHIR_INIT_VAR(&_2$$3); ZEPHIR_CONCAT_SV(&_2$$3, "Unknown hashing algorithm: %s", &algo); - ZEPHIR_CALL_METHOD(NULL, &_1$$3, "__construct", NULL, 9, &_2$$3); + ZEPHIR_CALL_METHOD(NULL, &_1$$3, "__construct", NULL, 4, &_2$$3); zephir_check_call_status(); zephir_throw_exception_debug(&_1$$3, "phalcon/security.zep", 465 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -22409,7 +20896,7 @@ static PHP_METHOD(Phalcon_Security, hasLibreSsl) { ZEPHIR_INIT_VAR(&_0); ZVAL_STRING(&_0, "OPENSSL_VERSION_TEXT"); - ZEPHIR_CALL_FUNCTION(&_1, "defined", NULL, 239, &_0); + ZEPHIR_CALL_FUNCTION(&_1, "defined", NULL, 207, &_0); zephir_check_call_status(); if (!(zephir_is_true(&_1))) { RETURN_MM_BOOL(0); @@ -22586,11 +21073,11 @@ static PHP_METHOD(Phalcon_Tag, renderAttributes) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &code_param, &attributes_param); - if (unlikely(Z_TYPE_P(code_param) != IS_STRING && Z_TYPE_P(code_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(code_param) != IS_STRING && Z_TYPE_P(code_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'code' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(code_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(code_param) == IS_STRING)) { zephir_get_strval(&code, code_param); } else { ZEPHIR_INIT_VAR(&code); @@ -22680,7 +21167,7 @@ static PHP_METHOD(Phalcon_Tag, renderAttributes) { zephir_gettype(&_13$$9, &value TSRMLS_CC); ZEPHIR_INIT_LNVAR(_14$$9); ZEPHIR_CONCAT_SVSVS(&_14$$9, "Value at index: '", &key, "' type: '", &_13$$9, "' cannot be rendered"); - ZEPHIR_CALL_METHOD(NULL, &_12$$9, "__construct", &_15, 9, &_14$$9); + ZEPHIR_CALL_METHOD(NULL, &_12$$9, "__construct", &_15, 4, &_14$$9); zephir_check_call_status(); zephir_throw_exception_debug(&_12$$9, "phalcon/tag.zep", 151 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -22732,7 +21219,7 @@ static PHP_METHOD(Phalcon_Tag, getDI) { ZEPHIR_OBS_VAR(&di); zephir_read_static_property_ce(&di, phalcon_tag_ce, SL("_dependencyInjector"), PH_NOISY_CC); if (Z_TYPE_P(&di) != IS_OBJECT) { - ZEPHIR_CALL_CE_STATIC(&di, phalcon_di_ce, "getdefault", &_0, 1); + ZEPHIR_CALL_CE_STATIC(&di, phalcon_di_ce, "getdefault", &_0, 0); zephir_check_call_status(); } RETURN_CCTOR(di); @@ -22837,11 +21324,11 @@ static PHP_METHOD(Phalcon_Tag, setDefault) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &id_param, &value); - if (unlikely(Z_TYPE_P(id_param) != IS_STRING && Z_TYPE_P(id_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(id_param) != IS_STRING && Z_TYPE_P(id_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'id' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(id_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(id_param) == IS_STRING)) { zephir_get_strval(&id, id_param); } else { ZEPHIR_INIT_VAR(&id); @@ -23323,7 +21810,7 @@ static PHP_METHOD(Phalcon_Tag, colorField) { ZEPHIR_INIT_VAR(&_1); ZVAL_STRING(&_1, "color"); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 440, &_1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 402, &_1, parameters); zephir_check_call_status(); RETURN_MM(); @@ -23346,7 +21833,7 @@ static PHP_METHOD(Phalcon_Tag, textField) { ZEPHIR_INIT_VAR(&_1); ZVAL_STRING(&_1, "text"); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 440, &_1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 402, &_1, parameters); zephir_check_call_status(); RETURN_MM(); @@ -23369,7 +21856,7 @@ static PHP_METHOD(Phalcon_Tag, numericField) { ZEPHIR_INIT_VAR(&_1); ZVAL_STRING(&_1, "number"); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 440, &_1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 402, &_1, parameters); zephir_check_call_status(); RETURN_MM(); @@ -23392,7 +21879,7 @@ static PHP_METHOD(Phalcon_Tag, rangeField) { ZEPHIR_INIT_VAR(&_1); ZVAL_STRING(&_1, "range"); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 440, &_1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 402, &_1, parameters); zephir_check_call_status(); RETURN_MM(); @@ -23415,7 +21902,7 @@ static PHP_METHOD(Phalcon_Tag, emailField) { ZEPHIR_INIT_VAR(&_1); ZVAL_STRING(&_1, "email"); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 440, &_1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 402, &_1, parameters); zephir_check_call_status(); RETURN_MM(); @@ -23438,7 +21925,7 @@ static PHP_METHOD(Phalcon_Tag, dateField) { ZEPHIR_INIT_VAR(&_1); ZVAL_STRING(&_1, "date"); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 440, &_1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 402, &_1, parameters); zephir_check_call_status(); RETURN_MM(); @@ -23461,7 +21948,7 @@ static PHP_METHOD(Phalcon_Tag, dateTimeField) { ZEPHIR_INIT_VAR(&_1); ZVAL_STRING(&_1, "datetime"); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 440, &_1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 402, &_1, parameters); zephir_check_call_status(); RETURN_MM(); @@ -23484,7 +21971,7 @@ static PHP_METHOD(Phalcon_Tag, dateTimeLocalField) { ZEPHIR_INIT_VAR(&_1); ZVAL_STRING(&_1, "datetime-local"); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 440, &_1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 402, &_1, parameters); zephir_check_call_status(); RETURN_MM(); @@ -23507,7 +21994,7 @@ static PHP_METHOD(Phalcon_Tag, monthField) { ZEPHIR_INIT_VAR(&_1); ZVAL_STRING(&_1, "month"); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 440, &_1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 402, &_1, parameters); zephir_check_call_status(); RETURN_MM(); @@ -23530,7 +22017,7 @@ static PHP_METHOD(Phalcon_Tag, timeField) { ZEPHIR_INIT_VAR(&_1); ZVAL_STRING(&_1, "time"); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 440, &_1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 402, &_1, parameters); zephir_check_call_status(); RETURN_MM(); @@ -23553,7 +22040,7 @@ static PHP_METHOD(Phalcon_Tag, weekField) { ZEPHIR_INIT_VAR(&_1); ZVAL_STRING(&_1, "week"); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 440, &_1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 402, &_1, parameters); zephir_check_call_status(); RETURN_MM(); @@ -23576,7 +22063,7 @@ static PHP_METHOD(Phalcon_Tag, passwordField) { ZEPHIR_INIT_VAR(&_1); ZVAL_STRING(&_1, "password"); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 440, &_1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 402, &_1, parameters); zephir_check_call_status(); RETURN_MM(); @@ -23599,7 +22086,7 @@ static PHP_METHOD(Phalcon_Tag, hiddenField) { ZEPHIR_INIT_VAR(&_1); ZVAL_STRING(&_1, "hidden"); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 440, &_1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 402, &_1, parameters); zephir_check_call_status(); RETURN_MM(); @@ -23622,7 +22109,7 @@ static PHP_METHOD(Phalcon_Tag, fileField) { ZEPHIR_INIT_VAR(&_1); ZVAL_STRING(&_1, "file"); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 440, &_1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 402, &_1, parameters); zephir_check_call_status(); RETURN_MM(); @@ -23645,7 +22132,7 @@ static PHP_METHOD(Phalcon_Tag, searchField) { ZEPHIR_INIT_VAR(&_1); ZVAL_STRING(&_1, "search"); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 440, &_1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 402, &_1, parameters); zephir_check_call_status(); RETURN_MM(); @@ -23668,7 +22155,7 @@ static PHP_METHOD(Phalcon_Tag, telField) { ZEPHIR_INIT_VAR(&_1); ZVAL_STRING(&_1, "tel"); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 440, &_1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 402, &_1, parameters); zephir_check_call_status(); RETURN_MM(); @@ -23691,7 +22178,7 @@ static PHP_METHOD(Phalcon_Tag, urlField) { ZEPHIR_INIT_VAR(&_1); ZVAL_STRING(&_1, "url"); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 440, &_1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 402, &_1, parameters); zephir_check_call_status(); RETURN_MM(); @@ -23714,7 +22201,7 @@ static PHP_METHOD(Phalcon_Tag, checkField) { ZEPHIR_INIT_VAR(&_1); ZVAL_STRING(&_1, "checkbox"); - ZEPHIR_RETURN_CALL_SELF("_inputfieldchecked", &_0, 441, &_1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfieldchecked", &_0, 403, &_1, parameters); zephir_check_call_status(); RETURN_MM(); @@ -23737,7 +22224,7 @@ static PHP_METHOD(Phalcon_Tag, radioField) { ZEPHIR_INIT_VAR(&_1); ZVAL_STRING(&_1, "radio"); - ZEPHIR_RETURN_CALL_SELF("_inputfieldchecked", &_0, 441, &_1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfieldchecked", &_0, 403, &_1, parameters); zephir_check_call_status(); RETURN_MM(); @@ -23762,7 +22249,7 @@ static PHP_METHOD(Phalcon_Tag, imageInput) { ZEPHIR_INIT_VAR(&_1); ZVAL_STRING(&_1, "image"); ZVAL_BOOL(&_2, 1); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 440, &_1, parameters, &_2); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 402, &_1, parameters, &_2); zephir_check_call_status(); RETURN_MM(); @@ -23787,7 +22274,7 @@ static PHP_METHOD(Phalcon_Tag, submitButton) { ZEPHIR_INIT_VAR(&_1); ZVAL_STRING(&_1, "submit"); ZVAL_BOOL(&_2, 1); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 440, &_1, parameters, &_2); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 402, &_1, parameters, &_2); zephir_check_call_status(); RETURN_MM(); @@ -23813,7 +22300,7 @@ static PHP_METHOD(Phalcon_Tag, selectStatic) { } - ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_select_ce, "selectfield", &_0, 213, parameters, data); + ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_select_ce, "selectfield", &_0, 0, parameters, data); zephir_check_call_status(); RETURN_MM(); @@ -23839,7 +22326,7 @@ static PHP_METHOD(Phalcon_Tag, select) { } - ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_select_ce, "selectfield", &_0, 213, parameters, data); + ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_select_ce, "selectfield", &_0, 0, parameters, data); zephir_check_call_status(); RETURN_MM(); @@ -24160,7 +22647,7 @@ static PHP_METHOD(Phalcon_Tag, getTitle) { ZEPHIR_OBS_VAR(&documentPrependTitle); zephir_read_static_property_ce(&documentPrependTitle, phalcon_tag_ce, SL("_documentPrependTitle"), PH_NOISY_CC); if (!(ZEPHIR_IS_EMPTY(&documentPrependTitle))) { - ZEPHIR_CALL_FUNCTION(&tmp$$5, "array_reverse", NULL, 442, &documentPrependTitle); + ZEPHIR_CALL_FUNCTION(&tmp$$5, "array_reverse", NULL, 404, &documentPrependTitle); zephir_check_call_status(); zephir_is_iterable(&tmp$$5, 0, "phalcon/tag.zep", 1228); ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&tmp$$5), _8$$5) @@ -24560,19 +23047,19 @@ static PHP_METHOD(Phalcon_Tag, friendlyTitle) { ZEPHIR_INIT_VAR(&_0); ZVAL_STRING(&_0, "iconv"); - ZEPHIR_CALL_FUNCTION(&_1, "extension_loaded", &_2, 136, &_0); + ZEPHIR_CALL_FUNCTION(&_1, "extension_loaded", &_2, 124, &_0); zephir_check_call_status(); if (zephir_is_true(&_1)) { ZVAL_LONG(&_3$$3, 6); ZEPHIR_INIT_VAR(&_4$$3); ZVAL_STRING(&_4$$3, "en_US.UTF-8"); - ZEPHIR_CALL_FUNCTION(&locale, "setlocale", &_5, 443, &_3$$3, &_4$$3); + ZEPHIR_CALL_FUNCTION(&locale, "setlocale", &_5, 405, &_3$$3, &_4$$3); zephir_check_call_status(); ZEPHIR_INIT_NVAR(&_4$$3); ZVAL_STRING(&_4$$3, "UTF-8"); ZEPHIR_INIT_VAR(&_6$$3); ZVAL_STRING(&_6$$3, "ASCII//TRANSLIT"); - ZEPHIR_CALL_FUNCTION(&_7$$3, "iconv", NULL, 395, &_4$$3, &_6$$3, &text); + ZEPHIR_CALL_FUNCTION(&_7$$3, "iconv", NULL, 358, &_4$$3, &_6$$3, &text); zephir_check_call_status(); zephir_get_strval(&text, &_7$$3); } @@ -24610,7 +23097,7 @@ static PHP_METHOD(Phalcon_Tag, friendlyTitle) { ZVAL_STRING(&_0, "/[^a-zA-Z0-9\\/_|+ -]/"); ZEPHIR_INIT_VAR(&_14); ZVAL_STRING(&_14, ""); - ZEPHIR_CALL_FUNCTION(&friendly, "preg_replace", &_15, 39, &_0, &_14, &text); + ZEPHIR_CALL_FUNCTION(&friendly, "preg_replace", &_15, 33, &_0, &_14, &text); zephir_check_call_status(); if (lowercase) { ZEPHIR_INIT_VAR(&_16$$9); @@ -24619,7 +23106,7 @@ static PHP_METHOD(Phalcon_Tag, friendlyTitle) { } ZEPHIR_INIT_NVAR(&_0); ZVAL_STRING(&_0, "/[\\/_|+ -]+/"); - ZEPHIR_CALL_FUNCTION(&_17, "preg_replace", &_15, 39, &_0, &separator, &friendly); + ZEPHIR_CALL_FUNCTION(&_17, "preg_replace", &_15, 33, &_0, &separator, &friendly); zephir_check_call_status(); ZEPHIR_CPY_WRT(&friendly, &_17); ZEPHIR_INIT_NVAR(&_0); @@ -24627,11 +23114,11 @@ static PHP_METHOD(Phalcon_Tag, friendlyTitle) { ZEPHIR_CPY_WRT(&friendly, &_0); ZEPHIR_INIT_NVAR(&_0); ZVAL_STRING(&_0, "iconv"); - ZEPHIR_CALL_FUNCTION(&_17, "extension_loaded", &_2, 136, &_0); + ZEPHIR_CALL_FUNCTION(&_17, "extension_loaded", &_2, 124, &_0); zephir_check_call_status(); if (zephir_is_true(&_17)) { ZVAL_LONG(&_18$$10, 6); - ZEPHIR_CALL_FUNCTION(NULL, "setlocale", &_5, 443, &_18$$10, &locale); + ZEPHIR_CALL_FUNCTION(NULL, "setlocale", &_5, 405, &_18$$10, &locale); zephir_check_call_status(); } RETURN_CCTOR(friendly); @@ -24933,11 +23420,11 @@ static PHP_METHOD(Phalcon_Text, camelize) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &str_param, &delimiter); - if (unlikely(Z_TYPE_P(str_param) != IS_STRING && Z_TYPE_P(str_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(str_param) != IS_STRING && Z_TYPE_P(str_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'str' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(str_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(str_param) == IS_STRING)) { zephir_get_strval(&str, str_param); } else { ZEPHIR_INIT_VAR(&str); @@ -24969,11 +23456,11 @@ static PHP_METHOD(Phalcon_Text, uncamelize) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &str_param, &delimiter); - if (unlikely(Z_TYPE_P(str_param) != IS_STRING && Z_TYPE_P(str_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(str_param) != IS_STRING && Z_TYPE_P(str_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'str' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(str_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(str_param) == IS_STRING)) { zephir_get_strval(&str, str_param); } else { ZEPHIR_INIT_VAR(&str); @@ -25089,13 +23576,13 @@ static PHP_METHOD(Phalcon_Text, random) { ZVAL_STRING(&_0$$3, "a"); ZEPHIR_INIT_VAR(&_1$$3); ZVAL_STRING(&_1$$3, "z"); - ZEPHIR_CALL_FUNCTION(&_2$$3, "range", &_3, 447, &_0$$3, &_1$$3); + ZEPHIR_CALL_FUNCTION(&_2$$3, "range", &_3, 408, &_0$$3, &_1$$3); zephir_check_call_status(); ZEPHIR_INIT_NVAR(&_0$$3); ZVAL_STRING(&_0$$3, "A"); ZEPHIR_INIT_NVAR(&_1$$3); ZVAL_STRING(&_1$$3, "Z"); - ZEPHIR_CALL_FUNCTION(&_4$$3, "range", &_3, 447, &_0$$3, &_1$$3); + ZEPHIR_CALL_FUNCTION(&_4$$3, "range", &_3, 408, &_0$$3, &_1$$3); zephir_check_call_status(); ZEPHIR_INIT_VAR(&pool); zephir_fast_array_merge(&pool, &_2$$3, &_4$$3 TSRMLS_CC); @@ -25104,13 +23591,13 @@ static PHP_METHOD(Phalcon_Text, random) { if (type == 2) { ZVAL_LONG(&_5$$4, 0); ZVAL_LONG(&_6$$4, 9); - ZEPHIR_CALL_FUNCTION(&_7$$4, "range", &_3, 447, &_5$$4, &_6$$4); + ZEPHIR_CALL_FUNCTION(&_7$$4, "range", &_3, 408, &_5$$4, &_6$$4); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_8$$4); ZVAL_STRING(&_8$$4, "a"); ZEPHIR_INIT_VAR(&_9$$4); ZVAL_STRING(&_9$$4, "f"); - ZEPHIR_CALL_FUNCTION(&_10$$4, "range", &_3, 447, &_8$$4, &_9$$4); + ZEPHIR_CALL_FUNCTION(&_10$$4, "range", &_3, 408, &_8$$4, &_9$$4); zephir_check_call_status(); ZEPHIR_INIT_NVAR(&pool); zephir_fast_array_merge(&pool, &_7$$4, &_10$$4 TSRMLS_CC); @@ -25119,34 +23606,34 @@ static PHP_METHOD(Phalcon_Text, random) { if (type == 3) { ZVAL_LONG(&_11$$5, 0); ZVAL_LONG(&_12$$5, 9); - ZEPHIR_CALL_FUNCTION(&pool, "range", &_3, 447, &_11$$5, &_12$$5); + ZEPHIR_CALL_FUNCTION(&pool, "range", &_3, 408, &_11$$5, &_12$$5); zephir_check_call_status(); break; } if (type == 4) { ZVAL_LONG(&_13$$6, 1); ZVAL_LONG(&_14$$6, 9); - ZEPHIR_CALL_FUNCTION(&pool, "range", &_3, 447, &_13$$6, &_14$$6); + ZEPHIR_CALL_FUNCTION(&pool, "range", &_3, 408, &_13$$6, &_14$$6); zephir_check_call_status(); break; } ZVAL_LONG(&_15$$7, 0); ZVAL_LONG(&_16$$7, 9); - ZEPHIR_CALL_FUNCTION(&_17$$7, "range", &_3, 447, &_15$$7, &_16$$7); + ZEPHIR_CALL_FUNCTION(&_17$$7, "range", &_3, 408, &_15$$7, &_16$$7); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_18$$7); ZVAL_STRING(&_18$$7, "a"); ZEPHIR_INIT_VAR(&_19$$7); ZVAL_STRING(&_19$$7, "z"); - ZEPHIR_CALL_FUNCTION(&_20$$7, "range", &_3, 447, &_18$$7, &_19$$7); + ZEPHIR_CALL_FUNCTION(&_20$$7, "range", &_3, 408, &_18$$7, &_19$$7); zephir_check_call_status(); ZEPHIR_INIT_NVAR(&_18$$7); ZVAL_STRING(&_18$$7, "A"); ZEPHIR_INIT_NVAR(&_19$$7); ZVAL_STRING(&_19$$7, "Z"); - ZEPHIR_CALL_FUNCTION(&_21$$7, "range", &_3, 447, &_18$$7, &_19$$7); + ZEPHIR_CALL_FUNCTION(&_21$$7, "range", &_3, 408, &_18$$7, &_19$$7); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&pool, "array_merge", &_22, 448, &_17$$7, &_20$$7, &_21$$7); + ZEPHIR_CALL_FUNCTION(&pool, "array_merge", &_22, 409, &_17$$7, &_20$$7, &_21$$7); zephir_check_call_status(); break; } while(0); @@ -25234,11 +23721,11 @@ static PHP_METHOD(Phalcon_Text, lower) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &str_param, &encoding_param); - if (unlikely(Z_TYPE_P(str_param) != IS_STRING && Z_TYPE_P(str_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(str_param) != IS_STRING && Z_TYPE_P(str_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'str' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(str_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(str_param) == IS_STRING)) { zephir_get_strval(&str, str_param); } else { ZEPHIR_INIT_VAR(&str); @@ -25248,11 +23735,11 @@ static PHP_METHOD(Phalcon_Text, lower) { ZEPHIR_INIT_VAR(&encoding); ZVAL_STRING(&encoding, "UTF-8"); } else { - if (unlikely(Z_TYPE_P(encoding_param) != IS_STRING && Z_TYPE_P(encoding_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(encoding_param) != IS_STRING && Z_TYPE_P(encoding_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'encoding' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(encoding_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(encoding_param) == IS_STRING)) { zephir_get_strval(&encoding, encoding_param); } else { ZEPHIR_INIT_VAR(&encoding); @@ -25262,7 +23749,7 @@ static PHP_METHOD(Phalcon_Text, lower) { if ((zephir_function_exists_ex(SL("mb_strtolower") TSRMLS_CC) == SUCCESS)) { - ZEPHIR_RETURN_CALL_FUNCTION("mb_strtolower", NULL, 201, &str, &encoding); + ZEPHIR_RETURN_CALL_FUNCTION("mb_strtolower", NULL, 183, &str, &encoding); zephir_check_call_status(); RETURN_MM(); } @@ -25284,11 +23771,11 @@ static PHP_METHOD(Phalcon_Text, upper) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &str_param, &encoding_param); - if (unlikely(Z_TYPE_P(str_param) != IS_STRING && Z_TYPE_P(str_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(str_param) != IS_STRING && Z_TYPE_P(str_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'str' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(str_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(str_param) == IS_STRING)) { zephir_get_strval(&str, str_param); } else { ZEPHIR_INIT_VAR(&str); @@ -25298,11 +23785,11 @@ static PHP_METHOD(Phalcon_Text, upper) { ZEPHIR_INIT_VAR(&encoding); ZVAL_STRING(&encoding, "UTF-8"); } else { - if (unlikely(Z_TYPE_P(encoding_param) != IS_STRING && Z_TYPE_P(encoding_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(encoding_param) != IS_STRING && Z_TYPE_P(encoding_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'encoding' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(encoding_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(encoding_param) == IS_STRING)) { zephir_get_strval(&encoding, encoding_param); } else { ZEPHIR_INIT_VAR(&encoding); @@ -25312,7 +23799,7 @@ static PHP_METHOD(Phalcon_Text, upper) { if ((zephir_function_exists_ex(SL("mb_strtoupper") TSRMLS_CC) == SUCCESS)) { - ZEPHIR_RETURN_CALL_FUNCTION("mb_strtoupper", NULL, 202, &str, &encoding); + ZEPHIR_RETURN_CALL_FUNCTION("mb_strtoupper", NULL, 184, &str, &encoding); zephir_check_call_status(); RETURN_MM(); } @@ -25342,7 +23829,7 @@ static PHP_METHOD(Phalcon_Text, reduceSlashes) { ZVAL_STRING(&_0, "#(? 3) { + ZEPHIR_INIT_VAR(&_3$$3); + zephir_get_args(&_3$$3); ZVAL_LONG(&_4$$3, 3); - ZEPHIR_CALL_FUNCTION(&_5$$3, "array_slice", NULL, 396, &_3$$3, &_4$$3); + ZEPHIR_CALL_FUNCTION(&_5$$3, "array_slice", NULL, 359, &_3$$3, &_4$$3); zephir_check_call_status(); zephir_is_iterable(&_5$$3, 0, "phalcon/text.zep", 256); ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&_5$$3), _6$$3) @@ -25450,11 +23935,11 @@ static PHP_METHOD(Phalcon_Text, dynamic) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 3, &text_param, &leftDelimiter_param, &rightDelimiter_param, &separator_param); - if (unlikely(Z_TYPE_P(text_param) != IS_STRING && Z_TYPE_P(text_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(text_param) != IS_STRING && Z_TYPE_P(text_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'text' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(text_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(text_param) == IS_STRING)) { zephir_get_strval(&text, text_param); } else { ZEPHIR_INIT_VAR(&text); @@ -25464,11 +23949,11 @@ static PHP_METHOD(Phalcon_Text, dynamic) { ZEPHIR_INIT_VAR(&leftDelimiter); ZVAL_STRING(&leftDelimiter, "{"); } else { - if (unlikely(Z_TYPE_P(leftDelimiter_param) != IS_STRING && Z_TYPE_P(leftDelimiter_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(leftDelimiter_param) != IS_STRING && Z_TYPE_P(leftDelimiter_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'leftDelimiter' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(leftDelimiter_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(leftDelimiter_param) == IS_STRING)) { zephir_get_strval(&leftDelimiter, leftDelimiter_param); } else { ZEPHIR_INIT_VAR(&leftDelimiter); @@ -25479,11 +23964,11 @@ static PHP_METHOD(Phalcon_Text, dynamic) { ZEPHIR_INIT_VAR(&rightDelimiter); ZVAL_STRING(&rightDelimiter, "}"); } else { - if (unlikely(Z_TYPE_P(rightDelimiter_param) != IS_STRING && Z_TYPE_P(rightDelimiter_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(rightDelimiter_param) != IS_STRING && Z_TYPE_P(rightDelimiter_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'rightDelimiter' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(rightDelimiter_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(rightDelimiter_param) == IS_STRING)) { zephir_get_strval(&rightDelimiter, rightDelimiter_param); } else { ZEPHIR_INIT_VAR(&rightDelimiter); @@ -25494,11 +23979,11 @@ static PHP_METHOD(Phalcon_Text, dynamic) { ZEPHIR_INIT_VAR(&separator); ZVAL_STRING(&separator, "|"); } else { - if (unlikely(Z_TYPE_P(separator_param) != IS_STRING && Z_TYPE_P(separator_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(separator_param) != IS_STRING && Z_TYPE_P(separator_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'separator' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(separator_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(separator_param) == IS_STRING)) { zephir_get_strval(&separator, separator_param); } else { ZEPHIR_INIT_VAR(&separator); @@ -25507,24 +23992,24 @@ static PHP_METHOD(Phalcon_Text, dynamic) { } - ZEPHIR_CALL_FUNCTION(&_0, "substr_count", &_1, 451, &text, &leftDelimiter); + ZEPHIR_CALL_FUNCTION(&_0, "substr_count", &_1, 410, &text, &leftDelimiter); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_2, "substr_count", &_1, 451, &text, &rightDelimiter); + ZEPHIR_CALL_FUNCTION(&_2, "substr_count", &_1, 410, &text, &rightDelimiter); zephir_check_call_status(); if (!ZEPHIR_IS_IDENTICAL(&_0, &_2)) { ZEPHIR_INIT_VAR(&_3$$3); object_init_ex(&_3$$3, spl_ce_RuntimeException); ZEPHIR_INIT_VAR(&_4$$3); ZEPHIR_CONCAT_SVS(&_4$$3, "Syntax error in string \"", &text, "\""); - ZEPHIR_CALL_METHOD(NULL, &_3$$3, "__construct", NULL, 452, &_4$$3); + ZEPHIR_CALL_METHOD(NULL, &_3$$3, "__construct", NULL, 411, &_4$$3); zephir_check_call_status(); zephir_throw_exception_debug(&_3$$3, "phalcon/text.zep", 283 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } - ZEPHIR_CALL_FUNCTION(&ldS, "preg_quote", &_5, 453, &leftDelimiter); + ZEPHIR_CALL_FUNCTION(&ldS, "preg_quote", &_5, 412, &leftDelimiter); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&rdS, "preg_quote", &_5, 453, &rightDelimiter); + ZEPHIR_CALL_FUNCTION(&rdS, "preg_quote", &_5, 412, &rightDelimiter); zephir_check_call_status(); ZEPHIR_INIT_VAR(&pattern); ZEPHIR_CONCAT_SVSVVSVS(&pattern, "/", &ldS, "([^", &ldS, &rdS, "]+)", &rdS, "/"); @@ -25532,7 +24017,7 @@ static PHP_METHOD(Phalcon_Text, dynamic) { array_init(&matches); ZVAL_LONG(&_6, 2); ZEPHIR_MAKE_REF(&matches); - ZEPHIR_CALL_FUNCTION(&_7, "preg_match_all", NULL, 38, &pattern, &text, &matches, &_6); + ZEPHIR_CALL_FUNCTION(&_7, "preg_match_all", NULL, 32, &pattern, &text, &matches, &_6); ZEPHIR_UNREF(&matches); zephir_check_call_status(); if (!(zephir_is_true(&_7))) { @@ -25555,16 +24040,16 @@ static PHP_METHOD(Phalcon_Text, dynamic) { ZEPHIR_INIT_NVAR(&words); zephir_fast_explode(&words, &separator, &_10$$6, LONG_MAX TSRMLS_CC); ZEPHIR_OBS_NVAR(&word); - ZEPHIR_CALL_FUNCTION(&_11$$6, "array_rand", &_12, 454, &words); + ZEPHIR_CALL_FUNCTION(&_11$$6, "array_rand", &_12, 413, &words); zephir_check_call_status(); zephir_array_fetch(&word, &words, &_11$$6, PH_NOISY, "phalcon/text.zep", 302 TSRMLS_CC); zephir_array_fetch_long(&_13$$6, &match, 0, PH_NOISY | PH_READONLY, "phalcon/text.zep", 303 TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&sub, "preg_quote", &_5, 453, &_13$$6, &separator); + ZEPHIR_CALL_FUNCTION(&sub, "preg_quote", &_5, 412, &_13$$6, &separator); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_14$$6); ZEPHIR_CONCAT_SVS(&_14$$6, "/", &sub, "/"); ZVAL_LONG(&_15$$6, 1); - ZEPHIR_CALL_FUNCTION(&_16$$6, "preg_replace", &_17, 39, &_14$$6, &word, &text, &_15$$6); + ZEPHIR_CALL_FUNCTION(&_16$$6, "preg_replace", &_17, 33, &_14$$6, &word, &text, &_15$$6); zephir_check_call_status(); zephir_get_strval(&text, &_16$$6); } ZEND_HASH_FOREACH_END(); @@ -25589,11 +24074,11 @@ static PHP_METHOD(Phalcon_Text, underscore) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &text_param); - if (unlikely(Z_TYPE_P(text_param) != IS_STRING && Z_TYPE_P(text_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(text_param) != IS_STRING && Z_TYPE_P(text_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'text' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(text_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(text_param) == IS_STRING)) { zephir_get_strval(&text, text_param); } else { ZEPHIR_INIT_VAR(&text); @@ -25607,7 +24092,7 @@ static PHP_METHOD(Phalcon_Text, underscore) { ZVAL_STRING(&_1, "#\\s+#"); ZEPHIR_INIT_VAR(&_2); ZVAL_STRING(&_2, "_"); - ZEPHIR_RETURN_CALL_FUNCTION("preg_replace", NULL, 39, &_1, &_2, &_0); + ZEPHIR_RETURN_CALL_FUNCTION("preg_replace", NULL, 33, &_1, &_2, &_0); zephir_check_call_status(); RETURN_MM(); @@ -25628,11 +24113,11 @@ static PHP_METHOD(Phalcon_Text, humanize) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &text_param); - if (unlikely(Z_TYPE_P(text_param) != IS_STRING && Z_TYPE_P(text_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(text_param) != IS_STRING && Z_TYPE_P(text_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'text' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(text_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(text_param) == IS_STRING)) { zephir_get_strval(&text, text_param); } else { ZEPHIR_INIT_VAR(&text); @@ -25646,7 +24131,7 @@ static PHP_METHOD(Phalcon_Text, humanize) { ZVAL_STRING(&_1, "#[_-]+#"); ZEPHIR_INIT_VAR(&_2); ZVAL_STRING(&_2, " "); - ZEPHIR_RETURN_CALL_FUNCTION("preg_replace", NULL, 39, &_1, &_2, &_0); + ZEPHIR_RETURN_CALL_FUNCTION("preg_replace", NULL, 33, &_1, &_2, &_0); zephir_check_call_status(); RETURN_MM(); @@ -25762,13 +24247,13 @@ static PHP_METHOD(Phalcon_Validation, __construct) { ZEPHIR_INIT_VAR(&_0$$3); ZEPHIR_INIT_NVAR(&_0$$3); zephir_create_closure_ex(&_0$$3, NULL, phalcon_0__closure_ce, SL("__invoke")); - ZEPHIR_CALL_FUNCTION(&_1$$3, "array_filter", &_2, 464, &validators, &_0$$3); + ZEPHIR_CALL_FUNCTION(&_1$$3, "array_filter", &_2, 422, &validators, &_0$$3); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_validators"), &_1$$3); ZEPHIR_INIT_VAR(&_3$$3); ZEPHIR_INIT_NVAR(&_3$$3); zephir_create_closure_ex(&_3$$3, NULL, phalcon_1__closure_ce, SL("__invoke")); - ZEPHIR_CALL_FUNCTION(&_4$$3, "array_filter", &_2, 464, &validators, &_3$$3); + ZEPHIR_CALL_FUNCTION(&_4$$3, "array_filter", &_2, 422, &validators, &_3$$3); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_combinedFieldsValidators"), &_4$$3); } @@ -25834,7 +24319,7 @@ static PHP_METHOD(Phalcon_Validation, validate) { zephir_update_property_zval(this_ptr, SL("_values"), &__$null); ZEPHIR_INIT_VAR(&messages); object_init_ex(&messages, phalcon_validation_message_group_ce); - ZEPHIR_CALL_METHOD(NULL, &messages, "__construct", NULL, 3); + ZEPHIR_CALL_METHOD(NULL, &messages, "__construct", NULL, 2); zephir_check_call_status(); if (Z_TYPE_P(entity) != IS_NULL) { ZEPHIR_CALL_METHOD(NULL, this_ptr, "setentity", NULL, 0, entity); @@ -26220,11 +24705,11 @@ static PHP_METHOD(Phalcon_Validation, getDefaultMessage) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &type_param); - if (unlikely(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'type' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(type_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(type_param) == IS_STRING)) { zephir_get_strval(&type, type_param); } else { ZEPHIR_INIT_VAR(&type); @@ -26315,10 +24800,10 @@ static PHP_METHOD(Phalcon_Validation, appendMessage) { if (Z_TYPE_P(&messages) != IS_OBJECT) { ZEPHIR_INIT_NVAR(&messages); object_init_ex(&messages, phalcon_validation_message_group_ce); - ZEPHIR_CALL_METHOD(NULL, &messages, "__construct", NULL, 3); + ZEPHIR_CALL_METHOD(NULL, &messages, "__construct", NULL, 2); zephir_check_call_status(); } - ZEPHIR_CALL_METHOD(NULL, &messages, "appendmessage", NULL, 465, message); + ZEPHIR_CALL_METHOD(NULL, &messages, "appendmessage", NULL, 423, message); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_messages"), &messages); RETURN_THIS(); @@ -26453,7 +24938,7 @@ static PHP_METHOD(Phalcon_Validation, getValue) { ZEPHIR_CALL_METHOD(&dependencyInjector, this_ptr, "getdi", NULL, 0); zephir_check_call_status(); if (Z_TYPE_P(&dependencyInjector) != IS_OBJECT) { - ZEPHIR_CALL_CE_STATIC(&dependencyInjector, phalcon_di_ce, "getdefault", &_1, 1); + ZEPHIR_CALL_CE_STATIC(&dependencyInjector, phalcon_di_ce, "getdefault", &_1, 0); zephir_check_call_status(); if (Z_TYPE_P(&dependencyInjector) != IS_OBJECT) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_validation_exception_ce, "A dependency injector is required to obtain the 'filter' service", "phalcon/validation.zep", 536); @@ -26482,7 +24967,7 @@ static PHP_METHOD(Phalcon_Validation, getValue) { ZEPHIR_CALL_METHOD(NULL, &entity, "writeattribute", NULL, 0, &field, &value); zephir_check_call_status(); } else { - ZEPHIR_CALL_FUNCTION(&_4$$28, "property_exists", NULL, 324, &entity, &field); + ZEPHIR_CALL_FUNCTION(&_4$$28, "property_exists", NULL, 293, &entity, &field); zephir_check_call_status(); if (zephir_is_true(&_4$$28)) { zephir_update_property_zval_zval(&entity, &field, &value TSRMLS_CC); @@ -26528,7 +25013,7 @@ static PHP_METHOD(Phalcon_Validation, preChecking) { { ZEPHIR_INIT_NVAR(&singleField); ZVAL_COPY(&singleField, _0$$3); - ZEPHIR_CALL_METHOD(&result, this_ptr, "prechecking", &_1, 466, &singleField, validator); + ZEPHIR_CALL_METHOD(&result, this_ptr, "prechecking", &_1, 424, &singleField, validator); zephir_check_call_status(); if (zephir_is_true(&result)) { RETURN_CCTOR(result); @@ -26711,7 +25196,7 @@ static PHP_METHOD(Phalcon_Version, _getVersion) { ZVAL_LONG(&_0, 1); zephir_array_fast_append(return_value, &_0); ZEPHIR_INIT_NVAR(&_0); - ZVAL_LONG(&_0, 1); + ZVAL_LONG(&_0, 2); zephir_array_fast_append(return_value, &_0); ZEPHIR_INIT_NVAR(&_0); ZVAL_LONG(&_0, 4); @@ -26794,7 +25279,7 @@ static PHP_METHOD(Phalcon_Version, get) { zephir_array_fetch_long(&specialNumber, &version, 4, PH_NOISY, "phalcon/version.zep", 143 TSRMLS_CC); ZEPHIR_INIT_VAR(&result); ZEPHIR_CONCAT_VSVSVS(&result, &major, ".", &medium, ".", &minor, " "); - ZEPHIR_CALL_STATIC(&suffix, "_getspecial", &_0, 475, &special); + ZEPHIR_CALL_STATIC(&suffix, "_getspecial", &_0, 433, &special); zephir_check_call_status(); if (!ZEPHIR_IS_STRING(&suffix, "")) { ZEPHIR_INIT_VAR(&_1$$3); @@ -26839,11 +25324,11 @@ static PHP_METHOD(Phalcon_Version, getId) { zephir_array_fetch_long(&specialNumber, &version, 4, PH_NOISY, "phalcon/version.zep", 173 TSRMLS_CC); ZEPHIR_INIT_VAR(&_0); ZVAL_STRING(&_0, "%02s"); - ZEPHIR_CALL_FUNCTION(&_1, "sprintf", &_2, 194, &_0, &medium); + ZEPHIR_CALL_FUNCTION(&_1, "sprintf", &_2, 176, &_0, &medium); zephir_check_call_status(); ZEPHIR_INIT_NVAR(&_0); ZVAL_STRING(&_0, "%02s"); - ZEPHIR_CALL_FUNCTION(&_3, "sprintf", &_2, 194, &_0, &minor); + ZEPHIR_CALL_FUNCTION(&_3, "sprintf", &_2, 176, &_0, &minor); zephir_check_call_status(); ZEPHIR_CONCAT_VVVVV(return_value, &major, &_1, &_3, &special, &specialNumber); RETURN_MM(); @@ -26877,7 +25362,7 @@ static PHP_METHOD(Phalcon_Version, getPart) { } if (part == 3) { zephir_array_fetch_long(&_1$$4, &version, 3, PH_NOISY | PH_READONLY, "phalcon/version.zep", 204 TSRMLS_CC); - ZEPHIR_CALL_STATIC(&result, "_getspecial", &_0, 475, &_1$$4); + ZEPHIR_CALL_STATIC(&result, "_getspecial", &_0, 433, &_1$$4); zephir_check_call_status(); break; } @@ -27137,11 +25622,11 @@ static PHP_METHOD(Phalcon_Acl_Resource, __construct) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &name_param, &description_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(&name, name_param); } else { ZEPHIR_INIT_VAR(&name); @@ -27273,11 +25758,11 @@ static PHP_METHOD(Phalcon_Acl_Role, __construct) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &name_param, &description_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(&name, name_param); } else { ZEPHIR_INIT_VAR(&name); @@ -27443,7 +25928,7 @@ static PHP_METHOD(Phalcon_Acl_Adapter_Memory, addRole) { ZEPHIR_CPY_WRT(&roleName, role); ZEPHIR_INIT_NVAR(&roleObject); object_init_ex(&roleObject, phalcon_acl_role_ce); - ZEPHIR_CALL_METHOD(NULL, &roleObject, "__construct", NULL, 79, role); + ZEPHIR_CALL_METHOD(NULL, &roleObject, "__construct", NULL, 71, role); zephir_check_call_status(); } else { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_acl_exception_ce, "Role must be either an string or implement RoleInterface", "phalcon/acl/adapter/memory.zep", 201); @@ -27501,7 +25986,7 @@ static PHP_METHOD(Phalcon_Acl_Adapter_Memory, addInherit) { object_init_ex(&_0$$3, phalcon_acl_exception_ce); ZEPHIR_INIT_VAR(&_1$$3); ZEPHIR_CONCAT_SVS(&_1$$3, "Role '", &roleName, "' does not exist in the role list"); - ZEPHIR_CALL_METHOD(NULL, &_0$$3, "__construct", NULL, 9, &_1$$3); + ZEPHIR_CALL_METHOD(NULL, &_0$$3, "__construct", NULL, 4, &_1$$3); zephir_check_call_status(); zephir_throw_exception_debug(&_0$$3, "phalcon/acl/adapter/memory.zep", 227 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -27526,7 +26011,7 @@ static PHP_METHOD(Phalcon_Acl_Adapter_Memory, addInherit) { { ZEPHIR_INIT_NVAR(&deepInheritName); ZVAL_COPY(&deepInheritName, _6$$6); - ZEPHIR_CALL_METHOD(NULL, this_ptr, "addinherit", &_7, 80, &roleName, &deepInheritName); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "addinherit", &_7, 72, &roleName, &deepInheritName); zephir_check_call_status(); } ZEND_HASH_FOREACH_END(); ZEPHIR_INIT_NVAR(&deepInheritName); @@ -27536,7 +26021,7 @@ static PHP_METHOD(Phalcon_Acl_Adapter_Memory, addInherit) { object_init_ex(&_8$$8, phalcon_acl_exception_ce); ZEPHIR_INIT_VAR(&_9$$8); ZEPHIR_CONCAT_SVS(&_9$$8, "Role '", &roleInheritName, "' (to inherit) does not exist in the role list"); - ZEPHIR_CALL_METHOD(NULL, &_8$$8, "__construct", NULL, 9, &_9$$8); + ZEPHIR_CALL_METHOD(NULL, &_8$$8, "__construct", NULL, 4, &_9$$8); zephir_check_call_status(); zephir_throw_exception_debug(&_8$$8, "phalcon/acl/adapter/memory.zep", 249 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -27625,7 +26110,7 @@ static PHP_METHOD(Phalcon_Acl_Adapter_Memory, addResource) { ZEPHIR_CPY_WRT(&resourceName, resourceValue); ZEPHIR_INIT_NVAR(&resourceObject); object_init_ex(&resourceObject, phalcon_acl_resource_ce); - ZEPHIR_CALL_METHOD(NULL, &resourceObject, "__construct", NULL, 81, &resourceName); + ZEPHIR_CALL_METHOD(NULL, &resourceObject, "__construct", NULL, 73, &resourceName); zephir_check_call_status(); } zephir_read_property(&_1, this_ptr, SL("_resourcesNames"), PH_NOISY_CC | PH_READONLY); @@ -27671,7 +26156,7 @@ static PHP_METHOD(Phalcon_Acl_Adapter_Memory, addResourceAccess) { object_init_ex(&_1$$3, phalcon_acl_exception_ce); ZEPHIR_INIT_VAR(&_2$$3); ZEPHIR_CONCAT_SVS(&_2$$3, "Resource '", &resourceName, "' does not exist in ACL"); - ZEPHIR_CALL_METHOD(NULL, &_1$$3, "__construct", NULL, 9, &_2$$3); + ZEPHIR_CALL_METHOD(NULL, &_1$$3, "__construct", NULL, 4, &_2$$3); zephir_check_call_status(); zephir_throw_exception_debug(&_1$$3, "phalcon/acl/adapter/memory.zep", 348 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -27811,7 +26296,7 @@ static PHP_METHOD(Phalcon_Acl_Adapter_Memory, _allowOrDeny) { object_init_ex(&_1$$3, phalcon_acl_exception_ce); ZEPHIR_INIT_VAR(&_2$$3); ZEPHIR_CONCAT_SVS(&_2$$3, "Role '", &roleName, "' does not exist in ACL"); - ZEPHIR_CALL_METHOD(NULL, &_1$$3, "__construct", NULL, 9, &_2$$3); + ZEPHIR_CALL_METHOD(NULL, &_1$$3, "__construct", NULL, 4, &_2$$3); zephir_check_call_status(); zephir_throw_exception_debug(&_1$$3, "phalcon/acl/adapter/memory.zep", 407 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -27823,7 +26308,7 @@ static PHP_METHOD(Phalcon_Acl_Adapter_Memory, _allowOrDeny) { object_init_ex(&_4$$4, phalcon_acl_exception_ce); ZEPHIR_INIT_VAR(&_5$$4); ZEPHIR_CONCAT_SVS(&_5$$4, "Resource '", &resourceName, "' does not exist in ACL"); - ZEPHIR_CALL_METHOD(NULL, &_4$$4, "__construct", NULL, 9, &_5$$4); + ZEPHIR_CALL_METHOD(NULL, &_4$$4, "__construct", NULL, 4, &_5$$4); zephir_check_call_status(); zephir_throw_exception_debug(&_4$$4, "phalcon/acl/adapter/memory.zep", 411 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -27844,7 +26329,7 @@ static PHP_METHOD(Phalcon_Acl_Adapter_Memory, _allowOrDeny) { object_init_ex(&_7$$7, phalcon_acl_exception_ce); ZEPHIR_INIT_LNVAR(_8$$7); ZEPHIR_CONCAT_SVSVS(&_8$$7, "Access '", &accessName, "' does not exist in resource '", &resourceName, "'"); - ZEPHIR_CALL_METHOD(NULL, &_7$$7, "__construct", NULL, 9, &_8$$7); + ZEPHIR_CALL_METHOD(NULL, &_7$$7, "__construct", NULL, 4, &_8$$7); zephir_check_call_status(); zephir_throw_exception_debug(&_7$$7, "phalcon/acl/adapter/memory.zep", 421 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -27874,7 +26359,7 @@ static PHP_METHOD(Phalcon_Acl_Adapter_Memory, _allowOrDeny) { object_init_ex(&_10$$12, phalcon_acl_exception_ce); ZEPHIR_INIT_VAR(&_11$$12); ZEPHIR_CONCAT_SVSVS(&_11$$12, "Access '", access, "' does not exist in resource '", &resourceName, "'"); - ZEPHIR_CALL_METHOD(NULL, &_10$$12, "__construct", NULL, 9, &_11$$12); + ZEPHIR_CALL_METHOD(NULL, &_10$$12, "__construct", NULL, 4, &_11$$12); zephir_check_call_status(); zephir_throw_exception_debug(&_10$$12, "phalcon/acl/adapter/memory.zep", 439 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -28257,9 +26742,9 @@ static PHP_METHOD(Phalcon_Acl_Adapter_Memory, isAllowed) { if (Z_TYPE_P(&funcAccess) != IS_NULL) { ZEPHIR_INIT_VAR(&reflectionFunction); object_init_ex(&reflectionFunction, zephir_get_internal_ce(SL("reflectionfunction"))); - ZEPHIR_CALL_METHOD(NULL, &reflectionFunction, "__construct", NULL, 82, &funcAccess); + ZEPHIR_CALL_METHOD(NULL, &reflectionFunction, "__construct", NULL, 74, &funcAccess); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&reflectionParameters, &reflectionFunction, "getparameters", NULL, 83); + ZEPHIR_CALL_METHOD(&reflectionParameters, &reflectionFunction, "getparameters", NULL, 75); zephir_check_call_status(); ZEPHIR_INIT_VAR(¶meterNumber); ZVAL_LONG(¶meterNumber, zephir_fast_count_int(&reflectionParameters TSRMLS_CC)); @@ -28275,7 +26760,7 @@ static PHP_METHOD(Phalcon_Acl_Adapter_Memory, isAllowed) { } ZEPHIR_INIT_VAR(¶metersForFunction); array_init(¶metersForFunction); - ZEPHIR_CALL_METHOD(&numberOfRequiredParameters, &reflectionFunction, "getnumberofrequiredparameters", NULL, 84); + ZEPHIR_CALL_METHOD(&numberOfRequiredParameters, &reflectionFunction, "getnumberofrequiredparameters", NULL, 76); zephir_check_call_status(); ZEPHIR_CPY_WRT(&userParametersSizeShouldBe, ¶meterNumber); zephir_is_iterable(&reflectionParameters, 0, "phalcon/acl/adapter/memory.zep", 746); @@ -28335,7 +26820,7 @@ static PHP_METHOD(Phalcon_Acl_Adapter_Memory, isAllowed) { zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_27$$40); ZEPHIR_CONCAT_SVSVSVSVSVS(&_27$$40, "Your passed parameter doesn't have the same class as the parameter in defined function when check ", roleName, " can ", &access, " ", resourceName, ". Class passed: ", &_24$$40, " , Class in defined function: ", &_26$$40, "."); - ZEPHIR_CALL_METHOD(NULL, &_23$$40, "__construct", &_28, 9, &_27$$40); + ZEPHIR_CALL_METHOD(NULL, &_23$$40, "__construct", &_28, 4, &_27$$40); zephir_check_call_status(); zephir_throw_exception_debug(&_23$$40, "phalcon/acl/adapter/memory.zep", 736 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -28352,14 +26837,14 @@ static PHP_METHOD(Phalcon_Acl_Adapter_Memory, isAllowed) { ZEPHIR_INIT_VAR(&_30$$42); ZEPHIR_CONCAT_SVSVSVS(&_30$$42, "Number of parameters in array is higher than the number of parameters in defined function when check ", roleName, " can ", &access, " ", resourceName, ". Remember that more parameters than defined in function will be ignored."); ZVAL_LONG(&_31$$42, 512); - ZEPHIR_CALL_FUNCTION(NULL, "trigger_error", &_32, 2, &_30$$42, &_31$$42); + ZEPHIR_CALL_FUNCTION(NULL, "trigger_error", &_32, 1, &_30$$42, &_31$$42); zephir_check_call_status(); } if (zephir_fast_count_int(¶metersForFunction TSRMLS_CC) == 0) { if (ZEPHIR_GT_LONG(&numberOfRequiredParameters, 0)) { ZEPHIR_INIT_VAR(&_33$$44); ZEPHIR_CONCAT_SVSVSVS(&_33$$44, "You didn't provide any parameters when check ", roleName, " can ", &access, " ", resourceName, ". We will use default action when no arguments."); - ZEPHIR_CALL_FUNCTION(NULL, "trigger_error", &_32, 2, &_33$$44); + ZEPHIR_CALL_FUNCTION(NULL, "trigger_error", &_32, 1, &_33$$44); zephir_check_call_status(); _34$$44 = ZEPHIR_IS_LONG(&haveAccess, 1); if (_34$$44) { @@ -28391,7 +26876,7 @@ static PHP_METHOD(Phalcon_Acl_Adapter_Memory, isAllowed) { object_init_ex(&_40$$34, phalcon_acl_exception_ce); ZEPHIR_INIT_VAR(&_41$$34); ZEPHIR_CONCAT_SVSVSV(&_41$$34, "You didn't provide all necessary parameters for defined function when check ", roleName, " can ", &access, " ", resourceName); - ZEPHIR_CALL_METHOD(NULL, &_40$$34, "__construct", &_28, 9, &_41$$34); + ZEPHIR_CALL_METHOD(NULL, &_40$$34, "__construct", &_28, 4, &_41$$34); zephir_check_call_status(); zephir_throw_exception_debug(&_40$$34, "phalcon/acl/adapter/memory.zep", 775 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -28559,7 +27044,7 @@ static PHP_METHOD(Phalcon_Annotations_Adapter, get) { if (Z_TYPE_P(&parsedAnnotations) == IS_ARRAY) { ZEPHIR_INIT_NVAR(&classAnnotations); object_init_ex(&classAnnotations, phalcon_annotations_reflection_ce); - ZEPHIR_CALL_METHOD(NULL, &classAnnotations, "__construct", NULL, 15, &parsedAnnotations); + ZEPHIR_CALL_METHOD(NULL, &classAnnotations, "__construct", NULL, 10, &parsedAnnotations); zephir_check_call_status(); zephir_update_property_array(this_ptr, SL("_annotations"), &realClassName, &classAnnotations TSRMLS_CC); ZEPHIR_CALL_METHOD(NULL, this_ptr, "write", NULL, 0, &realClassName, &classAnnotations); @@ -28640,7 +27125,7 @@ static PHP_METHOD(Phalcon_Annotations_Adapter, getMethod) { } ZEPHIR_INIT_NVAR(&method); ZVAL_COPY(&method, _0$$4); - ZEPHIR_CALL_FUNCTION(&_3$$5, "strcasecmp", &_4, 16, &methodKey, &methodName); + ZEPHIR_CALL_FUNCTION(&_3$$5, "strcasecmp", &_4, 11, &methodKey, &methodName); zephir_check_call_status(); if (!(zephir_is_true(&_3$$5))) { RETURN_CCTOR(method); @@ -28651,7 +27136,7 @@ static PHP_METHOD(Phalcon_Annotations_Adapter, getMethod) { } } object_init_ex(return_value, phalcon_annotations_collection_ce); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 17); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 12); zephir_check_call_status(); RETURN_MM(); @@ -28717,7 +27202,7 @@ static PHP_METHOD(Phalcon_Annotations_Adapter, getProperty) { } } object_init_ex(return_value, phalcon_annotations_collection_ce); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 17); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 12); zephir_check_call_status(); RETURN_MM(); @@ -28898,7 +27383,7 @@ static PHP_METHOD(Phalcon_Annotations_Annotation, getExpression) { ZEPHIR_INIT_NVAR(&item); ZVAL_COPY(&item, _1$$7); zephir_array_fetch_string(&_2$$8, &item, SL("expr"), PH_NOISY | PH_READONLY, "phalcon/annotations/annotation.zep", 121 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&resolvedItem, this_ptr, "getexpression", &_3, 89, &_2$$8); + ZEPHIR_CALL_METHOD(&resolvedItem, this_ptr, "getexpression", &_3, 81, &_2$$8); zephir_check_call_status(); ZEPHIR_OBS_NVAR(&name); if (zephir_array_isset_string_fetch(&name, &item, SL("name"), 0)) { @@ -28912,7 +27397,7 @@ static PHP_METHOD(Phalcon_Annotations_Annotation, getExpression) { } if (ZEPHIR_IS_LONG(&type, 300)) { object_init_ex(return_value, phalcon_annotations_annotation_ce); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 90, &expr); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 82, &expr); zephir_check_call_status(); RETURN_MM(); } @@ -28920,7 +27405,7 @@ static PHP_METHOD(Phalcon_Annotations_Annotation, getExpression) { object_init_ex(&_4$$12, phalcon_annotations_exception_ce); ZEPHIR_INIT_VAR(&_5$$12); ZEPHIR_CONCAT_SVS(&_5$$12, "The expression ", &type, " is unknown"); - ZEPHIR_CALL_METHOD(NULL, &_4$$12, "__construct", NULL, 9, &_5$$12); + ZEPHIR_CALL_METHOD(NULL, &_4$$12, "__construct", NULL, 4, &_5$$12); zephir_check_call_status(); zephir_throw_exception_debug(&_4$$12, "phalcon/annotations/annotation.zep", 134 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -29012,11 +27497,11 @@ static PHP_METHOD(Phalcon_Annotations_Annotation, getNamedArgument) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(&name, name_param); } else { ZEPHIR_INIT_VAR(&name); @@ -29044,11 +27529,11 @@ static PHP_METHOD(Phalcon_Annotations_Annotation, getNamedParameter) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(&name, name_param); } else { ZEPHIR_INIT_VAR(&name); @@ -29127,7 +27612,7 @@ static PHP_METHOD(Phalcon_Annotations_Collection, __construct) { ZVAL_COPY(&annotationData, _1$$4); ZEPHIR_INIT_NVAR(&_2$$5); object_init_ex(&_2$$5, phalcon_annotations_annotation_ce); - ZEPHIR_CALL_METHOD(NULL, &_2$$5, "__construct", &_3, 90, &annotationData); + ZEPHIR_CALL_METHOD(NULL, &_2$$5, "__construct", &_3, 82, &annotationData); zephir_check_call_status(); zephir_array_append(&annotations, &_2$$5, PH_SEPARATE, "phalcon/annotations/collection.zep", 66); } ZEND_HASH_FOREACH_END(); @@ -29266,7 +27751,7 @@ static PHP_METHOD(Phalcon_Annotations_Collection, get) { object_init_ex(&_2, phalcon_annotations_exception_ce); ZEPHIR_INIT_VAR(&_3); ZEPHIR_CONCAT_SVS(&_3, "Collection doesn't have an annotation called '", &name, "'"); - ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", NULL, 9, &_3); + ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", NULL, 4, &_3); zephir_check_call_status(); zephir_throw_exception_debug(&_2, "phalcon/annotations/collection.zep", 149 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -31750,15 +30235,15 @@ static PHP_METHOD(Phalcon_Annotations_Reader, parse) { array_init(&annotations); ZEPHIR_INIT_VAR(&reflection); object_init_ex(&reflection, zephir_get_internal_ce(SL("reflectionclass"))); - ZEPHIR_CALL_METHOD(NULL, &reflection, "__construct", NULL, 91, &className); + ZEPHIR_CALL_METHOD(NULL, &reflection, "__construct", NULL, 83, &className); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&comment, &reflection, "getdoccomment", NULL, 92); + ZEPHIR_CALL_METHOD(&comment, &reflection, "getdoccomment", NULL, 84); zephir_check_call_status(); if (Z_TYPE_P(&comment) == IS_STRING) { ZEPHIR_INIT_VAR(&classAnnotations); - ZEPHIR_CALL_METHOD(&_0$$3, &reflection, "getfilename", NULL, 93); + ZEPHIR_CALL_METHOD(&_0$$3, &reflection, "getfilename", NULL, 85); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_1$$3, &reflection, "getstartline", NULL, 94); + ZEPHIR_CALL_METHOD(&_1$$3, &reflection, "getstartline", NULL, 86); zephir_check_call_status(); ZEPHIR_LAST_CALL_STATUS = phannot_parse_annotations(&classAnnotations, &comment, &_0$$3, &_1$$3 TSRMLS_CC); zephir_check_call_status(); @@ -31766,7 +30251,7 @@ static PHP_METHOD(Phalcon_Annotations_Reader, parse) { zephir_array_update_string(&annotations, SL("class"), &classAnnotations, PH_COPY | PH_SEPARATE); } } - ZEPHIR_CALL_METHOD(&properties, &reflection, "getproperties", NULL, 95); + ZEPHIR_CALL_METHOD(&properties, &reflection, "getproperties", NULL, 87); zephir_check_call_status(); if (zephir_fast_count_int(&properties TSRMLS_CC)) { line = 1; @@ -31781,7 +30266,7 @@ static PHP_METHOD(Phalcon_Annotations_Reader, parse) { zephir_check_call_status(); if (Z_TYPE_P(&comment) == IS_STRING) { ZEPHIR_INIT_NVAR(&propertyAnnotations); - ZEPHIR_CALL_METHOD(&_3$$7, &reflection, "getfilename", NULL, 93); + ZEPHIR_CALL_METHOD(&_3$$7, &reflection, "getfilename", NULL, 85); zephir_check_call_status(); ZVAL_LONG(&_4$$7, line); ZEPHIR_LAST_CALL_STATUS = phannot_parse_annotations(&propertyAnnotations, &comment, &_3$$7, &_4$$7 TSRMLS_CC); @@ -31798,7 +30283,7 @@ static PHP_METHOD(Phalcon_Annotations_Reader, parse) { zephir_array_update_string(&annotations, SL("properties"), &annotationsProperties, PH_COPY | PH_SEPARATE); } } - ZEPHIR_CALL_METHOD(&methods, &reflection, "getmethods", NULL, 96); + ZEPHIR_CALL_METHOD(&methods, &reflection, "getmethods", NULL, 88); zephir_check_call_status(); if (zephir_fast_count_int(&methods TSRMLS_CC)) { ZEPHIR_INIT_VAR(&annotationsMethods); @@ -31963,7 +30448,7 @@ static PHP_METHOD(Phalcon_Annotations_Reflection, getClassAnnotations) { if (zephir_array_isset_string_fetch(&reflectionClass, &_0$$3, SL("class"), 1)) { ZEPHIR_INIT_VAR(&collection); object_init_ex(&collection, phalcon_annotations_collection_ce); - ZEPHIR_CALL_METHOD(NULL, &collection, "__construct", NULL, 17, &reflectionClass); + ZEPHIR_CALL_METHOD(NULL, &collection, "__construct", NULL, 12, &reflectionClass); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_classAnnotations"), &collection); RETURN_CCTOR(collection); @@ -32022,7 +30507,7 @@ static PHP_METHOD(Phalcon_Annotations_Reflection, getMethodsAnnotations) { ZVAL_COPY(&reflectionMethod, _1$$5); ZEPHIR_INIT_NVAR(&_4$$6); object_init_ex(&_4$$6, phalcon_annotations_collection_ce); - ZEPHIR_CALL_METHOD(NULL, &_4$$6, "__construct", &_5, 17, &reflectionMethod); + ZEPHIR_CALL_METHOD(NULL, &_4$$6, "__construct", &_5, 12, &reflectionMethod); zephir_check_call_status(); zephir_array_update_zval(&collections, &methodName, &_4$$6, PH_COPY | PH_SEPARATE); } ZEND_HASH_FOREACH_END(); @@ -32086,7 +30571,7 @@ static PHP_METHOD(Phalcon_Annotations_Reflection, getPropertiesAnnotations) { ZVAL_COPY(&reflectionProperty, _1$$5); ZEPHIR_INIT_NVAR(&_4$$6); object_init_ex(&_4$$6, phalcon_annotations_collection_ce); - ZEPHIR_CALL_METHOD(NULL, &_4$$6, "__construct", &_5, 17, &reflectionProperty); + ZEPHIR_CALL_METHOD(NULL, &_4$$6, "__construct", &_5, 12, &reflectionProperty); zephir_check_call_status(); zephir_array_update_zval(&collections, &property, &_4$$6, PH_COPY | PH_SEPARATE); } ZEND_HASH_FOREACH_END(); @@ -32133,13 +30618,13 @@ static PHP_METHOD(Phalcon_Annotations_Reflection, __set_state) { if (Z_TYPE_P(data) == IS_ARRAY) { if (zephir_array_isset_string_fetch(&reflectionData, data, SL("_reflectionData"), 1)) { object_init_ex(return_value, phalcon_annotations_reflection_ce); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 15, &reflectionData); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 10, &reflectionData); zephir_check_call_status(); RETURN_MM(); } } object_init_ex(return_value, phalcon_annotations_reflection_ce); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 15); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 10); zephir_check_call_status(); RETURN_MM(); @@ -33219,11 +31704,11 @@ static PHP_METHOD(Phalcon_Annotations_Adapter_Apc, read) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &key_param); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(&key, key_param); } else { ZEPHIR_INIT_VAR(&key); @@ -33236,7 +31721,7 @@ static PHP_METHOD(Phalcon_Annotations_Adapter_Apc, read) { ZEPHIR_INIT_VAR(&_2); ZEPHIR_CONCAT_SVV(&_2, "_PHAN", &_1, &key); zephir_fast_strtolower(&_0, &_2); - ZEPHIR_RETURN_CALL_FUNCTION("apc_fetch", NULL, 85, &_0); + ZEPHIR_RETURN_CALL_FUNCTION("apc_fetch", NULL, 77, &_0); zephir_check_call_status(); RETURN_MM(); @@ -33259,11 +31744,11 @@ static PHP_METHOD(Phalcon_Annotations_Adapter_Apc, write) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &key_param, &data); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(&key, key_param); } else { ZEPHIR_INIT_VAR(&key); @@ -33277,7 +31762,7 @@ static PHP_METHOD(Phalcon_Annotations_Adapter_Apc, write) { ZEPHIR_CONCAT_SVV(&_2, "_PHAN", &_1, &key); zephir_fast_strtolower(&_0, &_2); zephir_read_property(&_3, this_ptr, SL("_ttl"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_RETURN_CALL_FUNCTION("apc_store", NULL, 86, &_0, data, &_3); + ZEPHIR_RETURN_CALL_FUNCTION("apc_store", NULL, 78, &_0, data, &_3); zephir_check_call_status(); RETURN_MM(); @@ -33384,11 +31869,11 @@ static PHP_METHOD(Phalcon_Annotations_Adapter_Files, write) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &key_param, &data); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(&key, key_param); } else { ZEPHIR_INIT_VAR(&key); @@ -33452,11 +31937,11 @@ static PHP_METHOD(Phalcon_Annotations_Adapter_Memory, read) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &key_param); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(&key, key_param); } else { ZEPHIR_INIT_VAR(&key); @@ -33487,11 +31972,11 @@ static PHP_METHOD(Phalcon_Annotations_Adapter_Memory, write) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &key_param, &data); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(&key, key_param); } else { ZEPHIR_INIT_VAR(&key); @@ -33540,11 +32025,11 @@ static PHP_METHOD(Phalcon_Annotations_Adapter_Xcache, read) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &key_param); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(&key, key_param); } else { ZEPHIR_INIT_VAR(&key); @@ -33556,10 +32041,10 @@ static PHP_METHOD(Phalcon_Annotations_Adapter_Xcache, read) { ZEPHIR_INIT_VAR(&_1); ZEPHIR_CONCAT_SV(&_1, "_PHAN", &key); zephir_fast_strtolower(&_0, &_1); - ZEPHIR_CALL_FUNCTION(&serialized, "xcache_get", NULL, 87, &_0); + ZEPHIR_CALL_FUNCTION(&serialized, "xcache_get", NULL, 79, &_0); zephir_check_call_status(); if (Z_TYPE_P(&serialized) == IS_STRING) { - ZEPHIR_CALL_FUNCTION(&data, "unserialize", NULL, 66, &serialized); + ZEPHIR_CALL_FUNCTION(&data, "unserialize", NULL, 60, &serialized); zephir_check_call_status(); if (Z_TYPE_P(&data) == IS_OBJECT) { RETURN_CCTOR(data); @@ -33585,11 +32070,11 @@ static PHP_METHOD(Phalcon_Annotations_Adapter_Xcache, write) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &key_param, &data); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(&key, key_param); } else { ZEPHIR_INIT_VAR(&key); @@ -33601,9 +32086,9 @@ static PHP_METHOD(Phalcon_Annotations_Adapter_Xcache, write) { ZEPHIR_INIT_VAR(&_1); ZEPHIR_CONCAT_SV(&_1, "_PHAN", &key); zephir_fast_strtolower(&_0, &_1); - ZEPHIR_CALL_FUNCTION(&_2, "serialize", NULL, 65, data); + ZEPHIR_CALL_FUNCTION(&_2, "serialize", NULL, 59, data); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(NULL, "xcache_set", NULL, 88, &_0, &_2); + ZEPHIR_CALL_FUNCTION(NULL, "xcache_set", NULL, 80, &_0, &_2); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -33833,11 +32318,11 @@ static PHP_METHOD(Phalcon_Assets_Collection, addCss) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 3, &path_param, &local, &filter_param, &attributes); - if (unlikely(Z_TYPE_P(path_param) != IS_STRING && Z_TYPE_P(path_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(path_param) != IS_STRING && Z_TYPE_P(path_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'path' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(path_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(path_param) == IS_STRING)) { zephir_get_strval(&path, path_param); } else { ZEPHIR_INIT_VAR(&path); @@ -33877,7 +32362,7 @@ static PHP_METHOD(Phalcon_Assets_Collection, addCss) { } else { ZVAL_BOOL(&_1, 0); } - ZEPHIR_CALL_METHOD(NULL, &_0, "__construct", NULL, 97, &path, &collectionLocal, &_1, &collectionAttributes); + ZEPHIR_CALL_METHOD(NULL, &_0, "__construct", NULL, 89, &path, &collectionLocal, &_1, &collectionAttributes); zephir_check_call_status(); zephir_update_property_array_append(this_ptr, SL("_resources"), &_0 TSRMLS_CC); RETURN_THIS(); @@ -33927,7 +32412,7 @@ static PHP_METHOD(Phalcon_Assets_Collection, addInlineCss) { } else { ZVAL_BOOL(&_1, 0); } - ZEPHIR_CALL_METHOD(NULL, &_0, "__construct", NULL, 98, &content, &_1, &collectionAttributes); + ZEPHIR_CALL_METHOD(NULL, &_0, "__construct", NULL, 90, &content, &_1, &collectionAttributes); zephir_check_call_status(); zephir_update_property_array_append(this_ptr, SL("_codes"), &_0 TSRMLS_CC); RETURN_THIS(); @@ -33954,11 +32439,11 @@ static PHP_METHOD(Phalcon_Assets_Collection, addJs) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 3, &path_param, &local, &filter_param, &attributes); - if (unlikely(Z_TYPE_P(path_param) != IS_STRING && Z_TYPE_P(path_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(path_param) != IS_STRING && Z_TYPE_P(path_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'path' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(path_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(path_param) == IS_STRING)) { zephir_get_strval(&path, path_param); } else { ZEPHIR_INIT_VAR(&path); @@ -33998,7 +32483,7 @@ static PHP_METHOD(Phalcon_Assets_Collection, addJs) { } else { ZVAL_BOOL(&_1, 0); } - ZEPHIR_CALL_METHOD(NULL, &_0, "__construct", NULL, 99, &path, &collectionLocal, &_1, &collectionAttributes); + ZEPHIR_CALL_METHOD(NULL, &_0, "__construct", NULL, 91, &path, &collectionLocal, &_1, &collectionAttributes); zephir_check_call_status(); zephir_update_property_array_append(this_ptr, SL("_resources"), &_0 TSRMLS_CC); RETURN_THIS(); @@ -34048,7 +32533,7 @@ static PHP_METHOD(Phalcon_Assets_Collection, addInlineJs) { } else { ZVAL_BOOL(&_1, 0); } - ZEPHIR_CALL_METHOD(NULL, &_0, "__construct", NULL, 100, &content, &_1, &collectionAttributes); + ZEPHIR_CALL_METHOD(NULL, &_0, "__construct", NULL, 92, &content, &_1, &collectionAttributes); zephir_check_call_status(); zephir_update_property_array_append(this_ptr, SL("_codes"), &_0 TSRMLS_CC); RETURN_THIS(); @@ -34145,11 +32630,11 @@ static PHP_METHOD(Phalcon_Assets_Collection, setTargetPath) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &targetPath_param); - if (unlikely(Z_TYPE_P(targetPath_param) != IS_STRING && Z_TYPE_P(targetPath_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(targetPath_param) != IS_STRING && Z_TYPE_P(targetPath_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'targetPath' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(targetPath_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(targetPath_param) == IS_STRING)) { zephir_get_strval(&targetPath, targetPath_param); } else { ZEPHIR_INIT_VAR(&targetPath); @@ -34173,11 +32658,11 @@ static PHP_METHOD(Phalcon_Assets_Collection, setSourcePath) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &sourcePath_param); - if (unlikely(Z_TYPE_P(sourcePath_param) != IS_STRING && Z_TYPE_P(sourcePath_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(sourcePath_param) != IS_STRING && Z_TYPE_P(sourcePath_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'sourcePath' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(sourcePath_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(sourcePath_param) == IS_STRING)) { zephir_get_strval(&sourcePath, sourcePath_param); } else { ZEPHIR_INIT_VAR(&sourcePath); @@ -34201,11 +32686,11 @@ static PHP_METHOD(Phalcon_Assets_Collection, setTargetUri) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &targetUri_param); - if (unlikely(Z_TYPE_P(targetUri_param) != IS_STRING && Z_TYPE_P(targetUri_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(targetUri_param) != IS_STRING && Z_TYPE_P(targetUri_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'targetUri' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(targetUri_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(targetUri_param) == IS_STRING)) { zephir_get_strval(&targetUri, targetUri_param); } else { ZEPHIR_INIT_VAR(&targetUri); @@ -34229,11 +32714,11 @@ static PHP_METHOD(Phalcon_Assets_Collection, setPrefix) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &prefix_param); - if (unlikely(Z_TYPE_P(prefix_param) != IS_STRING && Z_TYPE_P(prefix_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(prefix_param) != IS_STRING && Z_TYPE_P(prefix_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'prefix' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(prefix_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(prefix_param) == IS_STRING)) { zephir_get_strval(&prefix, prefix_param); } else { ZEPHIR_INIT_VAR(&prefix); @@ -34257,7 +32742,7 @@ static PHP_METHOD(Phalcon_Assets_Collection, setLocal) { zephir_fetch_params(0, 1, 0, &local_param); - if (unlikely(Z_TYPE_P(local_param) != IS_TRUE && Z_TYPE_P(local_param) != IS_FALSE)) { + if (UNEXPECTED(Z_TYPE_P(local_param) != IS_TRUE && Z_TYPE_P(local_param) != IS_FALSE)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'local' must be a bool") TSRMLS_CC); RETURN_NULL(); } @@ -34322,7 +32807,7 @@ static PHP_METHOD(Phalcon_Assets_Collection, setTargetLocal) { zephir_fetch_params(0, 1, 0, &targetLocal_param); - if (unlikely(Z_TYPE_P(targetLocal_param) != IS_TRUE && Z_TYPE_P(targetLocal_param) != IS_FALSE)) { + if (UNEXPECTED(Z_TYPE_P(targetLocal_param) != IS_TRUE && Z_TYPE_P(targetLocal_param) != IS_FALSE)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'targetLocal' must be a bool") TSRMLS_CC); RETURN_NULL(); } @@ -34375,11 +32860,11 @@ static PHP_METHOD(Phalcon_Assets_Collection, getRealTargetPath) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &basePath_param); - if (unlikely(Z_TYPE_P(basePath_param) != IS_STRING && Z_TYPE_P(basePath_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(basePath_param) != IS_STRING && Z_TYPE_P(basePath_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'basePath' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(basePath_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(basePath_param) == IS_STRING)) { zephir_get_strval(&basePath, basePath_param); } else { ZEPHIR_INIT_VAR(&basePath); @@ -34392,7 +32877,7 @@ static PHP_METHOD(Phalcon_Assets_Collection, getRealTargetPath) { ZEPHIR_INIT_VAR(&completePath); ZEPHIR_CONCAT_VV(&completePath, &basePath, &targetPath); if ((zephir_file_exists(&completePath TSRMLS_CC) == SUCCESS)) { - ZEPHIR_RETURN_CALL_FUNCTION("realpath", NULL, 64, &completePath); + ZEPHIR_RETURN_CALL_FUNCTION("realpath", NULL, 58, &completePath); zephir_check_call_status(); RETURN_MM(); } @@ -34784,11 +33269,11 @@ static PHP_METHOD(Phalcon_Assets_Manager, addCss) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 3, &path_param, &local, &filter, &attributes); - if (unlikely(Z_TYPE_P(path_param) != IS_STRING && Z_TYPE_P(path_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(path_param) != IS_STRING && Z_TYPE_P(path_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'path' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(path_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(path_param) == IS_STRING)) { zephir_get_strval(&path, path_param); } else { ZEPHIR_INIT_VAR(&path); @@ -34810,7 +33295,7 @@ static PHP_METHOD(Phalcon_Assets_Manager, addCss) { ZEPHIR_INIT_VAR(&_0); object_init_ex(&_0, phalcon_assets_resource_css_ce); - ZEPHIR_CALL_METHOD(NULL, &_0, "__construct", NULL, 97, &path, local, filter, attributes); + ZEPHIR_CALL_METHOD(NULL, &_0, "__construct", NULL, 89, &path, local, filter, attributes); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_1); ZVAL_STRING(&_1, "css"); @@ -34851,7 +33336,7 @@ static PHP_METHOD(Phalcon_Assets_Manager, addInlineCss) { ZEPHIR_INIT_VAR(&_0); object_init_ex(&_0, phalcon_assets_inline_css_ce); - ZEPHIR_CALL_METHOD(NULL, &_0, "__construct", NULL, 98, &content, filter, attributes); + ZEPHIR_CALL_METHOD(NULL, &_0, "__construct", NULL, 90, &content, filter, attributes); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_1); ZVAL_STRING(&_1, "css"); @@ -34880,11 +33365,11 @@ static PHP_METHOD(Phalcon_Assets_Manager, addJs) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 3, &path_param, &local, &filter, &attributes); - if (unlikely(Z_TYPE_P(path_param) != IS_STRING && Z_TYPE_P(path_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(path_param) != IS_STRING && Z_TYPE_P(path_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'path' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(path_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(path_param) == IS_STRING)) { zephir_get_strval(&path, path_param); } else { ZEPHIR_INIT_VAR(&path); @@ -34906,7 +33391,7 @@ static PHP_METHOD(Phalcon_Assets_Manager, addJs) { ZEPHIR_INIT_VAR(&_0); object_init_ex(&_0, phalcon_assets_resource_js_ce); - ZEPHIR_CALL_METHOD(NULL, &_0, "__construct", NULL, 99, &path, local, filter, attributes); + ZEPHIR_CALL_METHOD(NULL, &_0, "__construct", NULL, 91, &path, local, filter, attributes); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_1); ZVAL_STRING(&_1, "js"); @@ -34947,7 +33432,7 @@ static PHP_METHOD(Phalcon_Assets_Manager, addInlineJs) { ZEPHIR_INIT_VAR(&_0); object_init_ex(&_0, phalcon_assets_inline_js_ce); - ZEPHIR_CALL_METHOD(NULL, &_0, "__construct", NULL, 100, &content, filter, attributes); + ZEPHIR_CALL_METHOD(NULL, &_0, "__construct", NULL, 92, &content, filter, attributes); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_1); ZVAL_STRING(&_1, "js"); @@ -34972,11 +33457,11 @@ static PHP_METHOD(Phalcon_Assets_Manager, addResourceByType) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &type_param, &resource); - if (unlikely(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'type' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(type_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(type_param) == IS_STRING)) { zephir_get_strval(&type, type_param); } else { ZEPHIR_INIT_VAR(&type); @@ -34995,7 +33480,7 @@ static PHP_METHOD(Phalcon_Assets_Manager, addResourceByType) { } zephir_update_property_array(this_ptr, SL("_collections"), &type, &collection TSRMLS_CC); } - ZEPHIR_CALL_METHOD(NULL, &collection, "add", NULL, 102, resource); + ZEPHIR_CALL_METHOD(NULL, &collection, "add", NULL, 93, resource); zephir_check_call_status(); RETURN_THIS(); @@ -35016,11 +33501,11 @@ static PHP_METHOD(Phalcon_Assets_Manager, addInlineCodeByType) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &type_param, &code); - if (unlikely(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'type' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(type_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(type_param) == IS_STRING)) { zephir_get_strval(&type, type_param); } else { ZEPHIR_INIT_VAR(&type); @@ -35039,7 +33524,7 @@ static PHP_METHOD(Phalcon_Assets_Manager, addInlineCodeByType) { } zephir_update_property_array(this_ptr, SL("_collections"), &type, &collection TSRMLS_CC); } - ZEPHIR_CALL_METHOD(NULL, &collection, "addinline", NULL, 103, code); + ZEPHIR_CALL_METHOD(NULL, &collection, "addinline", NULL, 94, code); zephir_check_call_status(); RETURN_THIS(); @@ -35101,11 +33586,11 @@ static PHP_METHOD(Phalcon_Assets_Manager, set) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &id_param, &collection); - if (unlikely(Z_TYPE_P(id_param) != IS_STRING && Z_TYPE_P(id_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(id_param) != IS_STRING && Z_TYPE_P(id_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'id' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(id_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(id_param) == IS_STRING)) { zephir_get_strval(&id, id_param); } else { ZEPHIR_INIT_VAR(&id); @@ -35131,11 +33616,11 @@ static PHP_METHOD(Phalcon_Assets_Manager, get) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &id_param); - if (unlikely(Z_TYPE_P(id_param) != IS_STRING && Z_TYPE_P(id_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(id_param) != IS_STRING && Z_TYPE_P(id_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'id' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(id_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(id_param) == IS_STRING)) { zephir_get_strval(&id, id_param); } else { ZEPHIR_INIT_VAR(&id); @@ -35343,20 +33828,20 @@ static PHP_METHOD(Phalcon_Assets_Manager, output) { object_init_ex(&_0$$10, phalcon_assets_exception_ce); ZEPHIR_INIT_VAR(&_1$$10); ZEPHIR_CONCAT_SVS(&_1$$10, "Path '", &completeTargetPath, "' is not a valid target path (1)"); - ZEPHIR_CALL_METHOD(NULL, &_0$$10, "__construct", NULL, 9, &_1$$10); + ZEPHIR_CALL_METHOD(NULL, &_0$$10, "__construct", NULL, 4, &_1$$10); zephir_check_call_status(); zephir_throw_exception_debug(&_0$$10, "phalcon/assets/manager.zep", 396 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } - ZEPHIR_CALL_FUNCTION(&_2$$9, "is_dir", NULL, 104, &completeTargetPath); + ZEPHIR_CALL_FUNCTION(&_2$$9, "is_dir", NULL, 95, &completeTargetPath); zephir_check_call_status(); if (zephir_is_true(&_2$$9)) { ZEPHIR_INIT_VAR(&_3$$11); object_init_ex(&_3$$11, phalcon_assets_exception_ce); ZEPHIR_INIT_VAR(&_4$$11); ZEPHIR_CONCAT_SVS(&_4$$11, "Path '", &completeTargetPath, "' is not a valid target path (2), is dir."); - ZEPHIR_CALL_METHOD(NULL, &_3$$11, "__construct", NULL, 9, &_4$$11); + ZEPHIR_CALL_METHOD(NULL, &_3$$11, "__construct", NULL, 4, &_4$$11); zephir_check_call_status(); zephir_throw_exception_debug(&_3$$11, "phalcon/assets/manager.zep", 400 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -35385,7 +33870,7 @@ static PHP_METHOD(Phalcon_Assets_Manager, output) { object_init_ex(&_6$$15, phalcon_assets_exception_ce); ZEPHIR_INIT_LNVAR(_7$$15); ZEPHIR_CONCAT_SVS(&_7$$15, "Resource '", &sourcePath, "' does not have a valid source path"); - ZEPHIR_CALL_METHOD(NULL, &_6$$15, "__construct", NULL, 9, &_7$$15); + ZEPHIR_CALL_METHOD(NULL, &_6$$15, "__construct", NULL, 4, &_7$$15); zephir_check_call_status(); zephir_throw_exception_debug(&_6$$15, "phalcon/assets/manager.zep", 434 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -35403,7 +33888,7 @@ static PHP_METHOD(Phalcon_Assets_Manager, output) { object_init_ex(&_8$$17, phalcon_assets_exception_ce); ZEPHIR_INIT_LNVAR(_9$$17); ZEPHIR_CONCAT_SVS(&_9$$17, "Resource '", &sourcePath, "' does not have a valid target path"); - ZEPHIR_CALL_METHOD(NULL, &_8$$17, "__construct", NULL, 9, &_9$$17); + ZEPHIR_CALL_METHOD(NULL, &_8$$17, "__construct", NULL, 4, &_9$$17); zephir_check_call_status(); zephir_throw_exception_debug(&_8$$17, "phalcon/assets/manager.zep", 458 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -35415,7 +33900,7 @@ static PHP_METHOD(Phalcon_Assets_Manager, output) { object_init_ex(&_10$$19, phalcon_assets_exception_ce); ZEPHIR_INIT_LNVAR(_11$$19); ZEPHIR_CONCAT_SVS(&_11$$19, "Resource '", &targetPath, "' have the same source and target paths"); - ZEPHIR_CALL_METHOD(NULL, &_10$$19, "__construct", NULL, 9, &_11$$19); + ZEPHIR_CALL_METHOD(NULL, &_10$$19, "__construct", NULL, 4, &_11$$19); zephir_check_call_status(); zephir_throw_exception_debug(&_10$$19, "phalcon/assets/manager.zep", 467 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -35864,11 +34349,11 @@ static PHP_METHOD(Phalcon_Assets_Manager, exists) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &id_param); - if (unlikely(Z_TYPE_P(id_param) != IS_STRING && Z_TYPE_P(id_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(id_param) != IS_STRING && Z_TYPE_P(id_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'id' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(id_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(id_param) == IS_STRING)) { zephir_get_strval(&id, id_param); } else { ZEPHIR_INIT_VAR(&id); @@ -36244,7 +34729,7 @@ static PHP_METHOD(Phalcon_Assets_Resource, getContent) { object_init_ex(&_1$$5, phalcon_assets_exception_ce); ZEPHIR_INIT_VAR(&_2$$5); ZEPHIR_CONCAT_SVS(&_2$$5, "Resource's content for '", &completePath, "' cannot be read"); - ZEPHIR_CALL_METHOD(NULL, &_1$$5, "__construct", NULL, 9, &_2$$5); + ZEPHIR_CALL_METHOD(NULL, &_1$$5, "__construct", NULL, 4, &_2$$5); zephir_check_call_status(); zephir_throw_exception_debug(&_1$$5, "phalcon/assets/resource.zep", 183 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -36258,7 +34743,7 @@ static PHP_METHOD(Phalcon_Assets_Resource, getContent) { object_init_ex(&_3$$6, phalcon_assets_exception_ce); ZEPHIR_INIT_VAR(&_4$$6); ZEPHIR_CONCAT_SVS(&_4$$6, "Resource's content for '", &completePath, "' cannot be read"); - ZEPHIR_CALL_METHOD(NULL, &_3$$6, "__construct", NULL, 9, &_4$$6); + ZEPHIR_CALL_METHOD(NULL, &_3$$6, "__construct", NULL, 4, &_4$$6); zephir_check_call_status(); zephir_throw_exception_debug(&_3$$6, "phalcon/assets/resource.zep", 192 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -36320,7 +34805,7 @@ static PHP_METHOD(Phalcon_Assets_Resource, getRealSourcePath) { if (zephir_is_true(&_0)) { ZEPHIR_INIT_VAR(&_1$$4); ZEPHIR_CONCAT_VV(&_1$$4, &basePath, &sourcePath); - ZEPHIR_RETURN_CALL_FUNCTION("realpath", NULL, 64, &_1$$4); + ZEPHIR_RETURN_CALL_FUNCTION("realpath", NULL, 58, &_1$$4); zephir_check_call_status(); RETURN_MM(); } @@ -36362,7 +34847,7 @@ static PHP_METHOD(Phalcon_Assets_Resource, getRealTargetPath) { ZEPHIR_INIT_VAR(&completePath); ZEPHIR_CONCAT_VV(&completePath, &basePath, &targetPath); if ((zephir_file_exists(&completePath TSRMLS_CC) == SUCCESS)) { - ZEPHIR_RETURN_CALL_FUNCTION("realpath", NULL, 64, &completePath); + ZEPHIR_RETURN_CALL_FUNCTION("realpath", NULL, 58, &completePath); zephir_check_call_status(); RETURN_MM(); } @@ -36402,11 +34887,11 @@ static PHP_METHOD(Phalcon_Assets_Filters_Cssmin, filter) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &content_param); - if (unlikely(Z_TYPE_P(content_param) != IS_STRING && Z_TYPE_P(content_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(content_param) != IS_STRING && Z_TYPE_P(content_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'content' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(content_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(content_param) == IS_STRING)) { zephir_get_strval(&content, content_param); } else { ZEPHIR_INIT_VAR(&content); @@ -36739,11 +35224,11 @@ static PHP_METHOD(Phalcon_Assets_Filters_Jsmin, filter) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &content_param); - if (unlikely(Z_TYPE_P(content_param) != IS_STRING && Z_TYPE_P(content_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(content_param) != IS_STRING && Z_TYPE_P(content_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'content' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(content_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(content_param) == IS_STRING)) { zephir_get_strval(&content, content_param); } else { ZEPHIR_INIT_VAR(&content); @@ -37197,11 +35682,11 @@ static PHP_METHOD(Phalcon_Assets_Filters_None, filter) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &content_param); - if (unlikely(Z_TYPE_P(content_param) != IS_STRING && Z_TYPE_P(content_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(content_param) != IS_STRING && Z_TYPE_P(content_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'content' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(content_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(content_param) == IS_STRING)) { zephir_get_strval(&content, content_param); } else { ZEPHIR_INIT_VAR(&content); @@ -37275,7 +35760,7 @@ static PHP_METHOD(Phalcon_Assets_Inline_Css, __construct) { } else { ZVAL_BOOL(&_2, 0); } - ZEPHIR_CALL_PARENT(NULL, phalcon_assets_inline_css_ce, this_ptr, "__construct", &_0, 101, &_1, &content, &_2, attributes); + ZEPHIR_CALL_PARENT(NULL, phalcon_assets_inline_css_ce, this_ptr, "__construct", &_0, 0, &_1, &content, &_2, attributes); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -37343,7 +35828,7 @@ static PHP_METHOD(Phalcon_Assets_Inline_Js, __construct) { } else { ZVAL_BOOL(&_2, 0); } - ZEPHIR_CALL_PARENT(NULL, phalcon_assets_inline_js_ce, this_ptr, "__construct", &_0, 101, &_1, &content, &_2, attributes); + ZEPHIR_CALL_PARENT(NULL, phalcon_assets_inline_js_ce, this_ptr, "__construct", &_0, 0, &_1, &content, &_2, attributes); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -37386,11 +35871,11 @@ static PHP_METHOD(Phalcon_Assets_Resource_Css, __construct) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 3, &path_param, &local_param, &filter_param, &attributes); - if (unlikely(Z_TYPE_P(path_param) != IS_STRING && Z_TYPE_P(path_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(path_param) != IS_STRING && Z_TYPE_P(path_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'path' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(path_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(path_param) == IS_STRING)) { zephir_get_strval(&path, path_param); } else { ZEPHIR_INIT_VAR(&path); @@ -37424,7 +35909,7 @@ static PHP_METHOD(Phalcon_Assets_Resource_Css, __construct) { } else { ZVAL_BOOL(&_3, 0); } - ZEPHIR_CALL_PARENT(NULL, phalcon_assets_resource_css_ce, this_ptr, "__construct", &_0, 105, &_1, &path, &_2, &_3, attributes); + ZEPHIR_CALL_PARENT(NULL, phalcon_assets_resource_css_ce, this_ptr, "__construct", &_0, 0, &_1, &path, &_2, &_3, attributes); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -37482,7 +35967,7 @@ static PHP_METHOD(Phalcon_Assets_Resource_Js, __construct) { ZEPHIR_INIT_VAR(&_1); ZVAL_STRING(&_1, "js"); - ZEPHIR_CALL_PARENT(NULL, phalcon_assets_resource_js_ce, this_ptr, "__construct", &_0, 105, &_1, path, local, filter, attributes); + ZEPHIR_CALL_PARENT(NULL, phalcon_assets_resource_js_ce, this_ptr, "__construct", &_0, 0, &_1, path, local, filter, attributes); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -38154,7 +36639,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_Apc, get) { ZEPHIR_INIT_VAR(&prefixedKey); ZEPHIR_CONCAT_SVV(&prefixedKey, "_PHCA", &_0, &keyName); zephir_update_property_zval(this_ptr, SL("_lastKey"), &prefixedKey); - ZEPHIR_CALL_FUNCTION(&cachedContent, "apc_fetch", NULL, 85, &prefixedKey); + ZEPHIR_CALL_FUNCTION(&cachedContent, "apc_fetch", NULL, 77, &prefixedKey); zephir_check_call_status(); if (ZEPHIR_IS_FALSE_IDENTICAL(&cachedContent)) { RETURN_MM_NULL(); @@ -38251,7 +36736,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_Apc, save) { } else { ZEPHIR_CPY_WRT(&ttl, lifetime); } - ZEPHIR_CALL_FUNCTION(&success, "apc_store", NULL, 86, &lastKey, &preparedContent, &ttl); + ZEPHIR_CALL_FUNCTION(&success, "apc_store", NULL, 78, &lastKey, &preparedContent, &ttl); zephir_check_call_status(); if (!(zephir_is_true(&success))) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_cache_exception_ce, "Failed storing data in apc", "phalcon/cache/backend/apc.zep", 132); @@ -38309,11 +36794,11 @@ static PHP_METHOD(Phalcon_Cache_Backend_Apc, increment) { zephir_update_property_zval(this_ptr, SL("_lastKey"), &prefixedKey); if ((zephir_function_exists_ex(SL("apc_inc") TSRMLS_CC) == SUCCESS)) { ZVAL_LONG(&_1$$3, value); - ZEPHIR_CALL_FUNCTION(&result, "apc_inc", NULL, 106, &prefixedKey, &_1$$3); + ZEPHIR_CALL_FUNCTION(&result, "apc_inc", NULL, 96, &prefixedKey, &_1$$3); zephir_check_call_status(); RETURN_CCTOR(result); } else { - ZEPHIR_CALL_FUNCTION(&cachedContent, "apc_fetch", NULL, 85, &prefixedKey); + ZEPHIR_CALL_FUNCTION(&cachedContent, "apc_fetch", NULL, 77, &prefixedKey); zephir_check_call_status(); if (zephir_is_numeric(&cachedContent)) { ZEPHIR_INIT_NVAR(&result); @@ -38361,11 +36846,11 @@ static PHP_METHOD(Phalcon_Cache_Backend_Apc, decrement) { zephir_update_property_zval(this_ptr, SL("_lastKey"), &lastKey); if ((zephir_function_exists_ex(SL("apc_dec") TSRMLS_CC) == SUCCESS)) { ZVAL_LONG(&_1$$3, value); - ZEPHIR_RETURN_CALL_FUNCTION("apc_dec", NULL, 107, &lastKey, &_1$$3); + ZEPHIR_RETURN_CALL_FUNCTION("apc_dec", NULL, 97, &lastKey, &_1$$3); zephir_check_call_status(); RETURN_MM(); } else { - ZEPHIR_CALL_FUNCTION(&cachedContent, "apc_fetch", NULL, 85, &lastKey); + ZEPHIR_CALL_FUNCTION(&cachedContent, "apc_fetch", NULL, 77, &lastKey); zephir_check_call_status(); if (zephir_is_numeric(&cachedContent)) { ZEPHIR_INIT_VAR(&result); @@ -38393,11 +36878,11 @@ static PHP_METHOD(Phalcon_Cache_Backend_Apc, delete) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &keyName_param); - if (unlikely(Z_TYPE_P(keyName_param) != IS_STRING && Z_TYPE_P(keyName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(keyName_param) != IS_STRING && Z_TYPE_P(keyName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'keyName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(keyName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(keyName_param) == IS_STRING)) { zephir_get_strval(&keyName, keyName_param); } else { ZEPHIR_INIT_VAR(&keyName); @@ -38408,7 +36893,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_Apc, delete) { zephir_read_property(&_0, this_ptr, SL("_prefix"), PH_NOISY_CC | PH_READONLY); ZEPHIR_INIT_VAR(&_1); ZEPHIR_CONCAT_SVV(&_1, "_PHCA", &_0, &keyName); - ZEPHIR_RETURN_CALL_FUNCTION("apc_delete", NULL, 108, &_1); + ZEPHIR_RETURN_CALL_FUNCTION("apc_delete", NULL, 98, &_1); zephir_check_call_status(); RETURN_MM(); @@ -38512,7 +36997,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_Apc, exists) { ZEPHIR_CONCAT_SVV(&lastKey, "_PHCA", &_0$$4, keyName); } if (zephir_is_true(&lastKey)) { - ZEPHIR_CALL_FUNCTION(&_1$$5, "apc_exists", NULL, 109, &lastKey); + ZEPHIR_CALL_FUNCTION(&_1$$5, "apc_exists", NULL, 99, &lastKey); zephir_check_call_status(); if (!ZEPHIR_IS_FALSE_IDENTICAL(&_1$$5)) { RETURN_MM_BOOL(1); @@ -38555,7 +37040,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_Apc, flush) { ZEPHIR_ITERATOR_COPY(&item, _1); } zephir_array_fetch_string(&_4$$3, &item, SL("key"), PH_NOISY | PH_READONLY, "phalcon/cache/backend/apc.zep", 289 TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(NULL, "apc_delete", &_5, 108, &_4$$3); + ZEPHIR_CALL_FUNCTION(NULL, "apc_delete", &_5, 98, &_4$$3); zephir_check_call_status(); } zend_iterator_dtor(_1); @@ -38636,7 +37121,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_File, __construct) { return; } } - ZEPHIR_CALL_PARENT(NULL, phalcon_cache_backend_file_ce, this_ptr, "__construct", &_5, 110, frontend, &options); + ZEPHIR_CALL_PARENT(NULL, phalcon_cache_backend_file_ce, this_ptr, "__construct", &_5, 0, frontend, &options); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -38708,7 +37193,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_File, get) { } else { ttl = lifetime; } - ZEPHIR_CALL_FUNCTION(NULL, "clearstatcache", NULL, 111, &__$true, &cacheFile); + ZEPHIR_CALL_FUNCTION(NULL, "clearstatcache", NULL, 100, &__$true, &cacheFile); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_4$$4); zephir_filemtime(&_4$$4, &cacheFile TSRMLS_CC); @@ -38723,7 +37208,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_File, get) { object_init_ex(&_6$$10, phalcon_cache_exception_ce); ZEPHIR_INIT_VAR(&_7$$10); ZEPHIR_CONCAT_SVS(&_7$$10, "Cache file ", &cacheFile, " could not be opened"); - ZEPHIR_CALL_METHOD(NULL, &_6$$10, "__construct", NULL, 9, &_7$$10); + ZEPHIR_CALL_METHOD(NULL, &_6$$10, "__construct", NULL, 4, &_7$$10); zephir_check_call_status(); zephir_throw_exception_debug(&_6$$10, "phalcon/cache/backend/file.zep", 148 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -38835,7 +37320,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_File, save) { object_init_ex(&_3$$11, phalcon_cache_exception_ce); ZEPHIR_INIT_VAR(&_4$$11); ZEPHIR_CONCAT_SVS(&_4$$11, "Cache file ", &cacheFile, " could not be written"); - ZEPHIR_CALL_METHOD(NULL, &_3$$11, "__construct", NULL, 9, &_4$$11); + ZEPHIR_CALL_METHOD(NULL, &_3$$11, "__construct", NULL, 4, &_4$$11); zephir_check_call_status(); zephir_throw_exception_debug(&_3$$11, "phalcon/cache/backend/file.zep", 215 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -38889,7 +37374,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_File, delete) { ZEPHIR_INIT_VAR(&cacheFile); ZEPHIR_CONCAT_VVV(&cacheFile, &cacheDir, &_1, &_2); if ((zephir_file_exists(&cacheFile TSRMLS_CC) == SUCCESS)) { - ZEPHIR_RETURN_CALL_FUNCTION("unlink", NULL, 112, &cacheFile); + ZEPHIR_RETURN_CALL_FUNCTION("unlink", NULL, 101, &cacheFile); zephir_check_call_status(); RETURN_MM(); } @@ -38946,7 +37431,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_File, queryKeys) { } ZEPHIR_INIT_VAR(&_4); object_init_ex(&_4, spl_ce_DirectoryIterator); - ZEPHIR_CALL_METHOD(NULL, &_4, "__construct", NULL, 113, &cacheDir); + ZEPHIR_CALL_METHOD(NULL, &_4, "__construct", NULL, 102, &cacheDir); zephir_check_call_status(); _3 = zephir_get_iterator(&_4 TSRMLS_CC); _3->funcs->rewind(_3 TSRMLS_CC); @@ -38956,7 +37441,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_File, queryKeys) { } ZEPHIR_CALL_METHOD(&_5$$5, &item, "isdir", NULL, 0); zephir_check_call_status(); - if (likely(ZEPHIR_IS_FALSE_IDENTICAL(&_5$$5))) { + if (EXPECTED(ZEPHIR_IS_FALSE_IDENTICAL(&_5$$5))) { ZEPHIR_CALL_METHOD(&key, &item, "getfilename", NULL, 0); zephir_check_call_status(); if (!(ZEPHIR_IS_EMPTY(&prefix))) { @@ -39032,7 +37517,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_File, exists) { } else { ttl = lifetime; } - ZEPHIR_CALL_FUNCTION(NULL, "clearstatcache", NULL, 111, &__$true, &cacheFile); + ZEPHIR_CALL_FUNCTION(NULL, "clearstatcache", NULL, 100, &__$true, &cacheFile); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_5$$6); zephir_filemtime(&_5$$6, &cacheFile TSRMLS_CC); @@ -39109,7 +37594,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_File, increment) { } else { ZEPHIR_CPY_WRT(&ttl, &lifetime); } - ZEPHIR_CALL_FUNCTION(NULL, "clearstatcache", NULL, 111, &__$true, &cacheFile); + ZEPHIR_CALL_FUNCTION(NULL, "clearstatcache", NULL, 100, &__$true, &cacheFile); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_4$$3); zephir_filemtime(&_4$$3, &cacheFile TSRMLS_CC); @@ -39124,7 +37609,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_File, increment) { object_init_ex(&_6$$7, phalcon_cache_exception_ce); ZEPHIR_INIT_VAR(&_7$$7); ZEPHIR_CONCAT_SVS(&_7$$7, "Cache file ", &cacheFile, " could not be opened"); - ZEPHIR_CALL_METHOD(NULL, &_6$$7, "__construct", NULL, 9, &_7$$7); + ZEPHIR_CALL_METHOD(NULL, &_6$$7, "__construct", NULL, 4, &_7$$7); zephir_check_call_status(); zephir_throw_exception_debug(&_6$$7, "phalcon/cache/backend/file.zep", 383 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -39207,7 +37692,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_File, decrement) { } else { ZEPHIR_CPY_WRT(&ttl, &lifetime); } - ZEPHIR_CALL_FUNCTION(NULL, "clearstatcache", NULL, 111, &__$true, &cacheFile); + ZEPHIR_CALL_FUNCTION(NULL, "clearstatcache", NULL, 100, &__$true, &cacheFile); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_5$$3); zephir_filemtime(&_5$$3, &cacheFile TSRMLS_CC); @@ -39222,7 +37707,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_File, decrement) { object_init_ex(&_7$$7, phalcon_cache_exception_ce); ZEPHIR_INIT_VAR(&_8$$7); ZEPHIR_CONCAT_SVS(&_8$$7, "Cache file ", &cacheFile, " could not be opened"); - ZEPHIR_CALL_METHOD(NULL, &_7$$7, "__construct", NULL, 9, &_8$$7); + ZEPHIR_CALL_METHOD(NULL, &_7$$7, "__construct", NULL, 4, &_8$$7); zephir_check_call_status(); zephir_throw_exception_debug(&_7$$7, "phalcon/cache/backend/file.zep", 441 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -39276,7 +37761,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_File, flush) { } ZEPHIR_INIT_VAR(&_2); object_init_ex(&_2, spl_ce_DirectoryIterator); - ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", NULL, 113, &cacheDir); + ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", NULL, 102, &cacheDir); zephir_check_call_status(); _1 = zephir_get_iterator(&_2 TSRMLS_CC); _1->funcs->rewind(_1 TSRMLS_CC); @@ -39286,7 +37771,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_File, flush) { } ZEPHIR_CALL_METHOD(&_3$$4, &item, "isfile", NULL, 0); zephir_check_call_status(); - if (likely(ZEPHIR_IS_TRUE(&_3$$4))) { + if (EXPECTED(ZEPHIR_IS_TRUE(&_3$$4))) { ZEPHIR_CALL_METHOD(&key, &item, "getfilename", NULL, 0); zephir_check_call_status(); ZEPHIR_CALL_METHOD(&cacheFile, &item, "getpathname", NULL, 0); @@ -39296,7 +37781,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_File, flush) { _4$$5 = zephir_start_with(&key, &prefix, NULL); } if (_4$$5) { - ZEPHIR_CALL_FUNCTION(&_5$$6, "unlink", &_6, 112, &cacheFile); + ZEPHIR_CALL_FUNCTION(&_5$$6, "unlink", &_6, 101, &cacheFile); zephir_check_call_status(); if (!(zephir_is_true(&_5$$6))) { RETURN_MM_BOOL(0); @@ -39420,7 +37905,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_Libmemcached, __construct) { ZVAL_STRING(&_1$$5, ""); zephir_array_update_string(options, SL("statsKey"), &_1$$5, PH_COPY | PH_SEPARATE); } - ZEPHIR_CALL_PARENT(NULL, phalcon_cache_backend_libmemcached_ce, this_ptr, "__construct", &_2, 110, frontend, options); + ZEPHIR_CALL_PARENT(NULL, phalcon_cache_backend_libmemcached_ce, this_ptr, "__construct", &_2, 0, frontend, options); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -39654,7 +38139,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_Libmemcached, save) { zephir_check_call_status(); ZEPHIR_INIT_VAR(&_3$$15); ZEPHIR_CONCAT_SV(&_3$$15, "Failed storing data in memcached, error code: ", &_2$$15); - ZEPHIR_CALL_METHOD(NULL, &_1$$15, "__construct", NULL, 9, &_3$$15); + ZEPHIR_CALL_METHOD(NULL, &_1$$15, "__construct", NULL, 4, &_3$$15); zephir_check_call_status(); zephir_throw_exception_debug(&_1$$15, "phalcon/cache/backend/libmemcached.zep", 240 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -39802,7 +38287,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_Libmemcached, queryKeys) { } ZEPHIR_CALL_METHOD(&keys, &memcache, "get", NULL, 0, &specialKey); zephir_check_call_status(); - if (unlikely(Z_TYPE_P(&keys) != IS_ARRAY)) { + if (UNEXPECTED(Z_TYPE_P(&keys) != IS_ARRAY)) { array_init(return_value); RETURN_MM(); } @@ -40035,7 +38520,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_Libmemcached, flush) { } ZEPHIR_CALL_METHOD(&keys, &memcache, "get", NULL, 0, &specialKey); zephir_check_call_status(); - if (unlikely(Z_TYPE_P(&keys) != IS_ARRAY)) { + if (UNEXPECTED(Z_TYPE_P(&keys) != IS_ARRAY)) { RETURN_MM_BOOL(1); } ZEPHIR_INIT_VAR(&_0); @@ -40129,7 +38614,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_Memcache, __construct) { ZVAL_STRING(&_2$$7, ""); zephir_array_update_string(options, SL("statsKey"), &_2$$7, PH_COPY | PH_SEPARATE); } - ZEPHIR_CALL_PARENT(NULL, phalcon_cache_backend_memcache_ce, this_ptr, "__construct", &_3, 110, frontend, options); + ZEPHIR_CALL_PARENT(NULL, phalcon_cache_backend_memcache_ce, this_ptr, "__construct", &_3, 0, frontend, options); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -40207,11 +38692,11 @@ static PHP_METHOD(Phalcon_Cache_Backend_Memcache, addServers) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 1, &host_param, &port_param, &persistent_param); - if (unlikely(Z_TYPE_P(host_param) != IS_STRING && Z_TYPE_P(host_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(host_param) != IS_STRING && Z_TYPE_P(host_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'host' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(host_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(host_param) == IS_STRING)) { zephir_get_strval(&host, host_param); } else { ZEPHIR_INIT_VAR(&host); @@ -40545,7 +39030,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_Memcache, queryKeys) { } ZEPHIR_CALL_METHOD(&keys, &memcache, "get", NULL, 0, &specialKey); zephir_check_call_status(); - if (unlikely(Z_TYPE_P(&keys) != IS_ARRAY)) { + if (UNEXPECTED(Z_TYPE_P(&keys) != IS_ARRAY)) { array_init(return_value); RETURN_MM(); } @@ -40776,7 +39261,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_Memcache, flush) { } ZEPHIR_CALL_METHOD(&keys, &memcache, "get", NULL, 0, &specialKey); zephir_check_call_status(); - if (unlikely(Z_TYPE_P(&keys) != IS_ARRAY)) { + if (UNEXPECTED(Z_TYPE_P(&keys) != IS_ARRAY)) { RETURN_MM_BOOL(1); } ZEPHIR_INIT_VAR(&_0); @@ -41223,7 +39708,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_Memory, serialize) { ZEPHIR_OBS_VAR(&_1); zephir_read_property(&_1, this_ptr, SL("_frontend"), PH_NOISY_CC); zephir_array_update_string(&_0, SL("frontend"), &_1, PH_COPY | PH_SEPARATE); - ZEPHIR_RETURN_CALL_FUNCTION("serialize", NULL, 65, &_0); + ZEPHIR_RETURN_CALL_FUNCTION("serialize", NULL, 59, &_0); zephir_check_call_status(); RETURN_MM(); @@ -41244,7 +39729,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_Memory, unserialize) { - ZEPHIR_CALL_FUNCTION(&unserialized, "unserialize", NULL, 66, data); + ZEPHIR_CALL_FUNCTION(&unserialized, "unserialize", NULL, 60, data); zephir_check_call_status(); if (Z_TYPE_P(&unserialized) != IS_ARRAY) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(zend_exception_get_default(TSRMLS_C), "Unserialized data must be an array", "phalcon/cache/backend/memory.zep", 295); @@ -41310,7 +39795,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_Mongo, __construct) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_cache_exception_ce, "The parameter 'collection' is required", "phalcon/cache/backend/mongo.zep", 86); return; } - ZEPHIR_CALL_PARENT(NULL, phalcon_cache_backend_mongo_ce, this_ptr, "__construct", &_0, 110, frontend, options); + ZEPHIR_CALL_PARENT(NULL, phalcon_cache_backend_mongo_ce, this_ptr, "__construct", &_0, 0, frontend, options); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -41437,7 +39922,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_Mongo, get) { zephir_time(&_2); zephir_array_update_string(&_1, SL("$gt"), &_2, PH_COPY | PH_SEPARATE); zephir_array_update_string(&conditions, SL("time"), &_1, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(&_3, this_ptr, "_getcollection", NULL, 114); + ZEPHIR_CALL_METHOD(&_3, this_ptr, "_getcollection", NULL, 103); zephir_check_call_status(); ZEPHIR_CALL_METHOD(&document, &_3, "findone", NULL, 0, &conditions); zephir_check_call_status(); @@ -41556,7 +40041,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_Mongo, save) { } else { ZEPHIR_CPY_WRT(&ttl, lifetime); } - ZEPHIR_CALL_METHOD(&collection, this_ptr, "_getcollection", NULL, 114); + ZEPHIR_CALL_METHOD(&collection, this_ptr, "_getcollection", NULL, 103); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_1); zephir_time(&_1); @@ -41623,7 +40108,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_Mongo, delete) { - ZEPHIR_CALL_METHOD(&_0, this_ptr, "_getcollection", NULL, 114); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "_getcollection", NULL, 103); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_1); zephir_create_array(&_1, 1, 0 TSRMLS_CC); @@ -41633,7 +40118,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_Mongo, delete) { zephir_array_update_string(&_1, SL("key"), &_3, PH_COPY | PH_SEPARATE); ZEPHIR_CALL_METHOD(NULL, &_0, "remove", NULL, 0, &_1); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_4, "rand", NULL, 115); + ZEPHIR_CALL_FUNCTION(&_4, "rand", NULL, 104); zephir_check_call_status(); if (zephir_safe_mod_long_long(zephir_get_intval(&_4), 100 TSRMLS_CC) == 0) { ZEPHIR_CALL_METHOD(NULL, this_ptr, "gc", NULL, 0); @@ -41700,7 +40185,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_Mongo, queryKeys) { zephir_time(&_3); zephir_array_update_string(&_2, SL("$gt"), &_3, PH_COPY | PH_SEPARATE); zephir_array_update_string(&conditions, SL("time"), &_2, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(&collection, this_ptr, "_getcollection", NULL, 114); + ZEPHIR_CALL_METHOD(&collection, this_ptr, "_getcollection", NULL, 103); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_4); zephir_create_array(&_4, 1, 0 TSRMLS_CC); @@ -41776,7 +40261,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_Mongo, exists) { ZEPHIR_CONCAT_VV(&lastKey, &_0$$4, keyName); } if (zephir_is_true(&lastKey)) { - ZEPHIR_CALL_METHOD(&_1$$5, this_ptr, "_getcollection", NULL, 114); + ZEPHIR_CALL_METHOD(&_1$$5, this_ptr, "_getcollection", NULL, 103); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_3$$5); zephir_create_array(&_3$$5, 2, 0 TSRMLS_CC); @@ -41809,7 +40294,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_Mongo, gc) { ZEPHIR_MM_GROW(); - ZEPHIR_CALL_METHOD(&_0, this_ptr, "_getcollection", NULL, 114); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "_getcollection", NULL, 103); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_1); zephir_create_array(&_1, 1, 0 TSRMLS_CC); @@ -41857,7 +40342,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_Mongo, increment) { ZEPHIR_INIT_VAR(&prefixedKey); ZEPHIR_CONCAT_VV(&prefixedKey, &_0, keyName); zephir_update_property_zval(this_ptr, SL("_lastKey"), &prefixedKey); - ZEPHIR_CALL_METHOD(&_1, this_ptr, "_getcollection", NULL, 114); + ZEPHIR_CALL_METHOD(&_1, this_ptr, "_getcollection", NULL, 103); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_2); zephir_create_array(&_2, 1, 0 TSRMLS_CC); @@ -41921,7 +40406,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_Mongo, decrement) { ZEPHIR_INIT_VAR(&prefixedKey); ZEPHIR_CONCAT_VV(&prefixedKey, &_0, keyName); zephir_update_property_zval(this_ptr, SL("_lastKey"), &prefixedKey); - ZEPHIR_CALL_METHOD(&_1, this_ptr, "_getcollection", NULL, 114); + ZEPHIR_CALL_METHOD(&_1, this_ptr, "_getcollection", NULL, 103); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_2); zephir_create_array(&_2, 1, 0 TSRMLS_CC); @@ -41963,7 +40448,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_Mongo, flush) { ZEPHIR_MM_GROW(); - ZEPHIR_CALL_METHOD(&_0, this_ptr, "_getcollection", NULL, 114); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "_getcollection", NULL, 103); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, &_0, "remove", NULL, 0); zephir_check_call_status(); @@ -42045,7 +40530,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_Redis, __construct) { ZVAL_STRING(&_3$$8, ""); zephir_array_update_string(options, SL("statsKey"), &_3$$8, PH_COPY | PH_SEPARATE); } - ZEPHIR_CALL_PARENT(NULL, phalcon_cache_backend_redis_ce, this_ptr, "__construct", &_4, 110, frontend, options); + ZEPHIR_CALL_PARENT(NULL, phalcon_cache_backend_redis_ce, this_ptr, "__construct", &_4, 0, frontend, options); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -42075,8 +40560,10 @@ static PHP_METHOD(Phalcon_Cache_Backend_Redis, _connect) { zephir_read_property(&options, this_ptr, SL("_options"), PH_NOISY_CC); ZEPHIR_INIT_VAR(&redis); object_init_ex(&redis, zephir_get_internal_ce(SL("redis"))); - ZEPHIR_CALL_METHOD(NULL, &redis, "__construct", NULL, 0); - zephir_check_call_status(); + if (zephir_has_constructor(&redis TSRMLS_CC)) { + ZEPHIR_CALL_METHOD(NULL, &redis, "__construct", NULL, 0); + zephir_check_call_status(); + } ZEPHIR_OBS_VAR(&host); _0 = !(zephir_array_isset_string_fetch(&host, &options, SL("host"), 0)); if (!(_0)) { @@ -42104,7 +40591,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_Redis, _connect) { object_init_ex(&_2$$6, phalcon_cache_exception_ce); ZEPHIR_INIT_VAR(&_3$$6); ZEPHIR_CONCAT_SVSV(&_3$$6, "Could not connect to the Redisd server ", &host, ":", &port); - ZEPHIR_CALL_METHOD(NULL, &_2$$6, "__construct", NULL, 9, &_3$$6); + ZEPHIR_CALL_METHOD(NULL, &_2$$6, "__construct", NULL, 4, &_3$$6); zephir_check_call_status(); zephir_throw_exception_debug(&_2$$6, "phalcon/cache/backend/redis.zep", 124 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -42724,7 +41211,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_Xcache, __construct) { ZVAL_STRING(&_0$$4, ""); zephir_array_update_string(options, SL("statsKey"), &_0$$4, PH_COPY | PH_SEPARATE); } - ZEPHIR_CALL_PARENT(NULL, phalcon_cache_backend_xcache_ce, this_ptr, "__construct", &_1, 110, frontend, options); + ZEPHIR_CALL_PARENT(NULL, phalcon_cache_backend_xcache_ce, this_ptr, "__construct", &_1, 0, frontend, options); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -42760,7 +41247,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_Xcache, get) { ZEPHIR_INIT_VAR(&prefixedKey); ZEPHIR_CONCAT_SVV(&prefixedKey, "_PHCX", &_0, &keyName); zephir_update_property_zval(this_ptr, SL("_lastKey"), &prefixedKey); - ZEPHIR_CALL_FUNCTION(&cachedContent, "xcache_get", NULL, 87, &prefixedKey); + ZEPHIR_CALL_FUNCTION(&cachedContent, "xcache_get", NULL, 79, &prefixedKey); zephir_check_call_status(); if (!(zephir_is_true(&cachedContent))) { RETURN_MM_NULL(); @@ -42864,7 +41351,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_Xcache, save) { } else { ZEPHIR_CPY_WRT(&tt1, lifetime); } - ZEPHIR_CALL_FUNCTION(&success, "xcache_set", &_1, 88, &lastKey, &preparedContent, &tt1); + ZEPHIR_CALL_FUNCTION(&success, "xcache_set", &_1, 80, &lastKey, &preparedContent, &tt1); zephir_check_call_status(); if (!(zephir_is_true(&success))) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_cache_exception_ce, "Failed storing the data in xcache", "phalcon/cache/backend/xcache.zep", 156); @@ -42894,14 +41381,14 @@ static PHP_METHOD(Phalcon_Cache_Backend_Xcache, save) { return; } if (!ZEPHIR_IS_STRING(&specialKey, "")) { - ZEPHIR_CALL_FUNCTION(&keys, "xcache_get", NULL, 87, &specialKey); + ZEPHIR_CALL_FUNCTION(&keys, "xcache_get", NULL, 79, &specialKey); zephir_check_call_status(); if (Z_TYPE_P(&keys) != IS_ARRAY) { ZEPHIR_INIT_NVAR(&keys); array_init(&keys); } zephir_array_update_zval(&keys, &lastKey, &tt1, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_FUNCTION(NULL, "xcache_set", &_1, 88, &specialKey, &keys); + ZEPHIR_CALL_FUNCTION(NULL, "xcache_set", &_1, 80, &specialKey, &keys); zephir_check_call_status(); } } @@ -42937,14 +41424,14 @@ static PHP_METHOD(Phalcon_Cache_Backend_Xcache, delete) { return; } if (!ZEPHIR_IS_STRING(&specialKey, "")) { - ZEPHIR_CALL_FUNCTION(&keys, "xcache_get", NULL, 87, &specialKey); + ZEPHIR_CALL_FUNCTION(&keys, "xcache_get", NULL, 79, &specialKey); zephir_check_call_status(); if (Z_TYPE_P(&keys) != IS_ARRAY) { ZEPHIR_INIT_NVAR(&keys); array_init(&keys); } zephir_array_unset(&keys, &prefixedKey, PH_SEPARATE); - ZEPHIR_CALL_FUNCTION(NULL, "xcache_set", NULL, 88, &specialKey, &keys); + ZEPHIR_CALL_FUNCTION(NULL, "xcache_set", NULL, 80, &specialKey, &keys); zephir_check_call_status(); } ZEPHIR_MM_RESTORE(); @@ -43004,7 +41491,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_Xcache, queryKeys) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_cache_exception_ce, "Cached keys need to be enabled to use this function (options['statsKey'] == '_PHCX')!", "phalcon/cache/backend/xcache.zep", 251); return; } - ZEPHIR_CALL_FUNCTION(&keys, "xcache_get", NULL, 87, &specialKey); + ZEPHIR_CALL_FUNCTION(&keys, "xcache_get", NULL, 79, &specialKey); zephir_check_call_status(); if (Z_TYPE_P(&keys) != IS_ARRAY) { array_init(return_value); @@ -43071,7 +41558,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_Xcache, exists) { ZEPHIR_CONCAT_SVV(&lastKey, "_PHCX", &_0$$4, keyName); } if (zephir_is_true(&lastKey)) { - ZEPHIR_RETURN_CALL_FUNCTION("xcache_isset", NULL, 116, &lastKey); + ZEPHIR_RETURN_CALL_FUNCTION("xcache_isset", NULL, 105, &lastKey); zephir_check_call_status(); RETURN_MM(); } @@ -43116,14 +41603,14 @@ static PHP_METHOD(Phalcon_Cache_Backend_Xcache, increment) { } if ((zephir_function_exists_ex(SL("xcache_inc") TSRMLS_CC) == SUCCESS)) { ZVAL_LONG(&_1$$6, value); - ZEPHIR_CALL_FUNCTION(&newVal, "xcache_inc", NULL, 117, &lastKey, &_1$$6); + ZEPHIR_CALL_FUNCTION(&newVal, "xcache_inc", NULL, 106, &lastKey, &_1$$6); zephir_check_call_status(); } else { - ZEPHIR_CALL_FUNCTION(&origVal, "xcache_get", NULL, 87, &lastKey); + ZEPHIR_CALL_FUNCTION(&origVal, "xcache_get", NULL, 79, &lastKey); zephir_check_call_status(); ZEPHIR_INIT_NVAR(&newVal); ZVAL_LONG(&newVal, (zephir_get_numberval(&origVal) - value)); - ZEPHIR_CALL_FUNCTION(NULL, "xcache_set", NULL, 88, &lastKey, &newVal); + ZEPHIR_CALL_FUNCTION(NULL, "xcache_set", NULL, 80, &lastKey, &newVal); zephir_check_call_status(); } RETURN_CCTOR(newVal); @@ -43168,14 +41655,14 @@ static PHP_METHOD(Phalcon_Cache_Backend_Xcache, decrement) { } if ((zephir_function_exists_ex(SL("xcache_dec") TSRMLS_CC) == SUCCESS)) { ZVAL_LONG(&_1$$6, value); - ZEPHIR_CALL_FUNCTION(&newVal, "xcache_dec", NULL, 118, &lastKey, &_1$$6); + ZEPHIR_CALL_FUNCTION(&newVal, "xcache_dec", NULL, 107, &lastKey, &_1$$6); zephir_check_call_status(); } else { - ZEPHIR_CALL_FUNCTION(&origVal, "xcache_get", NULL, 87, &lastKey); + ZEPHIR_CALL_FUNCTION(&origVal, "xcache_get", NULL, 79, &lastKey); zephir_check_call_status(); ZEPHIR_INIT_NVAR(&newVal); ZVAL_LONG(&newVal, (zephir_get_numberval(&origVal) - value)); - ZEPHIR_CALL_FUNCTION(&success, "xcache_set", NULL, 88, &lastKey, &newVal); + ZEPHIR_CALL_FUNCTION(&success, "xcache_set", NULL, 80, &lastKey, &newVal); zephir_check_call_status(); } RETURN_CCTOR(newVal); @@ -43212,7 +41699,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_Xcache, flush) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_cache_exception_ce, "Cached keys need to be enabled to use this function (options['statsKey'] == '_PHCM')!", "phalcon/cache/backend/xcache.zep", 371); return; } - ZEPHIR_CALL_FUNCTION(&keys, "xcache_get", NULL, 87, &specialKey); + ZEPHIR_CALL_FUNCTION(&keys, "xcache_get", NULL, 79, &specialKey); zephir_check_call_status(); if (Z_TYPE_P(&keys) == IS_ARRAY) { ZEPHIR_INIT_VAR(&_1$$5); @@ -43228,12 +41715,12 @@ static PHP_METHOD(Phalcon_Cache_Backend_Xcache, flush) { ZEPHIR_INIT_NVAR(&_1$$5); ZVAL_COPY(&_1$$5, _2$$5); zephir_array_unset(&keys, &key, PH_SEPARATE); - ZEPHIR_CALL_FUNCTION(NULL, "xcache_unset", &_5, 119, &key); + ZEPHIR_CALL_FUNCTION(NULL, "xcache_unset", &_5, 108, &key); zephir_check_call_status(); } ZEND_HASH_FOREACH_END(); ZEPHIR_INIT_NVAR(&_1$$5); ZEPHIR_INIT_NVAR(&key); - ZEPHIR_CALL_FUNCTION(NULL, "xcache_set", NULL, 88, &specialKey, &keys); + ZEPHIR_CALL_FUNCTION(NULL, "xcache_set", NULL, 80, &specialKey, &keys); zephir_check_call_status(); } RETURN_MM_BOOL(1); @@ -43347,7 +41834,7 @@ static PHP_METHOD(Phalcon_Cache_Frontend_Base64, beforeStore) { - ZEPHIR_RETURN_CALL_FUNCTION("base64_encode", NULL, 120, data); + ZEPHIR_RETURN_CALL_FUNCTION("base64_encode", NULL, 109, data); zephir_check_call_status(); RETURN_MM(); @@ -43366,7 +41853,7 @@ static PHP_METHOD(Phalcon_Cache_Frontend_Base64, afterRetrieve) { - ZEPHIR_RETURN_CALL_FUNCTION("base64_decode", NULL, 121, data); + ZEPHIR_RETURN_CALL_FUNCTION("base64_decode", NULL, 110, data); zephir_check_call_status(); RETURN_MM(); @@ -43479,7 +41966,7 @@ static PHP_METHOD(Phalcon_Cache_Frontend_Data, beforeStore) { - ZEPHIR_RETURN_CALL_FUNCTION("serialize", NULL, 65, data); + ZEPHIR_RETURN_CALL_FUNCTION("serialize", NULL, 59, data); zephir_check_call_status(); RETURN_MM(); @@ -43506,7 +41993,7 @@ static PHP_METHOD(Phalcon_Cache_Frontend_Data, afterRetrieve) { RETVAL_ZVAL(data, 1, 0); RETURN_MM(); } - ZEPHIR_RETURN_CALL_FUNCTION("unserialize", NULL, 66, data); + ZEPHIR_RETURN_CALL_FUNCTION("unserialize", NULL, 60, data); zephir_check_call_status(); RETURN_MM(); @@ -43617,7 +42104,7 @@ static PHP_METHOD(Phalcon_Cache_Frontend_Igbinary, beforeStore) { - ZEPHIR_RETURN_CALL_FUNCTION("igbinary_serialize", NULL, 122, data); + ZEPHIR_RETURN_CALL_FUNCTION("igbinary_serialize", NULL, 111, data); zephir_check_call_status(); RETURN_MM(); @@ -43640,7 +42127,7 @@ static PHP_METHOD(Phalcon_Cache_Frontend_Igbinary, afterRetrieve) { RETVAL_ZVAL(data, 1, 0); RETURN_MM(); } - ZEPHIR_RETURN_CALL_FUNCTION("igbinary_unserialize", NULL, 123, data); + ZEPHIR_RETURN_CALL_FUNCTION("igbinary_unserialize", NULL, 112, data); zephir_check_call_status(); RETURN_MM(); @@ -43887,7 +42374,7 @@ static PHP_METHOD(Phalcon_Cache_Frontend_Msgpack, beforeStore) { - ZEPHIR_RETURN_CALL_FUNCTION("msgpack_pack", NULL, 124, data); + ZEPHIR_RETURN_CALL_FUNCTION("msgpack_pack", NULL, 113, data); zephir_check_call_status(); RETURN_MM(); @@ -43910,7 +42397,7 @@ static PHP_METHOD(Phalcon_Cache_Frontend_Msgpack, afterRetrieve) { RETVAL_ZVAL(data, 1, 0); RETURN_MM(); } - ZEPHIR_RETURN_CALL_FUNCTION("msgpack_unpack", NULL, 125, data); + ZEPHIR_RETURN_CALL_FUNCTION("msgpack_unpack", NULL, 114, data); zephir_check_call_status(); RETURN_MM(); @@ -44096,7 +42583,7 @@ static PHP_METHOD(Phalcon_Cache_Frontend_Output, start) { } else { zephir_update_property_zval(this_ptr, SL("_buffering"), &__$false); } - ZEPHIR_CALL_FUNCTION(NULL, "ob_start", NULL, 126); + ZEPHIR_CALL_FUNCTION(NULL, "ob_start", NULL, 115); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -44114,7 +42601,7 @@ static PHP_METHOD(Phalcon_Cache_Frontend_Output, getContent) { zephir_read_property(&_0, this_ptr, SL("_buffering"), PH_NOISY_CC | PH_READONLY); if (zephir_is_true(&_0)) { - ZEPHIR_RETURN_CALL_FUNCTION("ob_get_contents", NULL, 127); + ZEPHIR_RETURN_CALL_FUNCTION("ob_get_contents", NULL, 116); zephir_check_call_status(); RETURN_MM(); } @@ -44136,7 +42623,7 @@ static PHP_METHOD(Phalcon_Cache_Frontend_Output, stop) { zephir_read_property(&_0, this_ptr, SL("_buffering"), PH_NOISY_CC | PH_READONLY); if (zephir_is_true(&_0)) { - ZEPHIR_CALL_FUNCTION(NULL, "ob_end_clean", NULL, 128); + ZEPHIR_CALL_FUNCTION(NULL, "ob_end_clean", NULL, 117); zephir_check_call_status(); } if (0) { @@ -44336,7 +42823,7 @@ static PHP_METHOD(Phalcon_Cli_Console, handle) { object_init_ex(&_9$$12, phalcon_cli_console_exception_ce); ZEPHIR_INIT_VAR(&_10$$12); ZEPHIR_CONCAT_SVS(&_10$$12, "Module '", &moduleName, "' isn't registered in the console container"); - ZEPHIR_CALL_METHOD(NULL, &_9$$12, "__construct", NULL, 9, &_10$$12); + ZEPHIR_CALL_METHOD(NULL, &_9$$12, "__construct", NULL, 4, &_10$$12); zephir_check_call_status(); zephir_throw_exception_debug(&_9$$12, "phalcon/cli/console.zep", 111 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -44355,7 +42842,7 @@ static PHP_METHOD(Phalcon_Cli_Console, handle) { object_init_ex(&_11$$15, phalcon_cli_console_exception_ce); ZEPHIR_INIT_VAR(&_12$$15); ZEPHIR_CONCAT_SVS(&_12$$15, "Module definition path '", &path, "' doesn't exist"); - ZEPHIR_CALL_METHOD(NULL, &_11$$15, "__construct", NULL, 9, &_12$$15); + ZEPHIR_CALL_METHOD(NULL, &_11$$15, "__construct", NULL, 4, &_12$$15); zephir_check_call_status(); zephir_throw_exception_debug(&_11$$15, "phalcon/cli/console.zep", 121 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -44480,7 +42967,7 @@ static PHP_METHOD(Phalcon_Cli_Console, setArgument) { if (!str_param) { str = 1; } else { - if (unlikely(Z_TYPE_P(str_param) != IS_TRUE && Z_TYPE_P(str_param) != IS_FALSE)) { + if (UNEXPECTED(Z_TYPE_P(str_param) != IS_TRUE && Z_TYPE_P(str_param) != IS_FALSE)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'str' must be a bool") TSRMLS_CC); RETURN_MM_NULL(); } @@ -44489,7 +42976,7 @@ static PHP_METHOD(Phalcon_Cli_Console, setArgument) { if (!shift_param) { shift = 1; } else { - if (unlikely(Z_TYPE_P(shift_param) != IS_TRUE && Z_TYPE_P(shift_param) != IS_FALSE)) { + if (UNEXPECTED(Z_TYPE_P(shift_param) != IS_TRUE && Z_TYPE_P(shift_param) != IS_FALSE)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'shift' must be a bool") TSRMLS_CC); RETURN_MM_NULL(); } @@ -44509,7 +42996,7 @@ static PHP_METHOD(Phalcon_Cli_Console, setArgument) { } if (_0) { ZEPHIR_MAKE_REF(&arguments); - ZEPHIR_CALL_FUNCTION(NULL, "array_shift", &_1, 129, &arguments); + ZEPHIR_CALL_FUNCTION(NULL, "array_shift", &_1, 118, &arguments); ZEPHIR_UNREF(&arguments); zephir_check_call_status(); } @@ -44522,7 +43009,7 @@ static PHP_METHOD(Phalcon_Cli_Console, setArgument) { ZEPHIR_INIT_NVAR(&_3$$5); ZVAL_STRING(&_3$$5, "--"); ZVAL_LONG(&_4$$5, 2); - ZEPHIR_CALL_FUNCTION(&_5$$5, "strncmp", &_6, 130, &arg, &_3$$5, &_4$$5); + ZEPHIR_CALL_FUNCTION(&_5$$5, "strncmp", &_6, 119, &arg, &_3$$5, &_4$$5); zephir_check_call_status(); if (ZEPHIR_IS_LONG(&_5$$5, 0)) { ZEPHIR_INIT_NVAR(&_7$$6); @@ -44554,7 +43041,7 @@ static PHP_METHOD(Phalcon_Cli_Console, setArgument) { ZEPHIR_INIT_NVAR(&_18$$9); ZVAL_STRING(&_18$$9, "-"); ZVAL_LONG(&_19$$9, 1); - ZEPHIR_CALL_FUNCTION(&_20$$9, "strncmp", &_6, 130, &arg, &_18$$9, &_19$$9); + ZEPHIR_CALL_FUNCTION(&_20$$9, "strncmp", &_6, 119, &arg, &_18$$9, &_19$$9); zephir_check_call_status(); if (ZEPHIR_IS_LONG(&_20$$9, 0)) { ZVAL_LONG(&_21$$10, 1); @@ -44572,21 +43059,21 @@ static PHP_METHOD(Phalcon_Cli_Console, setArgument) { ZEPHIR_INIT_NVAR(&arg); if (str) { ZEPHIR_INIT_VAR(&_23$$13); - ZEPHIR_CALL_CE_STATIC(&_24$$13, phalcon_cli_router_route_ce, "getdelimiter", &_25, 131); + ZEPHIR_CALL_CE_STATIC(&_24$$13, phalcon_cli_router_route_ce, "getdelimiter", &_25, 0); zephir_check_call_status(); zephir_fast_join(&_23$$13, &_24$$13, &args TSRMLS_CC); zephir_update_property_zval(this_ptr, SL("_arguments"), &_23$$13); } else { if (zephir_fast_count_int(&args TSRMLS_CC)) { ZEPHIR_MAKE_REF(&args); - ZEPHIR_CALL_FUNCTION(&_26$$15, "array_shift", &_1, 129, &args); + ZEPHIR_CALL_FUNCTION(&_26$$15, "array_shift", &_1, 118, &args); ZEPHIR_UNREF(&args); zephir_check_call_status(); zephir_array_update_string(&handleArgs, SL("task"), &_26$$15, PH_COPY | PH_SEPARATE); } if (zephir_fast_count_int(&args TSRMLS_CC)) { ZEPHIR_MAKE_REF(&args); - ZEPHIR_CALL_FUNCTION(&_27$$16, "array_shift", &_1, 129, &args); + ZEPHIR_CALL_FUNCTION(&_27$$16, "array_shift", &_1, 118, &args); ZEPHIR_UNREF(&args); zephir_check_call_status(); zephir_array_update_string(&handleArgs, SL("action"), &_27$$16, PH_COPY | PH_SEPARATE); @@ -44763,7 +43250,7 @@ static PHP_METHOD(Phalcon_Cli_Dispatcher, _throwDispatchException) { ZEPHIR_INIT_VAR(&exception); object_init_ex(&exception, phalcon_cli_dispatcher_exception_ce); ZVAL_LONG(&_0, exceptionCode); - ZEPHIR_CALL_METHOD(NULL, &exception, "__construct", NULL, 9, &message, &_0); + ZEPHIR_CALL_METHOD(NULL, &exception, "__construct", NULL, 4, &message, &_0); zephir_check_call_status(); ZEPHIR_CALL_METHOD(&_1, this_ptr, "_handleexception", NULL, 0, &exception); zephir_check_call_status(); @@ -45038,7 +43525,7 @@ static PHP_METHOD(Phalcon_Cli_Router, __construct) { add_assoc_long_ex(&_1$$3, SL("task"), 1); ZEPHIR_INIT_VAR(&_2$$3); ZVAL_STRING(&_2$$3, "#^(?::delimiter)?([a-zA-Z0-9\\_\\-]+)[:delimiter]{0,1}$#"); - ZEPHIR_CALL_METHOD(NULL, &_0$$3, "__construct", &_3, 132, &_2$$3, &_1$$3); + ZEPHIR_CALL_METHOD(NULL, &_0$$3, "__construct", &_3, 120, &_2$$3, &_1$$3); zephir_check_call_status(); zephir_array_append(&routes, &_0$$3, PH_SEPARATE, "phalcon/cli/router.zep", 93); ZEPHIR_INIT_NVAR(&_2$$3); @@ -45050,7 +43537,7 @@ static PHP_METHOD(Phalcon_Cli_Router, __construct) { add_assoc_long_ex(&_4$$3, SL("params"), 3); ZEPHIR_INIT_VAR(&_5$$3); ZVAL_STRING(&_5$$3, "#^(?::delimiter)?([a-zA-Z0-9\\_\\-]+):delimiter([a-zA-Z0-9\\.\\_]+)(:delimiter.*)*$#"); - ZEPHIR_CALL_METHOD(NULL, &_2$$3, "__construct", &_3, 132, &_5$$3, &_4$$3); + ZEPHIR_CALL_METHOD(NULL, &_2$$3, "__construct", &_3, 120, &_5$$3, &_4$$3); zephir_check_call_status(); zephir_array_append(&routes, &_2$$3, PH_SEPARATE, "phalcon/cli/router.zep", 99); } @@ -45405,7 +43892,7 @@ static PHP_METHOD(Phalcon_Cli_Router, handle) { ZEPHIR_INIT_VAR(&strParams); zephir_substr(&strParams, &_15$$30, 1 , 0, ZEPHIR_SUBSTR_NO_LENGTH); if (zephir_is_true(&strParams)) { - ZEPHIR_CALL_CE_STATIC(&_17$$31, phalcon_cli_router_route_ce, "getdelimiter", &_18, 131); + ZEPHIR_CALL_CE_STATIC(&_17$$31, phalcon_cli_router_route_ce, "getdelimiter", &_18, 0); zephir_check_call_status(); ZEPHIR_INIT_NVAR(¶ms); zephir_fast_explode(¶ms, &_17$$31, &strParams, LONG_MAX TSRMLS_CC); @@ -45446,11 +43933,11 @@ static PHP_METHOD(Phalcon_Cli_Router, add) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &pattern_param, &paths); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(&pattern, pattern_param); } else { ZEPHIR_INIT_VAR(&pattern); @@ -45464,7 +43951,7 @@ static PHP_METHOD(Phalcon_Cli_Router, add) { ZEPHIR_INIT_VAR(&route); object_init_ex(&route, phalcon_cli_router_route_ce); - ZEPHIR_CALL_METHOD(NULL, &route, "__construct", NULL, 132, &pattern, paths); + ZEPHIR_CALL_METHOD(NULL, &route, "__construct", NULL, 120, &pattern, paths); zephir_check_call_status(); zephir_update_property_array_append(this_ptr, SL("_routes"), &route TSRMLS_CC); RETURN_CCTOR(route); @@ -45591,11 +44078,11 @@ static PHP_METHOD(Phalcon_Cli_Router, getRouteByName) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(&name, name_param); } else { ZEPHIR_INIT_VAR(&name); @@ -45866,11 +44353,11 @@ static PHP_METHOD(Phalcon_Cli_Router_Route, __construct) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &pattern_param, &paths); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(&pattern, pattern_param); } else { ZEPHIR_INIT_VAR(&pattern); @@ -45939,11 +44426,11 @@ static PHP_METHOD(Phalcon_Cli_Router_Route, compilePattern) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &pattern_param); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(&pattern, pattern_param); } else { ZEPHIR_INIT_VAR(&pattern); @@ -46065,11 +44552,11 @@ static PHP_METHOD(Phalcon_Cli_Router_Route, extractNamedParams) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &pattern_param); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(&pattern, pattern_param); } else { ZEPHIR_INIT_VAR(&pattern); @@ -46303,11 +44790,11 @@ static PHP_METHOD(Phalcon_Cli_Router_Route, reConfigure) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &pattern_param, &paths); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(&pattern, pattern_param); } else { ZEPHIR_INIT_VAR(&pattern); @@ -46442,11 +44929,11 @@ static PHP_METHOD(Phalcon_Cli_Router_Route, setName) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(&name, name_param); } else { ZEPHIR_INIT_VAR(&name); @@ -46568,11 +45055,11 @@ static PHP_METHOD(Phalcon_Cli_Router_Route, convert) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &name_param, &converter); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(&name, name_param); } else { ZEPHIR_INIT_VAR(&name); @@ -46621,11 +45108,11 @@ static PHP_METHOD(Phalcon_Cli_Router_Route, delimiter) { ZEPHIR_INIT_VAR(&delimiter); ZVAL_STRING(&delimiter, ""); } else { - if (unlikely(Z_TYPE_P(delimiter_param) != IS_STRING && Z_TYPE_P(delimiter_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(delimiter_param) != IS_STRING && Z_TYPE_P(delimiter_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'delimiter' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(delimiter_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(delimiter_param) == IS_STRING)) { zephir_get_strval(&delimiter, delimiter_param); } else { ZEPHIR_INIT_VAR(&delimiter); @@ -46765,11 +45252,11 @@ static PHP_METHOD(Phalcon_Config_Adapter_Ini, __construct) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &filePath_param, &mode); - if (unlikely(Z_TYPE_P(filePath_param) != IS_STRING && Z_TYPE_P(filePath_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(filePath_param) != IS_STRING && Z_TYPE_P(filePath_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'filePath' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(filePath_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(filePath_param) == IS_STRING)) { zephir_get_strval(&filePath, filePath_param); } else { ZEPHIR_INIT_VAR(&filePath); @@ -46787,7 +45274,7 @@ static PHP_METHOD(Phalcon_Config_Adapter_Ini, __construct) { ZEPHIR_INIT_NVAR(mode); ZVAL_LONG(mode, 1); } - ZEPHIR_CALL_FUNCTION(&iniConfig, "parse_ini_file", NULL, 133, &filePath, &__$true, mode); + ZEPHIR_CALL_FUNCTION(&iniConfig, "parse_ini_file", NULL, 121, &filePath, &__$true, mode); zephir_check_call_status(); if (ZEPHIR_IS_FALSE_IDENTICAL(&iniConfig)) { ZEPHIR_INIT_VAR(&_0$$4); @@ -46796,7 +45283,7 @@ static PHP_METHOD(Phalcon_Config_Adapter_Ini, __construct) { zephir_basename(&_1$$4, &filePath TSRMLS_CC); ZEPHIR_INIT_VAR(&_2$$4); ZEPHIR_CONCAT_SVS(&_2$$4, "Configuration file ", &_1$$4, " can't be loaded"); - ZEPHIR_CALL_METHOD(NULL, &_0$$4, "__construct", NULL, 9, &_2$$4); + ZEPHIR_CALL_METHOD(NULL, &_0$$4, "__construct", NULL, 4, &_2$$4); zephir_check_call_status(); zephir_throw_exception_debug(&_0$$4, "phalcon/config/adapter/ini.zep", 85 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -46852,7 +45339,7 @@ static PHP_METHOD(Phalcon_Config_Adapter_Ini, __construct) { } ZEND_HASH_FOREACH_END(); ZEPHIR_INIT_NVAR(&directives); ZEPHIR_INIT_NVAR(§ion); - ZEPHIR_CALL_PARENT(NULL, phalcon_config_adapter_ini_ce, this_ptr, "__construct", &_16, 19, &config); + ZEPHIR_CALL_PARENT(NULL, phalcon_config_adapter_ini_ce, this_ptr, "__construct", &_16, 0, &config); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -46878,11 +45365,11 @@ static PHP_METHOD(Phalcon_Config_Adapter_Ini, _parseIniString) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &path_param, &value); - if (unlikely(Z_TYPE_P(path_param) != IS_STRING && Z_TYPE_P(path_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(path_param) != IS_STRING && Z_TYPE_P(path_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'path' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(path_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(path_param) == IS_STRING)) { zephir_get_strval(&path, path_param); } else { ZEPHIR_INIT_VAR(&path); @@ -46911,7 +45398,7 @@ static PHP_METHOD(Phalcon_Config_Adapter_Ini, _parseIniString) { zephir_substr(&_4, &path, zephir_get_intval(&_3), 0, ZEPHIR_SUBSTR_NO_LENGTH); zephir_get_strval(&path, &_4); zephir_create_array(return_value, 1, 0 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_0, this_ptr, "_parseinistring", NULL, 134, &path, value); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "_parseinistring", NULL, 122, &path, value); zephir_check_call_status(); zephir_array_update_zval(return_value, &key, &_0, PH_COPY); RETURN_MM(); @@ -46956,7 +45443,7 @@ static PHP_METHOD(Phalcon_Config_Adapter_Ini, _cast) { } ZEPHIR_INIT_NVAR(&val); ZVAL_COPY(&val, _0$$3); - ZEPHIR_CALL_METHOD(&_3$$4, this_ptr, "_cast", &_4, 135, &val); + ZEPHIR_CALL_METHOD(&_3$$4, this_ptr, "_cast", &_4, 123, &val); zephir_check_call_status(); zephir_array_update_zval(ini, &key, &_3$$4, PH_COPY | PH_SEPARATE); } ZEND_HASH_FOREACH_END(); @@ -47045,11 +45532,11 @@ static PHP_METHOD(Phalcon_Config_Adapter_Json, __construct) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &filePath_param); - if (unlikely(Z_TYPE_P(filePath_param) != IS_STRING && Z_TYPE_P(filePath_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(filePath_param) != IS_STRING && Z_TYPE_P(filePath_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'filePath' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(filePath_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(filePath_param) == IS_STRING)) { zephir_get_strval(&filePath, filePath_param); } else { ZEPHIR_INIT_VAR(&filePath); @@ -47061,7 +45548,7 @@ static PHP_METHOD(Phalcon_Config_Adapter_Json, __construct) { ZEPHIR_INIT_VAR(&_2); zephir_file_get_contents(&_2, &filePath TSRMLS_CC); zephir_json_decode(&_1, &_2, zephir_get_intval(&__$true) ); - ZEPHIR_CALL_PARENT(NULL, phalcon_config_adapter_json_ce, this_ptr, "__construct", &_0, 19, &_1); + ZEPHIR_CALL_PARENT(NULL, phalcon_config_adapter_json_ce, this_ptr, "__construct", &_0, 0, &_1); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -47099,11 +45586,11 @@ static PHP_METHOD(Phalcon_Config_Adapter_Php, __construct) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &filePath_param); - if (unlikely(Z_TYPE_P(filePath_param) != IS_STRING && Z_TYPE_P(filePath_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(filePath_param) != IS_STRING && Z_TYPE_P(filePath_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'filePath' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(filePath_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(filePath_param) == IS_STRING)) { zephir_get_strval(&filePath, filePath_param); } else { ZEPHIR_INIT_VAR(&filePath); @@ -47115,7 +45602,7 @@ static PHP_METHOD(Phalcon_Config_Adapter_Php, __construct) { if (zephir_require_zval_ret(&_1, &filePath TSRMLS_CC) == FAILURE) { RETURN_MM_NULL(); } - ZEPHIR_CALL_PARENT(NULL, phalcon_config_adapter_php_ce, this_ptr, "__construct", &_0, 19, &_1); + ZEPHIR_CALL_PARENT(NULL, phalcon_config_adapter_php_ce, this_ptr, "__construct", &_0, 0, &_1); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -47162,11 +45649,11 @@ static PHP_METHOD(Phalcon_Config_Adapter_Yaml, __construct) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &filePath_param, &callbacks_param); - if (unlikely(Z_TYPE_P(filePath_param) != IS_STRING && Z_TYPE_P(filePath_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(filePath_param) != IS_STRING && Z_TYPE_P(filePath_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'filePath' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(filePath_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(filePath_param) == IS_STRING)) { zephir_get_strval(&filePath, filePath_param); } else { ZEPHIR_INIT_VAR(&filePath); @@ -47183,7 +45670,7 @@ static PHP_METHOD(Phalcon_Config_Adapter_Yaml, __construct) { ndocs = 0; ZEPHIR_INIT_VAR(&_0); ZVAL_STRING(&_0, "yaml"); - ZEPHIR_CALL_FUNCTION(&_1, "extension_loaded", NULL, 136, &_0); + ZEPHIR_CALL_FUNCTION(&_1, "extension_loaded", NULL, 124, &_0); zephir_check_call_status(); if (!(zephir_is_true(&_1))) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_config_exception_ce, "Yaml extension not loaded", "phalcon/config/adapter/yaml.zep", 76); @@ -47193,11 +45680,11 @@ static PHP_METHOD(Phalcon_Config_Adapter_Yaml, __construct) { ZVAL_LONG(&_2$$4, 0); ZVAL_LONG(&_3$$4, ndocs); ZEPHIR_MAKE_REF(&_3$$4); - ZEPHIR_CALL_FUNCTION(&yamlConfig, "yaml_parse_file", &_4, 137, &filePath, &_2$$4, &_3$$4, &callbacks); + ZEPHIR_CALL_FUNCTION(&yamlConfig, "yaml_parse_file", &_4, 125, &filePath, &_2$$4, &_3$$4, &callbacks); ZEPHIR_UNREF(&_3$$4); zephir_check_call_status(); } else { - ZEPHIR_CALL_FUNCTION(&yamlConfig, "yaml_parse_file", &_4, 137, &filePath); + ZEPHIR_CALL_FUNCTION(&yamlConfig, "yaml_parse_file", &_4, 125, &filePath); zephir_check_call_status(); } if (ZEPHIR_IS_FALSE_IDENTICAL(&yamlConfig)) { @@ -47207,13 +45694,13 @@ static PHP_METHOD(Phalcon_Config_Adapter_Yaml, __construct) { zephir_basename(&_6$$6, &filePath TSRMLS_CC); ZEPHIR_INIT_VAR(&_7$$6); ZEPHIR_CONCAT_SVS(&_7$$6, "Configuration file ", &_6$$6, " can't be loaded"); - ZEPHIR_CALL_METHOD(NULL, &_5$$6, "__construct", NULL, 9, &_7$$6); + ZEPHIR_CALL_METHOD(NULL, &_5$$6, "__construct", NULL, 4, &_7$$6); zephir_check_call_status(); zephir_throw_exception_debug(&_5$$6, "phalcon/config/adapter/yaml.zep", 86 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } - ZEPHIR_CALL_PARENT(NULL, phalcon_config_adapter_yaml_ce, this_ptr, "__construct", &_8, 19, &yamlConfig); + ZEPHIR_CALL_PARENT(NULL, phalcon_config_adapter_yaml_ce, this_ptr, "__construct", &_8, 0, &yamlConfig); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -47429,11 +45916,11 @@ static PHP_METHOD(Phalcon_Db_Adapter, fetchOne) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 3, &sqlQuery_param, &fetchMode, &bindParams, &bindTypes); - if (unlikely(Z_TYPE_P(sqlQuery_param) != IS_STRING && Z_TYPE_P(sqlQuery_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(sqlQuery_param) != IS_STRING && Z_TYPE_P(sqlQuery_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'sqlQuery' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(sqlQuery_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(sqlQuery_param) == IS_STRING)) { zephir_get_strval(&sqlQuery, sqlQuery_param); } else { ZEPHIR_INIT_VAR(&sqlQuery); @@ -47625,7 +46112,7 @@ static PHP_METHOD(Phalcon_Db_Adapter, insert) { object_init_ex(&_0$$3, phalcon_db_exception_ce); ZEPHIR_INIT_VAR(&_1$$3); ZEPHIR_CONCAT_SVS(&_1$$3, "Unable to insert into ", table, " without data"); - ZEPHIR_CALL_METHOD(NULL, &_0$$3, "__construct", NULL, 9, &_1$$3); + ZEPHIR_CALL_METHOD(NULL, &_0$$3, "__construct", NULL, 4, &_1$$3); zephir_check_call_status(); zephir_throw_exception_debug(&_0$$3, "phalcon/db/adapter.zep", 319 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -48091,11 +46578,11 @@ static PHP_METHOD(Phalcon_Db_Adapter, limit) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &sqlQuery_param, &number_param); - if (unlikely(Z_TYPE_P(sqlQuery_param) != IS_STRING && Z_TYPE_P(sqlQuery_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(sqlQuery_param) != IS_STRING && Z_TYPE_P(sqlQuery_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'sqlQuery' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(sqlQuery_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(sqlQuery_param) == IS_STRING)) { zephir_get_strval(&sqlQuery, sqlQuery_param); } else { ZEPHIR_INIT_VAR(&sqlQuery); @@ -48130,11 +46617,11 @@ static PHP_METHOD(Phalcon_Db_Adapter, tableExists) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &tableName_param, &schemaName_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(&tableName, tableName_param); } else { ZEPHIR_INIT_VAR(&tableName); @@ -48144,11 +46631,11 @@ static PHP_METHOD(Phalcon_Db_Adapter, tableExists) { ZEPHIR_INIT_VAR(&schemaName); ZVAL_STRING(&schemaName, ""); } else { - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(&schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(&schemaName); @@ -48186,11 +46673,11 @@ static PHP_METHOD(Phalcon_Db_Adapter, viewExists) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &viewName_param, &schemaName_param); - if (unlikely(Z_TYPE_P(viewName_param) != IS_STRING && Z_TYPE_P(viewName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(viewName_param) != IS_STRING && Z_TYPE_P(viewName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'viewName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(viewName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(viewName_param) == IS_STRING)) { zephir_get_strval(&viewName, viewName_param); } else { ZEPHIR_INIT_VAR(&viewName); @@ -48200,11 +46687,11 @@ static PHP_METHOD(Phalcon_Db_Adapter, viewExists) { ZEPHIR_INIT_VAR(&schemaName); ZVAL_STRING(&schemaName, ""); } else { - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(&schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(&schemaName); @@ -48237,11 +46724,11 @@ static PHP_METHOD(Phalcon_Db_Adapter, forUpdate) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &sqlQuery_param); - if (unlikely(Z_TYPE_P(sqlQuery_param) != IS_STRING && Z_TYPE_P(sqlQuery_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(sqlQuery_param) != IS_STRING && Z_TYPE_P(sqlQuery_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'sqlQuery' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(sqlQuery_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(sqlQuery_param) == IS_STRING)) { zephir_get_strval(&sqlQuery, sqlQuery_param); } else { ZEPHIR_INIT_VAR(&sqlQuery); @@ -48269,11 +46756,11 @@ static PHP_METHOD(Phalcon_Db_Adapter, sharedLock) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &sqlQuery_param); - if (unlikely(Z_TYPE_P(sqlQuery_param) != IS_STRING && Z_TYPE_P(sqlQuery_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(sqlQuery_param) != IS_STRING && Z_TYPE_P(sqlQuery_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'sqlQuery' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(sqlQuery_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(sqlQuery_param) == IS_STRING)) { zephir_get_strval(&sqlQuery, sqlQuery_param); } else { ZEPHIR_INIT_VAR(&sqlQuery); @@ -48306,21 +46793,21 @@ static PHP_METHOD(Phalcon_Db_Adapter, createTable) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &definition_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(&tableName, tableName_param); } else { ZEPHIR_INIT_VAR(&tableName); ZVAL_EMPTY_STRING(&tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(&schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(&schemaName); @@ -48364,11 +46851,11 @@ static PHP_METHOD(Phalcon_Db_Adapter, dropTable) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &tableName_param, &schemaName_param, &ifExists_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(&tableName, tableName_param); } else { ZEPHIR_INIT_VAR(&tableName); @@ -48378,11 +46865,11 @@ static PHP_METHOD(Phalcon_Db_Adapter, dropTable) { ZEPHIR_INIT_VAR(&schemaName); ZVAL_STRING(&schemaName, ""); } else { - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(&schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(&schemaName); @@ -48428,11 +46915,11 @@ static PHP_METHOD(Phalcon_Db_Adapter, createView) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 1, &viewName_param, &definition_param, &schemaName); - if (unlikely(Z_TYPE_P(viewName_param) != IS_STRING && Z_TYPE_P(viewName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(viewName_param) != IS_STRING && Z_TYPE_P(viewName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'viewName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(viewName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(viewName_param) == IS_STRING)) { zephir_get_strval(&viewName, viewName_param); } else { ZEPHIR_INIT_VAR(&viewName); @@ -48475,11 +46962,11 @@ static PHP_METHOD(Phalcon_Db_Adapter, dropView) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &viewName_param, &schemaName_param, &ifExists_param); - if (unlikely(Z_TYPE_P(viewName_param) != IS_STRING && Z_TYPE_P(viewName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(viewName_param) != IS_STRING && Z_TYPE_P(viewName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'viewName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(viewName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(viewName_param) == IS_STRING)) { zephir_get_strval(&viewName, viewName_param); } else { ZEPHIR_INIT_VAR(&viewName); @@ -48489,11 +46976,11 @@ static PHP_METHOD(Phalcon_Db_Adapter, dropView) { ZEPHIR_INIT_VAR(&schemaName); ZVAL_STRING(&schemaName, ""); } else { - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(&schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(&schemaName); @@ -48537,21 +47024,21 @@ static PHP_METHOD(Phalcon_Db_Adapter, addColumn) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &column); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(&tableName, tableName_param); } else { ZEPHIR_INIT_VAR(&tableName); ZVAL_EMPTY_STRING(&tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(&schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(&schemaName); @@ -48586,21 +47073,21 @@ static PHP_METHOD(Phalcon_Db_Adapter, modifyColumn) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 1, &tableName_param, &schemaName_param, &column, ¤tColumn); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(&tableName, tableName_param); } else { ZEPHIR_INIT_VAR(&tableName); ZVAL_EMPTY_STRING(&tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(&schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(&schemaName); @@ -48637,21 +47124,21 @@ static PHP_METHOD(Phalcon_Db_Adapter, dropColumn) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &columnName_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(&tableName, tableName_param); } else { ZEPHIR_INIT_VAR(&tableName); ZVAL_EMPTY_STRING(&tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(&schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(&schemaName); @@ -48685,21 +47172,21 @@ static PHP_METHOD(Phalcon_Db_Adapter, addIndex) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &index); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(&tableName, tableName_param); } else { ZEPHIR_INIT_VAR(&tableName); ZVAL_EMPTY_STRING(&tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(&schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(&schemaName); @@ -48732,21 +47219,21 @@ static PHP_METHOD(Phalcon_Db_Adapter, dropIndex) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &indexName); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(&tableName, tableName_param); } else { ZEPHIR_INIT_VAR(&tableName); ZVAL_EMPTY_STRING(&tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(&schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(&schemaName); @@ -48779,21 +47266,21 @@ static PHP_METHOD(Phalcon_Db_Adapter, addPrimaryKey) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &index); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(&tableName, tableName_param); } else { ZEPHIR_INIT_VAR(&tableName); ZVAL_EMPTY_STRING(&tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(&schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(&schemaName); @@ -48825,21 +47312,21 @@ static PHP_METHOD(Phalcon_Db_Adapter, dropPrimaryKey) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &tableName_param, &schemaName_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(&tableName, tableName_param); } else { ZEPHIR_INIT_VAR(&tableName); ZVAL_EMPTY_STRING(&tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(&schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(&schemaName); @@ -48872,21 +47359,21 @@ static PHP_METHOD(Phalcon_Db_Adapter, addForeignKey) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &reference); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(&tableName, tableName_param); } else { ZEPHIR_INIT_VAR(&tableName); ZVAL_EMPTY_STRING(&tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(&schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(&schemaName); @@ -48919,31 +47406,31 @@ static PHP_METHOD(Phalcon_Db_Adapter, dropForeignKey) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &referenceName_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(&tableName, tableName_param); } else { ZEPHIR_INIT_VAR(&tableName); ZVAL_EMPTY_STRING(&tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(&schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(&schemaName); ZVAL_EMPTY_STRING(&schemaName); } - if (unlikely(Z_TYPE_P(referenceName_param) != IS_STRING && Z_TYPE_P(referenceName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(referenceName_param) != IS_STRING && Z_TYPE_P(referenceName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'referenceName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(referenceName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(referenceName_param) == IS_STRING)) { zephir_get_strval(&referenceName, referenceName_param); } else { ZEPHIR_INIT_VAR(&referenceName); @@ -49004,11 +47491,11 @@ static PHP_METHOD(Phalcon_Db_Adapter, listTables) { ZEPHIR_INIT_VAR(&schemaName); ZVAL_STRING(&schemaName, ""); } else { - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(&schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(&schemaName); @@ -49061,11 +47548,11 @@ static PHP_METHOD(Phalcon_Db_Adapter, listViews) { ZEPHIR_INIT_VAR(&schemaName); ZVAL_STRING(&schemaName, ""); } else { - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(&schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(&schemaName); @@ -49125,11 +47612,11 @@ static PHP_METHOD(Phalcon_Db_Adapter, describeIndexes) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &table_param, &schema); - if (unlikely(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'table' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(table_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(table_param) == IS_STRING)) { zephir_get_strval(&table, table_param); } else { ZEPHIR_INIT_VAR(&table); @@ -49182,7 +47669,7 @@ static PHP_METHOD(Phalcon_Db_Adapter, describeIndexes) { ZVAL_COPY(&indexColumns, _6); ZEPHIR_INIT_NVAR(&_9$$6); object_init_ex(&_9$$6, phalcon_db_index_ce); - ZEPHIR_CALL_METHOD(NULL, &_9$$6, "__construct", &_10, 22, &name, &indexColumns); + ZEPHIR_CALL_METHOD(NULL, &_9$$6, "__construct", &_10, 17, &name, &indexColumns); zephir_check_call_status(); zephir_array_update_zval(&indexObjects, &name, &_9$$6, PH_COPY | PH_SEPARATE); } ZEND_HASH_FOREACH_END(); @@ -49233,11 +47720,11 @@ static PHP_METHOD(Phalcon_Db_Adapter, describeReferences) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &table_param, &schema_param); - if (unlikely(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'table' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(table_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(table_param) == IS_STRING)) { zephir_get_strval(&table, table_param); } else { ZEPHIR_INIT_VAR(&table); @@ -49247,11 +47734,11 @@ static PHP_METHOD(Phalcon_Db_Adapter, describeReferences) { ZEPHIR_INIT_VAR(&schema); ZVAL_STRING(&schema, ""); } else { - if (unlikely(Z_TYPE_P(schema_param) != IS_STRING && Z_TYPE_P(schema_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schema_param) != IS_STRING && Z_TYPE_P(schema_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schema' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schema_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schema_param) == IS_STRING)) { zephir_get_strval(&schema, schema_param); } else { ZEPHIR_INIT_VAR(&schema); @@ -49339,7 +47826,7 @@ static PHP_METHOD(Phalcon_Db_Adapter, describeReferences) { ZEPHIR_OBS_NVAR(&_17$$6); zephir_array_fetch_string(&_17$$6, &arrayReference, SL("referencedColumns"), PH_NOISY, "phalcon/db/adapter.zep", 985 TSRMLS_CC); zephir_array_update_string(&_16$$6, SL("referencedColumns"), &_17$$6, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(NULL, &_15$$6, "__construct", &_18, 23, &name, &_16$$6); + ZEPHIR_CALL_METHOD(NULL, &_15$$6, "__construct", &_18, 18, &name, &_16$$6); zephir_check_call_status(); zephir_array_update_zval(&referenceObjects, &name, &_15$$6, PH_COPY | PH_SEPARATE); } ZEND_HASH_FOREACH_END(); @@ -49367,11 +47854,11 @@ static PHP_METHOD(Phalcon_Db_Adapter, tableOptions) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &tableName_param, &schemaName_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(&tableName, tableName_param); } else { ZEPHIR_INIT_VAR(&tableName); @@ -49415,11 +47902,11 @@ static PHP_METHOD(Phalcon_Db_Adapter, createSavepoint) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(&name, name_param); } else { ZEPHIR_INIT_VAR(&name); @@ -49459,11 +47946,11 @@ static PHP_METHOD(Phalcon_Db_Adapter, releaseSavepoint) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(&name, name_param); } else { ZEPHIR_INIT_VAR(&name); @@ -49507,11 +47994,11 @@ static PHP_METHOD(Phalcon_Db_Adapter, rollbackSavepoint) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(&name, name_param); } else { ZEPHIR_INIT_VAR(&name); @@ -49611,7 +48098,7 @@ static PHP_METHOD(Phalcon_Db_Adapter, getDefaultIdValue) { object_init_ex(return_value, phalcon_db_rawvalue_ce); ZEPHIR_INIT_VAR(&_0); ZVAL_STRING(&_0, "null"); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 24, &_0); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 19, &_0); zephir_check_call_status(); RETURN_MM(); @@ -49630,7 +48117,7 @@ static PHP_METHOD(Phalcon_Db_Adapter, getDefaultValue) { object_init_ex(return_value, phalcon_db_rawvalue_ce); ZEPHIR_INIT_VAR(&_0); ZVAL_STRING(&_0, "DEFAULT"); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 24, &_0); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 19, &_0); zephir_check_call_status(); RETURN_MM(); @@ -50066,11 +48553,11 @@ static PHP_METHOD(Phalcon_Db_Column, __construct) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &name_param, &definition_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(&name, name_param); } else { ZEPHIR_INIT_VAR(&name); @@ -50337,7 +48824,7 @@ static PHP_METHOD(Phalcon_Db_Column, __set_state) { zephir_array_update_string(&definition, SL("bindType"), &bindType, PH_COPY | PH_SEPARATE); } object_init_ex(return_value, phalcon_db_column_ce); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 148, &columnName, &definition); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 136, &columnName, &definition); zephir_check_call_status(); RETURN_MM(); @@ -50485,11 +48972,11 @@ static PHP_METHOD(Phalcon_Db_Dialect, escapeSchema) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &str_param, &escapeChar_param); - if (unlikely(Z_TYPE_P(str_param) != IS_STRING && Z_TYPE_P(str_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(str_param) != IS_STRING && Z_TYPE_P(str_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'str' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(str_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(str_param) == IS_STRING)) { zephir_get_strval(&str, str_param); } else { ZEPHIR_INIT_VAR(&str); @@ -50549,11 +49036,11 @@ static PHP_METHOD(Phalcon_Db_Dialect, escape) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &str_param, &escapeChar_param); - if (unlikely(Z_TYPE_P(str_param) != IS_STRING && Z_TYPE_P(str_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(str_param) != IS_STRING && Z_TYPE_P(str_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'str' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(str_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(str_param) == IS_STRING)) { zephir_get_strval(&str, str_param); } else { ZEPHIR_INIT_VAR(&str); @@ -50653,11 +49140,11 @@ static PHP_METHOD(Phalcon_Db_Dialect, limit) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &sqlQuery_param, &number); - if (unlikely(Z_TYPE_P(sqlQuery_param) != IS_STRING && Z_TYPE_P(sqlQuery_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(sqlQuery_param) != IS_STRING && Z_TYPE_P(sqlQuery_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'sqlQuery' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(sqlQuery_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(sqlQuery_param) == IS_STRING)) { zephir_get_strval(&sqlQuery, sqlQuery_param); } else { ZEPHIR_INIT_VAR(&sqlQuery); @@ -50699,11 +49186,11 @@ static PHP_METHOD(Phalcon_Db_Dialect, forUpdate) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &sqlQuery_param); - if (unlikely(Z_TYPE_P(sqlQuery_param) != IS_STRING && Z_TYPE_P(sqlQuery_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(sqlQuery_param) != IS_STRING && Z_TYPE_P(sqlQuery_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'sqlQuery' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(sqlQuery_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(sqlQuery_param) == IS_STRING)) { zephir_get_strval(&sqlQuery, sqlQuery_param); } else { ZEPHIR_INIT_VAR(&sqlQuery); @@ -50727,11 +49214,11 @@ static PHP_METHOD(Phalcon_Db_Dialect, sharedLock) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &sqlQuery_param); - if (unlikely(Z_TYPE_P(sqlQuery_param) != IS_STRING && Z_TYPE_P(sqlQuery_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(sqlQuery_param) != IS_STRING && Z_TYPE_P(sqlQuery_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'sqlQuery' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(sqlQuery_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(sqlQuery_param) == IS_STRING)) { zephir_get_strval(&sqlQuery, sqlQuery_param); } else { ZEPHIR_INIT_VAR(&sqlQuery); @@ -50784,7 +49271,7 @@ static PHP_METHOD(Phalcon_Db_Dialect, getColumnList) { { ZEPHIR_INIT_NVAR(&column); ZVAL_COPY(&column, _0); - ZEPHIR_CALL_METHOD(&_1$$3, this_ptr, "getsqlcolumn", &_2, 40, &column, &escapeChar, bindCounts); + ZEPHIR_CALL_METHOD(&_1$$3, this_ptr, "getsqlcolumn", &_2, 34, &column, &escapeChar, bindCounts); zephir_check_call_status(); zephir_array_append(&columns, &_1$$3, PH_SEPARATE, "phalcon/db/dialect.zep", 179); } ZEND_HASH_FOREACH_END(); @@ -50947,17 +49434,17 @@ static PHP_METHOD(Phalcon_Db_Dialect, getSqlExpression) { } do { if (ZEPHIR_IS_STRING(&type, "scalar")) { - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "getsqlexpressionscalar", NULL, 41, &expression, &escapeChar, bindCounts); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "getsqlexpressionscalar", NULL, 35, &expression, &escapeChar, bindCounts); zephir_check_call_status(); RETURN_MM(); } if (ZEPHIR_IS_STRING(&type, "object")) { - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "getsqlexpressionobject", NULL, 42, &expression, &escapeChar, bindCounts); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "getsqlexpressionobject", NULL, 36, &expression, &escapeChar, bindCounts); zephir_check_call_status(); RETURN_MM(); } if (ZEPHIR_IS_STRING(&type, "qualified")) { - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "getsqlexpressionqualified", NULL, 43, &expression, &escapeChar); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "getsqlexpressionqualified", NULL, 37, &expression, &escapeChar); zephir_check_call_status(); RETURN_MM(); } @@ -51006,34 +49493,34 @@ static PHP_METHOD(Phalcon_Db_Dialect, getSqlExpression) { RETURN_CTOR(_6$$8); } if (ZEPHIR_IS_STRING(&type, "binary-op")) { - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "getsqlexpressionbinaryoperations", NULL, 44, &expression, &escapeChar, bindCounts); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "getsqlexpressionbinaryoperations", NULL, 38, &expression, &escapeChar, bindCounts); zephir_check_call_status(); RETURN_MM(); } if (ZEPHIR_IS_STRING(&type, "unary-op")) { - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "getsqlexpressionunaryoperations", NULL, 45, &expression, &escapeChar, bindCounts); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "getsqlexpressionunaryoperations", NULL, 39, &expression, &escapeChar, bindCounts); zephir_check_call_status(); RETURN_MM(); } if (ZEPHIR_IS_STRING(&type, "parentheses")) { zephir_array_fetch_string(&_8$$14, &expression, SL("left"), PH_NOISY | PH_READONLY, "phalcon/db/dialect.zep", 326 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_7$$14, this_ptr, "getsqlexpression", NULL, 46, &_8$$14, &escapeChar, bindCounts); + ZEPHIR_CALL_METHOD(&_7$$14, this_ptr, "getsqlexpression", NULL, 40, &_8$$14, &escapeChar, bindCounts); zephir_check_call_status(); ZEPHIR_CONCAT_SVS(return_value, "(", &_7$$14, ")"); RETURN_MM(); } if (ZEPHIR_IS_STRING(&type, "functionCall")) { - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "getsqlexpressionfunctioncall", NULL, 47, &expression, &escapeChar, bindCounts); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "getsqlexpressionfunctioncall", NULL, 41, &expression, &escapeChar, bindCounts); zephir_check_call_status(); RETURN_MM(); } if (ZEPHIR_IS_STRING(&type, "list")) { - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "getsqlexpressionlist", NULL, 48, &expression, &escapeChar, bindCounts); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "getsqlexpressionlist", NULL, 42, &expression, &escapeChar, bindCounts); zephir_check_call_status(); RETURN_MM(); } if (ZEPHIR_IS_STRING(&type, "all")) { - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "getsqlexpressionall", NULL, 49, &expression, &escapeChar); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "getsqlexpressionall", NULL, 43, &expression, &escapeChar); zephir_check_call_status(); RETURN_MM(); } @@ -51045,17 +49532,17 @@ static PHP_METHOD(Phalcon_Db_Dialect, getSqlExpression) { RETURN_MM(); } if (ZEPHIR_IS_STRING(&type, "cast")) { - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "getsqlexpressioncastvalue", NULL, 50, &expression, &escapeChar, bindCounts); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "getsqlexpressioncastvalue", NULL, 44, &expression, &escapeChar, bindCounts); zephir_check_call_status(); RETURN_MM(); } if (ZEPHIR_IS_STRING(&type, "convert")) { - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "getsqlexpressionconvertvalue", NULL, 51, &expression, &escapeChar, bindCounts); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "getsqlexpressionconvertvalue", NULL, 45, &expression, &escapeChar, bindCounts); zephir_check_call_status(); RETURN_MM(); } if (ZEPHIR_IS_STRING(&type, "case")) { - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "getsqlexpressioncase", NULL, 52, &expression, &escapeChar, bindCounts); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "getsqlexpressioncase", NULL, 46, &expression, &escapeChar, bindCounts); zephir_check_call_status(); RETURN_MM(); } @@ -51065,7 +49552,7 @@ static PHP_METHOD(Phalcon_Db_Dialect, getSqlExpression) { object_init_ex(&_11, phalcon_db_exception_ce); ZEPHIR_INIT_VAR(&_12); ZEPHIR_CONCAT_SVS(&_12, "Invalid SQL expression type '", &type, "'"); - ZEPHIR_CALL_METHOD(NULL, &_11, "__construct", NULL, 9, &_12); + ZEPHIR_CALL_METHOD(NULL, &_11, "__construct", NULL, 4, &_12); zephir_check_call_status(); zephir_throw_exception_debug(&_11, "phalcon/db/dialect.zep", 371 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -51108,7 +49595,7 @@ static PHP_METHOD(Phalcon_Db_Dialect, getSqlTable) { zephir_check_call_status(); RETURN_MM(); } - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "escape", NULL, 53, table, &escapeChar); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "escape", NULL, 47, table, &escapeChar); zephir_check_call_status(); RETURN_MM(); @@ -51185,12 +49672,12 @@ static PHP_METHOD(Phalcon_Db_Dialect, select) { zephir_array_isset_string_fetch(&bindCounts, &definition, SL("bindCounts"), 0); ZEPHIR_OBS_VAR(&escapeChar); zephir_read_property(&escapeChar, this_ptr, SL("_escapeChar"), PH_NOISY_CC); - ZEPHIR_CALL_METHOD(&_0, this_ptr, "getcolumnlist", NULL, 54, &columns, &escapeChar, &bindCounts); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "getcolumnlist", NULL, 48, &columns, &escapeChar, &bindCounts); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_1); ZEPHIR_CONCAT_SV(&_1, " ", &_0); zephir_concat_self(&sql, &_1 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_2, this_ptr, "getsqlexpressionfrom", NULL, 55, &tables, &escapeChar); + ZEPHIR_CALL_METHOD(&_2, this_ptr, "getsqlexpressionfrom", NULL, 49, &tables, &escapeChar); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_3); ZEPHIR_CONCAT_SV(&_3, " ", &_2); @@ -51202,7 +49689,7 @@ static PHP_METHOD(Phalcon_Db_Dialect, select) { } if (_4) { zephir_array_fetch_string(&_6$$9, &definition, SL("joins"), PH_NOISY | PH_READONLY, "phalcon/db/dialect.zep", 450 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_5$$9, this_ptr, "getsqlexpressionjoins", NULL, 56, &_6$$9, &escapeChar, &bindCounts); + ZEPHIR_CALL_METHOD(&_5$$9, this_ptr, "getsqlexpressionjoins", NULL, 50, &_6$$9, &escapeChar, &bindCounts); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_7$$9); ZEPHIR_CONCAT_SV(&_7$$9, " ", &_5$$9); @@ -51214,7 +49701,7 @@ static PHP_METHOD(Phalcon_Db_Dialect, select) { _8 = zephir_is_true(&where); } if (_8) { - ZEPHIR_CALL_METHOD(&_9$$10, this_ptr, "getsqlexpressionwhere", NULL, 57, &where, &escapeChar, &bindCounts); + ZEPHIR_CALL_METHOD(&_9$$10, this_ptr, "getsqlexpressionwhere", NULL, 51, &where, &escapeChar, &bindCounts); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_10$$10); ZEPHIR_CONCAT_SV(&_10$$10, " ", &_9$$10); @@ -51226,7 +49713,7 @@ static PHP_METHOD(Phalcon_Db_Dialect, select) { _11 = zephir_is_true(&groupBy); } if (_11) { - ZEPHIR_CALL_METHOD(&_12$$11, this_ptr, "getsqlexpressiongroupby", NULL, 58, &groupBy, &escapeChar); + ZEPHIR_CALL_METHOD(&_12$$11, this_ptr, "getsqlexpressiongroupby", NULL, 52, &groupBy, &escapeChar); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_13$$11); ZEPHIR_CONCAT_SV(&_13$$11, " ", &_12$$11); @@ -51238,7 +49725,7 @@ static PHP_METHOD(Phalcon_Db_Dialect, select) { _14 = zephir_is_true(&having); } if (_14) { - ZEPHIR_CALL_METHOD(&_15$$12, this_ptr, "getsqlexpressionhaving", NULL, 59, &having, &escapeChar, &bindCounts); + ZEPHIR_CALL_METHOD(&_15$$12, this_ptr, "getsqlexpressionhaving", NULL, 53, &having, &escapeChar, &bindCounts); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_16$$12); ZEPHIR_CONCAT_SV(&_16$$12, " ", &_15$$12); @@ -51250,7 +49737,7 @@ static PHP_METHOD(Phalcon_Db_Dialect, select) { _17 = zephir_is_true(&orderBy); } if (_17) { - ZEPHIR_CALL_METHOD(&_18$$13, this_ptr, "getsqlexpressionorderby", NULL, 60, &orderBy, &escapeChar, &bindCounts); + ZEPHIR_CALL_METHOD(&_18$$13, this_ptr, "getsqlexpressionorderby", NULL, 54, &orderBy, &escapeChar, &bindCounts); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_19$$13); ZEPHIR_CONCAT_SV(&_19$$13, " ", &_18$$13); @@ -51266,7 +49753,7 @@ static PHP_METHOD(Phalcon_Db_Dialect, select) { zephir_create_array(&_21$$14, 2, 0 TSRMLS_CC); zephir_array_update_string(&_21$$14, SL("sql"), &sql, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_21$$14, SL("value"), &limit, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(&sql, this_ptr, "getsqlexpressionlimit", NULL, 61, &_21$$14, &escapeChar, &bindCounts); + ZEPHIR_CALL_METHOD(&sql, this_ptr, "getsqlexpressionlimit", NULL, 55, &_21$$14, &escapeChar, &bindCounts); zephir_check_call_status(); } _22 = zephir_array_isset_string_fetch(&forUpdate, &definition, SL("forUpdate"), 1); @@ -51314,11 +49801,11 @@ static PHP_METHOD(Phalcon_Db_Dialect, createSavepoint) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(&name, name_param); } else { ZEPHIR_INIT_VAR(&name); @@ -51342,11 +49829,11 @@ static PHP_METHOD(Phalcon_Db_Dialect, releaseSavepoint) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(&name, name_param); } else { ZEPHIR_INIT_VAR(&name); @@ -51370,11 +49857,11 @@ static PHP_METHOD(Phalcon_Db_Dialect, rollbackSavepoint) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(&name, name_param); } else { ZEPHIR_INIT_VAR(&name); @@ -51420,7 +49907,7 @@ static PHP_METHOD(Phalcon_Db_Dialect, getSqlExpressionScalar) { if (zephir_array_isset_string(&expression, SL("column"))) { zephir_array_fetch_string(&_0$$3, &expression, SL("column"), PH_NOISY | PH_READONLY, "phalcon/db/dialect.zep", 546 TSRMLS_CC); - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "getsqlcolumn", NULL, 40, &_0$$3); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "getsqlcolumn", NULL, 34, &_0$$3); zephir_check_call_status(); RETURN_MM(); } @@ -51571,7 +50058,7 @@ static PHP_METHOD(Phalcon_Db_Dialect, getSqlExpressionBinaryOperations) { ZEPHIR_CALL_METHOD(&left, this_ptr, "getsqlexpression", &_1, 0, &_0, &escapeChar, bindCounts); zephir_check_call_status(); zephir_array_fetch_string(&_2, &expression, SL("right"), PH_NOISY | PH_READONLY, "phalcon/db/dialect.zep", 604 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&right, this_ptr, "getsqlexpression", &_1, 46, &_2, &escapeChar, bindCounts); + ZEPHIR_CALL_METHOD(&right, this_ptr, "getsqlexpression", &_1, 40, &_2, &escapeChar, bindCounts); zephir_check_call_status(); zephir_array_fetch_string(&_3, &expression, SL("op"), PH_NOISY | PH_READONLY, "phalcon/db/dialect.zep", 606 TSRMLS_CC); ZEPHIR_CONCAT_VSVSV(return_value, &left, " ", &_3, " ", &right); @@ -51626,7 +50113,7 @@ static PHP_METHOD(Phalcon_Db_Dialect, getSqlExpressionUnaryOperations) { ZEPHIR_OBS_VAR(&right); if (zephir_array_isset_string_fetch(&right, &expression, SL("right"), 0)) { zephir_array_fetch_string(&_3$$4, &expression, SL("op"), PH_NOISY | PH_READONLY, "phalcon/db/dialect.zep", 627 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_4$$4, this_ptr, "getsqlexpression", &_1, 46, &right, &escapeChar, bindCounts); + ZEPHIR_CALL_METHOD(&_4$$4, this_ptr, "getsqlexpression", &_1, 40, &right, &escapeChar, bindCounts); zephir_check_call_status(); ZEPHIR_CONCAT_VSV(return_value, &_3$$4, " ", &_4$$4); RETURN_MM(); @@ -51866,7 +50353,7 @@ static PHP_METHOD(Phalcon_Db_Dialect, getSqlExpressionCastValue) { ZEPHIR_CALL_METHOD(&left, this_ptr, "getsqlexpression", &_1, 0, &_0, &escapeChar, bindCounts); zephir_check_call_status(); zephir_array_fetch_string(&_2, &expression, SL("right"), PH_NOISY | PH_READONLY, "phalcon/db/dialect.zep", 714 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&right, this_ptr, "getsqlexpression", &_1, 46, &_2, &escapeChar, bindCounts); + ZEPHIR_CALL_METHOD(&right, this_ptr, "getsqlexpression", &_1, 40, &_2, &escapeChar, bindCounts); zephir_check_call_status(); ZEPHIR_CONCAT_SVSVS(return_value, "CAST(", &left, " AS ", &right, ")"); RETURN_MM(); @@ -51911,7 +50398,7 @@ static PHP_METHOD(Phalcon_Db_Dialect, getSqlExpressionConvertValue) { ZEPHIR_CALL_METHOD(&left, this_ptr, "getsqlexpression", &_1, 0, &_0, &escapeChar, bindCounts); zephir_check_call_status(); zephir_array_fetch_string(&_2, &expression, SL("right"), PH_NOISY | PH_READONLY, "phalcon/db/dialect.zep", 727 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&right, this_ptr, "getsqlexpression", &_1, 46, &_2, &escapeChar, bindCounts); + ZEPHIR_CALL_METHOD(&right, this_ptr, "getsqlexpression", &_1, 40, &_2, &escapeChar, bindCounts); zephir_check_call_status(); ZEPHIR_CONCAT_SVSVS(return_value, "CONVERT(", &left, " USING ", &right, ")"); RETURN_MM(); @@ -51976,17 +50463,17 @@ static PHP_METHOD(Phalcon_Db_Dialect, getSqlExpressionCase) { zephir_array_fetch_string(&_5$$3, &whenClause, SL("type"), PH_NOISY | PH_READONLY, "phalcon/db/dialect.zep", 742 TSRMLS_CC); if (ZEPHIR_IS_STRING(&_5$$3, "when")) { zephir_array_fetch_string(&_7$$4, &whenClause, SL("expr"), PH_NOISY | PH_READONLY, "phalcon/db/dialect.zep", 744 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_6$$4, this_ptr, "getsqlexpression", &_2, 46, &_7$$4, &escapeChar, bindCounts); + ZEPHIR_CALL_METHOD(&_6$$4, this_ptr, "getsqlexpression", &_2, 40, &_7$$4, &escapeChar, bindCounts); zephir_check_call_status(); zephir_array_fetch_string(&_9$$4, &whenClause, SL("then"), PH_NOISY | PH_READONLY, "phalcon/db/dialect.zep", 746 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_8$$4, this_ptr, "getsqlexpression", &_2, 46, &_9$$4, &escapeChar, bindCounts); + ZEPHIR_CALL_METHOD(&_8$$4, this_ptr, "getsqlexpression", &_2, 40, &_9$$4, &escapeChar, bindCounts); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_10$$4); ZEPHIR_CONCAT_SVSV(&_10$$4, " WHEN ", &_6$$4, " THEN ", &_8$$4); zephir_concat_self(&sql, &_10$$4 TSRMLS_CC); } else { zephir_array_fetch_string(&_12$$5, &whenClause, SL("expr"), PH_NOISY | PH_READONLY, "phalcon/db/dialect.zep", 748 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_11$$5, this_ptr, "getsqlexpression", &_2, 46, &_12$$5, &escapeChar, bindCounts); + ZEPHIR_CALL_METHOD(&_11$$5, this_ptr, "getsqlexpression", &_2, 40, &_12$$5, &escapeChar, bindCounts); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_13$$5); ZEPHIR_CONCAT_SV(&_13$$5, " ELSE ", &_11$$5); @@ -52033,7 +50520,7 @@ static PHP_METHOD(Phalcon_Db_Dialect, getSqlExpressionFrom) { { ZEPHIR_INIT_NVAR(&table); ZVAL_COPY(&table, _0$$3); - ZEPHIR_CALL_METHOD(&_1$$4, this_ptr, "getsqltable", &_2, 62, &table, &escapeChar); + ZEPHIR_CALL_METHOD(&_1$$4, this_ptr, "getsqltable", &_2, 56, &table, &escapeChar); zephir_check_call_status(); zephir_array_append(&tables, &_1$$4, PH_SEPARATE, "phalcon/db/dialect.zep", 767); } ZEND_HASH_FOREACH_END(); @@ -52115,7 +50602,7 @@ static PHP_METHOD(Phalcon_Db_Dialect, getSqlExpressionJoins) { { ZEPHIR_INIT_NVAR(&condition); ZVAL_COPY(&condition, _3$$6); - ZEPHIR_CALL_METHOD(&_4$$7, this_ptr, "getsqlexpression", &_2, 46, &condition, &escapeChar, bindCounts); + ZEPHIR_CALL_METHOD(&_4$$7, this_ptr, "getsqlexpression", &_2, 40, &condition, &escapeChar, bindCounts); zephir_check_call_status(); zephir_array_append(&joinCondition, &_4$$7, PH_SEPARATE, "phalcon/db/dialect.zep", 800); } ZEND_HASH_FOREACH_END(); @@ -52137,7 +50624,7 @@ static PHP_METHOD(Phalcon_Db_Dialect, getSqlExpressionJoins) { zephir_concat_self_str(&joinType, SL(" ") TSRMLS_CC); } zephir_array_fetch_string(&_7$$3, &join, SL("source"), PH_NOISY | PH_READONLY, "phalcon/db/dialect.zep", 813 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&joinTable, this_ptr, "getsqltable", &_8, 62, &_7$$3, &escapeChar); + ZEPHIR_CALL_METHOD(&joinTable, this_ptr, "getsqltable", &_8, 56, &_7$$3, &escapeChar); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_9$$3); ZEPHIR_CONCAT_SVSVSV(&_9$$3, " ", &joinType, "JOIN ", &joinTable, " ON ", &joinCondition); @@ -52227,7 +50714,7 @@ static PHP_METHOD(Phalcon_Db_Dialect, getSqlExpressionGroupBy) { { ZEPHIR_INIT_NVAR(&field); ZVAL_COPY(&field, _0$$3); - if (unlikely(Z_TYPE_P(&field) != IS_ARRAY)) { + if (UNEXPECTED(Z_TYPE_P(&field) != IS_ARRAY)) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Invalid SQL-GROUP-BY expression", "phalcon/db/dialect.zep", 850); return; } @@ -52330,7 +50817,7 @@ static PHP_METHOD(Phalcon_Db_Dialect, getSqlExpressionOrderBy) { { ZEPHIR_INIT_NVAR(&field); ZVAL_COPY(&field, _0$$3); - if (unlikely(Z_TYPE_P(&field) != IS_ARRAY)) { + if (UNEXPECTED(Z_TYPE_P(&field) != IS_ARRAY)) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Invalid SQL-ORDER-BY expression", "phalcon/db/dialect.zep", 887); return; } @@ -52426,7 +50913,7 @@ static PHP_METHOD(Phalcon_Db_Dialect, getSqlExpressionLimit) { _3$$4 = Z_TYPE_P(&offset) == IS_ARRAY; } if (_3$$4) { - ZEPHIR_CALL_METHOD(&_4$$7, this_ptr, "getsqlexpression", &_2, 46, &offset, &escapeChar, bindCounts); + ZEPHIR_CALL_METHOD(&_4$$7, this_ptr, "getsqlexpression", &_2, 40, &offset, &escapeChar, bindCounts); zephir_check_call_status(); ZEPHIR_CPY_WRT(&offset, &_4$$7); } @@ -52458,11 +50945,11 @@ static PHP_METHOD(Phalcon_Db_Dialect, prepareColumnAlias) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &qualified_param, &alias_param, &escapeChar_param); - if (unlikely(Z_TYPE_P(qualified_param) != IS_STRING && Z_TYPE_P(qualified_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(qualified_param) != IS_STRING && Z_TYPE_P(qualified_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'qualified' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(qualified_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(qualified_param) == IS_STRING)) { zephir_get_strval(&qualified, qualified_param); } else { ZEPHIR_INIT_VAR(&qualified); @@ -52483,7 +50970,7 @@ static PHP_METHOD(Phalcon_Db_Dialect, prepareColumnAlias) { if (!ZEPHIR_IS_STRING(&alias, "")) { - ZEPHIR_CALL_METHOD(&_0$$3, this_ptr, "escape", NULL, 53, &alias, &escapeChar); + ZEPHIR_CALL_METHOD(&_0$$3, this_ptr, "escape", NULL, 47, &alias, &escapeChar); zephir_check_call_status(); ZEPHIR_CONCAT_VSV(return_value, &qualified, " AS ", &_0$$3); RETURN_MM(); @@ -52513,11 +51000,11 @@ static PHP_METHOD(Phalcon_Db_Dialect, prepareTable) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 3, &table_param, &schema_param, &alias_param, &escapeChar_param); - if (unlikely(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'table' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(table_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(table_param) == IS_STRING)) { zephir_get_strval(&table, table_param); } else { ZEPHIR_INIT_VAR(&table); @@ -52543,18 +51030,18 @@ static PHP_METHOD(Phalcon_Db_Dialect, prepareTable) { } - ZEPHIR_CALL_METHOD(&_0, this_ptr, "escape", &_1, 53, &table, &escapeChar); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "escape", &_1, 47, &table, &escapeChar); zephir_check_call_status(); zephir_get_strval(&table, &_0); if (!ZEPHIR_IS_STRING(&schema, "")) { - ZEPHIR_CALL_METHOD(&_2$$3, this_ptr, "escapeschema", NULL, 63, &schema, &escapeChar); + ZEPHIR_CALL_METHOD(&_2$$3, this_ptr, "escapeschema", NULL, 57, &schema, &escapeChar); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_3$$3); ZEPHIR_CONCAT_VSV(&_3$$3, &_2$$3, ".", &table); zephir_get_strval(&table, &_3$$3); } if (!ZEPHIR_IS_STRING(&alias, "")) { - ZEPHIR_CALL_METHOD(&_4$$4, this_ptr, "escape", &_1, 53, &alias, &escapeChar); + ZEPHIR_CALL_METHOD(&_4$$4, this_ptr, "escape", &_1, 47, &alias, &escapeChar); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_5$$4); ZEPHIR_CONCAT_VSV(&_5$$4, &table, " AS ", &_4$$4); @@ -52580,11 +51067,11 @@ static PHP_METHOD(Phalcon_Db_Dialect, prepareQualified) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &column_param, &domain_param, &escapeChar_param); - if (unlikely(Z_TYPE_P(column_param) != IS_STRING && Z_TYPE_P(column_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(column_param) != IS_STRING && Z_TYPE_P(column_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'column' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(column_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(column_param) == IS_STRING)) { zephir_get_strval(&column, column_param); } else { ZEPHIR_INIT_VAR(&column); @@ -52607,11 +51094,11 @@ static PHP_METHOD(Phalcon_Db_Dialect, prepareQualified) { if (!ZEPHIR_IS_STRING(&domain, "")) { ZEPHIR_INIT_VAR(&_0$$3); ZEPHIR_CONCAT_VSV(&_0$$3, &domain, ".", &column); - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "escape", &_1, 53, &_0$$3, &escapeChar); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "escape", &_1, 47, &_0$$3, &escapeChar); zephir_check_call_status(); RETURN_MM(); } - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "escape", &_1, 53, &column, &escapeChar); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "escape", &_1, 47, &column, &escapeChar); zephir_check_call_status(); RETURN_MM(); @@ -52783,11 +51270,11 @@ static PHP_METHOD(Phalcon_Db_Index, __construct) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 1, &name_param, &columns_param, &type); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(&name, name_param); } else { ZEPHIR_INIT_VAR(&name); @@ -52842,7 +51329,7 @@ static PHP_METHOD(Phalcon_Db_Index, __set_state) { ZVAL_STRING(&type, ""); } object_init_ex(return_value, phalcon_db_index_ce); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 22, &indexName, &columns, &type); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 17, &indexName, &columns, &type); zephir_check_call_status(); RETURN_MM(); @@ -52931,19 +51418,19 @@ static PHP_METHOD(Phalcon_Db_Profiler, startProfile) { ZEPHIR_CALL_METHOD(NULL, &activeProfile, "__construct", NULL, 0); zephir_check_call_status(); } - ZEPHIR_CALL_METHOD(NULL, &activeProfile, "setsqlstatement", NULL, 151, sqlStatement); + ZEPHIR_CALL_METHOD(NULL, &activeProfile, "setsqlstatement", NULL, 138, sqlStatement); zephir_check_call_status(); if (Z_TYPE_P(sqlVariables) == IS_ARRAY) { - ZEPHIR_CALL_METHOD(NULL, &activeProfile, "setsqlvariables", NULL, 152, sqlVariables); + ZEPHIR_CALL_METHOD(NULL, &activeProfile, "setsqlvariables", NULL, 139, sqlVariables); zephir_check_call_status(); } if (Z_TYPE_P(sqlBindTypes) == IS_ARRAY) { - ZEPHIR_CALL_METHOD(NULL, &activeProfile, "setsqlbindtypes", NULL, 153, sqlBindTypes); + ZEPHIR_CALL_METHOD(NULL, &activeProfile, "setsqlbindtypes", NULL, 140, sqlBindTypes); zephir_check_call_status(); } ZEPHIR_INIT_VAR(&_0); zephir_microtime(&_0, &__$true TSRMLS_CC); - ZEPHIR_CALL_METHOD(NULL, &activeProfile, "setinitialtime", NULL, 154, &_0); + ZEPHIR_CALL_METHOD(NULL, &activeProfile, "setinitialtime", NULL, 141, &_0); zephir_check_call_status(); if ((zephir_method_exists_ex(this_ptr, SL("beforestartprofile") TSRMLS_CC) == SUCCESS)) { ZEPHIR_CALL_METHOD(NULL, this_ptr, "beforestartprofile", NULL, 0, &activeProfile); @@ -53255,11 +51742,11 @@ static PHP_METHOD(Phalcon_Db_Reference, __construct) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &name_param, &definition_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(&name, name_param); } else { ZEPHIR_INIT_VAR(&name); @@ -53360,7 +51847,7 @@ static PHP_METHOD(Phalcon_Db_Reference, __set_state) { zephir_array_update_string(&_0, SL("referencedColumns"), &referencedColumns, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_0, SL("onDelete"), &onDelete, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_0, SL("onUpdate"), &onUpdate, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 23, &constraintName, &_0); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 18, &constraintName, &_0); zephir_check_call_status(); RETURN_MM(); @@ -53488,7 +51975,7 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo, __construct) { ZEPHIR_CALL_METHOD(NULL, this_ptr, "connect", NULL, 0, &descriptor); zephir_check_call_status(); - ZEPHIR_CALL_PARENT(NULL, phalcon_db_adapter_pdo_ce, this_ptr, "__construct", &_0, 35, &descriptor); + ZEPHIR_CALL_PARENT(NULL, phalcon_db_adapter_pdo_ce, this_ptr, "__construct", &_0, 0, &descriptor); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -53621,11 +52108,11 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo, prepare) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &sqlStatement_param); - if (unlikely(Z_TYPE_P(sqlStatement_param) != IS_STRING && Z_TYPE_P(sqlStatement_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(sqlStatement_param) != IS_STRING && Z_TYPE_P(sqlStatement_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'sqlStatement' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(sqlStatement_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(sqlStatement_param) == IS_STRING)) { zephir_get_strval(&sqlStatement, sqlStatement_param); } else { ZEPHIR_INIT_VAR(&sqlStatement); @@ -53711,7 +52198,7 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo, executePrepared) { do { if (ZEPHIR_IS_LONG(&type, 1)) { ZVAL_LONG(&_4$$12, 10); - ZEPHIR_CALL_FUNCTION(&castValue, "intval", &_5, 36, &value, &_4$$12); + ZEPHIR_CALL_FUNCTION(&castValue, "intval", &_5, 30, &value, &_4$$12); zephir_check_call_status(); break; } @@ -53834,11 +52321,11 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo, query) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &sqlStatement_param, &bindParams, &bindTypes); - if (unlikely(Z_TYPE_P(sqlStatement_param) != IS_STRING && Z_TYPE_P(sqlStatement_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(sqlStatement_param) != IS_STRING && Z_TYPE_P(sqlStatement_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'sqlStatement' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(sqlStatement_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(sqlStatement_param) == IS_STRING)) { zephir_get_strval(&sqlStatement, sqlStatement_param); } else { ZEPHIR_INIT_VAR(&sqlStatement); @@ -53890,7 +52377,7 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo, query) { zephir_check_call_status(); } object_init_ex(return_value, phalcon_db_result_pdo_ce); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 37, this_ptr, &statement, &sqlStatement, bindParams, bindTypes); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 31, this_ptr, &statement, &sqlStatement, bindParams, bindTypes); zephir_check_call_status(); RETURN_MM(); } @@ -53922,11 +52409,11 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo, execute) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &sqlStatement_param, &bindParams, &bindTypes); - if (unlikely(Z_TYPE_P(sqlStatement_param) != IS_STRING && Z_TYPE_P(sqlStatement_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(sqlStatement_param) != IS_STRING && Z_TYPE_P(sqlStatement_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'sqlStatement' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(sqlStatement_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(sqlStatement_param) == IS_STRING)) { zephir_get_strval(&sqlStatement, sqlStatement_param); } else { ZEPHIR_INIT_VAR(&sqlStatement); @@ -54060,11 +52547,11 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo, convertBoundParams) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &sql_param, ¶ms_param); - if (unlikely(Z_TYPE_P(sql_param) != IS_STRING && Z_TYPE_P(sql_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(sql_param) != IS_STRING && Z_TYPE_P(sql_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'sql' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(sql_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(sql_param) == IS_STRING)) { zephir_get_strval(&sql, sql_param); } else { ZEPHIR_INIT_VAR(&sql); @@ -54087,7 +52574,7 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo, convertBoundParams) { setOrder = 2; ZVAL_LONG(&_0, setOrder); ZEPHIR_MAKE_REF(&matches); - ZEPHIR_CALL_FUNCTION(&_1, "preg_match_all", NULL, 38, &bindPattern, &sql, &matches, &_0); + ZEPHIR_CALL_FUNCTION(&_1, "preg_match_all", NULL, 32, &bindPattern, &sql, &matches, &_0); ZEPHIR_UNREF(&matches); zephir_check_call_status(); if (zephir_is_true(&_1)) { @@ -54116,7 +52603,7 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo, convertBoundParams) { ZEPHIR_INIT_NVAR(&placeMatch); ZEPHIR_INIT_VAR(&_5$$3); ZVAL_STRING(&_5$$3, "?"); - ZEPHIR_CALL_FUNCTION(&boundSql, "preg_replace", NULL, 39, &bindPattern, &_5$$3, &sql); + ZEPHIR_CALL_FUNCTION(&boundSql, "preg_replace", NULL, 33, &bindPattern, &_5$$3, &sql); zephir_check_call_status(); } else { ZEPHIR_CPY_WRT(&boundSql, &sql); @@ -54731,7 +53218,7 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Mysql, describeColumns) { zephir_array_fetch_long(&columnName, &field, 0, PH_NOISY | PH_READONLY, "phalcon/db/adapter/pdo/mysql.zep", 258 TSRMLS_CC); ZEPHIR_INIT_NVAR(&_38$$3); object_init_ex(&_38$$3, phalcon_db_column_ce); - ZEPHIR_CALL_METHOD(NULL, &_38$$3, "__construct", &_39, 148, &columnName, &definition); + ZEPHIR_CALL_METHOD(NULL, &_38$$3, "__construct", &_39, 136, &columnName, &definition); zephir_check_call_status(); zephir_array_append(&columns, &_38$$3, PH_SEPARATE, "phalcon/db/adapter/pdo/mysql.zep", 259); ZEPHIR_CPY_WRT(&oldColumn, &columnName); @@ -54780,11 +53267,11 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Mysql, describeIndexes) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &table_param, &schema); - if (unlikely(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'table' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(table_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(table_param) == IS_STRING)) { zephir_get_strval(&table, table_param); } else { ZEPHIR_INIT_VAR(&table); @@ -54863,7 +53350,7 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Mysql, describeIndexes) { object_init_ex(&_16$$11, phalcon_db_index_ce); zephir_array_fetch_string(&_17$$11, &index, SL("columns"), PH_NOISY | PH_READONLY, "phalcon/db/adapter/pdo/mysql.zep", 314 TSRMLS_CC); zephir_array_fetch_string(&_18$$11, &index, SL("type"), PH_NOISY | PH_READONLY, "phalcon/db/adapter/pdo/mysql.zep", 314 TSRMLS_CC); - ZEPHIR_CALL_METHOD(NULL, &_16$$11, "__construct", &_19, 22, &name, &_17$$11, &_18$$11); + ZEPHIR_CALL_METHOD(NULL, &_16$$11, "__construct", &_19, 17, &name, &_17$$11, &_18$$11); zephir_check_call_status(); zephir_array_update_zval(&indexObjects, &name, &_16$$11, PH_COPY | PH_SEPARATE); } ZEND_HASH_FOREACH_END(); @@ -54918,11 +53405,11 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Mysql, describeReferences) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &table_param, &schema_param); - if (unlikely(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'table' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(table_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(table_param) == IS_STRING)) { zephir_get_strval(&table, table_param); } else { ZEPHIR_INIT_VAR(&table); @@ -54932,11 +53419,11 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Mysql, describeReferences) { ZEPHIR_INIT_VAR(&schema); ZVAL_STRING(&schema, ""); } else { - if (unlikely(Z_TYPE_P(schema_param) != IS_STRING && Z_TYPE_P(schema_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schema_param) != IS_STRING && Z_TYPE_P(schema_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schema' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schema_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schema_param) == IS_STRING)) { zephir_get_strval(&schema, schema_param); } else { ZEPHIR_INIT_VAR(&schema); @@ -55042,7 +53529,7 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Mysql, describeReferences) { ZEPHIR_OBS_NVAR(&_19$$6); zephir_array_fetch_string(&_19$$6, &arrayReference, SL("onDelete"), PH_NOISY, "phalcon/db/adapter/pdo/mysql.zep", 380 TSRMLS_CC); zephir_array_update_string(&_18$$6, SL("onDelete"), &_19$$6, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(NULL, &_17$$6, "__construct", &_20, 23, &name, &_18$$6); + ZEPHIR_CALL_METHOD(NULL, &_17$$6, "__construct", &_20, 18, &name, &_18$$6); zephir_check_call_status(); zephir_array_update_zval(&referenceObjects, &name, &_17$$6, PH_COPY | PH_SEPARATE); } ZEND_HASH_FOREACH_END(); @@ -55129,7 +53616,7 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Postgresql, connect) { zephir_array_update_string(&descriptor, SL("password"), &__$null, PH_COPY | PH_SEPARATE); } } - ZEPHIR_CALL_PARENT(&status, phalcon_db_adapter_pdo_postgresql_ce, this_ptr, "connect", &_5, 149, &descriptor); + ZEPHIR_CALL_PARENT(&status, phalcon_db_adapter_pdo_postgresql_ce, this_ptr, "connect", &_5, 0, &descriptor); zephir_check_call_status(); if (!(ZEPHIR_IS_EMPTY(&schema))) { ZEPHIR_INIT_VAR(&sql); @@ -55376,13 +53863,13 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Postgresql, describeColumns) { ZVAL_STRING(&_36$$26, "/^'|'?::[[:alnum:][:space:]]+$/"); ZEPHIR_INIT_NVAR(&_37$$26); ZVAL_STRING(&_37$$26, ""); - ZEPHIR_CALL_FUNCTION(&_38$$26, "preg_replace", &_39, 39, &_36$$26, &_37$$26, &_35$$26); + ZEPHIR_CALL_FUNCTION(&_38$$26, "preg_replace", &_39, 33, &_36$$26, &_37$$26, &_35$$26); zephir_check_call_status(); zephir_array_update_string(&definition, SL("default"), &_38$$26, PH_COPY | PH_SEPARATE); zephir_array_fetch_string(&_40$$26, &definition, SL("default"), PH_NOISY | PH_READONLY, "phalcon/db/adapter/pdo/postgresql.zep", 268 TSRMLS_CC); ZEPHIR_INIT_NVAR(&_36$$26); ZVAL_STRING(&_36$$26, "null"); - ZEPHIR_CALL_FUNCTION(&_41$$26, "strcasecmp", &_42, 16, &_40$$26, &_36$$26); + ZEPHIR_CALL_FUNCTION(&_41$$26, "strcasecmp", &_42, 11, &_40$$26, &_36$$26); zephir_check_call_status(); if (ZEPHIR_IS_LONG(&_41$$26, 0)) { zephir_array_update_string(&definition, SL("default"), &__$null, PH_COPY | PH_SEPARATE); @@ -55391,7 +53878,7 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Postgresql, describeColumns) { zephir_array_fetch_long(&columnName, &field, 0, PH_NOISY | PH_READONLY, "phalcon/db/adapter/pdo/postgresql.zep", 276 TSRMLS_CC); ZEPHIR_INIT_NVAR(&_43$$3); object_init_ex(&_43$$3, phalcon_db_column_ce); - ZEPHIR_CALL_METHOD(NULL, &_43$$3, "__construct", &_44, 148, &columnName, &definition); + ZEPHIR_CALL_METHOD(NULL, &_43$$3, "__construct", &_44, 136, &columnName, &definition); zephir_check_call_status(); zephir_array_append(&columns, &_43$$3, PH_SEPARATE, "phalcon/db/adapter/pdo/postgresql.zep", 277); ZEPHIR_CPY_WRT(&oldColumn, &columnName); @@ -55406,7 +53893,7 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Postgresql, createTable) { zephir_fcall_cache_entry *_3 = NULL; int ZEPHIR_LAST_CALL_STATUS; zval definition; - zval *tableName_param = NULL, *schemaName_param = NULL, *definition_param = NULL, sql, queries, query, exception, columns, _0, *_1$$6, _2$$7, _4$$10, _5$$10; + zval *tableName_param = NULL, *schemaName_param = NULL, *definition_param = NULL, sql, queries, query, exception, columns, _0, *_1$$6, _2$$7, _4$$5, _5$$10, _6$$10; zval tableName, schemaName; ZEPHIR_INIT_THIS(); @@ -55419,28 +53906,29 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Postgresql, createTable) { ZVAL_UNDEF(&columns); ZVAL_UNDEF(&_0); ZVAL_UNDEF(&_2$$7); - ZVAL_UNDEF(&_4$$10); + ZVAL_UNDEF(&_4$$5); ZVAL_UNDEF(&_5$$10); + ZVAL_UNDEF(&_6$$10); ZVAL_UNDEF(&definition); ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &definition_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(&tableName, tableName_param); } else { ZEPHIR_INIT_VAR(&tableName); ZVAL_EMPTY_STRING(&tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(&schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(&schemaName); @@ -55490,10 +53978,12 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Postgresql, createTable) { try_end_1: if (EG(exception)) { - ZVAL_OBJ(&exception, EG(exception)); - Z_ADDREF_P(&exception); - if (zephir_instance_of_ev(&exception, zend_exception_get_default(TSRMLS_C) TSRMLS_CC)) { + ZEPHIR_INIT_VAR(&_4$$5); + ZVAL_OBJ(&_4$$5, EG(exception)); + Z_ADDREF_P(&_4$$5); + if (zephir_instance_of_ev(&_4$$5, zend_exception_get_default(TSRMLS_C) TSRMLS_CC)) { zend_clear_exception(TSRMLS_C); + ZEPHIR_CPY_WRT(&exception, &_4$$5); ZEPHIR_CALL_METHOD(NULL, this_ptr, "rollback", NULL, 0); zephir_check_call_status(); zephir_throw_exception_debug(&exception, "phalcon/db/adapter/pdo/postgresql.zep", 316 TSRMLS_CC); @@ -55502,10 +53992,10 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Postgresql, createTable) { } } } else { - zephir_array_fetch_long(&_4$$10, &queries, 0, PH_NOISY | PH_READONLY, "phalcon/db/adapter/pdo/postgresql.zep", 319 TSRMLS_CC); - ZEPHIR_INIT_VAR(&_5$$10); - ZEPHIR_CONCAT_VS(&_5$$10, &_4$$10, ";"); - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "execute", NULL, 0, &_5$$10); + zephir_array_fetch_long(&_5$$10, &queries, 0, PH_NOISY | PH_READONLY, "phalcon/db/adapter/pdo/postgresql.zep", 319 TSRMLS_CC); + ZEPHIR_INIT_VAR(&_6$$10); + ZEPHIR_CONCAT_VS(&_6$$10, &_5$$10, ";"); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "execute", NULL, 0, &_6$$10); zephir_check_call_status(); RETURN_MM(); } @@ -55517,7 +54007,7 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Postgresql, modifyColumn) { zephir_fcall_cache_entry *_3 = NULL; int ZEPHIR_LAST_CALL_STATUS; - zval *tableName_param = NULL, *schemaName_param = NULL, *column, column_sub, *currentColumn = NULL, currentColumn_sub, __$null, sql, queries, query, exception, _0, *_1$$4, _2$$5, _4$$8, _5$$8, _6$$8; + zval *tableName_param = NULL, *schemaName_param = NULL, *column, column_sub, *currentColumn = NULL, currentColumn_sub, __$null, sql, queries, query, exception, _0, *_1$$4, _2$$5, _4$$3, _5$$8, _6$$8, _7$$8; zval tableName, schemaName; ZEPHIR_INIT_THIS(); @@ -55532,28 +54022,29 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Postgresql, modifyColumn) { ZVAL_UNDEF(&exception); ZVAL_UNDEF(&_0); ZVAL_UNDEF(&_2$$5); - ZVAL_UNDEF(&_4$$8); + ZVAL_UNDEF(&_4$$3); ZVAL_UNDEF(&_5$$8); ZVAL_UNDEF(&_6$$8); + ZVAL_UNDEF(&_7$$8); ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 1, &tableName_param, &schemaName_param, &column, ¤tColumn); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(&tableName, tableName_param); } else { ZEPHIR_INIT_VAR(&tableName); ZVAL_EMPTY_STRING(&tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(&schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(&schemaName); @@ -55597,10 +54088,12 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Postgresql, modifyColumn) { try_end_1: if (EG(exception)) { - ZVAL_OBJ(&exception, EG(exception)); - Z_ADDREF_P(&exception); - if (zephir_instance_of_ev(&exception, zend_exception_get_default(TSRMLS_C) TSRMLS_CC)) { + ZEPHIR_INIT_VAR(&_4$$3); + ZVAL_OBJ(&_4$$3, EG(exception)); + Z_ADDREF_P(&_4$$3); + if (zephir_instance_of_ev(&_4$$3, zend_exception_get_default(TSRMLS_C) TSRMLS_CC)) { zend_clear_exception(TSRMLS_C); + ZEPHIR_CPY_WRT(&exception, &_4$$3); ZEPHIR_CALL_METHOD(NULL, this_ptr, "rollback", NULL, 0); zephir_check_call_status(); zephir_throw_exception_debug(&exception, "phalcon/db/adapter/pdo/postgresql.zep", 349 TSRMLS_CC); @@ -55609,17 +54102,17 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Postgresql, modifyColumn) { } } } else { - ZEPHIR_INIT_VAR(&_4$$8); + ZEPHIR_INIT_VAR(&_5$$8); if (!(ZEPHIR_IS_EMPTY(&sql))) { - zephir_array_fetch_long(&_5$$8, &queries, 0, PH_NOISY | PH_READONLY, "phalcon/db/adapter/pdo/postgresql.zep", 353 TSRMLS_CC); - ZEPHIR_INIT_VAR(&_6$$8); - ZEPHIR_CONCAT_VS(&_6$$8, &_5$$8, ";"); - ZEPHIR_CALL_METHOD(&_4$$8, this_ptr, "execute", NULL, 0, &_6$$8); + zephir_array_fetch_long(&_6$$8, &queries, 0, PH_NOISY | PH_READONLY, "phalcon/db/adapter/pdo/postgresql.zep", 353 TSRMLS_CC); + ZEPHIR_INIT_VAR(&_7$$8); + ZEPHIR_CONCAT_VS(&_7$$8, &_6$$8, ";"); + ZEPHIR_CALL_METHOD(&_5$$8, this_ptr, "execute", NULL, 0, &_7$$8); zephir_check_call_status(); } else { - ZVAL_BOOL(&_4$$8, 1); + ZVAL_BOOL(&_5$$8, 1); } - RETURN_CCTOR(_4$$8); + RETURN_CCTOR(_5$$8); } RETURN_MM_BOOL(1); @@ -55647,7 +54140,7 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Postgresql, getDefaultIdValue) { object_init_ex(return_value, phalcon_db_rawvalue_ce); ZEPHIR_INIT_VAR(&_0); ZVAL_STRING(&_0, "DEFAULT"); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 24, &_0); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 19, &_0); zephir_check_call_status(); RETURN_MM(); @@ -55720,7 +54213,7 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Sqlite, connect) { return; } zephir_array_update_string(&descriptor, SL("dsn"), &dbname, PH_COPY | PH_SEPARATE); - ZEPHIR_RETURN_CALL_PARENT(phalcon_db_adapter_pdo_sqlite_ce, this_ptr, "connect", &_2, 149, &descriptor); + ZEPHIR_RETURN_CALL_PARENT(phalcon_db_adapter_pdo_sqlite_ce, this_ptr, "connect", &_2, 0, &descriptor); zephir_check_call_status(); RETURN_MM(); @@ -55940,7 +54433,7 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Sqlite, describeColumns) { zephir_array_fetch_long(&_30$$3, &field, 4, PH_NOISY | PH_READONLY, "phalcon/db/adapter/pdo/sqlite.zep", 240 TSRMLS_CC); ZEPHIR_INIT_NVAR(&_31$$3); ZVAL_STRING(&_31$$3, "null"); - ZEPHIR_CALL_FUNCTION(&_32$$3, "strcasecmp", &_33, 16, &_30$$3, &_31$$3); + ZEPHIR_CALL_FUNCTION(&_32$$3, "strcasecmp", &_33, 11, &_30$$3, &_31$$3); zephir_check_call_status(); _34$$3 = !ZEPHIR_IS_LONG(&_32$$3, 0); if (_34$$3) { @@ -55953,14 +54446,14 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Sqlite, describeColumns) { ZVAL_STRING(&_37$$27, "/^'|'$/"); ZEPHIR_INIT_NVAR(&_38$$27); ZVAL_STRING(&_38$$27, ""); - ZEPHIR_CALL_FUNCTION(&_39$$27, "preg_replace", &_40, 39, &_37$$27, &_38$$27, &_36$$27); + ZEPHIR_CALL_FUNCTION(&_39$$27, "preg_replace", &_40, 33, &_37$$27, &_38$$27, &_36$$27); zephir_check_call_status(); zephir_array_update_string(&definition, SL("default"), &_39$$27, PH_COPY | PH_SEPARATE); } zephir_array_fetch_long(&columnName, &field, 1, PH_NOISY | PH_READONLY, "phalcon/db/adapter/pdo/sqlite.zep", 247 TSRMLS_CC); ZEPHIR_INIT_NVAR(&_31$$3); object_init_ex(&_31$$3, phalcon_db_column_ce); - ZEPHIR_CALL_METHOD(NULL, &_31$$3, "__construct", &_41, 148, &columnName, &definition); + ZEPHIR_CALL_METHOD(NULL, &_31$$3, "__construct", &_41, 136, &columnName, &definition); zephir_check_call_status(); zephir_array_append(&columns, &_31$$3, PH_SEPARATE, "phalcon/db/adapter/pdo/sqlite.zep", 248); ZEPHIR_CPY_WRT(&oldColumn, &columnName); @@ -56110,7 +54603,7 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Sqlite, describeIndexes) { object_init_ex(&_25$$12, phalcon_db_index_ce); zephir_array_fetch_string(&_26$$12, &index, SL("columns"), PH_NOISY | PH_READONLY, "phalcon/db/adapter/pdo/sqlite.zep", 306 TSRMLS_CC); zephir_array_fetch_string(&_27$$12, &index, SL("type"), PH_NOISY | PH_READONLY, "phalcon/db/adapter/pdo/sqlite.zep", 306 TSRMLS_CC); - ZEPHIR_CALL_METHOD(NULL, &_25$$12, "__construct", &_28, 22, &name, &_26$$12, &_27$$12); + ZEPHIR_CALL_METHOD(NULL, &_25$$12, "__construct", &_28, 17, &name, &_26$$12, &_27$$12); zephir_check_call_status(); zephir_array_update_zval(&indexObjects, &name, &_25$$12, PH_COPY | PH_SEPARATE); } ZEND_HASH_FOREACH_END(); @@ -56255,7 +54748,7 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Sqlite, describeReferences) { ZEPHIR_OBS_NVAR(&_19$$6); zephir_array_fetch_string(&_19$$6, &arrayReference, SL("referencedColumns"), PH_NOISY, "phalcon/db/adapter/pdo/sqlite.zep", 361 TSRMLS_CC); zephir_array_update_string(&_18$$6, SL("referencedColumns"), &_19$$6, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(NULL, &_17$$6, "__construct", &_20, 23, &name, &_18$$6); + ZEPHIR_CALL_METHOD(NULL, &_17$$6, "__construct", &_20, 18, &name, &_18$$6); zephir_check_call_status(); zephir_array_update_zval(&referenceObjects, &name, &_17$$6, PH_COPY | PH_SEPARATE); } ZEND_HASH_FOREACH_END(); @@ -56287,7 +54780,7 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Sqlite, getDefaultValue) { object_init_ex(return_value, phalcon_db_rawvalue_ce); ZEPHIR_INIT_VAR(&_0); ZVAL_STRING(&_0, "NULL"); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 24, &_0); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 19, &_0); zephir_check_call_status(); RETURN_MM(); @@ -56567,7 +55060,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, getColumnDefinition) { zephir_check_call_status(); ZEPHIR_INIT_VAR(&_22$$49); ZEPHIR_CONCAT_SV(&_22$$49, "Unrecognized MySQL data type at column ", &_21$$49); - ZEPHIR_CALL_METHOD(NULL, &_20$$49, "__construct", NULL, 9, &_22$$49); + ZEPHIR_CALL_METHOD(NULL, &_20$$49, "__construct", NULL, 4, &_22$$49); zephir_check_call_status(); zephir_throw_exception_debug(&_20$$49, "phalcon/db/dialect/mysql.zep", 197 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -56586,7 +55079,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, getColumnDefinition) { ZVAL_COPY(&value$$51, _23$$51); ZEPHIR_INIT_NVAR(&_24$$52); ZVAL_STRING(&_24$$52, "\""); - ZEPHIR_CALL_FUNCTION(&_25$$52, "addcslashes", &_26, 150, &value$$51, &_24$$52); + ZEPHIR_CALL_FUNCTION(&_25$$52, "addcslashes", &_26, 137, &value$$51, &_24$$52); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_27$$52); ZEPHIR_CONCAT_SVS(&_27$$52, "\"", &_25$$52, "\", "); @@ -56603,7 +55096,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, getColumnDefinition) { } else { ZEPHIR_INIT_VAR(&_32$$53); ZVAL_STRING(&_32$$53, "\""); - ZEPHIR_CALL_FUNCTION(&_33$$53, "addcslashes", &_26, 150, &typeValues, &_32$$53); + ZEPHIR_CALL_FUNCTION(&_33$$53, "addcslashes", &_26, 137, &typeValues, &_32$$53); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_34$$53); ZEPHIR_CONCAT_SVS(&_34$$53, "(\"", &_33$$53, "\")"); @@ -56645,21 +55138,21 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, addColumn) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &column); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(&tableName, tableName_param); } else { ZEPHIR_INIT_VAR(&tableName); ZVAL_EMPTY_STRING(&tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(&schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(&schemaName); @@ -56687,7 +55180,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, addColumn) { } else { ZEPHIR_INIT_VAR(&_5$$5); ZVAL_STRING(&_5$$5, "\""); - ZEPHIR_CALL_FUNCTION(&_6$$5, "addcslashes", NULL, 150, &defaultValue, &_5$$5); + ZEPHIR_CALL_FUNCTION(&_6$$5, "addcslashes", NULL, 137, &defaultValue, &_5$$5); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_7$$5); ZEPHIR_CONCAT_SVS(&_7$$5, " DEFAULT \"", &_6$$5, "\""); @@ -56752,21 +55245,21 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, modifyColumn) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 1, &tableName_param, &schemaName_param, &column, ¤tColumn); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(&tableName, tableName_param); } else { ZEPHIR_INIT_VAR(&tableName); ZVAL_EMPTY_STRING(&tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(&schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(&schemaName); @@ -56798,7 +55291,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, modifyColumn) { } else { ZEPHIR_INIT_VAR(&_5$$5); ZVAL_STRING(&_5$$5, "\""); - ZEPHIR_CALL_FUNCTION(&_6$$5, "addcslashes", NULL, 150, &defaultValue, &_5$$5); + ZEPHIR_CALL_FUNCTION(&_6$$5, "addcslashes", NULL, 137, &defaultValue, &_5$$5); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_7$$5); ZEPHIR_CONCAT_SVS(&_7$$5, " DEFAULT \"", &_6$$5, "\""); @@ -56847,31 +55340,31 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, dropColumn) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &columnName_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(&tableName, tableName_param); } else { ZEPHIR_INIT_VAR(&tableName); ZVAL_EMPTY_STRING(&tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(&schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(&schemaName); ZVAL_EMPTY_STRING(&schemaName); } - if (unlikely(Z_TYPE_P(columnName_param) != IS_STRING && Z_TYPE_P(columnName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(columnName_param) != IS_STRING && Z_TYPE_P(columnName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'columnName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(columnName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(columnName_param) == IS_STRING)) { zephir_get_strval(&columnName, columnName_param); } else { ZEPHIR_INIT_VAR(&columnName); @@ -56908,21 +55401,21 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, addIndex) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &index); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(&tableName, tableName_param); } else { ZEPHIR_INIT_VAR(&tableName); ZVAL_EMPTY_STRING(&tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(&schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(&schemaName); @@ -56947,7 +55440,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, addIndex) { zephir_check_call_status(); ZEPHIR_CALL_METHOD(&_4, index, "getcolumns", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_3, this_ptr, "getcolumnlist", NULL, 54, &_4); + ZEPHIR_CALL_METHOD(&_3, this_ptr, "getcolumnlist", NULL, 48, &_4); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_5); ZEPHIR_CONCAT_SVSVS(&_5, "`", &_2, "` (", &_3, ")"); @@ -56971,31 +55464,31 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, dropIndex) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &indexName_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(&tableName, tableName_param); } else { ZEPHIR_INIT_VAR(&tableName); ZVAL_EMPTY_STRING(&tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(&schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(&schemaName); ZVAL_EMPTY_STRING(&schemaName); } - if (unlikely(Z_TYPE_P(indexName_param) != IS_STRING && Z_TYPE_P(indexName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(indexName_param) != IS_STRING && Z_TYPE_P(indexName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'indexName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(indexName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(indexName_param) == IS_STRING)) { zephir_get_strval(&indexName, indexName_param); } else { ZEPHIR_INIT_VAR(&indexName); @@ -57027,21 +55520,21 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, addPrimaryKey) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &index); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(&tableName, tableName_param); } else { ZEPHIR_INIT_VAR(&tableName); ZVAL_EMPTY_STRING(&tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(&schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(&schemaName); @@ -57053,7 +55546,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, addPrimaryKey) { zephir_check_call_status(); ZEPHIR_CALL_METHOD(&_2, index, "getcolumns", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_1, this_ptr, "getcolumnlist", NULL, 54, &_2); + ZEPHIR_CALL_METHOD(&_1, this_ptr, "getcolumnlist", NULL, 48, &_2); zephir_check_call_status(); ZEPHIR_CONCAT_SVSVS(return_value, "ALTER TABLE ", &_0, " ADD PRIMARY KEY (", &_1, ")"); RETURN_MM(); @@ -57074,21 +55567,21 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, dropPrimaryKey) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &tableName_param, &schemaName_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(&tableName, tableName_param); } else { ZEPHIR_INIT_VAR(&tableName); ZVAL_EMPTY_STRING(&tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(&schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(&schemaName); @@ -57131,21 +55624,21 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, addForeignKey) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &reference); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(&tableName, tableName_param); } else { ZEPHIR_INIT_VAR(&tableName); ZVAL_EMPTY_STRING(&tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(&schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(&schemaName); @@ -57159,7 +55652,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, addForeignKey) { zephir_check_call_status(); ZEPHIR_CALL_METHOD(&_3, reference, "getcolumns", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_2, this_ptr, "getcolumnlist", NULL, 54, &_3); + ZEPHIR_CALL_METHOD(&_2, this_ptr, "getcolumnlist", NULL, 48, &_3); zephir_check_call_status(); ZEPHIR_CALL_METHOD(&_5, reference, "getreferencedtable", NULL, 0); zephir_check_call_status(); @@ -57169,7 +55662,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, addForeignKey) { zephir_check_call_status(); ZEPHIR_CALL_METHOD(&_8, reference, "getreferencedcolumns", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_7, this_ptr, "getcolumnlist", NULL, 54, &_8); + ZEPHIR_CALL_METHOD(&_7, this_ptr, "getcolumnlist", NULL, 48, &_8); zephir_check_call_status(); ZEPHIR_INIT_VAR(&sql); ZEPHIR_CONCAT_SVSVSVSVSVS(&sql, "ALTER TABLE ", &_0, " ADD FOREIGN KEY `", &_1, "`(", &_2, ") REFERENCES ", &_4, "(", &_7, ")"); @@ -57206,31 +55699,31 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, dropForeignKey) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &referenceName_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(&tableName, tableName_param); } else { ZEPHIR_INIT_VAR(&tableName); ZVAL_EMPTY_STRING(&tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(&schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(&schemaName); ZVAL_EMPTY_STRING(&schemaName); } - if (unlikely(Z_TYPE_P(referenceName_param) != IS_STRING && Z_TYPE_P(referenceName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(referenceName_param) != IS_STRING && Z_TYPE_P(referenceName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'referenceName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(referenceName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(referenceName_param) == IS_STRING)) { zephir_get_strval(&referenceName, referenceName_param); } else { ZEPHIR_INIT_VAR(&referenceName); @@ -57308,21 +55801,21 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, createTable) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &definition_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(&tableName, tableName_param); } else { ZEPHIR_INIT_VAR(&tableName); ZVAL_EMPTY_STRING(&tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(&schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(&schemaName); @@ -57376,7 +55869,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, createTable) { } else { ZEPHIR_INIT_NVAR(&_6$$10); ZVAL_STRING(&_6$$10, "\""); - ZEPHIR_CALL_FUNCTION(&_7$$10, "addcslashes", &_8, 150, &defaultValue, &_6$$10); + ZEPHIR_CALL_FUNCTION(&_7$$10, "addcslashes", &_8, 137, &defaultValue, &_6$$10); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_9$$10); ZEPHIR_CONCAT_SVS(&_9$$10, " DEFAULT \"", &_7$$10, "\""); @@ -57415,7 +55908,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, createTable) { if (ZEPHIR_IS_STRING(&indexName, "PRIMARY")) { ZEPHIR_CALL_METHOD(&_15$$16, &index, "getcolumns", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_14$$16, this_ptr, "getcolumnlist", &_16, 54, &_15$$16); + ZEPHIR_CALL_METHOD(&_14$$16, this_ptr, "getcolumnlist", &_16, 48, &_15$$16); zephir_check_call_status(); ZEPHIR_INIT_NVAR(&indexSql); ZEPHIR_CONCAT_SVS(&indexSql, "PRIMARY KEY (", &_14$$16, ")"); @@ -57424,13 +55917,13 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, createTable) { if (!(ZEPHIR_IS_EMPTY(&indexType))) { ZEPHIR_CALL_METHOD(&_18$$18, &index, "getcolumns", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_17$$18, this_ptr, "getcolumnlist", &_16, 54, &_18$$18); + ZEPHIR_CALL_METHOD(&_17$$18, this_ptr, "getcolumnlist", &_16, 48, &_18$$18); zephir_check_call_status(); ZEPHIR_CONCAT_VSVSVS(&indexSql, &indexType, " KEY `", &indexName, "` (", &_17$$18, ")"); } else { ZEPHIR_CALL_METHOD(&_20$$19, &index, "getcolumns", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_19$$19, this_ptr, "getcolumnlist", &_16, 54, &_20$$19); + ZEPHIR_CALL_METHOD(&_19$$19, this_ptr, "getcolumnlist", &_16, 48, &_20$$19); zephir_check_call_status(); ZEPHIR_CONCAT_SVSVS(&indexSql, "KEY `", &indexName, "` (", &_19$$19, ")"); } @@ -57450,13 +55943,13 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, createTable) { zephir_check_call_status(); ZEPHIR_CALL_METHOD(&_24$$21, &reference, "getcolumns", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_23$$21, this_ptr, "getcolumnlist", &_16, 54, &_24$$21); + ZEPHIR_CALL_METHOD(&_23$$21, this_ptr, "getcolumnlist", &_16, 48, &_24$$21); zephir_check_call_status(); ZEPHIR_CALL_METHOD(&_25$$21, &reference, "getreferencedtable", NULL, 0); zephir_check_call_status(); ZEPHIR_CALL_METHOD(&_27$$21, &reference, "getreferencedcolumns", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_26$$21, this_ptr, "getcolumnlist", &_16, 54, &_27$$21); + ZEPHIR_CALL_METHOD(&_26$$21, this_ptr, "getcolumnlist", &_16, 48, &_27$$21); zephir_check_call_status(); ZEPHIR_INIT_NVAR(&referenceSql); ZEPHIR_CONCAT_SVSVSSVSVS(&referenceSql, "CONSTRAINT `", &_22$$21, "` FOREIGN KEY (", &_23$$21, ")", " REFERENCES `", &_25$$21, "`(", &_26$$21, ")"); @@ -57510,21 +56003,21 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, truncateTable) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &tableName_param, &schemaName_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(&tableName, tableName_param); } else { ZEPHIR_INIT_VAR(&tableName); ZVAL_EMPTY_STRING(&tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(&schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(&schemaName); @@ -57564,11 +56057,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, dropTable) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &tableName_param, &schemaName_param, &ifExists_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(&tableName, tableName_param); } else { ZEPHIR_INIT_VAR(&tableName); @@ -57583,7 +56076,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, dropTable) { if (!ifExists_param) { ifExists = 1; } else { - if (unlikely(Z_TYPE_P(ifExists_param) != IS_TRUE && Z_TYPE_P(ifExists_param) != IS_FALSE)) { + if (UNEXPECTED(Z_TYPE_P(ifExists_param) != IS_TRUE && Z_TYPE_P(ifExists_param) != IS_FALSE)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'ifExists' must be a bool") TSRMLS_CC); RETURN_MM_NULL(); } @@ -57620,11 +56113,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, createView) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 1, &viewName_param, &definition_param, &schemaName_param); - if (unlikely(Z_TYPE_P(viewName_param) != IS_STRING && Z_TYPE_P(viewName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(viewName_param) != IS_STRING && Z_TYPE_P(viewName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'viewName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(viewName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(viewName_param) == IS_STRING)) { zephir_get_strval(&viewName, viewName_param); } else { ZEPHIR_INIT_VAR(&viewName); @@ -57667,11 +56160,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, dropView) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &viewName_param, &schemaName_param, &ifExists_param); - if (unlikely(Z_TYPE_P(viewName_param) != IS_STRING && Z_TYPE_P(viewName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(viewName_param) != IS_STRING && Z_TYPE_P(viewName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'viewName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(viewName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(viewName_param) == IS_STRING)) { zephir_get_strval(&viewName, viewName_param); } else { ZEPHIR_INIT_VAR(&viewName); @@ -57686,7 +56179,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, dropView) { if (!ifExists_param) { ifExists = 1; } else { - if (unlikely(Z_TYPE_P(ifExists_param) != IS_TRUE && Z_TYPE_P(ifExists_param) != IS_FALSE)) { + if (UNEXPECTED(Z_TYPE_P(ifExists_param) != IS_TRUE && Z_TYPE_P(ifExists_param) != IS_FALSE)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'ifExists' must be a bool") TSRMLS_CC); RETURN_MM_NULL(); } @@ -57718,11 +56211,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, tableExists) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &tableName_param, &schemaName_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(&tableName, tableName_param); } else { ZEPHIR_INIT_VAR(&tableName); @@ -57757,11 +56250,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, viewExists) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &viewName_param, &schemaName_param); - if (unlikely(Z_TYPE_P(viewName_param) != IS_STRING && Z_TYPE_P(viewName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(viewName_param) != IS_STRING && Z_TYPE_P(viewName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'viewName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(viewName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(viewName_param) == IS_STRING)) { zephir_get_strval(&viewName, viewName_param); } else { ZEPHIR_INIT_VAR(&viewName); @@ -57798,11 +56291,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, describeColumns) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &table_param, &schema_param); - if (unlikely(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'table' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(table_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(table_param) == IS_STRING)) { zephir_get_strval(&table, table_param); } else { ZEPHIR_INIT_VAR(&table); @@ -57865,11 +56358,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, listViews) { ZEPHIR_INIT_VAR(&schemaName); ZVAL_STRING(&schemaName, ""); } else { - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(&schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(&schemaName); @@ -57900,11 +56393,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, describeIndexes) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &table_param, &schema_param); - if (unlikely(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'table' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(table_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(table_param) == IS_STRING)) { zephir_get_strval(&table, table_param); } else { ZEPHIR_INIT_VAR(&table); @@ -57940,11 +56433,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, describeReferences) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &table_param, &schema_param); - if (unlikely(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'table' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(table_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(table_param) == IS_STRING)) { zephir_get_strval(&table, table_param); } else { ZEPHIR_INIT_VAR(&table); @@ -57986,11 +56479,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, tableOptions) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &table_param, &schema_param); - if (unlikely(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'table' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(table_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(table_param) == IS_STRING)) { zephir_get_strval(&table, table_param); } else { ZEPHIR_INIT_VAR(&table); @@ -58262,7 +56755,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, getColumnDefinition) { zephir_check_call_status(); ZEPHIR_INIT_VAR(&_8$$35); ZEPHIR_CONCAT_SV(&_8$$35, "Unrecognized PostgreSQL data type at column ", &_7$$35); - ZEPHIR_CALL_METHOD(NULL, &_6$$35, "__construct", NULL, 9, &_8$$35); + ZEPHIR_CALL_METHOD(NULL, &_6$$35, "__construct", NULL, 4, &_8$$35); zephir_check_call_status(); zephir_throw_exception_debug(&_6$$35, "phalcon/db/dialect/postgresql.zep", 150 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -58281,7 +56774,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, getColumnDefinition) { ZVAL_COPY(&value$$37, _9$$37); ZEPHIR_INIT_NVAR(&_10$$38); ZVAL_STRING(&_10$$38, "\\'"); - ZEPHIR_CALL_FUNCTION(&_11$$38, "addcslashes", &_12, 150, &value$$37, &_10$$38); + ZEPHIR_CALL_FUNCTION(&_11$$38, "addcslashes", &_12, 137, &value$$37, &_10$$38); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_13$$38); ZEPHIR_CONCAT_SVS(&_13$$38, "'", &_11$$38, "', "); @@ -58298,7 +56791,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, getColumnDefinition) { } else { ZEPHIR_INIT_VAR(&_18$$39); ZVAL_STRING(&_18$$39, "\\'"); - ZEPHIR_CALL_FUNCTION(&_19$$39, "addcslashes", &_12, 150, &typeValues, &_18$$39); + ZEPHIR_CALL_FUNCTION(&_19$$39, "addcslashes", &_12, 137, &typeValues, &_18$$39); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_20$$39); ZEPHIR_CONCAT_SVS(&_20$$39, "('", &_19$$39, "')"); @@ -58334,21 +56827,21 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, addColumn) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &column); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(&tableName, tableName_param); } else { ZEPHIR_INIT_VAR(&tableName); ZVAL_EMPTY_STRING(&tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(&schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(&schemaName); @@ -58435,21 +56928,21 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, modifyColumn) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 1, &tableName_param, &schemaName_param, &column, ¤tColumn); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(&tableName, tableName_param); } else { ZEPHIR_INIT_VAR(&tableName); ZVAL_EMPTY_STRING(&tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(&schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(&schemaName); @@ -58580,31 +57073,31 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, dropColumn) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &columnName_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(&tableName, tableName_param); } else { ZEPHIR_INIT_VAR(&tableName); ZVAL_EMPTY_STRING(&tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(&schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(&schemaName); ZVAL_EMPTY_STRING(&schemaName); } - if (unlikely(Z_TYPE_P(columnName_param) != IS_STRING && Z_TYPE_P(columnName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(columnName_param) != IS_STRING && Z_TYPE_P(columnName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'columnName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(columnName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(columnName_param) == IS_STRING)) { zephir_get_strval(&columnName, columnName_param); } else { ZEPHIR_INIT_VAR(&columnName); @@ -58643,21 +57136,21 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, addIndex) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &index); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(&tableName, tableName_param); } else { ZEPHIR_INIT_VAR(&tableName); ZVAL_EMPTY_STRING(&tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(&schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(&schemaName); @@ -58690,7 +57183,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, addIndex) { zephir_concat_self(&sql, &_4 TSRMLS_CC); ZEPHIR_CALL_METHOD(&_6, index, "getcolumns", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_5, this_ptr, "getcolumnlist", NULL, 54, &_6); + ZEPHIR_CALL_METHOD(&_5, this_ptr, "getcolumnlist", NULL, 48, &_6); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_7); ZEPHIR_CONCAT_SVS(&_7, " (", &_5, ")"); @@ -58712,31 +57205,31 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, dropIndex) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &indexName_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(&tableName, tableName_param); } else { ZEPHIR_INIT_VAR(&tableName); ZVAL_EMPTY_STRING(&tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(&schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(&schemaName); ZVAL_EMPTY_STRING(&schemaName); } - if (unlikely(Z_TYPE_P(indexName_param) != IS_STRING && Z_TYPE_P(indexName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(indexName_param) != IS_STRING && Z_TYPE_P(indexName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'indexName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(indexName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(indexName_param) == IS_STRING)) { zephir_get_strval(&indexName, indexName_param); } else { ZEPHIR_INIT_VAR(&indexName); @@ -58766,21 +57259,21 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, addPrimaryKey) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &index); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(&tableName, tableName_param); } else { ZEPHIR_INIT_VAR(&tableName); ZVAL_EMPTY_STRING(&tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(&schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(&schemaName); @@ -58792,7 +57285,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, addPrimaryKey) { zephir_check_call_status(); ZEPHIR_CALL_METHOD(&_2, index, "getcolumns", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_1, this_ptr, "getcolumnlist", NULL, 54, &_2); + ZEPHIR_CALL_METHOD(&_1, this_ptr, "getcolumnlist", NULL, 48, &_2); zephir_check_call_status(); ZEPHIR_CONCAT_SVSVS(return_value, "ALTER TABLE ", &_0, " ADD CONSTRAINT \"PRIMARY\" PRIMARY KEY (", &_1, ")"); RETURN_MM(); @@ -58813,21 +57306,21 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, dropPrimaryKey) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &tableName_param, &schemaName_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(&tableName, tableName_param); } else { ZEPHIR_INIT_VAR(&tableName); ZVAL_EMPTY_STRING(&tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(&schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(&schemaName); @@ -58868,21 +57361,21 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, addForeignKey) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &reference); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(&tableName, tableName_param); } else { ZEPHIR_INIT_VAR(&tableName); ZVAL_EMPTY_STRING(&tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(&schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(&schemaName); @@ -58896,13 +57389,13 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, addForeignKey) { zephir_check_call_status(); ZEPHIR_CALL_METHOD(&_3, reference, "getcolumns", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_2, this_ptr, "getcolumnlist", NULL, 54, &_3); + ZEPHIR_CALL_METHOD(&_2, this_ptr, "getcolumnlist", NULL, 48, &_3); zephir_check_call_status(); ZEPHIR_CALL_METHOD(&_4, reference, "getreferencedtable", NULL, 0); zephir_check_call_status(); ZEPHIR_CALL_METHOD(&_6, reference, "getreferencedcolumns", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_5, this_ptr, "getcolumnlist", NULL, 54, &_6); + ZEPHIR_CALL_METHOD(&_5, this_ptr, "getcolumnlist", NULL, 48, &_6); zephir_check_call_status(); ZEPHIR_INIT_VAR(&sql); ZEPHIR_CONCAT_SVSVSVSSVSVS(&sql, "ALTER TABLE ", &_0, " ADD CONSTRAINT \"", &_1, "\" FOREIGN KEY (", &_2, ")", " REFERENCES \"", &_4, "\" (", &_5, ")"); @@ -58939,31 +57432,31 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, dropForeignKey) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &referenceName_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(&tableName, tableName_param); } else { ZEPHIR_INIT_VAR(&tableName); ZVAL_EMPTY_STRING(&tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(&schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(&schemaName); ZVAL_EMPTY_STRING(&schemaName); } - if (unlikely(Z_TYPE_P(referenceName_param) != IS_STRING && Z_TYPE_P(referenceName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(referenceName_param) != IS_STRING && Z_TYPE_P(referenceName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'referenceName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(referenceName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(referenceName_param) == IS_STRING)) { zephir_get_strval(&referenceName, referenceName_param); } else { ZEPHIR_INIT_VAR(&referenceName); @@ -59051,21 +57544,21 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, createTable) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &definition_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(&tableName, tableName_param); } else { ZEPHIR_INIT_VAR(&tableName); ZVAL_EMPTY_STRING(&tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(&schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(&schemaName); @@ -59142,7 +57635,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, createTable) { } ZEND_HASH_FOREACH_END(); ZEPHIR_INIT_NVAR(&column); if (!(ZEPHIR_IS_EMPTY(&primaryColumns))) { - ZEPHIR_CALL_METHOD(&_11$$13, this_ptr, "getcolumnlist", NULL, 54, &primaryColumns); + ZEPHIR_CALL_METHOD(&_11$$13, this_ptr, "getcolumnlist", NULL, 48, &primaryColumns); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_12$$13); ZEPHIR_CONCAT_SVS(&_12$$13, "PRIMARY KEY (", &_11$$13, ")"); @@ -59166,7 +57659,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, createTable) { if (ZEPHIR_IS_STRING(&indexName, "PRIMARY")) { ZEPHIR_CALL_METHOD(&_15$$16, &index, "getcolumns", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_14$$16, this_ptr, "getcolumnlist", NULL, 54, &_15$$16); + ZEPHIR_CALL_METHOD(&_14$$16, this_ptr, "getcolumnlist", NULL, 48, &_15$$16); zephir_check_call_status(); ZEPHIR_INIT_NVAR(&indexSql); ZEPHIR_CONCAT_SVS(&indexSql, "CONSTRAINT \"PRIMARY\" PRIMARY KEY (", &_14$$16, ")"); @@ -59174,7 +57667,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, createTable) { if (!(ZEPHIR_IS_EMPTY(&indexType))) { ZEPHIR_CALL_METHOD(&_17$$18, &index, "getcolumns", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_16$$18, this_ptr, "getcolumnlist", NULL, 54, &_17$$18); + ZEPHIR_CALL_METHOD(&_16$$18, this_ptr, "getcolumnlist", NULL, 48, &_17$$18); zephir_check_call_status(); ZEPHIR_INIT_NVAR(&indexSql); ZEPHIR_CONCAT_SVSVSVS(&indexSql, "CONSTRAINT \"", &indexName, "\" ", &indexType, " (", &_16$$18, ")"); @@ -59188,7 +57681,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, createTable) { zephir_concat_self(&indexSqlAfterCreate, &_20$$19 TSRMLS_CC); ZEPHIR_CALL_METHOD(&_22$$19, &index, "getcolumns", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_21$$19, this_ptr, "getcolumnlist", NULL, 54, &_22$$19); + ZEPHIR_CALL_METHOD(&_21$$19, this_ptr, "getcolumnlist", NULL, 48, &_22$$19); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_23$$19); ZEPHIR_CONCAT_SVS(&_23$$19, " (", &_21$$19, ");"); @@ -59212,7 +57705,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, createTable) { zephir_check_call_status(); ZEPHIR_CALL_METHOD(&_27$$22, &reference, "getcolumns", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_26$$22, this_ptr, "getcolumnlist", NULL, 54, &_27$$22); + ZEPHIR_CALL_METHOD(&_26$$22, this_ptr, "getcolumnlist", NULL, 48, &_27$$22); zephir_check_call_status(); ZEPHIR_INIT_NVAR(&referenceSql); ZEPHIR_CONCAT_SVSVS(&referenceSql, "CONSTRAINT \"", &_25$$22, "\" FOREIGN KEY (", &_26$$22, ") REFERENCES "); @@ -59223,7 +57716,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, createTable) { zephir_concat_self(&referenceSql, &_28$$22 TSRMLS_CC); ZEPHIR_CALL_METHOD(&_31$$22, &reference, "getreferencedcolumns", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_30$$22, this_ptr, "getcolumnlist", NULL, 54, &_31$$22); + ZEPHIR_CALL_METHOD(&_30$$22, this_ptr, "getcolumnlist", NULL, 48, &_31$$22); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_32$$22); ZEPHIR_CONCAT_SVS(&_32$$22, " (", &_30$$22, ")"); @@ -59280,21 +57773,21 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, truncateTable) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &tableName_param, &schemaName_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(&tableName, tableName_param); } else { ZEPHIR_INIT_VAR(&tableName); ZVAL_EMPTY_STRING(&tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(&schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(&schemaName); @@ -59331,11 +57824,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, dropTable) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &tableName_param, &schemaName_param, &ifExists_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(&tableName, tableName_param); } else { ZEPHIR_INIT_VAR(&tableName); @@ -59350,7 +57843,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, dropTable) { if (!ifExists_param) { ifExists = 1; } else { - if (unlikely(Z_TYPE_P(ifExists_param) != IS_TRUE && Z_TYPE_P(ifExists_param) != IS_FALSE)) { + if (UNEXPECTED(Z_TYPE_P(ifExists_param) != IS_TRUE && Z_TYPE_P(ifExists_param) != IS_FALSE)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'ifExists' must be a bool") TSRMLS_CC); RETURN_MM_NULL(); } @@ -59387,11 +57880,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, createView) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 1, &viewName_param, &definition_param, &schemaName_param); - if (unlikely(Z_TYPE_P(viewName_param) != IS_STRING && Z_TYPE_P(viewName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(viewName_param) != IS_STRING && Z_TYPE_P(viewName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'viewName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(viewName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(viewName_param) == IS_STRING)) { zephir_get_strval(&viewName, viewName_param); } else { ZEPHIR_INIT_VAR(&viewName); @@ -59434,11 +57927,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, dropView) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &viewName_param, &schemaName_param, &ifExists_param); - if (unlikely(Z_TYPE_P(viewName_param) != IS_STRING && Z_TYPE_P(viewName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(viewName_param) != IS_STRING && Z_TYPE_P(viewName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'viewName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(viewName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(viewName_param) == IS_STRING)) { zephir_get_strval(&viewName, viewName_param); } else { ZEPHIR_INIT_VAR(&viewName); @@ -59453,7 +57946,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, dropView) { if (!ifExists_param) { ifExists = 1; } else { - if (unlikely(Z_TYPE_P(ifExists_param) != IS_TRUE && Z_TYPE_P(ifExists_param) != IS_FALSE)) { + if (UNEXPECTED(Z_TYPE_P(ifExists_param) != IS_TRUE && Z_TYPE_P(ifExists_param) != IS_FALSE)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'ifExists' must be a bool") TSRMLS_CC); RETURN_MM_NULL(); } @@ -59485,11 +57978,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, tableExists) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &tableName_param, &schemaName_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(&tableName, tableName_param); } else { ZEPHIR_INIT_VAR(&tableName); @@ -59524,11 +58017,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, viewExists) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &viewName_param, &schemaName_param); - if (unlikely(Z_TYPE_P(viewName_param) != IS_STRING && Z_TYPE_P(viewName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(viewName_param) != IS_STRING && Z_TYPE_P(viewName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'viewName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(viewName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(viewName_param) == IS_STRING)) { zephir_get_strval(&viewName, viewName_param); } else { ZEPHIR_INIT_VAR(&viewName); @@ -59563,11 +58056,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, describeColumns) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &table_param, &schema_param); - if (unlikely(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'table' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(table_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(table_param) == IS_STRING)) { zephir_get_strval(&table, table_param); } else { ZEPHIR_INIT_VAR(&table); @@ -59653,11 +58146,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, describeIndexes) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &table_param, &schema_param); - if (unlikely(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'table' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(table_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(table_param) == IS_STRING)) { zephir_get_strval(&table, table_param); } else { ZEPHIR_INIT_VAR(&table); @@ -59691,11 +58184,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, describeReferences) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &table_param, &schema_param); - if (unlikely(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'table' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(table_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(table_param) == IS_STRING)) { zephir_get_strval(&table, table_param); } else { ZEPHIR_INIT_VAR(&table); @@ -59736,11 +58229,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, tableOptions) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &table_param, &schema_param); - if (unlikely(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'table' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(table_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(table_param) == IS_STRING)) { zephir_get_strval(&table, table_param); } else { ZEPHIR_INIT_VAR(&table); @@ -59828,7 +58321,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, _castDefault) { } else { ZEPHIR_INIT_VAR(&_8$$6); ZVAL_STRING(&_8$$6, "\\'"); - ZEPHIR_CALL_FUNCTION(&_9$$6, "addcslashes", NULL, 150, &defaultValue, &_8$$6); + ZEPHIR_CALL_FUNCTION(&_9$$6, "addcslashes", NULL, 137, &defaultValue, &_8$$6); zephir_check_call_status(); ZEPHIR_CONCAT_SVS(&preparedValue, "'", &_9$$6, "'"); } @@ -60055,7 +58548,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, getColumnDefinition) { zephir_check_call_status(); ZEPHIR_INIT_VAR(&_11$$39); ZEPHIR_CONCAT_SV(&_11$$39, "Unrecognized SQLite data type at column ", &_10$$39); - ZEPHIR_CALL_METHOD(NULL, &_9$$39, "__construct", NULL, 9, &_11$$39); + ZEPHIR_CALL_METHOD(NULL, &_9$$39, "__construct", NULL, 4, &_11$$39); zephir_check_call_status(); zephir_throw_exception_debug(&_9$$39, "phalcon/db/dialect/sqlite.zep", 169 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -60074,7 +58567,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, getColumnDefinition) { ZVAL_COPY(&value$$41, _12$$41); ZEPHIR_INIT_NVAR(&_13$$42); ZVAL_STRING(&_13$$42, "\""); - ZEPHIR_CALL_FUNCTION(&_14$$42, "addcslashes", &_15, 150, &value$$41, &_13$$42); + ZEPHIR_CALL_FUNCTION(&_14$$42, "addcslashes", &_15, 137, &value$$41, &_13$$42); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_16$$42); ZEPHIR_CONCAT_SVS(&_16$$42, "\"", &_14$$42, "\", "); @@ -60091,7 +58584,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, getColumnDefinition) { } else { ZEPHIR_INIT_VAR(&_21$$43); ZVAL_STRING(&_21$$43, "\""); - ZEPHIR_CALL_FUNCTION(&_22$$43, "addcslashes", &_15, 150, &typeValues, &_21$$43); + ZEPHIR_CALL_FUNCTION(&_22$$43, "addcslashes", &_15, 137, &typeValues, &_21$$43); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_23$$43); ZEPHIR_CONCAT_SVS(&_23$$43, "(\"", &_22$$43, "\")"); @@ -60131,21 +58624,21 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, addColumn) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &column); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(&tableName, tableName_param); } else { ZEPHIR_INIT_VAR(&tableName); ZVAL_EMPTY_STRING(&tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(&schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(&schemaName); @@ -60176,7 +58669,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, addColumn) { } else { ZEPHIR_INIT_VAR(&_6$$5); ZVAL_STRING(&_6$$5, "\""); - ZEPHIR_CALL_FUNCTION(&_7$$5, "addcslashes", NULL, 150, &defaultValue, &_6$$5); + ZEPHIR_CALL_FUNCTION(&_7$$5, "addcslashes", NULL, 137, &defaultValue, &_6$$5); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_8$$5); ZEPHIR_CONCAT_SVS(&_8$$5, " DEFAULT \"", &_7$$5, "\""); @@ -60212,21 +58705,21 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, modifyColumn) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 1, &tableName_param, &schemaName_param, &column, ¤tColumn); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(&tableName, tableName_param); } else { ZEPHIR_INIT_VAR(&tableName); ZVAL_EMPTY_STRING(&tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(&schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(&schemaName); @@ -60256,31 +58749,31 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, dropColumn) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &columnName_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(&tableName, tableName_param); } else { ZEPHIR_INIT_VAR(&tableName); ZVAL_EMPTY_STRING(&tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(&schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(&schemaName); ZVAL_EMPTY_STRING(&schemaName); } - if (unlikely(Z_TYPE_P(columnName_param) != IS_STRING && Z_TYPE_P(columnName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(columnName_param) != IS_STRING && Z_TYPE_P(columnName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'columnName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(columnName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(columnName_param) == IS_STRING)) { zephir_get_strval(&columnName, columnName_param); } else { ZEPHIR_INIT_VAR(&columnName); @@ -60316,21 +58809,21 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, addIndex) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &index); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(&tableName, tableName_param); } else { ZEPHIR_INIT_VAR(&tableName); ZVAL_EMPTY_STRING(&tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(&schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(&schemaName); @@ -60361,7 +58854,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, addIndex) { } ZEPHIR_CALL_METHOD(&_5, index, "getcolumns", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_4, this_ptr, "getcolumnlist", NULL, 54, &_5); + ZEPHIR_CALL_METHOD(&_4, this_ptr, "getcolumnlist", NULL, 48, &_5); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_6); ZEPHIR_CONCAT_VS(&_6, &_4, ")"); @@ -60383,31 +58876,31 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, dropIndex) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &indexName_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(&tableName, tableName_param); } else { ZEPHIR_INIT_VAR(&tableName); ZVAL_EMPTY_STRING(&tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(&schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(&schemaName); ZVAL_EMPTY_STRING(&schemaName); } - if (unlikely(Z_TYPE_P(indexName_param) != IS_STRING && Z_TYPE_P(indexName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(indexName_param) != IS_STRING && Z_TYPE_P(indexName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'indexName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(indexName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(indexName_param) == IS_STRING)) { zephir_get_strval(&indexName, indexName_param); } else { ZEPHIR_INIT_VAR(&indexName); @@ -60437,21 +58930,21 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, addPrimaryKey) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &index); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(&tableName, tableName_param); } else { ZEPHIR_INIT_VAR(&tableName); ZVAL_EMPTY_STRING(&tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(&schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(&schemaName); @@ -60476,21 +58969,21 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, dropPrimaryKey) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &tableName_param, &schemaName_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(&tableName, tableName_param); } else { ZEPHIR_INIT_VAR(&tableName); ZVAL_EMPTY_STRING(&tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(&schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(&schemaName); @@ -60516,21 +59009,21 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, addForeignKey) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &reference); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(&tableName, tableName_param); } else { ZEPHIR_INIT_VAR(&tableName); ZVAL_EMPTY_STRING(&tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(&schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(&schemaName); @@ -60556,31 +59049,31 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, dropForeignKey) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &referenceName_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(&tableName, tableName_param); } else { ZEPHIR_INIT_VAR(&tableName); ZVAL_EMPTY_STRING(&tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(&schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(&schemaName); ZVAL_EMPTY_STRING(&schemaName); } - if (unlikely(Z_TYPE_P(referenceName_param) != IS_STRING && Z_TYPE_P(referenceName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(referenceName_param) != IS_STRING && Z_TYPE_P(referenceName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'referenceName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(referenceName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(referenceName_param) == IS_STRING)) { zephir_get_strval(&referenceName, referenceName_param); } else { ZEPHIR_INIT_VAR(&referenceName); @@ -60655,21 +59148,21 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, createTable) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &definition_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(&tableName, tableName_param); } else { ZEPHIR_INIT_VAR(&tableName); ZVAL_EMPTY_STRING(&tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(&schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(&schemaName); @@ -60743,7 +59236,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, createTable) { } else { ZEPHIR_INIT_NVAR(&_10$$12); ZVAL_STRING(&_10$$12, "\""); - ZEPHIR_CALL_FUNCTION(&_11$$12, "addcslashes", &_12, 150, &defaultValue, &_10$$12); + ZEPHIR_CALL_FUNCTION(&_11$$12, "addcslashes", &_12, 137, &defaultValue, &_10$$12); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_13$$12); ZEPHIR_CONCAT_SVS(&_13$$12, " DEFAULT \"", &_11$$12, "\""); @@ -60782,7 +59275,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, createTable) { if (_16$$15) { ZEPHIR_CALL_METHOD(&_20$$16, &index, "getcolumns", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_19$$16, this_ptr, "getcolumnlist", &_21, 54, &_20$$16); + ZEPHIR_CALL_METHOD(&_19$$16, this_ptr, "getcolumnlist", &_21, 48, &_20$$16); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_22$$16); ZEPHIR_CONCAT_SVS(&_22$$16, "PRIMARY KEY (", &_19$$16, ")"); @@ -60790,7 +59283,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, createTable) { } else if (_17$$15) { ZEPHIR_CALL_METHOD(&_24$$17, &index, "getcolumns", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_23$$17, this_ptr, "getcolumnlist", &_21, 54, &_24$$17); + ZEPHIR_CALL_METHOD(&_23$$17, this_ptr, "getcolumnlist", &_21, 48, &_24$$17); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_25$$17); ZEPHIR_CONCAT_SVS(&_25$$17, "UNIQUE (", &_23$$17, ")"); @@ -60810,13 +59303,13 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, createTable) { zephir_check_call_status(); ZEPHIR_CALL_METHOD(&_29$$19, &reference, "getcolumns", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_28$$19, this_ptr, "getcolumnlist", &_21, 54, &_29$$19); + ZEPHIR_CALL_METHOD(&_28$$19, this_ptr, "getcolumnlist", &_21, 48, &_29$$19); zephir_check_call_status(); ZEPHIR_CALL_METHOD(&_30$$19, &reference, "getreferencedtable", NULL, 0); zephir_check_call_status(); ZEPHIR_CALL_METHOD(&_32$$19, &reference, "getreferencedcolumns", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_31$$19, this_ptr, "getcolumnlist", &_21, 54, &_32$$19); + ZEPHIR_CALL_METHOD(&_31$$19, this_ptr, "getcolumnlist", &_21, 48, &_32$$19); zephir_check_call_status(); ZEPHIR_INIT_NVAR(&referenceSql); ZEPHIR_CONCAT_SVSVSSVSVS(&referenceSql, "CONSTRAINT `", &_27$$19, "` FOREIGN KEY (", &_28$$19, ")", " REFERENCES `", &_30$$19, "`(", &_31$$19, ")"); @@ -60862,21 +59355,21 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, truncateTable) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &tableName_param, &schemaName_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(&tableName, tableName_param); } else { ZEPHIR_INIT_VAR(&tableName); ZVAL_EMPTY_STRING(&tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(&schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(&schemaName); @@ -60913,11 +59406,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, dropTable) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &tableName_param, &schemaName_param, &ifExists_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(&tableName, tableName_param); } else { ZEPHIR_INIT_VAR(&tableName); @@ -60932,7 +59425,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, dropTable) { if (!ifExists_param) { ifExists = 1; } else { - if (unlikely(Z_TYPE_P(ifExists_param) != IS_TRUE && Z_TYPE_P(ifExists_param) != IS_FALSE)) { + if (UNEXPECTED(Z_TYPE_P(ifExists_param) != IS_TRUE && Z_TYPE_P(ifExists_param) != IS_FALSE)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'ifExists' must be a bool") TSRMLS_CC); RETURN_MM_NULL(); } @@ -60969,11 +59462,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, createView) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 1, &viewName_param, &definition_param, &schemaName_param); - if (unlikely(Z_TYPE_P(viewName_param) != IS_STRING && Z_TYPE_P(viewName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(viewName_param) != IS_STRING && Z_TYPE_P(viewName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'viewName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(viewName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(viewName_param) == IS_STRING)) { zephir_get_strval(&viewName, viewName_param); } else { ZEPHIR_INIT_VAR(&viewName); @@ -61015,11 +59508,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, dropView) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &viewName_param, &schemaName_param, &ifExists_param); - if (unlikely(Z_TYPE_P(viewName_param) != IS_STRING && Z_TYPE_P(viewName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(viewName_param) != IS_STRING && Z_TYPE_P(viewName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'viewName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(viewName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(viewName_param) == IS_STRING)) { zephir_get_strval(&viewName, viewName_param); } else { ZEPHIR_INIT_VAR(&viewName); @@ -61034,7 +59527,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, dropView) { if (!ifExists_param) { ifExists = 1; } else { - if (unlikely(Z_TYPE_P(ifExists_param) != IS_TRUE && Z_TYPE_P(ifExists_param) != IS_FALSE)) { + if (UNEXPECTED(Z_TYPE_P(ifExists_param) != IS_TRUE && Z_TYPE_P(ifExists_param) != IS_FALSE)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'ifExists' must be a bool") TSRMLS_CC); RETURN_MM_NULL(); } @@ -61065,11 +59558,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, tableExists) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &tableName_param, &schemaName_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(&tableName, tableName_param); } else { ZEPHIR_INIT_VAR(&tableName); @@ -61100,11 +59593,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, viewExists) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &viewName_param, &schemaName_param); - if (unlikely(Z_TYPE_P(viewName_param) != IS_STRING && Z_TYPE_P(viewName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(viewName_param) != IS_STRING && Z_TYPE_P(viewName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'viewName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(viewName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(viewName_param) == IS_STRING)) { zephir_get_strval(&viewName, viewName_param); } else { ZEPHIR_INIT_VAR(&viewName); @@ -61135,11 +59628,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, describeColumns) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &table_param, &schema_param); - if (unlikely(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'table' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(table_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(table_param) == IS_STRING)) { zephir_get_strval(&table, table_param); } else { ZEPHIR_INIT_VAR(&table); @@ -61196,11 +59689,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, listViews) { ZEPHIR_INIT_VAR(&schemaName); ZVAL_STRING(&schemaName, ""); } else { - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(&schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(&schemaName); @@ -61232,11 +59725,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, listIndexesSql) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &table_param, &schema_param, &keyName_param); - if (unlikely(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'table' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(table_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(table_param) == IS_STRING)) { zephir_get_strval(&table, table_param); } else { ZEPHIR_INIT_VAR(&table); @@ -61256,13 +59749,13 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, listIndexesSql) { } - ZEPHIR_CALL_METHOD(&_0, this_ptr, "escape", NULL, 53, &table); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "escape", NULL, 47, &table); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_1); ZEPHIR_CONCAT_SVS(&_1, "SELECT sql FROM sqlite_master WHERE type = 'index' AND tbl_name = ", &_0, " COLLATE NOCASE"); zephir_get_strval(&sql, &_1); if (!(Z_TYPE_P(&keyName) == IS_UNDEF) && Z_STRLEN_P(&keyName)) { - ZEPHIR_CALL_METHOD(&_2$$3, this_ptr, "escape", NULL, 53, &keyName); + ZEPHIR_CALL_METHOD(&_2$$3, this_ptr, "escape", NULL, 47, &keyName); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_3$$3); ZEPHIR_CONCAT_SVS(&_3$$3, " AND name = ", &_2$$3, " COLLATE NOCASE"); @@ -61284,11 +59777,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, describeIndexes) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &table_param, &schema_param); - if (unlikely(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'table' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(table_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(table_param) == IS_STRING)) { zephir_get_strval(&table, table_param); } else { ZEPHIR_INIT_VAR(&table); @@ -61318,11 +59811,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, describeIndex) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &index_param); - if (unlikely(Z_TYPE_P(index_param) != IS_STRING && Z_TYPE_P(index_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(index_param) != IS_STRING && Z_TYPE_P(index_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'index' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(index_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(index_param) == IS_STRING)) { zephir_get_strval(&index, index_param); } else { ZEPHIR_INIT_VAR(&index); @@ -61347,11 +59840,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, describeReferences) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &table_param, &schema_param); - if (unlikely(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'table' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(table_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(table_param) == IS_STRING)) { zephir_get_strval(&table, table_param); } else { ZEPHIR_INIT_VAR(&table); @@ -61382,11 +59875,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, tableOptions) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &table_param, &schema_param); - if (unlikely(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'table' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(table_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(table_param) == IS_STRING)) { zephir_get_strval(&table, table_param); } else { ZEPHIR_INIT_VAR(&table); @@ -62114,14 +60607,13 @@ static PHP_METHOD(Phalcon_Debug_Dump, __construct) { static PHP_METHOD(Phalcon_Debug_Dump, all) { - zval _1, _2; + zval _1; zval _0; int ZEPHIR_LAST_CALL_STATUS; ZEPHIR_INIT_THIS(); ZVAL_UNDEF(&_0); ZVAL_UNDEF(&_1); - ZVAL_UNDEF(&_2); ZEPHIR_MM_GROW(); @@ -62131,9 +60623,9 @@ static PHP_METHOD(Phalcon_Debug_Dump, all) { ZEPHIR_INIT_VAR(&_1); ZVAL_STRING(&_1, "variables"); zephir_array_fast_append(&_0, &_1); - ZEPHIR_CALL_FUNCTION(&_2, "func_get_args", NULL, 173); - zephir_check_call_status(); - ZEPHIR_CALL_USER_FUNC_ARRAY(return_value, &_0, &_2); + ZEPHIR_INIT_NVAR(&_1); + zephir_get_args(&_1); + ZEPHIR_CALL_USER_FUNC_ARRAY(return_value, &_0, &_1); zephir_check_call_status(); RETURN_MM(); @@ -62152,11 +60644,11 @@ static PHP_METHOD(Phalcon_Debug_Dump, getStyle) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &type_param); - if (unlikely(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'type' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(type_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(type_param) == IS_STRING)) { zephir_get_strval(&type, type_param); } else { ZEPHIR_INIT_VAR(&type); @@ -62403,7 +60895,7 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { add_assoc_long_ex(&_1$$4, SL(":count"), zephir_fast_count_int(variable TSRMLS_CC)); ZEPHIR_INIT_NVAR(&_3$$4); ZVAL_STRING(&_3$$4, "Array (:count) (\n"); - ZEPHIR_CALL_FUNCTION(&_2$$4, "strtr", &_5, 26, &_3$$4, &_1$$4); + ZEPHIR_CALL_FUNCTION(&_2$$4, "strtr", &_5, 21, &_3$$4, &_1$$4); zephir_check_call_status(); zephir_concat_self(&output, &_2$$4 TSRMLS_CC); zephir_is_iterable(variable, 0, "phalcon/debug/dump.zep", 161); @@ -62418,7 +60910,7 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { ZEPHIR_INIT_NVAR(&value); ZVAL_COPY(&value, _6$$4); ZVAL_LONG(&_9$$5, tab); - ZEPHIR_CALL_FUNCTION(&_10$$5, "str_repeat", &_11, 139, &space, &_9$$5); + ZEPHIR_CALL_FUNCTION(&_10$$5, "str_repeat", &_11, 127, &space, &_9$$5); zephir_check_call_status(); ZEPHIR_INIT_NVAR(&_12$$5); zephir_create_array(&_12$$5, 2, 0 TSRMLS_CC); @@ -62430,7 +60922,7 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { zephir_array_update_string(&_12$$5, SL(":key"), &key, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_NVAR(&_14$$5); ZVAL_STRING(&_14$$5, "[:key] => "); - ZEPHIR_CALL_FUNCTION(&_13$$5, "strtr", &_5, 26, &_14$$5, &_12$$5); + ZEPHIR_CALL_FUNCTION(&_13$$5, "strtr", &_5, 21, &_14$$5, &_12$$5); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_15$$5); ZEPHIR_CONCAT_VV(&_15$$5, &_10$$5, &_13$$5); @@ -62453,7 +60945,7 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { ZEPHIR_INIT_NVAR(&_20$$7); ZVAL_STRING(&_20$$7, ""); ZVAL_LONG(&_21$$7, (tab + 1)); - ZEPHIR_CALL_METHOD(&_19$$7, this_ptr, "output", &_22, 174, &value, &_20$$7, &_21$$7); + ZEPHIR_CALL_METHOD(&_19$$7, this_ptr, "output", &_22, 157, &value, &_20$$7, &_21$$7); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_23$$7); ZEPHIR_CONCAT_VS(&_23$$7, &_19$$7, "\n"); @@ -62463,7 +60955,7 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { ZEPHIR_INIT_NVAR(&value); ZEPHIR_INIT_NVAR(&key); ZVAL_LONG(&_24$$4, (tab - 1)); - ZEPHIR_CALL_FUNCTION(&_25$$4, "str_repeat", &_11, 139, &space, &_24$$4); + ZEPHIR_CALL_FUNCTION(&_25$$4, "str_repeat", &_11, 127, &space, &_24$$4); zephir_check_call_status(); ZEPHIR_CONCAT_VVS(return_value, &output, &_25$$4, ")"); RETURN_MM(); @@ -62481,10 +60973,10 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { zephir_array_update_string(&_26$$8, SL(":class"), &_28$$8, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_NVAR(&_28$$8); ZVAL_STRING(&_28$$8, "Object :class"); - ZEPHIR_CALL_FUNCTION(&_27$$8, "strtr", &_5, 26, &_28$$8, &_26$$8); + ZEPHIR_CALL_FUNCTION(&_27$$8, "strtr", &_5, 21, &_28$$8, &_26$$8); zephir_check_call_status(); zephir_concat_self(&output, &_27$$8 TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_29$$8, "get_parent_class", &_30, 175, variable); + ZEPHIR_CALL_FUNCTION(&_29$$8, "get_parent_class", &_30, 158, variable); zephir_check_call_status(); if (zephir_is_true(&_29$$8)) { ZEPHIR_INIT_VAR(&_31$$9); @@ -62494,12 +60986,12 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { ZEPHIR_CALL_METHOD(&_32$$9, this_ptr, "getstyle", &_4, 0, &_33$$9); zephir_check_call_status(); zephir_array_update_string(&_31$$9, SL(":style"), &_32$$9, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_FUNCTION(&_32$$9, "get_parent_class", &_30, 175, variable); + ZEPHIR_CALL_FUNCTION(&_32$$9, "get_parent_class", &_30, 158, variable); zephir_check_call_status(); zephir_array_update_string(&_31$$9, SL(":parent"), &_32$$9, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_NVAR(&_33$$9); ZVAL_STRING(&_33$$9, " extends :parent"); - ZEPHIR_CALL_FUNCTION(&_32$$9, "strtr", &_5, 26, &_33$$9, &_31$$9); + ZEPHIR_CALL_FUNCTION(&_32$$9, "strtr", &_5, 21, &_33$$9, &_31$$9); zephir_check_call_status(); zephir_concat_self(&output, &_32$$9 TSRMLS_CC); } @@ -62507,13 +60999,13 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { zephir_read_property(&_34$$8, this_ptr, SL("_detailed"), PH_NOISY_CC | PH_READONLY); if (zephir_instance_of_ev(variable, phalcon_di_ce TSRMLS_CC)) { ZVAL_LONG(&_35$$10, tab); - ZEPHIR_CALL_FUNCTION(&_36$$10, "str_repeat", &_11, 139, &space, &_35$$10); + ZEPHIR_CALL_FUNCTION(&_36$$10, "str_repeat", &_11, 127, &space, &_35$$10); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_37$$10); ZEPHIR_CONCAT_VS(&_37$$10, &_36$$10, "[skipped]\n"); zephir_concat_self(&output, &_37$$10 TSRMLS_CC); } else if (!(zephir_is_true(&_34$$8))) { - ZEPHIR_CALL_FUNCTION(&_38$$11, "get_object_vars", NULL, 21, variable); + ZEPHIR_CALL_FUNCTION(&_38$$11, "get_object_vars", NULL, 16, variable); zephir_check_call_status(); zephir_is_iterable(&_38$$11, 0, "phalcon/debug/dump.zep", 194); ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&_38$$11), _40$$11, _41$$11, _39$$11) @@ -62527,7 +61019,7 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { ZEPHIR_INIT_NVAR(&value); ZVAL_COPY(&value, _39$$11); ZVAL_LONG(&_42$$12, tab); - ZEPHIR_CALL_FUNCTION(&_43$$12, "str_repeat", &_11, 139, &space, &_42$$12); + ZEPHIR_CALL_FUNCTION(&_43$$12, "str_repeat", &_11, 127, &space, &_42$$12); zephir_check_call_status(); ZEPHIR_INIT_NVAR(&_44$$12); zephir_create_array(&_44$$12, 3, 0 TSRMLS_CC); @@ -62540,7 +61032,7 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { add_assoc_stringl_ex(&_44$$12, SL(":type"), SL("public")); ZEPHIR_INIT_NVAR(&_46$$12); ZVAL_STRING(&_46$$12, "->:key (:type) = "); - ZEPHIR_CALL_FUNCTION(&_45$$12, "strtr", &_5, 26, &_46$$12, &_44$$12); + ZEPHIR_CALL_FUNCTION(&_45$$12, "strtr", &_5, 21, &_46$$12, &_44$$12); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_47$$12); ZEPHIR_CONCAT_VV(&_47$$12, &_43$$12, &_45$$12); @@ -62548,7 +61040,7 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { ZEPHIR_INIT_NVAR(&_46$$12); ZVAL_STRING(&_46$$12, ""); ZVAL_LONG(&_42$$12, (tab + 1)); - ZEPHIR_CALL_METHOD(&_48$$12, this_ptr, "output", &_22, 174, &value, &_46$$12, &_42$$12); + ZEPHIR_CALL_METHOD(&_48$$12, this_ptr, "output", &_22, 157, &value, &_46$$12, &_42$$12); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_49$$12); ZEPHIR_CONCAT_VS(&_49$$12, &_48$$12, "\n"); @@ -62559,7 +61051,7 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { } else { do { ZEPHIR_MAKE_REF(variable); - ZEPHIR_CALL_FUNCTION(&attr, "each", &_50, 176, variable); + ZEPHIR_CALL_FUNCTION(&attr, "each", &_50, 159, variable); ZEPHIR_UNREF(variable); zephir_check_call_status(); if (!(zephir_is_true(&attr))) { @@ -62574,7 +61066,7 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { } ZEPHIR_INIT_NVAR(&_51$$14); ZVAL_LONG(&_52$$14, 0); - ZEPHIR_CALL_FUNCTION(&_53$$14, "chr", &_54, 138, &_52$$14); + ZEPHIR_CALL_FUNCTION(&_53$$14, "chr", &_54, 126, &_52$$14); zephir_check_call_status(); zephir_fast_explode(&_51$$14, &_53$$14, &key, LONG_MAX TSRMLS_CC); ZEPHIR_CPY_WRT(&key, &_51$$14); @@ -62590,7 +61082,7 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { } } ZVAL_LONG(&_52$$14, tab); - ZEPHIR_CALL_FUNCTION(&_56$$14, "str_repeat", &_11, 139, &space, &_52$$14); + ZEPHIR_CALL_FUNCTION(&_56$$14, "str_repeat", &_11, 127, &space, &_52$$14); zephir_check_call_status(); ZEPHIR_INIT_NVAR(&_57$$14); zephir_create_array(&_57$$14, 3, 0 TSRMLS_CC); @@ -62600,14 +61092,14 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { zephir_check_call_status(); zephir_array_update_string(&_57$$14, SL(":style"), &_58$$14, PH_COPY | PH_SEPARATE); ZEPHIR_MAKE_REF(&key); - ZEPHIR_CALL_FUNCTION(&_58$$14, "end", &_59, 177, &key); + ZEPHIR_CALL_FUNCTION(&_58$$14, "end", &_59, 160, &key); ZEPHIR_UNREF(&key); zephir_check_call_status(); zephir_array_update_string(&_57$$14, SL(":key"), &_58$$14, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_57$$14, SL(":type"), &type, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_NVAR(&_51$$14); ZVAL_STRING(&_51$$14, "->:key (:type) = "); - ZEPHIR_CALL_FUNCTION(&_58$$14, "strtr", &_5, 26, &_51$$14, &_57$$14); + ZEPHIR_CALL_FUNCTION(&_58$$14, "strtr", &_5, 21, &_51$$14, &_57$$14); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_60$$14); ZEPHIR_CONCAT_VV(&_60$$14, &_56$$14, &_58$$14); @@ -62615,17 +61107,17 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { ZEPHIR_INIT_NVAR(&_51$$14); ZVAL_STRING(&_51$$14, ""); ZVAL_LONG(&_52$$14, (tab + 1)); - ZEPHIR_CALL_METHOD(&_61$$14, this_ptr, "output", &_22, 174, &value, &_51$$14, &_52$$14); + ZEPHIR_CALL_METHOD(&_61$$14, this_ptr, "output", &_22, 157, &value, &_51$$14, &_52$$14); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_62$$14); ZEPHIR_CONCAT_VS(&_62$$14, &_61$$14, "\n"); zephir_concat_self(&output, &_62$$14 TSRMLS_CC); } while (zephir_is_true(&attr)); } - ZEPHIR_CALL_FUNCTION(&attr, "get_class_methods", NULL, 178, variable); + ZEPHIR_CALL_FUNCTION(&attr, "get_class_methods", NULL, 161, variable); zephir_check_call_status(); ZVAL_LONG(&_63$$8, tab); - ZEPHIR_CALL_FUNCTION(&_64$$8, "str_repeat", &_11, 139, &space, &_63$$8); + ZEPHIR_CALL_FUNCTION(&_64$$8, "str_repeat", &_11, 127, &space, &_63$$8); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_65$$8); zephir_create_array(&_65$$8, 3, 0 TSRMLS_CC); @@ -62640,7 +61132,7 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { add_assoc_long_ex(&_65$$8, SL(":count"), zephir_fast_count_int(&attr TSRMLS_CC)); ZEPHIR_INIT_NVAR(&_28$$8); ZVAL_STRING(&_28$$8, ":class methods: (:count) (\n"); - ZEPHIR_CALL_FUNCTION(&_66$$8, "strtr", &_5, 26, &_28$$8, &_65$$8); + ZEPHIR_CALL_FUNCTION(&_66$$8, "strtr", &_5, 21, &_28$$8, &_65$$8); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_67$$8); ZEPHIR_CONCAT_VV(&_67$$8, &_64$$8, &_66$$8); @@ -62650,7 +61142,7 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { zephir_read_property(&_63$$8, this_ptr, SL("_methods"), PH_NOISY_CC | PH_READONLY); if (zephir_fast_in_array(&_28$$8, &_63$$8 TSRMLS_CC)) { ZVAL_LONG(&_68$$19, tab); - ZEPHIR_CALL_FUNCTION(&_69$$19, "str_repeat", &_11, 139, &space, &_68$$19); + ZEPHIR_CALL_FUNCTION(&_69$$19, "str_repeat", &_11, 127, &space, &_68$$19); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_70$$19); ZEPHIR_CONCAT_VS(&_70$$19, &_69$$19, "[already listed]\n"); @@ -62666,7 +61158,7 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { zephir_update_property_array_append(this_ptr, SL("_methods"), &_72$$21 TSRMLS_CC); if (ZEPHIR_IS_STRING(&value, "__construct")) { ZVAL_LONG(&_73$$22, (tab + 1)); - ZEPHIR_CALL_FUNCTION(&_74$$22, "str_repeat", &_11, 139, &space, &_73$$22); + ZEPHIR_CALL_FUNCTION(&_74$$22, "str_repeat", &_11, 127, &space, &_73$$22); zephir_check_call_status(); ZEPHIR_INIT_NVAR(&_75$$22); zephir_create_array(&_75$$22, 2, 0 TSRMLS_CC); @@ -62678,14 +61170,14 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { zephir_array_update_string(&_75$$22, SL(":method"), &value, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_NVAR(&_77$$22); ZVAL_STRING(&_77$$22, "->:method(); [constructor]\n"); - ZEPHIR_CALL_FUNCTION(&_76$$22, "strtr", &_5, 26, &_77$$22, &_75$$22); + ZEPHIR_CALL_FUNCTION(&_76$$22, "strtr", &_5, 21, &_77$$22, &_75$$22); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_78$$22); ZEPHIR_CONCAT_VV(&_78$$22, &_74$$22, &_76$$22); zephir_concat_self(&output, &_78$$22 TSRMLS_CC); } else { ZVAL_LONG(&_79$$23, (tab + 1)); - ZEPHIR_CALL_FUNCTION(&_80$$23, "str_repeat", &_11, 139, &space, &_79$$23); + ZEPHIR_CALL_FUNCTION(&_80$$23, "str_repeat", &_11, 127, &space, &_79$$23); zephir_check_call_status(); ZEPHIR_INIT_NVAR(&_81$$23); zephir_create_array(&_81$$23, 2, 0 TSRMLS_CC); @@ -62697,7 +61189,7 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { zephir_array_update_string(&_81$$23, SL(":method"), &value, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_NVAR(&_83$$23); ZVAL_STRING(&_83$$23, "->:method();\n"); - ZEPHIR_CALL_FUNCTION(&_82$$23, "strtr", &_5, 26, &_83$$23, &_81$$23); + ZEPHIR_CALL_FUNCTION(&_82$$23, "strtr", &_5, 21, &_83$$23, &_81$$23); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_84$$23); ZEPHIR_CONCAT_VV(&_84$$23, &_80$$23, &_82$$23); @@ -62706,14 +61198,14 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { } ZEND_HASH_FOREACH_END(); ZEPHIR_INIT_NVAR(&value); ZVAL_LONG(&_85$$20, tab); - ZEPHIR_CALL_FUNCTION(&_86$$20, "str_repeat", &_11, 139, &space, &_85$$20); + ZEPHIR_CALL_FUNCTION(&_86$$20, "str_repeat", &_11, 127, &space, &_85$$20); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_87$$20); ZEPHIR_CONCAT_VS(&_87$$20, &_86$$20, ")\n"); zephir_concat_self(&output, &_87$$20 TSRMLS_CC); } ZVAL_LONG(&_88$$8, (tab - 1)); - ZEPHIR_CALL_FUNCTION(&_89$$8, "str_repeat", &_11, 139, &space, &_88$$8); + ZEPHIR_CALL_FUNCTION(&_89$$8, "str_repeat", &_11, 127, &space, &_88$$8); zephir_check_call_status(); ZEPHIR_CONCAT_VVS(return_value, &output, &_89$$8, ")"); RETURN_MM(); @@ -62729,12 +61221,12 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { zephir_array_update_string(&_90$$24, SL(":var"), variable, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_NVAR(&_92$$24); ZVAL_STRING(&_92$$24, "Integer (:var)"); - ZEPHIR_CALL_FUNCTION(&_91$$24, "strtr", &_5, 26, &_92$$24, &_90$$24); + ZEPHIR_CALL_FUNCTION(&_91$$24, "strtr", &_5, 21, &_92$$24, &_90$$24); zephir_check_call_status(); ZEPHIR_CONCAT_VV(return_value, &output, &_91$$24); RETURN_MM(); } - ZEPHIR_CALL_FUNCTION(&_93, "is_float", NULL, 179, variable); + ZEPHIR_CALL_FUNCTION(&_93, "is_float", NULL, 162, variable); zephir_check_call_status(); if (zephir_is_true(&_93)) { ZEPHIR_INIT_VAR(&_94$$25); @@ -62747,7 +61239,7 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { zephir_array_update_string(&_94$$25, SL(":var"), variable, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_NVAR(&_96$$25); ZVAL_STRING(&_96$$25, "Float (:var)"); - ZEPHIR_CALL_FUNCTION(&_95$$25, "strtr", &_5, 26, &_96$$25, &_94$$25); + ZEPHIR_CALL_FUNCTION(&_95$$25, "strtr", &_5, 21, &_96$$25, &_94$$25); zephir_check_call_status(); ZEPHIR_CONCAT_VV(return_value, &output, &_95$$25); RETURN_MM(); @@ -62764,7 +61256,7 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { zephir_array_update_string(&_97$$26, SL(":var"), variable, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_NVAR(&_99$$26); ZVAL_STRING(&_99$$26, "Numeric string (:length) \":var\""); - ZEPHIR_CALL_FUNCTION(&_98$$26, "strtr", &_5, 26, &_99$$26, &_97$$26); + ZEPHIR_CALL_FUNCTION(&_98$$26, "strtr", &_5, 21, &_99$$26, &_97$$26); zephir_check_call_status(); ZEPHIR_CONCAT_VV(return_value, &output, &_98$$26); RETURN_MM(); @@ -62781,14 +61273,14 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { ZVAL_LONG(&_103$$27, 4); ZEPHIR_INIT_NVAR(&_102$$27); ZVAL_STRING(&_102$$27, "utf-8"); - ZEPHIR_CALL_FUNCTION(&_101$$27, "htmlentities", NULL, 158, variable, &_103$$27, &_102$$27); + ZEPHIR_CALL_FUNCTION(&_101$$27, "htmlentities", NULL, 145, variable, &_103$$27, &_102$$27); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_104$$27, "nl2br", NULL, 180, &_101$$27); + ZEPHIR_CALL_FUNCTION(&_104$$27, "nl2br", NULL, 163, &_101$$27); zephir_check_call_status(); zephir_array_update_string(&_100$$27, SL(":var"), &_104$$27, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_NVAR(&_102$$27); ZVAL_STRING(&_102$$27, "String (:length) \":var\""); - ZEPHIR_CALL_FUNCTION(&_104$$27, "strtr", &_5, 26, &_102$$27, &_100$$27); + ZEPHIR_CALL_FUNCTION(&_104$$27, "strtr", &_5, 21, &_102$$27, &_100$$27); zephir_check_call_status(); ZEPHIR_CONCAT_VV(return_value, &output, &_104$$27); RETURN_MM(); @@ -62812,7 +61304,7 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { zephir_array_update_string(&_105$$28, SL(":var"), &_108$$28, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_NVAR(&_107$$28); ZVAL_STRING(&_107$$28, "Boolean (:var)"); - ZEPHIR_CALL_FUNCTION(&_106$$28, "strtr", &_5, 26, &_107$$28, &_105$$28); + ZEPHIR_CALL_FUNCTION(&_106$$28, "strtr", &_5, 21, &_107$$28, &_105$$28); zephir_check_call_status(); ZEPHIR_CONCAT_VV(return_value, &output, &_106$$28); RETURN_MM(); @@ -62827,7 +61319,7 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { zephir_array_update_string(&_109$$29, SL(":style"), &_110$$29, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_NVAR(&_111$$29); ZVAL_STRING(&_111$$29, "NULL"); - ZEPHIR_CALL_FUNCTION(&_110$$29, "strtr", &_5, 26, &_111$$29, &_109$$29); + ZEPHIR_CALL_FUNCTION(&_110$$29, "strtr", &_5, 21, &_111$$29, &_109$$29); zephir_check_call_status(); ZEPHIR_CONCAT_VV(return_value, &output, &_110$$29); RETURN_MM(); @@ -62842,7 +61334,7 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { zephir_array_update_string(&_112, SL(":var"), variable, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_NVAR(&_114); ZVAL_STRING(&_114, "(:var)"); - ZEPHIR_CALL_FUNCTION(&_113, "strtr", &_5, 26, &_114, &_112); + ZEPHIR_CALL_FUNCTION(&_113, "strtr", &_5, 21, &_114, &_112); zephir_check_call_status(); ZEPHIR_CONCAT_VV(return_value, &output, &_113); RETURN_MM(); @@ -62886,7 +61378,7 @@ static PHP_METHOD(Phalcon_Debug_Dump, variable) { zephir_array_update_string(&_0, SL(":output"), &_1, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_NVAR(&_2); ZVAL_STRING(&_2, "
:output
"); - ZEPHIR_RETURN_CALL_FUNCTION("strtr", NULL, 26, &_2, &_0); + ZEPHIR_RETURN_CALL_FUNCTION("strtr", NULL, 21, &_2, &_0); zephir_check_call_status(); RETURN_MM(); @@ -62912,8 +61404,8 @@ static PHP_METHOD(Phalcon_Debug_Dump, variables) { ZEPHIR_INIT_VAR(&output); ZVAL_STRING(&output, ""); - ZEPHIR_CALL_FUNCTION(&_0, "func_get_args", NULL, 173); - zephir_check_call_status(); + ZEPHIR_INIT_VAR(&_0); + zephir_get_args(&_0); zephir_is_iterable(&_0, 0, "phalcon/debug/dump.zep", 315); ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&_0), _2, _3, _1) { @@ -63048,7 +61540,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZEPHIR_MM_GROW(); - ZEPHIR_CALL_PARENT(NULL, phalcon_di_factorydefault_ce, this_ptr, "__construct", &_0, 76); + ZEPHIR_CALL_PARENT(NULL, phalcon_di_factorydefault_ce, this_ptr, "__construct", &_0, 0); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_1); zephir_create_array(&_1, 21, 0 TSRMLS_CC); @@ -63059,7 +61551,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZEPHIR_INIT_VAR(&_4); ZVAL_STRING(&_4, "Phalcon\\Mvc\\Router"); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 67, &_3, &_4, &_5); + ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 61, &_3, &_4, &_5); zephir_check_call_status(); zephir_array_update_string(&_1, SL("router"), &_2, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_NVAR(&_2); @@ -63069,7 +61561,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZEPHIR_INIT_NVAR(&_4); ZVAL_STRING(&_4, "Phalcon\\Mvc\\Dispatcher"); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 67, &_3, &_4, &_5); + ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 61, &_3, &_4, &_5); zephir_check_call_status(); zephir_array_update_string(&_1, SL("dispatcher"), &_2, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_NVAR(&_2); @@ -63079,7 +61571,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZEPHIR_INIT_NVAR(&_4); ZVAL_STRING(&_4, "Phalcon\\Mvc\\Url"); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 67, &_3, &_4, &_5); + ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 61, &_3, &_4, &_5); zephir_check_call_status(); zephir_array_update_string(&_1, SL("url"), &_2, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_NVAR(&_2); @@ -63089,7 +61581,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZEPHIR_INIT_NVAR(&_4); ZVAL_STRING(&_4, "Phalcon\\Mvc\\Model\\Manager"); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 67, &_3, &_4, &_5); + ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 61, &_3, &_4, &_5); zephir_check_call_status(); zephir_array_update_string(&_1, SL("modelsManager"), &_2, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_NVAR(&_2); @@ -63099,7 +61591,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZEPHIR_INIT_NVAR(&_4); ZVAL_STRING(&_4, "Phalcon\\Mvc\\Model\\MetaData\\Memory"); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 67, &_3, &_4, &_5); + ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 61, &_3, &_4, &_5); zephir_check_call_status(); zephir_array_update_string(&_1, SL("modelsMetadata"), &_2, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_NVAR(&_2); @@ -63109,7 +61601,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZEPHIR_INIT_NVAR(&_4); ZVAL_STRING(&_4, "Phalcon\\Http\\Response"); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 67, &_3, &_4, &_5); + ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 61, &_3, &_4, &_5); zephir_check_call_status(); zephir_array_update_string(&_1, SL("response"), &_2, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_NVAR(&_2); @@ -63119,7 +61611,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZEPHIR_INIT_NVAR(&_4); ZVAL_STRING(&_4, "Phalcon\\Http\\Response\\Cookies"); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 67, &_3, &_4, &_5); + ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 61, &_3, &_4, &_5); zephir_check_call_status(); zephir_array_update_string(&_1, SL("cookies"), &_2, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_NVAR(&_2); @@ -63129,7 +61621,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZEPHIR_INIT_NVAR(&_4); ZVAL_STRING(&_4, "Phalcon\\Http\\Request"); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 67, &_3, &_4, &_5); + ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 61, &_3, &_4, &_5); zephir_check_call_status(); zephir_array_update_string(&_1, SL("request"), &_2, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_NVAR(&_2); @@ -63139,7 +61631,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZEPHIR_INIT_NVAR(&_4); ZVAL_STRING(&_4, "Phalcon\\Filter"); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 67, &_3, &_4, &_5); + ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 61, &_3, &_4, &_5); zephir_check_call_status(); zephir_array_update_string(&_1, SL("filter"), &_2, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_NVAR(&_2); @@ -63149,7 +61641,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZEPHIR_INIT_NVAR(&_4); ZVAL_STRING(&_4, "Phalcon\\Escaper"); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 67, &_3, &_4, &_5); + ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 61, &_3, &_4, &_5); zephir_check_call_status(); zephir_array_update_string(&_1, SL("escaper"), &_2, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_NVAR(&_2); @@ -63159,7 +61651,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZEPHIR_INIT_NVAR(&_4); ZVAL_STRING(&_4, "Phalcon\\Security"); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 67, &_3, &_4, &_5); + ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 61, &_3, &_4, &_5); zephir_check_call_status(); zephir_array_update_string(&_1, SL("security"), &_2, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_NVAR(&_2); @@ -63169,7 +61661,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZEPHIR_INIT_NVAR(&_4); ZVAL_STRING(&_4, "Phalcon\\Crypt"); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 67, &_3, &_4, &_5); + ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 61, &_3, &_4, &_5); zephir_check_call_status(); zephir_array_update_string(&_1, SL("crypt"), &_2, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_NVAR(&_2); @@ -63179,7 +61671,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZEPHIR_INIT_NVAR(&_4); ZVAL_STRING(&_4, "Phalcon\\Annotations\\Adapter\\Memory"); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 67, &_3, &_4, &_5); + ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 61, &_3, &_4, &_5); zephir_check_call_status(); zephir_array_update_string(&_1, SL("annotations"), &_2, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_NVAR(&_2); @@ -63189,7 +61681,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZEPHIR_INIT_NVAR(&_4); ZVAL_STRING(&_4, "Phalcon\\Flash\\Direct"); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 67, &_3, &_4, &_5); + ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 61, &_3, &_4, &_5); zephir_check_call_status(); zephir_array_update_string(&_1, SL("flash"), &_2, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_NVAR(&_2); @@ -63199,7 +61691,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZEPHIR_INIT_NVAR(&_4); ZVAL_STRING(&_4, "Phalcon\\Flash\\Session"); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 67, &_3, &_4, &_5); + ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 61, &_3, &_4, &_5); zephir_check_call_status(); zephir_array_update_string(&_1, SL("flashSession"), &_2, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_NVAR(&_2); @@ -63209,7 +61701,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZEPHIR_INIT_NVAR(&_4); ZVAL_STRING(&_4, "Phalcon\\Tag"); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 67, &_3, &_4, &_5); + ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 61, &_3, &_4, &_5); zephir_check_call_status(); zephir_array_update_string(&_1, SL("tag"), &_2, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_NVAR(&_2); @@ -63219,7 +61711,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZEPHIR_INIT_NVAR(&_4); ZVAL_STRING(&_4, "Phalcon\\Session\\Adapter\\Files"); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 67, &_3, &_4, &_5); + ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 61, &_3, &_4, &_5); zephir_check_call_status(); zephir_array_update_string(&_1, SL("session"), &_2, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_NVAR(&_2); @@ -63228,7 +61720,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZVAL_STRING(&_3, "sessionBag"); ZEPHIR_INIT_NVAR(&_4); ZVAL_STRING(&_4, "Phalcon\\Session\\Bag"); - ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 67, &_3, &_4); + ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 61, &_3, &_4); zephir_check_call_status(); zephir_array_update_string(&_1, SL("sessionBag"), &_2, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_NVAR(&_2); @@ -63238,7 +61730,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZEPHIR_INIT_NVAR(&_4); ZVAL_STRING(&_4, "Phalcon\\Events\\Manager"); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 67, &_3, &_4, &_5); + ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 61, &_3, &_4, &_5); zephir_check_call_status(); zephir_array_update_string(&_1, SL("eventsManager"), &_2, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_NVAR(&_2); @@ -63248,7 +61740,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZEPHIR_INIT_NVAR(&_4); ZVAL_STRING(&_4, "Phalcon\\Mvc\\Model\\Transaction\\Manager"); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 67, &_3, &_4, &_5); + ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 61, &_3, &_4, &_5); zephir_check_call_status(); zephir_array_update_string(&_1, SL("transactionManager"), &_2, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_NVAR(&_2); @@ -63258,7 +61750,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZEPHIR_INIT_NVAR(&_4); ZVAL_STRING(&_4, "Phalcon\\Assets\\Manager"); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 67, &_3, &_4, &_5); + ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 61, &_3, &_4, &_5); zephir_check_call_status(); zephir_array_update_string(&_1, SL("assets"), &_2, PH_COPY | PH_SEPARATE); zephir_update_property_zval(this_ptr, SL("_services"), &_1); @@ -63319,7 +61811,7 @@ static PHP_METHOD(Phalcon_Di_Injectable, getDI) { ZEPHIR_OBS_VAR(&dependencyInjector); zephir_read_property(&dependencyInjector, this_ptr, SL("_dependencyInjector"), PH_NOISY_CC); if (Z_TYPE_P(&dependencyInjector) != IS_OBJECT) { - ZEPHIR_CALL_CE_STATIC(&dependencyInjector, phalcon_di_ce, "getdefault", &_0, 1); + ZEPHIR_CALL_CE_STATIC(&dependencyInjector, phalcon_di_ce, "getdefault", &_0, 0); zephir_check_call_status(); } RETURN_CCTOR(dependencyInjector); @@ -63373,11 +61865,11 @@ static PHP_METHOD(Phalcon_Di_Injectable, __get) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &propertyName_param); - if (unlikely(Z_TYPE_P(propertyName_param) != IS_STRING && Z_TYPE_P(propertyName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(propertyName_param) != IS_STRING && Z_TYPE_P(propertyName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'propertyName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(propertyName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(propertyName_param) == IS_STRING)) { zephir_get_strval(&propertyName, propertyName_param); } else { ZEPHIR_INIT_VAR(&propertyName); @@ -63388,7 +61880,7 @@ static PHP_METHOD(Phalcon_Di_Injectable, __get) { zephir_read_property(&_0, this_ptr, SL("_dependencyInjector"), PH_NOISY_CC | PH_READONLY); ZEPHIR_CPY_WRT(&dependencyInjector, &_0); if (Z_TYPE_P(&dependencyInjector) != IS_OBJECT) { - ZEPHIR_CALL_CE_STATIC(&dependencyInjector, phalcon_di_ce, "getdefault", &_1, 1); + ZEPHIR_CALL_CE_STATIC(&dependencyInjector, phalcon_di_ce, "getdefault", &_1, 0); zephir_check_call_status(); if (Z_TYPE_P(&dependencyInjector) != IS_OBJECT) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_di_exception_ce, "A dependency injection object is required to access the application services", "phalcon/di/injectable.zep", 127); @@ -63423,7 +61915,7 @@ static PHP_METHOD(Phalcon_Di_Injectable, __get) { } ZEPHIR_INIT_VAR(&_6); ZEPHIR_CONCAT_SV(&_6, "Access to undefined property ", &propertyName); - ZEPHIR_CALL_FUNCTION(NULL, "trigger_error", NULL, 2, &_6); + ZEPHIR_CALL_FUNCTION(NULL, "trigger_error", NULL, 1, &_6); zephir_check_call_status(); RETURN_MM_NULL(); @@ -63495,11 +61987,11 @@ static PHP_METHOD(Phalcon_Di_Service, __construct) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 1, &name_param, &definition, &shared_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(&name, name_param); } else { ZEPHIR_INIT_VAR(&name); @@ -63701,7 +62193,7 @@ static PHP_METHOD(Phalcon_Di_Service, resolve) { ZEPHIR_CALL_METHOD(NULL, &builder, "__construct", NULL, 0); zephir_check_call_status(); } - ZEPHIR_CALL_METHOD(&instance, &builder, "build", NULL, 182, dependencyInjector, &definition, parameters); + ZEPHIR_CALL_METHOD(&instance, &builder, "build", NULL, 164, dependencyInjector, &definition, parameters); zephir_check_call_status(); } else { found = 0; @@ -63714,7 +62206,7 @@ static PHP_METHOD(Phalcon_Di_Service, resolve) { zephir_read_property(&_3$$22, this_ptr, SL("_name"), PH_NOISY_CC | PH_READONLY); ZEPHIR_INIT_VAR(&_4$$22); ZEPHIR_CONCAT_SVS(&_4$$22, "Service '", &_3$$22, "' cannot be resolved"); - ZEPHIR_CALL_METHOD(NULL, &_2$$22, "__construct", NULL, 9, &_4$$22); + ZEPHIR_CALL_METHOD(NULL, &_2$$22, "__construct", NULL, 4, &_4$$22); zephir_check_call_status(); zephir_throw_exception_debug(&_2$$22, "phalcon/di/service.zep", 208 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -63844,7 +62336,7 @@ static PHP_METHOD(Phalcon_Di_Service, __set_state) { return; } object_init_ex(return_value, phalcon_di_service_ce); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 67, &name, &definition, &shared); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 61, &name, &definition, &shared); zephir_check_call_status(); RETURN_MM(); @@ -63918,7 +62410,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault_Cli, __construct) { ZEPHIR_MM_GROW(); - ZEPHIR_CALL_PARENT(NULL, phalcon_di_factorydefault_cli_ce, this_ptr, "__construct", &_0, 181); + ZEPHIR_CALL_PARENT(NULL, phalcon_di_factorydefault_cli_ce, this_ptr, "__construct", &_0, 0); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_1); zephir_create_array(&_1, 10, 0 TSRMLS_CC); @@ -63929,7 +62421,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault_Cli, __construct) { ZEPHIR_INIT_VAR(&_4); ZVAL_STRING(&_4, "Phalcon\\Cli\\Router"); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 67, &_3, &_4, &_5); + ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 61, &_3, &_4, &_5); zephir_check_call_status(); zephir_array_update_string(&_1, SL("router"), &_2, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_NVAR(&_2); @@ -63939,7 +62431,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault_Cli, __construct) { ZEPHIR_INIT_NVAR(&_4); ZVAL_STRING(&_4, "Phalcon\\Cli\\Dispatcher"); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 67, &_3, &_4, &_5); + ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 61, &_3, &_4, &_5); zephir_check_call_status(); zephir_array_update_string(&_1, SL("dispatcher"), &_2, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_NVAR(&_2); @@ -63949,7 +62441,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault_Cli, __construct) { ZEPHIR_INIT_NVAR(&_4); ZVAL_STRING(&_4, "Phalcon\\Mvc\\Model\\Manager"); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 67, &_3, &_4, &_5); + ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 61, &_3, &_4, &_5); zephir_check_call_status(); zephir_array_update_string(&_1, SL("modelsManager"), &_2, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_NVAR(&_2); @@ -63959,7 +62451,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault_Cli, __construct) { ZEPHIR_INIT_NVAR(&_4); ZVAL_STRING(&_4, "Phalcon\\Mvc\\Model\\MetaData\\Memory"); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 67, &_3, &_4, &_5); + ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 61, &_3, &_4, &_5); zephir_check_call_status(); zephir_array_update_string(&_1, SL("modelsMetadata"), &_2, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_NVAR(&_2); @@ -63969,7 +62461,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault_Cli, __construct) { ZEPHIR_INIT_NVAR(&_4); ZVAL_STRING(&_4, "Phalcon\\Filter"); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 67, &_3, &_4, &_5); + ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 61, &_3, &_4, &_5); zephir_check_call_status(); zephir_array_update_string(&_1, SL("filter"), &_2, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_NVAR(&_2); @@ -63979,7 +62471,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault_Cli, __construct) { ZEPHIR_INIT_NVAR(&_4); ZVAL_STRING(&_4, "Phalcon\\Escaper"); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 67, &_3, &_4, &_5); + ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 61, &_3, &_4, &_5); zephir_check_call_status(); zephir_array_update_string(&_1, SL("escaper"), &_2, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_NVAR(&_2); @@ -63989,7 +62481,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault_Cli, __construct) { ZEPHIR_INIT_NVAR(&_4); ZVAL_STRING(&_4, "Phalcon\\Annotations\\Adapter\\Memory"); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 67, &_3, &_4, &_5); + ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 61, &_3, &_4, &_5); zephir_check_call_status(); zephir_array_update_string(&_1, SL("annotations"), &_2, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_NVAR(&_2); @@ -63999,7 +62491,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault_Cli, __construct) { ZEPHIR_INIT_NVAR(&_4); ZVAL_STRING(&_4, "Phalcon\\Security"); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 67, &_3, &_4, &_5); + ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 61, &_3, &_4, &_5); zephir_check_call_status(); zephir_array_update_string(&_1, SL("security"), &_2, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_NVAR(&_2); @@ -64009,7 +62501,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault_Cli, __construct) { ZEPHIR_INIT_NVAR(&_4); ZVAL_STRING(&_4, "Phalcon\\Events\\Manager"); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 67, &_3, &_4, &_5); + ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 61, &_3, &_4, &_5); zephir_check_call_status(); zephir_array_update_string(&_1, SL("eventsManager"), &_2, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_NVAR(&_2); @@ -64019,7 +62511,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault_Cli, __construct) { ZEPHIR_INIT_NVAR(&_4); ZVAL_STRING(&_4, "Phalcon\\Mvc\\Model\\Transaction\\Manager"); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 67, &_3, &_4, &_5); + ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 61, &_3, &_4, &_5); zephir_check_call_status(); zephir_array_update_string(&_1, SL("transactionManager"), &_2, PH_COPY | PH_SEPARATE); zephir_update_property_zval(this_ptr, SL("_services"), &_1); @@ -64090,7 +62582,7 @@ static PHP_METHOD(Phalcon_Di_Service_Builder, _buildParameter) { ZVAL_LONG(&_1$$3, position); ZEPHIR_INIT_VAR(&_2$$3); ZEPHIR_CONCAT_SVS(&_2$$3, "Argument at position ", &_1$$3, " must have a type"); - ZEPHIR_CALL_METHOD(NULL, &_0$$3, "__construct", NULL, 9, &_2$$3); + ZEPHIR_CALL_METHOD(NULL, &_0$$3, "__construct", NULL, 4, &_2$$3); zephir_check_call_status(); zephir_throw_exception_debug(&_0$$3, "phalcon/di/service/builder.zep", 49 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -64106,7 +62598,7 @@ static PHP_METHOD(Phalcon_Di_Service_Builder, _buildParameter) { ZVAL_LONG(&_4$$5, position); ZEPHIR_INIT_VAR(&_5$$5); ZEPHIR_CONCAT_SV(&_5$$5, "Service 'name' is required in parameter on position ", &_4$$5); - ZEPHIR_CALL_METHOD(NULL, &_3$$5, "__construct", NULL, 9, &_5$$5); + ZEPHIR_CALL_METHOD(NULL, &_3$$5, "__construct", NULL, 4, &_5$$5); zephir_check_call_status(); zephir_throw_exception_debug(&_3$$5, "phalcon/di/service/builder.zep", 59 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -64129,7 +62621,7 @@ static PHP_METHOD(Phalcon_Di_Service_Builder, _buildParameter) { ZVAL_LONG(&_7$$8, position); ZEPHIR_INIT_VAR(&_8$$8); ZEPHIR_CONCAT_SV(&_8$$8, "Service 'value' is required in parameter on position ", &_7$$8); - ZEPHIR_CALL_METHOD(NULL, &_6$$8, "__construct", NULL, 9, &_8$$8); + ZEPHIR_CALL_METHOD(NULL, &_6$$8, "__construct", NULL, 4, &_8$$8); zephir_check_call_status(); zephir_throw_exception_debug(&_6$$8, "phalcon/di/service/builder.zep", 71 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -64146,7 +62638,7 @@ static PHP_METHOD(Phalcon_Di_Service_Builder, _buildParameter) { ZVAL_LONG(&_10$$10, position); ZEPHIR_INIT_VAR(&_11$$10); ZEPHIR_CONCAT_SV(&_11$$10, "Service 'className' is required in parameter on position ", &_10$$10); - ZEPHIR_CALL_METHOD(NULL, &_9$$10, "__construct", NULL, 9, &_11$$10); + ZEPHIR_CALL_METHOD(NULL, &_9$$10, "__construct", NULL, 4, &_11$$10); zephir_check_call_status(); zephir_throw_exception_debug(&_9$$10, "phalcon/di/service/builder.zep", 81 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -64172,7 +62664,7 @@ static PHP_METHOD(Phalcon_Di_Service_Builder, _buildParameter) { ZVAL_LONG(&_13$$13, position); ZEPHIR_INIT_VAR(&_14$$13); ZEPHIR_CONCAT_SV(&_14$$13, "Unknown service type in parameter on position ", &_13$$13); - ZEPHIR_CALL_METHOD(NULL, &_12$$13, "__construct", NULL, 9, &_14$$13); + ZEPHIR_CALL_METHOD(NULL, &_12$$13, "__construct", NULL, 4, &_14$$13); zephir_check_call_status(); zephir_throw_exception_debug(&_12$$13, "phalcon/di/service/builder.zep", 104 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -64219,7 +62711,7 @@ static PHP_METHOD(Phalcon_Di_Service_Builder, _buildParameters) { } ZEPHIR_INIT_NVAR(&argument); ZVAL_COPY(&argument, _0); - ZEPHIR_CALL_METHOD(&_3$$3, this_ptr, "_buildparameter", &_4, 183, dependencyInjector, &position, &argument); + ZEPHIR_CALL_METHOD(&_3$$3, this_ptr, "_buildparameter", &_4, 165, dependencyInjector, &position, &argument); zephir_check_call_status(); zephir_array_append(&buildArguments, &_3$$3, PH_SEPARATE, "phalcon/di/service/builder.zep", 117); } ZEND_HASH_FOREACH_END(); @@ -64301,7 +62793,7 @@ static PHP_METHOD(Phalcon_Di_Service_Builder, build) { } else { ZEPHIR_OBS_VAR(&arguments); if (zephir_array_isset_string_fetch(&arguments, &definition, SL("arguments"), 0)) { - ZEPHIR_CALL_METHOD(&_0$$8, this_ptr, "_buildparameters", &_1, 184, dependencyInjector, &arguments); + ZEPHIR_CALL_METHOD(&_0$$8, this_ptr, "_buildparameters", &_1, 166, dependencyInjector, &arguments); zephir_check_call_status(); ZEPHIR_INIT_NVAR(&instance); ZEPHIR_LAST_CALL_STATUS = zephir_create_instance_params(&instance, &className, &_0$$8 TSRMLS_CC); @@ -64338,7 +62830,7 @@ static PHP_METHOD(Phalcon_Di_Service_Builder, build) { object_init_ex(&_5$$14, phalcon_di_exception_ce); ZEPHIR_INIT_LNVAR(_6$$14); ZEPHIR_CONCAT_SV(&_6$$14, "Method call must be an array on position ", &methodPosition); - ZEPHIR_CALL_METHOD(NULL, &_5$$14, "__construct", &_7, 9, &_6$$14); + ZEPHIR_CALL_METHOD(NULL, &_5$$14, "__construct", &_7, 4, &_6$$14); zephir_check_call_status(); zephir_throw_exception_debug(&_5$$14, "phalcon/di/service/builder.zep", 195 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -64350,7 +62842,7 @@ static PHP_METHOD(Phalcon_Di_Service_Builder, build) { object_init_ex(&_8$$15, phalcon_di_exception_ce); ZEPHIR_INIT_LNVAR(_9$$15); ZEPHIR_CONCAT_SV(&_9$$15, "The method name is required on position ", &methodPosition); - ZEPHIR_CALL_METHOD(NULL, &_8$$15, "__construct", &_7, 9, &_9$$15); + ZEPHIR_CALL_METHOD(NULL, &_8$$15, "__construct", &_7, 4, &_9$$15); zephir_check_call_status(); zephir_throw_exception_debug(&_8$$15, "phalcon/di/service/builder.zep", 202 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -64367,7 +62859,7 @@ static PHP_METHOD(Phalcon_Di_Service_Builder, build) { object_init_ex(&_10$$17, phalcon_di_exception_ce); ZEPHIR_INIT_LNVAR(_11$$17); ZEPHIR_CONCAT_SV(&_11$$17, "Call arguments must be an array ", &methodPosition); - ZEPHIR_CALL_METHOD(NULL, &_10$$17, "__construct", &_7, 9, &_11$$17); + ZEPHIR_CALL_METHOD(NULL, &_10$$17, "__construct", &_7, 4, &_11$$17); zephir_check_call_status(); zephir_throw_exception_debug(&_10$$17, "phalcon/di/service/builder.zep", 213 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -64375,7 +62867,7 @@ static PHP_METHOD(Phalcon_Di_Service_Builder, build) { } if (zephir_fast_count_int(&arguments TSRMLS_CC)) { ZEPHIR_INIT_NVAR(&_12$$18); - ZEPHIR_CALL_METHOD(&_13$$18, this_ptr, "_buildparameters", &_1, 184, dependencyInjector, &arguments); + ZEPHIR_CALL_METHOD(&_13$$18, this_ptr, "_buildparameters", &_1, 166, dependencyInjector, &arguments); zephir_check_call_status(); ZEPHIR_CALL_USER_FUNC_ARRAY(&_12$$18, &methodCall, &_13$$18); zephir_check_call_status(); @@ -64415,7 +62907,7 @@ static PHP_METHOD(Phalcon_Di_Service_Builder, build) { object_init_ex(&_18$$23, phalcon_di_exception_ce); ZEPHIR_INIT_LNVAR(_19$$23); ZEPHIR_CONCAT_SV(&_19$$23, "Property must be an array on position ", &propertyPosition); - ZEPHIR_CALL_METHOD(NULL, &_18$$23, "__construct", &_7, 9, &_19$$23); + ZEPHIR_CALL_METHOD(NULL, &_18$$23, "__construct", &_7, 4, &_19$$23); zephir_check_call_status(); zephir_throw_exception_debug(&_18$$23, "phalcon/di/service/builder.zep", 261 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -64427,7 +62919,7 @@ static PHP_METHOD(Phalcon_Di_Service_Builder, build) { object_init_ex(&_20$$24, phalcon_di_exception_ce); ZEPHIR_INIT_LNVAR(_21$$24); ZEPHIR_CONCAT_SV(&_21$$24, "The property name is required on position ", &propertyPosition); - ZEPHIR_CALL_METHOD(NULL, &_20$$24, "__construct", &_7, 9, &_21$$24); + ZEPHIR_CALL_METHOD(NULL, &_20$$24, "__construct", &_7, 4, &_21$$24); zephir_check_call_status(); zephir_throw_exception_debug(&_20$$24, "phalcon/di/service/builder.zep", 268 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -64439,13 +62931,13 @@ static PHP_METHOD(Phalcon_Di_Service_Builder, build) { object_init_ex(&_22$$25, phalcon_di_exception_ce); ZEPHIR_INIT_LNVAR(_23$$25); ZEPHIR_CONCAT_SV(&_23$$25, "The property value is required on position ", &propertyPosition); - ZEPHIR_CALL_METHOD(NULL, &_22$$25, "__construct", &_7, 9, &_23$$25); + ZEPHIR_CALL_METHOD(NULL, &_22$$25, "__construct", &_7, 4, &_23$$25); zephir_check_call_status(); zephir_throw_exception_debug(&_22$$25, "phalcon/di/service/builder.zep", 275 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } - ZEPHIR_CALL_METHOD(&_24$$22, this_ptr, "_buildparameter", &_25, 183, dependencyInjector, &propertyPosition, &propertyValue); + ZEPHIR_CALL_METHOD(&_24$$22, this_ptr, "_buildparameter", &_25, 165, dependencyInjector, &propertyPosition, &propertyValue); zephir_check_call_status(); zephir_update_property_zval_zval(&instance, &propertyName, &_24$$22 TSRMLS_CC); } ZEND_HASH_FOREACH_END(); @@ -64547,11 +63039,11 @@ static PHP_METHOD(Phalcon_Events_Event, __construct) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 2, &type_param, &source, &data, &cancelable_param); - if (unlikely(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'type' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(type_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(type_param) == IS_STRING)) { zephir_get_strval(&type, type_param); } else { ZEPHIR_INIT_VAR(&type); @@ -64616,11 +63108,11 @@ static PHP_METHOD(Phalcon_Events_Event, setType) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &type_param); - if (unlikely(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'type' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(type_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(type_param) == IS_STRING)) { zephir_get_strval(&type, type_param); } else { ZEPHIR_INIT_VAR(&type); @@ -64792,11 +63284,11 @@ static PHP_METHOD(Phalcon_Events_Manager, attach) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 1, &eventType_param, &handler, &priority_param); - if (unlikely(Z_TYPE_P(eventType_param) != IS_STRING && Z_TYPE_P(eventType_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(eventType_param) != IS_STRING && Z_TYPE_P(eventType_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'eventType' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(eventType_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(eventType_param) == IS_STRING)) { zephir_get_strval(&eventType, eventType_param); } else { ZEPHIR_INIT_VAR(&eventType); @@ -64805,7 +63297,7 @@ static PHP_METHOD(Phalcon_Events_Manager, attach) { if (!priority_param) { priority = 100; } else { - if (unlikely(Z_TYPE_P(priority_param) != IS_LONG)) { + if (UNEXPECTED(Z_TYPE_P(priority_param) != IS_LONG)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'priority' must be a int") TSRMLS_CC); RETURN_MM_NULL(); } @@ -64829,7 +63321,7 @@ static PHP_METHOD(Phalcon_Events_Manager, attach) { zephir_check_call_status(); } ZVAL_LONG(&_2$$5, 1); - ZEPHIR_CALL_METHOD(NULL, &priorityQueue, "setextractflags", NULL, 191, &_2$$5); + ZEPHIR_CALL_METHOD(NULL, &priorityQueue, "setextractflags", NULL, 173, &_2$$5); zephir_check_call_status(); zephir_update_property_array(this_ptr, SL("_events"), &eventType, &priorityQueue TSRMLS_CC); } else { @@ -64838,7 +63330,7 @@ static PHP_METHOD(Phalcon_Events_Manager, attach) { } if (Z_TYPE_P(&priorityQueue) == IS_OBJECT) { ZVAL_LONG(&_3$$7, priority); - ZEPHIR_CALL_METHOD(NULL, &priorityQueue, "insert", NULL, 192, handler, &_3$$7); + ZEPHIR_CALL_METHOD(NULL, &priorityQueue, "insert", NULL, 174, handler, &_3$$7); zephir_check_call_status(); } else { zephir_array_append(&priorityQueue, handler, PH_SEPARATE, "phalcon/events/manager.zep", 82); @@ -64873,11 +63365,11 @@ static PHP_METHOD(Phalcon_Events_Manager, detach) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &eventType_param, &handler); - if (unlikely(Z_TYPE_P(eventType_param) != IS_STRING && Z_TYPE_P(eventType_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(eventType_param) != IS_STRING && Z_TYPE_P(eventType_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'eventType' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(eventType_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(eventType_param) == IS_STRING)) { zephir_get_strval(&eventType, eventType_param); } else { ZEPHIR_INIT_VAR(&eventType); @@ -64900,7 +63392,7 @@ static PHP_METHOD(Phalcon_Events_Manager, detach) { zephir_check_call_status(); } ZVAL_LONG(&_1$$5, 1); - ZEPHIR_CALL_METHOD(NULL, &newPriorityQueue, "setextractflags", NULL, 191, &_1$$5); + ZEPHIR_CALL_METHOD(NULL, &newPriorityQueue, "setextractflags", NULL, 173, &_1$$5); zephir_check_call_status(); ZVAL_LONG(&_1$$5, 3); ZEPHIR_CALL_METHOD(NULL, &priorityQueue, "setextractflags", NULL, 0, &_1$$5); @@ -64921,13 +63413,13 @@ static PHP_METHOD(Phalcon_Events_Manager, detach) { if (!ZEPHIR_IS_IDENTICAL(&_5$$6, handler)) { zephir_array_fetch_string(&_6$$7, &data, SL("data"), PH_NOISY | PH_READONLY, "phalcon/events/manager.zep", 117 TSRMLS_CC); zephir_array_fetch_string(&_7$$7, &data, SL("priority"), PH_NOISY | PH_READONLY, "phalcon/events/manager.zep", 117 TSRMLS_CC); - ZEPHIR_CALL_METHOD(NULL, &newPriorityQueue, "insert", &_8, 192, &_6$$7, &_7$$7); + ZEPHIR_CALL_METHOD(NULL, &newPriorityQueue, "insert", &_8, 174, &_6$$7, &_7$$7); zephir_check_call_status(); } } zephir_update_property_array(this_ptr, SL("_events"), &eventType, &newPriorityQueue TSRMLS_CC); } else { - ZEPHIR_CALL_FUNCTION(&key, "array_search", NULL, 193, handler, &priorityQueue, &__$true); + ZEPHIR_CALL_FUNCTION(&key, "array_search", NULL, 175, handler, &priorityQueue, &__$true); zephir_check_call_status(); if (!ZEPHIR_IS_FALSE_IDENTICAL(&key)) { zephir_array_unset(&priorityQueue, &key, PH_SEPARATE); @@ -65028,11 +63520,11 @@ static PHP_METHOD(Phalcon_Events_Manager, detachAll) { ZEPHIR_INIT_VAR(&type); ZVAL_STRING(&type, ""); } else { - if (unlikely(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'type' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(type_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(type_param) == IS_STRING)) { zephir_get_strval(&type, type_param); } else { ZEPHIR_INIT_VAR(&type); @@ -65097,9 +63589,9 @@ static PHP_METHOD(Phalcon_Events_Manager, fireQueue) { zephir_get_class(&_1$$5, queue, 0 TSRMLS_CC); ZEPHIR_INIT_VAR(&_2$$5); ZVAL_STRING(&_2$$5, "Unexpected value type: expected object of type SplPriorityQueue, %s given"); - ZEPHIR_CALL_FUNCTION(&_3$$5, "sprintf", NULL, 194, &_2$$5, &_1$$5); + ZEPHIR_CALL_FUNCTION(&_3$$5, "sprintf", NULL, 176, &_2$$5, &_1$$5); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, &_0$$5, "__construct", NULL, 9, &_3$$5); + ZEPHIR_CALL_METHOD(NULL, &_0$$5, "__construct", NULL, 4, &_3$$5); zephir_check_call_status(); zephir_throw_exception_debug(&_0$$5, "phalcon/events/manager.zep", 210 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -65268,11 +63760,11 @@ static PHP_METHOD(Phalcon_Events_Manager, fire) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 2, &eventType_param, &source, &data, &cancelable_param); - if (unlikely(Z_TYPE_P(eventType_param) != IS_STRING && Z_TYPE_P(eventType_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(eventType_param) != IS_STRING && Z_TYPE_P(eventType_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'eventType' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(eventType_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(eventType_param) == IS_STRING)) { zephir_get_strval(&eventType, eventType_param); } else { ZEPHIR_INIT_VAR(&eventType); @@ -65299,7 +63791,7 @@ static PHP_METHOD(Phalcon_Events_Manager, fire) { object_init_ex(&_0$$4, phalcon_events_exception_ce); ZEPHIR_INIT_VAR(&_1$$4); ZEPHIR_CONCAT_SV(&_1$$4, "Invalid event type ", &eventType); - ZEPHIR_CALL_METHOD(NULL, &_0$$4, "__construct", NULL, 9, &_1$$4); + ZEPHIR_CALL_METHOD(NULL, &_0$$4, "__construct", NULL, 4, &_1$$4); zephir_check_call_status(); zephir_throw_exception_debug(&_0$$4, "phalcon/events/manager.zep", 387 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -65333,9 +63825,9 @@ static PHP_METHOD(Phalcon_Events_Manager, fire) { } else { ZVAL_BOOL(&_4$$7, 0); } - ZEPHIR_CALL_METHOD(NULL, &event, "__construct", &_5, 195, &eventName, source, data, &_4$$7); + ZEPHIR_CALL_METHOD(NULL, &event, "__construct", &_5, 177, &eventName, source, data, &_4$$7); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&status, this_ptr, "firequeue", &_6, 196, &fireEvents, &event); + ZEPHIR_CALL_METHOD(&status, this_ptr, "firequeue", &_6, 178, &fireEvents, &event); zephir_check_call_status(); } } @@ -65354,10 +63846,10 @@ static PHP_METHOD(Phalcon_Events_Manager, fire) { } else { ZVAL_BOOL(&_8$$10, 0); } - ZEPHIR_CALL_METHOD(NULL, &event, "__construct", &_5, 195, &eventName, source, data, &_8$$10); + ZEPHIR_CALL_METHOD(NULL, &event, "__construct", &_5, 177, &eventName, source, data, &_8$$10); zephir_check_call_status(); } - ZEPHIR_CALL_METHOD(&status, this_ptr, "firequeue", &_6, 196, &fireEvents, &event); + ZEPHIR_CALL_METHOD(&status, this_ptr, "firequeue", &_6, 178, &fireEvents, &event); zephir_check_call_status(); } } @@ -65377,11 +63869,11 @@ static PHP_METHOD(Phalcon_Events_Manager, hasListeners) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &type_param); - if (unlikely(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'type' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(type_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(type_param) == IS_STRING)) { zephir_get_strval(&type, type_param); } else { ZEPHIR_INIT_VAR(&type); @@ -65407,11 +63899,11 @@ static PHP_METHOD(Phalcon_Events_Manager, getListeners) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &type_param); - if (unlikely(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'type' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(type_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(type_param) == IS_STRING)) { zephir_get_strval(&type, type_param); } else { ZEPHIR_INIT_VAR(&type); @@ -65570,7 +64062,7 @@ static PHP_METHOD(Phalcon_Flash_Direct, output) { ZEPHIR_INIT_NVAR(&message); } if (remove) { - ZEPHIR_CALL_PARENT(NULL, phalcon_flash_direct_ce, this_ptr, "clear", &_1, 203); + ZEPHIR_CALL_PARENT(NULL, phalcon_flash_direct_ce, this_ptr, "clear", &_1, 0); zephir_check_call_status(); } ZEPHIR_MM_RESTORE(); @@ -65871,7 +64363,7 @@ static PHP_METHOD(Phalcon_Flash_Session, output) { ZEPHIR_INIT_NVAR(&message); ZEPHIR_INIT_NVAR(&type); } - ZEPHIR_CALL_PARENT(NULL, phalcon_flash_session_ce, this_ptr, "clear", &_5, 203); + ZEPHIR_CALL_PARENT(NULL, phalcon_flash_session_ce, this_ptr, "clear", &_5, 0); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -65891,7 +64383,7 @@ static PHP_METHOD(Phalcon_Flash_Session, clear) { ZVAL_BOOL(&_0, 1); ZEPHIR_CALL_METHOD(NULL, this_ptr, "_getsessionmessages", NULL, 0, &_0); zephir_check_call_status(); - ZEPHIR_CALL_PARENT(NULL, phalcon_flash_session_ce, this_ptr, "clear", &_1, 203); + ZEPHIR_CALL_PARENT(NULL, phalcon_flash_session_ce, this_ptr, "clear", &_1, 0); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -65964,7 +64456,7 @@ static PHP_METHOD(Phalcon_Forms_Element, __construct) { } ZEPHIR_INIT_VAR(&_0); object_init_ex(&_0, phalcon_validation_message_group_ce); - ZEPHIR_CALL_METHOD(NULL, &_0, "__construct", NULL, 3); + ZEPHIR_CALL_METHOD(NULL, &_0, "__construct", NULL, 2); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_messages"), &_0); ZEPHIR_MM_RESTORE(); @@ -66007,11 +64499,11 @@ static PHP_METHOD(Phalcon_Forms_Element, setName) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(&name, name_param); } else { ZEPHIR_INIT_VAR(&name); @@ -66486,7 +64978,7 @@ static PHP_METHOD(Phalcon_Forms_Element, label) { } ZEPHIR_INIT_VAR(&_1); ZVAL_STRING(&_1, "="); - ZEPHIR_CALL_FUNCTION(&_7, "version_compare", NULL, 250, &version, &_1, &_6); + ZEPHIR_CALL_FUNCTION(&_7, "version_compare", NULL, 218, &version, &_1, &_6); zephir_check_call_status(); if (!(zephir_is_true(&_7))) { ZEPHIR_INIT_VAR(&_8$$8); object_init_ex(&_8$$8, phalcon_image_exception_ce); ZEPHIR_INIT_VAR(&_9$$8); ZEPHIR_CONCAT_SV(&_9$$8, "Phalcon\\Image\\Adapter\\GD requires GD version '2.0.1' or greater, you have ", &version); - ZEPHIR_CALL_METHOD(NULL, &_8$$8, "__construct", NULL, 9, &_9$$8); + ZEPHIR_CALL_METHOD(NULL, &_8$$8, "__construct", NULL, 4, &_9$$8); zephir_check_call_status(); zephir_throw_exception_debug(&_8$$8, "phalcon/image/adapter/gd.zep", 52 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -75725,11 +74217,11 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, __construct) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &file_param, &width_param, &height_param); - if (unlikely(Z_TYPE_P(file_param) != IS_STRING && Z_TYPE_P(file_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(file_param) != IS_STRING && Z_TYPE_P(file_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'file' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(file_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(file_param) == IS_STRING)) { zephir_get_strval(&file, file_param); } else { ZEPHIR_INIT_VAR(&file); @@ -75756,11 +74248,11 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, __construct) { zephir_read_property(&_1, this_ptr, SL("_file"), PH_NOISY_CC | PH_READONLY); if ((zephir_file_exists(&_1 TSRMLS_CC) == SUCCESS)) { zephir_read_property(&_2$$4, this_ptr, SL("_file"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(&_3$$4, "realpath", NULL, 64, &_2$$4); + ZEPHIR_CALL_FUNCTION(&_3$$4, "realpath", NULL, 58, &_2$$4); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_realpath"), &_3$$4); zephir_read_property(&_4$$4, this_ptr, SL("_file"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(&imageinfo, "getimagesize", NULL, 251, &_4$$4); + ZEPHIR_CALL_FUNCTION(&imageinfo, "getimagesize", NULL, 219, &_4$$4); zephir_check_call_status(); if (zephir_is_true(&imageinfo)) { zephir_array_fetch_long(&_5$$5, &imageinfo, 0, PH_NOISY | PH_READONLY, "phalcon/image/adapter/gd.zep", 76 TSRMLS_CC); @@ -75776,35 +74268,35 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, __construct) { do { if (ZEPHIR_IS_LONG(&_9$$4, 1)) { zephir_read_property(&_10$$6, this_ptr, SL("_file"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(&_11$$6, "imagecreatefromgif", NULL, 252, &_10$$6); + ZEPHIR_CALL_FUNCTION(&_11$$6, "imagecreatefromgif", NULL, 220, &_10$$6); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_image"), &_11$$6); break; } if (ZEPHIR_IS_LONG(&_9$$4, 2)) { zephir_read_property(&_12$$7, this_ptr, SL("_file"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(&_13$$7, "imagecreatefromjpeg", NULL, 253, &_12$$7); + ZEPHIR_CALL_FUNCTION(&_13$$7, "imagecreatefromjpeg", NULL, 221, &_12$$7); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_image"), &_13$$7); break; } if (ZEPHIR_IS_LONG(&_9$$4, 3)) { zephir_read_property(&_14$$8, this_ptr, SL("_file"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(&_15$$8, "imagecreatefrompng", NULL, 254, &_14$$8); + ZEPHIR_CALL_FUNCTION(&_15$$8, "imagecreatefrompng", NULL, 222, &_14$$8); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_image"), &_15$$8); break; } if (ZEPHIR_IS_LONG(&_9$$4, 15)) { zephir_read_property(&_16$$9, this_ptr, SL("_file"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(&_17$$9, "imagecreatefromwbmp", NULL, 255, &_16$$9); + ZEPHIR_CALL_FUNCTION(&_17$$9, "imagecreatefromwbmp", NULL, 223, &_16$$9); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_image"), &_17$$9); break; } if (ZEPHIR_IS_LONG(&_9$$4, 16)) { zephir_read_property(&_18$$10, this_ptr, SL("_file"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(&_19$$10, "imagecreatefromxbm", NULL, 256, &_18$$10); + ZEPHIR_CALL_FUNCTION(&_19$$10, "imagecreatefromxbm", NULL, 224, &_18$$10); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_image"), &_19$$10); break; @@ -75816,7 +74308,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, __construct) { zephir_read_property(&_22$$12, this_ptr, SL("_mime"), PH_NOISY_CC | PH_READONLY); ZEPHIR_INIT_VAR(&_23$$12); ZEPHIR_CONCAT_SVS(&_23$$12, "Installed GD does not support ", &_22$$12, " images"); - ZEPHIR_CALL_METHOD(NULL, &_21$$12, "__construct", NULL, 9, &_23$$12); + ZEPHIR_CALL_METHOD(NULL, &_21$$12, "__construct", NULL, 4, &_23$$12); zephir_check_call_status(); zephir_throw_exception_debug(&_21$$12, "phalcon/image/adapter/gd.zep", 100 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -75829,7 +74321,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, __construct) { } while(0); zephir_read_property(&_24$$4, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", &_25, 257, &_24$$4, &__$true); + ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", &_25, 225, &_24$$4, &__$true); zephir_check_call_status(); } else { _26$$14 = !width; @@ -75842,7 +74334,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, __construct) { zephir_read_property(&_28$$15, this_ptr, SL("_file"), PH_NOISY_CC | PH_READONLY); ZEPHIR_INIT_VAR(&_29$$15); ZEPHIR_CONCAT_SV(&_29$$15, "Failed to create image from file ", &_28$$15); - ZEPHIR_CALL_METHOD(NULL, &_27$$15, "__construct", NULL, 9, &_29$$15); + ZEPHIR_CALL_METHOD(NULL, &_27$$15, "__construct", NULL, 4, &_29$$15); zephir_check_call_status(); zephir_throw_exception_debug(&_27$$15, "phalcon/image/adapter/gd.zep", 111 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -75850,14 +74342,14 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, __construct) { } ZVAL_LONG(&_30$$14, width); ZVAL_LONG(&_31$$14, height); - ZEPHIR_CALL_FUNCTION(&_32$$14, "imagecreatetruecolor", NULL, 258, &_30$$14, &_31$$14); + ZEPHIR_CALL_FUNCTION(&_32$$14, "imagecreatetruecolor", NULL, 226, &_30$$14, &_31$$14); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_image"), &_32$$14); zephir_read_property(&_30$$14, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(NULL, "imagealphablending", NULL, 259, &_30$$14, &__$true); + ZEPHIR_CALL_FUNCTION(NULL, "imagealphablending", NULL, 227, &_30$$14, &__$true); zephir_check_call_status(); zephir_read_property(&_31$$14, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", &_25, 257, &_31$$14, &__$true); + ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", &_25, 225, &_31$$14, &__$true); zephir_check_call_status(); zephir_read_property(&_33$$14, this_ptr, SL("_file"), PH_NOISY_CC | PH_READONLY); zephir_update_property_zval(this_ptr, SL("_realpath"), &_33$$14); @@ -75936,7 +74428,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _resize) { ZEPHIR_GET_CONSTANT(&_0, "PHP_VERSION"); ZEPHIR_INIT_VAR(&_1); ZVAL_STRING(&_1, "5.5.0"); - ZEPHIR_CALL_FUNCTION(&_2, "version_compare", NULL, 250, &_0, &_1); + ZEPHIR_CALL_FUNCTION(&_2, "version_compare", NULL, 218, &_0, &_1); zephir_check_call_status(); if (ZEPHIR_LT_LONG(&_2, 0)) { ZEPHIR_OBS_VAR(&pre_width); @@ -75978,11 +74470,11 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _resize) { ZVAL_LONG(&_14$$4, 0); ZVAL_LONG(&_15$$4, 0); ZVAL_LONG(&_16$$4, 0); - ZEPHIR_CALL_FUNCTION(&_17$$4, "imagecopyresized", NULL, 260, &image, &_10$$4, &_13$$4, &_14$$4, &_15$$4, &_16$$4, &pre_width, &pre_height, &_11$$4, &_12$$4); + ZEPHIR_CALL_FUNCTION(&_17$$4, "imagecopyresized", NULL, 228, &image, &_10$$4, &_13$$4, &_14$$4, &_15$$4, &_16$$4, &pre_width, &pre_height, &_11$$4, &_12$$4); zephir_check_call_status(); if (zephir_is_true(&_17$$4)) { zephir_read_property(&_18$$6, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", &_19, 261, &_18$$6); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", &_19, 229, &_18$$6); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_image"), &image); } @@ -75998,17 +74490,17 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _resize) { ZVAL_LONG(&_24$$3, 0); ZVAL_LONG(&_25$$3, width); ZVAL_LONG(&_26$$3, height); - ZEPHIR_CALL_FUNCTION(&_27$$3, "imagecopyresampled", NULL, 262, &image, &_20$$3, &_21$$3, &_22$$3, &_23$$3, &_24$$3, &_25$$3, &_26$$3, &pre_width, &pre_height); + ZEPHIR_CALL_FUNCTION(&_27$$3, "imagecopyresampled", NULL, 230, &image, &_20$$3, &_21$$3, &_22$$3, &_23$$3, &_24$$3, &_25$$3, &_26$$3, &pre_width, &pre_height); zephir_check_call_status(); if (zephir_is_true(&_27$$3)) { zephir_read_property(&_28$$7, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", &_19, 261, &_28$$7); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", &_19, 229, &_28$$7); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_image"), &image); - ZEPHIR_CALL_FUNCTION(&_29$$7, "imagesx", &_30, 263, &image); + ZEPHIR_CALL_FUNCTION(&_29$$7, "imagesx", &_30, 231, &image); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_width"), &_29$$7); - ZEPHIR_CALL_FUNCTION(&_31$$7, "imagesy", &_32, 264, &image); + ZEPHIR_CALL_FUNCTION(&_31$$7, "imagesy", &_32, 232, &image); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_height"), &_31$$7); } @@ -76016,16 +74508,16 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _resize) { zephir_read_property(&_33$$8, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); ZVAL_LONG(&_34$$8, width); ZVAL_LONG(&_35$$8, height); - ZEPHIR_CALL_FUNCTION(&image, "imagescale", NULL, 265, &_33$$8, &_34$$8, &_35$$8); + ZEPHIR_CALL_FUNCTION(&image, "imagescale", NULL, 233, &_33$$8, &_34$$8, &_35$$8); zephir_check_call_status(); zephir_read_property(&_34$$8, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", &_19, 261, &_34$$8); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", &_19, 229, &_34$$8); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_image"), &image); - ZEPHIR_CALL_FUNCTION(&_36$$8, "imagesx", &_30, 263, &image); + ZEPHIR_CALL_FUNCTION(&_36$$8, "imagesx", &_30, 231, &image); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_width"), &_36$$8); - ZEPHIR_CALL_FUNCTION(&_37$$8, "imagesy", &_32, 264, &image); + ZEPHIR_CALL_FUNCTION(&_37$$8, "imagesy", &_32, 232, &image); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_height"), &_37$$8); } @@ -76077,7 +74569,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _crop) { ZEPHIR_GET_CONSTANT(&_0, "PHP_VERSION"); ZEPHIR_INIT_VAR(&_1); ZVAL_STRING(&_1, "5.5.0"); - ZEPHIR_CALL_FUNCTION(&_2, "version_compare", NULL, 250, &_0, &_1); + ZEPHIR_CALL_FUNCTION(&_2, "version_compare", NULL, 218, &_0, &_1); zephir_check_call_status(); if (ZEPHIR_LT_LONG(&_2, 0)) { ZVAL_LONG(&_3$$3, width); @@ -76093,17 +74585,17 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _crop) { ZVAL_LONG(&_9$$3, height); ZVAL_LONG(&_10$$3, width); ZVAL_LONG(&_11$$3, height); - ZEPHIR_CALL_FUNCTION(&_12$$3, "imagecopyresampled", NULL, 262, &image, &_3$$3, &_4$$3, &_5$$3, &_6$$3, &_7$$3, &_8$$3, &_9$$3, &_10$$3, &_11$$3); + ZEPHIR_CALL_FUNCTION(&_12$$3, "imagecopyresampled", NULL, 230, &image, &_3$$3, &_4$$3, &_5$$3, &_6$$3, &_7$$3, &_8$$3, &_9$$3, &_10$$3, &_11$$3); zephir_check_call_status(); if (zephir_is_true(&_12$$3)) { zephir_read_property(&_13$$4, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", &_14, 261, &_13$$4); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", &_14, 229, &_13$$4); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_image"), &image); - ZEPHIR_CALL_FUNCTION(&_15$$4, "imagesx", &_16, 263, &image); + ZEPHIR_CALL_FUNCTION(&_15$$4, "imagesx", &_16, 231, &image); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_width"), &_15$$4); - ZEPHIR_CALL_FUNCTION(&_17$$4, "imagesy", &_18, 264, &image); + ZEPHIR_CALL_FUNCTION(&_17$$4, "imagesy", &_18, 232, &image); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_height"), &_17$$4); } @@ -76123,16 +74615,16 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _crop) { ZVAL_LONG(&_19$$5, height); zephir_array_update_string(&rect, SL("height"), &_19$$5, PH_COPY | PH_SEPARATE); zephir_read_property(&_20$$5, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(&image, "imagecrop", NULL, 266, &_20$$5, &rect); + ZEPHIR_CALL_FUNCTION(&image, "imagecrop", NULL, 234, &_20$$5, &rect); zephir_check_call_status(); zephir_read_property(&_21$$5, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", &_14, 261, &_21$$5); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", &_14, 229, &_21$$5); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_image"), &image); - ZEPHIR_CALL_FUNCTION(&_22$$5, "imagesx", &_16, 263, &image); + ZEPHIR_CALL_FUNCTION(&_22$$5, "imagesx", &_16, 231, &image); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_width"), &_22$$5); - ZEPHIR_CALL_FUNCTION(&_23$$5, "imagesy", &_18, 264, &image); + ZEPHIR_CALL_FUNCTION(&_23$$5, "imagesy", &_18, 232, &image); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_height"), &_23$$5); } @@ -76173,18 +74665,18 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _rotate) { ZVAL_LONG(&_2, 0); ZVAL_LONG(&_3, 0); ZVAL_LONG(&_4, 127); - ZEPHIR_CALL_FUNCTION(&transparent, "imagecolorallocatealpha", NULL, 267, &_0, &_1, &_2, &_3, &_4); + ZEPHIR_CALL_FUNCTION(&transparent, "imagecolorallocatealpha", NULL, 235, &_0, &_1, &_2, &_3, &_4); zephir_check_call_status(); zephir_read_property(&_1, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); ZVAL_LONG(&_2, (360 - degrees)); ZVAL_LONG(&_3, 1); - ZEPHIR_CALL_FUNCTION(&image, "imagerotate", NULL, 268, &_1, &_2, &transparent, &_3); + ZEPHIR_CALL_FUNCTION(&image, "imagerotate", NULL, 236, &_1, &_2, &transparent, &_3); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", NULL, 257, &image, &__$true); + ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", NULL, 225, &image, &__$true); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&width, "imagesx", NULL, 263, &image); + ZEPHIR_CALL_FUNCTION(&width, "imagesx", NULL, 231, &image); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&height, "imagesy", NULL, 264, &image); + ZEPHIR_CALL_FUNCTION(&height, "imagesy", NULL, 232, &image); zephir_check_call_status(); zephir_read_property(&_2, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); ZVAL_LONG(&_3, 0); @@ -76192,11 +74684,11 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _rotate) { ZVAL_LONG(&_5, 0); ZVAL_LONG(&_6, 0); ZVAL_LONG(&_7, 100); - ZEPHIR_CALL_FUNCTION(&_8, "imagecopymerge", NULL, 269, &_2, &image, &_3, &_4, &_5, &_6, &width, &height, &_7); + ZEPHIR_CALL_FUNCTION(&_8, "imagecopymerge", NULL, 237, &_2, &image, &_3, &_4, &_5, &_6, &width, &height, &_7); zephir_check_call_status(); if (zephir_is_true(&_8)) { zephir_read_property(&_9$$3, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 261, &_9$$3); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 229, &_9$$3); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_image"), &image); zephir_update_property_zval(this_ptr, SL("_width"), &width); @@ -76255,7 +74747,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _flip) { ZEPHIR_GET_CONSTANT(&_0, "PHP_VERSION"); ZEPHIR_INIT_VAR(&_1); ZVAL_STRING(&_1, "5.5.0"); - ZEPHIR_CALL_FUNCTION(&_2, "version_compare", NULL, 250, &_0, &_1); + ZEPHIR_CALL_FUNCTION(&_2, "version_compare", NULL, 218, &_0, &_1); zephir_check_call_status(); if (ZEPHIR_LT_LONG(&_2, 0)) { zephir_read_property(&_3$$3, this_ptr, SL("_width"), PH_NOISY_CC | PH_READONLY); @@ -76278,7 +74770,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _flip) { ZVAL_LONG(&_11$$5, ((zephir_get_numberval(&_7$$5) - x) - 1)); ZVAL_LONG(&_12$$5, 0); ZVAL_LONG(&_13$$5, 1); - ZEPHIR_CALL_FUNCTION(NULL, "imagecopy", &_14, 270, &image, &_6$$5, &_9$$5, &_10$$5, &_11$$5, &_12$$5, &_13$$5, &_8$$5); + ZEPHIR_CALL_FUNCTION(NULL, "imagecopy", &_14, 238, &image, &_6$$5, &_9$$5, &_10$$5, &_11$$5, &_12$$5, &_13$$5, &_8$$5); zephir_check_call_status(); } } else { @@ -76297,30 +74789,30 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _flip) { ZVAL_LONG(&_21$$7, 0); ZVAL_LONG(&_22$$7, ((zephir_get_numberval(&_17$$7) - x) - 1)); ZVAL_LONG(&_23$$7, 1); - ZEPHIR_CALL_FUNCTION(NULL, "imagecopy", &_14, 270, &image, &_16$$7, &_19$$7, &_20$$7, &_21$$7, &_22$$7, &_18$$7, &_23$$7); + ZEPHIR_CALL_FUNCTION(NULL, "imagecopy", &_14, 238, &image, &_16$$7, &_19$$7, &_20$$7, &_21$$7, &_22$$7, &_18$$7, &_23$$7); zephir_check_call_status(); } } zephir_read_property(&_24$$3, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 261, &_24$$3); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 229, &_24$$3); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_image"), &image); - ZEPHIR_CALL_FUNCTION(&_25$$3, "imagesx", NULL, 263, &image); + ZEPHIR_CALL_FUNCTION(&_25$$3, "imagesx", NULL, 231, &image); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_width"), &_25$$3); - ZEPHIR_CALL_FUNCTION(&_26$$3, "imagesy", NULL, 264, &image); + ZEPHIR_CALL_FUNCTION(&_26$$3, "imagesy", NULL, 232, &image); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_height"), &_26$$3); } else { if (direction == 11) { zephir_read_property(&_27$$9, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); ZVAL_LONG(&_28$$9, 1); - ZEPHIR_CALL_FUNCTION(NULL, "imageflip", &_29, 271, &_27$$9, &_28$$9); + ZEPHIR_CALL_FUNCTION(NULL, "imageflip", &_29, 239, &_27$$9, &_28$$9); zephir_check_call_status(); } else { zephir_read_property(&_30$$10, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); ZVAL_LONG(&_31$$10, 2); - ZEPHIR_CALL_FUNCTION(NULL, "imageflip", &_29, 271, &_30$$10, &_31$$10); + ZEPHIR_CALL_FUNCTION(NULL, "imageflip", &_29, 239, &_30$$10, &_31$$10); zephir_check_call_status(); } } @@ -76358,7 +74850,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _sharpen) { ZEPHIR_INIT_VAR(&_0); ZVAL_LONG(&_1, (-18 + ((amount * 0.08)))); - ZEPHIR_CALL_FUNCTION(&_2, "abs", NULL, 199, &_1); + ZEPHIR_CALL_FUNCTION(&_2, "abs", NULL, 181, &_1); zephir_check_call_status(); ZVAL_LONG(&_1, 2); zephir_round(&_0, &_2, &_1, NULL TSRMLS_CC); @@ -76404,15 +74896,15 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _sharpen) { zephir_read_property(&_5, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); ZVAL_LONG(&_6, (amount - 8)); ZVAL_LONG(&_7, 0); - ZEPHIR_CALL_FUNCTION(&_8, "imageconvolution", NULL, 272, &_5, &matrix, &_6, &_7); + ZEPHIR_CALL_FUNCTION(&_8, "imageconvolution", NULL, 240, &_5, &matrix, &_6, &_7); zephir_check_call_status(); if (zephir_is_true(&_8)) { zephir_read_property(&_9$$3, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(&_10$$3, "imagesx", NULL, 263, &_9$$3); + ZEPHIR_CALL_FUNCTION(&_10$$3, "imagesx", NULL, 231, &_9$$3); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_width"), &_10$$3); zephir_read_property(&_11$$3, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(&_12$$3, "imagesy", NULL, 264, &_11$$3); + ZEPHIR_CALL_FUNCTION(&_12$$3, "imagesy", NULL, 232, &_11$$3); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_height"), &_12$$3); } @@ -76469,7 +74961,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _reflection) { ZEPHIR_INIT_VAR(&_0); ZVAL_DOUBLE(&_1, ((zephir_safe_div_long_long((opacity * 127), 100 TSRMLS_CC)) - (double) (127))); - ZEPHIR_CALL_FUNCTION(&_2, "abs", NULL, 199, &_1); + ZEPHIR_CALL_FUNCTION(&_2, "abs", NULL, 181, &_1); zephir_check_call_status(); zephir_round(&_0, &_2, NULL, NULL TSRMLS_CC); opacity = zephir_get_intval(&_0); @@ -76490,7 +74982,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _reflection) { ZVAL_LONG(&_9, 0); ZVAL_LONG(&_10, 0); ZVAL_LONG(&_11, 0); - ZEPHIR_CALL_FUNCTION(NULL, "imagecopy", &_12, 270, &reflection, &_4, &_8, &_9, &_10, &_11, &_6, &_7); + ZEPHIR_CALL_FUNCTION(NULL, "imagecopy", &_12, 238, &reflection, &_4, &_8, &_9, &_10, &_11, &_6, &_7); zephir_check_call_status(); offset = 0; while (1) { @@ -76523,14 +75015,14 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _reflection) { ZVAL_LONG(&_24$$5, 0); ZVAL_LONG(&_25$$5, src_y); ZVAL_LONG(&_26$$5, 1); - ZEPHIR_CALL_FUNCTION(NULL, "imagecopy", &_12, 270, &line, &_20$$5, &_22$$5, &_23$$5, &_24$$5, &_25$$5, &_21$$5, &_26$$5); + ZEPHIR_CALL_FUNCTION(NULL, "imagecopy", &_12, 238, &line, &_20$$5, &_22$$5, &_23$$5, &_24$$5, &_25$$5, &_21$$5, &_26$$5); zephir_check_call_status(); ZVAL_LONG(&_22$$5, 4); ZVAL_LONG(&_23$$5, 0); ZVAL_LONG(&_24$$5, 0); ZVAL_LONG(&_25$$5, 0); ZVAL_LONG(&_26$$5, dst_opacity); - ZEPHIR_CALL_FUNCTION(NULL, "imagefilter", &_27, 273, &line, &_22$$5, &_23$$5, &_24$$5, &_25$$5, &_26$$5); + ZEPHIR_CALL_FUNCTION(NULL, "imagefilter", &_27, 241, &line, &_22$$5, &_23$$5, &_24$$5, &_25$$5, &_26$$5); zephir_check_call_status(); zephir_read_property(&_22$$5, this_ptr, SL("_width"), PH_NOISY_CC | PH_READONLY); ZVAL_LONG(&_23$$5, 0); @@ -76538,18 +75030,18 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _reflection) { ZVAL_LONG(&_25$$5, 0); ZVAL_LONG(&_26$$5, 0); ZVAL_LONG(&_28$$5, 1); - ZEPHIR_CALL_FUNCTION(NULL, "imagecopy", &_12, 270, &reflection, &line, &_23$$5, &_24$$5, &_25$$5, &_26$$5, &_22$$5, &_28$$5); + ZEPHIR_CALL_FUNCTION(NULL, "imagecopy", &_12, 238, &reflection, &line, &_23$$5, &_24$$5, &_25$$5, &_26$$5, &_22$$5, &_28$$5); zephir_check_call_status(); offset++; } zephir_read_property(&_8, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 261, &_8); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 229, &_8); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_image"), &reflection); - ZEPHIR_CALL_FUNCTION(&_29, "imagesx", NULL, 263, &reflection); + ZEPHIR_CALL_FUNCTION(&_29, "imagesx", NULL, 231, &reflection); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_width"), &_29); - ZEPHIR_CALL_FUNCTION(&_30, "imagesy", NULL, 264, &reflection); + ZEPHIR_CALL_FUNCTION(&_30, "imagesy", NULL, 232, &reflection); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_height"), &_30); ZEPHIR_MM_RESTORE(); @@ -76595,20 +75087,20 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _watermark) { ZEPHIR_CALL_METHOD(&_0, watermark, "render", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&overlay, "imagecreatefromstring", NULL, 274, &_0); + ZEPHIR_CALL_FUNCTION(&overlay, "imagecreatefromstring", NULL, 242, &_0); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", NULL, 257, &overlay, &__$true); + ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", NULL, 225, &overlay, &__$true); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_1, "imagesx", NULL, 263, &overlay); + ZEPHIR_CALL_FUNCTION(&_1, "imagesx", NULL, 231, &overlay); zephir_check_call_status(); width = zephir_get_intval(&_1); - ZEPHIR_CALL_FUNCTION(&_2, "imagesy", NULL, 264, &overlay); + ZEPHIR_CALL_FUNCTION(&_2, "imagesy", NULL, 232, &overlay); zephir_check_call_status(); height = zephir_get_intval(&_2); if (opacity < 100) { ZEPHIR_INIT_VAR(&_3$$3); ZVAL_DOUBLE(&_4$$3, ((zephir_safe_div_long_long((opacity * 127), 100 TSRMLS_CC)) - (double) (127))); - ZEPHIR_CALL_FUNCTION(&_5$$3, "abs", NULL, 199, &_4$$3); + ZEPHIR_CALL_FUNCTION(&_5$$3, "abs", NULL, 181, &_4$$3); zephir_check_call_status(); zephir_round(&_3$$3, &_5$$3, NULL, NULL TSRMLS_CC); opacity = zephir_get_intval(&_3$$3); @@ -76616,20 +75108,20 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _watermark) { ZVAL_LONG(&_6$$3, 127); ZVAL_LONG(&_7$$3, 127); ZVAL_LONG(&_8$$3, opacity); - ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", NULL, 267, &overlay, &_4$$3, &_6$$3, &_7$$3, &_8$$3); + ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", NULL, 235, &overlay, &_4$$3, &_6$$3, &_7$$3, &_8$$3); zephir_check_call_status(); ZVAL_LONG(&_4$$3, 3); - ZEPHIR_CALL_FUNCTION(NULL, "imagelayereffect", NULL, 275, &overlay, &_4$$3); + ZEPHIR_CALL_FUNCTION(NULL, "imagelayereffect", NULL, 243, &overlay, &_4$$3); zephir_check_call_status(); ZVAL_LONG(&_4$$3, 0); ZVAL_LONG(&_6$$3, 0); ZVAL_LONG(&_7$$3, width); ZVAL_LONG(&_8$$3, height); - ZEPHIR_CALL_FUNCTION(NULL, "imagefilledrectangle", NULL, 276, &overlay, &_4$$3, &_6$$3, &_7$$3, &_8$$3, &color); + ZEPHIR_CALL_FUNCTION(NULL, "imagefilledrectangle", NULL, 244, &overlay, &_4$$3, &_6$$3, &_7$$3, &_8$$3, &color); zephir_check_call_status(); } zephir_read_property(&_9, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(NULL, "imagealphablending", NULL, 259, &_9, &__$true); + ZEPHIR_CALL_FUNCTION(NULL, "imagealphablending", NULL, 227, &_9, &__$true); zephir_check_call_status(); zephir_read_property(&_10, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); ZVAL_LONG(&_11, offsetX); @@ -76638,10 +75130,10 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _watermark) { ZVAL_LONG(&_14, 0); ZVAL_LONG(&_15, width); ZVAL_LONG(&_16, height); - ZEPHIR_CALL_FUNCTION(&_17, "imagecopy", NULL, 270, &_10, &overlay, &_11, &_12, &_13, &_14, &_15, &_16); + ZEPHIR_CALL_FUNCTION(&_17, "imagecopy", NULL, 238, &_10, &overlay, &_11, &_12, &_13, &_14, &_15, &_16); zephir_check_call_status(); if (zephir_is_true(&_17)) { - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 261, &overlay); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 229, &overlay); zephir_check_call_status(); } ZEPHIR_MM_RESTORE(); @@ -76708,14 +75200,14 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _text) { s5 = 0; ZEPHIR_INIT_VAR(&_0); ZVAL_DOUBLE(&_1, ((zephir_safe_div_long_long((opacity * 127), 100 TSRMLS_CC)) - (double) (127))); - ZEPHIR_CALL_FUNCTION(&_2, "abs", &_3, 199, &_1); + ZEPHIR_CALL_FUNCTION(&_2, "abs", &_3, 181, &_1); zephir_check_call_status(); zephir_round(&_0, &_2, NULL, NULL TSRMLS_CC); opacity = zephir_get_intval(&_0); if (!(Z_TYPE_P(&fontfile) == IS_UNDEF) && Z_STRLEN_P(&fontfile)) { ZVAL_LONG(&_4$$3, size); ZVAL_LONG(&_5$$3, 0); - ZEPHIR_CALL_FUNCTION(&space, "imagettfbbox", NULL, 277, &_4$$3, &_5$$3, &fontfile, &text); + ZEPHIR_CALL_FUNCTION(&space, "imagettfbbox", NULL, 245, &_4$$3, &_5$$3, &fontfile, &text); zephir_check_call_status(); if (zephir_array_isset_long(&space, 0)) { ZEPHIR_OBS_VAR(&_6$$4); @@ -76748,11 +75240,11 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _text) { return; } ZVAL_LONG(&_4$$3, (s4 - s0)); - ZEPHIR_CALL_FUNCTION(&_13$$3, "abs", &_3, 199, &_4$$3); + ZEPHIR_CALL_FUNCTION(&_13$$3, "abs", &_3, 181, &_4$$3); zephir_check_call_status(); width = (zephir_get_numberval(&_13$$3) + 10); ZVAL_LONG(&_4$$3, (s5 - s1)); - ZEPHIR_CALL_FUNCTION(&_14$$3, "abs", &_3, 199, &_4$$3); + ZEPHIR_CALL_FUNCTION(&_14$$3, "abs", &_3, 181, &_4$$3); zephir_check_call_status(); height = (zephir_get_numberval(&_14$$3) + 10); if (offsetX < 0) { @@ -76768,7 +75260,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _text) { ZVAL_LONG(&_17$$3, g); ZVAL_LONG(&_18$$3, b); ZVAL_LONG(&_19$$3, opacity); - ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", &_20, 267, &_4$$3, &_5$$3, &_17$$3, &_18$$3, &_19$$3); + ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", &_20, 235, &_4$$3, &_5$$3, &_17$$3, &_18$$3, &_19$$3); zephir_check_call_status(); angle = 0; zephir_read_property(&_5$$3, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); @@ -76776,15 +75268,15 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _text) { ZVAL_LONG(&_18$$3, angle); ZVAL_LONG(&_19$$3, offsetX); ZVAL_LONG(&_21$$3, offsetY); - ZEPHIR_CALL_FUNCTION(NULL, "imagettftext", NULL, 278, &_5$$3, &_17$$3, &_18$$3, &_19$$3, &_21$$3, &color, &fontfile, &text); + ZEPHIR_CALL_FUNCTION(NULL, "imagettftext", NULL, 246, &_5$$3, &_17$$3, &_18$$3, &_19$$3, &_21$$3, &color, &fontfile, &text); zephir_check_call_status(); } else { ZVAL_LONG(&_22$$8, size); - ZEPHIR_CALL_FUNCTION(&_23$$8, "imagefontwidth", NULL, 279, &_22$$8); + ZEPHIR_CALL_FUNCTION(&_23$$8, "imagefontwidth", NULL, 247, &_22$$8); zephir_check_call_status(); width = (zephir_get_intval(&_23$$8) * zephir_fast_strlen_ev(&text)); ZVAL_LONG(&_22$$8, size); - ZEPHIR_CALL_FUNCTION(&_24$$8, "imagefontheight", NULL, 280, &_22$$8); + ZEPHIR_CALL_FUNCTION(&_24$$8, "imagefontheight", NULL, 248, &_22$$8); zephir_check_call_status(); height = zephir_get_intval(&_24$$8); if (offsetX < 0) { @@ -76800,13 +75292,13 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _text) { ZVAL_LONG(&_28$$8, g); ZVAL_LONG(&_29$$8, b); ZVAL_LONG(&_30$$8, opacity); - ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", &_20, 267, &_22$$8, &_27$$8, &_28$$8, &_29$$8, &_30$$8); + ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", &_20, 235, &_22$$8, &_27$$8, &_28$$8, &_29$$8, &_30$$8); zephir_check_call_status(); zephir_read_property(&_27$$8, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); ZVAL_LONG(&_28$$8, size); ZVAL_LONG(&_29$$8, offsetX); ZVAL_LONG(&_30$$8, offsetY); - ZEPHIR_CALL_FUNCTION(NULL, "imagestring", NULL, 281, &_27$$8, &_28$$8, &_29$$8, &_30$$8, &text, &color); + ZEPHIR_CALL_FUNCTION(NULL, "imagestring", NULL, 249, &_27$$8, &_28$$8, &_29$$8, &_30$$8, &text, &color); zephir_check_call_status(); } ZEPHIR_MM_RESTORE(); @@ -76865,32 +75357,32 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _mask) { ZEPHIR_CALL_METHOD(&_0, mask, "render", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&maskImage, "imagecreatefromstring", NULL, 274, &_0); + ZEPHIR_CALL_FUNCTION(&maskImage, "imagecreatefromstring", NULL, 242, &_0); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_1, "imagesx", NULL, 263, &maskImage); + ZEPHIR_CALL_FUNCTION(&_1, "imagesx", NULL, 231, &maskImage); zephir_check_call_status(); mask_width = zephir_get_intval(&_1); - ZEPHIR_CALL_FUNCTION(&_2, "imagesy", NULL, 264, &maskImage); + ZEPHIR_CALL_FUNCTION(&_2, "imagesy", NULL, 232, &maskImage); zephir_check_call_status(); mask_height = zephir_get_intval(&_2); alpha = 127; - ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", &_3, 257, &maskImage, &__$true); + ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", &_3, 225, &maskImage, &__$true); zephir_check_call_status(); zephir_read_property(&_4, this_ptr, SL("_width"), PH_NOISY_CC | PH_READONLY); zephir_read_property(&_5, this_ptr, SL("_height"), PH_NOISY_CC | PH_READONLY); ZEPHIR_CALL_METHOD(&newimage, this_ptr, "_create", NULL, 0, &_4, &_5); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", &_3, 257, &newimage, &__$true); + ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", &_3, 225, &newimage, &__$true); zephir_check_call_status(); ZVAL_LONG(&_6, 0); ZVAL_LONG(&_7, 0); ZVAL_LONG(&_8, 0); ZVAL_LONG(&_9, alpha); - ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", &_10, 267, &newimage, &_6, &_7, &_8, &_9); + ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", &_10, 235, &newimage, &_6, &_7, &_8, &_9); zephir_check_call_status(); ZVAL_LONG(&_6, 0); ZVAL_LONG(&_7, 0); - ZEPHIR_CALL_FUNCTION(NULL, "imagefill", NULL, 282, &newimage, &_6, &_7, &color); + ZEPHIR_CALL_FUNCTION(NULL, "imagefill", NULL, 250, &newimage, &_6, &_7, &color); zephir_check_call_status(); zephir_read_property(&_6, this_ptr, SL("_width"), PH_NOISY_CC | PH_READONLY); _11 = !ZEPHIR_IS_LONG(&_6, mask_width); @@ -76901,7 +75393,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _mask) { if (_11) { zephir_read_property(&_12$$3, this_ptr, SL("_width"), PH_NOISY_CC | PH_READONLY); zephir_read_property(&_13$$3, this_ptr, SL("_height"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(&tempImage, "imagecreatetruecolor", NULL, 258, &_12$$3, &_13$$3); + ZEPHIR_CALL_FUNCTION(&tempImage, "imagecreatetruecolor", NULL, 226, &_12$$3, &_13$$3); zephir_check_call_status(); zephir_read_property(&_14$$3, this_ptr, SL("_width"), PH_NOISY_CC | PH_READONLY); zephir_read_property(&_15$$3, this_ptr, SL("_height"), PH_NOISY_CC | PH_READONLY); @@ -76911,9 +75403,9 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _mask) { ZVAL_LONG(&_19$$3, 0); ZVAL_LONG(&_20$$3, mask_width); ZVAL_LONG(&_21$$3, mask_height); - ZEPHIR_CALL_FUNCTION(NULL, "imagecopyresampled", NULL, 262, &tempImage, &maskImage, &_16$$3, &_17$$3, &_18$$3, &_19$$3, &_14$$3, &_15$$3, &_20$$3, &_21$$3); + ZEPHIR_CALL_FUNCTION(NULL, "imagecopyresampled", NULL, 230, &tempImage, &maskImage, &_16$$3, &_17$$3, &_18$$3, &_19$$3, &_14$$3, &_15$$3, &_20$$3, &_21$$3); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", &_22, 261, &maskImage); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", &_22, 229, &maskImage); zephir_check_call_status(); ZEPHIR_CPY_WRT(&maskImage, &tempImage); } @@ -76931,9 +75423,9 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _mask) { } ZVAL_LONG(&_24$$5, x); ZVAL_LONG(&_25$$5, y); - ZEPHIR_CALL_FUNCTION(&index, "imagecolorat", &_26, 283, &maskImage, &_24$$5, &_25$$5); + ZEPHIR_CALL_FUNCTION(&index, "imagecolorat", &_26, 251, &maskImage, &_24$$5, &_25$$5); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&color, "imagecolorsforindex", &_27, 284, &maskImage, &index); + ZEPHIR_CALL_FUNCTION(&color, "imagecolorsforindex", &_27, 252, &maskImage, &index); zephir_check_call_status(); if (zephir_array_isset_string(&color, SL("red"))) { zephir_array_fetch_string(&_28$$6, &color, SL("red"), PH_NOISY | PH_READONLY, "phalcon/image/adapter/gd.zep", 430 TSRMLS_CC); @@ -76943,10 +75435,10 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _mask) { zephir_read_property(&_24$$5, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); ZVAL_LONG(&_25$$5, x); ZVAL_LONG(&_30$$5, y); - ZEPHIR_CALL_FUNCTION(&index, "imagecolorat", &_26, 283, &_24$$5, &_25$$5, &_30$$5); + ZEPHIR_CALL_FUNCTION(&index, "imagecolorat", &_26, 251, &_24$$5, &_25$$5, &_30$$5); zephir_check_call_status(); zephir_read_property(&_25$$5, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(&color, "imagecolorsforindex", &_27, 284, &_25$$5, &index); + ZEPHIR_CALL_FUNCTION(&color, "imagecolorsforindex", &_27, 252, &_25$$5, &index); zephir_check_call_status(); ZEPHIR_OBS_NVAR(&r); zephir_array_fetch_string(&r, &color, SL("red"), PH_NOISY, "phalcon/image/adapter/gd.zep", 435 TSRMLS_CC); @@ -76955,20 +75447,20 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _mask) { ZEPHIR_OBS_NVAR(&b); zephir_array_fetch_string(&b, &color, SL("blue"), PH_NOISY, "phalcon/image/adapter/gd.zep", 435 TSRMLS_CC); ZVAL_LONG(&_30$$5, alpha); - ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", &_10, 267, &newimage, &r, &g, &b, &_30$$5); + ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", &_10, 235, &newimage, &r, &g, &b, &_30$$5); zephir_check_call_status(); ZVAL_LONG(&_30$$5, x); ZVAL_LONG(&_31$$5, y); - ZEPHIR_CALL_FUNCTION(NULL, "imagesetpixel", &_32, 285, &newimage, &_30$$5, &_31$$5, &color); + ZEPHIR_CALL_FUNCTION(NULL, "imagesetpixel", &_32, 253, &newimage, &_30$$5, &_31$$5, &color); zephir_check_call_status(); y++; } x++; } zephir_read_property(&_9, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", &_22, 261, &_9); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", &_22, 229, &_9); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", &_22, 261, &maskImage); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", &_22, 229, &maskImage); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_image"), &newimage); ZEPHIR_MM_RESTORE(); @@ -77014,9 +75506,9 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _background) { ZVAL_LONG(&_3, g); ZVAL_LONG(&_4, b); ZVAL_LONG(&_5, opacity); - ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", NULL, 267, &background, &_2, &_3, &_4, &_5); + ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", NULL, 235, &background, &_2, &_3, &_4, &_5); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(NULL, "imagealphablending", NULL, 259, &background, &__$true); + ZEPHIR_CALL_FUNCTION(NULL, "imagealphablending", NULL, 227, &background, &__$true); zephir_check_call_status(); zephir_read_property(&_2, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); zephir_read_property(&_3, this_ptr, SL("_width"), PH_NOISY_CC | PH_READONLY); @@ -77025,11 +75517,11 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _background) { ZVAL_LONG(&_6, 0); ZVAL_LONG(&_7, 0); ZVAL_LONG(&_8, 0); - ZEPHIR_CALL_FUNCTION(&_9, "imagecopy", NULL, 270, &background, &_2, &_5, &_6, &_7, &_8, &_3, &_4); + ZEPHIR_CALL_FUNCTION(&_9, "imagecopy", NULL, 238, &background, &_2, &_5, &_6, &_7, &_8, &_3, &_4); zephir_check_call_status(); if (zephir_is_true(&_9)) { zephir_read_property(&_10$$3, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 261, &_10$$3); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 229, &_10$$3); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_image"), &background); } @@ -77060,7 +75552,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _blur) { } zephir_read_property(&_0$$3, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); ZVAL_LONG(&_1$$3, 7); - ZEPHIR_CALL_FUNCTION(NULL, "imagefilter", &_2, 273, &_0$$3, &_1$$3); + ZEPHIR_CALL_FUNCTION(NULL, "imagefilter", &_2, 241, &_0$$3, &_1$$3); zephir_check_call_status(); i++; } @@ -77108,7 +75600,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _pixelate) { zephir_read_property(&_2$$4, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); ZVAL_LONG(&_3$$4, x1); ZVAL_LONG(&_4$$4, y1); - ZEPHIR_CALL_FUNCTION(&color, "imagecolorat", &_5, 283, &_2$$4, &_3$$4, &_4$$4); + ZEPHIR_CALL_FUNCTION(&color, "imagecolorat", &_5, 251, &_2$$4, &_3$$4, &_4$$4); zephir_check_call_status(); x2 = (x + amount); y2 = (y + amount); @@ -77117,7 +75609,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _pixelate) { ZVAL_LONG(&_6$$4, y); ZVAL_LONG(&_7$$4, x2); ZVAL_LONG(&_8$$4, y2); - ZEPHIR_CALL_FUNCTION(NULL, "imagefilledrectangle", &_9, 276, &_3$$4, &_4$$4, &_6$$4, &_7$$4, &_8$$4, &color); + ZEPHIR_CALL_FUNCTION(NULL, "imagefilledrectangle", &_9, 244, &_3$$4, &_4$$4, &_6$$4, &_7$$4, &_8$$4, &color); zephir_check_call_status(); y += amount; } @@ -77175,11 +75667,11 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _save) { ZVAL_LONG(&_0, 4); - ZEPHIR_CALL_FUNCTION(&ext, "pathinfo", NULL, 73, &file, &_0); + ZEPHIR_CALL_FUNCTION(&ext, "pathinfo", NULL, 67, &file, &_0); zephir_check_call_status(); if (!(zephir_is_true(&ext))) { zephir_read_property(&_1$$3, this_ptr, SL("_type"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(&ext, "image_type_to_extension", NULL, 286, &_1$$3, &__$false); + ZEPHIR_CALL_FUNCTION(&ext, "image_type_to_extension", NULL, 254, &_1$$3, &__$false); zephir_check_call_status(); } ZEPHIR_INIT_VAR(&_2); @@ -77187,30 +75679,30 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _save) { ZEPHIR_CPY_WRT(&ext, &_2); ZEPHIR_INIT_NVAR(&_2); ZVAL_STRING(&_2, "gif"); - ZEPHIR_CALL_FUNCTION(&_3, "strcmp", &_4, 287, &ext, &_2); + ZEPHIR_CALL_FUNCTION(&_3, "strcmp", &_4, 255, &ext, &_2); zephir_check_call_status(); if (ZEPHIR_IS_LONG(&_3, 0)) { ZEPHIR_INIT_ZVAL_NREF(_5$$4); ZVAL_LONG(&_5$$4, 1); zephir_update_property_zval(this_ptr, SL("_type"), &_5$$4); zephir_read_property(&_5$$4, this_ptr, SL("_type"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(&_6$$4, "image_type_to_mime_type", &_7, 288, &_5$$4); + ZEPHIR_CALL_FUNCTION(&_6$$4, "image_type_to_mime_type", &_7, 256, &_5$$4); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_mime"), &_6$$4); zephir_read_property(&_8$$4, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(NULL, "imagegif", NULL, 289, &_8$$4, &file); + ZEPHIR_CALL_FUNCTION(NULL, "imagegif", NULL, 257, &_8$$4, &file); zephir_check_call_status(); RETURN_MM_BOOL(1); } ZEPHIR_INIT_NVAR(&_2); ZVAL_STRING(&_2, "jpg"); - ZEPHIR_CALL_FUNCTION(&_9, "strcmp", &_4, 287, &ext, &_2); + ZEPHIR_CALL_FUNCTION(&_9, "strcmp", &_4, 255, &ext, &_2); zephir_check_call_status(); _10 = ZEPHIR_IS_LONG(&_9, 0); if (!(_10)) { ZEPHIR_INIT_NVAR(&_2); ZVAL_STRING(&_2, "jpeg"); - ZEPHIR_CALL_FUNCTION(&_11, "strcmp", &_4, 287, &ext, &_2); + ZEPHIR_CALL_FUNCTION(&_11, "strcmp", &_4, 255, &ext, &_2); zephir_check_call_status(); _10 = ZEPHIR_IS_LONG(&_11, 0); } @@ -77219,7 +75711,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _save) { ZVAL_LONG(&_12$$5, 2); zephir_update_property_zval(this_ptr, SL("_type"), &_12$$5); zephir_read_property(&_12$$5, this_ptr, SL("_type"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(&_13$$5, "image_type_to_mime_type", &_7, 288, &_12$$5); + ZEPHIR_CALL_FUNCTION(&_13$$5, "image_type_to_mime_type", &_7, 256, &_12$$5); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_mime"), &_13$$5); if (quality >= 0) { @@ -77230,63 +75722,63 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _save) { } zephir_read_property(&_14$$6, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); ZVAL_LONG(&_15$$6, quality); - ZEPHIR_CALL_FUNCTION(NULL, "imagejpeg", &_16, 290, &_14$$6, &file, &_15$$6); + ZEPHIR_CALL_FUNCTION(NULL, "imagejpeg", &_16, 258, &_14$$6, &file, &_15$$6); zephir_check_call_status(); } else { zephir_read_property(&_17$$9, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(NULL, "imagejpeg", &_16, 290, &_17$$9, &file); + ZEPHIR_CALL_FUNCTION(NULL, "imagejpeg", &_16, 258, &_17$$9, &file); zephir_check_call_status(); } RETURN_MM_BOOL(1); } ZEPHIR_INIT_NVAR(&_2); ZVAL_STRING(&_2, "png"); - ZEPHIR_CALL_FUNCTION(&_18, "strcmp", &_4, 287, &ext, &_2); + ZEPHIR_CALL_FUNCTION(&_18, "strcmp", &_4, 255, &ext, &_2); zephir_check_call_status(); if (ZEPHIR_IS_LONG(&_18, 0)) { ZEPHIR_INIT_ZVAL_NREF(_19$$10); ZVAL_LONG(&_19$$10, 3); zephir_update_property_zval(this_ptr, SL("_type"), &_19$$10); zephir_read_property(&_19$$10, this_ptr, SL("_type"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(&_20$$10, "image_type_to_mime_type", &_7, 288, &_19$$10); + ZEPHIR_CALL_FUNCTION(&_20$$10, "image_type_to_mime_type", &_7, 256, &_19$$10); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_mime"), &_20$$10); zephir_read_property(&_21$$10, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(NULL, "imagepng", NULL, 291, &_21$$10, &file); + ZEPHIR_CALL_FUNCTION(NULL, "imagepng", NULL, 259, &_21$$10, &file); zephir_check_call_status(); RETURN_MM_BOOL(1); } ZEPHIR_INIT_NVAR(&_2); ZVAL_STRING(&_2, "wbmp"); - ZEPHIR_CALL_FUNCTION(&_22, "strcmp", &_4, 287, &ext, &_2); + ZEPHIR_CALL_FUNCTION(&_22, "strcmp", &_4, 255, &ext, &_2); zephir_check_call_status(); if (ZEPHIR_IS_LONG(&_22, 0)) { ZEPHIR_INIT_ZVAL_NREF(_23$$11); ZVAL_LONG(&_23$$11, 15); zephir_update_property_zval(this_ptr, SL("_type"), &_23$$11); zephir_read_property(&_23$$11, this_ptr, SL("_type"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(&_24$$11, "image_type_to_mime_type", &_7, 288, &_23$$11); + ZEPHIR_CALL_FUNCTION(&_24$$11, "image_type_to_mime_type", &_7, 256, &_23$$11); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_mime"), &_24$$11); zephir_read_property(&_25$$11, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(NULL, "imagewbmp", NULL, 292, &_25$$11, &file); + ZEPHIR_CALL_FUNCTION(NULL, "imagewbmp", NULL, 260, &_25$$11, &file); zephir_check_call_status(); RETURN_MM_BOOL(1); } ZEPHIR_INIT_NVAR(&_2); ZVAL_STRING(&_2, "xbm"); - ZEPHIR_CALL_FUNCTION(&_26, "strcmp", &_4, 287, &ext, &_2); + ZEPHIR_CALL_FUNCTION(&_26, "strcmp", &_4, 255, &ext, &_2); zephir_check_call_status(); if (ZEPHIR_IS_LONG(&_26, 0)) { ZEPHIR_INIT_ZVAL_NREF(_27$$12); ZVAL_LONG(&_27$$12, 16); zephir_update_property_zval(this_ptr, SL("_type"), &_27$$12); zephir_read_property(&_27$$12, this_ptr, SL("_type"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(&_28$$12, "image_type_to_mime_type", &_7, 288, &_27$$12); + ZEPHIR_CALL_FUNCTION(&_28$$12, "image_type_to_mime_type", &_7, 256, &_27$$12); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_mime"), &_28$$12); zephir_read_property(&_29$$12, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(NULL, "imagexbm", NULL, 293, &_29$$12, &file); + ZEPHIR_CALL_FUNCTION(NULL, "imagexbm", NULL, 261, &_29$$12, &file); zephir_check_call_status(); RETURN_MM_BOOL(1); } @@ -77294,7 +75786,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _save) { object_init_ex(&_2, phalcon_image_exception_ce); ZEPHIR_INIT_VAR(&_30); ZEPHIR_CONCAT_SVS(&_30, "Installed GD does not support '", &ext, "' images"); - ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", NULL, 9, &_30); + ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", NULL, 4, &_30); zephir_check_call_status(); zephir_throw_exception_debug(&_2, "phalcon/image/adapter/gd.zep", 554 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -77339,74 +75831,74 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _render) { ZEPHIR_INIT_VAR(&_0); zephir_fast_strtolower(&_0, &ext); zephir_get_strval(&ext, &_0); - ZEPHIR_CALL_FUNCTION(NULL, "ob_start", NULL, 126); + ZEPHIR_CALL_FUNCTION(NULL, "ob_start", NULL, 115); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_1); ZVAL_STRING(&_1, "gif"); - ZEPHIR_CALL_FUNCTION(&_2, "strcmp", &_3, 287, &ext, &_1); + ZEPHIR_CALL_FUNCTION(&_2, "strcmp", &_3, 255, &ext, &_1); zephir_check_call_status(); if (ZEPHIR_IS_LONG(&_2, 0)) { zephir_read_property(&_4$$3, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(NULL, "imagegif", NULL, 289, &_4$$3); + ZEPHIR_CALL_FUNCTION(NULL, "imagegif", NULL, 257, &_4$$3); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_FUNCTION("ob_get_clean", &_5, 294); + ZEPHIR_RETURN_CALL_FUNCTION("ob_get_clean", &_5, 262); zephir_check_call_status(); RETURN_MM(); } ZEPHIR_INIT_NVAR(&_1); ZVAL_STRING(&_1, "jpg"); - ZEPHIR_CALL_FUNCTION(&_6, "strcmp", &_3, 287, &ext, &_1); + ZEPHIR_CALL_FUNCTION(&_6, "strcmp", &_3, 255, &ext, &_1); zephir_check_call_status(); _7 = ZEPHIR_IS_LONG(&_6, 0); if (!(_7)) { ZEPHIR_INIT_NVAR(&_1); ZVAL_STRING(&_1, "jpeg"); - ZEPHIR_CALL_FUNCTION(&_8, "strcmp", &_3, 287, &ext, &_1); + ZEPHIR_CALL_FUNCTION(&_8, "strcmp", &_3, 255, &ext, &_1); zephir_check_call_status(); _7 = ZEPHIR_IS_LONG(&_8, 0); } if (_7) { zephir_read_property(&_9$$4, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); ZVAL_LONG(&_10$$4, quality); - ZEPHIR_CALL_FUNCTION(NULL, "imagejpeg", NULL, 290, &_9$$4, &__$null, &_10$$4); + ZEPHIR_CALL_FUNCTION(NULL, "imagejpeg", NULL, 258, &_9$$4, &__$null, &_10$$4); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_FUNCTION("ob_get_clean", &_5, 294); + ZEPHIR_RETURN_CALL_FUNCTION("ob_get_clean", &_5, 262); zephir_check_call_status(); RETURN_MM(); } ZEPHIR_INIT_NVAR(&_1); ZVAL_STRING(&_1, "png"); - ZEPHIR_CALL_FUNCTION(&_11, "strcmp", &_3, 287, &ext, &_1); + ZEPHIR_CALL_FUNCTION(&_11, "strcmp", &_3, 255, &ext, &_1); zephir_check_call_status(); if (ZEPHIR_IS_LONG(&_11, 0)) { zephir_read_property(&_12$$5, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(NULL, "imagepng", NULL, 291, &_12$$5); + ZEPHIR_CALL_FUNCTION(NULL, "imagepng", NULL, 259, &_12$$5); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_FUNCTION("ob_get_clean", &_5, 294); + ZEPHIR_RETURN_CALL_FUNCTION("ob_get_clean", &_5, 262); zephir_check_call_status(); RETURN_MM(); } ZEPHIR_INIT_NVAR(&_1); ZVAL_STRING(&_1, "wbmp"); - ZEPHIR_CALL_FUNCTION(&_13, "strcmp", &_3, 287, &ext, &_1); + ZEPHIR_CALL_FUNCTION(&_13, "strcmp", &_3, 255, &ext, &_1); zephir_check_call_status(); if (ZEPHIR_IS_LONG(&_13, 0)) { zephir_read_property(&_14$$6, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(NULL, "imagewbmp", NULL, 292, &_14$$6); + ZEPHIR_CALL_FUNCTION(NULL, "imagewbmp", NULL, 260, &_14$$6); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_FUNCTION("ob_get_clean", &_5, 294); + ZEPHIR_RETURN_CALL_FUNCTION("ob_get_clean", &_5, 262); zephir_check_call_status(); RETURN_MM(); } ZEPHIR_INIT_NVAR(&_1); ZVAL_STRING(&_1, "xbm"); - ZEPHIR_CALL_FUNCTION(&_15, "strcmp", &_3, 287, &ext, &_1); + ZEPHIR_CALL_FUNCTION(&_15, "strcmp", &_3, 255, &ext, &_1); zephir_check_call_status(); if (ZEPHIR_IS_LONG(&_15, 0)) { zephir_read_property(&_16$$7, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(NULL, "imagexbm", NULL, 293, &_16$$7, &__$null); + ZEPHIR_CALL_FUNCTION(NULL, "imagexbm", NULL, 261, &_16$$7, &__$null); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_FUNCTION("ob_get_clean", &_5, 294); + ZEPHIR_RETURN_CALL_FUNCTION("ob_get_clean", &_5, 262); zephir_check_call_status(); RETURN_MM(); } @@ -77414,7 +75906,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _render) { object_init_ex(&_1, phalcon_image_exception_ce); ZEPHIR_INIT_VAR(&_17); ZEPHIR_CONCAT_SVS(&_17, "Installed GD does not support '", &ext, "' images"); - ZEPHIR_CALL_METHOD(NULL, &_1, "__construct", NULL, 9, &_17); + ZEPHIR_CALL_METHOD(NULL, &_1, "__construct", NULL, 4, &_17); zephir_check_call_status(); zephir_throw_exception_debug(&_1, "phalcon/image/adapter/gd.zep", 582 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -77443,11 +75935,11 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _create) { ZVAL_LONG(&_0, width); ZVAL_LONG(&_1, height); - ZEPHIR_CALL_FUNCTION(&image, "imagecreatetruecolor", NULL, 258, &_0, &_1); + ZEPHIR_CALL_FUNCTION(&image, "imagecreatetruecolor", NULL, 226, &_0, &_1); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(NULL, "imagealphablending", NULL, 259, &image, &__$false); + ZEPHIR_CALL_FUNCTION(NULL, "imagealphablending", NULL, 227, &image, &__$false); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", NULL, 257, &image, &__$true); + ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", NULL, 225, &image, &__$true); zephir_check_call_status(); RETURN_CCTOR(image); @@ -77466,7 +75958,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, __destruct) { ZEPHIR_OBS_VAR(&image); zephir_read_property(&image, this_ptr, SL("_image"), PH_NOISY_CC); if (Z_TYPE_P(&image) == IS_RESOURCE) { - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 261, &image); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 229, &image); zephir_check_call_status(); } ZEPHIR_MM_RESTORE(); @@ -77524,12 +76016,12 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, check) { } ZEPHIR_INIT_VAR(&_2); ZVAL_STRING(&_2, "Imagick::IMAGICK_EXTNUM"); - ZEPHIR_CALL_FUNCTION(&_3, "defined", NULL, 239, &_2); + ZEPHIR_CALL_FUNCTION(&_3, "defined", NULL, 207, &_2); zephir_check_call_status(); if (zephir_is_true(&_3)) { ZEPHIR_INIT_VAR(&_4$$5); ZVAL_STRING(&_4$$5, "Imagick::IMAGICK_EXTNUM"); - ZEPHIR_CALL_FUNCTION(&_5$$5, "constant", NULL, 197, &_4$$5); + ZEPHIR_CALL_FUNCTION(&_5$$5, "constant", NULL, 179, &_4$$5); zephir_check_call_status(); zephir_update_static_property_ce(phalcon_image_adapter_imagick_ce, SL("_version"), &_5$$5); } @@ -77591,11 +76083,11 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, __construct) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &file_param, &width_param, &height_param); - if (unlikely(Z_TYPE_P(file_param) != IS_STRING && Z_TYPE_P(file_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(file_param) != IS_STRING && Z_TYPE_P(file_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'file' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(file_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(file_param) == IS_STRING)) { zephir_get_strval(&file, file_param); } else { ZEPHIR_INIT_VAR(&file); @@ -77621,13 +76113,15 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, __construct) { zephir_update_property_zval(this_ptr, SL("_file"), &file); ZEPHIR_INIT_VAR(&_1); object_init_ex(&_1, zephir_get_internal_ce(SL("imagick"))); - ZEPHIR_CALL_METHOD(NULL, &_1, "__construct", NULL, 0); - zephir_check_call_status(); + if (zephir_has_constructor(&_1 TSRMLS_CC)) { + ZEPHIR_CALL_METHOD(NULL, &_1, "__construct", NULL, 0); + zephir_check_call_status(); + } zephir_update_property_zval(this_ptr, SL("_image"), &_1); zephir_read_property(&_2, this_ptr, SL("_file"), PH_NOISY_CC | PH_READONLY); if ((zephir_file_exists(&_2 TSRMLS_CC) == SUCCESS)) { zephir_read_property(&_3$$4, this_ptr, SL("_file"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(&_4$$4, "realpath", NULL, 64, &_3$$4); + ZEPHIR_CALL_FUNCTION(&_4$$4, "realpath", NULL, 58, &_3$$4); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_realpath"), &_4$$4); zephir_read_property(&_5$$4, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); @@ -77640,7 +76134,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, __construct) { zephir_read_property(&_9$$5, this_ptr, SL("_file"), PH_NOISY_CC | PH_READONLY); ZEPHIR_INIT_VAR(&_10$$5); ZEPHIR_CONCAT_SVS(&_10$$5, "Imagick::readImage ", &_9$$5, " failed"); - ZEPHIR_CALL_METHOD(NULL, &_8$$5, "__construct", NULL, 9, &_10$$5); + ZEPHIR_CALL_METHOD(NULL, &_8$$5, "__construct", NULL, 4, &_10$$5); zephir_check_call_status(); zephir_throw_exception_debug(&_8$$5, "phalcon/image/adapter/imagick.zep", 86 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -77653,7 +76147,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, __construct) { zephir_read_property(&_13$$6, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); ZEPHIR_INIT_VAR(&_14$$6); ZVAL_STRING(&_14$$6, "Imagick::ALPHACHANNEL_SET"); - ZEPHIR_CALL_FUNCTION(&_15$$6, "constant", NULL, 197, &_14$$6); + ZEPHIR_CALL_FUNCTION(&_15$$6, "constant", NULL, 179, &_14$$6); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, &_13$$6, "setimagealphachannel", NULL, 0, &_15$$6); zephir_check_call_status(); @@ -77682,7 +76176,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, __construct) { zephir_read_property(&_22$$9, this_ptr, SL("_file"), PH_NOISY_CC | PH_READONLY); ZEPHIR_INIT_VAR(&_23$$9); ZEPHIR_CONCAT_SV(&_23$$9, "Failed to create image from file ", &_22$$9); - ZEPHIR_CALL_METHOD(NULL, &_21$$9, "__construct", NULL, 9, &_23$$9); + ZEPHIR_CALL_METHOD(NULL, &_21$$9, "__construct", NULL, 4, &_23$$9); zephir_check_call_status(); zephir_throw_exception_debug(&_21$$9, "phalcon/image/adapter/imagick.zep", 102 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -77691,10 +76185,12 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, __construct) { zephir_read_property(&_24$$8, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); ZEPHIR_INIT_VAR(&_25$$8); object_init_ex(&_25$$8, zephir_get_internal_ce(SL("imagickpixel"))); - ZEPHIR_INIT_VAR(&_26$$8); - ZVAL_STRING(&_26$$8, "transparent"); - ZEPHIR_CALL_METHOD(NULL, &_25$$8, "__construct", NULL, 0, &_26$$8); - zephir_check_call_status(); + if (zephir_has_constructor(&_25$$8 TSRMLS_CC)) { + ZEPHIR_INIT_VAR(&_26$$8); + ZVAL_STRING(&_26$$8, "transparent"); + ZEPHIR_CALL_METHOD(NULL, &_25$$8, "__construct", NULL, 0, &_26$$8); + zephir_check_call_status(); + } ZVAL_LONG(&_27$$8, width); ZVAL_LONG(&_28$$8, height); ZEPHIR_CALL_METHOD(NULL, &_24$$8, "newimage", NULL, 0, &_27$$8, &_28$$8, &_25$$8); @@ -77933,8 +76429,10 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _rotate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(&pixel); object_init_ex(&pixel, zephir_get_internal_ce(SL("imagickpixel"))); - ZEPHIR_CALL_METHOD(NULL, &pixel, "__construct", NULL, 0); - zephir_check_call_status(); + if (zephir_has_constructor(&pixel TSRMLS_CC)) { + ZEPHIR_CALL_METHOD(NULL, &pixel, "__construct", NULL, 0); + zephir_check_call_status(); + } while (1) { zephir_read_property(&_2$$3, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); ZVAL_LONG(&_3$$3, degrees); @@ -78180,8 +76678,10 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _reflection) { } ZEPHIR_INIT_VAR(&fade); object_init_ex(&fade, zephir_get_internal_ce(SL("imagick"))); - ZEPHIR_CALL_METHOD(NULL, &fade, "__construct", NULL, 0); - zephir_check_call_status(); + if (zephir_has_constructor(&fade TSRMLS_CC)) { + ZEPHIR_CALL_METHOD(NULL, &fade, "__construct", NULL, 0); + zephir_check_call_status(); + } ZEPHIR_CALL_METHOD(&_17, &reflection, "getimagewidth", NULL, 0); zephir_check_call_status(); ZEPHIR_CALL_METHOD(&_18, &reflection, "getimageheight", NULL, 0); @@ -78195,7 +76695,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _reflection) { while (1) { ZEPHIR_INIT_NVAR(&_19$$7); ZVAL_STRING(&_19$$7, "Imagick::COMPOSITE_DSTOUT"); - ZEPHIR_CALL_FUNCTION(&_20$$7, "constant", &_21, 197, &_19$$7); + ZEPHIR_CALL_FUNCTION(&_20$$7, "constant", &_21, 179, &_19$$7); zephir_check_call_status(); ZVAL_LONG(&_22$$7, 0); ZVAL_LONG(&_23$$7, 0); @@ -78207,11 +76707,11 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _reflection) { } ZEPHIR_INIT_NVAR(&_19$$7); ZVAL_STRING(&_19$$7, "Imagick::EVALUATE_MULTIPLY"); - ZEPHIR_CALL_FUNCTION(&_25$$7, "constant", &_21, 197, &_19$$7); + ZEPHIR_CALL_FUNCTION(&_25$$7, "constant", &_21, 179, &_19$$7); zephir_check_call_status(); ZEPHIR_INIT_NVAR(&_19$$7); ZVAL_STRING(&_19$$7, "Imagick::CHANNEL_ALPHA"); - ZEPHIR_CALL_FUNCTION(&_26$$7, "constant", &_21, 197, &_19$$7); + ZEPHIR_CALL_FUNCTION(&_26$$7, "constant", &_21, 179, &_19$$7); zephir_check_call_status(); ZVAL_LONG(&_22$$7, opacity); ZEPHIR_CALL_METHOD(NULL, &reflection, "evaluateimage", &_27, 0, &_25$$7, &_22$$7, &_26$$7); @@ -78226,12 +76726,16 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _reflection) { zephir_check_call_status(); ZEPHIR_INIT_VAR(&image); object_init_ex(&image, zephir_get_internal_ce(SL("imagick"))); - ZEPHIR_CALL_METHOD(NULL, &image, "__construct", NULL, 0); - zephir_check_call_status(); + if (zephir_has_constructor(&image TSRMLS_CC)) { + ZEPHIR_CALL_METHOD(NULL, &image, "__construct", NULL, 0); + zephir_check_call_status(); + } ZEPHIR_INIT_VAR(&pixel); object_init_ex(&pixel, zephir_get_internal_ce(SL("imagickpixel"))); - ZEPHIR_CALL_METHOD(NULL, &pixel, "__construct", NULL, 0); - zephir_check_call_status(); + if (zephir_has_constructor(&pixel TSRMLS_CC)) { + ZEPHIR_CALL_METHOD(NULL, &pixel, "__construct", NULL, 0); + zephir_check_call_status(); + } zephir_read_property(&_4, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); ZEPHIR_CALL_METHOD(&_30, &_4, "getimageheight", NULL, 0); zephir_check_call_status(); @@ -78247,7 +76751,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _reflection) { zephir_check_call_status(); ZEPHIR_INIT_NVAR(&_36$$10); ZVAL_STRING(&_36$$10, "Imagick::ALPHACHANNEL_SET"); - ZEPHIR_CALL_FUNCTION(&_37$$10, "constant", &_21, 197, &_36$$10); + ZEPHIR_CALL_FUNCTION(&_37$$10, "constant", &_21, 179, &_36$$10); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, &image, "setimagealphachannel", &_38, 0, &_37$$10); zephir_check_call_status(); @@ -78264,7 +76768,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _reflection) { zephir_read_property(&_44$$10, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); ZEPHIR_INIT_NVAR(&_36$$10); ZVAL_STRING(&_36$$10, "Imagick::COMPOSITE_SRC"); - ZEPHIR_CALL_FUNCTION(&_45$$10, "constant", &_21, 197, &_36$$10); + ZEPHIR_CALL_FUNCTION(&_45$$10, "constant", &_21, 179, &_36$$10); zephir_check_call_status(); ZVAL_LONG(&_46$$10, 0); ZVAL_LONG(&_47$$10, 0); @@ -78290,7 +76794,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _reflection) { while (1) { ZEPHIR_INIT_NVAR(&_50$$13); ZVAL_STRING(&_50$$13, "Imagick::COMPOSITE_OVER"); - ZEPHIR_CALL_FUNCTION(&_51$$13, "constant", &_21, 197, &_50$$13); + ZEPHIR_CALL_FUNCTION(&_51$$13, "constant", &_21, 179, &_50$$13); zephir_check_call_status(); zephir_read_property(&_52$$13, this_ptr, SL("_height"), PH_NOISY_CC | PH_READONLY); ZVAL_LONG(&_53$$13, 0); @@ -78335,10 +76839,9 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _reflection) { static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _watermark) { - zend_class_entry *_0$$3; - zephir_fcall_cache_entry *_8 = NULL; + zephir_fcall_cache_entry *_7 = NULL; int offsetX, offsetY, opacity, ZEPHIR_LAST_CALL_STATUS; - zval *image, image_sub, *offsetX_param = NULL, *offsetY_param = NULL, *opacity_param = NULL, watermark, ret, version, method, _2, _3, _4, _1$$3, _5$$5, _6$$5, _7$$5, _9$$5, _10$$5, _11$$5; + zval *image, image_sub, *offsetX_param = NULL, *offsetY_param = NULL, *opacity_param = NULL, watermark, ret, version, method, _1, _2, _3, _0$$3, _4$$5, _5$$5, _6$$5, _8$$5, _9$$5, _10$$5; ZEPHIR_INIT_THIS(); ZVAL_UNDEF(&image_sub); @@ -78346,16 +76849,16 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _watermark) { ZVAL_UNDEF(&ret); ZVAL_UNDEF(&version); ZVAL_UNDEF(&method); + ZVAL_UNDEF(&_1); ZVAL_UNDEF(&_2); ZVAL_UNDEF(&_3); - ZVAL_UNDEF(&_4); - ZVAL_UNDEF(&_1$$3); + ZVAL_UNDEF(&_0$$3); + ZVAL_UNDEF(&_4$$5); ZVAL_UNDEF(&_5$$5); ZVAL_UNDEF(&_6$$5); - ZVAL_UNDEF(&_7$$5); + ZVAL_UNDEF(&_8$$5); ZVAL_UNDEF(&_9$$5); ZVAL_UNDEF(&_10$$5); - ZVAL_UNDEF(&_11$$5); ZEPHIR_MM_GROW(); zephir_fetch_params(1, 4, 0, &image, &offsetX_param, &offsetY_param, &opacity_param); @@ -78368,49 +76871,50 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _watermark) { opacity = (long) (zephir_safe_div_long_long(opacity, 100 TSRMLS_CC)); ZEPHIR_INIT_VAR(&watermark); object_init_ex(&watermark, zephir_get_internal_ce(SL("imagick"))); - ZEPHIR_CALL_METHOD(NULL, &watermark, "__construct", NULL, 0); - zephir_check_call_status(); + if (zephir_has_constructor(&watermark TSRMLS_CC)) { + ZEPHIR_CALL_METHOD(NULL, &watermark, "__construct", NULL, 0); + zephir_check_call_status(); + } ZEPHIR_INIT_VAR(&method); ZVAL_STRING(&method, "setImageOpacity"); - if (likely((zephir_method_exists_ex(&watermark, SL("getversion") TSRMLS_CC) == SUCCESS))) { - _0$$3 = zephir_fetch_class_str_ex(SL("Imagick"), ZEND_FETCH_CLASS_AUTO); - ZEPHIR_CALL_CE_STATIC(&version, _0$$3, "getversion", NULL, 0); + if (EXPECTED((zephir_method_exists_ex(&watermark, SL("getversion") TSRMLS_CC) == SUCCESS))) { + ZEPHIR_CALL_METHOD(&version, &watermark, "getversion", NULL, 0); zephir_check_call_status(); - zephir_array_fetch_string(&_1$$3, &version, SL("versionNumber"), PH_NOISY | PH_READONLY, "phalcon/image/adapter/imagick.zep", 365 TSRMLS_CC); - if (ZEPHIR_GE_LONG(&_1$$3, 0x700)) { + zephir_array_fetch_string(&_0$$3, &version, SL("versionNumber"), PH_NOISY | PH_READONLY, "phalcon/image/adapter/imagick.zep", 365 TSRMLS_CC); + if (ZEPHIR_GE_LONG(&_0$$3, 0x700)) { ZEPHIR_INIT_NVAR(&method); ZVAL_STRING(&method, "setImageAlpha"); } } - ZEPHIR_CALL_METHOD(&_2, image, "render", NULL, 0); + ZEPHIR_CALL_METHOD(&_1, image, "render", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, &watermark, "readimageblob", NULL, 0, &_2); + ZEPHIR_CALL_METHOD(NULL, &watermark, "readimageblob", NULL, 0, &_1); zephir_check_call_status(); - ZVAL_LONG(&_3, opacity); - ZEPHIR_CALL_METHOD_ZVAL(NULL, &watermark, &method, NULL, 0, &_3); + ZVAL_LONG(&_2, opacity); + ZEPHIR_CALL_METHOD_ZVAL(NULL, &watermark, &method, NULL, 0, &_2); zephir_check_call_status(); - zephir_read_property(&_3, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); - ZVAL_LONG(&_4, 0); - ZEPHIR_CALL_METHOD(NULL, &_3, "setiteratorindex", NULL, 0, &_4); + zephir_read_property(&_2, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); + ZVAL_LONG(&_3, 0); + ZEPHIR_CALL_METHOD(NULL, &_2, "setiteratorindex", NULL, 0, &_3); zephir_check_call_status(); while (1) { - zephir_read_property(&_5$$5, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_INIT_NVAR(&_6$$5); - ZVAL_STRING(&_6$$5, "Imagick::COMPOSITE_OVER"); - ZEPHIR_CALL_FUNCTION(&_7$$5, "constant", &_8, 197, &_6$$5); + zephir_read_property(&_4$$5, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); + ZEPHIR_INIT_NVAR(&_5$$5); + ZVAL_STRING(&_5$$5, "Imagick::COMPOSITE_OVER"); + ZEPHIR_CALL_FUNCTION(&_6$$5, "constant", &_7, 179, &_5$$5); zephir_check_call_status(); - ZVAL_LONG(&_9$$5, offsetX); - ZVAL_LONG(&_10$$5, offsetY); - ZEPHIR_CALL_METHOD(&ret, &_5$$5, "compositeimage", NULL, 0, &watermark, &_7$$5, &_9$$5, &_10$$5); + ZVAL_LONG(&_8$$5, offsetX); + ZVAL_LONG(&_9$$5, offsetY); + ZEPHIR_CALL_METHOD(&ret, &_4$$5, "compositeimage", NULL, 0, &watermark, &_6$$5, &_8$$5, &_9$$5); zephir_check_call_status(); if (!ZEPHIR_IS_TRUE_IDENTICAL(&ret)) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_image_exception_ce, "Imagick::compositeImage failed", "phalcon/image/adapter/imagick.zep", 379); return; } - zephir_read_property(&_9$$5, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_METHOD(&_11$$5, &_9$$5, "nextimage", NULL, 0); + zephir_read_property(&_8$$5, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); + ZEPHIR_CALL_METHOD(&_10$$5, &_8$$5, "nextimage", NULL, 0); zephir_check_call_status(); - if (ZEPHIR_IS_FALSE_IDENTICAL(&_11$$5)) { + if (ZEPHIR_IS_FALSE_IDENTICAL(&_10$$5)) { break; } } @@ -78481,19 +76985,23 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _text) { opacity = (long) (zephir_safe_div_long_long(opacity, 100 TSRMLS_CC)); ZEPHIR_INIT_VAR(&draw); object_init_ex(&draw, zephir_get_internal_ce(SL("imagickdraw"))); - ZEPHIR_CALL_METHOD(NULL, &draw, "__construct", NULL, 0); - zephir_check_call_status(); + if (zephir_has_constructor(&draw TSRMLS_CC)) { + ZEPHIR_CALL_METHOD(NULL, &draw, "__construct", NULL, 0); + zephir_check_call_status(); + } ZEPHIR_INIT_VAR(&_0); ZVAL_STRING(&_0, "rgb(%d, %d, %d)"); ZVAL_LONG(&_1, r); ZVAL_LONG(&_2, g); ZVAL_LONG(&_3, b); - ZEPHIR_CALL_FUNCTION(&color, "sprintf", NULL, 194, &_0, &_1, &_2, &_3); + ZEPHIR_CALL_FUNCTION(&color, "sprintf", NULL, 176, &_0, &_1, &_2, &_3); zephir_check_call_status(); ZEPHIR_INIT_NVAR(&_0); object_init_ex(&_0, zephir_get_internal_ce(SL("imagickpixel"))); - ZEPHIR_CALL_METHOD(NULL, &_0, "__construct", NULL, 0, &color); - zephir_check_call_status(); + if (zephir_has_constructor(&_0 TSRMLS_CC)) { + ZEPHIR_CALL_METHOD(NULL, &_0, "__construct", NULL, 0, &color); + zephir_check_call_status(); + } ZEPHIR_CALL_METHOD(NULL, &draw, "setfillcolor", NULL, 0, &_0); zephir_check_call_status(); if (!(Z_TYPE_P(&fontfile) == IS_UNDEF) && Z_STRLEN_P(&fontfile)) { @@ -78525,24 +77033,24 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _text) { if (_6$$7) { ZEPHIR_INIT_VAR(&_7$$8); ZVAL_STRING(&_7$$8, "Imagick::GRAVITY_SOUTHEAST"); - ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_8, 197, &_7$$8); + ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_8, 179, &_7$$8); zephir_check_call_status(); } else { if (zephir_is_true(offsetX)) { ZEPHIR_INIT_VAR(&_9$$10); ZVAL_STRING(&_9$$10, "Imagick::GRAVITY_EAST"); - ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_8, 197, &_9$$10); + ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_8, 179, &_9$$10); zephir_check_call_status(); } else { if (zephir_is_true(offsetY)) { ZEPHIR_INIT_VAR(&_10$$12); ZVAL_STRING(&_10$$12, "Imagick::GRAVITY_SOUTH"); - ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_8, 197, &_10$$12); + ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_8, 179, &_10$$12); zephir_check_call_status(); } else { ZEPHIR_INIT_VAR(&_11$$13); ZVAL_STRING(&_11$$13, "Imagick::GRAVITY_CENTER"); - ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_8, 197, &_11$$13); + ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_8, 179, &_11$$13); zephir_check_call_status(); } } @@ -78558,13 +77066,13 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _text) { ZVAL_LONG(offsetY, (y * -1)); ZEPHIR_INIT_VAR(&_12$$17); ZVAL_STRING(&_12$$17, "Imagick::GRAVITY_SOUTHEAST"); - ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_8, 197, &_12$$17); + ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_8, 179, &_12$$17); zephir_check_call_status(); } else { ZVAL_LONG(offsetX, 0); ZEPHIR_INIT_VAR(&_13$$18); ZVAL_STRING(&_13$$18, "Imagick::GRAVITY_NORTHEAST"); - ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_8, 197, &_13$$18); + ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_8, 179, &_13$$18); zephir_check_call_status(); } } else { @@ -78575,13 +77083,13 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _text) { ZVAL_LONG(offsetY, (y * -1)); ZEPHIR_INIT_VAR(&_14$$20); ZVAL_STRING(&_14$$20, "Imagick::GRAVITY_SOUTH"); - ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_8, 197, &_14$$20); + ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_8, 179, &_14$$20); zephir_check_call_status(); } else { ZVAL_LONG(offsetX, 0); ZEPHIR_INIT_VAR(&_15$$21); ZVAL_STRING(&_15$$21, "Imagick::GRAVITY_NORTH"); - ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_8, 197, &_15$$21); + ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_8, 179, &_15$$21); zephir_check_call_status(); } } @@ -78600,13 +77108,13 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _text) { ZVAL_LONG(offsetY, 0); ZEPHIR_INIT_VAR(&_16$$27); ZVAL_STRING(&_16$$27, "Imagick::GRAVITY_SOUTHEAST"); - ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_8, 197, &_16$$27); + ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_8, 179, &_16$$27); zephir_check_call_status(); } else { ZVAL_LONG(offsetY, 0); ZEPHIR_INIT_VAR(&_17$$28); ZVAL_STRING(&_17$$28, "Imagick::GRAVITY_SOUTH"); - ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_8, 197, &_17$$28); + ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_8, 179, &_17$$28); zephir_check_call_status(); } } else { @@ -78617,13 +77125,13 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _text) { ZVAL_LONG(offsetY, 0); ZEPHIR_INIT_VAR(&_18$$30); ZVAL_STRING(&_18$$30, "Imagick::GRAVITY_EAST"); - ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_8, 197, &_18$$30); + ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_8, 179, &_18$$30); zephir_check_call_status(); } else { ZVAL_LONG(offsetY, 0); ZEPHIR_INIT_VAR(&_19$$31); ZVAL_STRING(&_19$$31, "Imagick::GRAVITY_WEST"); - ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_8, 197, &_19$$31); + ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_8, 179, &_19$$31); zephir_check_call_status(); } } @@ -78639,13 +77147,13 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _text) { ZVAL_LONG(offsetY, (y * -1)); ZEPHIR_INIT_VAR(&_20$$35); ZVAL_STRING(&_20$$35, "Imagick::GRAVITY_SOUTHEAST"); - ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_8, 197, &_20$$35); + ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_8, 179, &_20$$35); zephir_check_call_status(); } else { ZVAL_LONG(offsetX, (x * -1)); ZEPHIR_INIT_VAR(&_21$$36); ZVAL_STRING(&_21$$36, "Imagick::GRAVITY_NORTHEAST"); - ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_8, 197, &_21$$36); + ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_8, 179, &_21$$36); zephir_check_call_status(); } } else { @@ -78656,13 +77164,13 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _text) { ZVAL_LONG(offsetY, (y * -1)); ZEPHIR_INIT_VAR(&_22$$38); ZVAL_STRING(&_22$$38, "Imagick::GRAVITY_SOUTHWEST"); - ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_8, 197, &_22$$38); + ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_8, 179, &_22$$38); zephir_check_call_status(); } else { ZVAL_LONG(offsetX, 0); ZEPHIR_INIT_VAR(&_23$$39); ZVAL_STRING(&_23$$39, "Imagick::GRAVITY_NORTHWEST"); - ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_8, 197, &_23$$39); + ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_8, 179, &_23$$39); zephir_check_call_status(); } } @@ -78723,8 +77231,10 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _mask) { ZEPHIR_INIT_VAR(&mask); object_init_ex(&mask, zephir_get_internal_ce(SL("imagick"))); - ZEPHIR_CALL_METHOD(NULL, &mask, "__construct", NULL, 0); - zephir_check_call_status(); + if (zephir_has_constructor(&mask TSRMLS_CC)) { + ZEPHIR_CALL_METHOD(NULL, &mask, "__construct", NULL, 0); + zephir_check_call_status(); + } ZEPHIR_CALL_METHOD(&_0, image, "render", NULL, 0); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, &mask, "readimageblob", NULL, 0, &_0); @@ -78741,7 +77251,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _mask) { zephir_read_property(&_4$$3, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); ZEPHIR_INIT_NVAR(&_5$$3); ZVAL_STRING(&_5$$3, "Imagick::COMPOSITE_DSTIN"); - ZEPHIR_CALL_FUNCTION(&_6$$3, "constant", &_7, 197, &_5$$3); + ZEPHIR_CALL_FUNCTION(&_6$$3, "constant", &_7, 179, &_5$$3); zephir_check_call_status(); ZVAL_LONG(&_8$$3, 0); ZVAL_LONG(&_9$$3, 0); @@ -78812,23 +77322,29 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _background) { ZVAL_LONG(&_1, r); ZVAL_LONG(&_2, g); ZVAL_LONG(&_3, b); - ZEPHIR_CALL_FUNCTION(&color, "sprintf", NULL, 194, &_0, &_1, &_2, &_3); + ZEPHIR_CALL_FUNCTION(&color, "sprintf", NULL, 176, &_0, &_1, &_2, &_3); zephir_check_call_status(); ZEPHIR_INIT_VAR(&pixel1); object_init_ex(&pixel1, zephir_get_internal_ce(SL("imagickpixel"))); - ZEPHIR_CALL_METHOD(NULL, &pixel1, "__construct", NULL, 0, &color); - zephir_check_call_status(); + if (zephir_has_constructor(&pixel1 TSRMLS_CC)) { + ZEPHIR_CALL_METHOD(NULL, &pixel1, "__construct", NULL, 0, &color); + zephir_check_call_status(); + } opacity = (long) (zephir_safe_div_long_long(opacity, 100 TSRMLS_CC)); ZEPHIR_INIT_VAR(&pixel2); object_init_ex(&pixel2, zephir_get_internal_ce(SL("imagickpixel"))); - ZEPHIR_INIT_NVAR(&_0); - ZVAL_STRING(&_0, "transparent"); - ZEPHIR_CALL_METHOD(NULL, &pixel2, "__construct", NULL, 0, &_0); - zephir_check_call_status(); + if (zephir_has_constructor(&pixel2 TSRMLS_CC)) { + ZEPHIR_INIT_NVAR(&_0); + ZVAL_STRING(&_0, "transparent"); + ZEPHIR_CALL_METHOD(NULL, &pixel2, "__construct", NULL, 0, &_0); + zephir_check_call_status(); + } ZEPHIR_INIT_VAR(&background); object_init_ex(&background, zephir_get_internal_ce(SL("imagick"))); - ZEPHIR_CALL_METHOD(NULL, &background, "__construct", NULL, 0); - zephir_check_call_status(); + if (zephir_has_constructor(&background TSRMLS_CC)) { + ZEPHIR_CALL_METHOD(NULL, &background, "__construct", NULL, 0); + zephir_check_call_status(); + } zephir_read_property(&_1, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); ZVAL_LONG(&_2, 0); ZEPHIR_CALL_METHOD(NULL, &_1, "setiteratorindex", NULL, 0, &_2); @@ -78843,7 +77359,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _background) { if (!(zephir_is_true(&_7$$3))) { ZEPHIR_INIT_NVAR(&_9$$4); ZVAL_STRING(&_9$$4, "Imagick::ALPHACHANNEL_SET"); - ZEPHIR_CALL_FUNCTION(&_10$$4, "constant", &_11, 197, &_9$$4); + ZEPHIR_CALL_FUNCTION(&_10$$4, "constant", &_11, 179, &_9$$4); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, &background, "setimagealphachannel", &_12, 0, &_10$$4); zephir_check_call_status(); @@ -78852,11 +77368,11 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _background) { zephir_check_call_status(); ZEPHIR_INIT_NVAR(&_14$$3); ZVAL_STRING(&_14$$3, "Imagick::EVALUATE_MULTIPLY"); - ZEPHIR_CALL_FUNCTION(&_15$$3, "constant", &_11, 197, &_14$$3); + ZEPHIR_CALL_FUNCTION(&_15$$3, "constant", &_11, 179, &_14$$3); zephir_check_call_status(); ZEPHIR_INIT_NVAR(&_14$$3); ZVAL_STRING(&_14$$3, "Imagick::CHANNEL_ALPHA"); - ZEPHIR_CALL_FUNCTION(&_16$$3, "constant", &_11, 197, &_14$$3); + ZEPHIR_CALL_FUNCTION(&_16$$3, "constant", &_11, 179, &_14$$3); zephir_check_call_status(); ZVAL_LONG(&_17$$3, opacity); ZEPHIR_CALL_METHOD(NULL, &background, "evaluateimage", &_18, 0, &_15$$3, &_17$$3, &_16$$3); @@ -78869,7 +77385,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _background) { zephir_read_property(&_21$$3, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); ZEPHIR_INIT_NVAR(&_14$$3); ZVAL_STRING(&_14$$3, "Imagick::COMPOSITE_DISSOLVE"); - ZEPHIR_CALL_FUNCTION(&_22$$3, "constant", &_11, 197, &_14$$3); + ZEPHIR_CALL_FUNCTION(&_22$$3, "constant", &_11, 179, &_14$$3); zephir_check_call_status(); ZVAL_LONG(&_23$$3, 0); ZVAL_LONG(&_24$$3, 0); @@ -79032,7 +77548,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _save) { ZVAL_LONG(&_0, 4); - ZEPHIR_CALL_FUNCTION(&ext, "pathinfo", NULL, 73, &file, &_0); + ZEPHIR_CALL_FUNCTION(&ext, "pathinfo", NULL, 67, &file, &_0); zephir_check_call_status(); zephir_read_property(&_0, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); ZEPHIR_CALL_METHOD(NULL, &_0, "setformat", NULL, 0, &ext); @@ -79052,7 +77568,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _save) { zephir_update_property_zval(this_ptr, SL("_mime"), &_6); ZEPHIR_INIT_VAR(&_7); ZVAL_STRING(&_7, "gif"); - ZEPHIR_CALL_FUNCTION(&_8, "strcasecmp", &_9, 16, &ext, &_7); + ZEPHIR_CALL_FUNCTION(&_8, "strcasecmp", &_9, 11, &ext, &_7); zephir_check_call_status(); if (ZEPHIR_IS_LONG(&_8, 0)) { zephir_read_property(&_10$$3, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); @@ -79060,7 +77576,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _save) { zephir_check_call_status(); ZEPHIR_INIT_VAR(&_11$$3); ZVAL_STRING(&_11$$3, "w"); - ZEPHIR_CALL_FUNCTION(&fp, "fopen", NULL, 295, &file, &_11$$3); + ZEPHIR_CALL_FUNCTION(&fp, "fopen", NULL, 263, &file, &_11$$3); zephir_check_call_status(); zephir_read_property(&_12$$3, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); ZEPHIR_CALL_METHOD(NULL, &_12$$3, "writeimagesfile", NULL, 0, &fp); @@ -79070,13 +77586,13 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _save) { } else { ZEPHIR_INIT_VAR(&_13$$4); ZVAL_STRING(&_13$$4, "jpg"); - ZEPHIR_CALL_FUNCTION(&_14$$4, "strcasecmp", &_9, 16, &ext, &_13$$4); + ZEPHIR_CALL_FUNCTION(&_14$$4, "strcasecmp", &_9, 11, &ext, &_13$$4); zephir_check_call_status(); _15$$4 = ZEPHIR_IS_LONG(&_14$$4, 0); if (!(_15$$4)) { ZEPHIR_INIT_NVAR(&_13$$4); ZVAL_STRING(&_13$$4, "jpeg"); - ZEPHIR_CALL_FUNCTION(&_16$$4, "strcasecmp", &_9, 16, &ext, &_13$$4); + ZEPHIR_CALL_FUNCTION(&_16$$4, "strcasecmp", &_9, 11, &ext, &_13$$4); zephir_check_call_status(); _15$$4 = ZEPHIR_IS_LONG(&_16$$4, 0); } @@ -79084,7 +77600,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _save) { zephir_read_property(&_17$$5, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); ZEPHIR_INIT_VAR(&_18$$5); ZVAL_STRING(&_18$$5, "Imagick::COMPRESSION_JPEG"); - ZEPHIR_CALL_FUNCTION(&_19$$5, "constant", NULL, 197, &_18$$5); + ZEPHIR_CALL_FUNCTION(&_19$$5, "constant", NULL, 179, &_18$$5); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, &_17$$5, "setimagecompression", NULL, 0, &_19$$5); zephir_check_call_status(); @@ -79156,7 +77672,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _render) { zephir_update_property_zval(this_ptr, SL("_mime"), &_2); ZEPHIR_INIT_VAR(&_3); ZVAL_STRING(&_3, "gif"); - ZEPHIR_CALL_FUNCTION(&_4, "strcasecmp", &_5, 16, &extension, &_3); + ZEPHIR_CALL_FUNCTION(&_4, "strcasecmp", &_5, 11, &extension, &_3); zephir_check_call_status(); if (ZEPHIR_IS_LONG_IDENTICAL(&_4, 0)) { ZEPHIR_CALL_METHOD(NULL, &image, "optimizeimagelayers", NULL, 0); @@ -79164,20 +77680,20 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _render) { } else { ZEPHIR_INIT_VAR(&_6$$4); ZVAL_STRING(&_6$$4, "jpg"); - ZEPHIR_CALL_FUNCTION(&_7$$4, "strcasecmp", &_5, 16, &extension, &_6$$4); + ZEPHIR_CALL_FUNCTION(&_7$$4, "strcasecmp", &_5, 11, &extension, &_6$$4); zephir_check_call_status(); _8$$4 = ZEPHIR_IS_LONG_IDENTICAL(&_7$$4, 0); if (!(_8$$4)) { ZEPHIR_INIT_NVAR(&_6$$4); ZVAL_STRING(&_6$$4, "jpeg"); - ZEPHIR_CALL_FUNCTION(&_9$$4, "strcasecmp", &_5, 16, &extension, &_6$$4); + ZEPHIR_CALL_FUNCTION(&_9$$4, "strcasecmp", &_5, 11, &extension, &_6$$4); zephir_check_call_status(); _8$$4 = ZEPHIR_IS_LONG_IDENTICAL(&_9$$4, 0); } if (_8$$4) { ZEPHIR_INIT_VAR(&_10$$5); ZVAL_STRING(&_10$$5, "Imagick::COMPRESSION_JPEG"); - ZEPHIR_CALL_FUNCTION(&_11$$5, "constant", NULL, 197, &_10$$5); + ZEPHIR_CALL_FUNCTION(&_11$$5, "constant", NULL, 179, &_10$$5); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, &image, "setimagecompression", NULL, 0, &_11$$5); zephir_check_call_status(); @@ -79472,11 +77988,11 @@ static PHP_METHOD(Phalcon_Logger_Adapter, critical) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &message_param, &context_param); - if (unlikely(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'message' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(message_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(message_param) == IS_STRING)) { zephir_get_strval(&message, message_param); } else { ZEPHIR_INIT_VAR(&message); @@ -79512,11 +78028,11 @@ static PHP_METHOD(Phalcon_Logger_Adapter, emergency) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &message_param, &context_param); - if (unlikely(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'message' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(message_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(message_param) == IS_STRING)) { zephir_get_strval(&message, message_param); } else { ZEPHIR_INIT_VAR(&message); @@ -79552,11 +78068,11 @@ static PHP_METHOD(Phalcon_Logger_Adapter, debug) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &message_param, &context_param); - if (unlikely(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'message' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(message_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(message_param) == IS_STRING)) { zephir_get_strval(&message, message_param); } else { ZEPHIR_INIT_VAR(&message); @@ -79592,11 +78108,11 @@ static PHP_METHOD(Phalcon_Logger_Adapter, error) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &message_param, &context_param); - if (unlikely(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'message' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(message_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(message_param) == IS_STRING)) { zephir_get_strval(&message, message_param); } else { ZEPHIR_INIT_VAR(&message); @@ -79632,11 +78148,11 @@ static PHP_METHOD(Phalcon_Logger_Adapter, info) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &message_param, &context_param); - if (unlikely(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'message' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(message_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(message_param) == IS_STRING)) { zephir_get_strval(&message, message_param); } else { ZEPHIR_INIT_VAR(&message); @@ -79672,11 +78188,11 @@ static PHP_METHOD(Phalcon_Logger_Adapter, notice) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &message_param, &context_param); - if (unlikely(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'message' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(message_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(message_param) == IS_STRING)) { zephir_get_strval(&message, message_param); } else { ZEPHIR_INIT_VAR(&message); @@ -79712,11 +78228,11 @@ static PHP_METHOD(Phalcon_Logger_Adapter, warning) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &message_param, &context_param); - if (unlikely(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'message' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(message_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(message_param) == IS_STRING)) { zephir_get_strval(&message, message_param); } else { ZEPHIR_INIT_VAR(&message); @@ -79752,11 +78268,11 @@ static PHP_METHOD(Phalcon_Logger_Adapter, alert) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &message_param, &context_param); - if (unlikely(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'message' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(message_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(message_param) == IS_STRING)) { zephir_get_strval(&message, message_param); } else { ZEPHIR_INIT_VAR(&message); @@ -79843,7 +78359,7 @@ static PHP_METHOD(Phalcon_Logger_Adapter, log) { if (zephir_is_true(&_3$$8)) { ZEPHIR_INIT_VAR(&_4$$9); object_init_ex(&_4$$9, phalcon_logger_item_ce); - ZEPHIR_CALL_METHOD(NULL, &_4$$9, "__construct", NULL, 25, &toggledMessage, &toggledType, ×tamp, &context); + ZEPHIR_CALL_METHOD(NULL, &_4$$9, "__construct", NULL, 20, &toggledMessage, &toggledType, ×tamp, &context); zephir_check_call_status(); zephir_update_property_array_append(this_ptr, SL("_queue"), &_4$$9 TSRMLS_CC); } else { @@ -80066,7 +78582,7 @@ static PHP_METHOD(Phalcon_Logger_Formatter, interpolate) { } ZEND_HASH_FOREACH_END(); ZEPHIR_INIT_NVAR(&value); ZEPHIR_INIT_NVAR(&key); - ZEPHIR_RETURN_CALL_FUNCTION("strtr", NULL, 26, &message, &replace); + ZEPHIR_RETURN_CALL_FUNCTION("strtr", NULL, 21, &message, &replace); zephir_check_call_status(); RETURN_MM(); } @@ -80396,11 +78912,11 @@ static PHP_METHOD(Phalcon_Logger_Multiple, critical) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &message_param, &context_param); - if (unlikely(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'message' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(message_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(message_param) == IS_STRING)) { zephir_get_strval(&message, message_param); } else { ZEPHIR_INIT_VAR(&message); @@ -80436,11 +78952,11 @@ static PHP_METHOD(Phalcon_Logger_Multiple, emergency) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &message_param, &context_param); - if (unlikely(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'message' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(message_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(message_param) == IS_STRING)) { zephir_get_strval(&message, message_param); } else { ZEPHIR_INIT_VAR(&message); @@ -80476,11 +78992,11 @@ static PHP_METHOD(Phalcon_Logger_Multiple, debug) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &message_param, &context_param); - if (unlikely(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'message' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(message_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(message_param) == IS_STRING)) { zephir_get_strval(&message, message_param); } else { ZEPHIR_INIT_VAR(&message); @@ -80516,11 +79032,11 @@ static PHP_METHOD(Phalcon_Logger_Multiple, error) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &message_param, &context_param); - if (unlikely(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'message' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(message_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(message_param) == IS_STRING)) { zephir_get_strval(&message, message_param); } else { ZEPHIR_INIT_VAR(&message); @@ -80556,11 +79072,11 @@ static PHP_METHOD(Phalcon_Logger_Multiple, info) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &message_param, &context_param); - if (unlikely(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'message' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(message_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(message_param) == IS_STRING)) { zephir_get_strval(&message, message_param); } else { ZEPHIR_INIT_VAR(&message); @@ -80596,11 +79112,11 @@ static PHP_METHOD(Phalcon_Logger_Multiple, notice) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &message_param, &context_param); - if (unlikely(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'message' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(message_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(message_param) == IS_STRING)) { zephir_get_strval(&message, message_param); } else { ZEPHIR_INIT_VAR(&message); @@ -80636,11 +79152,11 @@ static PHP_METHOD(Phalcon_Logger_Multiple, warning) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &message_param, &context_param); - if (unlikely(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'message' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(message_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(message_param) == IS_STRING)) { zephir_get_strval(&message, message_param); } else { ZEPHIR_INIT_VAR(&message); @@ -80676,11 +79192,11 @@ static PHP_METHOD(Phalcon_Logger_Multiple, alert) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &message_param, &context_param); - if (unlikely(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'message' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(message_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(message_param) == IS_STRING)) { zephir_get_strval(&message, message_param); } else { ZEPHIR_INIT_VAR(&message); @@ -80752,11 +79268,11 @@ static PHP_METHOD(Phalcon_Logger_Adapter_File, __construct) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &name_param, &options); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(&name, name_param); } else { ZEPHIR_INIT_VAR(&name); @@ -80783,14 +79299,14 @@ static PHP_METHOD(Phalcon_Logger_Adapter_File, __construct) { ZEPHIR_INIT_NVAR(&mode); ZVAL_STRING(&mode, "ab"); } - ZEPHIR_CALL_FUNCTION(&handler, "fopen", NULL, 295, &name, &mode); + ZEPHIR_CALL_FUNCTION(&handler, "fopen", NULL, 263, &name, &mode); zephir_check_call_status(); if (Z_TYPE_P(&handler) != IS_RESOURCE) { ZEPHIR_INIT_VAR(&_0$$7); object_init_ex(&_0$$7, phalcon_logger_exception_ce); ZEPHIR_INIT_VAR(&_1$$7); ZEPHIR_CONCAT_SVS(&_1$$7, "Can't open log file at '", &name, "'"); - ZEPHIR_CALL_METHOD(NULL, &_0$$7, "__construct", NULL, 9, &_1$$7); + ZEPHIR_CALL_METHOD(NULL, &_0$$7, "__construct", NULL, 4, &_1$$7); zephir_check_call_status(); zephir_throw_exception_debug(&_0$$7, "phalcon/logger/adapter/file.zep", 89 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -80819,7 +79335,7 @@ static PHP_METHOD(Phalcon_Logger_Adapter_File, getFormatter) { if (Z_TYPE_P(&_0) != IS_OBJECT) { ZEPHIR_INIT_VAR(&_1$$3); object_init_ex(&_1$$3, phalcon_logger_formatter_line_ce); - ZEPHIR_CALL_METHOD(NULL, &_1$$3, "__construct", NULL, 299); + ZEPHIR_CALL_METHOD(NULL, &_1$$3, "__construct", NULL, 267); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_formatter"), &_1$$3); } @@ -80915,7 +79431,7 @@ static PHP_METHOD(Phalcon_Logger_Adapter_File, __wakeup) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_logger_exception_ce, "Logger must be opened in append or write mode", "phalcon/logger/adapter/file.zep", 153); return; } - ZEPHIR_CALL_FUNCTION(&_1, "fopen", NULL, 295, &path, &mode); + ZEPHIR_CALL_FUNCTION(&_1, "fopen", NULL, 263, &path, &mode); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_fileHandler"), &_1); ZEPHIR_MM_RESTORE(); @@ -81011,15 +79527,15 @@ static PHP_METHOD(Phalcon_Logger_Adapter_Firephp, logInternal) { if (!(zephir_is_true(&_0))) { ZEPHIR_INIT_VAR(&_1$$3); ZVAL_STRING(&_1$$3, "X-Wf-Protocol-1: http://meta.wildfirehq.org/Protocol/JsonStream/0.2"); - ZEPHIR_CALL_FUNCTION(NULL, "header", &_2, 247, &_1$$3); + ZEPHIR_CALL_FUNCTION(NULL, "header", &_2, 215, &_1$$3); zephir_check_call_status(); ZEPHIR_INIT_NVAR(&_1$$3); ZVAL_STRING(&_1$$3, "X-Wf-1-Plugin-1: http://meta.firephp.org/Wildfire/Plugin/FirePHP/Library-FirePHPCore/0.3"); - ZEPHIR_CALL_FUNCTION(NULL, "header", &_2, 247, &_1$$3); + ZEPHIR_CALL_FUNCTION(NULL, "header", &_2, 215, &_1$$3); zephir_check_call_status(); ZEPHIR_INIT_NVAR(&_1$$3); ZVAL_STRING(&_1$$3, "X-Wf-Structure-1: http://meta.firephp.org/Wildfire/Structure/FirePHP/FirebugConsole/0.1"); - ZEPHIR_CALL_FUNCTION(NULL, "header", &_2, 247, &_1$$3); + ZEPHIR_CALL_FUNCTION(NULL, "header", &_2, 215, &_1$$3); zephir_check_call_status(); if (1) { zephir_update_property_zval(this_ptr, SL("_initialized"), &__$true); @@ -81034,7 +79550,7 @@ static PHP_METHOD(Phalcon_Logger_Adapter_Firephp, logInternal) { ZEPHIR_CALL_METHOD(&format, &_3, "format", NULL, 0, &message, &_4, &_5, &context); zephir_check_call_status(); ZVAL_LONG(&_4, 4500); - ZEPHIR_CALL_FUNCTION(&chunk, "str_split", NULL, 71, &format, &_4); + ZEPHIR_CALL_FUNCTION(&chunk, "str_split", NULL, 65, &format, &_4); zephir_check_call_status(); ZEPHIR_OBS_VAR(&index); zephir_read_property(&index, this_ptr, SL("_index"), PH_NOISY_CC); @@ -81055,7 +79571,7 @@ static PHP_METHOD(Phalcon_Logger_Adapter_Firephp, logInternal) { if (zephir_array_isset_long(&chunk, (zephir_get_numberval(&key) + 1))) { zephir_concat_self_str(&content, SL("|\\") TSRMLS_CC); } - ZEPHIR_CALL_FUNCTION(NULL, "header", &_2, 247, &content); + ZEPHIR_CALL_FUNCTION(NULL, "header", &_2, 215, &content); zephir_check_call_status(); ZEPHIR_SEPARATE(&index); zephir_increment(&index); @@ -81114,11 +79630,11 @@ static PHP_METHOD(Phalcon_Logger_Adapter_Stream, __construct) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &name_param, &options); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(&name, name_param); } else { ZEPHIR_INIT_VAR(&name); @@ -81140,14 +79656,14 @@ static PHP_METHOD(Phalcon_Logger_Adapter_Stream, __construct) { ZEPHIR_INIT_NVAR(&mode); ZVAL_STRING(&mode, "ab"); } - ZEPHIR_CALL_FUNCTION(&stream, "fopen", NULL, 295, &name, &mode); + ZEPHIR_CALL_FUNCTION(&stream, "fopen", NULL, 263, &name, &mode); zephir_check_call_status(); if (!(zephir_is_true(&stream))) { ZEPHIR_INIT_VAR(&_0$$6); object_init_ex(&_0$$6, phalcon_logger_exception_ce); ZEPHIR_INIT_VAR(&_1$$6); ZEPHIR_CONCAT_SVS(&_1$$6, "Can't open stream '", &name, "'"); - ZEPHIR_CALL_METHOD(NULL, &_0$$6, "__construct", NULL, 9, &_1$$6); + ZEPHIR_CALL_METHOD(NULL, &_0$$6, "__construct", NULL, 4, &_1$$6); zephir_check_call_status(); zephir_throw_exception_debug(&_0$$6, "phalcon/logger/adapter/stream.zep", 76 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -81174,7 +79690,7 @@ static PHP_METHOD(Phalcon_Logger_Adapter_Stream, getFormatter) { if (Z_TYPE_P(&_0) != IS_OBJECT) { ZEPHIR_INIT_VAR(&_1$$3); object_init_ex(&_1$$3, phalcon_logger_formatter_line_ce); - ZEPHIR_CALL_METHOD(NULL, &_1$$3, "__construct", NULL, 299); + ZEPHIR_CALL_METHOD(NULL, &_1$$3, "__construct", NULL, 267); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_formatter"), &_1$$3); } @@ -81291,7 +79807,7 @@ static PHP_METHOD(Phalcon_Logger_Adapter_Syslog, __construct) { ZEPHIR_INIT_NVAR(&facility); ZVAL_LONG(&facility, 8); } - ZEPHIR_CALL_FUNCTION(NULL, "openlog", NULL, 300, name, &option, &facility); + ZEPHIR_CALL_FUNCTION(NULL, "openlog", NULL, 268, name, &option, &facility); zephir_check_call_status(); if (1) { zephir_update_property_zval(this_ptr, SL("_opened"), &__$true); @@ -81367,7 +79883,7 @@ static PHP_METHOD(Phalcon_Logger_Adapter_Syslog, logInternal) { } zephir_array_fetch_long(&_3, &appliedFormat, 0, PH_NOISY | PH_READONLY, "phalcon/logger/adapter/syslog.zep", 104 TSRMLS_CC); zephir_array_fetch_long(&_4, &appliedFormat, 1, PH_NOISY | PH_READONLY, "phalcon/logger/adapter/syslog.zep", 104 TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(NULL, "syslog", NULL, 301, &_3, &_4); + ZEPHIR_CALL_FUNCTION(NULL, "syslog", NULL, 269, &_3, &_4); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -81387,7 +79903,7 @@ static PHP_METHOD(Phalcon_Logger_Adapter_Syslog, close) { if (!(zephir_is_true(&_0))) { RETURN_MM_BOOL(1); } - ZEPHIR_RETURN_CALL_FUNCTION("closelog", NULL, 302); + ZEPHIR_RETURN_CALL_FUNCTION("closelog", NULL, 270); zephir_check_call_status(); RETURN_MM(); @@ -81582,10 +80098,10 @@ static PHP_METHOD(Phalcon_Logger_Formatter_Firephp, format) { if (zephir_is_true(&_2)) { ZEPHIR_INIT_VAR(¶m$$4); ZVAL_LONG(¶m$$4, 2); - ZEPHIR_CALL_FUNCTION(&backtrace, "debug_backtrace", NULL, 157, ¶m$$4); + ZEPHIR_CALL_FUNCTION(&backtrace, "debug_backtrace", NULL, 144, ¶m$$4); zephir_check_call_status(); ZEPHIR_MAKE_REF(&backtrace); - ZEPHIR_CALL_FUNCTION(&lastTrace, "end", NULL, 177, &backtrace); + ZEPHIR_CALL_FUNCTION(&lastTrace, "end", NULL, 160, &backtrace); ZEPHIR_UNREF(&backtrace); zephir_check_call_status(); if (zephir_array_isset_string(&lastTrace, SL("file"))) { @@ -81883,7 +80399,7 @@ static PHP_METHOD(Phalcon_Logger_Formatter_Line, format) { ZEPHIR_INIT_VAR(&_0$$3); zephir_read_property(&_1$$3, this_ptr, SL("_dateFormat"), PH_NOISY_CC | PH_READONLY); ZVAL_LONG(&_2$$3, timestamp); - ZEPHIR_CALL_FUNCTION(&_3$$3, "date", NULL, 303, &_1$$3, &_2$$3); + ZEPHIR_CALL_FUNCTION(&_3$$3, "date", NULL, 271, &_1$$3, &_2$$3); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_4$$3); ZVAL_STRING(&_4$$3, "%date%"); @@ -82199,7 +80715,7 @@ static PHP_METHOD(Phalcon_Mvc_Application, handle) { object_init_ex(&_13$$21, phalcon_mvc_application_exception_ce); ZEPHIR_INIT_VAR(&_14$$21); ZEPHIR_CONCAT_SVS(&_14$$21, "Module definition path '", &path, "' doesn't exist"); - ZEPHIR_CALL_METHOD(NULL, &_13$$21, "__construct", NULL, 9, &_14$$21); + ZEPHIR_CALL_METHOD(NULL, &_13$$21, "__construct", NULL, 4, &_14$$21); zephir_check_call_status(); zephir_throw_exception_debug(&_13$$21, "phalcon/mvc/application.zep", 217 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -82468,7 +80984,7 @@ static PHP_METHOD(Phalcon_Mvc_Collection, __construct) { if (Z_TYPE_P(dependencyInjector) != IS_OBJECT) { - ZEPHIR_CALL_CE_STATIC(dependencyInjector, phalcon_di_ce, "getdefault", &_0, 1); + ZEPHIR_CALL_CE_STATIC(dependencyInjector, phalcon_di_ce, "getdefault", &_0, 0); zephir_check_call_status(); } if (Z_TYPE_P(dependencyInjector) != IS_OBJECT) { @@ -82681,11 +81197,11 @@ static PHP_METHOD(Phalcon_Mvc_Collection, setSource) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &source_param); - if (unlikely(Z_TYPE_P(source_param) != IS_STRING && Z_TYPE_P(source_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(source_param) != IS_STRING && Z_TYPE_P(source_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'source' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(source_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(source_param) == IS_STRING)) { zephir_get_strval(&source, source_param); } else { ZEPHIR_INIT_VAR(&source); @@ -82736,11 +81252,11 @@ static PHP_METHOD(Phalcon_Mvc_Collection, setConnectionService) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &connectionService_param); - if (unlikely(Z_TYPE_P(connectionService_param) != IS_STRING && Z_TYPE_P(connectionService_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(connectionService_param) != IS_STRING && Z_TYPE_P(connectionService_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'connectionService' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(connectionService_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(connectionService_param) == IS_STRING)) { zephir_get_strval(&connectionService, connectionService_param); } else { ZEPHIR_INIT_VAR(&connectionService); @@ -82808,11 +81324,11 @@ static PHP_METHOD(Phalcon_Mvc_Collection, readAttribute) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &attribute_param); - if (unlikely(Z_TYPE_P(attribute_param) != IS_STRING && Z_TYPE_P(attribute_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(attribute_param) != IS_STRING && Z_TYPE_P(attribute_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'attribute' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(attribute_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(attribute_param) == IS_STRING)) { zephir_get_strval(&attribute, attribute_param); } else { ZEPHIR_INIT_VAR(&attribute); @@ -82956,7 +81472,7 @@ static PHP_METHOD(Phalcon_Mvc_Collection, _getResultset) { object_init_ex(&_3$$4, phalcon_mvc_collection_exception_ce); ZEPHIR_INIT_VAR(&_4$$4); ZEPHIR_CONCAT_SVS(&_4$$4, "Object of class '", &className, "' must be an implementation of Phalcon\\Mvc\\CollectionInterface or an instance of Phalcon\\Mvc\\Collection\\Document"); - ZEPHIR_CALL_METHOD(NULL, &_3$$4, "__construct", NULL, 9, &_4$$4); + ZEPHIR_CALL_METHOD(NULL, &_3$$4, "__construct", NULL, 4, &_4$$4); zephir_check_call_status(); zephir_throw_exception_debug(&_3$$4, "phalcon/mvc/collection.zep", 362 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -83031,7 +81547,7 @@ static PHP_METHOD(Phalcon_Mvc_Collection, _getResultset) { } ZEPHIR_INIT_VAR(&collections); array_init(&collections); - ZEPHIR_CALL_FUNCTION(&_6, "iterator_to_array", NULL, 304, &documentsCursor, &__$false); + ZEPHIR_CALL_FUNCTION(&_6, "iterator_to_array", NULL, 272, &documentsCursor, &__$false); zephir_check_call_status(); zephir_is_iterable(&_6, 0, "phalcon/mvc/collection.zep", 457); ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&_6), _7) @@ -83340,7 +81856,7 @@ static PHP_METHOD(Phalcon_Mvc_Collection, validate) { zephir_check_call_status(); ZEPHIR_CALL_METHOD(&_9$$8, &message, "gettype", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, &_6$$8, "__construct", &_10, 8, &_7$$8, &_8$$8, &_9$$8); + ZEPHIR_CALL_METHOD(NULL, &_6$$8, "__construct", &_10, 3, &_7$$8, &_8$$8, &_9$$8); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, this_ptr, "appendmessage", &_11, 0, &_6$$8); zephir_check_call_status(); @@ -83384,11 +81900,11 @@ static PHP_METHOD(Phalcon_Mvc_Collection, fireEvent) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &eventName_param); - if (unlikely(Z_TYPE_P(eventName_param) != IS_STRING && Z_TYPE_P(eventName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(eventName_param) != IS_STRING && Z_TYPE_P(eventName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'eventName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(eventName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(eventName_param) == IS_STRING)) { zephir_get_strval(&eventName, eventName_param); } else { ZEPHIR_INIT_VAR(&eventName); @@ -83422,11 +81938,11 @@ static PHP_METHOD(Phalcon_Mvc_Collection, fireEventCancel) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &eventName_param); - if (unlikely(Z_TYPE_P(eventName_param) != IS_STRING && Z_TYPE_P(eventName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(eventName_param) != IS_STRING && Z_TYPE_P(eventName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'eventName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(eventName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(eventName_param) == IS_STRING)) { zephir_get_strval(&eventName, eventName_param); } else { ZEPHIR_INIT_VAR(&eventName); @@ -83654,7 +82170,7 @@ static PHP_METHOD(Phalcon_Mvc_Collection, save) { zephir_update_property_zval(this_ptr, SL("_errorMessages"), &_2); zephir_read_property(&_4, this_ptr, SL("_dependencyInjector"), PH_NOISY_CC | PH_READONLY); zephir_read_static_property_ce(&_5, phalcon_mvc_collection_ce, SL("_disableEvents"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_METHOD(&_3, this_ptr, "_presave", NULL, 305, &_4, &_5, &exists); + ZEPHIR_CALL_METHOD(&_3, this_ptr, "_presave", NULL, 273, &_4, &_5, &exists); zephir_check_call_status(); if (ZEPHIR_IS_FALSE_IDENTICAL(&_3)) { RETURN_MM_BOOL(0); @@ -83690,7 +82206,7 @@ static PHP_METHOD(Phalcon_Mvc_Collection, save) { } else { ZVAL_BOOL(&_9, 0); } - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_postsave", NULL, 306, &_8, &_9, &exists); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_postsave", NULL, 274, &_8, &_9, &exists); zephir_check_call_status(); RETURN_MM(); @@ -83739,7 +82255,7 @@ static PHP_METHOD(Phalcon_Mvc_Collection, create) { } else { ZVAL_BOOL(&_4, 0); } - ZEPHIR_CALL_METHOD(&_2, this_ptr, "_presave", NULL, 305, &_0, &_3, &_4); + ZEPHIR_CALL_METHOD(&_2, this_ptr, "_presave", NULL, 273, &_0, &_3, &_4); zephir_check_call_status(); if (ZEPHIR_IS_FALSE_IDENTICAL(&_2)) { RETURN_MM_BOOL(0); @@ -83780,7 +82296,7 @@ static PHP_METHOD(Phalcon_Mvc_Collection, create) { } else { ZVAL_BOOL(&_9, 0); } - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_postsave", NULL, 306, &_7, &_8, &_9); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_postsave", NULL, 274, &_7, &_8, &_9); zephir_check_call_status(); RETURN_MM(); @@ -83845,22 +82361,22 @@ static PHP_METHOD(Phalcon_Mvc_Collection, createIfNotExist) { } else { ZVAL_BOOL(&_4, 0); } - ZEPHIR_CALL_METHOD(&_2, this_ptr, "_presave", NULL, 305, &_0, &_3, &_4); + ZEPHIR_CALL_METHOD(&_2, this_ptr, "_presave", NULL, 273, &_0, &_3, &_4); zephir_check_call_status(); if (ZEPHIR_IS_FALSE_IDENTICAL(&_2)) { RETURN_MM_BOOL(0); } - ZEPHIR_CALL_FUNCTION(&keys, "array_flip", NULL, 307, &criteria); + ZEPHIR_CALL_FUNCTION(&keys, "array_flip", NULL, 275, &criteria); zephir_check_call_status(); ZEPHIR_CALL_METHOD(&data, this_ptr, "toarray", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_5, "array_diff_key", NULL, 308, &keys, &data); + ZEPHIR_CALL_FUNCTION(&_5, "array_diff_key", NULL, 276, &keys, &data); zephir_check_call_status(); if (zephir_is_true(&_5)) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_collection_exception_ce, "Criteria parameter must be array with one or more attributes of the model", "phalcon/mvc/collection.zep", 1134); return; } - ZEPHIR_CALL_FUNCTION(&query, "array_intersect_key", NULL, 309, &data, &keys); + ZEPHIR_CALL_FUNCTION(&query, "array_intersect_key", NULL, 277, &data, &keys); zephir_check_call_status(); success = 0; ZEPHIR_INIT_VAR(&_6); @@ -83889,7 +82405,7 @@ static PHP_METHOD(Phalcon_Mvc_Collection, createIfNotExist) { object_init_ex(&_11$$8, phalcon_mvc_model_message_ce); ZEPHIR_INIT_VAR(&_12$$8); ZVAL_STRING(&_12$$8, "Document already exists"); - ZEPHIR_CALL_METHOD(NULL, &_11$$8, "__construct", NULL, 8, &_12$$8); + ZEPHIR_CALL_METHOD(NULL, &_11$$8, "__construct", NULL, 3, &_12$$8); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, this_ptr, "appendmessage", NULL, 0, &_11$$8); zephir_check_call_status(); @@ -83905,7 +82421,7 @@ static PHP_METHOD(Phalcon_Mvc_Collection, createIfNotExist) { } else { ZVAL_BOOL(&_14, 0); } - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_postsave", NULL, 306, &_8, &_13, &_14); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_postsave", NULL, 274, &_8, &_13, &_14); zephir_check_call_status(); RETURN_MM(); @@ -83953,7 +82469,7 @@ static PHP_METHOD(Phalcon_Mvc_Collection, update) { zephir_update_property_zval(this_ptr, SL("_errorMessages"), &_1); zephir_read_property(&_0, this_ptr, SL("_dependencyInjector"), PH_NOISY_CC | PH_READONLY); zephir_read_static_property_ce(&_3, phalcon_mvc_collection_ce, SL("_disableEvents"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_METHOD(&_2, this_ptr, "_presave", NULL, 305, &_0, &_3, &exists); + ZEPHIR_CALL_METHOD(&_2, this_ptr, "_presave", NULL, 273, &_0, &_3, &exists); zephir_check_call_status(); if (ZEPHIR_IS_FALSE_IDENTICAL(&_2)) { RETURN_MM_BOOL(0); @@ -83987,7 +82503,7 @@ static PHP_METHOD(Phalcon_Mvc_Collection, update) { } else { ZVAL_BOOL(&_8, 0); } - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_postsave", NULL, 306, &_7, &_8, &exists); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_postsave", NULL, 274, &_7, &_8, &exists); zephir_check_call_status(); RETURN_MM(); @@ -84283,11 +82799,11 @@ static PHP_METHOD(Phalcon_Mvc_Collection, summatory) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &field_param, &conditions, &finalize); - if (unlikely(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'field' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(field_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(field_param) == IS_STRING)) { zephir_get_strval(&field, field_param); } else { ZEPHIR_INIT_VAR(&field); @@ -84551,7 +83067,7 @@ static PHP_METHOD(Phalcon_Mvc_Collection, toArray) { zephir_check_call_status(); ZEPHIR_INIT_VAR(&data); array_init(&data); - ZEPHIR_CALL_FUNCTION(&_0, "get_object_vars", NULL, 21, this_ptr); + ZEPHIR_CALL_FUNCTION(&_0, "get_object_vars", NULL, 16, this_ptr); zephir_check_call_status(); zephir_is_iterable(&_0, 0, "phalcon/mvc/collection.zep", 1633); ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&_0), _2, _3, _1) @@ -84592,7 +83108,7 @@ static PHP_METHOD(Phalcon_Mvc_Collection, serialize) { ZEPHIR_CALL_METHOD(&_0, this_ptr, "toarray", NULL, 0); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_FUNCTION("serialize", NULL, 65, &_0); + ZEPHIR_RETURN_CALL_FUNCTION("serialize", NULL, 59, &_0); zephir_check_call_status(); RETURN_MM(); @@ -84619,11 +83135,11 @@ static PHP_METHOD(Phalcon_Mvc_Collection, unserialize) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &data_param); - if (unlikely(Z_TYPE_P(data_param) != IS_STRING && Z_TYPE_P(data_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(data_param) != IS_STRING && Z_TYPE_P(data_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'data' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(data_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(data_param) == IS_STRING)) { zephir_get_strval(&data, data_param); } else { ZEPHIR_INIT_VAR(&data); @@ -84631,10 +83147,10 @@ static PHP_METHOD(Phalcon_Mvc_Collection, unserialize) { } - ZEPHIR_CALL_FUNCTION(&attributes, "unserialize", NULL, 66, &data); + ZEPHIR_CALL_FUNCTION(&attributes, "unserialize", NULL, 60, &data); zephir_check_call_status(); if (Z_TYPE_P(&attributes) == IS_ARRAY) { - ZEPHIR_CALL_CE_STATIC(&dependencyInjector, phalcon_di_ce, "getdefault", &_0, 1); + ZEPHIR_CALL_CE_STATIC(&dependencyInjector, phalcon_di_ce, "getdefault", &_0, 0); zephir_check_call_status(); if (Z_TYPE_P(&dependencyInjector) != IS_OBJECT) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_collection_exception_ce, "A dependency injector container is required to obtain the services related to the ODM", "phalcon/mvc/collection.zep", 1662); @@ -84840,11 +83356,11 @@ static PHP_METHOD(Phalcon_Mvc_Dispatcher, setControllerSuffix) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &controllerSuffix_param); - if (unlikely(Z_TYPE_P(controllerSuffix_param) != IS_STRING && Z_TYPE_P(controllerSuffix_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(controllerSuffix_param) != IS_STRING && Z_TYPE_P(controllerSuffix_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'controllerSuffix' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(controllerSuffix_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(controllerSuffix_param) == IS_STRING)) { zephir_get_strval(&controllerSuffix, controllerSuffix_param); } else { ZEPHIR_INIT_VAR(&controllerSuffix); @@ -84868,11 +83384,11 @@ static PHP_METHOD(Phalcon_Mvc_Dispatcher, setDefaultController) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &controllerName_param); - if (unlikely(Z_TYPE_P(controllerName_param) != IS_STRING && Z_TYPE_P(controllerName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(controllerName_param) != IS_STRING && Z_TYPE_P(controllerName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'controllerName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(controllerName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(controllerName_param) == IS_STRING)) { zephir_get_strval(&controllerName, controllerName_param); } else { ZEPHIR_INIT_VAR(&controllerName); @@ -84896,11 +83412,11 @@ static PHP_METHOD(Phalcon_Mvc_Dispatcher, setControllerName) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &controllerName_param); - if (unlikely(Z_TYPE_P(controllerName_param) != IS_STRING && Z_TYPE_P(controllerName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(controllerName_param) != IS_STRING && Z_TYPE_P(controllerName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'controllerName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(controllerName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(controllerName_param) == IS_STRING)) { zephir_get_strval(&controllerName, controllerName_param); } else { ZEPHIR_INIT_VAR(&controllerName); @@ -84970,11 +83486,11 @@ static PHP_METHOD(Phalcon_Mvc_Dispatcher, _throwDispatchException) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &message_param, &exceptionCode_param); - if (unlikely(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'message' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(message_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(message_param) == IS_STRING)) { zephir_get_strval(&message, message_param); } else { ZEPHIR_INIT_VAR(&message); @@ -84995,7 +83511,7 @@ static PHP_METHOD(Phalcon_Mvc_Dispatcher, _throwDispatchException) { ZEPHIR_INIT_VAR(&_1$$3); ZVAL_STRING(&_1$$3, "A dependency injection container is required to access the 'response' service"); ZVAL_LONG(&_2$$3, 0); - ZEPHIR_CALL_METHOD(NULL, &_0$$3, "__construct", NULL, 9, &_1$$3, &_2$$3); + ZEPHIR_CALL_METHOD(NULL, &_0$$3, "__construct", NULL, 4, &_1$$3, &_2$$3); zephir_check_call_status(); zephir_throw_exception_debug(&_0$$3, "phalcon/mvc/dispatcher.zep", 127 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -85014,7 +83530,7 @@ static PHP_METHOD(Phalcon_Mvc_Dispatcher, _throwDispatchException) { ZEPHIR_INIT_VAR(&exception); object_init_ex(&exception, phalcon_mvc_dispatcher_exception_ce); ZVAL_LONG(&_5, exceptionCode); - ZEPHIR_CALL_METHOD(NULL, &exception, "__construct", NULL, 9, &message, &_5); + ZEPHIR_CALL_METHOD(NULL, &exception, "__construct", NULL, 4, &message, &_5); zephir_check_call_status(); ZEPHIR_CALL_METHOD(&_3, this_ptr, "_handleexception", NULL, 0, &exception); zephir_check_call_status(); @@ -85266,11 +83782,11 @@ static PHP_METHOD(Phalcon_Mvc_Micro, map) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &routePattern_param, &handler); - if (unlikely(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'routePattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(routePattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(routePattern_param) == IS_STRING)) { zephir_get_strval(&routePattern, routePattern_param); } else { ZEPHIR_INIT_VAR(&routePattern); @@ -85305,11 +83821,11 @@ static PHP_METHOD(Phalcon_Mvc_Micro, get) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &routePattern_param, &handler); - if (unlikely(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'routePattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(routePattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(routePattern_param) == IS_STRING)) { zephir_get_strval(&routePattern, routePattern_param); } else { ZEPHIR_INIT_VAR(&routePattern); @@ -85344,11 +83860,11 @@ static PHP_METHOD(Phalcon_Mvc_Micro, post) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &routePattern_param, &handler); - if (unlikely(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'routePattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(routePattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(routePattern_param) == IS_STRING)) { zephir_get_strval(&routePattern, routePattern_param); } else { ZEPHIR_INIT_VAR(&routePattern); @@ -85383,11 +83899,11 @@ static PHP_METHOD(Phalcon_Mvc_Micro, put) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &routePattern_param, &handler); - if (unlikely(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'routePattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(routePattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(routePattern_param) == IS_STRING)) { zephir_get_strval(&routePattern, routePattern_param); } else { ZEPHIR_INIT_VAR(&routePattern); @@ -85422,11 +83938,11 @@ static PHP_METHOD(Phalcon_Mvc_Micro, patch) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &routePattern_param, &handler); - if (unlikely(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'routePattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(routePattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(routePattern_param) == IS_STRING)) { zephir_get_strval(&routePattern, routePattern_param); } else { ZEPHIR_INIT_VAR(&routePattern); @@ -85461,11 +83977,11 @@ static PHP_METHOD(Phalcon_Mvc_Micro, head) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &routePattern_param, &handler); - if (unlikely(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'routePattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(routePattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(routePattern_param) == IS_STRING)) { zephir_get_strval(&routePattern, routePattern_param); } else { ZEPHIR_INIT_VAR(&routePattern); @@ -85500,11 +84016,11 @@ static PHP_METHOD(Phalcon_Mvc_Micro, delete) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &routePattern_param, &handler); - if (unlikely(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'routePattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(routePattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(routePattern_param) == IS_STRING)) { zephir_get_strval(&routePattern, routePattern_param); } else { ZEPHIR_INIT_VAR(&routePattern); @@ -85539,11 +84055,11 @@ static PHP_METHOD(Phalcon_Mvc_Micro, options) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &routePattern_param, &handler); - if (unlikely(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'routePattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(routePattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(routePattern_param) == IS_STRING)) { zephir_get_strval(&routePattern, routePattern_param); } else { ZEPHIR_INIT_VAR(&routePattern); @@ -85608,7 +84124,7 @@ static PHP_METHOD(Phalcon_Mvc_Micro, mount) { if (zephir_is_true(&_0$$5)) { ZEPHIR_INIT_VAR(&lazyHandler); object_init_ex(&lazyHandler, phalcon_mvc_micro_lazyloader_ce); - ZEPHIR_CALL_METHOD(NULL, &lazyHandler, "__construct", NULL, 310, &mainHandler); + ZEPHIR_CALL_METHOD(NULL, &lazyHandler, "__construct", NULL, 278, &mainHandler); zephir_check_call_status(); } else { ZEPHIR_CPY_WRT(&lazyHandler, &mainHandler); @@ -85749,11 +84265,11 @@ static PHP_METHOD(Phalcon_Mvc_Micro, setService) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 1, &serviceName_param, &definition, &shared_param); - if (unlikely(Z_TYPE_P(serviceName_param) != IS_STRING && Z_TYPE_P(serviceName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(serviceName_param) != IS_STRING && Z_TYPE_P(serviceName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'serviceName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(serviceName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(serviceName_param) == IS_STRING)) { zephir_get_strval(&serviceName, serviceName_param); } else { ZEPHIR_INIT_VAR(&serviceName); @@ -85771,7 +84287,7 @@ static PHP_METHOD(Phalcon_Mvc_Micro, setService) { if (Z_TYPE_P(&dependencyInjector) != IS_OBJECT) { ZEPHIR_INIT_NVAR(&dependencyInjector); object_init_ex(&dependencyInjector, phalcon_di_factorydefault_ce); - ZEPHIR_CALL_METHOD(NULL, &dependencyInjector, "__construct", NULL, 181); + ZEPHIR_CALL_METHOD(NULL, &dependencyInjector, "__construct", NULL, 279); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_dependencyInjector"), &dependencyInjector); } @@ -85780,7 +84296,7 @@ static PHP_METHOD(Phalcon_Mvc_Micro, setService) { } else { ZVAL_BOOL(&_0, 0); } - ZEPHIR_RETURN_CALL_METHOD(&dependencyInjector, "set", NULL, 311, &serviceName, definition, &_0); + ZEPHIR_RETURN_CALL_METHOD(&dependencyInjector, "set", NULL, 280, &serviceName, definition, &_0); zephir_check_call_status(); RETURN_MM(); @@ -85799,11 +84315,11 @@ static PHP_METHOD(Phalcon_Mvc_Micro, hasService) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &serviceName_param); - if (unlikely(Z_TYPE_P(serviceName_param) != IS_STRING && Z_TYPE_P(serviceName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(serviceName_param) != IS_STRING && Z_TYPE_P(serviceName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'serviceName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(serviceName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(serviceName_param) == IS_STRING)) { zephir_get_strval(&serviceName, serviceName_param); } else { ZEPHIR_INIT_VAR(&serviceName); @@ -85816,11 +84332,11 @@ static PHP_METHOD(Phalcon_Mvc_Micro, hasService) { if (Z_TYPE_P(&dependencyInjector) != IS_OBJECT) { ZEPHIR_INIT_NVAR(&dependencyInjector); object_init_ex(&dependencyInjector, phalcon_di_factorydefault_ce); - ZEPHIR_CALL_METHOD(NULL, &dependencyInjector, "__construct", NULL, 181); + ZEPHIR_CALL_METHOD(NULL, &dependencyInjector, "__construct", NULL, 279); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_dependencyInjector"), &dependencyInjector); } - ZEPHIR_RETURN_CALL_METHOD(&dependencyInjector, "has", NULL, 312, &serviceName); + ZEPHIR_RETURN_CALL_METHOD(&dependencyInjector, "has", NULL, 281, &serviceName); zephir_check_call_status(); RETURN_MM(); @@ -85839,11 +84355,11 @@ static PHP_METHOD(Phalcon_Mvc_Micro, getService) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &serviceName_param); - if (unlikely(Z_TYPE_P(serviceName_param) != IS_STRING && Z_TYPE_P(serviceName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(serviceName_param) != IS_STRING && Z_TYPE_P(serviceName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'serviceName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(serviceName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(serviceName_param) == IS_STRING)) { zephir_get_strval(&serviceName, serviceName_param); } else { ZEPHIR_INIT_VAR(&serviceName); @@ -85856,11 +84372,11 @@ static PHP_METHOD(Phalcon_Mvc_Micro, getService) { if (Z_TYPE_P(&dependencyInjector) != IS_OBJECT) { ZEPHIR_INIT_NVAR(&dependencyInjector); object_init_ex(&dependencyInjector, phalcon_di_factorydefault_ce); - ZEPHIR_CALL_METHOD(NULL, &dependencyInjector, "__construct", NULL, 181); + ZEPHIR_CALL_METHOD(NULL, &dependencyInjector, "__construct", NULL, 279); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_dependencyInjector"), &dependencyInjector); } - ZEPHIR_RETURN_CALL_METHOD(&dependencyInjector, "get", NULL, 313, &serviceName); + ZEPHIR_RETURN_CALL_METHOD(&dependencyInjector, "get", NULL, 282, &serviceName); zephir_check_call_status(); RETURN_MM(); @@ -85885,11 +84401,11 @@ static PHP_METHOD(Phalcon_Mvc_Micro, getSharedService) { if (Z_TYPE_P(&dependencyInjector) != IS_OBJECT) { ZEPHIR_INIT_NVAR(&dependencyInjector); object_init_ex(&dependencyInjector, phalcon_di_factorydefault_ce); - ZEPHIR_CALL_METHOD(NULL, &dependencyInjector, "__construct", NULL, 181); + ZEPHIR_CALL_METHOD(NULL, &dependencyInjector, "__construct", NULL, 279); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_dependencyInjector"), &dependencyInjector); } - ZEPHIR_RETURN_CALL_METHOD(&dependencyInjector, "getshared", NULL, 314, serviceName); + ZEPHIR_RETURN_CALL_METHOD(&dependencyInjector, "getshared", NULL, 283, serviceName); zephir_check_call_status(); RETURN_MM(); @@ -85897,11 +84413,11 @@ static PHP_METHOD(Phalcon_Mvc_Micro, getSharedService) { static PHP_METHOD(Phalcon_Mvc_Micro, handle) { - zval _50$$59; + zval _51$$59; zend_class_entry *_18$$20; zend_bool _16$$7, _24$$7, _21$$24, _28$$31; int ZEPHIR_LAST_CALL_STATUS; - zval *uri = NULL, uri_sub, __$true, __$false, __$null, dependencyInjector, eventsManager, status, router, matchedRoute, handler, beforeHandlers, params, returnedValue, e, errorHandler, afterHandlers, notFoundHandler, finishHandlers, finish, before, after, response, modelBinder, bindCacheKey, routeName, realHandler, methodName, lazyReturned, afterBindingHandlers, afterBinding, _0$$5, _1$$5, _2$$4, _3$$4, _4$$7, _5$$7, _6$$8, _7$$8, _8$$9, _9$$9, *_10$$12, _11$$15, _12$$17, _13$$17, _14$$13, _15$$13, _17$$20, _19$$23, _20$$21, _22$$25, _23$$25, _25$$28, _26$$28, *_27$$30, _32$$31, _33$$31, _29$$32, _30$$34, _31$$34, _34$$37, *_35$$38, _36$$41, _37$$43, _38$$43, _39$$45, _40$$45, _41$$47, _42$$47, _43$$48, *_44$$49, _45$$52, _46$$54, _47$$54, _48$$50, _49$$58, _51$$67, _52$$67; + zval *uri = NULL, uri_sub, __$true, __$false, __$null, dependencyInjector, eventsManager, status, router, matchedRoute, handler, beforeHandlers, params, returnedValue, e, errorHandler, afterHandlers, notFoundHandler, finishHandlers, finish, before, after, response, modelBinder, bindCacheKey, routeName, realHandler, methodName, lazyReturned, afterBindingHandlers, afterBinding, _49, _0$$5, _1$$5, _2$$4, _3$$4, _4$$7, _5$$7, _6$$8, _7$$8, _8$$9, _9$$9, *_10$$12, _11$$15, _12$$17, _13$$17, _14$$13, _15$$13, _17$$20, _19$$23, _20$$21, _22$$25, _23$$25, _25$$28, _26$$28, *_27$$30, _32$$31, _33$$31, _29$$32, _30$$34, _31$$34, _34$$37, *_35$$38, _36$$41, _37$$43, _38$$43, _39$$45, _40$$45, _41$$47, _42$$47, _43$$48, *_44$$49, _45$$52, _46$$54, _47$$54, _48$$50, _50$$58, _52$$67, _53$$67; ZEPHIR_INIT_THIS(); ZVAL_UNDEF(&uri_sub); @@ -85934,6 +84450,7 @@ static PHP_METHOD(Phalcon_Mvc_Micro, handle) { ZVAL_UNDEF(&lazyReturned); ZVAL_UNDEF(&afterBindingHandlers); ZVAL_UNDEF(&afterBinding); + ZVAL_UNDEF(&_49); ZVAL_UNDEF(&_0$$5); ZVAL_UNDEF(&_1$$5); ZVAL_UNDEF(&_2$$4); @@ -85974,10 +84491,10 @@ static PHP_METHOD(Phalcon_Mvc_Micro, handle) { ZVAL_UNDEF(&_46$$54); ZVAL_UNDEF(&_47$$54); ZVAL_UNDEF(&_48$$50); - ZVAL_UNDEF(&_49$$58); - ZVAL_UNDEF(&_51$$67); + ZVAL_UNDEF(&_50$$58); ZVAL_UNDEF(&_52$$67); - ZVAL_UNDEF(&_50$$59); + ZVAL_UNDEF(&_53$$67); + ZVAL_UNDEF(&_51$$59); ZEPHIR_MM_GROW(); zephir_fetch_params(1, 0, 1, &uri); @@ -86033,7 +84550,7 @@ static PHP_METHOD(Phalcon_Mvc_Micro, handle) { object_init_ex(&_6$$8, phalcon_mvc_micro_exception_ce); ZEPHIR_INIT_VAR(&_7$$8); ZVAL_STRING(&_7$$8, "Matched route doesn't have an associated handler"); - ZEPHIR_CALL_METHOD(NULL, &_6$$8, "__construct", NULL, 9, &_7$$8); + ZEPHIR_CALL_METHOD(NULL, &_6$$8, "__construct", NULL, 4, &_7$$8); zephir_check_call_status_or_jump(try_end_1); zephir_throw_exception_debug(&_6$$8, "phalcon/mvc/micro.zep", 629 TSRMLS_CC); goto try_end_1; @@ -86081,7 +84598,7 @@ static PHP_METHOD(Phalcon_Mvc_Micro, handle) { object_init_ex(&_12$$17, phalcon_mvc_micro_exception_ce); ZEPHIR_INIT_NVAR(&_13$$17); ZVAL_STRING(&_13$$17, "'before' handler is not callable"); - ZEPHIR_CALL_METHOD(NULL, &_12$$17, "__construct", NULL, 9, &_13$$17); + ZEPHIR_CALL_METHOD(NULL, &_12$$17, "__construct", NULL, 4, &_13$$17); zephir_check_call_status_or_jump(try_end_1); zephir_throw_exception_debug(&_12$$17, "phalcon/mvc/micro.zep", 679 TSRMLS_CC); goto try_end_1; @@ -86203,7 +84720,7 @@ static PHP_METHOD(Phalcon_Mvc_Micro, handle) { object_init_ex(&_30$$34, phalcon_mvc_micro_exception_ce); ZEPHIR_INIT_NVAR(&_31$$34); ZVAL_STRING(&_31$$34, "'afterBinding' handler is not callable"); - ZEPHIR_CALL_METHOD(NULL, &_30$$34, "__construct", NULL, 9, &_31$$34); + ZEPHIR_CALL_METHOD(NULL, &_30$$34, "__construct", NULL, 4, &_31$$34); zephir_check_call_status_or_jump(try_end_1); zephir_throw_exception_debug(&_30$$34, "phalcon/mvc/micro.zep", 784 TSRMLS_CC); goto try_end_1; @@ -86258,7 +84775,7 @@ static PHP_METHOD(Phalcon_Mvc_Micro, handle) { object_init_ex(&_37$$43, phalcon_mvc_micro_exception_ce); ZEPHIR_INIT_NVAR(&_38$$43); ZVAL_STRING(&_38$$43, "One of the 'after' handlers is not callable"); - ZEPHIR_CALL_METHOD(NULL, &_37$$43, "__construct", NULL, 9, &_38$$43); + ZEPHIR_CALL_METHOD(NULL, &_37$$43, "__construct", NULL, 4, &_38$$43); zephir_check_call_status_or_jump(try_end_1); zephir_throw_exception_debug(&_37$$43, "phalcon/mvc/micro.zep", 845 TSRMLS_CC); goto try_end_1; @@ -86289,7 +84806,7 @@ static PHP_METHOD(Phalcon_Mvc_Micro, handle) { object_init_ex(&_41$$47, phalcon_mvc_micro_exception_ce); ZEPHIR_INIT_VAR(&_42$$47); ZVAL_STRING(&_42$$47, "Not-Found handler is not callable or is not defined"); - ZEPHIR_CALL_METHOD(NULL, &_41$$47, "__construct", NULL, 9, &_42$$47); + ZEPHIR_CALL_METHOD(NULL, &_41$$47, "__construct", NULL, 4, &_42$$47); zephir_check_call_status_or_jump(try_end_1); zephir_throw_exception_debug(&_41$$47, "phalcon/mvc/micro.zep", 869 TSRMLS_CC); goto try_end_1; @@ -86336,7 +84853,7 @@ static PHP_METHOD(Phalcon_Mvc_Micro, handle) { object_init_ex(&_46$$54, phalcon_mvc_micro_exception_ce); ZEPHIR_INIT_NVAR(&_47$$54); ZVAL_STRING(&_47$$54, "One of the 'finish' handlers is not callable"); - ZEPHIR_CALL_METHOD(NULL, &_46$$54, "__construct", NULL, 9, &_47$$54); + ZEPHIR_CALL_METHOD(NULL, &_46$$54, "__construct", NULL, 4, &_47$$54); zephir_check_call_status_or_jump(try_end_1); zephir_throw_exception_debug(&_46$$54, "phalcon/mvc/micro.zep", 921 TSRMLS_CC); goto try_end_1; @@ -86361,16 +84878,18 @@ static PHP_METHOD(Phalcon_Mvc_Micro, handle) { try_end_1: if (EG(exception)) { - ZVAL_OBJ(&e, EG(exception)); - Z_ADDREF_P(&e); - if (zephir_instance_of_ev(&e, zend_exception_get_default(TSRMLS_C) TSRMLS_CC)) { + ZEPHIR_INIT_VAR(&_49); + ZVAL_OBJ(&_49, EG(exception)); + Z_ADDREF_P(&_49); + if (zephir_instance_of_ev(&_49, zend_exception_get_default(TSRMLS_C) TSRMLS_CC)) { zend_clear_exception(TSRMLS_C); + ZEPHIR_CPY_WRT(&e, &_49); ZEPHIR_OBS_NVAR(&eventsManager); zephir_read_property(&eventsManager, this_ptr, SL("_eventsManager"), PH_NOISY_CC); if (Z_TYPE_P(&eventsManager) == IS_OBJECT) { - ZEPHIR_INIT_VAR(&_49$$58); - ZVAL_STRING(&_49$$58, "micro:beforeException"); - ZEPHIR_CALL_METHOD(&returnedValue, &eventsManager, "fire", NULL, 0, &_49$$58, this_ptr, &e); + ZEPHIR_INIT_VAR(&_50$$58); + ZVAL_STRING(&_50$$58, "micro:beforeException"); + ZEPHIR_CALL_METHOD(&returnedValue, &eventsManager, "fire", NULL, 0, &_50$$58, this_ptr, &e); zephir_check_call_status(); } ZEPHIR_OBS_VAR(&errorHandler); @@ -86380,11 +84899,11 @@ static PHP_METHOD(Phalcon_Mvc_Micro, handle) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_micro_exception_ce, "Error handler is not callable", "phalcon/mvc/micro.zep", 959); return; } - ZEPHIR_INIT_VAR(&_50$$59); - zephir_create_array(&_50$$59, 1, 0 TSRMLS_CC); - zephir_array_fast_append(&_50$$59, &e); + ZEPHIR_INIT_VAR(&_51$$59); + zephir_create_array(&_51$$59, 1, 0 TSRMLS_CC); + zephir_array_fast_append(&_51$$59, &e); ZEPHIR_INIT_NVAR(&returnedValue); - ZEPHIR_CALL_USER_FUNC_ARRAY(&returnedValue, &errorHandler, &_50$$59); + ZEPHIR_CALL_USER_FUNC_ARRAY(&returnedValue, &errorHandler, &_51$$59); zephir_check_call_status(); if (Z_TYPE_P(&returnedValue) == IS_OBJECT) { if (!(zephir_instance_of_ev(&returnedValue, phalcon_http_responseinterface_ce TSRMLS_CC))) { @@ -86409,11 +84928,11 @@ static PHP_METHOD(Phalcon_Mvc_Micro, handle) { } } if (Z_TYPE_P(&returnedValue) == IS_STRING) { - ZEPHIR_INIT_VAR(&_52$$67); - ZVAL_STRING(&_52$$67, "response"); - ZEPHIR_CALL_METHOD(&_51$$67, &dependencyInjector, "getshared", NULL, 0, &_52$$67); + ZEPHIR_INIT_VAR(&_53$$67); + ZVAL_STRING(&_53$$67, "response"); + ZEPHIR_CALL_METHOD(&_52$$67, &dependencyInjector, "getshared", NULL, 0, &_53$$67); zephir_check_call_status(); - ZEPHIR_CPY_WRT(&response, &_51$$67); + ZEPHIR_CPY_WRT(&response, &_52$$67); ZEPHIR_CALL_METHOD(NULL, &response, "setcontent", NULL, 0, &returnedValue); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, &response, "send", NULL, 0); @@ -86819,7 +85338,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, __construct) { if (Z_TYPE_P(dependencyInjector) != IS_OBJECT) { - ZEPHIR_CALL_CE_STATIC(dependencyInjector, phalcon_di_ce, "getdefault", &_0, 1); + ZEPHIR_CALL_CE_STATIC(dependencyInjector, phalcon_di_ce, "getdefault", &_0, 0); zephir_check_call_status(); } if (Z_TYPE_P(dependencyInjector) != IS_OBJECT) { @@ -86987,11 +85506,11 @@ static PHP_METHOD(Phalcon_Mvc_Model, setSource) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &source_param); - if (unlikely(Z_TYPE_P(source_param) != IS_STRING && Z_TYPE_P(source_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(source_param) != IS_STRING && Z_TYPE_P(source_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'source' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(source_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(source_param) == IS_STRING)) { zephir_get_strval(&source, source_param); } else { ZEPHIR_INIT_VAR(&source); @@ -87036,11 +85555,11 @@ static PHP_METHOD(Phalcon_Mvc_Model, setSchema) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &schema_param); - if (unlikely(Z_TYPE_P(schema_param) != IS_STRING && Z_TYPE_P(schema_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schema_param) != IS_STRING && Z_TYPE_P(schema_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schema' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schema_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schema_param) == IS_STRING)) { zephir_get_strval(&schema, schema_param); } else { ZEPHIR_INIT_VAR(&schema); @@ -87085,11 +85604,11 @@ static PHP_METHOD(Phalcon_Mvc_Model, setConnectionService) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &connectionService_param); - if (unlikely(Z_TYPE_P(connectionService_param) != IS_STRING && Z_TYPE_P(connectionService_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(connectionService_param) != IS_STRING && Z_TYPE_P(connectionService_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'connectionService' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(connectionService_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(connectionService_param) == IS_STRING)) { zephir_get_strval(&connectionService, connectionService_param); } else { ZEPHIR_INIT_VAR(&connectionService); @@ -87117,11 +85636,11 @@ static PHP_METHOD(Phalcon_Mvc_Model, setReadConnectionService) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &connectionService_param); - if (unlikely(Z_TYPE_P(connectionService_param) != IS_STRING && Z_TYPE_P(connectionService_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(connectionService_param) != IS_STRING && Z_TYPE_P(connectionService_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'connectionService' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(connectionService_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(connectionService_param) == IS_STRING)) { zephir_get_strval(&connectionService, connectionService_param); } else { ZEPHIR_INIT_VAR(&connectionService); @@ -87149,11 +85668,11 @@ static PHP_METHOD(Phalcon_Mvc_Model, setWriteConnectionService) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &connectionService_param); - if (unlikely(Z_TYPE_P(connectionService_param) != IS_STRING && Z_TYPE_P(connectionService_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(connectionService_param) != IS_STRING && Z_TYPE_P(connectionService_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'connectionService' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(connectionService_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(connectionService_param) == IS_STRING)) { zephir_get_strval(&connectionService, connectionService_param); } else { ZEPHIR_INIT_VAR(&connectionService); @@ -87373,7 +85892,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, assign) { object_init_ex(&_5$$13, phalcon_mvc_model_exception_ce); ZEPHIR_INIT_LNVAR(_6$$13); ZEPHIR_CONCAT_SVS(&_6$$13, "Column '", &attribute, "' doesn\\'t make part of the column map"); - ZEPHIR_CALL_METHOD(NULL, &_5$$13, "__construct", &_7, 9, &_6$$13); + ZEPHIR_CALL_METHOD(NULL, &_5$$13, "__construct", &_7, 4, &_6$$13); zephir_check_call_status(); zephir_throw_exception_debug(&_5$$13, "phalcon/mvc/model.zep", 487 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -87392,7 +85911,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, assign) { continue; } } - ZEPHIR_CALL_METHOD(&_8$$16, this_ptr, "_possiblesetter", &_9, 315, &attributeField, &value); + ZEPHIR_CALL_METHOD(&_8$$16, this_ptr, "_possiblesetter", &_9, 284, &attributeField, &value); zephir_check_call_status(); if (!(zephir_is_true(&_8$$16))) { zephir_update_property_zval_zval(this_ptr, &attributeField, &value TSRMLS_CC); @@ -87478,7 +85997,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, cloneResultMap) { object_init_ex(&_4$$7, phalcon_mvc_model_exception_ce); ZEPHIR_INIT_LNVAR(_5$$7); ZEPHIR_CONCAT_SVS(&_5$$7, "Column '", &key, "' doesn't make part of the column map"); - ZEPHIR_CALL_METHOD(NULL, &_4$$7, "__construct", &_6, 9, &_5$$7); + ZEPHIR_CALL_METHOD(NULL, &_4$$7, "__construct", &_6, 4, &_5$$7); zephir_check_call_status(); zephir_throw_exception_debug(&_4$$7, "phalcon/mvc/model.zep", 559 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -87500,7 +86019,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, cloneResultMap) { do { if (ZEPHIR_IS_LONG(&_8$$10, 0)) { ZVAL_LONG(&_9$$11, 10); - ZEPHIR_CALL_FUNCTION(&castValue, "intval", &_10, 36, &value, &_9$$11); + ZEPHIR_CALL_FUNCTION(&castValue, "intval", &_10, 30, &value, &_9$$11); zephir_check_call_status(); break; } @@ -87614,7 +86133,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, cloneResultMapHydrate) { object_init_ex(&_3$$11, phalcon_mvc_model_exception_ce); ZEPHIR_INIT_LNVAR(_4$$11); ZEPHIR_CONCAT_SVS(&_4$$11, "Column '", &key, "' doesn't make part of the column map"); - ZEPHIR_CALL_METHOD(NULL, &_3$$11, "__construct", &_5, 9, &_4$$11); + ZEPHIR_CALL_METHOD(NULL, &_3$$11, "__construct", &_5, 4, &_4$$11); zephir_check_call_status(); zephir_throw_exception_debug(&_3$$11, "phalcon/mvc/model.zep", 672 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -87746,7 +86265,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, find) { } - ZEPHIR_CALL_CE_STATIC(&dependencyInjector, phalcon_di_ce, "getdefault", &_0, 1); + ZEPHIR_CALL_CE_STATIC(&dependencyInjector, phalcon_di_ce, "getdefault", &_0, 0); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_2); ZVAL_STRING(&_2, "modelsManager"); @@ -87836,7 +86355,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, findFirst) { } - ZEPHIR_CALL_CE_STATIC(&dependencyInjector, phalcon_di_ce, "getdefault", &_0, 1); + ZEPHIR_CALL_CE_STATIC(&dependencyInjector, phalcon_di_ce, "getdefault", &_0, 0); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_2); ZVAL_STRING(&_2, "modelsManager"); @@ -87919,7 +86438,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, query) { if (Z_TYPE_P(dependencyInjector) != IS_OBJECT) { - ZEPHIR_CALL_CE_STATIC(dependencyInjector, phalcon_di_ce, "getdefault", &_0, 1); + ZEPHIR_CALL_CE_STATIC(dependencyInjector, phalcon_di_ce, "getdefault", &_0, 0); zephir_check_call_status(); } ZEPHIR_INIT_VAR(&criteria); @@ -87935,12 +86454,12 @@ static PHP_METHOD(Phalcon_Mvc_Model, query) { ZEPHIR_CALL_METHOD(NULL, &criteria, "__construct", NULL, 0); zephir_check_call_status(); } - ZEPHIR_CALL_METHOD(NULL, &criteria, "setdi", NULL, 316, dependencyInjector); + ZEPHIR_CALL_METHOD(NULL, &criteria, "setdi", NULL, 285, dependencyInjector); zephir_check_call_status(); } ZEPHIR_INIT_VAR(&_3); zephir_get_called_class(&_3 TSRMLS_CC); - ZEPHIR_CALL_METHOD(NULL, &criteria, "setmodelname", NULL, 317, &_3); + ZEPHIR_CALL_METHOD(NULL, &criteria, "setmodelname", NULL, 286, &_3); zephir_check_call_status(); RETURN_CCTOR(criteria); @@ -88039,7 +86558,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _exists) { object_init_ex(&_1$$9, phalcon_mvc_model_exception_ce); ZEPHIR_INIT_LNVAR(_2$$9); ZEPHIR_CONCAT_SVS(&_2$$9, "Column '", &field, "' isn't part of the column map"); - ZEPHIR_CALL_METHOD(NULL, &_1$$9, "__construct", &_3, 9, &_2$$9); + ZEPHIR_CALL_METHOD(NULL, &_1$$9, "__construct", &_3, 4, &_2$$9); zephir_check_call_status(); zephir_throw_exception_debug(&_1$$9, "phalcon/mvc/model.zep", 1038 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -88070,7 +86589,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _exists) { object_init_ex(&_5$$14, phalcon_mvc_model_exception_ce); ZEPHIR_INIT_LNVAR(_6$$14); ZEPHIR_CONCAT_SVS(&_6$$14, "Column '", &field, "' isn't part of the table columns"); - ZEPHIR_CALL_METHOD(NULL, &_5$$14, "__construct", &_3, 9, &_6$$14); + ZEPHIR_CALL_METHOD(NULL, &_5$$14, "__construct", &_3, 4, &_6$$14); zephir_check_call_status(); zephir_throw_exception_debug(&_5$$14, "phalcon/mvc/model.zep", 1064 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -88176,21 +86695,21 @@ static PHP_METHOD(Phalcon_Mvc_Model, _groupResult) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &functionName_param, &alias_param, ¶meters); - if (unlikely(Z_TYPE_P(functionName_param) != IS_STRING && Z_TYPE_P(functionName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(functionName_param) != IS_STRING && Z_TYPE_P(functionName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'functionName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(functionName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(functionName_param) == IS_STRING)) { zephir_get_strval(&functionName, functionName_param); } else { ZEPHIR_INIT_VAR(&functionName); ZVAL_EMPTY_STRING(&functionName); } - if (unlikely(Z_TYPE_P(alias_param) != IS_STRING && Z_TYPE_P(alias_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(alias_param) != IS_STRING && Z_TYPE_P(alias_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'alias' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(alias_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(alias_param) == IS_STRING)) { zephir_get_strval(&alias, alias_param); } else { ZEPHIR_INIT_VAR(&alias); @@ -88198,7 +86717,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _groupResult) { } - ZEPHIR_CALL_CE_STATIC(&dependencyInjector, phalcon_di_ce, "getdefault", &_0, 1); + ZEPHIR_CALL_CE_STATIC(&dependencyInjector, phalcon_di_ce, "getdefault", &_0, 0); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_2); ZVAL_STRING(&_2, "modelsManager"); @@ -88436,11 +86955,11 @@ static PHP_METHOD(Phalcon_Mvc_Model, fireEvent) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &eventName_param); - if (unlikely(Z_TYPE_P(eventName_param) != IS_STRING && Z_TYPE_P(eventName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(eventName_param) != IS_STRING && Z_TYPE_P(eventName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'eventName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(eventName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(eventName_param) == IS_STRING)) { zephir_get_strval(&eventName, eventName_param); } else { ZEPHIR_INIT_VAR(&eventName); @@ -88474,11 +86993,11 @@ static PHP_METHOD(Phalcon_Mvc_Model, fireEventCancel) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &eventName_param); - if (unlikely(Z_TYPE_P(eventName_param) != IS_STRING && Z_TYPE_P(eventName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(eventName_param) != IS_STRING && Z_TYPE_P(eventName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'eventName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(eventName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(eventName_param) == IS_STRING)) { zephir_get_strval(&eventName, eventName_param); } else { ZEPHIR_INIT_VAR(&eventName); @@ -88595,7 +87114,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, validate) { ZEPHIR_CALL_METHOD(&_6$$4, &message, "getcode", NULL, 0); zephir_check_call_status(); ZVAL_NULL(&_7$$4); - ZEPHIR_CALL_METHOD(NULL, &_2$$4, "__construct", &_8, 8, &_3$$4, &_4$$4, &_5$$4, &_7$$4, &_6$$4); + ZEPHIR_CALL_METHOD(NULL, &_2$$4, "__construct", &_8, 3, &_3$$4, &_4$$4, &_5$$4, &_7$$4, &_6$$4); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, this_ptr, "appendmessage", &_9, 0, &_2$$4); zephir_check_call_status(); @@ -88831,7 +87350,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysRestrict) { object_init_ex(&_16$$17, phalcon_mvc_model_message_ce); ZEPHIR_INIT_NVAR(&_17$$17); ZVAL_STRING(&_17$$17, "ConstraintViolation"); - ZEPHIR_CALL_METHOD(NULL, &_16$$17, "__construct", &_18, 8, &message, &fields, &_17$$17); + ZEPHIR_CALL_METHOD(NULL, &_16$$17, "__construct", &_18, 3, &message, &fields, &_17$$17); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, this_ptr, "appendmessage", &_19, 0, &_16$$17); zephir_check_call_status(); @@ -89111,7 +87630,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysReverseRestrict) { object_init_ex(&_13$$12, phalcon_mvc_model_message_ce); ZEPHIR_INIT_NVAR(&_14$$12); ZVAL_STRING(&_14$$12, "ConstraintViolation"); - ZEPHIR_CALL_METHOD(NULL, &_13$$12, "__construct", &_15, 8, &message, &fields, &_14$$12); + ZEPHIR_CALL_METHOD(NULL, &_13$$12, "__construct", &_15, 3, &message, &fields, &_14$$12); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, this_ptr, "appendmessage", &_16, 0, &_13$$12); zephir_check_call_status(); @@ -89219,7 +87738,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _preSave) { } } if (ZEPHIR_GLOBAL(orm).virtual_foreign_keys) { - ZEPHIR_CALL_METHOD(&_7$$9, this_ptr, "_checkforeignkeysrestrict", NULL, 318); + ZEPHIR_CALL_METHOD(&_7$$9, this_ptr, "_checkforeignkeysrestrict", NULL, 287); zephir_check_call_status(); if (ZEPHIR_IS_FALSE_IDENTICAL(&_7$$9)) { RETURN_MM_BOOL(0); @@ -89264,7 +87783,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _preSave) { object_init_ex(&_9$$20, phalcon_mvc_model_exception_ce); ZEPHIR_INIT_LNVAR(_10$$20); ZEPHIR_CONCAT_SVS(&_10$$20, "Column '", &field, "' isn't part of the column map"); - ZEPHIR_CALL_METHOD(NULL, &_9$$20, "__construct", &_11, 9, &_10$$20); + ZEPHIR_CALL_METHOD(NULL, &_9$$20, "__construct", &_11, 4, &_10$$20); zephir_check_call_status(); zephir_throw_exception_debug(&_9$$20, "phalcon/mvc/model.zep", 2071 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -89323,7 +87842,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _preSave) { ZEPHIR_CONCAT_VS(&_17$$32, &attributeField, " is required"); ZEPHIR_INIT_NVAR(&_18$$32); ZVAL_STRING(&_18$$32, "PresenceOf"); - ZEPHIR_CALL_METHOD(NULL, &_16$$32, "__construct", &_19, 8, &_17$$32, &attributeField, &_18$$32); + ZEPHIR_CALL_METHOD(NULL, &_16$$32, "__construct", &_19, 3, &_17$$32, &attributeField, &_18$$32); zephir_check_call_status(); zephir_update_property_array_append(this_ptr, SL("_errorMessages"), &_16$$32 TSRMLS_CC); error = 1; @@ -89457,10 +87976,10 @@ static PHP_METHOD(Phalcon_Mvc_Model, _postSave) { static PHP_METHOD(Phalcon_Mvc_Model, _doLowInsert) { - zend_bool useExplicitIdentity = 0, _17, _5$$11, _14$$22; + zend_bool useExplicitIdentity = 0, _17, _5$$11, _14$$23; zephir_fcall_cache_entry *_4 = NULL, *_6 = NULL, *_10 = NULL; int ZEPHIR_LAST_CALL_STATUS; - zval *metaData, metaData_sub, *connection, connection_sub, *table, table_sub, *identityField, identityField_sub, __$null, bindSkip, fields, values, bindTypes, attributes, bindDataTypes, automaticAttributes, field, columnMap, value, attributeField, success, bindType, defaultValue, sequenceName, defaultValues, source, schema, snapshot, lastInsertedId, manager, _0, *_1, _2$$8, _3$$8, _7$$13, _8$$13, _9$$15, _11$$17, _12$$20, _13$$20, _15$$27, _16$$27, _18$$30, _19$$30; + zval *metaData, metaData_sub, *connection, connection_sub, *table, table_sub, *identityField, identityField_sub, __$null, bindSkip, fields, values, bindTypes, attributes, bindDataTypes, automaticAttributes, field, columnMap, value, attributeField, success, bindType, defaultValue, sequenceName, defaultValues, source, schema, snapshot, lastInsertedId, manager, _0, *_1, _2$$8, _3$$8, _7$$14, _8$$14, _9$$16, _11$$18, _12$$21, _13$$21, _15$$28, _16$$28, _18$$31, _19$$31; ZEPHIR_INIT_THIS(); ZVAL_UNDEF(&metaData_sub); @@ -89492,16 +88011,16 @@ static PHP_METHOD(Phalcon_Mvc_Model, _doLowInsert) { ZVAL_UNDEF(&_0); ZVAL_UNDEF(&_2$$8); ZVAL_UNDEF(&_3$$8); - ZVAL_UNDEF(&_7$$13); - ZVAL_UNDEF(&_8$$13); - ZVAL_UNDEF(&_9$$15); - ZVAL_UNDEF(&_11$$17); - ZVAL_UNDEF(&_12$$20); - ZVAL_UNDEF(&_13$$20); - ZVAL_UNDEF(&_15$$27); - ZVAL_UNDEF(&_16$$27); - ZVAL_UNDEF(&_18$$30); - ZVAL_UNDEF(&_19$$30); + ZVAL_UNDEF(&_7$$14); + ZVAL_UNDEF(&_8$$14); + ZVAL_UNDEF(&_9$$16); + ZVAL_UNDEF(&_11$$18); + ZVAL_UNDEF(&_12$$21); + ZVAL_UNDEF(&_13$$21); + ZVAL_UNDEF(&_15$$28); + ZVAL_UNDEF(&_16$$28); + ZVAL_UNDEF(&_18$$31); + ZVAL_UNDEF(&_19$$31); ZEPHIR_MM_GROW(); zephir_fetch_params(1, 4, 0, &metaData, &connection, &table, &identityField); @@ -89535,7 +88054,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _doLowInsert) { ZEPHIR_INIT_NVAR(&columnMap); ZVAL_NULL(&columnMap); } - zephir_is_iterable(&attributes, 0, "phalcon/mvc/model.zep", 2327); + zephir_is_iterable(&attributes, 0, "phalcon/mvc/model.zep", 2329); ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&attributes), _1) { ZEPHIR_INIT_NVAR(&field); @@ -89548,7 +88067,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _doLowInsert) { object_init_ex(&_2$$8, phalcon_mvc_model_exception_ce); ZEPHIR_INIT_LNVAR(_3$$8); ZEPHIR_CONCAT_SVS(&_3$$8, "Column '", &field, "' isn't part of the column map"); - ZEPHIR_CALL_METHOD(NULL, &_2$$8, "__construct", &_4, 9, &_3$$8); + ZEPHIR_CALL_METHOD(NULL, &_2$$8, "__construct", &_4, 4, &_3$$8); zephir_check_call_status(); zephir_throw_exception_debug(&_2$$8, "phalcon/mvc/model.zep", 2276 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -89565,37 +88084,39 @@ static PHP_METHOD(Phalcon_Mvc_Model, _doLowInsert) { _5$$11 = zephir_array_isset(&defaultValues, &field); } if (_5$$11) { + zephir_array_update_zval(&snapshot, &attributeField, &__$null, PH_COPY | PH_SEPARATE); ZEPHIR_CALL_METHOD(&value, connection, "getdefaultvalue", &_6, 0); zephir_check_call_status(); + } else { + zephir_array_update_zval(&snapshot, &attributeField, &value, PH_COPY | PH_SEPARATE); } ZEPHIR_OBS_NVAR(&bindType); if (!(zephir_array_isset_fetch(&bindType, &bindDataTypes, &field, 0 TSRMLS_CC))) { - ZEPHIR_INIT_NVAR(&_7$$13); - object_init_ex(&_7$$13, phalcon_mvc_model_exception_ce); - ZEPHIR_INIT_LNVAR(_8$$13); - ZEPHIR_CONCAT_SVS(&_8$$13, "Column '", &field, "' have not defined a bind data type"); - ZEPHIR_CALL_METHOD(NULL, &_7$$13, "__construct", &_4, 9, &_8$$13); + ZEPHIR_INIT_NVAR(&_7$$14); + object_init_ex(&_7$$14, phalcon_mvc_model_exception_ce); + ZEPHIR_INIT_LNVAR(_8$$14); + ZEPHIR_CONCAT_SVS(&_8$$14, "Column '", &field, "' have not defined a bind data type"); + ZEPHIR_CALL_METHOD(NULL, &_7$$14, "__construct", &_4, 4, &_8$$14); zephir_check_call_status(); - zephir_throw_exception_debug(&_7$$13, "phalcon/mvc/model.zep", 2300 TSRMLS_CC); + zephir_throw_exception_debug(&_7$$14, "phalcon/mvc/model.zep", 2303 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } - zephir_array_append(&fields, &field, PH_SEPARATE, "phalcon/mvc/model.zep", 2303); - zephir_array_append(&values, &value, PH_SEPARATE, "phalcon/mvc/model.zep", 2303); - zephir_array_append(&bindTypes, &bindType, PH_SEPARATE, "phalcon/mvc/model.zep", 2303); - zephir_array_update_zval(&snapshot, &attributeField, &value, PH_COPY | PH_SEPARATE); + zephir_array_append(&fields, &field, PH_SEPARATE, "phalcon/mvc/model.zep", 2306); + zephir_array_append(&values, &value, PH_SEPARATE, "phalcon/mvc/model.zep", 2306); + zephir_array_append(&bindTypes, &bindType, PH_SEPARATE, "phalcon/mvc/model.zep", 2306); } else { if (zephir_array_isset(&defaultValues, &field)) { - ZEPHIR_CALL_METHOD(&_9$$15, connection, "getdefaultvalue", &_10, 0); + ZEPHIR_CALL_METHOD(&_9$$16, connection, "getdefaultvalue", &_10, 0); zephir_check_call_status(); - zephir_array_append(&values, &_9$$15, PH_SEPARATE, "phalcon/mvc/model.zep", 2308); + zephir_array_append(&values, &_9$$16, PH_SEPARATE, "phalcon/mvc/model.zep", 2310); zephir_array_update_zval(&snapshot, &attributeField, &__$null, PH_COPY | PH_SEPARATE); } else { - zephir_array_append(&values, &value, PH_SEPARATE, "phalcon/mvc/model.zep", 2314); + zephir_array_append(&values, &value, PH_SEPARATE, "phalcon/mvc/model.zep", 2316); zephir_array_update_zval(&snapshot, &attributeField, &value, PH_COPY | PH_SEPARATE); } - zephir_array_append(&fields, &field, PH_SEPARATE, "phalcon/mvc/model.zep", 2318); - zephir_array_append(&bindTypes, &bindSkip, PH_SEPARATE, "phalcon/mvc/model.zep", 2318); + zephir_array_append(&fields, &field, PH_SEPARATE, "phalcon/mvc/model.zep", 2320); + zephir_array_append(&bindTypes, &bindSkip, PH_SEPARATE, "phalcon/mvc/model.zep", 2320); } } } @@ -89604,22 +88125,22 @@ static PHP_METHOD(Phalcon_Mvc_Model, _doLowInsert) { if (!ZEPHIR_IS_FALSE_IDENTICAL(identityField)) { ZEPHIR_CALL_METHOD(&defaultValue, connection, "getdefaultidvalue", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_11$$17, connection, "useexplicitidvalue", NULL, 0); + ZEPHIR_CALL_METHOD(&_11$$18, connection, "useexplicitidvalue", NULL, 0); zephir_check_call_status(); - useExplicitIdentity = zephir_get_boolval(&_11$$17); + useExplicitIdentity = zephir_get_boolval(&_11$$18); if (useExplicitIdentity) { - zephir_array_append(&fields, identityField, PH_SEPARATE, "phalcon/mvc/model.zep", 2336); + zephir_array_append(&fields, identityField, PH_SEPARATE, "phalcon/mvc/model.zep", 2338); } if (Z_TYPE_P(&columnMap) == IS_ARRAY) { ZEPHIR_OBS_NVAR(&attributeField); if (!(zephir_array_isset_fetch(&attributeField, &columnMap, identityField, 0 TSRMLS_CC))) { - ZEPHIR_INIT_VAR(&_12$$20); - object_init_ex(&_12$$20, phalcon_mvc_model_exception_ce); - ZEPHIR_INIT_VAR(&_13$$20); - ZEPHIR_CONCAT_SVS(&_13$$20, "Identity column '", identityField, "' isn't part of the column map"); - ZEPHIR_CALL_METHOD(NULL, &_12$$20, "__construct", &_4, 9, &_13$$20); + ZEPHIR_INIT_VAR(&_12$$21); + object_init_ex(&_12$$21, phalcon_mvc_model_exception_ce); + ZEPHIR_INIT_VAR(&_13$$21); + ZEPHIR_CONCAT_SVS(&_13$$21, "Identity column '", identityField, "' isn't part of the column map"); + ZEPHIR_CALL_METHOD(NULL, &_12$$21, "__construct", &_4, 4, &_13$$21); zephir_check_call_status(); - zephir_throw_exception_debug(&_12$$20, "phalcon/mvc/model.zep", 2344 TSRMLS_CC); + zephir_throw_exception_debug(&_12$$21, "phalcon/mvc/model.zep", 2346 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -89628,38 +88149,38 @@ static PHP_METHOD(Phalcon_Mvc_Model, _doLowInsert) { } ZEPHIR_OBS_NVAR(&value); if (zephir_fetch_property_zval(&value, this_ptr, &attributeField, PH_SILENT_CC)) { - _14$$22 = Z_TYPE_P(&value) == IS_NULL; - if (!(_14$$22)) { - _14$$22 = ZEPHIR_IS_STRING_IDENTICAL(&value, ""); + _14$$23 = Z_TYPE_P(&value) == IS_NULL; + if (!(_14$$23)) { + _14$$23 = ZEPHIR_IS_STRING_IDENTICAL(&value, ""); } - if (_14$$22) { + if (_14$$23) { if (useExplicitIdentity) { - zephir_array_append(&values, &defaultValue, PH_SEPARATE, "phalcon/mvc/model.zep", 2357); - zephir_array_append(&bindTypes, &bindSkip, PH_SEPARATE, "phalcon/mvc/model.zep", 2357); + zephir_array_append(&values, &defaultValue, PH_SEPARATE, "phalcon/mvc/model.zep", 2359); + zephir_array_append(&bindTypes, &bindSkip, PH_SEPARATE, "phalcon/mvc/model.zep", 2359); } } else { if (!(useExplicitIdentity)) { - zephir_array_append(&fields, identityField, PH_SEPARATE, "phalcon/mvc/model.zep", 2365); + zephir_array_append(&fields, identityField, PH_SEPARATE, "phalcon/mvc/model.zep", 2367); } ZEPHIR_OBS_NVAR(&bindType); if (!(zephir_array_isset_fetch(&bindType, &bindDataTypes, identityField, 0 TSRMLS_CC))) { - ZEPHIR_INIT_VAR(&_15$$27); - object_init_ex(&_15$$27, phalcon_mvc_model_exception_ce); - ZEPHIR_INIT_VAR(&_16$$27); - ZEPHIR_CONCAT_SVS(&_16$$27, "Identity column '", identityField, "' isn\\'t part of the table columns"); - ZEPHIR_CALL_METHOD(NULL, &_15$$27, "__construct", &_4, 9, &_16$$27); + ZEPHIR_INIT_VAR(&_15$$28); + object_init_ex(&_15$$28, phalcon_mvc_model_exception_ce); + ZEPHIR_INIT_VAR(&_16$$28); + ZEPHIR_CONCAT_SVS(&_16$$28, "Identity column '", identityField, "' isn\\'t part of the table columns"); + ZEPHIR_CALL_METHOD(NULL, &_15$$28, "__construct", &_4, 4, &_16$$28); zephir_check_call_status(); - zephir_throw_exception_debug(&_15$$27, "phalcon/mvc/model.zep", 2372 TSRMLS_CC); + zephir_throw_exception_debug(&_15$$28, "phalcon/mvc/model.zep", 2374 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } - zephir_array_append(&values, &value, PH_SEPARATE, "phalcon/mvc/model.zep", 2375); - zephir_array_append(&bindTypes, &bindType, PH_SEPARATE, "phalcon/mvc/model.zep", 2375); + zephir_array_append(&values, &value, PH_SEPARATE, "phalcon/mvc/model.zep", 2377); + zephir_array_append(&bindTypes, &bindType, PH_SEPARATE, "phalcon/mvc/model.zep", 2377); } } else { if (useExplicitIdentity) { - zephir_array_append(&values, &defaultValue, PH_SEPARATE, "phalcon/mvc/model.zep", 2379); - zephir_array_append(&bindTypes, &bindSkip, PH_SEPARATE, "phalcon/mvc/model.zep", 2379); + zephir_array_append(&values, &defaultValue, PH_SEPARATE, "phalcon/mvc/model.zep", 2381); + zephir_array_append(&bindTypes, &bindSkip, PH_SEPARATE, "phalcon/mvc/model.zep", 2381); } } } @@ -89672,9 +88193,9 @@ static PHP_METHOD(Phalcon_Mvc_Model, _doLowInsert) { if (_17) { ZEPHIR_INIT_VAR(&sequenceName); ZVAL_NULL(&sequenceName); - ZEPHIR_CALL_METHOD(&_18$$30, connection, "supportsequences", NULL, 0); + ZEPHIR_CALL_METHOD(&_18$$31, connection, "supportsequences", NULL, 0); zephir_check_call_status(); - if (ZEPHIR_IS_TRUE_IDENTICAL(&_18$$30)) { + if (ZEPHIR_IS_TRUE_IDENTICAL(&_18$$31)) { if ((zephir_method_exists_ex(this_ptr, SL("getsequencename") TSRMLS_CC) == SUCCESS)) { ZEPHIR_CALL_METHOD(&sequenceName, this_ptr, "getsequencename", NULL, 0); zephir_check_call_status(); @@ -89695,9 +88216,9 @@ static PHP_METHOD(Phalcon_Mvc_Model, _doLowInsert) { zephir_check_call_status(); zephir_update_property_zval_zval(this_ptr, &attributeField, &lastInsertedId TSRMLS_CC); zephir_array_update_zval(&snapshot, &attributeField, &lastInsertedId, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(&_19$$30, &manager, "iskeepingsnapshots", NULL, 0, this_ptr); + ZEPHIR_CALL_METHOD(&_19$$31, &manager, "iskeepingsnapshots", NULL, 0, this_ptr); zephir_check_call_status(); - if (zephir_is_true(&_19$$30)) { + if (zephir_is_true(&_19$$31)) { zephir_update_property_zval(this_ptr, SL("_snapshot"), &snapshot); } zephir_update_property_zval(this_ptr, SL("_uniqueParams"), &__$null); @@ -89804,7 +88325,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _doLowUpdate) { ZEPHIR_INIT_NVAR(&columnMap); ZVAL_NULL(&columnMap); } - zephir_is_iterable(&nonPrimary, 0, "phalcon/mvc/model.zep", 2596); + zephir_is_iterable(&nonPrimary, 0, "phalcon/mvc/model.zep", 2598); ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&nonPrimary), _2) { ZEPHIR_INIT_NVAR(&field); @@ -89816,9 +88337,9 @@ static PHP_METHOD(Phalcon_Mvc_Model, _doLowUpdate) { object_init_ex(&_3$$9, phalcon_mvc_model_exception_ce); ZEPHIR_INIT_LNVAR(_4$$9); ZEPHIR_CONCAT_SVS(&_4$$9, "Column '", &field, "' have not defined a bind data type"); - ZEPHIR_CALL_METHOD(NULL, &_3$$9, "__construct", &_5, 9, &_4$$9); + ZEPHIR_CALL_METHOD(NULL, &_3$$9, "__construct", &_5, 4, &_4$$9); zephir_check_call_status(); - zephir_throw_exception_debug(&_3$$9, "phalcon/mvc/model.zep", 2488 TSRMLS_CC); + zephir_throw_exception_debug(&_3$$9, "phalcon/mvc/model.zep", 2490 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -89829,9 +88350,9 @@ static PHP_METHOD(Phalcon_Mvc_Model, _doLowUpdate) { object_init_ex(&_6$$11, phalcon_mvc_model_exception_ce); ZEPHIR_INIT_LNVAR(_7$$11); ZEPHIR_CONCAT_SVS(&_7$$11, "Column '", &field, "' isn't part of the column map"); - ZEPHIR_CALL_METHOD(NULL, &_6$$11, "__construct", &_5, 9, &_7$$11); + ZEPHIR_CALL_METHOD(NULL, &_6$$11, "__construct", &_5, 4, &_7$$11); zephir_check_call_status(); - zephir_throw_exception_debug(&_6$$11, "phalcon/mvc/model.zep", 2496 TSRMLS_CC); + zephir_throw_exception_debug(&_6$$11, "phalcon/mvc/model.zep", 2498 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -89841,9 +88362,9 @@ static PHP_METHOD(Phalcon_Mvc_Model, _doLowUpdate) { ZEPHIR_OBS_NVAR(&value); if (zephir_fetch_property_zval(&value, this_ptr, &attributeField, PH_SILENT_CC)) { if (!(useDynamicUpdate)) { - zephir_array_append(&fields, &field, PH_SEPARATE, "phalcon/mvc/model.zep", 2512); - zephir_array_append(&values, &value, PH_SEPARATE, "phalcon/mvc/model.zep", 2512); - zephir_array_append(&bindTypes, &bindType, PH_SEPARATE, "phalcon/mvc/model.zep", 2513); + zephir_array_append(&fields, &field, PH_SEPARATE, "phalcon/mvc/model.zep", 2514); + zephir_array_append(&values, &value, PH_SEPARATE, "phalcon/mvc/model.zep", 2514); + zephir_array_append(&bindTypes, &bindType, PH_SEPARATE, "phalcon/mvc/model.zep", 2515); } else { ZEPHIR_OBS_NVAR(&snapshotValue); if (!(zephir_array_isset_fetch(&snapshotValue, &snapshot, &attributeField, 0 TSRMLS_CC))) { @@ -89861,9 +88382,9 @@ static PHP_METHOD(Phalcon_Mvc_Model, _doLowUpdate) { object_init_ex(&_8$$22, phalcon_mvc_model_exception_ce); ZEPHIR_INIT_LNVAR(_9$$22); ZEPHIR_CONCAT_SVS(&_9$$22, "Column '", &field, "' have not defined a data type"); - ZEPHIR_CALL_METHOD(NULL, &_8$$22, "__construct", &_5, 9, &_9$$22); + ZEPHIR_CALL_METHOD(NULL, &_8$$22, "__construct", &_5, 4, &_9$$22); zephir_check_call_status(); - zephir_throw_exception_debug(&_8$$22, "phalcon/mvc/model.zep", 2538 TSRMLS_CC); + zephir_throw_exception_debug(&_8$$22, "phalcon/mvc/model.zep", 2540 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -89877,9 +88398,9 @@ static PHP_METHOD(Phalcon_Mvc_Model, _doLowUpdate) { break; } if (ZEPHIR_IS_LONG(&dataType, 3) || ZEPHIR_IS_LONG(&dataType, 7)) { - ZEPHIR_CALL_FUNCTION(&_10$$25, "floatval", &_11, 319, &snapshotValue); + ZEPHIR_CALL_FUNCTION(&_10$$25, "floatval", &_11, 288, &snapshotValue); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_12$$25, "floatval", &_11, 319, &value); + ZEPHIR_CALL_FUNCTION(&_12$$25, "floatval", &_11, 288, &value); zephir_check_call_status(); changed = !ZEPHIR_IS_IDENTICAL(&_10$$25, &_12$$25); break; @@ -89897,17 +88418,17 @@ static PHP_METHOD(Phalcon_Mvc_Model, _doLowUpdate) { } } if (changed) { - zephir_array_append(&fields, &field, PH_SEPARATE, "phalcon/mvc/model.zep", 2580); - zephir_array_append(&values, &value, PH_SEPARATE, "phalcon/mvc/model.zep", 2580); - zephir_array_append(&bindTypes, &bindType, PH_SEPARATE, "phalcon/mvc/model.zep", 2581); + zephir_array_append(&fields, &field, PH_SEPARATE, "phalcon/mvc/model.zep", 2582); + zephir_array_append(&values, &value, PH_SEPARATE, "phalcon/mvc/model.zep", 2582); + zephir_array_append(&bindTypes, &bindType, PH_SEPARATE, "phalcon/mvc/model.zep", 2583); } } zephir_array_update_zval(&newSnapshot, &attributeField, &value, PH_COPY | PH_SEPARATE); } else { zephir_array_update_zval(&newSnapshot, &attributeField, &__$null, PH_COPY | PH_SEPARATE); - zephir_array_append(&fields, &field, PH_SEPARATE, "phalcon/mvc/model.zep", 2588); - zephir_array_append(&values, &__$null, PH_SEPARATE, "phalcon/mvc/model.zep", 2588); - zephir_array_append(&bindTypes, &bindSkip, PH_SEPARATE, "phalcon/mvc/model.zep", 2588); + zephir_array_append(&fields, &field, PH_SEPARATE, "phalcon/mvc/model.zep", 2590); + zephir_array_append(&values, &__$null, PH_SEPARATE, "phalcon/mvc/model.zep", 2590); + zephir_array_append(&bindTypes, &bindSkip, PH_SEPARATE, "phalcon/mvc/model.zep", 2590); } } } ZEND_HASH_FOREACH_END(); @@ -89925,12 +88446,12 @@ static PHP_METHOD(Phalcon_Mvc_Model, _doLowUpdate) { ZEPHIR_CALL_METHOD(&primaryKeys, metaData, "getprimarykeyattributes", NULL, 0, this_ptr); zephir_check_call_status(); if (!(zephir_fast_count_int(&primaryKeys TSRMLS_CC))) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "A primary key must be defined in the model in order to perform the operation", "phalcon/mvc/model.zep", 2615); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "A primary key must be defined in the model in order to perform the operation", "phalcon/mvc/model.zep", 2617); return; } ZEPHIR_INIT_NVAR(&uniqueParams); array_init(&uniqueParams); - zephir_is_iterable(&primaryKeys, 0, "phalcon/mvc/model.zep", 2640); + zephir_is_iterable(&primaryKeys, 0, "phalcon/mvc/model.zep", 2642); ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&primaryKeys), _15$$31) { ZEPHIR_INIT_NVAR(&field); @@ -89942,9 +88463,9 @@ static PHP_METHOD(Phalcon_Mvc_Model, _doLowUpdate) { object_init_ex(&_16$$35, phalcon_mvc_model_exception_ce); ZEPHIR_INIT_LNVAR(_17$$35); ZEPHIR_CONCAT_SVS(&_17$$35, "Column '", &field, "' isn't part of the column map"); - ZEPHIR_CALL_METHOD(NULL, &_16$$35, "__construct", &_5, 9, &_17$$35); + ZEPHIR_CALL_METHOD(NULL, &_16$$35, "__construct", &_5, 4, &_17$$35); zephir_check_call_status(); - zephir_throw_exception_debug(&_16$$35, "phalcon/mvc/model.zep", 2626 TSRMLS_CC); + zephir_throw_exception_debug(&_16$$35, "phalcon/mvc/model.zep", 2628 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -89954,10 +88475,10 @@ static PHP_METHOD(Phalcon_Mvc_Model, _doLowUpdate) { ZEPHIR_OBS_NVAR(&value); if (zephir_fetch_property_zval(&value, this_ptr, &attributeField, PH_SILENT_CC)) { zephir_array_update_zval(&newSnapshot, &attributeField, &value, PH_COPY | PH_SEPARATE); - zephir_array_append(&uniqueParams, &value, PH_SEPARATE, "phalcon/mvc/model.zep", 2634); + zephir_array_append(&uniqueParams, &value, PH_SEPARATE, "phalcon/mvc/model.zep", 2636); } else { zephir_array_update_zval(&newSnapshot, &attributeField, &__$null, PH_COPY | PH_SEPARATE); - zephir_array_append(&uniqueParams, &__$null, PH_SEPARATE, "phalcon/mvc/model.zep", 2637); + zephir_array_append(&uniqueParams, &__$null, PH_SEPARATE, "phalcon/mvc/model.zep", 2639); } } ZEND_HASH_FOREACH_END(); ZEPHIR_INIT_NVAR(&field); @@ -90041,7 +88562,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _preSaveRelatedRecords) { ZEPHIR_CALL_METHOD(&_1, this_ptr, "getmodelsmanager", NULL, 0); zephir_check_call_status(); ZEPHIR_CPY_WRT(&manager, &_1); - zephir_is_iterable(related, 0, "phalcon/mvc/model.zep", 2756); + zephir_is_iterable(related, 0, "phalcon/mvc/model.zep", 2758); ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(related), _3, _4, _2) { ZEPHIR_INIT_NVAR(&name); @@ -90067,7 +88588,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _preSaveRelatedRecords) { } ZEPHIR_CALL_METHOD(NULL, connection, "rollback", &_8, 0, &_7$$6); zephir_check_call_status(); - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Only objects can be stored as part of belongs-to relations", "phalcon/mvc/model.zep", 2705); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Only objects can be stored as part of belongs-to relations", "phalcon/mvc/model.zep", 2707); return; } ZEPHIR_CALL_METHOD(&columns, &relation, "getfields", NULL, 0); @@ -90084,7 +88605,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _preSaveRelatedRecords) { } ZEPHIR_CALL_METHOD(NULL, connection, "rollback", &_10, 0, &_9$$7); zephir_check_call_status(); - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Not implemented", "phalcon/mvc/model.zep", 2714); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Not implemented", "phalcon/mvc/model.zep", 2716); return; } ZEPHIR_CALL_METHOD(&_11$$5, &record, "save", NULL, 0); @@ -90092,7 +88613,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _preSaveRelatedRecords) { if (!(zephir_is_true(&_11$$5))) { ZEPHIR_CALL_METHOD(&_12$$8, &record, "getmessages", NULL, 0); zephir_check_call_status(); - zephir_is_iterable(&_12$$8, 0, "phalcon/mvc/model.zep", 2743); + zephir_is_iterable(&_12$$8, 0, "phalcon/mvc/model.zep", 2745); ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&_12$$8), _13$$8) { ZEPHIR_INIT_NVAR(&message); @@ -90187,7 +88708,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _postSaveRelatedRecords) { ZEPHIR_CALL_METHOD(&_0, this_ptr, "getmodelsmanager", NULL, 0); zephir_check_call_status(); ZEPHIR_CPY_WRT(&manager, &_0); - zephir_is_iterable(related, 0, "phalcon/mvc/model.zep", 2947); + zephir_is_iterable(related, 0, "phalcon/mvc/model.zep", 2949); ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(related), _2, _3, _1) { ZEPHIR_INIT_NVAR(&name); @@ -90219,7 +88740,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _postSaveRelatedRecords) { } ZEPHIR_CALL_METHOD(NULL, connection, "rollback", &_9, 0, &_8$$6); zephir_check_call_status(); - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Only objects/arrays can be stored as part of has-many/has-one/has-many-to-many relations", "phalcon/mvc/model.zep", 2795); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Only objects/arrays can be stored as part of has-many/has-one/has-many-to-many relations", "phalcon/mvc/model.zep", 2797); return; } ZEPHIR_CALL_METHOD(&columns, &relation, "getfields", NULL, 0); @@ -90236,7 +88757,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _postSaveRelatedRecords) { } ZEPHIR_CALL_METHOD(NULL, connection, "rollback", &_11, 0, &_10$$7); zephir_check_call_status(); - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Not implemented", "phalcon/mvc/model.zep", 2804); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Not implemented", "phalcon/mvc/model.zep", 2806); return; } if (Z_TYPE_P(&record) == IS_OBJECT) { @@ -90259,9 +88780,9 @@ static PHP_METHOD(Phalcon_Mvc_Model, _postSaveRelatedRecords) { object_init_ex(&_14$$10, phalcon_mvc_model_exception_ce); ZEPHIR_INIT_LNVAR(_15$$10); ZEPHIR_CONCAT_SVS(&_15$$10, "The column '", &columns, "' needs to be present in the model"); - ZEPHIR_CALL_METHOD(NULL, &_14$$10, "__construct", &_16, 9, &_15$$10); + ZEPHIR_CALL_METHOD(NULL, &_14$$10, "__construct", &_16, 4, &_15$$10); zephir_check_call_status(); - zephir_throw_exception_debug(&_14$$10, "phalcon/mvc/model.zep", 2818 TSRMLS_CC); + zephir_throw_exception_debug(&_14$$10, "phalcon/mvc/model.zep", 2820 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -90276,7 +88797,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _postSaveRelatedRecords) { ZEPHIR_CALL_METHOD(&intermediateReferencedFields, &relation, "getintermediatereferencedfields", NULL, 0); zephir_check_call_status(); } - zephir_is_iterable(&relatedRecords, 0, "phalcon/mvc/model.zep", 2933); + zephir_is_iterable(&relatedRecords, 0, "phalcon/mvc/model.zep", 2935); ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&relatedRecords), _18$$4) { ZEPHIR_INIT_NVAR(&recordAfter); @@ -90290,7 +88811,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _postSaveRelatedRecords) { if (!(zephir_is_true(&_19$$12))) { ZEPHIR_CALL_METHOD(&_20$$14, &recordAfter, "getmessages", NULL, 0); zephir_check_call_status(); - zephir_is_iterable(&_20$$14, 0, "phalcon/mvc/model.zep", 2875); + zephir_is_iterable(&_20$$14, 0, "phalcon/mvc/model.zep", 2877); ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&_20$$14), _21$$14) { ZEPHIR_INIT_NVAR(&message); @@ -90327,7 +88848,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _postSaveRelatedRecords) { if (!(zephir_is_true(&_27$$17))) { ZEPHIR_CALL_METHOD(&_28$$18, &intermediateModel, "getmessages", NULL, 0); zephir_check_call_status(); - zephir_is_iterable(&_28$$18, 0, "phalcon/mvc/model.zep", 2927); + zephir_is_iterable(&_28$$18, 0, "phalcon/mvc/model.zep", 2929); ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&_28$$18), _29$$18) { ZEPHIR_INIT_NVAR(&message); @@ -90365,9 +88886,9 @@ static PHP_METHOD(Phalcon_Mvc_Model, _postSaveRelatedRecords) { object_init_ex(&_34$$22, phalcon_mvc_model_exception_ce); ZEPHIR_INIT_LNVAR(_35$$22); ZEPHIR_CONCAT_SVSVS(&_35$$22, "There are no defined relations for the model '", &className, "' using alias '", &name, "'"); - ZEPHIR_CALL_METHOD(NULL, &_34$$22, "__construct", &_16, 9, &_35$$22); + ZEPHIR_CALL_METHOD(NULL, &_34$$22, "__construct", &_16, 4, &_35$$22); zephir_check_call_status(); - zephir_throw_exception_debug(&_34$$22, "phalcon/mvc/model.zep", 2939 TSRMLS_CC); + zephir_throw_exception_debug(&_34$$22, "phalcon/mvc/model.zep", 2941 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -90503,9 +89024,9 @@ static PHP_METHOD(Phalcon_Mvc_Model, save) { object_init_ex(&_9$$12, phalcon_mvc_model_validationfailed_ce); ZEPHIR_CALL_METHOD(&_10$$12, this_ptr, "getmessages", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, &_9$$12, "__construct", NULL, 320, this_ptr, &_10$$12); + ZEPHIR_CALL_METHOD(NULL, &_9$$12, "__construct", NULL, 289, this_ptr, &_10$$12); zephir_check_call_status(); - zephir_throw_exception_debug(&_9$$12, "phalcon/mvc/model.zep", 3061 TSRMLS_CC); + zephir_throw_exception_debug(&_9$$12, "phalcon/mvc/model.zep", 3063 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -90599,7 +89120,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, create) { ZVAL_NULL(&_5$$3); ZEPHIR_INIT_VAR(&_6$$3); ZVAL_STRING(&_6$$3, "InvalidCreateAttempt"); - ZEPHIR_CALL_METHOD(NULL, &_3$$3, "__construct", NULL, 8, &_4$$3, &_5$$3, &_6$$3); + ZEPHIR_CALL_METHOD(NULL, &_3$$3, "__construct", NULL, 3, &_4$$3, &_5$$3, &_6$$3); zephir_check_call_status(); zephir_array_fast_append(&_2$$3, &_3$$3); zephir_update_property_zval(this_ptr, SL("_errorMessages"), &_2$$3); @@ -90662,7 +89183,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, update) { ZVAL_NULL(&_6$$4); ZEPHIR_INIT_VAR(&_7$$4); ZVAL_STRING(&_7$$4, "InvalidUpdateAttempt"); - ZEPHIR_CALL_METHOD(NULL, &_4$$4, "__construct", NULL, 8, &_5$$4, &_6$$4, &_7$$4); + ZEPHIR_CALL_METHOD(NULL, &_4$$4, "__construct", NULL, 3, &_5$$4, &_6$$4, &_7$$4); zephir_check_call_status(); zephir_array_fast_append(&_3$$4, &_4$$4); zephir_update_property_zval(this_ptr, SL("_errorMessages"), &_3$$4); @@ -90731,7 +89252,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, delete) { array_init(&_1); zephir_update_property_zval(this_ptr, SL("_errorMessages"), &_1); if (ZEPHIR_GLOBAL(orm).virtual_foreign_keys) { - ZEPHIR_CALL_METHOD(&_2$$3, this_ptr, "_checkforeignkeysreverserestrict", NULL, 321); + ZEPHIR_CALL_METHOD(&_2$$3, this_ptr, "_checkforeignkeysreverserestrict", NULL, 290); zephir_check_call_status(); if (ZEPHIR_IS_FALSE_IDENTICAL(&_2$$3)) { RETURN_MM_BOOL(0); @@ -90755,10 +89276,10 @@ static PHP_METHOD(Phalcon_Mvc_Model, delete) { ZVAL_NULL(&columnMap); } if (!(zephir_fast_count_int(&primaryKeys TSRMLS_CC))) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "A primary key must be defined in the model in order to perform the operation", "phalcon/mvc/model.zep", 3262); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "A primary key must be defined in the model in order to perform the operation", "phalcon/mvc/model.zep", 3264); return; } - zephir_is_iterable(&primaryKeys, 0, "phalcon/mvc/model.zep", 3305); + zephir_is_iterable(&primaryKeys, 0, "phalcon/mvc/model.zep", 3307); ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&primaryKeys), _3) { ZEPHIR_INIT_NVAR(&primaryKey); @@ -90769,9 +89290,9 @@ static PHP_METHOD(Phalcon_Mvc_Model, delete) { object_init_ex(&_4$$9, phalcon_mvc_model_exception_ce); ZEPHIR_INIT_LNVAR(_5$$9); ZEPHIR_CONCAT_SVS(&_5$$9, "Column '", &primaryKey, "' have not defined a bind data type"); - ZEPHIR_CALL_METHOD(NULL, &_4$$9, "__construct", &_6, 9, &_5$$9); + ZEPHIR_CALL_METHOD(NULL, &_4$$9, "__construct", &_6, 4, &_5$$9); zephir_check_call_status(); - zephir_throw_exception_debug(&_4$$9, "phalcon/mvc/model.zep", 3274 TSRMLS_CC); + zephir_throw_exception_debug(&_4$$9, "phalcon/mvc/model.zep", 3276 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -90782,9 +89303,9 @@ static PHP_METHOD(Phalcon_Mvc_Model, delete) { object_init_ex(&_7$$11, phalcon_mvc_model_exception_ce); ZEPHIR_INIT_LNVAR(_8$$11); ZEPHIR_CONCAT_SVS(&_8$$11, "Column '", &primaryKey, "' isn't part of the column map"); - ZEPHIR_CALL_METHOD(NULL, &_7$$11, "__construct", &_6, 9, &_8$$11); + ZEPHIR_CALL_METHOD(NULL, &_7$$11, "__construct", &_6, 4, &_8$$11); zephir_check_call_status(); - zephir_throw_exception_debug(&_7$$11, "phalcon/mvc/model.zep", 3282 TSRMLS_CC); + zephir_throw_exception_debug(&_7$$11, "phalcon/mvc/model.zep", 3284 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -90797,19 +89318,19 @@ static PHP_METHOD(Phalcon_Mvc_Model, delete) { object_init_ex(&_9$$13, phalcon_mvc_model_exception_ce); ZEPHIR_INIT_LNVAR(_10$$13); ZEPHIR_CONCAT_SVS(&_10$$13, "Cannot delete the record because the primary key attribute: '", &attributeField, "' wasn't set"); - ZEPHIR_CALL_METHOD(NULL, &_9$$13, "__construct", &_6, 9, &_10$$13); + ZEPHIR_CALL_METHOD(NULL, &_9$$13, "__construct", &_6, 4, &_10$$13); zephir_check_call_status(); - zephir_throw_exception_debug(&_9$$13, "phalcon/mvc/model.zep", 3294 TSRMLS_CC); + zephir_throw_exception_debug(&_9$$13, "phalcon/mvc/model.zep", 3296 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } - zephir_array_append(&values, &value, PH_SEPARATE, "phalcon/mvc/model.zep", 3300); + zephir_array_append(&values, &value, PH_SEPARATE, "phalcon/mvc/model.zep", 3302); ZEPHIR_CALL_METHOD(&_11$$8, &writeConnection, "escapeidentifier", &_12, 0, &primaryKey); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_13$$8); ZEPHIR_CONCAT_VS(&_13$$8, &_11$$8, " = ?"); - zephir_array_append(&conditions, &_13$$8, PH_SEPARATE, "phalcon/mvc/model.zep", 3301); - zephir_array_append(&bindTypes, &bindType, PH_SEPARATE, "phalcon/mvc/model.zep", 3302); + zephir_array_append(&conditions, &_13$$8, PH_SEPARATE, "phalcon/mvc/model.zep", 3303); + zephir_array_append(&bindTypes, &bindType, PH_SEPARATE, "phalcon/mvc/model.zep", 3304); } ZEND_HASH_FOREACH_END(); ZEPHIR_INIT_NVAR(&primaryKey); if (ZEPHIR_GLOBAL(orm).events) { @@ -90848,7 +89369,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, delete) { ZEPHIR_CALL_METHOD(&success, &writeConnection, "delete", NULL, 0, &table, &_17, &values, &bindTypes); zephir_check_call_status(); if (ZEPHIR_GLOBAL(orm).virtual_foreign_keys) { - ZEPHIR_CALL_METHOD(&_18$$20, this_ptr, "_checkforeignkeysreversecascade", NULL, 322); + ZEPHIR_CALL_METHOD(&_18$$20, this_ptr, "_checkforeignkeysreversecascade", NULL, 291); zephir_check_call_status(); if (ZEPHIR_IS_FALSE_IDENTICAL(&_18$$20)) { RETURN_MM_BOOL(0); @@ -90913,7 +89434,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, refresh) { zephir_read_property(&_0, this_ptr, SL("_dirtyState"), PH_NOISY_CC | PH_READONLY); if (!ZEPHIR_IS_LONG(&_0, 0)) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The record cannot be refreshed because it does not exist or is deleted", "phalcon/mvc/model.zep", 3380); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The record cannot be refreshed because it does not exist or is deleted", "phalcon/mvc/model.zep", 3382); return; } ZEPHIR_CALL_METHOD(&metaData, this_ptr, "getmodelsmetadata", NULL, 0); @@ -90940,7 +89461,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, refresh) { ZEPHIR_CALL_METHOD(&_2$$6, this_ptr, "_exists", NULL, 0, &metaData, &readConnection, &table); zephir_check_call_status(); if (!(zephir_is_true(&_2$$6))) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The record cannot be refreshed because it does not exist or is deleted", "phalcon/mvc/model.zep", 3403); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The record cannot be refreshed because it does not exist or is deleted", "phalcon/mvc/model.zep", 3405); return; } ZEPHIR_OBS_NVAR(&uniqueKey); @@ -90949,14 +89470,14 @@ static PHP_METHOD(Phalcon_Mvc_Model, refresh) { ZEPHIR_OBS_VAR(&uniqueParams); zephir_read_property(&uniqueParams, this_ptr, SL("_uniqueParams"), PH_NOISY_CC); if (Z_TYPE_P(&uniqueParams) != IS_ARRAY) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The record cannot be refreshed because it does not exist or is deleted", "phalcon/mvc/model.zep", 3411); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The record cannot be refreshed because it does not exist or is deleted", "phalcon/mvc/model.zep", 3413); return; } ZEPHIR_INIT_VAR(&fields); array_init(&fields); ZEPHIR_CALL_METHOD(&_3, &metaData, "getattributes", NULL, 0, this_ptr); zephir_check_call_status(); - zephir_is_iterable(&_3, 0, "phalcon/mvc/model.zep", 3425); + zephir_is_iterable(&_3, 0, "phalcon/mvc/model.zep", 3427); ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&_3), _4) { ZEPHIR_INIT_NVAR(&attribute); @@ -90964,7 +89485,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, refresh) { ZEPHIR_INIT_NVAR(&_5$$9); zephir_create_array(&_5$$9, 1, 0 TSRMLS_CC); zephir_array_fast_append(&_5$$9, &attribute); - zephir_array_append(&fields, &_5$$9, PH_SEPARATE, "phalcon/mvc/model.zep", 3419); + zephir_array_append(&fields, &_5$$9, PH_SEPARATE, "phalcon/mvc/model.zep", 3421); } ZEND_HASH_FOREACH_END(); ZEPHIR_INIT_NVAR(&attribute); ZEPHIR_CALL_METHOD(&dialect, &readConnection, "getdialect", NULL, 0); @@ -91032,11 +89553,11 @@ static PHP_METHOD(Phalcon_Mvc_Model, readAttribute) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &attribute_param); - if (unlikely(Z_TYPE_P(attribute_param) != IS_STRING && Z_TYPE_P(attribute_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(attribute_param) != IS_STRING && Z_TYPE_P(attribute_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'attribute' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(attribute_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(attribute_param) == IS_STRING)) { zephir_get_strval(&attribute, attribute_param); } else { ZEPHIR_INIT_VAR(&attribute); @@ -91065,11 +89586,11 @@ static PHP_METHOD(Phalcon_Mvc_Model, writeAttribute) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &attribute_param, &value); - if (unlikely(Z_TYPE_P(attribute_param) != IS_STRING && Z_TYPE_P(attribute_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(attribute_param) != IS_STRING && Z_TYPE_P(attribute_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'attribute' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(attribute_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(attribute_param) == IS_STRING)) { zephir_get_strval(&attribute, attribute_param); } else { ZEPHIR_INIT_VAR(&attribute); @@ -91126,7 +89647,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, skipAttributesOnCreate) { ZEPHIR_INIT_VAR(&keysAttributes); array_init(&keysAttributes); - zephir_is_iterable(&attributes, 0, "phalcon/mvc/model.zep", 3539); + zephir_is_iterable(&attributes, 0, "phalcon/mvc/model.zep", 3541); ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&attributes), _0) { ZEPHIR_INIT_NVAR(&attribute); @@ -91163,7 +89684,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, skipAttributesOnUpdate) { ZEPHIR_INIT_VAR(&keysAttributes); array_init(&keysAttributes); - zephir_is_iterable(&attributes, 0, "phalcon/mvc/model.zep", 3571); + zephir_is_iterable(&attributes, 0, "phalcon/mvc/model.zep", 3573); ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&attributes), _0) { ZEPHIR_INIT_NVAR(&attribute); @@ -91200,7 +89721,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, allowEmptyStringValues) { ZEPHIR_INIT_VAR(&keysAttributes); array_init(&keysAttributes); - zephir_is_iterable(&attributes, 0, "phalcon/mvc/model.zep", 3603); + zephir_is_iterable(&attributes, 0, "phalcon/mvc/model.zep", 3605); ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&attributes), _0) { ZEPHIR_INIT_NVAR(&attribute); @@ -91233,11 +89754,11 @@ static PHP_METHOD(Phalcon_Mvc_Model, hasOne) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 1, &fields, &referenceModel_param, &referencedFields, &options); - if (unlikely(Z_TYPE_P(referenceModel_param) != IS_STRING && Z_TYPE_P(referenceModel_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(referenceModel_param) != IS_STRING && Z_TYPE_P(referenceModel_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'referenceModel' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(referenceModel_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(referenceModel_param) == IS_STRING)) { zephir_get_strval(&referenceModel, referenceModel_param); } else { ZEPHIR_INIT_VAR(&referenceModel); @@ -91273,11 +89794,11 @@ static PHP_METHOD(Phalcon_Mvc_Model, belongsTo) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 1, &fields, &referenceModel_param, &referencedFields, &options); - if (unlikely(Z_TYPE_P(referenceModel_param) != IS_STRING && Z_TYPE_P(referenceModel_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(referenceModel_param) != IS_STRING && Z_TYPE_P(referenceModel_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'referenceModel' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(referenceModel_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(referenceModel_param) == IS_STRING)) { zephir_get_strval(&referenceModel, referenceModel_param); } else { ZEPHIR_INIT_VAR(&referenceModel); @@ -91313,11 +89834,11 @@ static PHP_METHOD(Phalcon_Mvc_Model, hasMany) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 1, &fields, &referenceModel_param, &referencedFields, &options); - if (unlikely(Z_TYPE_P(referenceModel_param) != IS_STRING && Z_TYPE_P(referenceModel_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(referenceModel_param) != IS_STRING && Z_TYPE_P(referenceModel_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'referenceModel' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(referenceModel_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(referenceModel_param) == IS_STRING)) { zephir_get_strval(&referenceModel, referenceModel_param); } else { ZEPHIR_INIT_VAR(&referenceModel); @@ -91356,21 +89877,21 @@ static PHP_METHOD(Phalcon_Mvc_Model, hasManyToMany) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 6, 1, &fields, &intermediateModel_param, &intermediateFields, &intermediateReferencedFields, &referenceModel_param, &referencedFields, &options); - if (unlikely(Z_TYPE_P(intermediateModel_param) != IS_STRING && Z_TYPE_P(intermediateModel_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(intermediateModel_param) != IS_STRING && Z_TYPE_P(intermediateModel_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'intermediateModel' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(intermediateModel_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(intermediateModel_param) == IS_STRING)) { zephir_get_strval(&intermediateModel, intermediateModel_param); } else { ZEPHIR_INIT_VAR(&intermediateModel); ZVAL_EMPTY_STRING(&intermediateModel); } - if (unlikely(Z_TYPE_P(referenceModel_param) != IS_STRING && Z_TYPE_P(referenceModel_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(referenceModel_param) != IS_STRING && Z_TYPE_P(referenceModel_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'referenceModel' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(referenceModel_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(referenceModel_param) == IS_STRING)) { zephir_get_strval(&referenceModel, referenceModel_param); } else { ZEPHIR_INIT_VAR(&referenceModel); @@ -91473,7 +89994,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, setSnapshotData) { if (Z_TYPE_P(columnMap) == IS_ARRAY) { ZEPHIR_INIT_VAR(&snapshot); array_init(&snapshot); - zephir_is_iterable(&data, 0, "phalcon/mvc/model.zep", 3828); + zephir_is_iterable(&data, 0, "phalcon/mvc/model.zep", 3830); ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&data), _1$$3, _2$$3, _0$$3) { ZEPHIR_INIT_NVAR(&key); @@ -91494,9 +90015,9 @@ static PHP_METHOD(Phalcon_Mvc_Model, setSnapshotData) { object_init_ex(&_3$$7, phalcon_mvc_model_exception_ce); ZEPHIR_INIT_LNVAR(_4$$7); ZEPHIR_CONCAT_SVS(&_4$$7, "Column '", &key, "' doesn't make part of the column map"); - ZEPHIR_CALL_METHOD(NULL, &_3$$7, "__construct", &_5, 9, &_4$$7); + ZEPHIR_CALL_METHOD(NULL, &_3$$7, "__construct", &_5, 4, &_4$$7); zephir_check_call_status(); - zephir_throw_exception_debug(&_3$$7, "phalcon/mvc/model.zep", 3810 TSRMLS_CC); + zephir_throw_exception_debug(&_3$$7, "phalcon/mvc/model.zep", 3812 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } else { @@ -91511,9 +90032,9 @@ static PHP_METHOD(Phalcon_Mvc_Model, setSnapshotData) { object_init_ex(&_6$$11, phalcon_mvc_model_exception_ce); ZEPHIR_INIT_LNVAR(_7$$11); ZEPHIR_CONCAT_SVS(&_7$$11, "Column '", &key, "' doesn't make part of the column map"); - ZEPHIR_CALL_METHOD(NULL, &_6$$11, "__construct", &_5, 9, &_7$$11); + ZEPHIR_CALL_METHOD(NULL, &_6$$11, "__construct", &_5, 4, &_7$$11); zephir_check_call_status(); - zephir_throw_exception_debug(&_6$$11, "phalcon/mvc/model.zep", 3819 TSRMLS_CC); + zephir_throw_exception_debug(&_6$$11, "phalcon/mvc/model.zep", 3821 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } else { @@ -91607,12 +90128,12 @@ static PHP_METHOD(Phalcon_Mvc_Model, getChangedFields) { ZEPHIR_OBS_VAR(&snapshot); zephir_read_property(&snapshot, this_ptr, SL("_snapshot"), PH_NOISY_CC); if (Z_TYPE_P(&snapshot) != IS_ARRAY) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The record doesn't have a valid data snapshot", "phalcon/mvc/model.zep", 3896); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The record doesn't have a valid data snapshot", "phalcon/mvc/model.zep", 3898); return; } zephir_read_property(&_0, this_ptr, SL("_dirtyState"), PH_NOISY_CC | PH_READONLY); if (!ZEPHIR_IS_LONG(&_0, 0)) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Change checking cannot be performed because the object has not been persisted or is deleted", "phalcon/mvc/model.zep", 3903); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Change checking cannot be performed because the object has not been persisted or is deleted", "phalcon/mvc/model.zep", 3905); return; } ZEPHIR_CALL_METHOD(&metaData, this_ptr, "getmodelsmetadata", NULL, 0); @@ -91628,7 +90149,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, getChangedFields) { ZEPHIR_INIT_VAR(&changed); array_init(&changed); ZEPHIR_INIT_VAR(&_1); - zephir_is_iterable(&allAttributes, 0, "phalcon/mvc/model.zep", 3956); + zephir_is_iterable(&allAttributes, 0, "phalcon/mvc/model.zep", 3958); ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&allAttributes), _3, _4, _2) { ZEPHIR_INIT_NVAR(&name); @@ -91640,17 +90161,17 @@ static PHP_METHOD(Phalcon_Mvc_Model, getChangedFields) { ZEPHIR_INIT_NVAR(&_1); ZVAL_COPY(&_1, _2); if (!(zephir_array_isset(&snapshot, &name))) { - zephir_array_append(&changed, &name, PH_SEPARATE, "phalcon/mvc/model.zep", 3935); + zephir_array_append(&changed, &name, PH_SEPARATE, "phalcon/mvc/model.zep", 3937); continue; } ZEPHIR_OBS_NVAR(&value); if (!(zephir_fetch_property_zval(&value, this_ptr, &name, PH_SILENT_CC))) { - zephir_array_append(&changed, &name, PH_SEPARATE, "phalcon/mvc/model.zep", 3943); + zephir_array_append(&changed, &name, PH_SEPARATE, "phalcon/mvc/model.zep", 3945); continue; } - zephir_array_fetch(&_5$$7, &snapshot, &name, PH_NOISY | PH_READONLY, "phalcon/mvc/model.zep", 3950 TSRMLS_CC); + zephir_array_fetch(&_5$$7, &snapshot, &name, PH_NOISY | PH_READONLY, "phalcon/mvc/model.zep", 3952 TSRMLS_CC); if (!ZEPHIR_IS_IDENTICAL(&value, &_5$$7)) { - zephir_array_append(&changed, &name, PH_SEPARATE, "phalcon/mvc/model.zep", 3951); + zephir_array_append(&changed, &name, PH_SEPARATE, "phalcon/mvc/model.zep", 3953); continue; } } ZEND_HASH_FOREACH_END(); @@ -91728,9 +90249,9 @@ static PHP_METHOD(Phalcon_Mvc_Model, getRelated) { object_init_ex(&_2$$3, phalcon_mvc_model_exception_ce); ZEPHIR_INIT_VAR(&_3$$3); ZEPHIR_CONCAT_SVSVS(&_3$$3, "There is no defined relations for the model '", &className, "' using alias '", &alias, "'"); - ZEPHIR_CALL_METHOD(NULL, &_2$$3, "__construct", NULL, 9, &_3$$3); + ZEPHIR_CALL_METHOD(NULL, &_2$$3, "__construct", NULL, 4, &_3$$3); zephir_check_call_status(); - zephir_throw_exception_debug(&_2$$3, "phalcon/mvc/model.zep", 3999 TSRMLS_CC); + zephir_throw_exception_debug(&_2$$3, "phalcon/mvc/model.zep", 4001 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -91766,21 +90287,21 @@ static PHP_METHOD(Phalcon_Mvc_Model, _getRelatedRecords) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &modelName_param, &method_param, &arguments); - if (unlikely(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'modelName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(modelName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(modelName_param) == IS_STRING)) { zephir_get_strval(&modelName, modelName_param); } else { ZEPHIR_INIT_VAR(&modelName); ZVAL_EMPTY_STRING(&modelName); } - if (unlikely(Z_TYPE_P(method_param) != IS_STRING && Z_TYPE_P(method_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(method_param) != IS_STRING && Z_TYPE_P(method_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'method' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(method_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(method_param) == IS_STRING)) { zephir_get_strval(&method, method_param); } else { ZEPHIR_INIT_VAR(&method); @@ -91890,9 +90411,9 @@ static PHP_METHOD(Phalcon_Mvc_Model, _invokeFinder) { object_init_ex(&_3$$7, phalcon_mvc_model_exception_ce); ZEPHIR_INIT_VAR(&_4$$7); ZEPHIR_CONCAT_SVS(&_4$$7, "The static method '", method, "' requires one argument"); - ZEPHIR_CALL_METHOD(NULL, &_3$$7, "__construct", NULL, 9, &_4$$7); + ZEPHIR_CALL_METHOD(NULL, &_3$$7, "__construct", NULL, 4, &_4$$7); zephir_check_call_status(); - zephir_throw_exception_debug(&_3$$7, "phalcon/mvc/model.zep", 4105 TSRMLS_CC); + zephir_throw_exception_debug(&_3$$7, "phalcon/mvc/model.zep", 4107 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -91915,7 +90436,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _invokeFinder) { if (zephir_array_isset(&attributes, &extraMethod)) { ZEPHIR_CPY_WRT(&field, &extraMethod); } else { - ZEPHIR_CALL_FUNCTION(&extraMethodFirst, "lcfirst", NULL, 68, &extraMethod); + ZEPHIR_CALL_FUNCTION(&extraMethodFirst, "lcfirst", NULL, 62, &extraMethod); zephir_check_call_status(); if (zephir_array_isset(&attributes, &extraMethodFirst)) { ZEPHIR_CPY_WRT(&field, &extraMethodFirst); @@ -91927,9 +90448,9 @@ static PHP_METHOD(Phalcon_Mvc_Model, _invokeFinder) { object_init_ex(&_7$$13, phalcon_mvc_model_exception_ce); ZEPHIR_INIT_VAR(&_8$$13); ZEPHIR_CONCAT_SVS(&_8$$13, "Cannot resolve attribute '", &extraMethod, "' in the model"); - ZEPHIR_CALL_METHOD(NULL, &_7$$13, "__construct", NULL, 9, &_8$$13); + ZEPHIR_CALL_METHOD(NULL, &_7$$13, "__construct", NULL, 4, &_8$$13); zephir_check_call_status(); - zephir_throw_exception_debug(&_7$$13, "phalcon/mvc/model.zep", 4139 TSRMLS_CC); + zephir_throw_exception_debug(&_7$$13, "phalcon/mvc/model.zep", 4141 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -91974,7 +90495,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, __call) { zephir_get_strval(&method, method_param); - ZEPHIR_CALL_SELF(&records, "_invokefinder", &_0, 323, &method, arguments); + ZEPHIR_CALL_SELF(&records, "_invokefinder", &_0, 292, &method, arguments); zephir_check_call_status(); if (Z_TYPE_P(&records) != IS_NULL) { RETURN_CCTOR(records); @@ -91996,9 +90517,9 @@ static PHP_METHOD(Phalcon_Mvc_Model, __call) { object_init_ex(&_2, phalcon_mvc_model_exception_ce); ZEPHIR_INIT_VAR(&_3); ZEPHIR_CONCAT_SVSVS(&_3, "The method '", &method, "' doesn't exist on model '", &modelName, "'"); - ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", NULL, 9, &_3); + ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", NULL, 4, &_3); zephir_check_call_status(); - zephir_throw_exception_debug(&_2, "phalcon/mvc/model.zep", 4190 TSRMLS_CC); + zephir_throw_exception_debug(&_2, "phalcon/mvc/model.zep", 4192 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; @@ -92024,16 +90545,16 @@ static PHP_METHOD(Phalcon_Mvc_Model, __callStatic) { zephir_get_strval(&method, method_param); - ZEPHIR_CALL_SELF(&records, "_invokefinder", &_0, 323, &method, arguments); + ZEPHIR_CALL_SELF(&records, "_invokefinder", &_0, 292, &method, arguments); zephir_check_call_status(); if (Z_TYPE_P(&records) == IS_NULL) { ZEPHIR_INIT_VAR(&_1$$3); object_init_ex(&_1$$3, phalcon_mvc_model_exception_ce); ZEPHIR_INIT_VAR(&_2$$3); ZEPHIR_CONCAT_SVS(&_2$$3, "The static method '", &method, "' doesn't exist"); - ZEPHIR_CALL_METHOD(NULL, &_1$$3, "__construct", NULL, 9, &_2$$3); + ZEPHIR_CALL_METHOD(NULL, &_1$$3, "__construct", NULL, 4, &_2$$3); zephir_check_call_status(); - zephir_throw_exception_debug(&_1$$3, "phalcon/mvc/model.zep", 4206 TSRMLS_CC); + zephir_throw_exception_debug(&_1$$3, "phalcon/mvc/model.zep", 4208 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -92107,7 +90628,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, __set) { zephir_check_call_status(); ZEPHIR_INIT_VAR(&related); array_init(&related); - zephir_is_iterable(value, 0, "phalcon/mvc/model.zep", 4266); + zephir_is_iterable(value, 0, "phalcon/mvc/model.zep", 4268); ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(value), _3$$6, _4$$6, _2$$6) { ZEPHIR_INIT_NVAR(&key); @@ -92120,7 +90641,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, __set) { ZVAL_COPY(&item, _2$$6); if (Z_TYPE_P(&item) == IS_OBJECT) { if (zephir_instance_of_ev(&item, phalcon_mvc_modelinterface_ce TSRMLS_CC)) { - zephir_array_append(&related, &item, PH_SEPARATE, "phalcon/mvc/model.zep", 4253); + zephir_array_append(&related, &item, PH_SEPARATE, "phalcon/mvc/model.zep", 4255); } } else { ZEPHIR_INIT_NVAR(&lowerKey); @@ -92150,13 +90671,13 @@ static PHP_METHOD(Phalcon_Mvc_Model, __set) { RETVAL_ZVAL(value, 1, 0); RETURN_MM(); } - ZEPHIR_CALL_METHOD(&_10, this_ptr, "_possiblesetter", NULL, 315, &property, value); + ZEPHIR_CALL_METHOD(&_10, this_ptr, "_possiblesetter", NULL, 284, &property, value); zephir_check_call_status(); if (zephir_is_true(&_10)) { RETVAL_ZVAL(value, 1, 0); RETURN_MM(); } - ZEPHIR_CALL_FUNCTION(&_11, "property_exists", NULL, 324, this_ptr, &property); + ZEPHIR_CALL_FUNCTION(&_11, "property_exists", NULL, 293, this_ptr, &property); zephir_check_call_status(); if (zephir_is_true(&_11)) { ZEPHIR_CALL_METHOD(&manager, this_ptr, "getmodelsmanager", &_1, 0); @@ -92168,9 +90689,9 @@ static PHP_METHOD(Phalcon_Mvc_Model, __set) { object_init_ex(&_13$$15, phalcon_mvc_model_exception_ce); ZEPHIR_INIT_VAR(&_14$$15); ZEPHIR_CONCAT_SVS(&_14$$15, "Property '", &property, "' does not have a setter."); - ZEPHIR_CALL_METHOD(NULL, &_13$$15, "__construct", NULL, 9, &_14$$15); + ZEPHIR_CALL_METHOD(NULL, &_13$$15, "__construct", NULL, 4, &_14$$15); zephir_check_call_status(); - zephir_throw_exception_debug(&_13$$15, "phalcon/mvc/model.zep", 4283 TSRMLS_CC); + zephir_throw_exception_debug(&_13$$15, "phalcon/mvc/model.zep", 4285 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -92238,11 +90759,11 @@ static PHP_METHOD(Phalcon_Mvc_Model, __get) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &property_param); - if (unlikely(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'property' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(property_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(property_param) == IS_STRING)) { zephir_get_strval(&property, property_param); } else { ZEPHIR_INIT_VAR(&property); @@ -92294,7 +90815,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, __get) { } ZEPHIR_INIT_VAR(&_7); ZEPHIR_CONCAT_SVSV(&_7, "Access to undefined property ", &modelName, "::", &property); - ZEPHIR_CALL_FUNCTION(NULL, "trigger_error", NULL, 2, &_7); + ZEPHIR_CALL_FUNCTION(NULL, "trigger_error", NULL, 1, &_7); zephir_check_call_status(); RETURN_MM_NULL(); @@ -92316,11 +90837,11 @@ static PHP_METHOD(Phalcon_Mvc_Model, __isset) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &property_param); - if (unlikely(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'property' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(property_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(property_param) == IS_STRING)) { zephir_get_strval(&property, property_param); } else { ZEPHIR_INIT_VAR(&property); @@ -92376,12 +90897,12 @@ static PHP_METHOD(Phalcon_Mvc_Model, serialize) { zephir_create_array(&_2$$4, 2, 0 TSRMLS_CC); zephir_array_update_string(&_2$$4, SL("_attributes"), &attributes, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_2$$4, SL("_snapshot"), &snapshot, PH_COPY | PH_SEPARATE); - ZEPHIR_RETURN_CALL_FUNCTION("serialize", &_3, 65, &_2$$4); + ZEPHIR_RETURN_CALL_FUNCTION("serialize", &_3, 59, &_2$$4); zephir_check_call_status(); RETURN_MM(); } } - ZEPHIR_RETURN_CALL_FUNCTION("serialize", &_3, 65, &attributes); + ZEPHIR_RETURN_CALL_FUNCTION("serialize", &_3, 59, &attributes); zephir_check_call_status(); RETURN_MM(); @@ -92411,11 +90932,11 @@ static PHP_METHOD(Phalcon_Mvc_Model, unserialize) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &data_param); - if (unlikely(Z_TYPE_P(data_param) != IS_STRING && Z_TYPE_P(data_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(data_param) != IS_STRING && Z_TYPE_P(data_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'data' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(data_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(data_param) == IS_STRING)) { zephir_get_strval(&data, data_param); } else { ZEPHIR_INIT_VAR(&data); @@ -92423,13 +90944,13 @@ static PHP_METHOD(Phalcon_Mvc_Model, unserialize) { } - ZEPHIR_CALL_FUNCTION(&attributes, "unserialize", NULL, 66, &data); + ZEPHIR_CALL_FUNCTION(&attributes, "unserialize", NULL, 60, &data); zephir_check_call_status(); if (Z_TYPE_P(&attributes) == IS_ARRAY) { - ZEPHIR_CALL_CE_STATIC(&dependencyInjector, phalcon_di_ce, "getdefault", &_0, 1); + ZEPHIR_CALL_CE_STATIC(&dependencyInjector, phalcon_di_ce, "getdefault", &_0, 0); zephir_check_call_status(); if (Z_TYPE_P(&dependencyInjector) != IS_OBJECT) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "A dependency injector container is required to obtain the services related to the ORM", "phalcon/mvc/model.zep", 4437); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "A dependency injector container is required to obtain the services related to the ORM", "phalcon/mvc/model.zep", 4439); return; } zephir_update_property_zval(this_ptr, SL("_dependencyInjector"), &dependencyInjector); @@ -92439,7 +90960,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, unserialize) { zephir_check_call_status(); ZEPHIR_CPY_WRT(&manager, &_1$$3); if (Z_TYPE_P(&manager) != IS_OBJECT) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The injected service 'modelsManager' is not valid", "phalcon/mvc/model.zep", 4450); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The injected service 'modelsManager' is not valid", "phalcon/mvc/model.zep", 4452); return; } zephir_update_property_zval(this_ptr, SL("_modelsManager"), &manager); @@ -92450,13 +90971,13 @@ static PHP_METHOD(Phalcon_Mvc_Model, unserialize) { if (zephir_is_true(&_1$$3)) { if (zephir_array_isset_string_fetch(&snapshot, &attributes, SL("_snapshot"), 1)) { zephir_update_property_zval(this_ptr, SL("_snapshot"), &snapshot); - zephir_array_fetch_string(&_3$$7, &attributes, SL("_attributes"), PH_NOISY | PH_READONLY, "phalcon/mvc/model.zep", 4465 TSRMLS_CC); + zephir_array_fetch_string(&_3$$7, &attributes, SL("_attributes"), PH_NOISY | PH_READONLY, "phalcon/mvc/model.zep", 4467 TSRMLS_CC); ZEPHIR_CPY_WRT(&attributes, &_3$$7); } else { zephir_update_property_zval(this_ptr, SL("_snapshot"), &attributes); } } - zephir_is_iterable(&attributes, 0, "phalcon/mvc/model.zep", 4478); + zephir_is_iterable(&attributes, 0, "phalcon/mvc/model.zep", 4480); ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&attributes), _5$$3, _6$$3, _4$$3) { ZEPHIR_INIT_NVAR(&key); @@ -92484,7 +91005,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, dump) { ZEPHIR_MM_GROW(); - ZEPHIR_RETURN_CALL_FUNCTION("get_object_vars", NULL, 21, this_ptr); + ZEPHIR_RETURN_CALL_FUNCTION("get_object_vars", NULL, 16, this_ptr); zephir_check_call_status(); RETURN_MM(); @@ -92526,7 +91047,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, toArray) { zephir_check_call_status(); ZEPHIR_CALL_METHOD(&_0, &metaData, "getattributes", NULL, 0, this_ptr); zephir_check_call_status(); - zephir_is_iterable(&_0, 0, "phalcon/mvc/model.zep", 4546); + zephir_is_iterable(&_0, 0, "phalcon/mvc/model.zep", 4548); ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&_0), _1) { ZEPHIR_INIT_NVAR(&attribute); @@ -92539,9 +91060,9 @@ static PHP_METHOD(Phalcon_Mvc_Model, toArray) { object_init_ex(&_2$$6, phalcon_mvc_model_exception_ce); ZEPHIR_INIT_LNVAR(_3$$6); ZEPHIR_CONCAT_SVS(&_3$$6, "Column '", &attribute, "' doesn't make part of the column map"); - ZEPHIR_CALL_METHOD(NULL, &_2$$6, "__construct", &_4, 9, &_3$$6); + ZEPHIR_CALL_METHOD(NULL, &_2$$6, "__construct", &_4, 4, &_3$$6); zephir_check_call_status(); - zephir_throw_exception_debug(&_2$$6, "phalcon/mvc/model.zep", 4524 TSRMLS_CC); + zephir_throw_exception_debug(&_2$$6, "phalcon/mvc/model.zep", 4526 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } else { @@ -92866,7 +91387,7 @@ static PHP_METHOD(Phalcon_Mvc_Router, __construct) { if (!defaultRoutes_param) { defaultRoutes = 1; } else { - if (unlikely(Z_TYPE_P(defaultRoutes_param) != IS_TRUE && Z_TYPE_P(defaultRoutes_param) != IS_FALSE)) { + if (UNEXPECTED(Z_TYPE_P(defaultRoutes_param) != IS_TRUE && Z_TYPE_P(defaultRoutes_param) != IS_FALSE)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'defaultRoutes' must be a bool") TSRMLS_CC); RETURN_MM_NULL(); } @@ -92884,7 +91405,7 @@ static PHP_METHOD(Phalcon_Mvc_Router, __construct) { add_assoc_long_ex(&_1$$3, SL("controller"), 1); ZEPHIR_INIT_VAR(&_2$$3); ZVAL_STRING(&_2$$3, "#^/([\\w0-9\\_\\-]+)[/]{0,1}$#u"); - ZEPHIR_CALL_METHOD(NULL, &_0$$3, "__construct", &_3, 77, &_2$$3, &_1$$3); + ZEPHIR_CALL_METHOD(NULL, &_0$$3, "__construct", &_3, 70, &_2$$3, &_1$$3); zephir_check_call_status(); zephir_array_append(&routes, &_0$$3, PH_SEPARATE, "phalcon/mvc/router.zep", 120); ZEPHIR_INIT_NVAR(&_2$$3); @@ -92896,7 +91417,7 @@ static PHP_METHOD(Phalcon_Mvc_Router, __construct) { add_assoc_long_ex(&_4$$3, SL("params"), 3); ZEPHIR_INIT_VAR(&_5$$3); ZVAL_STRING(&_5$$3, "#^/([\\w0-9\\_\\-]+)/([\\w0-9\\.\\_]+)(/.*)*$#u"); - ZEPHIR_CALL_METHOD(NULL, &_2$$3, "__construct", &_3, 77, &_5$$3, &_4$$3); + ZEPHIR_CALL_METHOD(NULL, &_2$$3, "__construct", &_3, 70, &_5$$3, &_4$$3); zephir_check_call_status(); zephir_array_append(&routes, &_2$$3, PH_SEPARATE, "phalcon/mvc/router.zep", 126); } @@ -93019,7 +91540,7 @@ static PHP_METHOD(Phalcon_Mvc_Router, removeExtraSlashes) { zephir_fetch_params(0, 1, 0, &remove_param); - if (unlikely(Z_TYPE_P(remove_param) != IS_TRUE && Z_TYPE_P(remove_param) != IS_FALSE)) { + if (UNEXPECTED(Z_TYPE_P(remove_param) != IS_TRUE && Z_TYPE_P(remove_param) != IS_FALSE)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'remove' must be a bool") TSRMLS_CC); RETURN_NULL(); } @@ -93046,11 +91567,11 @@ static PHP_METHOD(Phalcon_Mvc_Router, setDefaultNamespace) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &namespaceName_param); - if (unlikely(Z_TYPE_P(namespaceName_param) != IS_STRING && Z_TYPE_P(namespaceName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(namespaceName_param) != IS_STRING && Z_TYPE_P(namespaceName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'namespaceName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(namespaceName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(namespaceName_param) == IS_STRING)) { zephir_get_strval(&namespaceName, namespaceName_param); } else { ZEPHIR_INIT_VAR(&namespaceName); @@ -93074,11 +91595,11 @@ static PHP_METHOD(Phalcon_Mvc_Router, setDefaultModule) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &moduleName_param); - if (unlikely(Z_TYPE_P(moduleName_param) != IS_STRING && Z_TYPE_P(moduleName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(moduleName_param) != IS_STRING && Z_TYPE_P(moduleName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'moduleName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(moduleName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(moduleName_param) == IS_STRING)) { zephir_get_strval(&moduleName, moduleName_param); } else { ZEPHIR_INIT_VAR(&moduleName); @@ -93102,11 +91623,11 @@ static PHP_METHOD(Phalcon_Mvc_Router, setDefaultController) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &controllerName_param); - if (unlikely(Z_TYPE_P(controllerName_param) != IS_STRING && Z_TYPE_P(controllerName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(controllerName_param) != IS_STRING && Z_TYPE_P(controllerName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'controllerName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(controllerName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(controllerName_param) == IS_STRING)) { zephir_get_strval(&controllerName, controllerName_param); } else { ZEPHIR_INIT_VAR(&controllerName); @@ -93130,11 +91651,11 @@ static PHP_METHOD(Phalcon_Mvc_Router, setDefaultAction) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &actionName_param); - if (unlikely(Z_TYPE_P(actionName_param) != IS_STRING && Z_TYPE_P(actionName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(actionName_param) != IS_STRING && Z_TYPE_P(actionName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'actionName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(actionName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(actionName_param) == IS_STRING)) { zephir_get_strval(&actionName, actionName_param); } else { ZEPHIR_INIT_VAR(&actionName); @@ -93495,7 +92016,7 @@ static PHP_METHOD(Phalcon_Mvc_Router, handle) { object_init_ex(&_25$$36, phalcon_mvc_router_exception_ce); ZEPHIR_INIT_LNVAR(_26$$36); ZEPHIR_CONCAT_SV(&_26$$36, "Wrong key in paths: ", &part); - ZEPHIR_CALL_METHOD(NULL, &_25$$36, "__construct", &_27, 9, &_26$$36); + ZEPHIR_CALL_METHOD(NULL, &_25$$36, "__construct", &_27, 4, &_26$$36); zephir_check_call_status(); zephir_throw_exception_debug(&_25$$36, "phalcon/mvc/router.zep", 524 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -93569,7 +92090,7 @@ static PHP_METHOD(Phalcon_Mvc_Router, handle) { ZEPHIR_OBS_VAR(¬FoundPaths); zephir_read_property(¬FoundPaths, this_ptr, SL("_notFoundPaths"), PH_NOISY_CC); if (Z_TYPE_P(¬FoundPaths) != IS_NULL) { - ZEPHIR_CALL_CE_STATIC(&parts, phalcon_mvc_router_route_ce, "getroutepaths", &_33, 78, ¬FoundPaths); + ZEPHIR_CALL_CE_STATIC(&parts, phalcon_mvc_router_route_ce, "getroutepaths", &_33, 0, ¬FoundPaths); zephir_check_call_status(); ZEPHIR_INIT_NVAR(&routeFound); ZVAL_BOOL(&routeFound, 1); @@ -93667,11 +92188,11 @@ static PHP_METHOD(Phalcon_Mvc_Router, add) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 3, &pattern_param, &paths, &httpMethods, &position); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(&pattern, pattern_param); } else { ZEPHIR_INIT_VAR(&pattern); @@ -93694,7 +92215,7 @@ static PHP_METHOD(Phalcon_Mvc_Router, add) { ZEPHIR_INIT_VAR(&route); object_init_ex(&route, phalcon_mvc_router_route_ce); - ZEPHIR_CALL_METHOD(NULL, &route, "__construct", NULL, 77, &pattern, paths, httpMethods); + ZEPHIR_CALL_METHOD(NULL, &route, "__construct", NULL, 70, &pattern, paths, httpMethods); zephir_check_call_status(); do { if (ZEPHIR_IS_LONG(position, 1)) { @@ -93735,11 +92256,11 @@ static PHP_METHOD(Phalcon_Mvc_Router, addGet) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &pattern_param, &paths, &position); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(&pattern, pattern_param); } else { ZEPHIR_INIT_VAR(&pattern); @@ -93780,11 +92301,11 @@ static PHP_METHOD(Phalcon_Mvc_Router, addPost) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &pattern_param, &paths, &position); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(&pattern, pattern_param); } else { ZEPHIR_INIT_VAR(&pattern); @@ -93825,11 +92346,11 @@ static PHP_METHOD(Phalcon_Mvc_Router, addPut) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &pattern_param, &paths, &position); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(&pattern, pattern_param); } else { ZEPHIR_INIT_VAR(&pattern); @@ -93870,11 +92391,11 @@ static PHP_METHOD(Phalcon_Mvc_Router, addPatch) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &pattern_param, &paths, &position); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(&pattern, pattern_param); } else { ZEPHIR_INIT_VAR(&pattern); @@ -93915,11 +92436,11 @@ static PHP_METHOD(Phalcon_Mvc_Router, addDelete) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &pattern_param, &paths, &position); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(&pattern, pattern_param); } else { ZEPHIR_INIT_VAR(&pattern); @@ -93960,11 +92481,11 @@ static PHP_METHOD(Phalcon_Mvc_Router, addOptions) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &pattern_param, &paths, &position); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(&pattern, pattern_param); } else { ZEPHIR_INIT_VAR(&pattern); @@ -94005,11 +92526,11 @@ static PHP_METHOD(Phalcon_Mvc_Router, addHead) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &pattern_param, &paths, &position); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(&pattern, pattern_param); } else { ZEPHIR_INIT_VAR(&pattern); @@ -94050,11 +92571,11 @@ static PHP_METHOD(Phalcon_Mvc_Router, addPurge) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &pattern_param, &paths, &position); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(&pattern, pattern_param); } else { ZEPHIR_INIT_VAR(&pattern); @@ -94095,11 +92616,11 @@ static PHP_METHOD(Phalcon_Mvc_Router, addTrace) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &pattern_param, &paths, &position); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(&pattern, pattern_param); } else { ZEPHIR_INIT_VAR(&pattern); @@ -94140,11 +92661,11 @@ static PHP_METHOD(Phalcon_Mvc_Router, addConnect) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &pattern_param, &paths, &position); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(&pattern, pattern_param); } else { ZEPHIR_INIT_VAR(&pattern); @@ -94403,11 +92924,11 @@ static PHP_METHOD(Phalcon_Mvc_Router, getRouteByName) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(&name, name_param); } else { ZEPHIR_INIT_VAR(&name); @@ -94614,11 +93135,11 @@ static PHP_METHOD(Phalcon_Mvc_Url, setBaseUri) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &baseUri_param); - if (unlikely(Z_TYPE_P(baseUri_param) != IS_STRING && Z_TYPE_P(baseUri_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(baseUri_param) != IS_STRING && Z_TYPE_P(baseUri_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'baseUri' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(baseUri_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(baseUri_param) == IS_STRING)) { zephir_get_strval(&baseUri, baseUri_param); } else { ZEPHIR_INIT_VAR(&baseUri); @@ -94646,11 +93167,11 @@ static PHP_METHOD(Phalcon_Mvc_Url, setStaticBaseUri) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &staticBaseUri_param); - if (unlikely(Z_TYPE_P(staticBaseUri_param) != IS_STRING && Z_TYPE_P(staticBaseUri_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(staticBaseUri_param) != IS_STRING && Z_TYPE_P(staticBaseUri_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'staticBaseUri' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(staticBaseUri_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(staticBaseUri_param) == IS_STRING)) { zephir_get_strval(&staticBaseUri, staticBaseUri_param); } else { ZEPHIR_INIT_VAR(&staticBaseUri); @@ -94731,11 +93252,11 @@ static PHP_METHOD(Phalcon_Mvc_Url, setBasePath) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &basePath_param); - if (unlikely(Z_TYPE_P(basePath_param) != IS_STRING && Z_TYPE_P(basePath_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(basePath_param) != IS_STRING && Z_TYPE_P(basePath_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'basePath' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(basePath_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(basePath_param) == IS_STRING)) { zephir_get_strval(&basePath, basePath_param); } else { ZEPHIR_INIT_VAR(&basePath); @@ -94884,7 +93405,7 @@ static PHP_METHOD(Phalcon_Mvc_Url, get) { object_init_ex(&_10$$13, phalcon_mvc_url_exception_ce); ZEPHIR_INIT_VAR(&_11$$13); ZEPHIR_CONCAT_SVS(&_11$$13, "Cannot obtain a route using the name '", &routeName, "'"); - ZEPHIR_CALL_METHOD(NULL, &_10$$13, "__construct", NULL, 9, &_11$$13); + ZEPHIR_CALL_METHOD(NULL, &_10$$13, "__construct", NULL, 4, &_11$$13); zephir_check_call_status(); zephir_throw_exception_debug(&_10$$13, "phalcon/mvc/url.zep", 250 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -94940,7 +93461,7 @@ static PHP_METHOD(Phalcon_Mvc_Url, get) { } } if (zephir_is_true(args)) { - ZEPHIR_CALL_FUNCTION(&queryString, "http_build_query", NULL, 385, args); + ZEPHIR_CALL_FUNCTION(&queryString, "http_build_query", NULL, 348, args); zephir_check_call_status(); _25$$19 = Z_TYPE_P(&queryString) == IS_STRING; if (_25$$19) { @@ -95599,11 +94120,11 @@ static PHP_METHOD(Phalcon_Mvc_View, setParamToView) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &key_param, &value); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(&key, key_param); } else { ZEPHIR_INIT_VAR(&key); @@ -95662,11 +94183,11 @@ static PHP_METHOD(Phalcon_Mvc_View, setVar) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &key_param, &value); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(&key, key_param); } else { ZEPHIR_INIT_VAR(&key); @@ -95692,11 +94213,11 @@ static PHP_METHOD(Phalcon_Mvc_View, getVar) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &key_param); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(&key, key_param); } else { ZEPHIR_INIT_VAR(&key); @@ -95758,7 +94279,7 @@ static PHP_METHOD(Phalcon_Mvc_View, start) { ZEPHIR_MM_GROW(); - ZEPHIR_CALL_FUNCTION(NULL, "ob_start", NULL, 126); + ZEPHIR_CALL_FUNCTION(NULL, "ob_start", NULL, 115); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_content"), &__$null); RETURN_THIS(); @@ -95801,7 +94322,7 @@ static PHP_METHOD(Phalcon_Mvc_View, _loadTemplateEngines) { if (Z_TYPE_P(®isteredEngines) != IS_ARRAY) { ZEPHIR_INIT_VAR(&_1$$4); object_init_ex(&_1$$4, phalcon_mvc_view_engine_php_ce); - ZEPHIR_CALL_METHOD(NULL, &_1$$4, "__construct", NULL, 386, this_ptr, &dependencyInjector); + ZEPHIR_CALL_METHOD(NULL, &_1$$4, "__construct", NULL, 349, this_ptr, &dependencyInjector); zephir_check_call_status(); zephir_array_update_string(&engines, SL(".phtml"), &_1$$4, PH_COPY | PH_SEPARATE); } else { @@ -95839,7 +94360,7 @@ static PHP_METHOD(Phalcon_Mvc_View, _loadTemplateEngines) { object_init_ex(&_6$$12, phalcon_mvc_view_exception_ce); ZEPHIR_INIT_LNVAR(_7$$12); ZEPHIR_CONCAT_SV(&_7$$12, "Invalid template engine registration for extension: ", &extension); - ZEPHIR_CALL_METHOD(NULL, &_6$$12, "__construct", &_8, 9, &_7$$12); + ZEPHIR_CALL_METHOD(NULL, &_6$$12, "__construct", &_8, 4, &_7$$12); zephir_check_call_status(); zephir_throw_exception_debug(&_6$$12, "phalcon/mvc/view.zep", 563 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -95933,7 +94454,7 @@ static PHP_METHOD(Phalcon_Mvc_View, _engineRender) { { ZEPHIR_INIT_NVAR(&viewsDir); ZVAL_COPY(&viewsDir, _2); - ZEPHIR_CALL_METHOD(&_3$$3, this_ptr, "_isabsolutepath", &_4, 387, &viewPath); + ZEPHIR_CALL_METHOD(&_3$$3, this_ptr, "_isabsolutepath", &_4, 350, &viewPath); zephir_check_call_status(); if (!(zephir_is_true(&_3$$3))) { ZEPHIR_INIT_NVAR(&viewsDirPath); @@ -96047,7 +94568,7 @@ static PHP_METHOD(Phalcon_Mvc_View, _engineRender) { object_init_ex(&_23$$21, phalcon_mvc_view_exception_ce); ZEPHIR_INIT_VAR(&_24$$21); ZEPHIR_CONCAT_SVS(&_24$$21, "View '", &viewPath, "' was not found in any of the views directory"); - ZEPHIR_CALL_METHOD(NULL, &_23$$21, "__construct", NULL, 9, &_24$$21); + ZEPHIR_CALL_METHOD(NULL, &_23$$21, "__construct", NULL, 4, &_24$$21); zephir_check_call_status(); zephir_throw_exception_debug(&_23$$21, "phalcon/mvc/view.zep", 706 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -96098,11 +94619,11 @@ static PHP_METHOD(Phalcon_Mvc_View, exists) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &view_param); - if (unlikely(Z_TYPE_P(view_param) != IS_STRING && Z_TYPE_P(view_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(view_param) != IS_STRING && Z_TYPE_P(view_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'view' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(view_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(view_param) == IS_STRING)) { zephir_get_strval(&view, view_param); } else { ZEPHIR_INIT_VAR(&view); @@ -96215,21 +94736,21 @@ static PHP_METHOD(Phalcon_Mvc_View, render) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 1, &controllerName_param, &actionName_param, ¶ms); - if (unlikely(Z_TYPE_P(controllerName_param) != IS_STRING && Z_TYPE_P(controllerName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(controllerName_param) != IS_STRING && Z_TYPE_P(controllerName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'controllerName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(controllerName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(controllerName_param) == IS_STRING)) { zephir_get_strval(&controllerName, controllerName_param); } else { ZEPHIR_INIT_VAR(&controllerName); ZVAL_EMPTY_STRING(&controllerName); } - if (unlikely(Z_TYPE_P(actionName_param) != IS_STRING && Z_TYPE_P(actionName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(actionName_param) != IS_STRING && Z_TYPE_P(actionName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'actionName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(actionName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(actionName_param) == IS_STRING)) { zephir_get_strval(&actionName, actionName_param); } else { ZEPHIR_INIT_VAR(&actionName); @@ -96246,7 +94767,7 @@ static PHP_METHOD(Phalcon_Mvc_View, render) { zephir_update_property_zval(this_ptr, SL("_currentRenderLevel"), &_0); zephir_read_property(&_0, this_ptr, SL("_disabled"), PH_NOISY_CC | PH_READONLY); if (!ZEPHIR_IS_FALSE_IDENTICAL(&_0)) { - ZEPHIR_CALL_FUNCTION(&_1$$3, "ob_get_contents", &_2, 127); + ZEPHIR_CALL_FUNCTION(&_1$$3, "ob_get_contents", &_2, 116); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_content"), &_1$$3); RETURN_MM_BOOL(0); @@ -96311,7 +94832,7 @@ static PHP_METHOD(Phalcon_Mvc_View, render) { RETURN_MM_BOOL(0); } } - ZEPHIR_CALL_FUNCTION(&_10, "ob_get_contents", &_2, 127); + ZEPHIR_CALL_FUNCTION(&_10, "ob_get_contents", &_2, 116); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_content"), &_10); mustClean = 1; @@ -96529,11 +95050,11 @@ static PHP_METHOD(Phalcon_Mvc_View, getPartial) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &partialPath_param, ¶ms); - if (unlikely(Z_TYPE_P(partialPath_param) != IS_STRING && Z_TYPE_P(partialPath_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(partialPath_param) != IS_STRING && Z_TYPE_P(partialPath_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'partialPath' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(partialPath_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(partialPath_param) == IS_STRING)) { zephir_get_strval(&partialPath, partialPath_param); } else { ZEPHIR_INIT_VAR(&partialPath); @@ -96545,11 +95066,11 @@ static PHP_METHOD(Phalcon_Mvc_View, getPartial) { } - ZEPHIR_CALL_FUNCTION(NULL, "ob_start", NULL, 126); + ZEPHIR_CALL_FUNCTION(NULL, "ob_start", NULL, 115); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, this_ptr, "partial", NULL, 0, &partialPath, params); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_FUNCTION("ob_get_clean", NULL, 294); + ZEPHIR_RETURN_CALL_FUNCTION("ob_get_clean", NULL, 262); zephir_check_call_status(); RETURN_MM(); @@ -96577,11 +95098,11 @@ static PHP_METHOD(Phalcon_Mvc_View, partial) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &partialPath_param, ¶ms); - if (unlikely(Z_TYPE_P(partialPath_param) != IS_STRING && Z_TYPE_P(partialPath_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(partialPath_param) != IS_STRING && Z_TYPE_P(partialPath_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'partialPath' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(partialPath_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(partialPath_param) == IS_STRING)) { zephir_get_strval(&partialPath, partialPath_param); } else { ZEPHIR_INIT_VAR(&partialPath); @@ -96639,21 +95160,21 @@ static PHP_METHOD(Phalcon_Mvc_View, getRender) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 2, &controllerName_param, &actionName_param, ¶ms, &configCallback); - if (unlikely(Z_TYPE_P(controllerName_param) != IS_STRING && Z_TYPE_P(controllerName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(controllerName_param) != IS_STRING && Z_TYPE_P(controllerName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'controllerName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(controllerName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(controllerName_param) == IS_STRING)) { zephir_get_strval(&controllerName, controllerName_param); } else { ZEPHIR_INIT_VAR(&controllerName); ZVAL_EMPTY_STRING(&controllerName); } - if (unlikely(Z_TYPE_P(actionName_param) != IS_STRING && Z_TYPE_P(actionName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(actionName_param) != IS_STRING && Z_TYPE_P(actionName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'actionName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(actionName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(actionName_param) == IS_STRING)) { zephir_get_strval(&actionName, actionName_param); } else { ZEPHIR_INIT_VAR(&actionName); @@ -96691,7 +95212,7 @@ static PHP_METHOD(Phalcon_Mvc_View, getRender) { zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, &view, "render", NULL, 0, &controllerName, &actionName); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(NULL, "ob_end_clean", NULL, 128); + ZEPHIR_CALL_FUNCTION(NULL, "ob_end_clean", NULL, 117); zephir_check_call_status(); ZEPHIR_RETURN_CALL_METHOD(&view, "getcontent", NULL, 0); zephir_check_call_status(); @@ -96707,7 +95228,7 @@ static PHP_METHOD(Phalcon_Mvc_View, finish) { ZEPHIR_MM_GROW(); - ZEPHIR_CALL_FUNCTION(NULL, "ob_end_clean", NULL, 128); + ZEPHIR_CALL_FUNCTION(NULL, "ob_end_clean", NULL, 117); zephir_check_call_status(); RETURN_THIS(); @@ -97028,11 +95549,11 @@ static PHP_METHOD(Phalcon_Mvc_View, __set) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &key_param, &value); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(&key, key_param); } else { ZEPHIR_INIT_VAR(&key); @@ -97058,11 +95579,11 @@ static PHP_METHOD(Phalcon_Mvc_View, __get) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &key_param); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(&key, key_param); } else { ZEPHIR_INIT_VAR(&key); @@ -97099,11 +95620,11 @@ static PHP_METHOD(Phalcon_Mvc_View, __isset) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &key_param); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(&key, key_param); } else { ZEPHIR_INIT_VAR(&key); @@ -97370,11 +95891,11 @@ static PHP_METHOD(Phalcon_Mvc_Collection_Behavior, mustTakeAction) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &eventName_param); - if (unlikely(Z_TYPE_P(eventName_param) != IS_STRING && Z_TYPE_P(eventName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(eventName_param) != IS_STRING && Z_TYPE_P(eventName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'eventName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(eventName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(eventName_param) == IS_STRING)) { zephir_get_strval(&eventName, eventName_param); } else { ZEPHIR_INIT_VAR(&eventName); @@ -97404,11 +95925,11 @@ static PHP_METHOD(Phalcon_Mvc_Collection_Behavior, getOptions) { ZEPHIR_INIT_VAR(&eventName); ZVAL_STRING(&eventName, ""); } else { - if (unlikely(Z_TYPE_P(eventName_param) != IS_STRING && Z_TYPE_P(eventName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(eventName_param) != IS_STRING && Z_TYPE_P(eventName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'eventName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(eventName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(eventName_param) == IS_STRING)) { zephir_get_strval(&eventName, eventName_param); } else { ZEPHIR_INIT_VAR(&eventName); @@ -97525,11 +96046,11 @@ static PHP_METHOD(Phalcon_Mvc_Collection_Document, offsetExists) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &index_param); - if (unlikely(Z_TYPE_P(index_param) != IS_STRING && Z_TYPE_P(index_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(index_param) != IS_STRING && Z_TYPE_P(index_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'index' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(index_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(index_param) == IS_STRING)) { zephir_get_strval(&index, index_param); } else { ZEPHIR_INIT_VAR(&index); @@ -97553,11 +96074,11 @@ static PHP_METHOD(Phalcon_Mvc_Collection_Document, offsetGet) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &index_param); - if (unlikely(Z_TYPE_P(index_param) != IS_STRING && Z_TYPE_P(index_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(index_param) != IS_STRING && Z_TYPE_P(index_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'index' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(index_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(index_param) == IS_STRING)) { zephir_get_strval(&index, index_param); } else { ZEPHIR_INIT_VAR(&index); @@ -97586,11 +96107,11 @@ static PHP_METHOD(Phalcon_Mvc_Collection_Document, offsetSet) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &index_param, &value); - if (unlikely(Z_TYPE_P(index_param) != IS_STRING && Z_TYPE_P(index_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(index_param) != IS_STRING && Z_TYPE_P(index_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'index' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(index_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(index_param) == IS_STRING)) { zephir_get_strval(&index, index_param); } else { ZEPHIR_INIT_VAR(&index); @@ -97652,11 +96173,11 @@ static PHP_METHOD(Phalcon_Mvc_Collection_Document, writeAttribute) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &attribute_param, &value); - if (unlikely(Z_TYPE_P(attribute_param) != IS_STRING && Z_TYPE_P(attribute_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(attribute_param) != IS_STRING && Z_TYPE_P(attribute_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'attribute' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(attribute_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(attribute_param) == IS_STRING)) { zephir_get_strval(&attribute, attribute_param); } else { ZEPHIR_INIT_VAR(&attribute); @@ -97677,7 +96198,7 @@ static PHP_METHOD(Phalcon_Mvc_Collection_Document, toArray) { ZEPHIR_MM_GROW(); - ZEPHIR_RETURN_CALL_FUNCTION("get_object_vars", NULL, 21, this_ptr); + ZEPHIR_RETURN_CALL_FUNCTION("get_object_vars", NULL, 16, this_ptr); zephir_check_call_status(); RETURN_MM(); @@ -97915,11 +96436,11 @@ static PHP_METHOD(Phalcon_Mvc_Collection_Manager, isInitialized) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &modelName_param); - if (unlikely(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'modelName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(modelName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(modelName_param) == IS_STRING)) { zephir_get_strval(&modelName, modelName_param); } else { ZEPHIR_INIT_VAR(&modelName); @@ -97956,11 +96477,11 @@ static PHP_METHOD(Phalcon_Mvc_Collection_Manager, setConnectionService) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &model, &connectionService_param); - if (unlikely(Z_TYPE_P(connectionService_param) != IS_STRING && Z_TYPE_P(connectionService_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(connectionService_param) != IS_STRING && Z_TYPE_P(connectionService_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'connectionService' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(connectionService_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(connectionService_param) == IS_STRING)) { zephir_get_strval(&connectionService, connectionService_param); } else { ZEPHIR_INIT_VAR(&connectionService); @@ -98124,11 +96645,11 @@ static PHP_METHOD(Phalcon_Mvc_Collection_Manager, notifyEvent) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &eventName_param, &model); - if (unlikely(Z_TYPE_P(eventName_param) != IS_STRING && Z_TYPE_P(eventName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(eventName_param) != IS_STRING && Z_TYPE_P(eventName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'eventName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(eventName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(eventName_param) == IS_STRING)) { zephir_get_strval(&eventName, eventName_param); } else { ZEPHIR_INIT_VAR(&eventName); @@ -98210,11 +96731,11 @@ static PHP_METHOD(Phalcon_Mvc_Collection_Manager, missingMethod) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &model, &eventName_param, &data); - if (unlikely(Z_TYPE_P(eventName_param) != IS_STRING && Z_TYPE_P(eventName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(eventName_param) != IS_STRING && Z_TYPE_P(eventName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'eventName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(eventName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(eventName_param) == IS_STRING)) { zephir_get_strval(&eventName, eventName_param); } else { ZEPHIR_INIT_VAR(&eventName); @@ -98367,11 +96888,11 @@ static PHP_METHOD(Phalcon_Mvc_Collection_Behavior_SoftDelete, notify) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &type_param, &model); - if (unlikely(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'type' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(type_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(type_param) == IS_STRING)) { zephir_get_strval(&type, type_param); } else { ZEPHIR_INIT_VAR(&type); @@ -98467,11 +96988,11 @@ static PHP_METHOD(Phalcon_Mvc_Collection_Behavior_Timestampable, notify) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &type_param, &model); - if (unlikely(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'type' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(type_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(type_param) == IS_STRING)) { zephir_get_strval(&type, type_param); } else { ZEPHIR_INIT_VAR(&type); @@ -98496,7 +97017,7 @@ static PHP_METHOD(Phalcon_Mvc_Collection_Behavior_Timestampable, notify) { ZVAL_NULL(×tamp); ZEPHIR_OBS_VAR(&format); if (zephir_array_isset_string_fetch(&format, &options, SL("format"), 0)) { - ZEPHIR_CALL_FUNCTION(×tamp, "date", NULL, 303, &format); + ZEPHIR_CALL_FUNCTION(×tamp, "date", NULL, 271, &format); zephir_check_call_status(); } else { ZEPHIR_OBS_VAR(&generator); @@ -98614,11 +97135,11 @@ static PHP_METHOD(Phalcon_Mvc_Micro_Collection, _addMap) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 4, 0, &method_param, &routePattern, &handler, &name); - if (unlikely(Z_TYPE_P(method_param) != IS_STRING && Z_TYPE_P(method_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(method_param) != IS_STRING && Z_TYPE_P(method_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'method' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(method_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(method_param) == IS_STRING)) { zephir_get_strval(&method, method_param); } else { ZEPHIR_INIT_VAR(&method); @@ -98648,11 +97169,11 @@ static PHP_METHOD(Phalcon_Mvc_Micro_Collection, setPrefix) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &prefix_param); - if (unlikely(Z_TYPE_P(prefix_param) != IS_STRING && Z_TYPE_P(prefix_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(prefix_param) != IS_STRING && Z_TYPE_P(prefix_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'prefix' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(prefix_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(prefix_param) == IS_STRING)) { zephir_get_strval(&prefix, prefix_param); } else { ZEPHIR_INIT_VAR(&prefix); @@ -98723,7 +97244,7 @@ static PHP_METHOD(Phalcon_Mvc_Micro_Collection, setLazy) { zephir_fetch_params(0, 1, 0, &lazy_param); - if (unlikely(Z_TYPE_P(lazy_param) != IS_TRUE && Z_TYPE_P(lazy_param) != IS_FALSE)) { + if (UNEXPECTED(Z_TYPE_P(lazy_param) != IS_TRUE && Z_TYPE_P(lazy_param) != IS_FALSE)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'lazy' must be a bool") TSRMLS_CC); RETURN_NULL(); } @@ -98773,11 +97294,11 @@ static PHP_METHOD(Phalcon_Mvc_Micro_Collection, map) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 1, &routePattern_param, &handler, &name); - if (unlikely(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'routePattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(routePattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(routePattern_param) == IS_STRING)) { zephir_get_strval(&routePattern, routePattern_param); } else { ZEPHIR_INIT_VAR(&routePattern); @@ -98812,11 +97333,11 @@ static PHP_METHOD(Phalcon_Mvc_Micro_Collection, get) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 1, &routePattern_param, &handler, &name); - if (unlikely(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'routePattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(routePattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(routePattern_param) == IS_STRING)) { zephir_get_strval(&routePattern, routePattern_param); } else { ZEPHIR_INIT_VAR(&routePattern); @@ -98852,11 +97373,11 @@ static PHP_METHOD(Phalcon_Mvc_Micro_Collection, post) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 1, &routePattern_param, &handler, &name); - if (unlikely(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'routePattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(routePattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(routePattern_param) == IS_STRING)) { zephir_get_strval(&routePattern, routePattern_param); } else { ZEPHIR_INIT_VAR(&routePattern); @@ -98892,11 +97413,11 @@ static PHP_METHOD(Phalcon_Mvc_Micro_Collection, put) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 1, &routePattern_param, &handler, &name); - if (unlikely(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'routePattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(routePattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(routePattern_param) == IS_STRING)) { zephir_get_strval(&routePattern, routePattern_param); } else { ZEPHIR_INIT_VAR(&routePattern); @@ -98932,11 +97453,11 @@ static PHP_METHOD(Phalcon_Mvc_Micro_Collection, patch) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 1, &routePattern_param, &handler, &name); - if (unlikely(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'routePattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(routePattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(routePattern_param) == IS_STRING)) { zephir_get_strval(&routePattern, routePattern_param); } else { ZEPHIR_INIT_VAR(&routePattern); @@ -98972,11 +97493,11 @@ static PHP_METHOD(Phalcon_Mvc_Micro_Collection, head) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 1, &routePattern_param, &handler, &name); - if (unlikely(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'routePattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(routePattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(routePattern_param) == IS_STRING)) { zephir_get_strval(&routePattern, routePattern_param); } else { ZEPHIR_INIT_VAR(&routePattern); @@ -99012,11 +97533,11 @@ static PHP_METHOD(Phalcon_Mvc_Micro_Collection, delete) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 1, &routePattern_param, &handler, &name); - if (unlikely(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'routePattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(routePattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(routePattern_param) == IS_STRING)) { zephir_get_strval(&routePattern, routePattern_param); } else { ZEPHIR_INIT_VAR(&routePattern); @@ -99052,11 +97573,11 @@ static PHP_METHOD(Phalcon_Mvc_Micro_Collection, options) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 1, &routePattern_param, &handler, &name); - if (unlikely(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'routePattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(routePattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(routePattern_param) == IS_STRING)) { zephir_get_strval(&routePattern, routePattern_param); } else { ZEPHIR_INIT_VAR(&routePattern); @@ -99186,11 +97707,11 @@ static PHP_METHOD(Phalcon_Mvc_Micro_LazyLoader, __construct) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &definition_param); - if (unlikely(Z_TYPE_P(definition_param) != IS_STRING && Z_TYPE_P(definition_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(definition_param) != IS_STRING && Z_TYPE_P(definition_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'definition' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(definition_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(definition_param) == IS_STRING)) { zephir_get_strval(&definition, definition_param); } else { ZEPHIR_INIT_VAR(&definition); @@ -99225,11 +97746,11 @@ static PHP_METHOD(Phalcon_Mvc_Micro_LazyLoader, __call) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &method_param, &arguments); - if (unlikely(Z_TYPE_P(method_param) != IS_STRING && Z_TYPE_P(method_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(method_param) != IS_STRING && Z_TYPE_P(method_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'method' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(method_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(method_param) == IS_STRING)) { zephir_get_strval(&method, method_param); } else { ZEPHIR_INIT_VAR(&method); @@ -99287,11 +97808,11 @@ static PHP_METHOD(Phalcon_Mvc_Micro_LazyLoader, callMethod) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 1, &method_param, &arguments, &modelBinder); - if (unlikely(Z_TYPE_P(method_param) != IS_STRING && Z_TYPE_P(method_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(method_param) != IS_STRING && Z_TYPE_P(method_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'method' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(method_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(method_param) == IS_STRING)) { zephir_get_strval(&method, method_param); } else { ZEPHIR_INIT_VAR(&method); @@ -99383,11 +97904,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Behavior, mustTakeAction) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &eventName_param); - if (unlikely(Z_TYPE_P(eventName_param) != IS_STRING && Z_TYPE_P(eventName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(eventName_param) != IS_STRING && Z_TYPE_P(eventName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'eventName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(eventName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(eventName_param) == IS_STRING)) { zephir_get_strval(&eventName, eventName_param); } else { ZEPHIR_INIT_VAR(&eventName); @@ -99417,11 +97938,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Behavior, getOptions) { ZEPHIR_INIT_VAR(&eventName); ZVAL_STRING(&eventName, ""); } else { - if (unlikely(Z_TYPE_P(eventName_param) != IS_STRING && Z_TYPE_P(eventName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(eventName_param) != IS_STRING && Z_TYPE_P(eventName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'eventName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(eventName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(eventName_param) == IS_STRING)) { zephir_get_strval(&eventName, eventName_param); } else { ZEPHIR_INIT_VAR(&eventName); @@ -99775,16 +98296,16 @@ static PHP_METHOD(Phalcon_Mvc_Model_Binder, getParamsFromReflection) { ZEPHIR_INIT_VAR(&reflection); if (Z_TYPE_P(methodName) != IS_NULL) { object_init_ex(&reflection, zephir_get_internal_ce(SL("reflectionmethod"))); - ZEPHIR_CALL_METHOD(NULL, &reflection, "__construct", NULL, 325, handler, methodName); + ZEPHIR_CALL_METHOD(NULL, &reflection, "__construct", NULL, 294, handler, methodName); zephir_check_call_status(); } else { object_init_ex(&reflection, zephir_get_internal_ce(SL("reflectionfunction"))); - ZEPHIR_CALL_METHOD(NULL, &reflection, "__construct", NULL, 82, handler); + ZEPHIR_CALL_METHOD(NULL, &reflection, "__construct", NULL, 74, handler); zephir_check_call_status(); } zephir_read_property(&_0, this_ptr, SL("cache"), PH_NOISY_CC | PH_READONLY); ZEPHIR_CPY_WRT(&cache, &_0); - ZEPHIR_CALL_METHOD(&methodParams, &reflection, "getparameters", NULL, 83); + ZEPHIR_CALL_METHOD(&methodParams, &reflection, "getparameters", NULL, 75); zephir_check_call_status(); ZEPHIR_INIT_VAR(¶msKeys); zephir_array_keys(¶msKeys, ¶ms TSRMLS_CC); @@ -99816,7 +98337,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Binder, getParamsFromReflection) { zephir_array_fetch(¶mValue, ¶ms, ¶mKey, PH_NOISY, "phalcon/mvc/model/binder.zep", 160 TSRMLS_CC); ZEPHIR_INIT_NVAR(&_5$$5); ZVAL_STRING(&_5$$5, "Phalcon\\Mvc\\Model"); - ZEPHIR_CALL_FUNCTION(&_6$$5, "is_subclass_of", &_7, 326, &className, &_5$$5); + ZEPHIR_CALL_FUNCTION(&_6$$5, "is_subclass_of", &_7, 295, &className, &_5$$5); zephir_check_call_status(); if (ZEPHIR_IS_STRING(&className, "Phalcon\\Mvc\\Model")) { if (Z_TYPE_P(&realClasses) == IS_NULL) { @@ -99845,7 +98366,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Binder, getParamsFromReflection) { object_init_ex(&_10$$15, phalcon_mvc_model_exception_ce); ZEPHIR_INIT_LNVAR(_11$$15); ZEPHIR_CONCAT_SVS(&_11$$15, "You should provide model class name for ", ¶mKey, " parameter"); - ZEPHIR_CALL_METHOD(NULL, &_10$$15, "__construct", &_12, 9, &_11$$15); + ZEPHIR_CALL_METHOD(NULL, &_10$$15, "__construct", &_12, 4, &_11$$15); zephir_check_call_status(); zephir_throw_exception_debug(&_10$$15, "phalcon/mvc/model/binder.zep", 177 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -100026,11 +98547,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, setModelName) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &modelName_param); - if (unlikely(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'modelName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(modelName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(modelName_param) == IS_STRING)) { zephir_get_strval(&modelName, modelName_param); } else { ZEPHIR_INIT_VAR(&modelName); @@ -100193,11 +98714,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, join) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 3, &model_param, &conditions, &alias, &type); - if (unlikely(Z_TYPE_P(model_param) != IS_STRING && Z_TYPE_P(model_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(model_param) != IS_STRING && Z_TYPE_P(model_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'model' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(model_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(model_param) == IS_STRING)) { zephir_get_strval(&model, model_param); } else { ZEPHIR_INIT_VAR(&model); @@ -100265,11 +98786,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, innerJoin) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &model_param, &conditions, &alias); - if (unlikely(Z_TYPE_P(model_param) != IS_STRING && Z_TYPE_P(model_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(model_param) != IS_STRING && Z_TYPE_P(model_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'model' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(model_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(model_param) == IS_STRING)) { zephir_get_strval(&model, model_param); } else { ZEPHIR_INIT_VAR(&model); @@ -100309,11 +98830,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, leftJoin) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &model_param, &conditions, &alias); - if (unlikely(Z_TYPE_P(model_param) != IS_STRING && Z_TYPE_P(model_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(model_param) != IS_STRING && Z_TYPE_P(model_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'model' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(model_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(model_param) == IS_STRING)) { zephir_get_strval(&model, model_param); } else { ZEPHIR_INIT_VAR(&model); @@ -100353,11 +98874,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, rightJoin) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &model_param, &conditions, &alias); - if (unlikely(Z_TYPE_P(model_param) != IS_STRING && Z_TYPE_P(model_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(model_param) != IS_STRING && Z_TYPE_P(model_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'model' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(model_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(model_param) == IS_STRING)) { zephir_get_strval(&model, model_param); } else { ZEPHIR_INIT_VAR(&model); @@ -100406,11 +98927,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, where) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &conditions_param, &bindParams, &bindTypes); - if (unlikely(Z_TYPE_P(conditions_param) != IS_STRING && Z_TYPE_P(conditions_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(conditions_param) != IS_STRING && Z_TYPE_P(conditions_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'conditions' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(conditions_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(conditions_param) == IS_STRING)) { zephir_get_strval(&conditions, conditions_param); } else { ZEPHIR_INIT_VAR(&conditions); @@ -100478,11 +98999,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, addWhere) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &conditions_param, &bindParams, &bindTypes); - if (unlikely(Z_TYPE_P(conditions_param) != IS_STRING && Z_TYPE_P(conditions_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(conditions_param) != IS_STRING && Z_TYPE_P(conditions_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'conditions' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(conditions_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(conditions_param) == IS_STRING)) { zephir_get_strval(&conditions, conditions_param); } else { ZEPHIR_INIT_VAR(&conditions); @@ -100522,11 +99043,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, andWhere) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &conditions_param, &bindParams, &bindTypes); - if (unlikely(Z_TYPE_P(conditions_param) != IS_STRING && Z_TYPE_P(conditions_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(conditions_param) != IS_STRING && Z_TYPE_P(conditions_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'conditions' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(conditions_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(conditions_param) == IS_STRING)) { zephir_get_strval(&conditions, conditions_param); } else { ZEPHIR_INIT_VAR(&conditions); @@ -100573,11 +99094,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, orWhere) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &conditions_param, &bindParams, &bindTypes); - if (unlikely(Z_TYPE_P(conditions_param) != IS_STRING && Z_TYPE_P(conditions_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(conditions_param) != IS_STRING && Z_TYPE_P(conditions_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'conditions' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(conditions_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(conditions_param) == IS_STRING)) { zephir_get_strval(&conditions, conditions_param); } else { ZEPHIR_INIT_VAR(&conditions); @@ -100627,11 +99148,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, betweenWhere) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &expr_param, &minimum, &maximum); - if (unlikely(Z_TYPE_P(expr_param) != IS_STRING && Z_TYPE_P(expr_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(expr_param) != IS_STRING && Z_TYPE_P(expr_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'expr' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(expr_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(expr_param) == IS_STRING)) { zephir_get_strval(&expr, expr_param); } else { ZEPHIR_INIT_VAR(&expr); @@ -100683,11 +99204,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, notBetweenWhere) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &expr_param, &minimum, &maximum); - if (unlikely(Z_TYPE_P(expr_param) != IS_STRING && Z_TYPE_P(expr_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(expr_param) != IS_STRING && Z_TYPE_P(expr_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'expr' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(expr_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(expr_param) == IS_STRING)) { zephir_get_strval(&expr, expr_param); } else { ZEPHIR_INIT_VAR(&expr); @@ -100742,11 +99263,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, inWhere) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &expr_param, &values_param); - if (unlikely(Z_TYPE_P(expr_param) != IS_STRING && Z_TYPE_P(expr_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(expr_param) != IS_STRING && Z_TYPE_P(expr_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'expr' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(expr_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(expr_param) == IS_STRING)) { zephir_get_strval(&expr, expr_param); } else { ZEPHIR_INIT_VAR(&expr); @@ -100816,11 +99337,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, notInWhere) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &expr_param, &values_param); - if (unlikely(Z_TYPE_P(expr_param) != IS_STRING && Z_TYPE_P(expr_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(expr_param) != IS_STRING && Z_TYPE_P(expr_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'expr' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(expr_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(expr_param) == IS_STRING)) { zephir_get_strval(&expr, expr_param); } else { ZEPHIR_INIT_VAR(&expr); @@ -100873,11 +99394,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, conditions) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &conditions_param); - if (unlikely(Z_TYPE_P(conditions_param) != IS_STRING && Z_TYPE_P(conditions_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(conditions_param) != IS_STRING && Z_TYPE_P(conditions_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'conditions' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(conditions_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(conditions_param) == IS_STRING)) { zephir_get_strval(&conditions, conditions_param); } else { ZEPHIR_INIT_VAR(&conditions); @@ -100904,11 +99425,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, order) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &orderColumns_param); - if (unlikely(Z_TYPE_P(orderColumns_param) != IS_STRING && Z_TYPE_P(orderColumns_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(orderColumns_param) != IS_STRING && Z_TYPE_P(orderColumns_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'orderColumns' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(orderColumns_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(orderColumns_param) == IS_STRING)) { zephir_get_strval(&orderColumns, orderColumns_param); } else { ZEPHIR_INIT_VAR(&orderColumns); @@ -100935,11 +99456,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, orderBy) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &orderColumns_param); - if (unlikely(Z_TYPE_P(orderColumns_param) != IS_STRING && Z_TYPE_P(orderColumns_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(orderColumns_param) != IS_STRING && Z_TYPE_P(orderColumns_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'orderColumns' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(orderColumns_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(orderColumns_param) == IS_STRING)) { zephir_get_strval(&orderColumns, orderColumns_param); } else { ZEPHIR_INIT_VAR(&orderColumns); @@ -101025,15 +99546,15 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, limit) { ZVAL_LONG(&_0, limit); - ZEPHIR_CALL_FUNCTION(&_1, "abs", &_2, 199, &_0); + ZEPHIR_CALL_FUNCTION(&_1, "abs", &_2, 181, &_0); zephir_check_call_status(); limit = zephir_get_numberval(&_1); - if (unlikely(limit == 0)) { + if (UNEXPECTED(limit == 0)) { RETURN_THIS(); } if (zephir_is_numeric(offset)) { ZVAL_LONG(&_3$$4, zephir_get_intval(offset)); - ZEPHIR_CALL_FUNCTION(offset, "abs", &_2, 199, &_3$$4); + ZEPHIR_CALL_FUNCTION(offset, "abs", &_2, 181, &_3$$4); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_4$$4); zephir_create_array(&_4$$4, 2, 0 TSRMLS_CC); @@ -101300,11 +99821,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, fromInput) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 1, &dependencyInjector, &modelName_param, &data_param, &operator_param); - if (unlikely(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'modelName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(modelName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(modelName_param) == IS_STRING)) { zephir_get_strval(&modelName, modelName_param); } else { ZEPHIR_INIT_VAR(&modelName); @@ -101315,11 +99836,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, fromInput) { ZEPHIR_INIT_VAR(&operator); ZVAL_STRING(&operator, "AND"); } else { - if (unlikely(Z_TYPE_P(operator_param) != IS_STRING && Z_TYPE_P(operator_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(operator_param) != IS_STRING && Z_TYPE_P(operator_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'operator' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(operator_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(operator_param) == IS_STRING)) { zephir_get_strval(&operator, operator_param); } else { ZEPHIR_INIT_VAR(&operator); @@ -101408,12 +99929,12 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, fromInput) { ZEPHIR_INIT_VAR(&_13$$10); ZEPHIR_CONCAT_SVS(&_13$$10, " ", &operator, " "); zephir_fast_join(&_12$$10, &_13$$10, &conditions TSRMLS_CC); - ZEPHIR_CALL_METHOD(NULL, &criteria, "where", NULL, 327, &_12$$10); + ZEPHIR_CALL_METHOD(NULL, &criteria, "where", NULL, 296, &_12$$10); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, &criteria, "bind", NULL, 328, &bind); + ZEPHIR_CALL_METHOD(NULL, &criteria, "bind", NULL, 297, &bind); zephir_check_call_status(); } - ZEPHIR_CALL_METHOD(NULL, &criteria, "setmodelname", NULL, 317, &modelName); + ZEPHIR_CALL_METHOD(NULL, &criteria, "setmodelname", NULL, 286, &modelName); zephir_check_call_status(); RETURN_CCTOR(criteria); @@ -101749,11 +100270,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, isInitialized) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &modelName_param); - if (unlikely(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'modelName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(modelName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(modelName_param) == IS_STRING)) { zephir_get_strval(&modelName, modelName_param); } else { ZEPHIR_INIT_VAR(&modelName); @@ -101807,11 +100328,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, load) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &modelName_param, &newInstance_param); - if (unlikely(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'modelName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(modelName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(modelName_param) == IS_STRING)) { zephir_get_strval(&modelName, modelName_param); } else { ZEPHIR_INIT_VAR(&modelName); @@ -101846,7 +100367,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, load) { object_init_ex(&_4$$4, phalcon_mvc_model_exception_ce); ZEPHIR_INIT_VAR(&_5$$4); ZEPHIR_CONCAT_SVS(&_5$$4, "Model '", &modelName, "' could not be loaded"); - ZEPHIR_CALL_METHOD(NULL, &_4$$4, "__construct", NULL, 9, &_5$$4); + ZEPHIR_CALL_METHOD(NULL, &_4$$4, "__construct", NULL, 4, &_5$$4); zephir_check_call_status(); zephir_throw_exception_debug(&_4$$4, "phalcon/mvc/model/manager.zep", 296 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -101889,11 +100410,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, setModelSource) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &model, &source_param); - if (unlikely(Z_TYPE_P(source_param) != IS_STRING && Z_TYPE_P(source_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(source_param) != IS_STRING && Z_TYPE_P(source_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'source' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(source_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(source_param) == IS_STRING)) { zephir_get_strval(&source, source_param); } else { ZEPHIR_INIT_VAR(&source); @@ -101933,7 +100454,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, isVisibleModelProperty) { zephir_get_class(&className, model, 0 TSRMLS_CC); zephir_read_property(&_0, this_ptr, SL("_modelVisibility"), PH_NOISY_CC | PH_READONLY); if (!(zephir_array_isset(&_0, &className))) { - ZEPHIR_CALL_FUNCTION(&_1$$3, "get_object_vars", NULL, 21, model); + ZEPHIR_CALL_FUNCTION(&_1$$3, "get_object_vars", NULL, 16, model); zephir_check_call_status(); zephir_update_property_array(this_ptr, SL("_modelVisibility"), &className, &_1$$3 TSRMLS_CC); } @@ -101991,11 +100512,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, setModelSchema) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &model, &schema_param); - if (unlikely(Z_TYPE_P(schema_param) != IS_STRING && Z_TYPE_P(schema_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schema_param) != IS_STRING && Z_TYPE_P(schema_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schema' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schema_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schema_param) == IS_STRING)) { zephir_get_strval(&schema, schema_param); } else { ZEPHIR_INIT_VAR(&schema); @@ -102048,11 +100569,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, setConnectionService) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &model, &connectionService_param); - if (unlikely(Z_TYPE_P(connectionService_param) != IS_STRING && Z_TYPE_P(connectionService_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(connectionService_param) != IS_STRING && Z_TYPE_P(connectionService_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'connectionService' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(connectionService_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(connectionService_param) == IS_STRING)) { zephir_get_strval(&connectionService, connectionService_param); } else { ZEPHIR_INIT_VAR(&connectionService); @@ -102081,11 +100602,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, setWriteConnectionService) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &model, &connectionService_param); - if (unlikely(Z_TYPE_P(connectionService_param) != IS_STRING && Z_TYPE_P(connectionService_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(connectionService_param) != IS_STRING && Z_TYPE_P(connectionService_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'connectionService' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(connectionService_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(connectionService_param) == IS_STRING)) { zephir_get_strval(&connectionService, connectionService_param); } else { ZEPHIR_INIT_VAR(&connectionService); @@ -102113,11 +100634,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, setReadConnectionService) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &model, &connectionService_param); - if (unlikely(Z_TYPE_P(connectionService_param) != IS_STRING && Z_TYPE_P(connectionService_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(connectionService_param) != IS_STRING && Z_TYPE_P(connectionService_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'connectionService' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(connectionService_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(connectionService_param) == IS_STRING)) { zephir_get_strval(&connectionService, connectionService_param); } else { ZEPHIR_INIT_VAR(&connectionService); @@ -102302,11 +100823,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, notifyEvent) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &eventName_param, &model); - if (unlikely(Z_TYPE_P(eventName_param) != IS_STRING && Z_TYPE_P(eventName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(eventName_param) != IS_STRING && Z_TYPE_P(eventName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'eventName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(eventName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(eventName_param) == IS_STRING)) { zephir_get_strval(&eventName, eventName_param); } else { ZEPHIR_INIT_VAR(&eventName); @@ -102383,11 +100904,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, missingMethod) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &model, &eventName_param, &data); - if (unlikely(Z_TYPE_P(eventName_param) != IS_STRING && Z_TYPE_P(eventName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(eventName_param) != IS_STRING && Z_TYPE_P(eventName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'eventName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(eventName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(eventName_param) == IS_STRING)) { zephir_get_strval(&eventName, eventName_param); } else { ZEPHIR_INIT_VAR(&eventName); @@ -102592,11 +101113,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, addHasOne) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 4, 1, &model, &fields, &referencedModel_param, &referencedFields, &options); - if (unlikely(Z_TYPE_P(referencedModel_param) != IS_STRING && Z_TYPE_P(referencedModel_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(referencedModel_param) != IS_STRING && Z_TYPE_P(referencedModel_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'referencedModel' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(referencedModel_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(referencedModel_param) == IS_STRING)) { zephir_get_strval(&referencedModel, referencedModel_param); } else { ZEPHIR_INIT_VAR(&referencedModel); @@ -102629,7 +101150,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, addHasOne) { ZEPHIR_INIT_VAR(&relation); object_init_ex(&relation, phalcon_mvc_model_relation_ce); ZVAL_LONG(&_1, 1); - ZEPHIR_CALL_METHOD(NULL, &relation, "__construct", NULL, 329, &_1, &referencedModel, fields, referencedFields, options); + ZEPHIR_CALL_METHOD(NULL, &relation, "__construct", NULL, 298, &_1, &referencedModel, fields, referencedFields, options); zephir_check_call_status(); ZEPHIR_OBS_VAR(&alias); if (zephir_array_isset_string_fetch(&alias, options, SL("alias"), 0)) { @@ -102687,11 +101208,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, addBelongsTo) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 4, 1, &model, &fields, &referencedModel_param, &referencedFields, &options); - if (unlikely(Z_TYPE_P(referencedModel_param) != IS_STRING && Z_TYPE_P(referencedModel_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(referencedModel_param) != IS_STRING && Z_TYPE_P(referencedModel_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'referencedModel' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(referencedModel_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(referencedModel_param) == IS_STRING)) { zephir_get_strval(&referencedModel, referencedModel_param); } else { ZEPHIR_INIT_VAR(&referencedModel); @@ -102724,7 +101245,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, addBelongsTo) { ZEPHIR_INIT_VAR(&relation); object_init_ex(&relation, phalcon_mvc_model_relation_ce); ZVAL_LONG(&_1, 0); - ZEPHIR_CALL_METHOD(NULL, &relation, "__construct", NULL, 329, &_1, &referencedModel, fields, referencedFields, options); + ZEPHIR_CALL_METHOD(NULL, &relation, "__construct", NULL, 298, &_1, &referencedModel, fields, referencedFields, options); zephir_check_call_status(); ZEPHIR_OBS_VAR(&alias); if (zephir_array_isset_string_fetch(&alias, options, SL("alias"), 0)) { @@ -102782,11 +101303,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, addHasMany) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 4, 1, &model, &fields, &referencedModel_param, &referencedFields, &options); - if (unlikely(Z_TYPE_P(referencedModel_param) != IS_STRING && Z_TYPE_P(referencedModel_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(referencedModel_param) != IS_STRING && Z_TYPE_P(referencedModel_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'referencedModel' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(referencedModel_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(referencedModel_param) == IS_STRING)) { zephir_get_strval(&referencedModel, referencedModel_param); } else { ZEPHIR_INIT_VAR(&referencedModel); @@ -102820,7 +101341,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, addHasMany) { ZEPHIR_INIT_VAR(&relation); object_init_ex(&relation, phalcon_mvc_model_relation_ce); ZVAL_LONG(&_0, 2); - ZEPHIR_CALL_METHOD(NULL, &relation, "__construct", NULL, 329, &_0, &referencedModel, fields, referencedFields, options); + ZEPHIR_CALL_METHOD(NULL, &relation, "__construct", NULL, 298, &_0, &referencedModel, fields, referencedFields, options); zephir_check_call_status(); ZEPHIR_OBS_VAR(&alias); if (zephir_array_isset_string_fetch(&alias, options, SL("alias"), 0)) { @@ -102882,21 +101403,21 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, addHasManyToMany) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 7, 1, &model, &fields, &intermediateModel_param, &intermediateFields, &intermediateReferencedFields, &referencedModel_param, &referencedFields, &options); - if (unlikely(Z_TYPE_P(intermediateModel_param) != IS_STRING && Z_TYPE_P(intermediateModel_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(intermediateModel_param) != IS_STRING && Z_TYPE_P(intermediateModel_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'intermediateModel' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(intermediateModel_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(intermediateModel_param) == IS_STRING)) { zephir_get_strval(&intermediateModel, intermediateModel_param); } else { ZEPHIR_INIT_VAR(&intermediateModel); ZVAL_EMPTY_STRING(&intermediateModel); } - if (unlikely(Z_TYPE_P(referencedModel_param) != IS_STRING && Z_TYPE_P(referencedModel_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(referencedModel_param) != IS_STRING && Z_TYPE_P(referencedModel_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'referencedModel' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(referencedModel_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(referencedModel_param) == IS_STRING)) { zephir_get_strval(&referencedModel, referencedModel_param); } else { ZEPHIR_INIT_VAR(&referencedModel); @@ -102938,9 +101459,9 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, addHasManyToMany) { ZEPHIR_INIT_VAR(&relation); object_init_ex(&relation, phalcon_mvc_model_relation_ce); ZVAL_LONG(&_0, 4); - ZEPHIR_CALL_METHOD(NULL, &relation, "__construct", NULL, 329, &_0, &referencedModel, fields, referencedFields, options); + ZEPHIR_CALL_METHOD(NULL, &relation, "__construct", NULL, 298, &_0, &referencedModel, fields, referencedFields, options); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, &relation, "setintermediaterelation", NULL, 330, intermediateFields, &intermediateModel, intermediateReferencedFields); + ZEPHIR_CALL_METHOD(NULL, &relation, "setintermediaterelation", NULL, 299, intermediateFields, &intermediateModel, intermediateReferencedFields); zephir_check_call_status(); ZEPHIR_OBS_VAR(&alias); if (zephir_array_isset_string_fetch(&alias, options, SL("alias"), 0)) { @@ -102988,21 +101509,21 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, existsBelongsTo) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &modelName_param, &modelRelation_param); - if (unlikely(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'modelName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(modelName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(modelName_param) == IS_STRING)) { zephir_get_strval(&modelName, modelName_param); } else { ZEPHIR_INIT_VAR(&modelName); ZVAL_EMPTY_STRING(&modelName); } - if (unlikely(Z_TYPE_P(modelRelation_param) != IS_STRING && Z_TYPE_P(modelRelation_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(modelRelation_param) != IS_STRING && Z_TYPE_P(modelRelation_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'modelRelation' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(modelRelation_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(modelRelation_param) == IS_STRING)) { zephir_get_strval(&modelRelation, modelRelation_param); } else { ZEPHIR_INIT_VAR(&modelRelation); @@ -103044,21 +101565,21 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, existsHasMany) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &modelName_param, &modelRelation_param); - if (unlikely(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'modelName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(modelName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(modelName_param) == IS_STRING)) { zephir_get_strval(&modelName, modelName_param); } else { ZEPHIR_INIT_VAR(&modelName); ZVAL_EMPTY_STRING(&modelName); } - if (unlikely(Z_TYPE_P(modelRelation_param) != IS_STRING && Z_TYPE_P(modelRelation_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(modelRelation_param) != IS_STRING && Z_TYPE_P(modelRelation_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'modelRelation' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(modelRelation_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(modelRelation_param) == IS_STRING)) { zephir_get_strval(&modelRelation, modelRelation_param); } else { ZEPHIR_INIT_VAR(&modelRelation); @@ -103100,21 +101621,21 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, existsHasOne) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &modelName_param, &modelRelation_param); - if (unlikely(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'modelName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(modelName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(modelName_param) == IS_STRING)) { zephir_get_strval(&modelName, modelName_param); } else { ZEPHIR_INIT_VAR(&modelName); ZVAL_EMPTY_STRING(&modelName); } - if (unlikely(Z_TYPE_P(modelRelation_param) != IS_STRING && Z_TYPE_P(modelRelation_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(modelRelation_param) != IS_STRING && Z_TYPE_P(modelRelation_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'modelRelation' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(modelRelation_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(modelRelation_param) == IS_STRING)) { zephir_get_strval(&modelRelation, modelRelation_param); } else { ZEPHIR_INIT_VAR(&modelRelation); @@ -103156,21 +101677,21 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, existsHasManyToMany) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &modelName_param, &modelRelation_param); - if (unlikely(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'modelName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(modelName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(modelName_param) == IS_STRING)) { zephir_get_strval(&modelName, modelName_param); } else { ZEPHIR_INIT_VAR(&modelName); ZVAL_EMPTY_STRING(&modelName); } - if (unlikely(Z_TYPE_P(modelRelation_param) != IS_STRING && Z_TYPE_P(modelRelation_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(modelRelation_param) != IS_STRING && Z_TYPE_P(modelRelation_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'modelRelation' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(modelRelation_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(modelRelation_param) == IS_STRING)) { zephir_get_strval(&modelRelation, modelRelation_param); } else { ZEPHIR_INIT_VAR(&modelRelation); @@ -103210,21 +101731,21 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, getRelationByAlias) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &modelName_param, &alias_param); - if (unlikely(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'modelName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(modelName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(modelName_param) == IS_STRING)) { zephir_get_strval(&modelName, modelName_param); } else { ZEPHIR_INIT_VAR(&modelName); ZVAL_EMPTY_STRING(&modelName); } - if (unlikely(Z_TYPE_P(alias_param) != IS_STRING && Z_TYPE_P(alias_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(alias_param) != IS_STRING && Z_TYPE_P(alias_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'alias' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(alias_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(alias_param) == IS_STRING)) { zephir_get_strval(&alias, alias_param); } else { ZEPHIR_INIT_VAR(&alias); @@ -103454,11 +101975,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, getRelationRecords) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 1, &relation, &method_param, &record, ¶meters); - if (unlikely(Z_TYPE_P(method_param) != IS_STRING && Z_TYPE_P(method_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(method_param) != IS_STRING && Z_TYPE_P(method_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'method' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(method_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(method_param) == IS_STRING)) { zephir_get_strval(&method, method_param); } else { ZEPHIR_INIT_VAR(&method); @@ -103512,7 +102033,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, getRelationRecords) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Not supported", "phalcon/mvc/model/manager.zep", 1254); return; } - ZEPHIR_CALL_METHOD(&_5$$3, this_ptr, "_mergefindparameters", &_6, 331, &extraParameters, parameters); + ZEPHIR_CALL_METHOD(&_5$$3, this_ptr, "_mergefindparameters", &_6, 300, &extraParameters, parameters); zephir_check_call_status(); ZEPHIR_CALL_METHOD(&builder, this_ptr, "createbuilder", NULL, 0, &_5$$3); zephir_check_call_status(); @@ -103600,10 +102121,10 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, getRelationRecords) { ZEPHIR_CALL_METHOD(&_26, record, "getdi", NULL, 0); zephir_check_call_status(); zephir_array_update_string(&findParams, SL("di"), &_26, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(&findArguments, this_ptr, "_mergefindparameters", &_6, 331, &findParams, parameters); + ZEPHIR_CALL_METHOD(&findArguments, this_ptr, "_mergefindparameters", &_6, 300, &findParams, parameters); zephir_check_call_status(); if (Z_TYPE_P(&extraParameters) == IS_ARRAY) { - ZEPHIR_CALL_METHOD(&findParams, this_ptr, "_mergefindparameters", &_6, 331, &findArguments, &extraParameters); + ZEPHIR_CALL_METHOD(&findParams, this_ptr, "_mergefindparameters", &_6, 300, &findArguments, &extraParameters); zephir_check_call_status(); } else { ZEPHIR_CPY_WRT(&findParams, &findArguments); @@ -103679,21 +102200,21 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, getReusableRecords) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &modelName_param, &key_param); - if (unlikely(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'modelName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(modelName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(modelName_param) == IS_STRING)) { zephir_get_strval(&modelName, modelName_param); } else { ZEPHIR_INIT_VAR(&modelName); ZVAL_EMPTY_STRING(&modelName); } - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(&key, key_param); } else { ZEPHIR_INIT_VAR(&key); @@ -103722,21 +102243,21 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, setReusableRecords) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &modelName_param, &key_param, &records); - if (unlikely(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'modelName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(modelName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(modelName_param) == IS_STRING)) { zephir_get_strval(&modelName, modelName_param); } else { ZEPHIR_INIT_VAR(&modelName); ZVAL_EMPTY_STRING(&modelName); } - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(&key, key_param); } else { ZEPHIR_INIT_VAR(&key); @@ -103784,21 +102305,21 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, getBelongsToRecords) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 4, 1, &method_param, &modelName_param, &modelRelation, &record, ¶meters); - if (unlikely(Z_TYPE_P(method_param) != IS_STRING && Z_TYPE_P(method_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(method_param) != IS_STRING && Z_TYPE_P(method_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'method' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(method_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(method_param) == IS_STRING)) { zephir_get_strval(&method, method_param); } else { ZEPHIR_INIT_VAR(&method); ZVAL_EMPTY_STRING(&method); } - if (unlikely(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'modelName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(modelName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(modelName_param) == IS_STRING)) { zephir_get_strval(&modelName, modelName_param); } else { ZEPHIR_INIT_VAR(&modelName); @@ -103851,21 +102372,21 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, getHasManyRecords) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 4, 1, &method_param, &modelName_param, &modelRelation, &record, ¶meters); - if (unlikely(Z_TYPE_P(method_param) != IS_STRING && Z_TYPE_P(method_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(method_param) != IS_STRING && Z_TYPE_P(method_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'method' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(method_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(method_param) == IS_STRING)) { zephir_get_strval(&method, method_param); } else { ZEPHIR_INIT_VAR(&method); ZVAL_EMPTY_STRING(&method); } - if (unlikely(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'modelName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(modelName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(modelName_param) == IS_STRING)) { zephir_get_strval(&modelName, modelName_param); } else { ZEPHIR_INIT_VAR(&modelName); @@ -103918,21 +102439,21 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, getHasOneRecords) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 4, 1, &method_param, &modelName_param, &modelRelation, &record, ¶meters); - if (unlikely(Z_TYPE_P(method_param) != IS_STRING && Z_TYPE_P(method_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(method_param) != IS_STRING && Z_TYPE_P(method_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'method' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(method_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(method_param) == IS_STRING)) { zephir_get_strval(&method, method_param); } else { ZEPHIR_INIT_VAR(&method); ZVAL_EMPTY_STRING(&method); } - if (unlikely(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'modelName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(modelName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(modelName_param) == IS_STRING)) { zephir_get_strval(&modelName, modelName_param); } else { ZEPHIR_INIT_VAR(&modelName); @@ -104108,11 +102629,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, getRelations) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &modelName_param); - if (unlikely(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'modelName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(modelName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(modelName_param) == IS_STRING)) { zephir_get_strval(&modelName, modelName_param); } else { ZEPHIR_INIT_VAR(&modelName); @@ -104183,21 +102704,21 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, getRelationsBetween) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &first_param, &second_param); - if (unlikely(Z_TYPE_P(first_param) != IS_STRING && Z_TYPE_P(first_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(first_param) != IS_STRING && Z_TYPE_P(first_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'first' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(first_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(first_param) == IS_STRING)) { zephir_get_strval(&first, first_param); } else { ZEPHIR_INIT_VAR(&first); ZVAL_EMPTY_STRING(&first); } - if (unlikely(Z_TYPE_P(second_param) != IS_STRING && Z_TYPE_P(second_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(second_param) != IS_STRING && Z_TYPE_P(second_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'second' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(second_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(second_param) == IS_STRING)) { zephir_get_strval(&second, second_param); } else { ZEPHIR_INIT_VAR(&second); @@ -104248,11 +102769,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, createQuery) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &phql_param); - if (unlikely(Z_TYPE_P(phql_param) != IS_STRING && Z_TYPE_P(phql_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(phql_param) != IS_STRING && Z_TYPE_P(phql_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'phql' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(phql_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(phql_param) == IS_STRING)) { zephir_get_strval(&phql, phql_param); } else { ZEPHIR_INIT_VAR(&phql); @@ -104296,11 +102817,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, executeQuery) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &phql_param, &placeholders, &types); - if (unlikely(Z_TYPE_P(phql_param) != IS_STRING && Z_TYPE_P(phql_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(phql_param) != IS_STRING && Z_TYPE_P(phql_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'phql' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(phql_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(phql_param) == IS_STRING)) { zephir_get_strval(&phql, phql_param); } else { ZEPHIR_INIT_VAR(&phql); @@ -104420,11 +102941,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, getNamespaceAlias) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &alias_param); - if (unlikely(Z_TYPE_P(alias_param) != IS_STRING && Z_TYPE_P(alias_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(alias_param) != IS_STRING && Z_TYPE_P(alias_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'alias' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(alias_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(alias_param) == IS_STRING)) { zephir_get_strval(&alias, alias_param); } else { ZEPHIR_INIT_VAR(&alias); @@ -104441,7 +102962,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, getNamespaceAlias) { object_init_ex(&_1, phalcon_mvc_model_exception_ce); ZEPHIR_INIT_VAR(&_2); ZEPHIR_CONCAT_SVS(&_2, "Namespace alias '", &alias, "' is not registered"); - ZEPHIR_CALL_METHOD(NULL, &_1, "__construct", NULL, 9, &_2); + ZEPHIR_CALL_METHOD(NULL, &_1, "__construct", NULL, 4, &_2); zephir_check_call_status(); zephir_throw_exception_debug(&_1, "phalcon/mvc/model/manager.zep", 1708 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -104468,7 +102989,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, __destruct) { ZEPHIR_MM_GROW(); phalcon_orm_destroy_cache(TSRMLS_C); - ZEPHIR_CALL_CE_STATIC(NULL, phalcon_mvc_model_query_ce, "clean", &_0, 332); + ZEPHIR_CALL_CE_STATIC(NULL, phalcon_mvc_model_query_ce, "clean", &_0, 0); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -104637,11 +103158,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Message, __construct) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 4, &message_param, &field, &type, &model, &code_param); - if (unlikely(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'message' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(message_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(message_param) == IS_STRING)) { zephir_get_strval(&message, message_param); } else { ZEPHIR_INIT_VAR(&message); @@ -104690,11 +103211,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Message, setType) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &type_param); - if (unlikely(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'type' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(type_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(type_param) == IS_STRING)) { zephir_get_strval(&type, type_param); } else { ZEPHIR_INIT_VAR(&type); @@ -104727,11 +103248,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Message, setMessage) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &message_param); - if (unlikely(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'message' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(message_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(message_param) == IS_STRING)) { zephir_get_strval(&message, message_param); } else { ZEPHIR_INIT_VAR(&message); @@ -104865,7 +103386,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Message, __set_state) { zephir_array_fetch_string(&_1, &message, SL("_field"), PH_NOISY | PH_READONLY, "phalcon/mvc/model/message.zep", 182 TSRMLS_CC); zephir_array_fetch_string(&_2, &message, SL("_type"), PH_NOISY | PH_READONLY, "phalcon/mvc/model/message.zep", 182 TSRMLS_CC); zephir_array_fetch_string(&_3, &message, SL("_code"), PH_NOISY | PH_READONLY, "phalcon/mvc/model/message.zep", 182 TSRMLS_CC); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 8, &_0, &_1, &_2, &_3); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 3, &_0, &_1, &_2, &_3); zephir_check_call_status(); RETURN_MM(); @@ -105017,7 +103538,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData, _initialize) { object_init_ex(&_0$$8, phalcon_mvc_model_exception_ce); ZEPHIR_INIT_VAR(&_1$$8); ZEPHIR_CONCAT_SV(&_1$$8, "Invalid meta-data for model ", &className); - ZEPHIR_CALL_METHOD(NULL, &_0$$8, "__construct", NULL, 9, &_1$$8); + ZEPHIR_CALL_METHOD(NULL, &_0$$8, "__construct", NULL, 4, &_1$$8); zephir_check_call_status(); zephir_throw_exception_debug(&_0$$8, "phalcon/mvc/model/metadata.zep", 122 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -105164,7 +103685,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData, readMetaData) { ZEPHIR_CONCAT_VSVV(&key, &_0, "-", &schema, &source); zephir_read_property(&_1, this_ptr, SL("_metaData"), PH_NOISY_CC | PH_READONLY); if (!(zephir_array_isset(&_1, &key))) { - ZEPHIR_CALL_METHOD(NULL, this_ptr, "_initialize", NULL, 10, model, &key, &source, &schema); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "_initialize", NULL, 5, model, &key, &source, &schema); zephir_check_call_status(); } zephir_read_property(&_2, this_ptr, SL("_metaData"), PH_NOISY_CC | PH_READONLY); @@ -105207,7 +103728,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData, readMetaDataIndex) { zephir_read_property(&_1, this_ptr, SL("_metaData"), PH_NOISY_CC | PH_READONLY); zephir_array_fetch(&_2, &_1, &key, PH_READONLY, "phalcon/mvc/model/metadata.zep", 281 TSRMLS_CC); if (!(zephir_array_isset_long(&_2, index))) { - ZEPHIR_CALL_METHOD(NULL, this_ptr, "_initialize", NULL, 10, model, &key, &source, &schema); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "_initialize", NULL, 5, model, &key, &source, &schema); zephir_check_call_status(); } zephir_read_property(&_3, this_ptr, SL("_metaData"), PH_NOISY_CC | PH_READONLY); @@ -105260,7 +103781,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData, writeMetaDataIndex) { ZEPHIR_CONCAT_VSVV(&key, &_2, "-", &schema, &source); zephir_read_property(&_3, this_ptr, SL("_metaData"), PH_NOISY_CC | PH_READONLY); if (!(zephir_array_isset(&_3, &key))) { - ZEPHIR_CALL_METHOD(NULL, this_ptr, "_initialize", NULL, 10, model, &key, &source, &schema); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "_initialize", NULL, 5, model, &key, &source, &schema); zephir_check_call_status(); } zephir_update_property_array_multi(this_ptr, SL("_metaData"), data TSRMLS_CC, SL("zl"), 2, &key, index); @@ -105298,7 +103819,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData, readColumnMap) { ZVAL_NULL(&_1$$4); ZVAL_NULL(&_2$$4); ZVAL_NULL(&_3$$4); - ZEPHIR_CALL_METHOD(NULL, this_ptr, "_initialize", NULL, 10, model, &_1$$4, &_2$$4, &_3$$4); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "_initialize", NULL, 5, model, &_1$$4, &_2$$4, &_3$$4); zephir_check_call_status(); zephir_read_property(&_1$$4, this_ptr, SL("_columnMap"), PH_NOISY_CC | PH_READONLY); ZEPHIR_OBS_NVAR(&data); @@ -105340,7 +103861,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData, readColumnMapIndex) { ZVAL_NULL(&_1$$4); ZVAL_NULL(&_2$$4); ZVAL_NULL(&_3$$4); - ZEPHIR_CALL_METHOD(NULL, this_ptr, "_initialize", NULL, 10, model, &_1$$4, &_2$$4, &_3$$4); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "_initialize", NULL, 5, model, &_1$$4, &_2$$4, &_3$$4); zephir_check_call_status(); zephir_read_property(&_1$$4, this_ptr, SL("_columnMap"), PH_NOISY_CC | PH_READONLY); ZEPHIR_OBS_NVAR(&columnMapModel); @@ -105367,7 +103888,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData, getAttributes) { ZVAL_LONG(&_0, 0); - ZEPHIR_CALL_METHOD(&data, this_ptr, "readmetadataindex", NULL, 11, model, &_0); + ZEPHIR_CALL_METHOD(&data, this_ptr, "readmetadataindex", NULL, 6, model, &_0); zephir_check_call_status(); if (Z_TYPE_P(&data) != IS_ARRAY) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The meta-data is invalid or is corrupt", "phalcon/mvc/model/metadata.zep", 402); @@ -105393,7 +103914,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData, getPrimaryKeyAttributes) { ZVAL_LONG(&_0, 1); - ZEPHIR_CALL_METHOD(&data, this_ptr, "readmetadataindex", NULL, 11, model, &_0); + ZEPHIR_CALL_METHOD(&data, this_ptr, "readmetadataindex", NULL, 6, model, &_0); zephir_check_call_status(); if (Z_TYPE_P(&data) != IS_ARRAY) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The meta-data is invalid or is corrupt", "phalcon/mvc/model/metadata.zep", 423); @@ -105419,7 +103940,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData, getNonPrimaryKeyAttributes) { ZVAL_LONG(&_0, 2); - ZEPHIR_CALL_METHOD(&data, this_ptr, "readmetadataindex", NULL, 11, model, &_0); + ZEPHIR_CALL_METHOD(&data, this_ptr, "readmetadataindex", NULL, 6, model, &_0); zephir_check_call_status(); if (Z_TYPE_P(&data) != IS_ARRAY) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The meta-data is invalid or is corrupt", "phalcon/mvc/model/metadata.zep", 444); @@ -105445,7 +103966,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData, getNotNullAttributes) { ZVAL_LONG(&_0, 3); - ZEPHIR_CALL_METHOD(&data, this_ptr, "readmetadataindex", NULL, 11, model, &_0); + ZEPHIR_CALL_METHOD(&data, this_ptr, "readmetadataindex", NULL, 6, model, &_0); zephir_check_call_status(); if (Z_TYPE_P(&data) != IS_ARRAY) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The meta-data is invalid or is corrupt", "phalcon/mvc/model/metadata.zep", 465); @@ -105471,7 +103992,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData, getDataTypes) { ZVAL_LONG(&_0, 4); - ZEPHIR_CALL_METHOD(&data, this_ptr, "readmetadataindex", NULL, 11, model, &_0); + ZEPHIR_CALL_METHOD(&data, this_ptr, "readmetadataindex", NULL, 6, model, &_0); zephir_check_call_status(); if (Z_TYPE_P(&data) != IS_ARRAY) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The meta-data is invalid or is corrupt", "phalcon/mvc/model/metadata.zep", 486); @@ -105497,7 +104018,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData, getDataTypesNumeric) { ZVAL_LONG(&_0, 5); - ZEPHIR_CALL_METHOD(&data, this_ptr, "readmetadataindex", NULL, 11, model, &_0); + ZEPHIR_CALL_METHOD(&data, this_ptr, "readmetadataindex", NULL, 6, model, &_0); zephir_check_call_status(); if (Z_TYPE_P(&data) != IS_ARRAY) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The meta-data is invalid or is corrupt", "phalcon/mvc/model/metadata.zep", 507); @@ -105522,7 +104043,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData, getIdentityField) { ZVAL_LONG(&_0, 8); - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "readmetadataindex", NULL, 11, model, &_0); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "readmetadataindex", NULL, 6, model, &_0); zephir_check_call_status(); RETURN_MM(); @@ -105544,7 +104065,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData, getBindTypes) { ZVAL_LONG(&_0, 9); - ZEPHIR_CALL_METHOD(&data, this_ptr, "readmetadataindex", NULL, 11, model, &_0); + ZEPHIR_CALL_METHOD(&data, this_ptr, "readmetadataindex", NULL, 6, model, &_0); zephir_check_call_status(); if (Z_TYPE_P(&data) != IS_ARRAY) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The meta-data is invalid or is corrupt", "phalcon/mvc/model/metadata.zep", 547); @@ -105570,7 +104091,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData, getAutomaticCreateAttributes) { ZVAL_LONG(&_0, 10); - ZEPHIR_CALL_METHOD(&data, this_ptr, "readmetadataindex", NULL, 11, model, &_0); + ZEPHIR_CALL_METHOD(&data, this_ptr, "readmetadataindex", NULL, 6, model, &_0); zephir_check_call_status(); if (Z_TYPE_P(&data) != IS_ARRAY) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The meta-data is invalid or is corrupt", "phalcon/mvc/model/metadata.zep", 568); @@ -105596,7 +104117,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData, getAutomaticUpdateAttributes) { ZVAL_LONG(&_0, 11); - ZEPHIR_CALL_METHOD(&data, this_ptr, "readmetadataindex", NULL, 11, model, &_0); + ZEPHIR_CALL_METHOD(&data, this_ptr, "readmetadataindex", NULL, 6, model, &_0); zephir_check_call_status(); if (Z_TYPE_P(&data) != IS_ARRAY) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The meta-data is invalid or is corrupt", "phalcon/mvc/model/metadata.zep", 589); @@ -105624,7 +104145,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData, setAutomaticCreateAttributes) { ZVAL_LONG(&_0, 10); - ZEPHIR_CALL_METHOD(NULL, this_ptr, "writemetadataindex", NULL, 12, model, &_0, &attributes); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "writemetadataindex", NULL, 7, model, &_0, &attributes); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -105648,7 +104169,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData, setAutomaticUpdateAttributes) { ZVAL_LONG(&_0, 11); - ZEPHIR_CALL_METHOD(NULL, this_ptr, "writemetadataindex", NULL, 12, model, &_0, &attributes); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "writemetadataindex", NULL, 7, model, &_0, &attributes); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -105672,7 +104193,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData, setEmptyStringAttributes) { ZVAL_LONG(&_0, 13); - ZEPHIR_CALL_METHOD(NULL, this_ptr, "writemetadataindex", NULL, 12, model, &_0, &attributes); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "writemetadataindex", NULL, 7, model, &_0, &attributes); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -105694,7 +104215,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData, getEmptyStringAttributes) { ZVAL_LONG(&_0, 13); - ZEPHIR_CALL_METHOD(&data, this_ptr, "readmetadataindex", NULL, 11, model, &_0); + ZEPHIR_CALL_METHOD(&data, this_ptr, "readmetadataindex", NULL, 6, model, &_0); zephir_check_call_status(); if (Z_TYPE_P(&data) != IS_ARRAY) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The meta-data is invalid or is corrupt", "phalcon/mvc/model/metadata.zep", 661); @@ -105720,7 +104241,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData, getDefaultValues) { ZVAL_LONG(&_0, 12); - ZEPHIR_CALL_METHOD(&data, this_ptr, "readmetadataindex", NULL, 11, model, &_0); + ZEPHIR_CALL_METHOD(&data, this_ptr, "readmetadataindex", NULL, 6, model, &_0); zephir_check_call_status(); if (Z_TYPE_P(&data) != IS_ARRAY) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The meta-data is invalid or is corrupt", "phalcon/mvc/model/metadata.zep", 682); @@ -105747,7 +104268,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData, getColumnMap) { ZVAL_LONG(&_0, 0); - ZEPHIR_CALL_METHOD(&data, this_ptr, "readcolumnmapindex", NULL, 13, model, &_0); + ZEPHIR_CALL_METHOD(&data, this_ptr, "readcolumnmapindex", NULL, 8, model, &_0); zephir_check_call_status(); _1 = Z_TYPE_P(&data) != IS_NULL; if (_1) { @@ -105778,7 +104299,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData, getReverseColumnMap) { ZVAL_LONG(&_0, 1); - ZEPHIR_CALL_METHOD(&data, this_ptr, "readcolumnmapindex", NULL, 13, model, &_0); + ZEPHIR_CALL_METHOD(&data, this_ptr, "readcolumnmapindex", NULL, 8, model, &_0); zephir_check_call_status(); _1 = Z_TYPE_P(&data) != IS_NULL; if (_1) { @@ -105816,7 +104337,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData, hasAttribute) { if (Z_TYPE_P(&columnMap) == IS_ARRAY) { RETURN_MM_BOOL(zephir_array_isset(&columnMap, &attribute)); } else { - ZEPHIR_CALL_METHOD(&_0$$4, this_ptr, "readmetadata", NULL, 14, model); + ZEPHIR_CALL_METHOD(&_0$$4, this_ptr, "readmetadata", NULL, 9, model); zephir_check_call_status(); zephir_array_fetch_long(&_1$$4, &_0$$4, 4, PH_READONLY, "phalcon/mvc/model/metadata.zep", 751 TSRMLS_CC); RETURN_MM_BOOL(zephir_array_isset(&_1$$4, &attribute)); @@ -106294,7 +104815,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getQualified) { zephir_read_property(&_1$$5, this_ptr, SL("_phql"), PH_NOISY_CC | PH_READONLY); ZEPHIR_INIT_VAR(&_2$$5); ZEPHIR_CONCAT_SVSV(&_2$$5, "Unknown model or alias '", &columnDomain, "' (11), when preparing: ", &_1$$5); - ZEPHIR_CALL_METHOD(NULL, &_0$$5, "__construct", NULL, 9, &_2$$5); + ZEPHIR_CALL_METHOD(NULL, &_0$$5, "__construct", NULL, 4, &_2$$5); zephir_check_call_status(); zephir_throw_exception_debug(&_0$$5, "phalcon/mvc/model/query.zep", 227 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -106310,7 +104831,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getQualified) { zephir_read_property(&_4$$7, this_ptr, SL("_phql"), PH_NOISY_CC | PH_READONLY); ZEPHIR_INIT_VAR(&_5$$7); ZEPHIR_CONCAT_SVSV(&_5$$7, "There is no model related to model or alias '", &columnDomain, "', when executing: ", &_4$$7); - ZEPHIR_CALL_METHOD(NULL, &_3$$7, "__construct", NULL, 9, &_5$$7); + ZEPHIR_CALL_METHOD(NULL, &_3$$7, "__construct", NULL, 4, &_5$$7); zephir_check_call_status(); zephir_throw_exception_debug(&_3$$7, "phalcon/mvc/model/query.zep", 246 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -106330,7 +104851,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getQualified) { zephir_read_property(&_7$$10, this_ptr, SL("_phql"), PH_NOISY_CC | PH_READONLY); ZEPHIR_INIT_VAR(&_8$$10); ZEPHIR_CONCAT_SVSVSV(&_8$$10, "Column '", &columnName, "' doesn't belong to the model or alias '", &columnDomain, "', when executing: ", &_7$$10); - ZEPHIR_CALL_METHOD(NULL, &_6$$10, "__construct", NULL, 9, &_8$$10); + ZEPHIR_CALL_METHOD(NULL, &_6$$10, "__construct", NULL, 4, &_8$$10); zephir_check_call_status(); zephir_throw_exception_debug(&_6$$10, "phalcon/mvc/model/query.zep", 258 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -106359,7 +104880,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getQualified) { zephir_read_property(&_14$$15, this_ptr, SL("_phql"), PH_NOISY_CC | PH_READONLY); ZEPHIR_INIT_LNVAR(_15$$15); ZEPHIR_CONCAT_SVSV(&_15$$15, "The column '", &columnName, "' is ambiguous, when preparing: ", &_14$$15); - ZEPHIR_CALL_METHOD(NULL, &_13$$15, "__construct", NULL, 9, &_15$$15); + ZEPHIR_CALL_METHOD(NULL, &_13$$15, "__construct", NULL, 4, &_15$$15); zephir_check_call_status(); zephir_throw_exception_debug(&_13$$15, "phalcon/mvc/model/query.zep", 279 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -106375,7 +104896,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getQualified) { zephir_read_property(&_17$$16, this_ptr, SL("_phql"), PH_NOISY_CC | PH_READONLY); ZEPHIR_INIT_VAR(&_18$$16); ZEPHIR_CONCAT_SVSV(&_18$$16, "Column '", &columnName, "' doesn't belong to any of the selected models (1), when preparing: ", &_17$$16); - ZEPHIR_CALL_METHOD(NULL, &_16$$16, "__construct", NULL, 9, &_18$$16); + ZEPHIR_CALL_METHOD(NULL, &_16$$16, "__construct", NULL, 4, &_18$$16); zephir_check_call_status(); zephir_throw_exception_debug(&_16$$16, "phalcon/mvc/model/query.zep", 291 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -106396,7 +104917,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getQualified) { zephir_read_property(&_20$$18, this_ptr, SL("_phql"), PH_NOISY_CC | PH_READONLY); ZEPHIR_INIT_VAR(&_21$$18); ZEPHIR_CONCAT_SVSV(&_21$$18, "Can't obtain model's source from models list: '", &className, "', when preparing: ", &_20$$18); - ZEPHIR_CALL_METHOD(NULL, &_19$$18, "__construct", NULL, 9, &_21$$18); + ZEPHIR_CALL_METHOD(NULL, &_19$$18, "__construct", NULL, 4, &_21$$18); zephir_check_call_status(); zephir_throw_exception_debug(&_19$$18, "phalcon/mvc/model/query.zep", 309 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -106417,7 +104938,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getQualified) { zephir_read_property(&_23$$22, this_ptr, SL("_phql"), PH_NOISY_CC | PH_READONLY); ZEPHIR_INIT_VAR(&_24$$22); ZEPHIR_CONCAT_SVSV(&_24$$22, "Column '", &columnName, "' doesn't belong to any of the selected models (3), when preparing: ", &_23$$22); - ZEPHIR_CALL_METHOD(NULL, &_22$$22, "__construct", NULL, 9, &_24$$22); + ZEPHIR_CALL_METHOD(NULL, &_22$$22, "__construct", NULL, 4, &_24$$22); zephir_check_call_status(); zephir_throw_exception_debug(&_22$$22, "phalcon/mvc/model/query.zep", 328 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -106458,7 +104979,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getCallArgument) { add_assoc_stringl_ex(return_value, SL("type"), SL("all")); RETURN_MM(); } - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_getexpression", NULL, 338, &argument); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_getexpression", NULL, 305, &argument); zephir_check_call_status(); RETURN_MM(); @@ -106505,11 +105026,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getCaseExpression) { zephir_create_array(&_2$$4, 3, 0 TSRMLS_CC); add_assoc_stringl_ex(&_2$$4, SL("type"), SL("when")); zephir_array_fetch_string(&_4$$4, &whenExpr, SL("left"), PH_NOISY | PH_READONLY, "phalcon/mvc/model/query.zep", 369 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_3$$4, this_ptr, "_getexpression", &_5, 338, &_4$$4); + ZEPHIR_CALL_METHOD(&_3$$4, this_ptr, "_getexpression", &_5, 305, &_4$$4); zephir_check_call_status(); zephir_array_update_string(&_2$$4, SL("expr"), &_3$$4, PH_COPY | PH_SEPARATE); zephir_array_fetch_string(&_6$$4, &whenExpr, SL("right"), PH_NOISY | PH_READONLY, "phalcon/mvc/model/query.zep", 370 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_3$$4, this_ptr, "_getexpression", &_5, 338, &_6$$4); + ZEPHIR_CALL_METHOD(&_3$$4, this_ptr, "_getexpression", &_5, 305, &_6$$4); zephir_check_call_status(); zephir_array_update_string(&_2$$4, SL("then"), &_3$$4, PH_COPY | PH_SEPARATE); zephir_array_append(&whenClauses, &_2$$4, PH_SEPARATE, "phalcon/mvc/model/query.zep", 371); @@ -106518,7 +105039,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getCaseExpression) { zephir_create_array(&_7$$5, 2, 0 TSRMLS_CC); add_assoc_stringl_ex(&_7$$5, SL("type"), SL("else")); zephir_array_fetch_string(&_9$$5, &whenExpr, SL("left"), PH_NOISY | PH_READONLY, "phalcon/mvc/model/query.zep", 375 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_8$$5, this_ptr, "_getexpression", &_5, 338, &_9$$5); + ZEPHIR_CALL_METHOD(&_8$$5, this_ptr, "_getexpression", &_5, 305, &_9$$5); zephir_check_call_status(); zephir_array_update_string(&_7$$5, SL("expr"), &_8$$5, PH_COPY | PH_SEPARATE); zephir_array_append(&whenClauses, &_7$$5, PH_SEPARATE, "phalcon/mvc/model/query.zep", 376); @@ -106528,7 +105049,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getCaseExpression) { zephir_create_array(return_value, 3, 0 TSRMLS_CC); add_assoc_stringl_ex(return_value, SL("type"), SL("case")); zephir_array_fetch_string(&_11, &expr, SL("left"), PH_NOISY | PH_READONLY, "phalcon/mvc/model/query.zep", 382 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_10, this_ptr, "_getexpression", &_5, 338, &_11); + ZEPHIR_CALL_METHOD(&_10, this_ptr, "_getexpression", &_5, 305, &_11); zephir_check_call_status(); zephir_array_update_string(return_value, SL("expr"), &_10, PH_COPY | PH_SEPARATE); zephir_array_update_string(return_value, SL("when-clauses"), &whenClauses, PH_COPY | PH_SEPARATE); @@ -106576,14 +105097,14 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getFunctionCall) { { ZEPHIR_INIT_NVAR(&argument); ZVAL_COPY(&argument, _0$$6); - ZEPHIR_CALL_METHOD(&_1$$7, this_ptr, "_getcallargument", &_2, 339, &argument); + ZEPHIR_CALL_METHOD(&_1$$7, this_ptr, "_getcallargument", &_2, 306, &argument); zephir_check_call_status(); zephir_array_append(&functionArgs, &_1$$7, PH_SEPARATE, "phalcon/mvc/model/query.zep", 406); } ZEND_HASH_FOREACH_END(); ZEPHIR_INIT_NVAR(&argument); } else { zephir_create_array(&functionArgs, 1, 0 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_3$$8, this_ptr, "_getcallargument", &_2, 339, &arguments); + ZEPHIR_CALL_METHOD(&_3$$8, this_ptr, "_getcallargument", &_2, 306, &arguments); zephir_check_call_status(); zephir_array_fast_append(&functionArgs, &_3$$8); } @@ -106705,7 +105226,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getExpression) { } else { ZVAL_BOOL(&_0$$5, 0); } - ZEPHIR_CALL_METHOD(&left, this_ptr, "_getexpression", &_1, 338, &exprLeft, &_0$$5); + ZEPHIR_CALL_METHOD(&left, this_ptr, "_getexpression", &_1, 305, &exprLeft, &_0$$5); zephir_check_call_status(); } ZEPHIR_OBS_VAR(&exprRight); @@ -106715,7 +105236,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getExpression) { } else { ZVAL_BOOL(&_2$$6, 0); } - ZEPHIR_CALL_METHOD(&right, this_ptr, "_getexpression", &_1, 338, &exprRight, &_2$$6); + ZEPHIR_CALL_METHOD(&right, this_ptr, "_getexpression", &_1, 305, &exprRight, &_2$$6); zephir_check_call_status(); } } @@ -106793,7 +105314,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getExpression) { break; } if (ZEPHIR_IS_LONG(&exprType, 355)) { - ZEPHIR_CALL_METHOD(&exprReturn, this_ptr, "_getqualified", &_3, 340, expr); + ZEPHIR_CALL_METHOD(&exprReturn, this_ptr, "_getqualified", &_3, 307, expr); zephir_check_call_status(); break; } @@ -107034,7 +105555,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getExpression) { object_init_ex(&_24$$44, phalcon_mvc_model_exception_ce); ZEPHIR_INIT_VAR(&_25$$44); ZEPHIR_CONCAT_SV(&_25$$44, "Bind value is required for array type placeholder: ", &name); - ZEPHIR_CALL_METHOD(NULL, &_24$$44, "__construct", NULL, 9, &_25$$44); + ZEPHIR_CALL_METHOD(NULL, &_24$$44, "__construct", NULL, 4, &_25$$44); zephir_check_call_status(); zephir_throw_exception_debug(&_24$$44, "phalcon/mvc/model/query.zep", 632 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -107045,7 +105566,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getExpression) { object_init_ex(&_26$$45, phalcon_mvc_model_exception_ce); ZEPHIR_INIT_VAR(&_27$$45); ZEPHIR_CONCAT_SV(&_27$$45, "Bind type requires an array in placeholder: ", &name); - ZEPHIR_CALL_METHOD(NULL, &_26$$45, "__construct", NULL, 9, &_27$$45); + ZEPHIR_CALL_METHOD(NULL, &_26$$45, "__construct", NULL, 4, &_27$$45); zephir_check_call_status(); zephir_throw_exception_debug(&_26$$45, "phalcon/mvc/model/query.zep", 636 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -107056,7 +105577,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getExpression) { object_init_ex(&_28$$46, phalcon_mvc_model_exception_ce); ZEPHIR_INIT_VAR(&_29$$46); ZEPHIR_CONCAT_SV(&_29$$46, "At least one value must be bound in placeholder: ", &name); - ZEPHIR_CALL_METHOD(NULL, &_28$$46, "__construct", NULL, 9, &_29$$46); + ZEPHIR_CALL_METHOD(NULL, &_28$$46, "__construct", NULL, 4, &_29$$46); zephir_check_call_status(); zephir_throw_exception_debug(&_28$$46, "phalcon/mvc/model/query.zep", 640 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -107076,7 +105597,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getExpression) { object_init_ex(&_31$$47, phalcon_mvc_model_exception_ce); ZEPHIR_INIT_VAR(&_32$$47); ZEPHIR_CONCAT_SV(&_32$$47, "Unknown bind type: ", &bindType); - ZEPHIR_CALL_METHOD(NULL, &_31$$47, "__construct", NULL, 9, &_32$$47); + ZEPHIR_CALL_METHOD(NULL, &_31$$47, "__construct", NULL, 4, &_32$$47); zephir_check_call_status(); zephir_throw_exception_debug(&_31$$47, "phalcon/mvc/model/query.zep", 652 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -107238,12 +105759,12 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getExpression) { break; } if (ZEPHIR_IS_LONG(&exprType, 350)) { - ZEPHIR_CALL_METHOD(&exprReturn, this_ptr, "_getfunctioncall", NULL, 341, expr); + ZEPHIR_CALL_METHOD(&exprReturn, this_ptr, "_getfunctioncall", NULL, 308, expr); zephir_check_call_status(); break; } if (ZEPHIR_IS_LONG(&exprType, 409)) { - ZEPHIR_CALL_METHOD(&exprReturn, this_ptr, "_getcaseexpression", NULL, 342, expr); + ZEPHIR_CALL_METHOD(&exprReturn, this_ptr, "_getcaseexpression", NULL, 309, expr); zephir_check_call_status(); break; } @@ -107252,7 +105773,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getExpression) { zephir_create_array(&exprReturn, 2, 0 TSRMLS_CC); add_assoc_stringl_ex(&exprReturn, SL("type"), SL("select")); ZVAL_BOOL(&_36$$68, 1); - ZEPHIR_CALL_METHOD(&_35$$68, this_ptr, "_prepareselect", NULL, 343, expr, &_36$$68); + ZEPHIR_CALL_METHOD(&_35$$68, this_ptr, "_prepareselect", NULL, 310, expr, &_36$$68); zephir_check_call_status(); zephir_array_update_string(&exprReturn, SL("value"), &_35$$68, PH_COPY | PH_SEPARATE); break; @@ -107261,7 +105782,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getExpression) { object_init_ex(&_37$$69, phalcon_mvc_model_exception_ce); ZEPHIR_INIT_VAR(&_38$$69); ZEPHIR_CONCAT_SV(&_38$$69, "Unknown expression type ", &exprType); - ZEPHIR_CALL_METHOD(NULL, &_37$$69, "__construct", NULL, 9, &_38$$69); + ZEPHIR_CALL_METHOD(NULL, &_37$$69, "__construct", NULL, 4, &_38$$69); zephir_check_call_status(); zephir_throw_exception_debug(&_37$$69, "phalcon/mvc/model/query.zep", 741 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -107271,7 +105792,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getExpression) { RETURN_CCTOR(exprReturn); } if (zephir_array_isset_string(expr, SL("domain"))) { - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_getqualified", &_3, 340, expr); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_getqualified", &_3, 307, expr); zephir_check_call_status(); RETURN_MM(); } @@ -107283,7 +105804,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getExpression) { { ZEPHIR_INIT_NVAR(&exprListItem); ZVAL_COPY(&exprListItem, _39$$71); - ZEPHIR_CALL_METHOD(&_40$$72, this_ptr, "_getexpression", &_1, 338, &exprListItem); + ZEPHIR_CALL_METHOD(&_40$$72, this_ptr, "_getexpression", &_1, 305, &exprListItem); zephir_check_call_status(); zephir_array_append(&listItems, &_40$$72, PH_SEPARATE, "phalcon/mvc/model/query.zep", 760); } ZEND_HASH_FOREACH_END(); @@ -107367,7 +105888,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getSelectColumn) { add_assoc_stringl_ex(&sqlColumn, SL("type"), SL("object")); zephir_array_update_string(&sqlColumn, SL("model"), &modelName, PH_COPY | PH_SEPARATE); zephir_array_update_string(&sqlColumn, SL("column"), &source, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_FUNCTION(&_4$$5, "lcfirst", &_5, 68, &modelName); + ZEPHIR_CALL_FUNCTION(&_4$$5, "lcfirst", &_5, 62, &modelName); zephir_check_call_status(); zephir_array_update_string(&sqlColumn, SL("balias"), &_4$$5, PH_COPY | PH_SEPARATE); if (Z_TYPE_P(&eager) != IS_NULL) { @@ -107397,7 +105918,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getSelectColumn) { zephir_read_property(&_8$$9, this_ptr, SL("_phql"), PH_NOISY_CC | PH_READONLY); ZEPHIR_INIT_VAR(&_9$$9); ZEPHIR_CONCAT_SVSV(&_9$$9, "Unknown model or alias '", &columnDomain, "' (2), when preparing: ", &_8$$9); - ZEPHIR_CALL_METHOD(NULL, &_7$$9, "__construct", NULL, 9, &_9$$9); + ZEPHIR_CALL_METHOD(NULL, &_7$$9, "__construct", NULL, 4, &_9$$9); zephir_check_call_status(); zephir_throw_exception_debug(&_7$$9, "phalcon/mvc/model/query.zep", 829 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -107412,7 +105933,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getSelectColumn) { zephir_array_fetch(&modelName, &sqlAliasesModels, &columnDomain, PH_NOISY, "phalcon/mvc/model/query.zep", 843 TSRMLS_CC); if (Z_TYPE_P(&preparedAlias) != IS_STRING) { if (ZEPHIR_IS_EQUAL(&columnDomain, &modelName)) { - ZEPHIR_CALL_FUNCTION(&preparedAlias, "lcfirst", &_5, 68, &modelName); + ZEPHIR_CALL_FUNCTION(&preparedAlias, "lcfirst", &_5, 62, &modelName); zephir_check_call_status(); } else { ZEPHIR_CPY_WRT(&preparedAlias, &columnDomain); @@ -107438,7 +105959,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getSelectColumn) { add_assoc_stringl_ex(&sqlColumn, SL("type"), SL("scalar")); ZEPHIR_OBS_VAR(&columnData); zephir_array_fetch_string(&columnData, &column, SL("column"), PH_NOISY, "phalcon/mvc/model/query.zep", 886 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&sqlExprColumn, this_ptr, "_getexpression", NULL, 338, &columnData); + ZEPHIR_CALL_METHOD(&sqlExprColumn, this_ptr, "_getexpression", NULL, 305, &columnData); zephir_check_call_status(); ZEPHIR_OBS_VAR(&balias); if (zephir_array_isset_string_fetch(&balias, &sqlExprColumn, SL("balias"), 0)) { @@ -107458,7 +105979,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getSelectColumn) { object_init_ex(&_12, phalcon_mvc_model_exception_ce); ZEPHIR_INIT_VAR(&_13); ZEPHIR_CONCAT_SV(&_13, "Unknown type of column ", &columnType); - ZEPHIR_CALL_METHOD(NULL, &_12, "__construct", NULL, 9, &_13); + ZEPHIR_CALL_METHOD(NULL, &_12, "__construct", NULL, 4, &_13); zephir_check_call_status(); zephir_throw_exception_debug(&_12, "phalcon/mvc/model/query.zep", 908 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -107614,7 +106135,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getJoinType) { zephir_read_property(&_1, this_ptr, SL("_phql"), PH_NOISY_CC | PH_READONLY); ZEPHIR_INIT_VAR(&_2); ZEPHIR_CONCAT_SVSV(&_2, "Unknown join type ", &type, ", when preparing: ", &_1); - ZEPHIR_CALL_METHOD(NULL, &_0, "__construct", NULL, 9, &_2); + ZEPHIR_CALL_METHOD(NULL, &_0, "__construct", NULL, 4, &_2); zephir_check_call_status(); zephir_throw_exception_debug(&_0, "phalcon/mvc/model/query.zep", 1006 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -107660,11 +106181,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getSingleJoin) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 5, 0, &joinType_param, &joinSource, &modelAlias, &joinAlias, &relation); - if (unlikely(Z_TYPE_P(joinType_param) != IS_STRING && Z_TYPE_P(joinType_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(joinType_param) != IS_STRING && Z_TYPE_P(joinType_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'joinType' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(joinType_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(joinType_param) == IS_STRING)) { zephir_get_strval(&joinType, joinType_param); } else { ZEPHIR_INIT_VAR(&joinType); @@ -107690,7 +106211,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getSingleJoin) { add_assoc_long_ex(&_2$$3, SL("type"), 355); zephir_array_update_string(&_2$$3, SL("domain"), modelAlias, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_2$$3, SL("name"), &fields, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(&_1$$3, this_ptr, "_getqualified", &_3, 340, &_2$$3); + ZEPHIR_CALL_METHOD(&_1$$3, this_ptr, "_getqualified", &_3, 307, &_2$$3); zephir_check_call_status(); zephir_array_update_string(&_0$$3, SL("left"), &_1$$3, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_VAR(&_4$$3); @@ -107698,7 +106219,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getSingleJoin) { add_assoc_stringl_ex(&_4$$3, SL("type"), SL("qualified")); zephir_array_update_string(&_4$$3, SL("domain"), joinAlias, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_4$$3, SL("name"), &referencedFields, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(&_1$$3, this_ptr, "_getqualified", &_3, 340, &_4$$3); + ZEPHIR_CALL_METHOD(&_1$$3, this_ptr, "_getqualified", &_3, 307, &_4$$3); zephir_check_call_status(); zephir_array_update_string(&_0$$3, SL("right"), &_1$$3, PH_COPY | PH_SEPARATE); zephir_array_fast_append(&sqlJoinConditions, &_0$$3); @@ -107723,7 +106244,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getSingleJoin) { zephir_read_property(&_9$$6, this_ptr, SL("_phql"), PH_NOISY_CC | PH_READONLY); ZEPHIR_INIT_LNVAR(_10$$6); ZEPHIR_CONCAT_SVSVSV(&_10$$6, "The number of fields must be equal to the number of referenced fields in join ", modelAlias, "-", joinAlias, ", when preparing: ", &_9$$6); - ZEPHIR_CALL_METHOD(NULL, &_8$$6, "__construct", &_11, 9, &_10$$6); + ZEPHIR_CALL_METHOD(NULL, &_8$$6, "__construct", &_11, 4, &_10$$6); zephir_check_call_status(); zephir_throw_exception_debug(&_8$$6, "phalcon/mvc/model/query.zep", 1072 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -107738,7 +106259,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getSingleJoin) { add_assoc_long_ex(&_14$$5, SL("type"), 355); zephir_array_update_string(&_14$$5, SL("domain"), modelAlias, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_14$$5, SL("name"), &field, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(&_13$$5, this_ptr, "_getqualified", &_3, 340, &_14$$5); + ZEPHIR_CALL_METHOD(&_13$$5, this_ptr, "_getqualified", &_3, 307, &_14$$5); zephir_check_call_status(); zephir_array_update_string(&_12$$5, SL("left"), &_13$$5, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_NVAR(&_15$$5); @@ -107746,7 +106267,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getSingleJoin) { add_assoc_stringl_ex(&_15$$5, SL("type"), SL("qualified")); zephir_array_update_string(&_15$$5, SL("domain"), joinAlias, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_15$$5, SL("name"), &referencedField, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(&_13$$5, this_ptr, "_getqualified", &_3, 340, &_15$$5); + ZEPHIR_CALL_METHOD(&_13$$5, this_ptr, "_getqualified", &_3, 307, &_15$$5); zephir_check_call_status(); zephir_array_update_string(&_12$$5, SL("right"), &_13$$5, PH_COPY | PH_SEPARATE); zephir_array_append(&sqlJoinPartialConditions, &_12$$5, PH_SEPARATE, "phalcon/mvc/model/query.zep", 1093); @@ -107854,7 +106375,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getMultiJoin) { zephir_read_property(&_4$$5, this_ptr, SL("_phql"), PH_NOISY_CC | PH_READONLY); ZEPHIR_INIT_LNVAR(_5$$5); ZEPHIR_CONCAT_SVSVSV(&_5$$5, "The number of fields must be equal to the number of referenced fields in join ", modelAlias, "-", joinAlias, ", when preparing: ", &_4$$5); - ZEPHIR_CALL_METHOD(NULL, &_3$$5, "__construct", &_6, 9, &_5$$5); + ZEPHIR_CALL_METHOD(NULL, &_3$$5, "__construct", &_6, 4, &_5$$5); zephir_check_call_status(); zephir_throw_exception_debug(&_3$$5, "phalcon/mvc/model/query.zep", 1194 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -107871,7 +106392,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getMultiJoin) { add_assoc_long_ex(&_8$$4, SL("type"), 355); zephir_array_update_string(&_8$$4, SL("domain"), modelAlias, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_8$$4, SL("name"), &field, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(&_7$$4, this_ptr, "_getqualified", &_9, 340, &_8$$4); + ZEPHIR_CALL_METHOD(&_7$$4, this_ptr, "_getqualified", &_9, 307, &_8$$4); zephir_check_call_status(); zephir_array_update_string(&sqlEqualsJoinCondition, SL("left"), &_7$$4, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_NVAR(&_10$$4); @@ -107879,7 +106400,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getMultiJoin) { add_assoc_stringl_ex(&_10$$4, SL("type"), SL("qualified")); zephir_array_update_string(&_10$$4, SL("domain"), joinAlias, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_10$$4, SL("name"), &referencedFields, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(&_7$$4, this_ptr, "_getqualified", &_9, 340, &_10$$4); + ZEPHIR_CALL_METHOD(&_7$$4, this_ptr, "_getqualified", &_9, 307, &_10$$4); zephir_check_call_status(); zephir_array_update_string(&sqlEqualsJoinCondition, SL("right"), &_7$$4, PH_COPY | PH_SEPARATE); } ZEND_HASH_FOREACH_END(); @@ -107903,7 +106424,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getMultiJoin) { add_assoc_long_ex(&_15$$6, SL("type"), 355); zephir_array_update_string(&_15$$6, SL("domain"), modelAlias, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_15$$6, SL("name"), &fields, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(&_14$$6, this_ptr, "_getqualified", &_9, 340, &_15$$6); + ZEPHIR_CALL_METHOD(&_14$$6, this_ptr, "_getqualified", &_9, 307, &_15$$6); zephir_check_call_status(); zephir_array_update_string(&_13$$6, SL("left"), &_14$$6, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_VAR(&_16$$6); @@ -107911,7 +106432,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getMultiJoin) { add_assoc_stringl_ex(&_16$$6, SL("type"), SL("qualified")); zephir_array_update_string(&_16$$6, SL("domain"), &intermediateModelName, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_16$$6, SL("name"), &intermediateFields, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(&_14$$6, this_ptr, "_getqualified", &_9, 340, &_16$$6); + ZEPHIR_CALL_METHOD(&_14$$6, this_ptr, "_getqualified", &_9, 307, &_16$$6); zephir_check_call_status(); zephir_array_update_string(&_13$$6, SL("right"), &_14$$6, PH_COPY | PH_SEPARATE); zephir_array_fast_append(&_12$$6, &_13$$6); @@ -107932,7 +106453,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getMultiJoin) { add_assoc_long_ex(&_17$$6, SL("type"), 355); zephir_array_update_string(&_17$$6, SL("domain"), &intermediateModelName, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_17$$6, SL("name"), &intermediateReferencedFields, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(&_14$$6, this_ptr, "_getqualified", &_9, 340, &_17$$6); + ZEPHIR_CALL_METHOD(&_14$$6, this_ptr, "_getqualified", &_9, 307, &_17$$6); zephir_check_call_status(); zephir_array_update_string(&_13$$6, SL("left"), &_14$$6, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_VAR(&_18$$6); @@ -107940,7 +106461,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getMultiJoin) { add_assoc_stringl_ex(&_18$$6, SL("type"), SL("qualified")); zephir_array_update_string(&_18$$6, SL("domain"), &referencedModelName, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_18$$6, SL("name"), &referencedFields, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(&_14$$6, this_ptr, "_getqualified", &_9, 340, &_18$$6); + ZEPHIR_CALL_METHOD(&_14$$6, this_ptr, "_getqualified", &_9, 307, &_18$$6); zephir_check_call_status(); zephir_array_update_string(&_13$$6, SL("right"), &_14$$6, PH_COPY | PH_SEPARATE); zephir_array_fast_append(&_12$$6, &_13$$6); @@ -108083,7 +106604,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getJoins) { { ZEPHIR_INIT_NVAR(&joinItem); ZVAL_COPY(&joinItem, _0); - ZEPHIR_CALL_METHOD(&joinData, this_ptr, "_getjoin", &_1, 344, &manager, &joinItem); + ZEPHIR_CALL_METHOD(&joinData, this_ptr, "_getjoin", &_1, 311, &manager, &joinItem); zephir_check_call_status(); ZEPHIR_OBS_NVAR(&source); zephir_array_fetch_string(&source, &joinData, SL("source"), PH_NOISY, "phalcon/mvc/model/query.zep", 1334 TSRMLS_CC); @@ -108097,7 +106618,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getJoins) { zephir_create_array(&completeSource, 2, 0 TSRMLS_CC); zephir_array_fast_append(&completeSource, &source); zephir_array_fast_append(&completeSource, &schema); - ZEPHIR_CALL_METHOD(&joinType, this_ptr, "_getjointype", &_2, 345, &joinItem); + ZEPHIR_CALL_METHOD(&joinType, this_ptr, "_getjointype", &_2, 312, &joinItem); zephir_check_call_status(); ZEPHIR_OBS_NVAR(&aliasExpr); if (zephir_array_isset_string_fetch(&aliasExpr, &joinItem, SL("alias"), 0)) { @@ -108109,7 +106630,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getJoins) { zephir_read_property(&_4$$9, this_ptr, SL("_phql"), PH_NOISY_CC | PH_READONLY); ZEPHIR_INIT_LNVAR(_5$$9); ZEPHIR_CONCAT_SVSV(&_5$$9, "Cannot use '", &alias, "' as join alias because it was already used, when preparing: ", &_4$$9); - ZEPHIR_CALL_METHOD(NULL, &_3$$9, "__construct", &_6, 9, &_5$$9); + ZEPHIR_CALL_METHOD(NULL, &_3$$9, "__construct", &_6, 4, &_5$$9); zephir_check_call_status(); zephir_throw_exception_debug(&_3$$9, "phalcon/mvc/model/query.zep", 1358 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -108132,7 +106653,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getJoins) { zephir_read_property(&_8$$11, this_ptr, SL("_phql"), PH_NOISY_CC | PH_READONLY); ZEPHIR_INIT_LNVAR(_9$$11); ZEPHIR_CONCAT_SVSV(&_9$$11, "Cannot use '", &realModelName, "' as join alias because it was already used, when preparing: ", &_8$$11); - ZEPHIR_CALL_METHOD(NULL, &_7$$11, "__construct", &_6, 9, &_9$$11); + ZEPHIR_CALL_METHOD(NULL, &_7$$11, "__construct", &_6, 4, &_9$$11); zephir_check_call_status(); zephir_throw_exception_debug(&_7$$11, "phalcon/mvc/model/query.zep", 1419 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -108170,7 +106691,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getJoins) { ZVAL_COPY(&joinItem, _10); ZEPHIR_OBS_NVAR(&joinExpr); if (zephir_array_isset_string_fetch(&joinExpr, &joinItem, SL("conditions"), 0)) { - ZEPHIR_CALL_METHOD(&_13$$13, this_ptr, "_getexpression", &_14, 338, &joinExpr); + ZEPHIR_CALL_METHOD(&_13$$13, this_ptr, "_getexpression", &_14, 305, &joinExpr); zephir_check_call_status(); zephir_array_update_zval(&joinPreCondition, &joinAliasName, &_13$$13, PH_COPY | PH_SEPARATE); } @@ -108267,7 +106788,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getJoins) { zephir_read_property(&_35$$22, this_ptr, SL("_phql"), PH_NOISY_CC | PH_READONLY); ZEPHIR_INIT_LNVAR(_36$$22); ZEPHIR_CONCAT_SVSVSV(&_36$$22, "There is more than one relation between models '", &fromModelName, "' and '", &joinModel, "', the join must be done using an alias, when preparing: ", &_35$$22); - ZEPHIR_CALL_METHOD(NULL, &_34$$22, "__construct", &_6, 9, &_36$$22); + ZEPHIR_CALL_METHOD(NULL, &_34$$22, "__construct", &_6, 4, &_36$$22); zephir_check_call_status(); zephir_throw_exception_debug(&_34$$22, "phalcon/mvc/model/query.zep", 1561 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -108283,10 +106804,10 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getJoins) { ZEPHIR_CALL_METHOD(&_37$$23, &relation, "isthrough", NULL, 0); zephir_check_call_status(); if (!(zephir_is_true(&_37$$23))) { - ZEPHIR_CALL_METHOD(&sqlJoin, this_ptr, "_getsinglejoin", &_38, 346, &joinType, &joinSource, &modelAlias, &joinAlias, &relation); + ZEPHIR_CALL_METHOD(&sqlJoin, this_ptr, "_getsinglejoin", &_38, 313, &joinType, &joinSource, &modelAlias, &joinAlias, &relation); zephir_check_call_status(); } else { - ZEPHIR_CALL_METHOD(&sqlJoin, this_ptr, "_getmultijoin", &_39, 347, &joinType, &joinSource, &modelAlias, &joinAlias, &relation); + ZEPHIR_CALL_METHOD(&sqlJoin, this_ptr, "_getmultijoin", &_39, 314, &joinType, &joinSource, &modelAlias, &joinAlias, &relation); zephir_check_call_status(); } if (zephir_array_isset_long(&sqlJoin, 0)) { @@ -108370,7 +106891,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getOrderClause) { ZEPHIR_INIT_NVAR(&orderItem); ZVAL_COPY(&orderItem, _0); zephir_array_fetch_string(&_1$$5, &orderItem, SL("column"), PH_NOISY | PH_READONLY, "phalcon/mvc/model/query.zep", 1650 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&orderPartExpr, this_ptr, "_getexpression", &_2, 338, &_1$$5); + ZEPHIR_CALL_METHOD(&orderPartExpr, this_ptr, "_getexpression", &_2, 305, &_1$$5); zephir_check_call_status(); if (zephir_array_isset_string_fetch(&orderSort, &orderItem, SL("sort"), 1)) { ZEPHIR_INIT_NVAR(&orderPartSort); @@ -108427,14 +106948,14 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getGroupClause) { { ZEPHIR_INIT_NVAR(&groupItem); ZVAL_COPY(&groupItem, _0$$3); - ZEPHIR_CALL_METHOD(&_1$$4, this_ptr, "_getexpression", &_2, 338, &groupItem); + ZEPHIR_CALL_METHOD(&_1$$4, this_ptr, "_getexpression", &_2, 305, &groupItem); zephir_check_call_status(); zephir_array_append(&groupParts, &_1$$4, PH_SEPARATE, "phalcon/mvc/model/query.zep", 1684); } ZEND_HASH_FOREACH_END(); ZEPHIR_INIT_NVAR(&groupItem); } else { zephir_create_array(&groupParts, 1, 0 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_3$$5, this_ptr, "_getexpression", &_2, 338, &group); + ZEPHIR_CALL_METHOD(&_3$$5, this_ptr, "_getexpression", &_2, 305, &group); zephir_check_call_status(); zephir_array_fast_append(&groupParts, &_3$$5); } @@ -108467,13 +106988,13 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getLimitClause) { array_init(&limit); ZEPHIR_OBS_VAR(&number); if (zephir_array_isset_string_fetch(&number, &limitClause, SL("number"), 0)) { - ZEPHIR_CALL_METHOD(&_0$$3, this_ptr, "_getexpression", &_1, 338, &number); + ZEPHIR_CALL_METHOD(&_0$$3, this_ptr, "_getexpression", &_1, 305, &number); zephir_check_call_status(); zephir_array_update_string(&limit, SL("number"), &_0$$3, PH_COPY | PH_SEPARATE); } ZEPHIR_OBS_VAR(&offset); if (zephir_array_isset_string_fetch(&offset, &limitClause, SL("offset"), 0)) { - ZEPHIR_CALL_METHOD(&_2$$4, this_ptr, "_getexpression", &_1, 338, &offset); + ZEPHIR_CALL_METHOD(&_2$$4, this_ptr, "_getexpression", &_1, 305, &offset); zephir_check_call_status(); zephir_array_update_string(&limit, SL("offset"), &_2$$4, PH_COPY | PH_SEPARATE); } @@ -108717,7 +107238,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _prepareSelect) { zephir_read_property(&_8$$20, this_ptr, SL("_phql"), PH_NOISY_CC | PH_READONLY); ZEPHIR_INIT_LNVAR(_9$$20); ZEPHIR_CONCAT_SVSV(&_9$$20, "Alias '", &alias, "' is used more than once, when preparing: ", &_8$$20); - ZEPHIR_CALL_METHOD(NULL, &_7$$20, "__construct", &_10, 9, &_9$$20); + ZEPHIR_CALL_METHOD(NULL, &_7$$20, "__construct", &_10, 4, &_9$$20); zephir_check_call_status(); zephir_throw_exception_debug(&_7$$20, "phalcon/mvc/model/query.zep", 1850 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -108795,7 +107316,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _prepareSelect) { zephir_read_property(&_19$$31, this_ptr, SL("_phql"), PH_NOISY_CC | PH_READONLY); ZEPHIR_INIT_LNVAR(_20$$31); ZEPHIR_CONCAT_SVSVSV(&_20$$31, "Can't find a relationship between '", &realModelName, "' and '", &relationModel, "' when preparing: ", &_19$$31); - ZEPHIR_CALL_METHOD(NULL, &_18$$31, "__construct", &_10, 9, &_20$$31); + ZEPHIR_CALL_METHOD(NULL, &_18$$31, "__construct", &_10, 4, &_20$$31); zephir_check_call_status(); zephir_throw_exception_debug(&_18$$31, "phalcon/mvc/model/query.zep", 1906 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -108891,12 +107412,12 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _prepareSelect) { zephir_array_update_string(&select, SL("joins"), &automaticJoins, PH_COPY | PH_SEPARATE); } } - ZEPHIR_CALL_METHOD(&sqlJoins, this_ptr, "_getjoins", &_37, 348, &select); + ZEPHIR_CALL_METHOD(&sqlJoins, this_ptr, "_getjoins", &_37, 315, &select); zephir_check_call_status(); } else { if (zephir_fast_count_int(&automaticJoins TSRMLS_CC)) { zephir_array_update_string(&select, SL("joins"), &automaticJoins, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(&sqlJoins, this_ptr, "_getjoins", &_37, 348, &select); + ZEPHIR_CALL_METHOD(&sqlJoins, this_ptr, "_getjoins", &_37, 315, &select); zephir_check_call_status(); } else { ZEPHIR_INIT_NVAR(&sqlJoins); @@ -108911,7 +107432,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _prepareSelect) { { ZEPHIR_INIT_NVAR(&column); ZVAL_COPY(&column, _38); - ZEPHIR_CALL_METHOD(&_39$$41, this_ptr, "_getselectcolumn", &_40, 349, &column); + ZEPHIR_CALL_METHOD(&_39$$41, this_ptr, "_getselectcolumn", &_40, 316, &column); zephir_check_call_status(); zephir_is_iterable(&_39$$41, 0, "phalcon/mvc/model/query.zep", 2024); ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&_39$$41), _41$$41) @@ -108961,31 +107482,31 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _prepareSelect) { } ZEPHIR_OBS_VAR(&where); if (zephir_array_isset_string_fetch(&where, ast, SL("where"), 0)) { - ZEPHIR_CALL_METHOD(&_45$$51, this_ptr, "_getexpression", &_46, 338, &where); + ZEPHIR_CALL_METHOD(&_45$$51, this_ptr, "_getexpression", &_46, 305, &where); zephir_check_call_status(); zephir_array_update_string(&sqlSelect, SL("where"), &_45$$51, PH_COPY | PH_SEPARATE); } ZEPHIR_OBS_VAR(&groupBy); if (zephir_array_isset_string_fetch(&groupBy, ast, SL("groupBy"), 0)) { - ZEPHIR_CALL_METHOD(&_47$$52, this_ptr, "_getgroupclause", NULL, 350, &groupBy); + ZEPHIR_CALL_METHOD(&_47$$52, this_ptr, "_getgroupclause", NULL, 317, &groupBy); zephir_check_call_status(); zephir_array_update_string(&sqlSelect, SL("group"), &_47$$52, PH_COPY | PH_SEPARATE); } ZEPHIR_OBS_VAR(&having); if (zephir_array_isset_string_fetch(&having, ast, SL("having"), 0)) { - ZEPHIR_CALL_METHOD(&_48$$53, this_ptr, "_getexpression", &_46, 338, &having); + ZEPHIR_CALL_METHOD(&_48$$53, this_ptr, "_getexpression", &_46, 305, &having); zephir_check_call_status(); zephir_array_update_string(&sqlSelect, SL("having"), &_48$$53, PH_COPY | PH_SEPARATE); } ZEPHIR_OBS_VAR(&order); if (zephir_array_isset_string_fetch(&order, ast, SL("orderBy"), 0)) { - ZEPHIR_CALL_METHOD(&_49$$54, this_ptr, "_getorderclause", NULL, 351, &order); + ZEPHIR_CALL_METHOD(&_49$$54, this_ptr, "_getorderclause", NULL, 318, &order); zephir_check_call_status(); zephir_array_update_string(&sqlSelect, SL("order"), &_49$$54, PH_COPY | PH_SEPARATE); } ZEPHIR_OBS_VAR(&limit); if (zephir_array_isset_string_fetch(&limit, ast, SL("limit"), 0)) { - ZEPHIR_CALL_METHOD(&_50$$55, this_ptr, "_getlimitclause", NULL, 352, &limit); + ZEPHIR_CALL_METHOD(&_50$$55, this_ptr, "_getlimitclause", NULL, 319, &limit); zephir_check_call_status(); zephir_array_update_string(&sqlSelect, SL("limit"), &_50$$55, PH_COPY | PH_SEPARATE); } @@ -109110,7 +107631,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _prepareInsert) { } else { ZVAL_BOOL(&_9$$9, 0); } - ZEPHIR_CALL_METHOD(&_8$$9, this_ptr, "_getexpression", &_10, 338, &exprValue, &_9$$9); + ZEPHIR_CALL_METHOD(&_8$$9, this_ptr, "_getexpression", &_10, 305, &exprValue, &_9$$9); zephir_check_call_status(); zephir_array_update_string(&_6$$9, SL("value"), &_8$$9, PH_COPY | PH_SEPARATE); zephir_array_append(&exprValues, &_6$$9, PH_SEPARATE, "phalcon/mvc/model/query.zep", 2139); @@ -109141,7 +107662,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _prepareInsert) { zephir_read_property(&_15$$12, this_ptr, SL("_phql"), PH_NOISY_CC | PH_READONLY); ZEPHIR_INIT_LNVAR(_16$$12); ZEPHIR_CONCAT_SVSVSV(&_16$$12, "The model '", &modelName, "' doesn't have the attribute '", &name, "', when preparing: ", &_15$$12); - ZEPHIR_CALL_METHOD(NULL, &_14$$12, "__construct", &_17, 9, &_16$$12); + ZEPHIR_CALL_METHOD(NULL, &_14$$12, "__construct", &_17, 4, &_16$$12); zephir_check_call_status(); zephir_throw_exception_debug(&_14$$12, "phalcon/mvc/model/query.zep", 2159 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -109334,7 +107855,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _prepareUpdate) { } else { ZVAL_BOOL(&_10$$17, 0); } - ZEPHIR_CALL_METHOD(&_8$$17, this_ptr, "_getexpression", &_11, 338, &_9$$17, &_10$$17); + ZEPHIR_CALL_METHOD(&_8$$17, this_ptr, "_getexpression", &_11, 305, &_9$$17, &_10$$17); zephir_check_call_status(); zephir_array_append(&sqlFields, &_8$$17, PH_SEPARATE, "phalcon/mvc/model/query.zep", 2289); ZEPHIR_OBS_NVAR(&exprColumn); @@ -109349,7 +107870,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _prepareUpdate) { } else { ZVAL_BOOL(&_15$$17, 0); } - ZEPHIR_CALL_METHOD(&_14$$17, this_ptr, "_getexpression", &_11, 338, &exprColumn, &_15$$17); + ZEPHIR_CALL_METHOD(&_14$$17, this_ptr, "_getexpression", &_11, 305, &exprColumn, &_15$$17); zephir_check_call_status(); zephir_array_update_string(&_12$$17, SL("value"), &_14$$17, PH_COPY | PH_SEPARATE); zephir_array_append(&sqlValues, &_12$$17, PH_SEPARATE, "phalcon/mvc/model/query.zep", 2294); @@ -109364,13 +107885,13 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _prepareUpdate) { ZEPHIR_OBS_VAR(&where); if (zephir_array_isset_string_fetch(&where, &ast, SL("where"), 0)) { ZVAL_BOOL(&_17$$18, 1); - ZEPHIR_CALL_METHOD(&_16$$18, this_ptr, "_getexpression", &_11, 338, &where, &_17$$18); + ZEPHIR_CALL_METHOD(&_16$$18, this_ptr, "_getexpression", &_11, 305, &where, &_17$$18); zephir_check_call_status(); zephir_array_update_string(&sqlUpdate, SL("where"), &_16$$18, PH_COPY | PH_SEPARATE); } ZEPHIR_OBS_VAR(&limit); if (zephir_array_isset_string_fetch(&limit, &ast, SL("limit"), 0)) { - ZEPHIR_CALL_METHOD(&_18$$19, this_ptr, "_getlimitclause", NULL, 352, &limit); + ZEPHIR_CALL_METHOD(&_18$$19, this_ptr, "_getlimitclause", NULL, 319, &limit); zephir_check_call_status(); zephir_array_update_string(&sqlUpdate, SL("limit"), &_18$$19, PH_COPY | PH_SEPARATE); } @@ -109519,13 +108040,13 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _prepareDelete) { ZEPHIR_OBS_VAR(&where); if (zephir_array_isset_string_fetch(&where, &ast, SL("where"), 0)) { ZVAL_BOOL(&_8$$14, 1); - ZEPHIR_CALL_METHOD(&_7$$14, this_ptr, "_getexpression", NULL, 338, &where, &_8$$14); + ZEPHIR_CALL_METHOD(&_7$$14, this_ptr, "_getexpression", NULL, 305, &where, &_8$$14); zephir_check_call_status(); zephir_array_update_string(&sqlDelete, SL("where"), &_7$$14, PH_COPY | PH_SEPARATE); } ZEPHIR_OBS_VAR(&limit); if (zephir_array_isset_string_fetch(&limit, &ast, SL("limit"), 0)) { - ZEPHIR_CALL_METHOD(&_9$$15, this_ptr, "_getlimitclause", NULL, 352, &limit); + ZEPHIR_CALL_METHOD(&_9$$15, this_ptr, "_getlimitclause", NULL, 319, &limit); zephir_check_call_status(); zephir_array_update_string(&sqlDelete, SL("limit"), &_9$$15, PH_COPY | PH_SEPARATE); } @@ -109585,22 +108106,22 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, parse) { zephir_update_property_zval(this_ptr, SL("_type"), &type); do { if (ZEPHIR_IS_LONG(&type, 309)) { - ZEPHIR_CALL_METHOD(&irPhql, this_ptr, "_prepareselect", NULL, 343); + ZEPHIR_CALL_METHOD(&irPhql, this_ptr, "_prepareselect", NULL, 310); zephir_check_call_status(); break; } if (ZEPHIR_IS_LONG(&type, 306)) { - ZEPHIR_CALL_METHOD(&irPhql, this_ptr, "_prepareinsert", NULL, 353); + ZEPHIR_CALL_METHOD(&irPhql, this_ptr, "_prepareinsert", NULL, 320); zephir_check_call_status(); break; } if (ZEPHIR_IS_LONG(&type, 300)) { - ZEPHIR_CALL_METHOD(&irPhql, this_ptr, "_prepareupdate", NULL, 354); + ZEPHIR_CALL_METHOD(&irPhql, this_ptr, "_prepareupdate", NULL, 321); zephir_check_call_status(); break; } if (ZEPHIR_IS_LONG(&type, 303)) { - ZEPHIR_CALL_METHOD(&irPhql, this_ptr, "_preparedelete", NULL, 355); + ZEPHIR_CALL_METHOD(&irPhql, this_ptr, "_preparedelete", NULL, 322); zephir_check_call_status(); break; } @@ -109608,7 +108129,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, parse) { object_init_ex(&_2$$13, phalcon_mvc_model_exception_ce); ZEPHIR_INIT_VAR(&_3$$13); ZEPHIR_CONCAT_SVSV(&_3$$13, "Unknown statement ", &type, ", when preparing: ", &phql); - ZEPHIR_CALL_METHOD(NULL, &_2$$13, "__construct", NULL, 9, &_3$$13); + ZEPHIR_CALL_METHOD(NULL, &_2$$13, "__construct", NULL, 4, &_3$$13); zephir_check_call_status(); zephir_throw_exception_debug(&_2$$13, "phalcon/mvc/model/query.zep", 2487 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -110104,13 +108625,13 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _executeSelect) { object_init_ex(&_46$$66, phalcon_mvc_model_exception_ce); ZEPHIR_INIT_VAR(&_47$$66); ZEPHIR_CONCAT_SVS(&_47$$66, "Resultset class \"", &resultsetClassName, "\" not found"); - ZEPHIR_CALL_METHOD(NULL, &_46$$66, "__construct", NULL, 9, &_47$$66); + ZEPHIR_CALL_METHOD(NULL, &_46$$66, "__construct", NULL, 4, &_47$$66); zephir_check_call_status(); zephir_throw_exception_debug(&_46$$66, "phalcon/mvc/model/query.zep", 2832 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } - ZEPHIR_CALL_FUNCTION(&_48$$65, "class_implements", NULL, 356, &resultsetClassName); + ZEPHIR_CALL_FUNCTION(&_48$$65, "class_implements", NULL, 323, &resultsetClassName); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_49$$65); ZVAL_STRING(&_49$$65, "Phalcon\\Mvc\\Model\\ResultsetInterface"); @@ -110119,7 +108640,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _executeSelect) { object_init_ex(&_50$$67, phalcon_mvc_model_exception_ce); ZEPHIR_INIT_VAR(&_51$$67); ZEPHIR_CONCAT_SVS(&_51$$67, "Resultset class \"", &resultsetClassName, "\" must be an implementation of Phalcon\\Mvc\\Model\\ResultsetInterface"); - ZEPHIR_CALL_METHOD(NULL, &_50$$67, "__construct", NULL, 9, &_51$$67); + ZEPHIR_CALL_METHOD(NULL, &_50$$67, "__construct", NULL, 4, &_51$$67); zephir_check_call_status(); zephir_throw_exception_debug(&_50$$67, "phalcon/mvc/model/query.zep", 2836 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -110146,12 +108667,12 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _executeSelect) { } else { ZVAL_BOOL(&_55$$53, 0); } - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 357, &simpleColumnMap, &resultObject, &resultData, &cache, &_55$$53); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 324, &simpleColumnMap, &resultObject, &resultData, &cache, &_55$$53); zephir_check_call_status(); RETURN_MM(); } object_init_ex(return_value, phalcon_mvc_model_resultset_complex_ce); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 358, &columns1, &resultData, &cache); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 325, &columns1, &resultData, &cache); zephir_check_call_status(); RETURN_MM(); @@ -110301,7 +108822,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _executeInsert) { object_init_ex(&_11$$16, phalcon_mvc_model_exception_ce); ZEPHIR_INIT_LNVAR(_12$$16); ZEPHIR_CONCAT_SVS(&_12$$16, "Bound parameter '", &wildcard, "' cannot be replaced because it isn't in the placeholders list"); - ZEPHIR_CALL_METHOD(NULL, &_11$$16, "__construct", &_13, 9, &_12$$16); + ZEPHIR_CALL_METHOD(NULL, &_11$$16, "__construct", &_13, 4, &_12$$16); zephir_check_call_status(); zephir_throw_exception_debug(&_11$$16, "phalcon/mvc/model/query.zep", 2949 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -110313,7 +108834,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _executeInsert) { object_init_ex(&insertValue, phalcon_db_rawvalue_ce); ZEPHIR_CALL_METHOD(&_14$$17, &dialect, "getsqlexpression", &_15, 0, &exprValue); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, &insertValue, "__construct", &_16, 24, &_14$$17); + ZEPHIR_CALL_METHOD(NULL, &insertValue, "__construct", &_16, 19, &_14$$17); zephir_check_call_status(); break; } while(0); @@ -110328,7 +108849,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _executeInsert) { object_init_ex(&_17$$20, phalcon_mvc_model_exception_ce); ZEPHIR_INIT_LNVAR(_18$$20); ZEPHIR_CONCAT_SVS(&_18$$20, "Column '", &fieldName, "' isn't part of the column map"); - ZEPHIR_CALL_METHOD(NULL, &_17$$20, "__construct", &_13, 9, &_18$$20); + ZEPHIR_CALL_METHOD(NULL, &_17$$20, "__construct", &_13, 4, &_18$$20); zephir_check_call_status(); zephir_throw_exception_debug(&_17$$20, "phalcon/mvc/model/query.zep", 2967 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -110353,7 +108874,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _executeInsert) { object_init_ex(return_value, phalcon_mvc_model_query_status_ce); ZEPHIR_CALL_METHOD(&_20, &insertModel, "create", NULL, 0, &insertValues); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 359, &_20, &insertModel); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 326, &_20, &insertModel); zephir_check_call_status(); RETURN_MM(); @@ -110502,7 +109023,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _executeUpdate) { object_init_ex(&_11$$16, phalcon_mvc_model_exception_ce); ZEPHIR_INIT_LNVAR(_12$$16); ZEPHIR_CONCAT_SVS(&_12$$16, "Bound parameter '", &wildcard, "' cannot be replaced because it's not in the placeholders list"); - ZEPHIR_CALL_METHOD(NULL, &_11$$16, "__construct", &_13, 9, &_12$$16); + ZEPHIR_CALL_METHOD(NULL, &_11$$16, "__construct", &_13, 4, &_12$$16); zephir_check_call_status(); zephir_throw_exception_debug(&_11$$16, "phalcon/mvc/model/query.zep", 3085 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -110518,7 +109039,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _executeUpdate) { object_init_ex(&updateValue, phalcon_db_rawvalue_ce); ZEPHIR_CALL_METHOD(&_14$$18, &dialect, "getsqlexpression", &_15, 0, &exprValue); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, &updateValue, "__construct", &_16, 24, &_14$$18); + ZEPHIR_CALL_METHOD(NULL, &updateValue, "__construct", &_16, 19, &_14$$18); zephir_check_call_status(); break; } while(0); @@ -110527,12 +109048,12 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _executeUpdate) { } ZEND_HASH_FOREACH_END(); ZEPHIR_INIT_NVAR(&field); ZEPHIR_INIT_NVAR(&number); - ZEPHIR_CALL_METHOD(&records, this_ptr, "_getrelatedrecords", NULL, 360, &model, intermediate, &selectBindParams, &selectBindTypes); + ZEPHIR_CALL_METHOD(&records, this_ptr, "_getrelatedrecords", NULL, 327, &model, intermediate, &selectBindParams, &selectBindTypes); zephir_check_call_status(); if (!(zephir_fast_count_int(&records TSRMLS_CC))) { object_init_ex(return_value, phalcon_mvc_model_query_status_ce); ZVAL_BOOL(&_17$$19, 1); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", &_18, 359, &_17$$19); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", &_18, 326, &_17$$19); zephir_check_call_status(); RETURN_MM(); } @@ -110566,7 +109087,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _executeUpdate) { zephir_check_call_status(); object_init_ex(return_value, phalcon_mvc_model_query_status_ce); ZVAL_BOOL(&_23$$24, 0); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", &_18, 359, &_23$$24, &record); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", &_18, 326, &_23$$24, &record); zephir_check_call_status(); RETURN_MM(); } @@ -110577,7 +109098,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _executeUpdate) { zephir_check_call_status(); object_init_ex(return_value, phalcon_mvc_model_query_status_ce); ZVAL_BOOL(&_25, 1); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", &_18, 359, &_25); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", &_18, 326, &_25); zephir_check_call_status(); RETURN_MM(); @@ -110627,12 +109148,12 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _executeDelete) { ZEPHIR_CALL_METHOD(&model, &_1$$4, "load", NULL, 0, &modelName); zephir_check_call_status(); } - ZEPHIR_CALL_METHOD(&records, this_ptr, "_getrelatedrecords", NULL, 360, &model, intermediate, bindParams, bindTypes); + ZEPHIR_CALL_METHOD(&records, this_ptr, "_getrelatedrecords", NULL, 327, &model, intermediate, bindParams, bindTypes); zephir_check_call_status(); if (!(zephir_fast_count_int(&records TSRMLS_CC))) { object_init_ex(return_value, phalcon_mvc_model_query_status_ce); ZVAL_BOOL(&_2$$5, 1); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", &_3, 359, &_2$$5); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", &_3, 326, &_2$$5); zephir_check_call_status(); RETURN_MM(); } @@ -110666,7 +109187,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _executeDelete) { zephir_check_call_status(); object_init_ex(return_value, phalcon_mvc_model_query_status_ce); ZVAL_BOOL(&_8$$10, 0); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", &_3, 359, &_8$$10, &record); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", &_3, 326, &_8$$10, &record); zephir_check_call_status(); RETURN_MM(); } @@ -110677,7 +109198,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _executeDelete) { zephir_check_call_status(); object_init_ex(return_value, phalcon_mvc_model_query_status_ce); ZVAL_BOOL(&_10, 1); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", &_3, 359, &_10); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", &_3, 326, &_10); zephir_check_call_status(); RETURN_MM(); @@ -110742,17 +109263,17 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getRelatedRecords) { } ZEPHIR_INIT_VAR(&query); object_init_ex(&query, phalcon_mvc_model_query_ce); - ZEPHIR_CALL_METHOD(NULL, &query, "__construct", NULL, 361); + ZEPHIR_CALL_METHOD(NULL, &query, "__construct", NULL, 328); zephir_check_call_status(); zephir_read_property(&_5, this_ptr, SL("_dependencyInjector"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_METHOD(NULL, &query, "setdi", NULL, 362, &_5); + ZEPHIR_CALL_METHOD(NULL, &query, "setdi", NULL, 329, &_5); zephir_check_call_status(); ZVAL_LONG(&_6, 309); - ZEPHIR_CALL_METHOD(NULL, &query, "settype", NULL, 363, &_6); + ZEPHIR_CALL_METHOD(NULL, &query, "settype", NULL, 330, &_6); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, &query, "setintermediate", NULL, 364, &selectIr); + ZEPHIR_CALL_METHOD(NULL, &query, "setintermediate", NULL, 331, &selectIr); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_METHOD(&query, "execute", NULL, 365, bindParams, bindTypes); + ZEPHIR_RETURN_CALL_METHOD(&query, "execute", NULL, 332, bindParams, bindTypes); zephir_check_call_status(); RETURN_MM(); @@ -110897,22 +109418,22 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, execute) { zephir_read_property(&type, this_ptr, SL("_type"), PH_NOISY_CC); do { if (ZEPHIR_IS_LONG(&type, 309)) { - ZEPHIR_CALL_METHOD(&result, this_ptr, "_executeselect", NULL, 366, &intermediate, &mergedParams, &mergedTypes); + ZEPHIR_CALL_METHOD(&result, this_ptr, "_executeselect", NULL, 333, &intermediate, &mergedParams, &mergedTypes); zephir_check_call_status(); break; } if (ZEPHIR_IS_LONG(&type, 306)) { - ZEPHIR_CALL_METHOD(&result, this_ptr, "_executeinsert", NULL, 367, &intermediate, &mergedParams, &mergedTypes); + ZEPHIR_CALL_METHOD(&result, this_ptr, "_executeinsert", NULL, 334, &intermediate, &mergedParams, &mergedTypes); zephir_check_call_status(); break; } if (ZEPHIR_IS_LONG(&type, 300)) { - ZEPHIR_CALL_METHOD(&result, this_ptr, "_executeupdate", NULL, 368, &intermediate, &mergedParams, &mergedTypes); + ZEPHIR_CALL_METHOD(&result, this_ptr, "_executeupdate", NULL, 335, &intermediate, &mergedParams, &mergedTypes); zephir_check_call_status(); break; } if (ZEPHIR_IS_LONG(&type, 303)) { - ZEPHIR_CALL_METHOD(&result, this_ptr, "_executedelete", NULL, 369, &intermediate, &mergedParams, &mergedTypes); + ZEPHIR_CALL_METHOD(&result, this_ptr, "_executedelete", NULL, 336, &intermediate, &mergedParams, &mergedTypes); zephir_check_call_status(); break; } @@ -110920,7 +109441,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, execute) { object_init_ex(&_4$$27, phalcon_mvc_model_exception_ce); ZEPHIR_INIT_VAR(&_5$$27); ZEPHIR_CONCAT_SV(&_5$$27, "Unknown statement ", &type); - ZEPHIR_CALL_METHOD(NULL, &_4$$27, "__construct", NULL, 9, &_5$$27); + ZEPHIR_CALL_METHOD(NULL, &_4$$27, "__construct", NULL, 4, &_5$$27); zephir_check_call_status(); zephir_throw_exception_debug(&_4$$27, "phalcon/mvc/model/query.zep", 3431 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -110976,7 +109497,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, getSingleResult) { zephir_check_call_status(); RETURN_MM(); } - ZEPHIR_CALL_METHOD(&_1, this_ptr, "execute", NULL, 365, bindParams, bindTypes); + ZEPHIR_CALL_METHOD(&_1, this_ptr, "execute", NULL, 332, bindParams, bindTypes); zephir_check_call_status(); ZEPHIR_RETURN_CALL_METHOD(&_1, "getfirst", NULL, 0); zephir_check_call_status(); @@ -111208,7 +109729,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, getSql) { zephir_read_property(&_1$$3, this_ptr, SL("_bindParams"), PH_NOISY_CC | PH_READONLY); zephir_read_property(&_2$$3, this_ptr, SL("_bindTypes"), PH_NOISY_CC | PH_READONLY); ZVAL_BOOL(&_3$$3, 1); - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_executeselect", NULL, 366, &intermediate, &_1$$3, &_2$$3, &_3$$3); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_executeselect", NULL, 333, &intermediate, &_1$$3, &_2$$3, &_3$$3); zephir_check_call_status(); RETURN_MM(); } @@ -111330,11 +109851,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Relation, __construct) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 4, 1, &type, &referencedModel_param, &fields, &referencedFields, &options); - if (unlikely(Z_TYPE_P(referencedModel_param) != IS_STRING && Z_TYPE_P(referencedModel_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(referencedModel_param) != IS_STRING && Z_TYPE_P(referencedModel_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'referencedModel' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(referencedModel_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(referencedModel_param) == IS_STRING)) { zephir_get_strval(&referencedModel, referencedModel_param); } else { ZEPHIR_INIT_VAR(&referencedModel); @@ -111368,11 +109889,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Relation, setIntermediateRelation) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &intermediateFields, &intermediateModel_param, &intermediateReferencedFields); - if (unlikely(Z_TYPE_P(intermediateModel_param) != IS_STRING && Z_TYPE_P(intermediateModel_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(intermediateModel_param) != IS_STRING && Z_TYPE_P(intermediateModel_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'intermediateModel' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(intermediateModel_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(intermediateModel_param) == IS_STRING)) { zephir_get_strval(&intermediateModel, intermediateModel_param); } else { ZEPHIR_INIT_VAR(&intermediateModel); @@ -111445,11 +109966,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Relation, getOption) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(&name, name_param); } else { ZEPHIR_INIT_VAR(&name); @@ -111784,7 +110305,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Resultset, next) { zephir_read_property(&_0, this_ptr, SL("_pointer"), PH_NOISY_CC | PH_READONLY); ZVAL_LONG(&_1, (zephir_get_numberval(&_0) + 1)); - ZEPHIR_CALL_METHOD(NULL, this_ptr, "seek", NULL, 74, &_1); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "seek", NULL, 68, &_1); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -111834,7 +110355,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Resultset, rewind) { ZEPHIR_MM_GROW(); ZVAL_LONG(&_0, 0); - ZEPHIR_CALL_METHOD(NULL, this_ptr, "seek", NULL, 74, &_0); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "seek", NULL, 68, &_0); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -111976,7 +110497,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Resultset, offsetGet) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &index_param); - if (unlikely(Z_TYPE_P(index_param) != IS_LONG)) { + if (UNEXPECTED(Z_TYPE_P(index_param) != IS_LONG)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'index' must be a int") TSRMLS_CC); RETURN_MM_NULL(); } @@ -111986,7 +110507,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Resultset, offsetGet) { zephir_read_property(&_0, this_ptr, SL("_count"), PH_NOISY_CC | PH_READONLY); if (ZEPHIR_GT_LONG(&_0, index)) { ZVAL_LONG(&_1$$3, index); - ZEPHIR_CALL_METHOD(NULL, this_ptr, "seek", NULL, 74, &_1$$3); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "seek", NULL, 68, &_1$$3); zephir_check_call_status(); ZEPHIR_RETURN_CALL_METHOD(this_ptr, "current", NULL, 0); zephir_check_call_status(); @@ -112069,7 +110590,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Resultset, getFirst) { RETURN_MM_BOOL(0); } ZVAL_LONG(&_1, 0); - ZEPHIR_CALL_METHOD(NULL, this_ptr, "seek", NULL, 74, &_1); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "seek", NULL, 68, &_1); zephir_check_call_status(); ZEPHIR_RETURN_CALL_METHOD(this_ptr, "current", NULL, 0); zephir_check_call_status(); @@ -112094,7 +110615,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Resultset, getLast) { RETURN_MM_BOOL(0); } ZVAL_LONG(&_0, (zephir_get_numberval(&count) - 1)); - ZEPHIR_CALL_METHOD(NULL, this_ptr, "seek", NULL, 74, &_0); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "seek", NULL, 68, &_0); zephir_check_call_status(); ZEPHIR_RETURN_CALL_METHOD(this_ptr, "current", NULL, 0); zephir_check_call_status(); @@ -112213,7 +110734,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Resultset, update) { ZEPHIR_INIT_VAR(&connection); ZVAL_NULL(&connection); transaction = 0; - ZEPHIR_CALL_METHOD(NULL, this_ptr, "rewind", NULL, 75); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "rewind", NULL, 69); zephir_check_call_status(); while (1) { ZEPHIR_CALL_METHOD(&_0, this_ptr, "valid", &_1, 0); @@ -112300,7 +110821,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Resultset, delete) { ZEPHIR_INIT_VAR(&connection); ZVAL_NULL(&connection); transaction = 0; - ZEPHIR_CALL_METHOD(NULL, this_ptr, "rewind", NULL, 75); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "rewind", NULL, 69); zephir_check_call_status(); while (1) { ZEPHIR_CALL_METHOD(&_0, this_ptr, "valid", &_1, 0); @@ -112380,7 +110901,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Resultset, filter) { array_init(&records); ZEPHIR_INIT_VAR(¶meters); array_init(¶meters); - ZEPHIR_CALL_METHOD(NULL, this_ptr, "rewind", NULL, 75); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "rewind", NULL, 69); zephir_check_call_status(); while (1) { ZEPHIR_CALL_METHOD(&_0, this_ptr, "valid", &_1, 0); @@ -112428,7 +110949,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Resultset, jsonSerialize) { ZEPHIR_INIT_VAR(&records); array_init(&records); - ZEPHIR_CALL_METHOD(NULL, this_ptr, "rewind", NULL, 75); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "rewind", NULL, 69); zephir_check_call_status(); while (1) { ZEPHIR_CALL_METHOD(&_0, this_ptr, "valid", &_1, 0); @@ -112630,11 +111151,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Row, writeAttribute) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &attribute_param, &value); - if (unlikely(Z_TYPE_P(attribute_param) != IS_STRING && Z_TYPE_P(attribute_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(attribute_param) != IS_STRING && Z_TYPE_P(attribute_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'attribute' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(attribute_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(attribute_param) == IS_STRING)) { zephir_get_strval(&attribute, attribute_param); } else { ZEPHIR_INIT_VAR(&attribute); @@ -112655,7 +111176,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Row, toArray) { ZEPHIR_MM_GROW(); - ZEPHIR_RETURN_CALL_FUNCTION("get_object_vars", NULL, 21, this_ptr); + ZEPHIR_RETURN_CALL_FUNCTION("get_object_vars", NULL, 16, this_ptr); zephir_check_call_status(); RETURN_MM(); @@ -112860,7 +111381,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Transaction, rollback) { ZEPHIR_INIT_VAR(&_1$$4); object_init_ex(&_1$$4, phalcon_mvc_model_transaction_failed_ce); zephir_read_property(&_2$$4, this_ptr, SL("_rollbackRecord"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_METHOD(NULL, &_1$$4, "__construct", NULL, 376, rollbackMessage, &_2$$4); + ZEPHIR_CALL_METHOD(NULL, &_1$$4, "__construct", NULL, 340, rollbackMessage, &_2$$4); zephir_check_call_status(); zephir_throw_exception_debug(&_1$$4, "phalcon/mvc/model/transaction.zep", 163 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -112884,7 +111405,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Transaction, getConnection) { zephir_read_property(&_0, this_ptr, SL("_rollbackOnAbort"), PH_NOISY_CC | PH_READONLY); if (zephir_is_true(&_0)) { - ZEPHIR_CALL_FUNCTION(&_1$$3, "connection_aborted", NULL, 377); + ZEPHIR_CALL_FUNCTION(&_1$$3, "connection_aborted", NULL, 341); zephir_check_call_status(); if (zephir_is_true(&_1$$3)) { ZEPHIR_INIT_VAR(&_2$$4); @@ -113175,11 +111696,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Validator, appendMessage) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &message_param, &field, &type); - if (unlikely(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'message' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(message_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(message_param) == IS_STRING)) { zephir_get_strval(&message, message_param); } else { ZEPHIR_INIT_VAR(&message); @@ -113209,7 +111730,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Validator, appendMessage) { } ZEPHIR_INIT_VAR(&_3); object_init_ex(&_3, phalcon_mvc_model_message_ce); - ZEPHIR_CALL_METHOD(NULL, &_3, "__construct", NULL, 8, &message, field, type); + ZEPHIR_CALL_METHOD(NULL, &_3, "__construct", NULL, 3, &message, field, type); zephir_check_call_status(); zephir_update_property_array_append(this_ptr, SL("_messages"), &_3 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -113248,11 +111769,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Validator, getOption) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &option_param, &defaultValue); - if (unlikely(Z_TYPE_P(option_param) != IS_STRING && Z_TYPE_P(option_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(option_param) != IS_STRING && Z_TYPE_P(option_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'option' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(option_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(option_param) == IS_STRING)) { zephir_get_strval(&option, option_param); } else { ZEPHIR_INIT_VAR(&option); @@ -113286,11 +111807,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Validator, isSetOption) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &option_param); - if (unlikely(Z_TYPE_P(option_param) != IS_STRING && Z_TYPE_P(option_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(option_param) != IS_STRING && Z_TYPE_P(option_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'option' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(option_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(option_param) == IS_STRING)) { zephir_get_strval(&option, option_param); } else { ZEPHIR_INIT_VAR(&option); @@ -113389,11 +111910,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Behavior_SoftDelete, notify) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &type_param, &model); - if (unlikely(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'type' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(type_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(type_param) == IS_STRING)) { zephir_get_strval(&type, type_param); } else { ZEPHIR_INIT_VAR(&type); @@ -113489,11 +112010,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Behavior_Timestampable, notify) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &type_param, &model); - if (unlikely(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'type' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(type_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(type_param) == IS_STRING)) { zephir_get_strval(&type, type_param); } else { ZEPHIR_INIT_VAR(&type); @@ -113518,7 +112039,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Behavior_Timestampable, notify) { ZVAL_NULL(×tamp); ZEPHIR_OBS_VAR(&format); if (zephir_array_isset_string_fetch(&format, &options, SL("format"), 0)) { - ZEPHIR_CALL_FUNCTION(×tamp, "date", NULL, 303, &format); + ZEPHIR_CALL_FUNCTION(×tamp, "date", NULL, 271, &format); zephir_check_call_status(); } else { ZEPHIR_OBS_VAR(&generator); @@ -113644,11 +112165,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Apc, read) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &key_param); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(&key, key_param); } else { ZEPHIR_INIT_VAR(&key); @@ -113659,7 +112180,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Apc, read) { zephir_read_property(&_0, this_ptr, SL("_prefix"), PH_NOISY_CC | PH_READONLY); ZEPHIR_INIT_VAR(&_1); ZEPHIR_CONCAT_SVV(&_1, "$PMM$", &_0, &key); - ZEPHIR_CALL_FUNCTION(&data, "apc_fetch", NULL, 85, &_1); + ZEPHIR_CALL_FUNCTION(&data, "apc_fetch", NULL, 77, &_1); zephir_check_call_status(); if (Z_TYPE_P(&data) == IS_ARRAY) { RETURN_CCTOR(data); @@ -113684,11 +112205,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Apc, write) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &key_param, &data); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(&key, key_param); } else { ZEPHIR_INIT_VAR(&key); @@ -113700,7 +112221,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Apc, write) { ZEPHIR_INIT_VAR(&_1); ZEPHIR_CONCAT_SVV(&_1, "$PMM$", &_0, &key); zephir_read_property(&_2, this_ptr, SL("_ttl"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(NULL, "apc_store", NULL, 86, &_1, data, &_2); + ZEPHIR_CALL_FUNCTION(NULL, "apc_store", NULL, 78, &_1, data, &_2); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -113793,11 +112314,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Files, read) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &key_param); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(&key, key_param); } else { ZEPHIR_INIT_VAR(&key); @@ -113842,11 +112363,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Files, write) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &key_param, &data); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(&key, key_param); } else { ZEPHIR_INIT_VAR(&key); @@ -113976,9 +112497,9 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Libmemcached, __construct) { ZEPHIR_OBS_VAR(&_4); zephir_read_property(&_4, this_ptr, SL("_ttl"), PH_NOISY_CC); zephir_array_update_string(&_3, SL("lifetime"), &_4, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", NULL, 333, &_3); + ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", NULL, 301, &_3); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, &_1, "__construct", NULL, 334, &_2, options); + ZEPHIR_CALL_METHOD(NULL, &_1, "__construct", NULL, 302, &_2, options); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_memcache"), &_1); ZEPHIR_MM_RESTORE(); @@ -113999,11 +112520,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Libmemcached, read) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &key_param); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(&key, key_param); } else { ZEPHIR_INIT_VAR(&key); @@ -114035,11 +112556,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Libmemcached, write) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &key_param, &data); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(&key, key_param); } else { ZEPHIR_INIT_VAR(&key); @@ -114095,7 +112616,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Libmemcached, reset) { ZEPHIR_INIT_NVAR(&_0$$3); ZEPHIR_INIT_NVAR(&key); } - ZEPHIR_CALL_PARENT(NULL, phalcon_mvc_model_metadata_libmemcached_ce, this_ptr, "reset", &_5, 335); + ZEPHIR_CALL_PARENT(NULL, phalcon_mvc_model_metadata_libmemcached_ce, this_ptr, "reset", &_5, 0); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -114215,9 +112736,9 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Memcache, __construct) { ZEPHIR_OBS_VAR(&_7); zephir_read_property(&_7, this_ptr, SL("_ttl"), PH_NOISY_CC); zephir_array_update_string(&_6, SL("lifetime"), &_7, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(NULL, &_5, "__construct", NULL, 333, &_6); + ZEPHIR_CALL_METHOD(NULL, &_5, "__construct", NULL, 301, &_6); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, &_4, "__construct", NULL, 336, &_5, options); + ZEPHIR_CALL_METHOD(NULL, &_4, "__construct", NULL, 303, &_5, options); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_memcache"), &_4); ZEPHIR_MM_RESTORE(); @@ -114238,11 +112759,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Memcache, read) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &key_param); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(&key, key_param); } else { ZEPHIR_INIT_VAR(&key); @@ -114274,11 +112795,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Memcache, write) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &key_param, &data); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(&key, key_param); } else { ZEPHIR_INIT_VAR(&key); @@ -114334,7 +112855,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Memcache, reset) { ZEPHIR_INIT_NVAR(&_0$$3); ZEPHIR_INIT_NVAR(&key); } - ZEPHIR_CALL_PARENT(NULL, phalcon_mvc_model_metadata_memcache_ce, this_ptr, "reset", &_5, 335); + ZEPHIR_CALL_PARENT(NULL, phalcon_mvc_model_metadata_memcache_ce, this_ptr, "reset", &_5, 0); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -114414,11 +112935,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Memory, read) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &key_param); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(&key, key_param); } else { ZEPHIR_INIT_VAR(&key); @@ -114442,11 +112963,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Memory, write) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &key_param, &data); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(&key, key_param); } else { ZEPHIR_INIT_VAR(&key); @@ -114572,9 +113093,9 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Redis, __construct) { ZEPHIR_OBS_VAR(&_7); zephir_read_property(&_7, this_ptr, SL("_ttl"), PH_NOISY_CC); zephir_array_update_string(&_6, SL("lifetime"), &_7, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(NULL, &_5, "__construct", NULL, 333, &_6); + ZEPHIR_CALL_METHOD(NULL, &_5, "__construct", NULL, 301, &_6); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, &_4, "__construct", NULL, 337, &_5, options); + ZEPHIR_CALL_METHOD(NULL, &_4, "__construct", NULL, 304, &_5, options); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_redis"), &_4); ZEPHIR_MM_RESTORE(); @@ -114595,11 +113116,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Redis, read) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &key_param); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(&key, key_param); } else { ZEPHIR_INIT_VAR(&key); @@ -114631,11 +113152,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Redis, write) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &key_param, &data); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(&key, key_param); } else { ZEPHIR_INIT_VAR(&key); @@ -114691,7 +113212,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Redis, reset) { ZEPHIR_INIT_NVAR(&_0$$3); ZEPHIR_INIT_NVAR(&key); } - ZEPHIR_CALL_PARENT(NULL, phalcon_mvc_model_metadata_redis_ce, this_ptr, "reset", &_5, 335); + ZEPHIR_CALL_PARENT(NULL, phalcon_mvc_model_metadata_redis_ce, this_ptr, "reset", &_5, 0); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -114782,11 +113303,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Session, read) { zephir_get_global(&_SESSION, SL("_SESSION")); zephir_fetch_params(1, 1, 0, &key_param); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(&key, key_param); } else { ZEPHIR_INIT_VAR(&key); @@ -114821,11 +113342,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Session, write) { zephir_get_global(&_SESSION, SL("_SESSION")); zephir_fetch_params(1, 2, 0, &key_param, &data); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(&key, key_param); } else { ZEPHIR_INIT_VAR(&key); @@ -114932,11 +113453,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Xcache, read) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &key_param); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(&key, key_param); } else { ZEPHIR_INIT_VAR(&key); @@ -114947,7 +113468,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Xcache, read) { zephir_read_property(&_0, this_ptr, SL("_prefix"), PH_NOISY_CC | PH_READONLY); ZEPHIR_INIT_VAR(&_1); ZEPHIR_CONCAT_SVV(&_1, "$PMM$", &_0, &key); - ZEPHIR_CALL_FUNCTION(&data, "xcache_get", NULL, 87, &_1); + ZEPHIR_CALL_FUNCTION(&data, "xcache_get", NULL, 79, &_1); zephir_check_call_status(); if (Z_TYPE_P(&data) == IS_ARRAY) { RETURN_CCTOR(data); @@ -114972,11 +113493,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Xcache, write) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &key_param, &data); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(&key, key_param); } else { ZEPHIR_INIT_VAR(&key); @@ -114988,7 +113509,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Xcache, write) { ZEPHIR_INIT_VAR(&_1); ZEPHIR_CONCAT_SVV(&_1, "$PMM$", &_0, &key); zephir_read_property(&_2, this_ptr, SL("_ttl"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(NULL, "xcache_set", NULL, 88, &_1, data, &_2); + ZEPHIR_CALL_FUNCTION(NULL, "xcache_set", NULL, 80, &_1, data, &_2); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -115117,7 +113638,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Strategy_Annotations, getMetaData) object_init_ex(&_1$$4, phalcon_mvc_model_exception_ce); ZEPHIR_INIT_VAR(&_2$$4); ZEPHIR_CONCAT_SV(&_2$$4, "No annotations were found in class ", &className); - ZEPHIR_CALL_METHOD(NULL, &_1$$4, "__construct", NULL, 9, &_2$$4); + ZEPHIR_CALL_METHOD(NULL, &_1$$4, "__construct", NULL, 4, &_2$$4); zephir_check_call_status(); zephir_throw_exception_debug(&_1$$4, "phalcon/mvc/model/metadata/strategy/annotations.zep", 51 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -115130,7 +113651,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Strategy_Annotations, getMetaData) object_init_ex(&_3$$5, phalcon_mvc_model_exception_ce); ZEPHIR_INIT_VAR(&_4$$5); ZEPHIR_CONCAT_SV(&_4$$5, "No properties with annotations were found in class ", &className); - ZEPHIR_CALL_METHOD(NULL, &_3$$5, "__construct", NULL, 9, &_4$$5); + ZEPHIR_CALL_METHOD(NULL, &_3$$5, "__construct", NULL, 4, &_4$$5); zephir_check_call_status(); zephir_throw_exception_debug(&_3$$5, "phalcon/mvc/model/metadata/strategy/annotations.zep", 60 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -115365,7 +113886,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Strategy_Annotations, getColumnMaps object_init_ex(&_1$$4, phalcon_mvc_model_exception_ce); ZEPHIR_INIT_VAR(&_2$$4); ZEPHIR_CONCAT_SV(&_2$$4, "No annotations were found in class ", &className); - ZEPHIR_CALL_METHOD(NULL, &_1$$4, "__construct", NULL, 9, &_2$$4); + ZEPHIR_CALL_METHOD(NULL, &_1$$4, "__construct", NULL, 4, &_2$$4); zephir_check_call_status(); zephir_throw_exception_debug(&_1$$4, "phalcon/mvc/model/metadata/strategy/annotations.zep", 217 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -115378,7 +113899,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Strategy_Annotations, getColumnMaps object_init_ex(&_3$$5, phalcon_mvc_model_exception_ce); ZEPHIR_INIT_VAR(&_4$$5); ZEPHIR_CONCAT_SV(&_4$$5, "No properties with annotations were found in class ", &className); - ZEPHIR_CALL_METHOD(NULL, &_3$$5, "__construct", NULL, 9, &_4$$5); + ZEPHIR_CALL_METHOD(NULL, &_3$$5, "__construct", NULL, 4, &_4$$5); zephir_check_call_status(); zephir_throw_exception_debug(&_3$$5, "phalcon/mvc/model/metadata/strategy/annotations.zep", 225 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -115524,7 +114045,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Strategy_Introspection, getMetaData zephir_get_class(&_2$$3, model, 0 TSRMLS_CC); ZEPHIR_INIT_VAR(&_3$$3); ZEPHIR_CONCAT_SVSV(&_3$$3, "Table '", &completeTable, "' doesn't exist in database when dumping meta-data for ", &_2$$3); - ZEPHIR_CALL_METHOD(NULL, &_1$$3, "__construct", NULL, 9, &_3$$3); + ZEPHIR_CALL_METHOD(NULL, &_1$$3, "__construct", NULL, 4, &_3$$3); zephir_check_call_status(); zephir_throw_exception_debug(&_1$$3, "phalcon/mvc/model/metadata/strategy/introspection.zep", 68 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -115545,7 +114066,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Strategy_Introspection, getMetaData zephir_get_class(&_5$$6, model, 0 TSRMLS_CC); ZEPHIR_INIT_VAR(&_6$$6); ZEPHIR_CONCAT_SVSV(&_6$$6, "Cannot obtain table columns for the mapped source '", &completeTable, "' used in model ", &_5$$6); - ZEPHIR_CALL_METHOD(NULL, &_4$$6, "__construct", NULL, 9, &_6$$6); + ZEPHIR_CALL_METHOD(NULL, &_4$$6, "__construct", NULL, 4, &_6$$6); zephir_check_call_status(); zephir_throw_exception_debug(&_4$$6, "phalcon/mvc/model/metadata/strategy/introspection.zep", 88 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -116111,11 +114632,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, join) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 3, &model_param, &conditions, &alias, &type); - if (unlikely(Z_TYPE_P(model_param) != IS_STRING && Z_TYPE_P(model_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(model_param) != IS_STRING && Z_TYPE_P(model_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'model' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(model_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(model_param) == IS_STRING)) { zephir_get_strval(&model, model_param); } else { ZEPHIR_INIT_VAR(&model); @@ -116163,11 +114684,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, innerJoin) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &model_param, &conditions, &alias); - if (unlikely(Z_TYPE_P(model_param) != IS_STRING && Z_TYPE_P(model_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(model_param) != IS_STRING && Z_TYPE_P(model_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'model' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(model_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(model_param) == IS_STRING)) { zephir_get_strval(&model, model_param); } else { ZEPHIR_INIT_VAR(&model); @@ -116213,11 +114734,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, leftJoin) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &model_param, &conditions, &alias); - if (unlikely(Z_TYPE_P(model_param) != IS_STRING && Z_TYPE_P(model_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(model_param) != IS_STRING && Z_TYPE_P(model_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'model' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(model_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(model_param) == IS_STRING)) { zephir_get_strval(&model, model_param); } else { ZEPHIR_INIT_VAR(&model); @@ -116263,11 +114784,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, rightJoin) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &model_param, &conditions, &alias); - if (unlikely(Z_TYPE_P(model_param) != IS_STRING && Z_TYPE_P(model_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(model_param) != IS_STRING && Z_TYPE_P(model_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'model' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(model_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(model_param) == IS_STRING)) { zephir_get_strval(&model, model_param); } else { ZEPHIR_INIT_VAR(&model); @@ -116374,11 +114895,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, andWhere) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &conditions_param, &bindParams, &bindTypes); - if (unlikely(Z_TYPE_P(conditions_param) != IS_STRING && Z_TYPE_P(conditions_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(conditions_param) != IS_STRING && Z_TYPE_P(conditions_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'conditions' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(conditions_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(conditions_param) == IS_STRING)) { zephir_get_strval(&conditions, conditions_param); } else { ZEPHIR_INIT_VAR(&conditions); @@ -116424,11 +114945,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, orWhere) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &conditions_param, &bindParams, &bindTypes); - if (unlikely(Z_TYPE_P(conditions_param) != IS_STRING && Z_TYPE_P(conditions_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(conditions_param) != IS_STRING && Z_TYPE_P(conditions_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'conditions' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(conditions_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(conditions_param) == IS_STRING)) { zephir_get_strval(&conditions, conditions_param); } else { ZEPHIR_INIT_VAR(&conditions); @@ -116485,11 +115006,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, betweenWhere) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 1, &expr_param, &minimum, &maximum, &operator_param); - if (unlikely(Z_TYPE_P(expr_param) != IS_STRING && Z_TYPE_P(expr_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(expr_param) != IS_STRING && Z_TYPE_P(expr_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'expr' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(expr_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(expr_param) == IS_STRING)) { zephir_get_strval(&expr, expr_param); } else { ZEPHIR_INIT_VAR(&expr); @@ -116499,11 +115020,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, betweenWhere) { ZEPHIR_INIT_VAR(&operator); ZVAL_STRING(&operator, "and"); } else { - if (unlikely(Z_TYPE_P(operator_param) != IS_STRING && Z_TYPE_P(operator_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(operator_param) != IS_STRING && Z_TYPE_P(operator_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'operator' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(operator_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(operator_param) == IS_STRING)) { zephir_get_strval(&operator, operator_param); } else { ZEPHIR_INIT_VAR(&operator); @@ -116521,9 +115042,9 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, betweenWhere) { object_init_ex(&_1$$3, phalcon_mvc_model_exception_ce); ZEPHIR_INIT_VAR(&_2$$3); ZVAL_STRING(&_2$$3, "Operator % is not available."); - ZEPHIR_CALL_FUNCTION(&_3$$3, "sprintf", NULL, 194, &_2$$3, &operator); + ZEPHIR_CALL_FUNCTION(&_3$$3, "sprintf", NULL, 176, &_2$$3, &operator); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, &_1$$3, "__construct", NULL, 9, &_3$$3); + ZEPHIR_CALL_METHOD(NULL, &_1$$3, "__construct", NULL, 4, &_3$$3); zephir_check_call_status(); zephir_throw_exception_debug(&_1$$3, "phalcon/mvc/model/query/builder.zep", 689 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -116583,11 +115104,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, notBetweenWhere) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 1, &expr_param, &minimum, &maximum, &operator_param); - if (unlikely(Z_TYPE_P(expr_param) != IS_STRING && Z_TYPE_P(expr_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(expr_param) != IS_STRING && Z_TYPE_P(expr_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'expr' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(expr_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(expr_param) == IS_STRING)) { zephir_get_strval(&expr, expr_param); } else { ZEPHIR_INIT_VAR(&expr); @@ -116597,11 +115118,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, notBetweenWhere) { ZEPHIR_INIT_VAR(&operator); ZVAL_STRING(&operator, "and"); } else { - if (unlikely(Z_TYPE_P(operator_param) != IS_STRING && Z_TYPE_P(operator_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(operator_param) != IS_STRING && Z_TYPE_P(operator_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'operator' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(operator_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(operator_param) == IS_STRING)) { zephir_get_strval(&operator, operator_param); } else { ZEPHIR_INIT_VAR(&operator); @@ -116619,9 +115140,9 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, notBetweenWhere) { object_init_ex(&_1$$3, phalcon_mvc_model_exception_ce); ZEPHIR_INIT_VAR(&_2$$3); ZVAL_STRING(&_2$$3, "Operator % is not available."); - ZEPHIR_CALL_FUNCTION(&_3$$3, "sprintf", NULL, 194, &_2$$3, &operator); + ZEPHIR_CALL_FUNCTION(&_3$$3, "sprintf", NULL, 176, &_2$$3, &operator); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, &_1$$3, "__construct", NULL, 9, &_3$$3); + ZEPHIR_CALL_METHOD(NULL, &_1$$3, "__construct", NULL, 4, &_3$$3); zephir_check_call_status(); zephir_throw_exception_debug(&_1$$3, "phalcon/mvc/model/query/builder.zep", 732 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -116686,11 +115207,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, inWhere) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 1, &expr_param, &values_param, &operator_param); - if (unlikely(Z_TYPE_P(expr_param) != IS_STRING && Z_TYPE_P(expr_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(expr_param) != IS_STRING && Z_TYPE_P(expr_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'expr' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(expr_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(expr_param) == IS_STRING)) { zephir_get_strval(&expr, expr_param); } else { ZEPHIR_INIT_VAR(&expr); @@ -116701,11 +115222,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, inWhere) { ZEPHIR_INIT_VAR(&operator); ZVAL_STRING(&operator, "and"); } else { - if (unlikely(Z_TYPE_P(operator_param) != IS_STRING && Z_TYPE_P(operator_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(operator_param) != IS_STRING && Z_TYPE_P(operator_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'operator' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(operator_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(operator_param) == IS_STRING)) { zephir_get_strval(&operator, operator_param); } else { ZEPHIR_INIT_VAR(&operator); @@ -116723,9 +115244,9 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, inWhere) { object_init_ex(&_1$$3, phalcon_mvc_model_exception_ce); ZEPHIR_INIT_VAR(&_2$$3); ZVAL_STRING(&_2$$3, "Operator % is not available."); - ZEPHIR_CALL_FUNCTION(&_3$$3, "sprintf", NULL, 194, &_2$$3, &operator); + ZEPHIR_CALL_FUNCTION(&_3$$3, "sprintf", NULL, 176, &_2$$3, &operator); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, &_1$$3, "__construct", NULL, 9, &_3$$3); + ZEPHIR_CALL_METHOD(NULL, &_1$$3, "__construct", NULL, 4, &_3$$3); zephir_check_call_status(); zephir_throw_exception_debug(&_1$$3, "phalcon/mvc/model/query/builder.zep", 775 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -116811,11 +115332,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, notInWhere) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 1, &expr_param, &values_param, &operator_param); - if (unlikely(Z_TYPE_P(expr_param) != IS_STRING && Z_TYPE_P(expr_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(expr_param) != IS_STRING && Z_TYPE_P(expr_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'expr' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(expr_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(expr_param) == IS_STRING)) { zephir_get_strval(&expr, expr_param); } else { ZEPHIR_INIT_VAR(&expr); @@ -116826,11 +115347,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, notInWhere) { ZEPHIR_INIT_VAR(&operator); ZVAL_STRING(&operator, "and"); } else { - if (unlikely(Z_TYPE_P(operator_param) != IS_STRING && Z_TYPE_P(operator_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(operator_param) != IS_STRING && Z_TYPE_P(operator_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'operator' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(operator_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(operator_param) == IS_STRING)) { zephir_get_strval(&operator, operator_param); } else { ZEPHIR_INIT_VAR(&operator); @@ -116848,9 +115369,9 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, notInWhere) { object_init_ex(&_1$$3, phalcon_mvc_model_exception_ce); ZEPHIR_INIT_VAR(&_2$$3); ZVAL_STRING(&_2$$3, "Operator % is not available."); - ZEPHIR_CALL_FUNCTION(&_3$$3, "sprintf", NULL, 194, &_2$$3, &operator); + ZEPHIR_CALL_FUNCTION(&_3$$3, "sprintf", NULL, 176, &_2$$3, &operator); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, &_1$$3, "__construct", NULL, 9, &_3$$3); + ZEPHIR_CALL_METHOD(NULL, &_1$$3, "__construct", NULL, 4, &_3$$3); zephir_check_call_status(); zephir_throw_exception_debug(&_1$$3, "phalcon/mvc/model/query/builder.zep", 824 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -116948,11 +115469,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, having) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &having_param); - if (unlikely(Z_TYPE_P(having_param) != IS_STRING && Z_TYPE_P(having_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(having_param) != IS_STRING && Z_TYPE_P(having_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'having' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(having_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(having_param) == IS_STRING)) { zephir_get_strval(&having, having_param); } else { ZEPHIR_INIT_VAR(&having); @@ -117022,10 +115543,10 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, limit) { ZVAL_LONG(&_0, limit); - ZEPHIR_CALL_FUNCTION(&_1, "abs", &_2, 199, &_0); + ZEPHIR_CALL_FUNCTION(&_1, "abs", &_2, 181, &_0); zephir_check_call_status(); limit = zephir_get_numberval(&_1); - if (unlikely(limit == 0)) { + if (UNEXPECTED(limit == 0)) { RETURN_THIS(); } ZEPHIR_INIT_ZVAL_NREF(_0); @@ -117033,7 +115554,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, limit) { zephir_update_property_zval(this_ptr, SL("_limit"), &_0); if (zephir_is_numeric(offset)) { ZVAL_LONG(&_3$$4, zephir_get_intval(offset)); - ZEPHIR_CALL_FUNCTION(&_4$$4, "abs", &_2, 199, &_3$$4); + ZEPHIR_CALL_FUNCTION(&_4$$4, "abs", &_2, 181, &_3$$4); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_offset"), &_4$$4); } @@ -117211,7 +115732,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, getPhql) { ZEPHIR_OBS_VAR(&dependencyInjector); zephir_read_property(&dependencyInjector, this_ptr, SL("_dependencyInjector"), PH_NOISY_CC); if (Z_TYPE_P(&dependencyInjector) != IS_OBJECT) { - ZEPHIR_CALL_CE_STATIC(&dependencyInjector, phalcon_di_ce, "getdefault", &_0, 1); + ZEPHIR_CALL_CE_STATIC(&dependencyInjector, phalcon_di_ce, "getdefault", &_0, 0); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_dependencyInjector"), &dependencyInjector); } @@ -117274,7 +115795,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, getPhql) { object_init_ex(&_5$$17, phalcon_mvc_model_exception_ce); ZEPHIR_INIT_VAR(&_6$$17); ZEPHIR_CONCAT_SVS(&_6$$17, "Column '", &firstPrimaryKey, "' isn't part of the column map"); - ZEPHIR_CALL_METHOD(NULL, &_5$$17, "__construct", NULL, 9, &_6$$17); + ZEPHIR_CALL_METHOD(NULL, &_5$$17, "__construct", NULL, 4, &_6$$17); zephir_check_call_status(); zephir_throw_exception_debug(&_5$$17, "phalcon/mvc/model/query/builder.zep", 1094 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -117283,9 +115804,9 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, getPhql) { } else { ZEPHIR_CPY_WRT(&attributeField, &firstPrimaryKey); } - ZEPHIR_CALL_METHOD(&_7$$13, this_ptr, "autoescape", &_8, 370, &model); + ZEPHIR_CALL_METHOD(&_7$$13, this_ptr, "autoescape", &_8, 337, &model); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_9$$13, this_ptr, "autoescape", &_8, 370, &attributeField); + ZEPHIR_CALL_METHOD(&_9$$13, this_ptr, "autoescape", &_8, 337, &attributeField); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_10$$13); ZEPHIR_CONCAT_VSVSV(&_10$$13, &_7$$13, ".", &_9$$13, " = ", &conditions); @@ -117335,7 +115856,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, getPhql) { if (Z_TYPE_P(&columnAlias) == IS_LONG) { zephir_array_append(&selectedColumns, &column, PH_SEPARATE, "phalcon/mvc/model/query/builder.zep", 1135); } else { - ZEPHIR_CALL_METHOD(&_15$$28, this_ptr, "autoescape", &_8, 370, &columnAlias); + ZEPHIR_CALL_METHOD(&_15$$28, this_ptr, "autoescape", &_8, 337, &columnAlias); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_16$$28); ZEPHIR_CONCAT_VSV(&_16$$28, &column, " AS ", &_15$$28); @@ -117367,11 +115888,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, getPhql) { ZVAL_COPY(&model, _18$$31); ZEPHIR_INIT_NVAR(&selectedColumn); if (Z_TYPE_P(&modelColumnAlias) == IS_LONG) { - ZEPHIR_CALL_METHOD(&_21$$33, this_ptr, "autoescape", &_8, 370, &model); + ZEPHIR_CALL_METHOD(&_21$$33, this_ptr, "autoescape", &_8, 337, &model); zephir_check_call_status(); ZEPHIR_CONCAT_VS(&selectedColumn, &_21$$33, ".*"); } else { - ZEPHIR_CALL_METHOD(&_22$$34, this_ptr, "autoescape", &_8, 370, &modelColumnAlias); + ZEPHIR_CALL_METHOD(&_22$$34, this_ptr, "autoescape", &_8, 337, &modelColumnAlias); zephir_check_call_status(); ZEPHIR_CONCAT_VS(&selectedColumn, &_22$$34, ".*"); } @@ -117383,7 +115904,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, getPhql) { zephir_fast_join_str(&_23$$31, SL(", "), &selectedColumns TSRMLS_CC); zephir_concat_self(&phql, &_23$$31 TSRMLS_CC); } else { - ZEPHIR_CALL_METHOD(&_24$$35, this_ptr, "autoescape", &_8, 370, &models); + ZEPHIR_CALL_METHOD(&_24$$35, this_ptr, "autoescape", &_8, 337, &models); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_25$$35); ZEPHIR_CONCAT_VS(&_25$$35, &_24$$35, ".*"); @@ -117405,14 +115926,14 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, getPhql) { ZEPHIR_INIT_NVAR(&model); ZVAL_COPY(&model, _26$$36); if (Z_TYPE_P(&modelAlias) == IS_STRING) { - ZEPHIR_CALL_METHOD(&_29$$38, this_ptr, "autoescape", &_8, 370, &model); + ZEPHIR_CALL_METHOD(&_29$$38, this_ptr, "autoescape", &_8, 337, &model); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_30$$38, this_ptr, "autoescape", &_8, 370, &modelAlias); + ZEPHIR_CALL_METHOD(&_30$$38, this_ptr, "autoescape", &_8, 337, &modelAlias); zephir_check_call_status(); ZEPHIR_INIT_NVAR(&selectedModel); ZEPHIR_CONCAT_VSV(&selectedModel, &_29$$38, " AS ", &_30$$38); } else { - ZEPHIR_CALL_METHOD(&selectedModel, this_ptr, "autoescape", &_8, 370, &model); + ZEPHIR_CALL_METHOD(&selectedModel, this_ptr, "autoescape", &_8, 337, &model); zephir_check_call_status(); } zephir_array_append(&selectedModels, &selectedModel, PH_SEPARATE, "phalcon/mvc/model/query/builder.zep", 1184); @@ -117425,7 +115946,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, getPhql) { ZEPHIR_CONCAT_SV(&_32$$36, " FROM ", &_31$$36); zephir_concat_self(&phql, &_32$$36 TSRMLS_CC); } else { - ZEPHIR_CALL_METHOD(&_33$$40, this_ptr, "autoescape", &_8, 370, &models); + ZEPHIR_CALL_METHOD(&_33$$40, this_ptr, "autoescape", &_8, 337, &models); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_34$$40); ZEPHIR_CONCAT_SV(&_34$$40, " FROM ", &_33$$40); @@ -117448,20 +115969,20 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, getPhql) { ZEPHIR_OBS_NVAR(&joinType); zephir_array_fetch_long(&joinType, &join, 3, PH_NOISY, "phalcon/mvc/model/query/builder.zep", 1219 TSRMLS_CC); if (zephir_is_true(&joinType)) { - ZEPHIR_CALL_METHOD(&_36$$43, this_ptr, "autoescape", &_8, 370, &joinModel); + ZEPHIR_CALL_METHOD(&_36$$43, this_ptr, "autoescape", &_8, 337, &joinModel); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_37$$43); ZEPHIR_CONCAT_SVSV(&_37$$43, " ", &joinType, " JOIN ", &_36$$43); zephir_concat_self(&phql, &_37$$43 TSRMLS_CC); } else { - ZEPHIR_CALL_METHOD(&_38$$44, this_ptr, "autoescape", &_8, 370, &joinModel); + ZEPHIR_CALL_METHOD(&_38$$44, this_ptr, "autoescape", &_8, 337, &joinModel); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_39$$44); ZEPHIR_CONCAT_SV(&_39$$44, " JOIN ", &_38$$44); zephir_concat_self(&phql, &_39$$44 TSRMLS_CC); } if (zephir_is_true(&joinAlias)) { - ZEPHIR_CALL_METHOD(&_40$$45, this_ptr, "autoescape", &_8, 370, &joinAlias); + ZEPHIR_CALL_METHOD(&_40$$45, this_ptr, "autoescape", &_8, 337, &joinAlias); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_41$$45); ZEPHIR_CONCAT_SV(&_41$$45, " AS ", &_40$$45); @@ -117506,7 +116027,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, getPhql) { { ZEPHIR_INIT_NVAR(&groupItem); ZVAL_COPY(&groupItem, _48$$49); - ZEPHIR_CALL_METHOD(&_49$$52, this_ptr, "autoescape", &_8, 370, &groupItem); + ZEPHIR_CALL_METHOD(&_49$$52, this_ptr, "autoescape", &_8, 337, &groupItem); zephir_check_call_status(); zephir_array_append(&groupItems, &_49$$52, PH_SEPARATE, "phalcon/mvc/model/query/builder.zep", 1268); } ZEND_HASH_FOREACH_END(); @@ -117537,7 +116058,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, getPhql) { { ZEPHIR_INIT_NVAR(&orderItem); ZVAL_COPY(&orderItem, _53$$56); - ZEPHIR_CALL_METHOD(&_54$$57, this_ptr, "autoescape", &_8, 370, &orderItem); + ZEPHIR_CALL_METHOD(&_54$$57, this_ptr, "autoescape", &_8, 337, &orderItem); zephir_check_call_status(); zephir_array_append(&orderItems, &_54$$57, PH_SEPARATE, "phalcon/mvc/model/query/builder.zep", 1289); } ZEND_HASH_FOREACH_END(); @@ -117584,7 +116105,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, getPhql) { if (zephir_is_numeric(&number)) { zephir_concat_self_str(&phql, SL(" LIMIT :APL0:") TSRMLS_CC); ZVAL_LONG(&_58$$67, 10); - ZEPHIR_CALL_FUNCTION(&_59$$67, "intval", &_60, 36, &number, &_58$$67); + ZEPHIR_CALL_FUNCTION(&_59$$67, "intval", &_60, 30, &number, &_58$$67); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_61$$67); ZVAL_STRING(&_61$$67, "APL0"); @@ -117597,7 +116118,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, getPhql) { if (zephir_is_numeric(&offset)) { zephir_concat_self_str(&phql, SL(" OFFSET :APL1:") TSRMLS_CC); ZVAL_LONG(&_64$$68, 10); - ZEPHIR_CALL_FUNCTION(&_65$$68, "intval", &_60, 36, &offset, &_64$$68); + ZEPHIR_CALL_FUNCTION(&_65$$68, "intval", &_60, 30, &offset, &_64$$68); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_66$$68); ZVAL_STRING(&_66$$68, "APL1"); @@ -117641,7 +116162,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, getQuery) { ZEPHIR_MM_GROW(); - ZEPHIR_CALL_METHOD(&phql, this_ptr, "getphql", NULL, 371); + ZEPHIR_CALL_METHOD(&phql, this_ptr, "getphql", NULL, 338); zephir_check_call_status(); zephir_read_property(&_0, this_ptr, SL("_dependencyInjector"), PH_NOISY_CC | PH_READONLY); ZEPHIR_CPY_WRT(&dependencyInjector, &_0); @@ -117820,11 +116341,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Lang, parsePHQL) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &phql_param); - if (unlikely(Z_TYPE_P(phql_param) != IS_STRING && Z_TYPE_P(phql_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(phql_param) != IS_STRING && Z_TYPE_P(phql_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'phql' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(phql_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(phql_param) == IS_STRING)) { zephir_get_strval(&phql, phql_param); } else { ZEPHIR_INIT_VAR(&phql); @@ -129729,7 +128250,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Resultset_Complex, __construct) { zephir_update_property_zval(this_ptr, SL("_columnTypes"), columnTypes); - ZEPHIR_CALL_PARENT(NULL, phalcon_mvc_model_resultset_complex_ce, this_ptr, "__construct", &_0, 372, result, cache); + ZEPHIR_CALL_PARENT(NULL, phalcon_mvc_model_resultset_complex_ce, this_ptr, "__construct", &_0, 0, result, cache); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -129952,7 +128473,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Resultset_Complex, toArray) { ZEPHIR_INIT_VAR(&records); array_init(&records); - ZEPHIR_CALL_METHOD(NULL, this_ptr, "rewind", NULL, 75); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "rewind", NULL, 69); zephir_check_call_status(); while (1) { ZEPHIR_CALL_METHOD(&_0, this_ptr, "valid", &_1, 0); @@ -129960,7 +128481,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Resultset_Complex, toArray) { if (!(zephir_is_true(&_0))) { break; } - ZEPHIR_CALL_METHOD(¤t, this_ptr, "current", &_2, 373); + ZEPHIR_CALL_METHOD(¤t, this_ptr, "current", &_2, 339); zephir_check_call_status(); zephir_array_append(&records, ¤t, PH_SEPARATE, "phalcon/mvc/model/resultset/complex.zep", 263); ZEPHIR_CALL_METHOD(NULL, this_ptr, "next", &_3, 0); @@ -130000,7 +128521,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Resultset_Complex, serialize) { zephir_array_update_string(&_0, SL("rows"), &records, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_0, SL("columnTypes"), &columnTypes, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_0, SL("hydrateMode"), &hydrateMode, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_FUNCTION(&serialized, "serialize", NULL, 65, &_0); + ZEPHIR_CALL_FUNCTION(&serialized, "serialize", NULL, 59, &_0); zephir_check_call_status(); RETURN_CCTOR(serialized); @@ -130027,11 +128548,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Resultset_Complex, unserialize) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &data_param); - if (unlikely(Z_TYPE_P(data_param) != IS_STRING && Z_TYPE_P(data_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(data_param) != IS_STRING && Z_TYPE_P(data_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'data' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(data_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(data_param) == IS_STRING)) { zephir_get_strval(&data, data_param); } else { ZEPHIR_INIT_VAR(&data); @@ -130044,7 +128565,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Resultset_Complex, unserialize) { } else { zephir_update_property_zval(this_ptr, SL("_disableHydration"), &__$false); } - ZEPHIR_CALL_FUNCTION(&resultset, "unserialize", NULL, 66, &data); + ZEPHIR_CALL_FUNCTION(&resultset, "unserialize", NULL, 60, &data); zephir_check_call_status(); if (Z_TYPE_P(&resultset) != IS_ARRAY) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Invalid serialization data", "phalcon/mvc/model/resultset/complex.zep", 310); @@ -130120,7 +128641,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Resultset_Simple, __construct) { zephir_update_property_zval(this_ptr, SL("_model"), model); zephir_update_property_zval(this_ptr, SL("_columnMap"), columnMap); zephir_update_property_zval(this_ptr, SL("_keepSnapshots"), keepSnapshots); - ZEPHIR_CALL_PARENT(NULL, phalcon_mvc_model_resultset_simple_ce, this_ptr, "__construct", &_0, 372, result, cache); + ZEPHIR_CALL_PARENT(NULL, phalcon_mvc_model_resultset_simple_ce, this_ptr, "__construct", &_0, 0, result, cache); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -130194,12 +128715,12 @@ static PHP_METHOD(Phalcon_Mvc_Model_Resultset_Simple, current) { zephir_read_property(&_7$$9, this_ptr, SL("_model"), PH_NOISY_CC | PH_READONLY); zephir_read_property(&_8$$9, this_ptr, SL("_keepSnapshots"), PH_NOISY_CC | PH_READONLY); ZVAL_LONG(&_9$$9, 0); - ZEPHIR_CALL_CE_STATIC(&activeRow, phalcon_mvc_model_ce, "cloneresultmap", &_6, 374, &_7$$9, &row, &columnMap, &_9$$9, &_8$$9); + ZEPHIR_CALL_CE_STATIC(&activeRow, phalcon_mvc_model_ce, "cloneresultmap", &_6, 0, &_7$$9, &row, &columnMap, &_9$$9, &_8$$9); zephir_check_call_status(); } break; } - ZEPHIR_CALL_CE_STATIC(&activeRow, phalcon_mvc_model_ce, "cloneresultmaphydrate", &_10, 375, &row, &columnMap, &hydrateMode); + ZEPHIR_CALL_CE_STATIC(&activeRow, phalcon_mvc_model_ce, "cloneresultmaphydrate", &_10, 0, &row, &columnMap, &hydrateMode); zephir_check_call_status(); break; } while(0); @@ -130293,7 +128814,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Resultset_Simple, toArray) { object_init_ex(&_5$$10, phalcon_mvc_model_exception_ce); ZEPHIR_INIT_LNVAR(_6$$10); ZEPHIR_CONCAT_SVS(&_6$$10, "Column '", &key, "' is not part of the column map"); - ZEPHIR_CALL_METHOD(NULL, &_5$$10, "__construct", &_7, 9, &_6$$10); + ZEPHIR_CALL_METHOD(NULL, &_5$$10, "__construct", &_7, 4, &_6$$10); zephir_check_call_status(); zephir_throw_exception_debug(&_5$$10, "phalcon/mvc/model/resultset/simple.zep", 199 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -130306,7 +128827,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Resultset_Simple, toArray) { object_init_ex(&_8$$12, phalcon_mvc_model_exception_ce); ZEPHIR_INIT_LNVAR(_9$$12); ZEPHIR_CONCAT_SVS(&_9$$12, "Column '", &key, "' is not part of the column map"); - ZEPHIR_CALL_METHOD(NULL, &_8$$12, "__construct", &_7, 9, &_9$$12); + ZEPHIR_CALL_METHOD(NULL, &_8$$12, "__construct", &_7, 4, &_9$$12); zephir_check_call_status(); zephir_throw_exception_debug(&_8$$12, "phalcon/mvc/model/resultset/simple.zep", 205 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -130362,7 +128883,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Resultset_Simple, serialize) { ZEPHIR_OBS_NVAR(&_1); zephir_read_property(&_1, this_ptr, SL("_keepSnapshots"), PH_NOISY_CC); zephir_array_update_string(&_0, SL("keepSnapshots"), &_1, PH_COPY | PH_SEPARATE); - ZEPHIR_RETURN_CALL_FUNCTION("serialize", NULL, 65, &_0); + ZEPHIR_RETURN_CALL_FUNCTION("serialize", NULL, 59, &_0); zephir_check_call_status(); RETURN_MM(); @@ -130389,11 +128910,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Resultset_Simple, unserialize) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &data_param); - if (unlikely(Z_TYPE_P(data_param) != IS_STRING && Z_TYPE_P(data_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(data_param) != IS_STRING && Z_TYPE_P(data_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'data' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(data_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(data_param) == IS_STRING)) { zephir_get_strval(&data, data_param); } else { ZEPHIR_INIT_VAR(&data); @@ -130401,7 +128922,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Resultset_Simple, unserialize) { } - ZEPHIR_CALL_FUNCTION(&resultset, "unserialize", NULL, 66, &data); + ZEPHIR_CALL_FUNCTION(&resultset, "unserialize", NULL, 60, &data); zephir_check_call_status(); if (Z_TYPE_P(&resultset) != IS_ARRAY) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Invalid serialization data", "phalcon/mvc/model/resultset/simple.zep", 252); @@ -130480,11 +129001,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Transaction_Failed, __construct) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &message_param, &record); - if (unlikely(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'message' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(message_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(message_param) == IS_STRING)) { zephir_get_strval(&message, message_param); } else { ZEPHIR_INIT_VAR(&message); @@ -130589,7 +129110,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Transaction_Manager, __construct) { if (!(zephir_is_true(dependencyInjector))) { - ZEPHIR_CALL_CE_STATIC(dependencyInjector, phalcon_di_ce, "getdefault", &_0, 1); + ZEPHIR_CALL_CE_STATIC(dependencyInjector, phalcon_di_ce, "getdefault", &_0, 0); zephir_check_call_status(); } zephir_update_property_zval(this_ptr, SL("_dependencyInjector"), dependencyInjector); @@ -130636,11 +129157,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Transaction_Manager, setDbService) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &service_param); - if (unlikely(Z_TYPE_P(service_param) != IS_STRING && Z_TYPE_P(service_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(service_param) != IS_STRING && Z_TYPE_P(service_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'service' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(service_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(service_param) == IS_STRING)) { zephir_get_strval(&service, service_param); } else { ZEPHIR_INIT_VAR(&service); @@ -130743,7 +129264,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Transaction_Manager, get) { ZEPHIR_INIT_VAR(&_3$$4); ZVAL_STRING(&_3$$4, "rollbackPendent"); zephir_array_fast_append(&_2$$4, &_3$$4); - ZEPHIR_CALL_FUNCTION(NULL, "register_shutdown_function", NULL, 378, &_2$$4); + ZEPHIR_CALL_FUNCTION(NULL, "register_shutdown_function", NULL, 342, &_2$$4); zephir_check_call_status(); } if (1) { @@ -130822,9 +129343,9 @@ static PHP_METHOD(Phalcon_Mvc_Model_Transaction_Manager, getOrCreateTransaction) } else { ZVAL_BOOL(&_4, 0); } - ZEPHIR_CALL_METHOD(NULL, &transaction, "__construct", NULL, 379, &dependencyInjector, &_4, &_3); + ZEPHIR_CALL_METHOD(NULL, &transaction, "__construct", NULL, 343, &dependencyInjector, &_4, &_3); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, &transaction, "settransactionmanager", NULL, 380, this_ptr); + ZEPHIR_CALL_METHOD(NULL, &transaction, "settransactionmanager", NULL, 344, this_ptr); zephir_check_call_status(); zephir_update_property_array_append(this_ptr, SL("_transactions"), &transaction TSRMLS_CC); RETURN_ON_FAILURE(zephir_property_incr(this_ptr, SL("_number") TSRMLS_CC)); @@ -131138,7 +129659,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Validator_Email, validate) { RETURN_MM_BOOL(1); } ZVAL_LONG(&_3, 274); - ZEPHIR_CALL_FUNCTION(&_4, "filter_var", NULL, 198, &value, &_3); + ZEPHIR_CALL_FUNCTION(&_4, "filter_var", NULL, 180, &value, &_3); zephir_check_call_status(); if (!(zephir_is_true(&_4))) { ZEPHIR_INIT_VAR(&_5$$5); @@ -131152,7 +129673,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Validator_Email, validate) { ZEPHIR_INIT_VAR(&_6$$5); zephir_create_array(&_6$$5, 1, 0 TSRMLS_CC); zephir_array_update_string(&_6$$5, SL(":field"), &field, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_FUNCTION(&_7$$5, "strtr", NULL, 26, &message, &_6$$5); + ZEPHIR_CALL_FUNCTION(&_7$$5, "strtr", NULL, 21, &message, &_6$$5); zephir_check_call_status(); ZEPHIR_INIT_NVAR(&_5$$5); ZVAL_STRING(&_5$$5, "Email"); @@ -131259,7 +129780,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Validator_Exclusionin, validate) { ZEPHIR_INIT_NVAR(&_4$$7); zephir_fast_join_str(&_4$$7, SL(", "), &domain TSRMLS_CC); zephir_array_update_string(&_5$$7, SL(":domain"), &_4$$7, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_FUNCTION(&_6$$7, "strtr", NULL, 26, &message, &_5$$7); + ZEPHIR_CALL_FUNCTION(&_6$$7, "strtr", NULL, 21, &message, &_5$$7); zephir_check_call_status(); ZEPHIR_INIT_NVAR(&_4$$7); ZVAL_STRING(&_4$$7, "Exclusion"); @@ -131371,7 +129892,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Validator_Inclusionin, validate) { ZEPHIR_CALL_METHOD(&strict, this_ptr, "getoption", NULL, 0, &_5$$7); zephir_check_call_status(); } - ZEPHIR_CALL_FUNCTION(&_6, "in_array", NULL, 381, &value, &domain, &strict); + ZEPHIR_CALL_FUNCTION(&_6, "in_array", NULL, 345, &value, &domain, &strict); zephir_check_call_status(); if (!(zephir_is_true(&_6))) { ZEPHIR_INIT_VAR(&_7$$9); @@ -131388,7 +129909,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Validator_Inclusionin, validate) { ZEPHIR_INIT_NVAR(&_7$$9); zephir_fast_join_str(&_7$$9, SL(", "), &domain TSRMLS_CC); zephir_array_update_string(&_8$$9, SL(":domain"), &_7$$9, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_FUNCTION(&_9$$9, "strtr", NULL, 26, &message, &_8$$9); + ZEPHIR_CALL_FUNCTION(&_9$$9, "strtr", NULL, 21, &message, &_8$$9); zephir_check_call_status(); ZEPHIR_INIT_NVAR(&_7$$9); ZVAL_STRING(&_7$$9, "Inclusion"); @@ -131519,7 +130040,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Validator_Ip, validate) { zephir_bitwise_or_function(&_8, &_7, &allowReserved TSRMLS_CC); zephir_array_update_string(&options, SL("flags"), &_8, PH_COPY | PH_SEPARATE); ZVAL_LONG(&_1, 275); - ZEPHIR_CALL_FUNCTION(&_9, "filter_var", NULL, 198, &value, &_1, &options); + ZEPHIR_CALL_FUNCTION(&_9, "filter_var", NULL, 180, &value, &_1, &options); zephir_check_call_status(); if (!(zephir_is_true(&_9))) { ZEPHIR_INIT_VAR(&_10$$5); @@ -131531,7 +130052,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Validator_Ip, validate) { ZEPHIR_INIT_VAR(&_12$$5); zephir_create_array(&_12$$5, 1, 0 TSRMLS_CC); zephir_array_update_string(&_12$$5, SL(":field"), &field, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_FUNCTION(&_13$$5, "strtr", NULL, 26, &message, &_12$$5); + ZEPHIR_CALL_FUNCTION(&_13$$5, "strtr", NULL, 21, &message, &_12$$5); zephir_check_call_status(); ZEPHIR_INIT_NVAR(&_10$$5); ZVAL_STRING(&_10$$5, "IP"); @@ -131617,7 +130138,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Validator_Numericality, validate) { ZEPHIR_INIT_VAR(&_4$$5); zephir_create_array(&_4$$5, 1, 0 TSRMLS_CC); zephir_array_update_string(&_4$$5, SL(":field"), &field, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_FUNCTION(&_5$$5, "strtr", NULL, 26, &message, &_4$$5); + ZEPHIR_CALL_FUNCTION(&_5$$5, "strtr", NULL, 21, &message, &_4$$5); zephir_check_call_status(); ZEPHIR_INIT_NVAR(&_3$$5); ZVAL_STRING(&_3$$5, "Numericality"); @@ -131699,7 +130220,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Validator_PresenceOf, validate) { ZEPHIR_INIT_VAR(&_4$$4); zephir_create_array(&_4$$4, 1, 0 TSRMLS_CC); zephir_array_update_string(&_4$$4, SL(":field"), &field, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_FUNCTION(&_5$$4, "strtr", NULL, 26, &message, &_4$$4); + ZEPHIR_CALL_FUNCTION(&_5$$4, "strtr", NULL, 21, &message, &_4$$4); zephir_check_call_status(); ZEPHIR_INIT_NVAR(&_3$$4); ZVAL_STRING(&_3$$4, "PresenceOf"); @@ -131812,7 +130333,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Validator_Regex, validate) { ZEPHIR_INIT_VAR(&_6$$8); zephir_create_array(&_6$$8, 1, 0 TSRMLS_CC); zephir_array_update_string(&_6$$8, SL(":field"), &field, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_FUNCTION(&_7$$8, "strtr", NULL, 26, &message, &_6$$8); + ZEPHIR_CALL_FUNCTION(&_7$$8, "strtr", NULL, 21, &message, &_6$$8); zephir_check_call_status(); ZEPHIR_INIT_NVAR(&_5$$8); ZVAL_STRING(&_5$$8, "Regex"); @@ -131914,7 +130435,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Validator_StringLength, validate) { RETURN_MM_BOOL(1); } if ((zephir_function_exists_ex(SL("mb_strlen") TSRMLS_CC) == SUCCESS)) { - ZEPHIR_CALL_FUNCTION(&length, "mb_strlen", NULL, 382, &value); + ZEPHIR_CALL_FUNCTION(&length, "mb_strlen", NULL, 346, &value); zephir_check_call_status(); } else { ZEPHIR_INIT_NVAR(&length); @@ -131938,7 +130459,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Validator_StringLength, validate) { zephir_create_array(&_6$$9, 2, 0 TSRMLS_CC); zephir_array_update_string(&_6$$9, SL(":field"), &field, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_6$$9, SL(":max"), &maximum, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_FUNCTION(&_7$$9, "strtr", &_8, 26, &message, &_6$$9); + ZEPHIR_CALL_FUNCTION(&_7$$9, "strtr", &_8, 21, &message, &_6$$9); zephir_check_call_status(); ZEPHIR_INIT_NVAR(&_5$$9); ZVAL_STRING(&_5$$9, "TooLong"); @@ -131965,7 +130486,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Validator_StringLength, validate) { zephir_create_array(&_11$$12, 2, 0 TSRMLS_CC); zephir_array_update_string(&_11$$12, SL(":field"), &field, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_11$$12, SL(":min"), &minimum, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_FUNCTION(&_12$$12, "strtr", &_8, 26, &message, &_11$$12); + ZEPHIR_CALL_FUNCTION(&_12$$12, "strtr", &_8, 21, &message, &_11$$12); zephir_check_call_status(); ZEPHIR_INIT_NVAR(&_10$$12); ZVAL_STRING(&_10$$12, "TooShort"); @@ -132094,7 +130615,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Validator_Uniqueness, validate) { object_init_ex(&_2$$8, phalcon_mvc_model_exception_ce); ZEPHIR_INIT_LNVAR(_3$$8); ZEPHIR_CONCAT_SVS(&_3$$8, "Column '", &composeField, "' isn't part of the column map"); - ZEPHIR_CALL_METHOD(NULL, &_2$$8, "__construct", &_4, 9, &_3$$8); + ZEPHIR_CALL_METHOD(NULL, &_2$$8, "__construct", &_4, 4, &_3$$8); zephir_check_call_status(); zephir_throw_exception_debug(&_2$$8, "phalcon/mvc/model/validator/uniqueness.zep", 107 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -132109,7 +130630,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Validator_Uniqueness, validate) { object_init_ex(&_5$$10, phalcon_mvc_model_exception_ce); ZEPHIR_INIT_LNVAR(_6$$10); ZEPHIR_CONCAT_SVS(&_6$$10, "Column '", &columnField, "' isn't part of the table columns"); - ZEPHIR_CALL_METHOD(NULL, &_5$$10, "__construct", &_4, 9, &_6$$10); + ZEPHIR_CALL_METHOD(NULL, &_5$$10, "__construct", &_4, 4, &_6$$10); zephir_check_call_status(); zephir_throw_exception_debug(&_5$$10, "phalcon/mvc/model/validator/uniqueness.zep", 117 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -132135,7 +130656,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Validator_Uniqueness, validate) { object_init_ex(&_11$$13, phalcon_mvc_model_exception_ce); ZEPHIR_INIT_VAR(&_12$$13); ZEPHIR_CONCAT_SVS(&_12$$13, "Column '", &field, "' isn't part of the column map"); - ZEPHIR_CALL_METHOD(NULL, &_11$$13, "__construct", &_4, 9, &_12$$13); + ZEPHIR_CALL_METHOD(NULL, &_11$$13, "__construct", &_4, 4, &_12$$13); zephir_check_call_status(); zephir_throw_exception_debug(&_11$$13, "phalcon/mvc/model/validator/uniqueness.zep", 137 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -132150,7 +130671,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Validator_Uniqueness, validate) { object_init_ex(&_13$$15, phalcon_mvc_model_exception_ce); ZEPHIR_INIT_VAR(&_14$$15); ZEPHIR_CONCAT_SVS(&_14$$15, "Column '", &columnField, "' isn't part of the table columns"); - ZEPHIR_CALL_METHOD(NULL, &_13$$15, "__construct", &_4, 9, &_14$$15); + ZEPHIR_CALL_METHOD(NULL, &_13$$15, "__construct", &_4, 4, &_14$$15); zephir_check_call_status(); zephir_throw_exception_debug(&_13$$15, "phalcon/mvc/model/validator/uniqueness.zep", 147 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -132188,7 +130709,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Validator_Uniqueness, validate) { object_init_ex(&_20$$20, phalcon_mvc_model_exception_ce); ZEPHIR_INIT_LNVAR(_21$$20); ZEPHIR_CONCAT_SVS(&_21$$20, "Column '", &primaryField, "' isn't part of the table columns"); - ZEPHIR_CALL_METHOD(NULL, &_20$$20, "__construct", &_4, 9, &_21$$20); + ZEPHIR_CALL_METHOD(NULL, &_20$$20, "__construct", &_4, 4, &_21$$20); zephir_check_call_status(); zephir_throw_exception_debug(&_20$$20, "phalcon/mvc/model/validator/uniqueness.zep", 177 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -132201,7 +130722,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Validator_Uniqueness, validate) { object_init_ex(&_22$$22, phalcon_mvc_model_exception_ce); ZEPHIR_INIT_LNVAR(_23$$22); ZEPHIR_CONCAT_SVS(&_23$$22, "Column '", &primaryField, "' isn't part of the column map"); - ZEPHIR_CALL_METHOD(NULL, &_22$$22, "__construct", &_4, 9, &_23$$22); + ZEPHIR_CALL_METHOD(NULL, &_22$$22, "__construct", &_4, 4, &_23$$22); zephir_check_call_status(); zephir_throw_exception_debug(&_22$$22, "phalcon/mvc/model/validator/uniqueness.zep", 185 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -132259,7 +130780,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Validator_Uniqueness, validate) { ZVAL_STRING(&message, "Value of field: ':field' is already present in another record"); } } - ZEPHIR_CALL_FUNCTION(&_32$$24, "strtr", NULL, 26, &message, &replacePairs); + ZEPHIR_CALL_FUNCTION(&_32$$24, "strtr", NULL, 21, &message, &replacePairs); zephir_check_call_status(); ZEPHIR_INIT_NVAR(&_30$$24); ZVAL_STRING(&_30$$24, "Unique"); @@ -132336,7 +130857,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Validator_Url, validate) { RETURN_MM_BOOL(1); } ZVAL_LONG(&_3, 273); - ZEPHIR_CALL_FUNCTION(&_4, "filter_var", NULL, 198, &value, &_3); + ZEPHIR_CALL_FUNCTION(&_4, "filter_var", NULL, 180, &value, &_3); zephir_check_call_status(); if (!(zephir_is_true(&_4))) { ZEPHIR_INIT_VAR(&_5$$5); @@ -132350,7 +130871,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Validator_Url, validate) { ZEPHIR_INIT_VAR(&_6$$5); zephir_create_array(&_6$$5, 1, 0 TSRMLS_CC); zephir_array_update_string(&_6$$5, SL(":field"), &field, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_FUNCTION(&_7$$5, "strtr", NULL, 26, &message, &_6$$5); + ZEPHIR_CALL_FUNCTION(&_7$$5, "strtr", NULL, 21, &message, &_6$$5); zephir_check_call_status(); ZEPHIR_INIT_NVAR(&_5$$5); ZVAL_STRING(&_5$$5, "Url"); @@ -132403,11 +130924,11 @@ static PHP_METHOD(Phalcon_Mvc_Router_Annotations, addResource) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &handler_param, &prefix_param); - if (unlikely(Z_TYPE_P(handler_param) != IS_STRING && Z_TYPE_P(handler_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(handler_param) != IS_STRING && Z_TYPE_P(handler_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'handler' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(handler_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(handler_param) == IS_STRING)) { zephir_get_strval(&handler, handler_param); } else { ZEPHIR_INIT_VAR(&handler); @@ -132417,11 +130938,11 @@ static PHP_METHOD(Phalcon_Mvc_Router_Annotations, addResource) { ZEPHIR_INIT_VAR(&prefix); ZVAL_STRING(&prefix, ""); } else { - if (unlikely(Z_TYPE_P(prefix_param) != IS_STRING && Z_TYPE_P(prefix_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(prefix_param) != IS_STRING && Z_TYPE_P(prefix_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'prefix' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(prefix_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(prefix_param) == IS_STRING)) { zephir_get_strval(&prefix, prefix_param); } else { ZEPHIR_INIT_VAR(&prefix); @@ -132454,21 +130975,21 @@ static PHP_METHOD(Phalcon_Mvc_Router_Annotations, addModuleResource) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 1, &module_param, &handler_param, &prefix_param); - if (unlikely(Z_TYPE_P(module_param) != IS_STRING && Z_TYPE_P(module_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(module_param) != IS_STRING && Z_TYPE_P(module_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'module' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(module_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(module_param) == IS_STRING)) { zephir_get_strval(&module, module_param); } else { ZEPHIR_INIT_VAR(&module); ZVAL_EMPTY_STRING(&module); } - if (unlikely(Z_TYPE_P(handler_param) != IS_STRING && Z_TYPE_P(handler_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(handler_param) != IS_STRING && Z_TYPE_P(handler_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'handler' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(handler_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(handler_param) == IS_STRING)) { zephir_get_strval(&handler, handler_param); } else { ZEPHIR_INIT_VAR(&handler); @@ -132478,11 +130999,11 @@ static PHP_METHOD(Phalcon_Mvc_Router_Annotations, addModuleResource) { ZEPHIR_INIT_VAR(&prefix); ZVAL_STRING(&prefix, ""); } else { - if (unlikely(Z_TYPE_P(prefix_param) != IS_STRING && Z_TYPE_P(prefix_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(prefix_param) != IS_STRING && Z_TYPE_P(prefix_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'prefix' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(prefix_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(prefix_param) == IS_STRING)) { zephir_get_strval(&prefix, prefix_param); } else { ZEPHIR_INIT_VAR(&prefix); @@ -132546,11 +131067,11 @@ static PHP_METHOD(Phalcon_Mvc_Router_Annotations, handle) { ZEPHIR_INIT_VAR(&uri); ZVAL_STRING(&uri, ""); } else { - if (unlikely(Z_TYPE_P(uri_param) != IS_STRING && Z_TYPE_P(uri_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(uri_param) != IS_STRING && Z_TYPE_P(uri_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'uri' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(uri_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(uri_param) == IS_STRING)) { zephir_get_strval(&uri, uri_param); } else { ZEPHIR_INIT_VAR(&uri); @@ -132675,7 +131196,7 @@ static PHP_METHOD(Phalcon_Mvc_Router_Annotations, handle) { } } ZEND_HASH_FOREACH_END(); ZEPHIR_INIT_NVAR(&scope); - ZEPHIR_CALL_PARENT(NULL, phalcon_mvc_router_annotations_ce, this_ptr, "handle", &_14, 383, &realUri); + ZEPHIR_CALL_PARENT(NULL, phalcon_mvc_router_annotations_ce, this_ptr, "handle", &_14, 0, &realUri); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -132697,11 +131218,11 @@ static PHP_METHOD(Phalcon_Mvc_Router_Annotations, processControllerAnnotation) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &handler_param, &annotation); - if (unlikely(Z_TYPE_P(handler_param) != IS_STRING && Z_TYPE_P(handler_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(handler_param) != IS_STRING && Z_TYPE_P(handler_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'handler' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(handler_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(handler_param) == IS_STRING)) { zephir_get_strval(&handler, handler_param); } else { ZEPHIR_INIT_VAR(&handler); @@ -132761,41 +131282,41 @@ static PHP_METHOD(Phalcon_Mvc_Router_Annotations, processActionAnnotation) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 5, 0, &module_param, &namespaceName_param, &controller_param, &action_param, &annotation); - if (unlikely(Z_TYPE_P(module_param) != IS_STRING && Z_TYPE_P(module_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(module_param) != IS_STRING && Z_TYPE_P(module_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'module' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(module_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(module_param) == IS_STRING)) { zephir_get_strval(&module, module_param); } else { ZEPHIR_INIT_VAR(&module); ZVAL_EMPTY_STRING(&module); } - if (unlikely(Z_TYPE_P(namespaceName_param) != IS_STRING && Z_TYPE_P(namespaceName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(namespaceName_param) != IS_STRING && Z_TYPE_P(namespaceName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'namespaceName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(namespaceName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(namespaceName_param) == IS_STRING)) { zephir_get_strval(&namespaceName, namespaceName_param); } else { ZEPHIR_INIT_VAR(&namespaceName); ZVAL_EMPTY_STRING(&namespaceName); } - if (unlikely(Z_TYPE_P(controller_param) != IS_STRING && Z_TYPE_P(controller_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(controller_param) != IS_STRING && Z_TYPE_P(controller_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'controller' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(controller_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(controller_param) == IS_STRING)) { zephir_get_strval(&controller, controller_param); } else { ZEPHIR_INIT_VAR(&controller); ZVAL_EMPTY_STRING(&controller); } - if (unlikely(Z_TYPE_P(action_param) != IS_STRING && Z_TYPE_P(action_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(action_param) != IS_STRING && Z_TYPE_P(action_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'action' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(action_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(action_param) == IS_STRING)) { zephir_get_strval(&action, action_param); } else { ZEPHIR_INIT_VAR(&action); @@ -132989,11 +131510,11 @@ static PHP_METHOD(Phalcon_Mvc_Router_Annotations, setControllerSuffix) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &controllerSuffix_param); - if (unlikely(Z_TYPE_P(controllerSuffix_param) != IS_STRING && Z_TYPE_P(controllerSuffix_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(controllerSuffix_param) != IS_STRING && Z_TYPE_P(controllerSuffix_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'controllerSuffix' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(controllerSuffix_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(controllerSuffix_param) == IS_STRING)) { zephir_get_strval(&controllerSuffix, controllerSuffix_param); } else { ZEPHIR_INIT_VAR(&controllerSuffix); @@ -133017,11 +131538,11 @@ static PHP_METHOD(Phalcon_Mvc_Router_Annotations, setActionSuffix) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &actionSuffix_param); - if (unlikely(Z_TYPE_P(actionSuffix_param) != IS_STRING && Z_TYPE_P(actionSuffix_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(actionSuffix_param) != IS_STRING && Z_TYPE_P(actionSuffix_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'actionSuffix' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(actionSuffix_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(actionSuffix_param) == IS_STRING)) { zephir_get_strval(&actionSuffix, actionSuffix_param); } else { ZEPHIR_INIT_VAR(&actionSuffix); @@ -133293,11 +131814,11 @@ static PHP_METHOD(Phalcon_Mvc_Router_Group, add) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &pattern_param, &paths, &httpMethods); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(&pattern, pattern_param); } else { ZEPHIR_INIT_VAR(&pattern); @@ -133334,11 +131855,11 @@ static PHP_METHOD(Phalcon_Mvc_Router_Group, addGet) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &pattern_param, &paths); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(&pattern, pattern_param); } else { ZEPHIR_INIT_VAR(&pattern); @@ -133373,11 +131894,11 @@ static PHP_METHOD(Phalcon_Mvc_Router_Group, addPost) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &pattern_param, &paths); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(&pattern, pattern_param); } else { ZEPHIR_INIT_VAR(&pattern); @@ -133412,11 +131933,11 @@ static PHP_METHOD(Phalcon_Mvc_Router_Group, addPut) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &pattern_param, &paths); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(&pattern, pattern_param); } else { ZEPHIR_INIT_VAR(&pattern); @@ -133451,11 +131972,11 @@ static PHP_METHOD(Phalcon_Mvc_Router_Group, addPatch) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &pattern_param, &paths); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(&pattern, pattern_param); } else { ZEPHIR_INIT_VAR(&pattern); @@ -133490,11 +132011,11 @@ static PHP_METHOD(Phalcon_Mvc_Router_Group, addDelete) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &pattern_param, &paths); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(&pattern, pattern_param); } else { ZEPHIR_INIT_VAR(&pattern); @@ -133529,11 +132050,11 @@ static PHP_METHOD(Phalcon_Mvc_Router_Group, addOptions) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &pattern_param, &paths); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(&pattern, pattern_param); } else { ZEPHIR_INIT_VAR(&pattern); @@ -133568,11 +132089,11 @@ static PHP_METHOD(Phalcon_Mvc_Router_Group, addHead) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &pattern_param, &paths); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(&pattern, pattern_param); } else { ZEPHIR_INIT_VAR(&pattern); @@ -133630,11 +132151,11 @@ static PHP_METHOD(Phalcon_Mvc_Router_Group, _addRoute) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &pattern_param, &paths, &httpMethods); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(&pattern, pattern_param); } else { ZEPHIR_INIT_VAR(&pattern); @@ -133654,7 +132175,7 @@ static PHP_METHOD(Phalcon_Mvc_Router_Group, _addRoute) { zephir_read_property(&defaultPaths, this_ptr, SL("_paths"), PH_NOISY_CC); if (Z_TYPE_P(&defaultPaths) == IS_ARRAY) { if (Z_TYPE_P(paths) == IS_STRING) { - ZEPHIR_CALL_CE_STATIC(&processedPaths, phalcon_mvc_router_route_ce, "getroutepaths", &_0, 78, paths); + ZEPHIR_CALL_CE_STATIC(&processedPaths, phalcon_mvc_router_route_ce, "getroutepaths", &_0, 0, paths); zephir_check_call_status(); } else { ZEPHIR_CPY_WRT(&processedPaths, paths); @@ -133673,10 +132194,10 @@ static PHP_METHOD(Phalcon_Mvc_Router_Group, _addRoute) { zephir_read_property(&_1, this_ptr, SL("_prefix"), PH_NOISY_CC | PH_READONLY); ZEPHIR_INIT_VAR(&_2); ZEPHIR_CONCAT_VV(&_2, &_1, &pattern); - ZEPHIR_CALL_METHOD(NULL, &route, "__construct", NULL, 77, &_2, &mergedPaths, httpMethods); + ZEPHIR_CALL_METHOD(NULL, &route, "__construct", NULL, 70, &_2, &mergedPaths, httpMethods); zephir_check_call_status(); zephir_update_property_array_append(this_ptr, SL("_routes"), &route TSRMLS_CC); - ZEPHIR_CALL_METHOD(NULL, &route, "setgroup", NULL, 384, this_ptr); + ZEPHIR_CALL_METHOD(NULL, &route, "setgroup", NULL, 347, this_ptr); zephir_check_call_status(); RETURN_CCTOR(route); @@ -133797,11 +132318,11 @@ static PHP_METHOD(Phalcon_Mvc_Router_Route, __construct) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &pattern_param, &paths, &httpMethods); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(&pattern, pattern_param); } else { ZEPHIR_INIT_VAR(&pattern); @@ -133861,11 +132382,11 @@ static PHP_METHOD(Phalcon_Mvc_Router_Route, compilePattern) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &pattern_param); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(&pattern, pattern_param); } else { ZEPHIR_INIT_VAR(&pattern); @@ -133986,11 +132507,11 @@ static PHP_METHOD(Phalcon_Mvc_Router_Route, extractNamedParams) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &pattern_param); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(&pattern, pattern_param); } else { ZEPHIR_INIT_VAR(&pattern); @@ -134234,11 +132755,11 @@ static PHP_METHOD(Phalcon_Mvc_Router_Route, reConfigure) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &pattern_param, &paths); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(&pattern, pattern_param); } else { ZEPHIR_INIT_VAR(&pattern); @@ -134563,11 +133084,11 @@ static PHP_METHOD(Phalcon_Mvc_Router_Route, setHostname) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &hostname_param); - if (unlikely(Z_TYPE_P(hostname_param) != IS_STRING && Z_TYPE_P(hostname_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(hostname_param) != IS_STRING && Z_TYPE_P(hostname_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'hostname' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(hostname_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(hostname_param) == IS_STRING)) { zephir_get_strval(&hostname, hostname_param); } else { ZEPHIR_INIT_VAR(&hostname); @@ -134626,11 +133147,11 @@ static PHP_METHOD(Phalcon_Mvc_Router_Route, convert) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &name_param, &converter); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(&name, name_param); } else { ZEPHIR_INIT_VAR(&name); @@ -135198,11 +133719,11 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine, partial) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &partialPath_param, ¶ms); - if (unlikely(Z_TYPE_P(partialPath_param) != IS_STRING && Z_TYPE_P(partialPath_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(partialPath_param) != IS_STRING && Z_TYPE_P(partialPath_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'partialPath' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(partialPath_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(partialPath_param) == IS_STRING)) { zephir_get_strval(&partialPath, partialPath_param); } else { ZEPHIR_INIT_VAR(&partialPath); @@ -135355,11 +133876,11 @@ static PHP_METHOD(Phalcon_Mvc_View_Simple, setViewsDir) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &viewsDir_param); - if (unlikely(Z_TYPE_P(viewsDir_param) != IS_STRING && Z_TYPE_P(viewsDir_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(viewsDir_param) != IS_STRING && Z_TYPE_P(viewsDir_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'viewsDir' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(viewsDir_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(viewsDir_param) == IS_STRING)) { zephir_get_strval(&viewsDir, viewsDir_param); } else { ZEPHIR_INIT_VAR(&viewsDir); @@ -135434,7 +133955,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Simple, _loadTemplateEngines) { if (Z_TYPE_P(®isteredEngines) != IS_ARRAY) { ZEPHIR_INIT_VAR(&_0$$4); object_init_ex(&_0$$4, phalcon_mvc_view_engine_php_ce); - ZEPHIR_CALL_METHOD(NULL, &_0$$4, "__construct", NULL, 386, this_ptr, &dependencyInjector); + ZEPHIR_CALL_METHOD(NULL, &_0$$4, "__construct", NULL, 349, this_ptr, &dependencyInjector); zephir_check_call_status(); zephir_array_update_string(&engines, SL(".phtml"), &_0$$4, PH_COPY | PH_SEPARATE); } else { @@ -135474,7 +133995,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Simple, _loadTemplateEngines) { object_init_ex(&_5$$13, phalcon_mvc_view_exception_ce); ZEPHIR_INIT_LNVAR(_6$$13); ZEPHIR_CONCAT_SV(&_6$$13, "Invalid template engine registration for extension: ", &extension); - ZEPHIR_CALL_METHOD(NULL, &_5$$13, "__construct", &_7, 9, &_6$$13); + ZEPHIR_CALL_METHOD(NULL, &_5$$13, "__construct", &_7, 4, &_6$$13); zephir_check_call_status(); zephir_throw_exception_debug(&_5$$13, "phalcon/mvc/view/simple.zep", 185 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -135531,11 +134052,11 @@ static PHP_METHOD(Phalcon_Mvc_View_Simple, _internalRender) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &path_param, ¶ms); - if (unlikely(Z_TYPE_P(path_param) != IS_STRING && Z_TYPE_P(path_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(path_param) != IS_STRING && Z_TYPE_P(path_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'path' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(path_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(path_param) == IS_STRING)) { zephir_get_strval(&path, path_param); } else { ZEPHIR_INIT_VAR(&path); @@ -135633,7 +134154,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Simple, _internalRender) { object_init_ex(&_17$$15, phalcon_mvc_view_exception_ce); ZEPHIR_INIT_VAR(&_18$$15); ZEPHIR_CONCAT_SVS(&_18$$15, "View '", &viewsDirPath, "' was not found in the views directory"); - ZEPHIR_CALL_METHOD(NULL, &_17$$15, "__construct", NULL, 9, &_18$$15); + ZEPHIR_CALL_METHOD(NULL, &_17$$15, "__construct", NULL, 4, &_18$$15); zephir_check_call_status(); zephir_throw_exception_debug(&_17$$15, "phalcon/mvc/view/simple.zep", 283 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -135675,11 +134196,11 @@ static PHP_METHOD(Phalcon_Mvc_View_Simple, render) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &path_param, ¶ms); - if (unlikely(Z_TYPE_P(path_param) != IS_STRING && Z_TYPE_P(path_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(path_param) != IS_STRING && Z_TYPE_P(path_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'path' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(path_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(path_param) == IS_STRING)) { zephir_get_strval(&path, path_param); } else { ZEPHIR_INIT_VAR(&path); @@ -135724,7 +134245,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Simple, render) { ZEPHIR_INIT_VAR(&_1); zephir_create_symbol_table(TSRMLS_C); - ZEPHIR_CALL_FUNCTION(NULL, "ob_start", NULL, 126); + ZEPHIR_CALL_FUNCTION(NULL, "ob_start", NULL, 115); zephir_check_call_status(); ZEPHIR_OBS_VAR(&viewParams); zephir_read_property(&viewParams, this_ptr, SL("_viewParams"), PH_NOISY_CC); @@ -135738,7 +134259,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Simple, render) { } else { ZEPHIR_CPY_WRT(&mergedParams, &viewParams); } - ZEPHIR_CALL_METHOD(NULL, this_ptr, "_internalrender", NULL, 406, &path, &mergedParams); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "_internalrender", NULL, 369, &path, &mergedParams); zephir_check_call_status(); if (Z_TYPE_P(&cache) == IS_OBJECT) { ZEPHIR_CALL_METHOD(&_2$$12, &cache, "isstarted", NULL, 0); @@ -135757,7 +134278,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Simple, render) { zephir_check_call_status(); } } - ZEPHIR_CALL_FUNCTION(NULL, "ob_end_clean", NULL, 128); + ZEPHIR_CALL_FUNCTION(NULL, "ob_end_clean", NULL, 117); zephir_check_call_status(); RETURN_MM_MEMBER(this_ptr, "_content"); @@ -135781,11 +134302,11 @@ static PHP_METHOD(Phalcon_Mvc_View_Simple, partial) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &partialPath_param, ¶ms); - if (unlikely(Z_TYPE_P(partialPath_param) != IS_STRING && Z_TYPE_P(partialPath_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(partialPath_param) != IS_STRING && Z_TYPE_P(partialPath_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'partialPath' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(partialPath_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(partialPath_param) == IS_STRING)) { zephir_get_strval(&partialPath, partialPath_param); } else { ZEPHIR_INIT_VAR(&partialPath); @@ -135797,7 +134318,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Simple, partial) { } - ZEPHIR_CALL_FUNCTION(NULL, "ob_start", NULL, 126); + ZEPHIR_CALL_FUNCTION(NULL, "ob_start", NULL, 115); zephir_check_call_status(); if (Z_TYPE_P(params) == IS_ARRAY) { ZEPHIR_OBS_VAR(&viewParams); @@ -135814,12 +134335,12 @@ static PHP_METHOD(Phalcon_Mvc_View_Simple, partial) { } else { ZEPHIR_CPY_WRT(&mergedParams, params); } - ZEPHIR_CALL_METHOD(NULL, this_ptr, "_internalrender", NULL, 406, &partialPath, &mergedParams); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "_internalrender", NULL, 369, &partialPath, &mergedParams); zephir_check_call_status(); if (Z_TYPE_P(params) == IS_ARRAY) { zephir_update_property_zval(this_ptr, SL("_viewParams"), &viewParams); } - ZEPHIR_CALL_FUNCTION(NULL, "ob_end_clean", NULL, 128); + ZEPHIR_CALL_FUNCTION(NULL, "ob_end_clean", NULL, 117); zephir_check_call_status(); zephir_read_property(&_1, this_ptr, SL("_content"), PH_NOISY_CC | PH_READONLY); zend_print_zval(&_1, 0); @@ -135980,11 +134501,11 @@ static PHP_METHOD(Phalcon_Mvc_View_Simple, setParamToView) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &key_param, &value); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(&key, key_param); } else { ZEPHIR_INIT_VAR(&key); @@ -136050,11 +134571,11 @@ static PHP_METHOD(Phalcon_Mvc_View_Simple, setVar) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &key_param, &value); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(&key, key_param); } else { ZEPHIR_INIT_VAR(&key); @@ -136080,11 +134601,11 @@ static PHP_METHOD(Phalcon_Mvc_View_Simple, getVar) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &key_param); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(&key, key_param); } else { ZEPHIR_INIT_VAR(&key); @@ -136120,11 +134641,11 @@ static PHP_METHOD(Phalcon_Mvc_View_Simple, setContent) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &content_param); - if (unlikely(Z_TYPE_P(content_param) != IS_STRING && Z_TYPE_P(content_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(content_param) != IS_STRING && Z_TYPE_P(content_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'content' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(content_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(content_param) == IS_STRING)) { zephir_get_strval(&content, content_param); } else { ZEPHIR_INIT_VAR(&content); @@ -136167,11 +134688,11 @@ static PHP_METHOD(Phalcon_Mvc_View_Simple, __set) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &key_param, &value); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(&key, key_param); } else { ZEPHIR_INIT_VAR(&key); @@ -136197,11 +134718,11 @@ static PHP_METHOD(Phalcon_Mvc_View_Simple, __get) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &key_param); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(&key, key_param); } else { ZEPHIR_INIT_VAR(&key); @@ -136256,11 +134777,11 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Php, render) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 1, &path_param, ¶ms, &mustClean_param); - if (unlikely(Z_TYPE_P(path_param) != IS_STRING && Z_TYPE_P(path_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(path_param) != IS_STRING && Z_TYPE_P(path_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'path' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(path_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(path_param) == IS_STRING)) { zephir_get_strval(&path, path_param); } else { ZEPHIR_INIT_VAR(&path); @@ -136274,7 +134795,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Php, render) { if (mustClean == 1) { - ZEPHIR_CALL_FUNCTION(NULL, "ob_clean", NULL, 388); + ZEPHIR_CALL_FUNCTION(NULL, "ob_clean", NULL, 351); zephir_check_call_status(); } if (Z_TYPE_P(params) == IS_ARRAY) { @@ -136302,7 +134823,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Php, render) { } if (mustClean == 1) { zephir_read_property(&_4$$6, this_ptr, SL("_view"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(&_5$$6, "ob_get_contents", NULL, 127); + ZEPHIR_CALL_FUNCTION(&_5$$6, "ob_get_contents", NULL, 116); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, &_4$$6, "setcontent", NULL, 0, &_5$$6); zephir_check_call_status(); @@ -136383,18 +134904,18 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt, getCompiler) { ZEPHIR_INIT_NVAR(&compiler); object_init_ex(&compiler, phalcon_mvc_view_engine_volt_compiler_ce); zephir_read_property(&_0$$3, this_ptr, SL("_view"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_METHOD(NULL, &compiler, "__construct", NULL, 389, &_0$$3); + ZEPHIR_CALL_METHOD(NULL, &compiler, "__construct", NULL, 352, &_0$$3); zephir_check_call_status(); zephir_read_property(&_1$$3, this_ptr, SL("_dependencyInjector"), PH_NOISY_CC | PH_READONLY); ZEPHIR_CPY_WRT(&dependencyInjector, &_1$$3); if (Z_TYPE_P(&dependencyInjector) == IS_OBJECT) { - ZEPHIR_CALL_METHOD(NULL, &compiler, "setdi", NULL, 390, &dependencyInjector); + ZEPHIR_CALL_METHOD(NULL, &compiler, "setdi", NULL, 353, &dependencyInjector); zephir_check_call_status(); } ZEPHIR_OBS_VAR(&options); zephir_read_property(&options, this_ptr, SL("_options"), PH_NOISY_CC); if (Z_TYPE_P(&options) == IS_ARRAY) { - ZEPHIR_CALL_METHOD(NULL, &compiler, "setoptions", NULL, 391, &options); + ZEPHIR_CALL_METHOD(NULL, &compiler, "setoptions", NULL, 354, &options); zephir_check_call_status(); } zephir_update_property_zval(this_ptr, SL("_compiler"), &compiler); @@ -136426,11 +134947,11 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt, render) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 1, &templatePath_param, ¶ms, &mustClean_param); - if (unlikely(Z_TYPE_P(templatePath_param) != IS_STRING && Z_TYPE_P(templatePath_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(templatePath_param) != IS_STRING && Z_TYPE_P(templatePath_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'templatePath' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(templatePath_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(templatePath_param) == IS_STRING)) { zephir_get_strval(&templatePath, templatePath_param); } else { ZEPHIR_INIT_VAR(&templatePath); @@ -136444,7 +134965,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt, render) { if (mustClean) { - ZEPHIR_CALL_FUNCTION(NULL, "ob_clean", NULL, 388); + ZEPHIR_CALL_FUNCTION(NULL, "ob_clean", NULL, 351); zephir_check_call_status(); } ZEPHIR_CALL_METHOD(&compiler, this_ptr, "getcompiler", NULL, 0); @@ -136478,7 +134999,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt, render) { } if (mustClean) { zephir_read_property(&_4$$6, this_ptr, SL("_view"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(&_5$$6, "ob_get_contents", NULL, 127); + ZEPHIR_CALL_FUNCTION(&_5$$6, "ob_get_contents", NULL, 116); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, &_4$$6, "setcontent", NULL, 0, &_5$$6); zephir_check_call_status(); @@ -136509,7 +135030,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt, length) { RETURN_MM_LONG(zephir_fast_count_int(item TSRMLS_CC)); } if ((zephir_function_exists_ex(SL("mb_strlen") TSRMLS_CC) == SUCCESS)) { - ZEPHIR_RETURN_CALL_FUNCTION("mb_strlen", NULL, 382, item); + ZEPHIR_RETURN_CALL_FUNCTION("mb_strlen", NULL, 346, item); zephir_check_call_status(); RETURN_MM(); } @@ -136538,7 +135059,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt, isIncluded) { } if (Z_TYPE_P(haystack) == IS_STRING) { if ((zephir_function_exists_ex(SL("mb_strpos") TSRMLS_CC) == SUCCESS)) { - ZEPHIR_CALL_FUNCTION(&_0$$5, "mb_strpos", NULL, 392, haystack, needle); + ZEPHIR_CALL_FUNCTION(&_0$$5, "mb_strpos", NULL, 355, haystack, needle); zephir_check_call_status(); RETURN_MM_BOOL(!ZEPHIR_IS_FALSE_IDENTICAL(&_0$$5)); } @@ -136567,21 +135088,21 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt, convertEncoding) { zephir_fetch_params(1, 3, 0, &text_param, &from_param, &to_param); zephir_get_strval(&text, text_param); - if (unlikely(Z_TYPE_P(from_param) != IS_STRING && Z_TYPE_P(from_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(from_param) != IS_STRING && Z_TYPE_P(from_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'from' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(from_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(from_param) == IS_STRING)) { zephir_get_strval(&from, from_param); } else { ZEPHIR_INIT_VAR(&from); ZVAL_EMPTY_STRING(&from); } - if (unlikely(Z_TYPE_P(to_param) != IS_STRING && Z_TYPE_P(to_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(to_param) != IS_STRING && Z_TYPE_P(to_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'to' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(to_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(to_param) == IS_STRING)) { zephir_get_strval(&to, to_param); } else { ZEPHIR_INIT_VAR(&to); @@ -136594,7 +135115,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt, convertEncoding) { _0 = ZEPHIR_IS_STRING(&to, "utf8"); } if (_0) { - ZEPHIR_RETURN_CALL_FUNCTION("utf8_encode", NULL, 393, &text); + ZEPHIR_RETURN_CALL_FUNCTION("utf8_encode", NULL, 356, &text); zephir_check_call_status(); RETURN_MM(); } @@ -136603,17 +135124,17 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt, convertEncoding) { _1 = ZEPHIR_IS_STRING(&from, "utf8"); } if (_1) { - ZEPHIR_RETURN_CALL_FUNCTION("utf8_decode", NULL, 394, &text); + ZEPHIR_RETURN_CALL_FUNCTION("utf8_decode", NULL, 357, &text); zephir_check_call_status(); RETURN_MM(); } if ((zephir_function_exists_ex(SL("mb_convert_encoding") TSRMLS_CC) == SUCCESS)) { - ZEPHIR_RETURN_CALL_FUNCTION("mb_convert_encoding", NULL, 187, &text, &from, &to); + ZEPHIR_RETURN_CALL_FUNCTION("mb_convert_encoding", NULL, 169, &text, &from, &to); zephir_check_call_status(); RETURN_MM(); } if ((zephir_function_exists_ex(SL("iconv") TSRMLS_CC) == SUCCESS)) { - ZEPHIR_RETURN_CALL_FUNCTION("iconv", NULL, 395, &from, &to, &text); + ZEPHIR_RETURN_CALL_FUNCTION("iconv", NULL, 358, &from, &to, &text); zephir_check_call_status(); RETURN_MM(); } @@ -136698,19 +135219,19 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt, slice) { } if (Z_TYPE_P(value) == IS_ARRAY) { ZVAL_LONG(&_5$$9, start); - ZEPHIR_RETURN_CALL_FUNCTION("array_slice", NULL, 396, value, &_5$$9, &length); + ZEPHIR_RETURN_CALL_FUNCTION("array_slice", NULL, 359, value, &_5$$9, &length); zephir_check_call_status(); RETURN_MM(); } if ((zephir_function_exists_ex(SL("mb_substr") TSRMLS_CC) == SUCCESS)) { if (Z_TYPE_P(&length) != IS_NULL) { ZVAL_LONG(&_6$$11, start); - ZEPHIR_RETURN_CALL_FUNCTION("mb_substr", &_7, 397, value, &_6$$11, &length); + ZEPHIR_RETURN_CALL_FUNCTION("mb_substr", &_7, 360, value, &_6$$11, &length); zephir_check_call_status(); RETURN_MM(); } ZVAL_LONG(&_8$$10, start); - ZEPHIR_RETURN_CALL_FUNCTION("mb_substr", &_7, 397, value, &_8$$10); + ZEPHIR_RETURN_CALL_FUNCTION("mb_substr", &_7, 360, value, &_8$$10); zephir_check_call_status(); RETURN_MM(); } @@ -136741,7 +135262,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt, sort) { ZEPHIR_MAKE_REF(&value); - ZEPHIR_CALL_FUNCTION(NULL, "asort", NULL, 398, &value); + ZEPHIR_CALL_FUNCTION(NULL, "asort", NULL, 361, &value); ZEPHIR_UNREF(&value); zephir_check_call_status(); RETURN_CTOR(value); @@ -136766,11 +135287,11 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt, callMacro) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &name_param, &arguments_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(&name, name_param); } else { ZEPHIR_INIT_VAR(&name); @@ -136791,13 +135312,13 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt, callMacro) { object_init_ex(&_1$$3, phalcon_mvc_view_exception_ce); ZEPHIR_INIT_VAR(&_2$$3); ZEPHIR_CONCAT_SVS(&_2$$3, "Macro '", &name, "' does not exist"); - ZEPHIR_CALL_METHOD(NULL, &_1$$3, "__construct", NULL, 9, &_2$$3); + ZEPHIR_CALL_METHOD(NULL, &_1$$3, "__construct", NULL, 4, &_2$$3); zephir_check_call_status(); zephir_throw_exception_debug(&_1$$3, "phalcon/mvc/view/engine/volt.zep", 287 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } - ZEPHIR_RETURN_CALL_FUNCTION("call_user_func", NULL, 399, ¯o, &arguments); + ZEPHIR_RETURN_CALL_FUNCTION("call_user_func", NULL, 362, ¯o, &arguments); zephir_check_call_status(); RETURN_MM(); @@ -136943,11 +135464,11 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, setOption) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &option_param, &value); - if (unlikely(Z_TYPE_P(option_param) != IS_STRING && Z_TYPE_P(option_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(option_param) != IS_STRING && Z_TYPE_P(option_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'option' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(option_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(option_param) == IS_STRING)) { zephir_get_strval(&option, option_param); } else { ZEPHIR_INIT_VAR(&option); @@ -136973,11 +135494,11 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, getOption) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &option_param); - if (unlikely(Z_TYPE_P(option_param) != IS_STRING && Z_TYPE_P(option_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(option_param) != IS_STRING && Z_TYPE_P(option_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'option' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(option_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(option_param) == IS_STRING)) { zephir_get_strval(&option, option_param); } else { ZEPHIR_INIT_VAR(&option); @@ -137022,11 +135543,11 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, fireExtensionEvent) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &name_param, &arguments); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(&name, name_param); } else { ZEPHIR_INIT_VAR(&name); @@ -137122,11 +135643,11 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, addFunction) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &name_param, &definition); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(&name, name_param); } else { ZEPHIR_INIT_VAR(&name); @@ -137160,11 +135681,11 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, addFilter) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &name_param, &definition); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(&name, name_param); } else { ZEPHIR_INIT_VAR(&name); @@ -137197,11 +135718,11 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, setUniquePrefix) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &prefix_param); - if (unlikely(Z_TYPE_P(prefix_param) != IS_STRING && Z_TYPE_P(prefix_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(prefix_param) != IS_STRING && Z_TYPE_P(prefix_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'prefix' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(prefix_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(prefix_param) == IS_STRING)) { zephir_get_strval(&prefix, prefix_param); } else { ZEPHIR_INIT_VAR(&prefix); @@ -137337,7 +135858,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, attributeReader) { } } } else { - ZEPHIR_CALL_METHOD(&leftCode, this_ptr, "expression", &_7, 400, &left); + ZEPHIR_CALL_METHOD(&leftCode, this_ptr, "expression", &_7, 363, &left); zephir_check_call_status(); ZEPHIR_OBS_VAR(&leftType); zephir_array_fetch_string(&leftType, &left, SL("type"), PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 328 TSRMLS_CC); @@ -137359,7 +135880,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, attributeReader) { zephir_array_fetch_string(&_10$$11, &right, SL("value"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 341 TSRMLS_CC); zephir_concat_self(&exprCode, &_10$$11 TSRMLS_CC); } else { - ZEPHIR_CALL_METHOD(&_11$$12, this_ptr, "expression", &_7, 400, &right); + ZEPHIR_CALL_METHOD(&_11$$12, this_ptr, "expression", &_7, 363, &right); zephir_check_call_status(); zephir_concat_self(&exprCode, &_11$$12 TSRMLS_CC); } @@ -137417,7 +135938,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, functionCall) { ZVAL_NULL(&funcArguments); ZEPHIR_OBS_NVAR(&funcArguments); if (zephir_array_isset_string_fetch(&funcArguments, &expr, SL("arguments"), 0)) { - ZEPHIR_CALL_METHOD(&arguments, this_ptr, "expression", &_0, 400, &funcArguments); + ZEPHIR_CALL_METHOD(&arguments, this_ptr, "expression", &_0, 363, &funcArguments); zephir_check_call_status(); } else { ZEPHIR_INIT_NVAR(&arguments); @@ -137440,7 +135961,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, functionCall) { zephir_array_fast_append(&_1$$6, &funcArguments); ZEPHIR_INIT_VAR(&_2$$6); ZVAL_STRING(&_2$$6, "compileFunction"); - ZEPHIR_CALL_METHOD(&code, this_ptr, "fireextensionevent", NULL, 401, &_2$$6, &_1$$6); + ZEPHIR_CALL_METHOD(&code, this_ptr, "fireextensionevent", NULL, 364, &_2$$6, &_1$$6); zephir_check_call_status(); if (Z_TYPE_P(&code) == IS_STRING) { RETURN_CCTOR(code); @@ -137472,7 +135993,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, functionCall) { zephir_array_fetch_string(&_6$$9, &expr, SL("line"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 418 TSRMLS_CC); ZEPHIR_INIT_VAR(&_7$$9); ZEPHIR_CONCAT_SVSVSV(&_7$$9, "Invalid definition for user function '", &name, "' in ", &_5$$9, " on line ", &_6$$9); - ZEPHIR_CALL_METHOD(NULL, &_4$$9, "__construct", NULL, 9, &_7$$9); + ZEPHIR_CALL_METHOD(NULL, &_4$$9, "__construct", NULL, 4, &_7$$9); zephir_check_call_status(); zephir_throw_exception_debug(&_4$$9, "phalcon/mvc/view/engine/volt/compiler.zep", 418 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -137501,7 +136022,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, functionCall) { ZEPHIR_OBS_VAR(&exprLevel); zephir_read_property(&exprLevel, this_ptr, SL("_exprLevel"), PH_NOISY_CC); if (Z_TYPE_P(&block) == IS_ARRAY) { - ZEPHIR_CALL_METHOD(&code, this_ptr, "_statementlistorextends", NULL, 402, &block); + ZEPHIR_CALL_METHOD(&code, this_ptr, "_statementlistorextends", NULL, 365, &block); zephir_check_call_status(); if (ZEPHIR_IS_LONG(&exprLevel, 1)) { ZEPHIR_CPY_WRT(&escapedCode, &code); @@ -137528,7 +136049,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, functionCall) { } ZEPHIR_INIT_VAR(&_9$$5); zephir_camelize(&_9$$5, &name, NULL ); - ZEPHIR_CALL_FUNCTION(&method, "lcfirst", NULL, 68, &_9$$5); + ZEPHIR_CALL_FUNCTION(&method, "lcfirst", NULL, 62, &_9$$5); zephir_check_call_status(); ZEPHIR_INIT_VAR(&className); ZVAL_STRING(&className, "Phalcon\\Tag"); @@ -137597,7 +136118,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, functionCall) { ZEPHIR_CONCAT_SVSVS(return_value, "$this->callMacro('", &name, "', [", &arguments, "])"); RETURN_MM(); } - ZEPHIR_CALL_METHOD(&_10, this_ptr, "expression", &_0, 400, &nameExpr); + ZEPHIR_CALL_METHOD(&_10, this_ptr, "expression", &_0, 363, &nameExpr); zephir_check_call_status(); ZEPHIR_CONCAT_VSVS(return_value, &_10, "(", &arguments, ")"); RETURN_MM(); @@ -137670,28 +136191,28 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, resolveTest) { if (zephir_array_isset_string_fetch(&name, &testName, SL("value"), 0)) { if (ZEPHIR_IS_STRING(&name, "divisibleby")) { zephir_array_fetch_string(&_1$$12, &test, SL("arguments"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 632 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_0$$12, this_ptr, "expression", &_2, 400, &_1$$12); + ZEPHIR_CALL_METHOD(&_0$$12, this_ptr, "expression", &_2, 363, &_1$$12); zephir_check_call_status(); ZEPHIR_CONCAT_SVSVS(return_value, "(((", &left, ") % (", &_0$$12, ")) == 0)"); RETURN_MM(); } if (ZEPHIR_IS_STRING(&name, "sameas")) { zephir_array_fetch_string(&_4$$13, &test, SL("arguments"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 639 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_3$$13, this_ptr, "expression", &_2, 400, &_4$$13); + ZEPHIR_CALL_METHOD(&_3$$13, this_ptr, "expression", &_2, 363, &_4$$13); zephir_check_call_status(); ZEPHIR_CONCAT_SVSVS(return_value, "(", &left, ") === (", &_3$$13, ")"); RETURN_MM(); } if (ZEPHIR_IS_STRING(&name, "type")) { zephir_array_fetch_string(&_6$$14, &test, SL("arguments"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 646 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_5$$14, this_ptr, "expression", &_2, 400, &_6$$14); + ZEPHIR_CALL_METHOD(&_5$$14, this_ptr, "expression", &_2, 363, &_6$$14); zephir_check_call_status(); ZEPHIR_CONCAT_SVSVS(return_value, "gettype(", &left, ") === (", &_5$$14, ")"); RETURN_MM(); } } } - ZEPHIR_CALL_METHOD(&_7, this_ptr, "expression", &_2, 400, &test); + ZEPHIR_CALL_METHOD(&_7, this_ptr, "expression", &_2, 363, &test); zephir_check_call_status(); ZEPHIR_CONCAT_VSV(return_value, &left, " == ", &_7); RETURN_MM(); @@ -137760,7 +136281,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, resolveFilter) { zephir_array_fetch_string(&_2$$5, &filter, SL("line"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 679 TSRMLS_CC); ZEPHIR_INIT_VAR(&_3$$5); ZEPHIR_CONCAT_SVSV(&_3$$5, "Unknown filter type in ", &_1$$5, " on line ", &_2$$5); - ZEPHIR_CALL_METHOD(NULL, &_0$$5, "__construct", NULL, 9, &_3$$5); + ZEPHIR_CALL_METHOD(NULL, &_0$$5, "__construct", NULL, 4, &_3$$5); zephir_check_call_status(); zephir_throw_exception_debug(&_0$$5, "phalcon/mvc/view/engine/volt/compiler.zep", 679 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -137794,11 +136315,11 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, resolveFilter) { zephir_array_update_string(&_4$$7, SL("file"), &file, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_4$$7, SL("line"), &line, PH_COPY | PH_SEPARATE); ZEPHIR_MAKE_REF(&funcArguments); - ZEPHIR_CALL_FUNCTION(NULL, "array_unshift", NULL, 403, &funcArguments, &_4$$7); + ZEPHIR_CALL_FUNCTION(NULL, "array_unshift", NULL, 366, &funcArguments, &_4$$7); ZEPHIR_UNREF(&funcArguments); zephir_check_call_status(); } - ZEPHIR_CALL_METHOD(&arguments, this_ptr, "expression", NULL, 400, &funcArguments); + ZEPHIR_CALL_METHOD(&arguments, this_ptr, "expression", NULL, 363, &funcArguments); zephir_check_call_status(); } else { ZEPHIR_CPY_WRT(&arguments, &left); @@ -137813,7 +136334,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, resolveFilter) { zephir_array_fast_append(&_6$$9, &funcArguments); ZEPHIR_INIT_VAR(&_7$$9); ZVAL_STRING(&_7$$9, "compileFilter"); - ZEPHIR_CALL_METHOD(&code, this_ptr, "fireextensionevent", NULL, 401, &_7$$9, &_6$$9); + ZEPHIR_CALL_METHOD(&code, this_ptr, "fireextensionevent", NULL, 364, &_7$$9, &_6$$9); zephir_check_call_status(); if (Z_TYPE_P(&code) == IS_STRING) { RETURN_CCTOR(code); @@ -137845,7 +136366,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, resolveFilter) { zephir_array_fetch_string(&_11$$12, &filter, SL("line"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 763 TSRMLS_CC); ZEPHIR_INIT_VAR(&_12$$12); ZEPHIR_CONCAT_SVSVSV(&_12$$12, "Invalid definition for user filter '", &name, "' in ", &_10$$12, " on line ", &_11$$12); - ZEPHIR_CALL_METHOD(NULL, &_9$$12, "__construct", NULL, 9, &_12$$12); + ZEPHIR_CALL_METHOD(NULL, &_9$$12, "__construct", NULL, 4, &_12$$12); zephir_check_call_status(); zephir_throw_exception_debug(&_9$$12, "phalcon/mvc/view/engine/volt/compiler.zep", 763 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -137974,7 +136495,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, resolveFilter) { zephir_array_fetch_string(&_18, &filter, SL("line"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 952 TSRMLS_CC); ZEPHIR_INIT_VAR(&_19); ZEPHIR_CONCAT_SVSVSV(&_19, "Unknown filter \"", &name, "\" in ", &_17, " on line ", &_18); - ZEPHIR_CALL_METHOD(NULL, &_16, "__construct", NULL, 9, &_19); + ZEPHIR_CALL_METHOD(NULL, &_16, "__construct", NULL, 4, &_19); zephir_check_call_status(); zephir_throw_exception_debug(&_16, "phalcon/mvc/view/engine/volt/compiler.zep", 952 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -138042,7 +136563,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, expression) { zephir_array_fast_append(&_0$$4, &expr); ZEPHIR_INIT_NVAR(&_1$$4); ZVAL_STRING(&_1$$4, "resolveExpression"); - ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "fireextensionevent", &_2, 401, &_1$$4, &_0$$4); + ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "fireextensionevent", &_2, 364, &_1$$4, &_0$$4); zephir_check_call_status(); if (Z_TYPE_P(&exprCode) == IS_STRING) { break; @@ -138058,7 +136579,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, expression) { ZEPHIR_INIT_NVAR(&singleExpr); ZVAL_COPY(&singleExpr, _3$$6); zephir_array_fetch_string(&_4$$7, &singleExpr, SL("expr"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 986 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&singleExprCode, this_ptr, "expression", &_5, 400, &_4$$7); + ZEPHIR_CALL_METHOD(&singleExprCode, this_ptr, "expression", &_5, 363, &_4$$7); zephir_check_call_status(); ZEPHIR_OBS_NVAR(&name); if (zephir_array_isset_string_fetch(&name, &singleExpr, SL("name"), 0)) { @@ -138081,7 +136602,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, expression) { } ZEPHIR_OBS_NVAR(&left); if (zephir_array_isset_string_fetch(&left, &expr, SL("left"), 0)) { - ZEPHIR_CALL_METHOD(&leftCode, this_ptr, "expression", &_5, 400, &left); + ZEPHIR_CALL_METHOD(&leftCode, this_ptr, "expression", &_5, 363, &left); zephir_check_call_status(); } if (ZEPHIR_IS_LONG(&type, 311)) { @@ -138092,13 +136613,13 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, expression) { } if (ZEPHIR_IS_LONG(&type, 124)) { zephir_array_fetch_string(&_10$$13, &expr, SL("right"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 1024 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "resolvefilter", &_11, 404, &_10$$13, &leftCode); + ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "resolvefilter", &_11, 367, &_10$$13, &leftCode); zephir_check_call_status(); break; } ZEPHIR_OBS_NVAR(&right); if (zephir_array_isset_string_fetch(&right, &expr, SL("right"), 0)) { - ZEPHIR_CALL_METHOD(&rightCode, this_ptr, "expression", &_5, 400, &right); + ZEPHIR_CALL_METHOD(&rightCode, this_ptr, "expression", &_5, 363, &right); zephir_check_call_status(); } ZEPHIR_INIT_NVAR(&exprCode); @@ -138274,7 +136795,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, expression) { if (ZEPHIR_IS_LONG(&type, 365)) { ZEPHIR_OBS_NVAR(&start); if (zephir_array_isset_string_fetch(&start, &expr, SL("start"), 0)) { - ZEPHIR_CALL_METHOD(&startCode, this_ptr, "expression", &_5, 400, &start); + ZEPHIR_CALL_METHOD(&startCode, this_ptr, "expression", &_5, 363, &start); zephir_check_call_status(); } else { ZEPHIR_INIT_NVAR(&startCode); @@ -138282,7 +136803,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, expression) { } ZEPHIR_OBS_NVAR(&end); if (zephir_array_isset_string_fetch(&end, &expr, SL("end"), 0)) { - ZEPHIR_CALL_METHOD(&endCode, this_ptr, "expression", &_5, 400, &end); + ZEPHIR_CALL_METHOD(&endCode, this_ptr, "expression", &_5, 363, &end); zephir_check_call_status(); } else { ZEPHIR_INIT_NVAR(&endCode); @@ -138374,7 +136895,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, expression) { } if (ZEPHIR_IS_LONG(&type, 366)) { zephir_array_fetch_string(&_19$$69, &expr, SL("ternary"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 1254 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_18$$69, this_ptr, "expression", &_5, 400, &_19$$69); + ZEPHIR_CALL_METHOD(&_18$$69, this_ptr, "expression", &_5, 363, &_19$$69); zephir_check_call_status(); ZEPHIR_INIT_NVAR(&exprCode); ZEPHIR_CONCAT_SVSVSVS(&exprCode, "(", &_18$$69, " ? ", &leftCode, " : ", &rightCode, ")"); @@ -138401,7 +136922,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, expression) { zephir_array_fetch_string(&_22$$73, &expr, SL("line"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 1270 TSRMLS_CC); ZEPHIR_INIT_LNVAR(_23$$73); ZEPHIR_CONCAT_SVSVSV(&_23$$73, "Unknown expression ", &type, " in ", &_21$$73, " on line ", &_22$$73); - ZEPHIR_CALL_METHOD(NULL, &_20$$73, "__construct", &_24, 9, &_23$$73); + ZEPHIR_CALL_METHOD(NULL, &_20$$73, "__construct", &_24, 4, &_23$$73); zephir_check_call_status(); zephir_throw_exception_debug(&_20$$73, "phalcon/mvc/view/engine/volt/compiler.zep", 1270 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -138449,7 +136970,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, _statementListOrExtends ZEPHIR_INIT_NVAR(&statement); } if (isStatementList == 1) { - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_statementlist", NULL, 405, statements); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_statementlist", NULL, 368, statements); zephir_check_call_status(); RETURN_MM(); } @@ -138536,7 +137057,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileForeach) { ZEPHIR_CONCAT_VV(&prefixLevel, &prefix, &level); ZEPHIR_OBS_VAR(&expr); zephir_array_fetch_string(&expr, &statement, SL("expr"), PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 1356 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "expression", &_0, 400, &expr); + ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "expression", &_0, 363, &expr); zephir_check_call_status(); ZEPHIR_OBS_VAR(&blockStatements); zephir_array_fetch_string(&blockStatements, &statement, SL("block_statements"), PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 1362 TSRMLS_CC); @@ -138571,7 +137092,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileForeach) { } else { ZVAL_BOOL(&_3, 0); } - ZEPHIR_CALL_METHOD(&code, this_ptr, "_statementlist", NULL, 405, &blockStatements, &_3); + ZEPHIR_CALL_METHOD(&code, this_ptr, "_statementlist", NULL, 368, &blockStatements, &_3); zephir_check_call_status(); ZEPHIR_OBS_VAR(&loopContext); zephir_read_property(&loopContext, this_ptr, SL("_loopPointers"), PH_NOISY_CC); @@ -138622,7 +137143,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileForeach) { } ZEPHIR_OBS_VAR(&ifExpr); if (zephir_array_isset_string_fetch(&ifExpr, &statement, SL("if_expr"), 0)) { - ZEPHIR_CALL_METHOD(&_15$$13, this_ptr, "expression", &_0, 400, &ifExpr); + ZEPHIR_CALL_METHOD(&_15$$13, this_ptr, "expression", &_0, 363, &ifExpr); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_16$$13); ZEPHIR_CONCAT_SVS(&_16$$13, "if (", &_15$$13, ") { ?>"); @@ -138738,7 +137259,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileIf) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "Corrupt statement", "phalcon/mvc/view/engine/volt/compiler.zep", 1509); return; } - ZEPHIR_CALL_METHOD(&_0, this_ptr, "expression", NULL, 400, &expr); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "expression", NULL, 363, &expr); zephir_check_call_status(); zephir_array_fetch_string(&_2, &statement, SL("true_statements"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 1515 TSRMLS_CC); if (extendsMode) { @@ -138746,7 +137267,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileIf) { } else { ZVAL_BOOL(&_3, 0); } - ZEPHIR_CALL_METHOD(&_1, this_ptr, "_statementlist", &_4, 405, &_2, &_3); + ZEPHIR_CALL_METHOD(&_1, this_ptr, "_statementlist", &_4, 368, &_2, &_3); zephir_check_call_status(); ZEPHIR_INIT_VAR(&compilation); ZEPHIR_CONCAT_SVSV(&compilation, "", &_1); @@ -138757,7 +137278,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileIf) { } else { ZVAL_BOOL(&_6$$4, 0); } - ZEPHIR_CALL_METHOD(&_5$$4, this_ptr, "_statementlist", &_4, 405, &blockStatements, &_6$$4); + ZEPHIR_CALL_METHOD(&_5$$4, this_ptr, "_statementlist", &_4, 368, &blockStatements, &_6$$4); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_7$$4); ZEPHIR_CONCAT_SV(&_7$$4, "", &_5$$4); @@ -138790,7 +137311,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileElseIf) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "Corrupt statement", "phalcon/mvc/view/engine/volt/compiler.zep", 1544); return; } - ZEPHIR_CALL_METHOD(&_0, this_ptr, "expression", NULL, 400, &expr); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "expression", NULL, 363, &expr); zephir_check_call_status(); ZEPHIR_CONCAT_SVS(return_value, ""); RETURN_MM(); @@ -138847,9 +137368,9 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileCache) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "Corrupt statement", "phalcon/mvc/view/engine/volt/compiler.zep", 1564); return; } - ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "expression", &_0, 400, &expr); + ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "expression", &_0, 363, &expr); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_1, this_ptr, "expression", &_0, 400, &expr); + ZEPHIR_CALL_METHOD(&_1, this_ptr, "expression", &_0, 363, &expr); zephir_check_call_status(); ZEPHIR_INIT_VAR(&compilation); ZEPHIR_CONCAT_SVS(&compilation, "di->get('viewCache'); "); @@ -138884,7 +137405,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileCache) { } else { ZVAL_BOOL(&_12, 0); } - ZEPHIR_CALL_METHOD(&_10, this_ptr, "_statementlist", NULL, 405, &_11, &_12); + ZEPHIR_CALL_METHOD(&_10, this_ptr, "_statementlist", NULL, 368, &_11, &_12); zephir_check_call_status(); zephir_concat_self(&compilation, &_10 TSRMLS_CC); ZEPHIR_OBS_NVAR(&lifetime); @@ -138955,10 +137476,10 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileSet) { ZEPHIR_INIT_NVAR(&assignment); ZVAL_COPY(&assignment, _0); zephir_array_fetch_string(&_1$$4, &assignment, SL("expr"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 1627 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "expression", &_2, 400, &_1$$4); + ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "expression", &_2, 363, &_1$$4); zephir_check_call_status(); zephir_array_fetch_string(&_3$$4, &assignment, SL("variable"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 1632 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&target, this_ptr, "expression", &_2, 400, &_3$$4); + ZEPHIR_CALL_METHOD(&target, this_ptr, "expression", &_2, 363, &_3$$4); zephir_check_call_status(); zephir_array_fetch_string(&_4$$4, &assignment, SL("op"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 1638 TSRMLS_CC); do { @@ -139021,7 +137542,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileDo) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "Corrupted statement", "phalcon/mvc/view/engine/volt/compiler.zep", 1678); return; } - ZEPHIR_CALL_METHOD(&_0, this_ptr, "expression", NULL, 400, &expr); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "expression", NULL, 363, &expr); zephir_check_call_status(); ZEPHIR_CONCAT_SVS(return_value, ""); RETURN_MM(); @@ -139050,7 +137571,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileReturn) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "Corrupted statement", "phalcon/mvc/view/engine/volt/compiler.zep", 1698); return; } - ZEPHIR_CALL_METHOD(&_0, this_ptr, "expression", NULL, 400, &expr); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "expression", NULL, 363, &expr); zephir_check_call_status(); ZEPHIR_CONCAT_SVS(return_value, ""); RETURN_MM(); @@ -139093,7 +137614,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileAutoEscape) { } else { ZVAL_BOOL(&_1, 0); } - ZEPHIR_CALL_METHOD(&compilation, this_ptr, "_statementlist", NULL, 405, &_0, &_1); + ZEPHIR_CALL_METHOD(&compilation, this_ptr, "_statementlist", NULL, 368, &_0, &_1); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_autoescape"), &oldAutoescape); RETURN_CCTOR(compilation); @@ -139127,7 +137648,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileEcho) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "Corrupt statement", "phalcon/mvc/view/engine/volt/compiler.zep", 1748); return; } - ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "expression", NULL, 400, &expr); + ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "expression", NULL, 363, &expr); zephir_check_call_status(); zephir_array_fetch_string(&_0, &expr, SL("type"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 1756 TSRMLS_CC); if (ZEPHIR_IS_LONG(&_0, 350)) { @@ -139204,14 +137725,14 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileInclude) { RETURN_CCTOR(compilation); } } - ZEPHIR_CALL_METHOD(&path, this_ptr, "expression", &_3, 400, &pathExpr); + ZEPHIR_CALL_METHOD(&path, this_ptr, "expression", &_3, 363, &pathExpr); zephir_check_call_status(); ZEPHIR_OBS_VAR(¶ms); if (!(zephir_array_isset_string_fetch(¶ms, &statement, SL("params"), 0))) { ZEPHIR_CONCAT_SVS(return_value, "partial(", &path, "); ?>"); RETURN_MM(); } - ZEPHIR_CALL_METHOD(&_4, this_ptr, "expression", &_3, 400, ¶ms); + ZEPHIR_CALL_METHOD(&_4, this_ptr, "expression", &_3, 363, ¶ms); zephir_check_call_status(); ZEPHIR_CONCAT_SVSVS(return_value, "partial(", &path, ", ", &_4, "); ?>"); RETURN_MM(); @@ -139274,7 +137795,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileMacro) { object_init_ex(&_1$$4, phalcon_mvc_view_engine_volt_exception_ce); ZEPHIR_INIT_VAR(&_2$$4); ZEPHIR_CONCAT_SVS(&_2$$4, "Macro '", &name, "' is already defined"); - ZEPHIR_CALL_METHOD(NULL, &_1$$4, "__construct", NULL, 9, &_2$$4); + ZEPHIR_CALL_METHOD(NULL, &_1$$4, "__construct", NULL, 4, &_2$$4); zephir_check_call_status(); zephir_throw_exception_debug(&_1$$4, "phalcon/mvc/view/engine/volt/compiler.zep", 1867 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -139323,7 +137844,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileMacro) { zephir_concat_self_str(&code, SL(" } else { ") TSRMLS_CC); ZEPHIR_OBS_NVAR(&defaultValue); if (zephir_array_isset_string_fetch(&defaultValue, ¶meter, SL("default"), 0)) { - ZEPHIR_CALL_METHOD(&_12$$8, this_ptr, "expression", &_13, 400, &defaultValue); + ZEPHIR_CALL_METHOD(&_12$$8, this_ptr, "expression", &_13, 363, &defaultValue); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_14$$8); ZEPHIR_CONCAT_SVSVS(&_14$$8, "$", &variableName, " = ", &_12$$8, ";"); @@ -139346,7 +137867,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileMacro) { } else { ZVAL_BOOL(&_17$$10, 0); } - ZEPHIR_CALL_METHOD(&_16$$10, this_ptr, "_statementlist", NULL, 405, &blockStatements, &_17$$10); + ZEPHIR_CALL_METHOD(&_16$$10, this_ptr, "_statementlist", NULL, 368, &blockStatements, &_17$$10); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_18$$10); ZEPHIR_CONCAT_VS(&_18$$10, &_16$$10, "> 1))); ZEPHIR_INIT_NVAR(&mask); @@ -154638,27 +153160,27 @@ static PHP_METHOD(Phalcon_Security_Random, number) { ZVAL_LONG(&_15$$7, 1); ZEPHIR_INIT_NVAR(&_16$$7); zephir_substr(&_16$$7, &rnd, 0 , 1 , 0); - ZEPHIR_CALL_FUNCTION(&_17$$7, "ord", &_9, 140, &_16$$7); + ZEPHIR_CALL_FUNCTION(&_17$$7, "ord", &_9, 128, &_16$$7); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_18$$7); zephir_bitwise_and_function(&_18$$7, &_17$$7, &mask TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_17$$7, "chr", &_19, 138, &_18$$7); + ZEPHIR_CALL_FUNCTION(&_17$$7, "chr", &_19, 126, &_18$$7); zephir_check_call_status(); ZVAL_LONG(&_20$$7, 0); ZVAL_LONG(&_21$$7, 1); - ZEPHIR_CALL_FUNCTION(&_22$$7, "substr_replace", &_23, 434, &rnd, &_17$$7, &_20$$7, &_21$$7); + ZEPHIR_CALL_FUNCTION(&_22$$7, "substr_replace", &_23, 397, &rnd, &_17$$7, &_20$$7, &_21$$7); zephir_check_call_status(); ZEPHIR_CPY_WRT(&rnd, &_22$$7); } while (ZEPHIR_LT(&bin, &rnd)); ZEPHIR_INIT_NVAR(&_6); ZVAL_STRING(&_6, "H*"); - ZEPHIR_CALL_FUNCTION(&ret, "unpack", NULL, 430, &_6, &rnd); + ZEPHIR_CALL_FUNCTION(&ret, "unpack", NULL, 393, &_6, &rnd); zephir_check_call_status(); ZEPHIR_MAKE_REF(&ret); - ZEPHIR_CALL_FUNCTION(&_24, "array_shift", NULL, 129, &ret); + ZEPHIR_CALL_FUNCTION(&_24, "array_shift", NULL, 118, &ret); ZEPHIR_UNREF(&ret); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_FUNCTION("hexdec", NULL, 435, &_24); + ZEPHIR_RETURN_CALL_FUNCTION("hexdec", NULL, 398, &_24); zephir_check_call_status(); RETURN_MM(); @@ -154736,7 +153258,7 @@ static PHP_METHOD(Phalcon_Session_Adapter, start) { ZEPHIR_MM_GROW(); - ZEPHIR_CALL_FUNCTION(&_0, "headers_sent", NULL, 27); + ZEPHIR_CALL_FUNCTION(&_0, "headers_sent", NULL, 22); zephir_check_call_status(); if (!(zephir_is_true(&_0))) { zephir_read_property(&_1$$3, this_ptr, SL("_started"), PH_NOISY_CC | PH_READONLY); @@ -154747,7 +153269,7 @@ static PHP_METHOD(Phalcon_Session_Adapter, start) { _2$$3 = !ZEPHIR_IS_LONG_IDENTICAL(&_3$$3, 2); } if (_2$$3) { - ZEPHIR_CALL_FUNCTION(NULL, "session_start", NULL, 28); + ZEPHIR_CALL_FUNCTION(NULL, "session_start", NULL, 23); zephir_check_call_status(); if (1) { zephir_update_property_zval(this_ptr, SL("_started"), &__$true); @@ -154808,7 +153330,7 @@ static PHP_METHOD(Phalcon_Session_Adapter, setName) { zephir_get_strval(&name, name_param); - ZEPHIR_CALL_FUNCTION(NULL, "session_name", NULL, 29, &name); + ZEPHIR_CALL_FUNCTION(NULL, "session_name", NULL, 24, &name); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -154822,7 +153344,7 @@ static PHP_METHOD(Phalcon_Session_Adapter, getName) { ZEPHIR_MM_GROW(); - ZEPHIR_RETURN_CALL_FUNCTION("session_name", NULL, 29); + ZEPHIR_RETURN_CALL_FUNCTION("session_name", NULL, 24); zephir_check_call_status(); RETURN_MM(); @@ -154848,7 +153370,7 @@ static PHP_METHOD(Phalcon_Session_Adapter, regenerateId) { ZVAL_BOOL(&_0, (deleteOldSession ? 1 : 0)); - ZEPHIR_CALL_FUNCTION(NULL, "session_regenerate_id", NULL, 30, &_0); + ZEPHIR_CALL_FUNCTION(NULL, "session_regenerate_id", NULL, 25, &_0); zephir_check_call_status(); RETURN_THIS(); @@ -154906,7 +153428,6 @@ static PHP_METHOD(Phalcon_Session_Adapter, get) { static PHP_METHOD(Phalcon_Session_Adapter, set) { - int _2, _1$$3; zval *index_param = NULL, *value, value_sub, _SESSION, uniqueId, _0$$3; zval index; ZEPHIR_INIT_THIS(); @@ -154928,18 +153449,10 @@ static PHP_METHOD(Phalcon_Session_Adapter, set) { if (!(ZEPHIR_IS_EMPTY(&uniqueId))) { ZEPHIR_INIT_VAR(&_0$$3); ZEPHIR_CONCAT_VSV(&_0$$3, &uniqueId, "#", &index); - _1$$3 = zephir_maybe_separate_zval(&_SESSION); - zephir_array_update_zval(&_SESSION, &_0$$3, value, PH_COPY | PH_SEPARATE); - if (_1$$3) { - ZEPHIR_SET_SYMBOL(&EG(symbol_table), "_SESSION", &_SESSION); - } + zephir_array_update_zval(&_SESSION, &_0$$3, value, PH_COPY); RETURN_MM_NULL(); } - _2 = zephir_maybe_separate_zval(&_SESSION); - zephir_array_update_zval(&_SESSION, &index, value, PH_COPY | PH_SEPARATE); - if (_2) { - ZEPHIR_SET_SYMBOL(&EG(symbol_table), "_SESSION", &_SESSION); - } + zephir_array_update_zval(&_SESSION, &index, value, PH_COPY); ZEPHIR_MM_RESTORE(); } @@ -155010,7 +153523,7 @@ static PHP_METHOD(Phalcon_Session_Adapter, getId) { ZEPHIR_MM_GROW(); - ZEPHIR_RETURN_CALL_FUNCTION("session_id", NULL, 31); + ZEPHIR_RETURN_CALL_FUNCTION("session_id", NULL, 26); zephir_check_call_status(); RETURN_MM(); @@ -155031,7 +153544,7 @@ static PHP_METHOD(Phalcon_Session_Adapter, setId) { zephir_get_strval(&id, id_param); - ZEPHIR_CALL_FUNCTION(NULL, "session_id", NULL, 31, &id); + ZEPHIR_CALL_FUNCTION(NULL, "session_id", NULL, 26, &id); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -155108,7 +153621,7 @@ static PHP_METHOD(Phalcon_Session_Adapter, destroy) { } else { zephir_update_property_zval(this_ptr, SL("_started"), &__$false); } - ZEPHIR_RETURN_CALL_FUNCTION("session_destroy", NULL, 32); + ZEPHIR_RETURN_CALL_FUNCTION("session_destroy", NULL, 27); zephir_check_call_status(); RETURN_MM(); @@ -155124,7 +153637,7 @@ static PHP_METHOD(Phalcon_Session_Adapter, status) { ZEPHIR_MM_GROW(); - ZEPHIR_CALL_FUNCTION(&status, "session_status", NULL, 33); + ZEPHIR_CALL_FUNCTION(&status, "session_status", NULL, 28); zephir_check_call_status(); do { if (ZEPHIR_IS_LONG(&status, 0)) { @@ -155238,7 +153751,7 @@ static PHP_METHOD(Phalcon_Session_Adapter, __destruct) { zephir_read_property(&_0, this_ptr, SL("_started"), PH_NOISY_CC | PH_READONLY); if (zephir_is_true(&_0)) { - ZEPHIR_CALL_FUNCTION(NULL, "session_write_close", NULL, 34); + ZEPHIR_CALL_FUNCTION(NULL, "session_write_close", NULL, 29); zephir_check_call_status(); if (0) { zephir_update_property_zval(this_ptr, SL("_started"), &__$true); @@ -155338,11 +153851,11 @@ static PHP_METHOD(Phalcon_Session_Bag, __construct) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(&name, name_param); } else { ZEPHIR_INIT_VAR(&name); @@ -155402,7 +153915,7 @@ static PHP_METHOD(Phalcon_Session_Bag, initialize) { ZEPHIR_OBS_VAR(&dependencyInjector); zephir_read_property(&dependencyInjector, this_ptr, SL("_dependencyInjector"), PH_NOISY_CC); if (Z_TYPE_P(&dependencyInjector) != IS_OBJECT) { - ZEPHIR_CALL_CE_STATIC(&dependencyInjector, phalcon_di_ce, "getdefault", &_0, 1); + ZEPHIR_CALL_CE_STATIC(&dependencyInjector, phalcon_di_ce, "getdefault", &_0, 0); zephir_check_call_status(); if (Z_TYPE_P(&dependencyInjector) != IS_OBJECT) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_session_exception_ce, "A dependency injection object is required to access the 'session' service", "phalcon/session/bag.zep", 91); @@ -155478,11 +153991,11 @@ static PHP_METHOD(Phalcon_Session_Bag, set) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &property_param, &value); - if (unlikely(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'property' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(property_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(property_param) == IS_STRING)) { zephir_get_strval(&property, property_param); } else { ZEPHIR_INIT_VAR(&property); @@ -155518,11 +154031,11 @@ static PHP_METHOD(Phalcon_Session_Bag, __set) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &property_param, &value); - if (unlikely(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'property' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(property_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(property_param) == IS_STRING)) { zephir_get_strval(&property, property_param); } else { ZEPHIR_INIT_VAR(&property); @@ -155553,11 +154066,11 @@ static PHP_METHOD(Phalcon_Session_Bag, get) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &property_param, &defaultValue); - if (unlikely(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'property' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(property_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(property_param) == IS_STRING)) { zephir_get_strval(&property, property_param); } else { ZEPHIR_INIT_VAR(&property); @@ -155595,11 +154108,11 @@ static PHP_METHOD(Phalcon_Session_Bag, __get) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &property_param); - if (unlikely(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'property' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(property_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(property_param) == IS_STRING)) { zephir_get_strval(&property, property_param); } else { ZEPHIR_INIT_VAR(&property); @@ -155627,11 +154140,11 @@ static PHP_METHOD(Phalcon_Session_Bag, has) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &property_param); - if (unlikely(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'property' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(property_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(property_param) == IS_STRING)) { zephir_get_strval(&property, property_param); } else { ZEPHIR_INIT_VAR(&property); @@ -155661,11 +154174,11 @@ static PHP_METHOD(Phalcon_Session_Bag, __isset) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &property_param); - if (unlikely(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'property' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(property_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(property_param) == IS_STRING)) { zephir_get_strval(&property, property_param); } else { ZEPHIR_INIT_VAR(&property); @@ -155695,11 +154208,11 @@ static PHP_METHOD(Phalcon_Session_Bag, remove) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &property_param); - if (unlikely(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'property' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(property_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(property_param) == IS_STRING)) { zephir_get_strval(&property, property_param); } else { ZEPHIR_INIT_VAR(&property); @@ -155739,11 +154252,11 @@ static PHP_METHOD(Phalcon_Session_Bag, __unset) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &property_param); - if (unlikely(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'property' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(property_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(property_param) == IS_STRING)) { zephir_get_strval(&property, property_param); } else { ZEPHIR_INIT_VAR(&property); @@ -155796,7 +154309,7 @@ static PHP_METHOD(Phalcon_Session_Bag, getIterator) { } object_init_ex(return_value, zephir_get_internal_ce(SL("arrayiterator"))); zephir_read_property(&_1, this_ptr, SL("_data"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 439, &_1); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 401, &_1); zephir_check_call_status(); RETURN_MM(); @@ -155815,11 +154328,11 @@ static PHP_METHOD(Phalcon_Session_Bag, offsetSet) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &property_param, &value); - if (unlikely(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'property' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(property_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(property_param) == IS_STRING)) { zephir_get_strval(&property, property_param); } else { ZEPHIR_INIT_VAR(&property); @@ -155845,11 +154358,11 @@ static PHP_METHOD(Phalcon_Session_Bag, offsetExists) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &property_param); - if (unlikely(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'property' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(property_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(property_param) == IS_STRING)) { zephir_get_strval(&property, property_param); } else { ZEPHIR_INIT_VAR(&property); @@ -155875,11 +154388,11 @@ static PHP_METHOD(Phalcon_Session_Bag, offsetUnset) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &property_param); - if (unlikely(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'property' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(property_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(property_param) == IS_STRING)) { zephir_get_strval(&property, property_param); } else { ZEPHIR_INIT_VAR(&property); @@ -155905,11 +154418,11 @@ static PHP_METHOD(Phalcon_Session_Bag, offsetGet) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &property_param); - if (unlikely(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'property' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(property_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(property_param) == IS_STRING)) { zephir_get_strval(&property, property_param); } else { ZEPHIR_INIT_VAR(&property); @@ -156085,7 +154598,7 @@ static PHP_METHOD(Phalcon_Session_Adapter_Libmemcached, __construct) { ZVAL_LONG(&lifetime, 8600); } ZVAL_LONG(&_0, 2592000); - ZEPHIR_CALL_FUNCTION(&_1, "min", NULL, 436, &lifetime, &_0); + ZEPHIR_CALL_FUNCTION(&_1, "min", NULL, 399, &lifetime, &_0); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_lifetime"), &_1); ZEPHIR_OBS_VAR(&prefix); @@ -156112,7 +154625,7 @@ static PHP_METHOD(Phalcon_Session_Adapter_Libmemcached, __construct) { ZEPHIR_OBS_VAR(&_5); zephir_read_property(&_5, this_ptr, SL("_lifetime"), PH_NOISY_CC); zephir_array_update_string(&_4, SL("lifetime"), &_5, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(NULL, &_3, "__construct", NULL, 333, &_4); + ZEPHIR_CALL_METHOD(NULL, &_3, "__construct", NULL, 301, &_4); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_6); zephir_create_array(&_6, 5, 0 TSRMLS_CC); @@ -156121,7 +154634,7 @@ static PHP_METHOD(Phalcon_Session_Adapter_Libmemcached, __construct) { zephir_array_update_string(&_6, SL("prefix"), &prefix, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_6, SL("statsKey"), &statsKey, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_6, SL("persistent_id"), &persistentId, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", NULL, 334, &_3, &_6); + ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", NULL, 302, &_3, &_6); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_libmemcached"), &_2); ZEPHIR_INIT_VAR(&_7); @@ -156160,9 +154673,9 @@ static PHP_METHOD(Phalcon_Session_Adapter_Libmemcached, __construct) { ZEPHIR_INIT_NVAR(&_8); ZVAL_STRING(&_8, "gc"); zephir_array_fast_append(&_13, &_8); - ZEPHIR_CALL_FUNCTION(NULL, "session_set_save_handler", NULL, 437, &_7, &_9, &_10, &_11, &_12, &_13); + ZEPHIR_CALL_FUNCTION(NULL, "session_set_save_handler", NULL, 400, &_7, &_9, &_10, &_11, &_12, &_13); zephir_check_call_status(); - ZEPHIR_CALL_PARENT(NULL, phalcon_session_adapter_libmemcached_ce, this_ptr, "__construct", &_14, 438, &options); + ZEPHIR_CALL_PARENT(NULL, phalcon_session_adapter_libmemcached_ce, this_ptr, "__construct", &_14, 0, &options); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -156422,9 +154935,9 @@ static PHP_METHOD(Phalcon_Session_Adapter_Memcache, __construct) { ZEPHIR_OBS_VAR(&_6); zephir_read_property(&_6, this_ptr, SL("_lifetime"), PH_NOISY_CC); zephir_array_update_string(&_5, SL("lifetime"), &_6, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(NULL, &_4, "__construct", NULL, 333, &_5); + ZEPHIR_CALL_METHOD(NULL, &_4, "__construct", NULL, 301, &_5); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, &_3, "__construct", NULL, 336, &_4, &options); + ZEPHIR_CALL_METHOD(NULL, &_3, "__construct", NULL, 303, &_4, &options); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_memcache"), &_3); ZEPHIR_INIT_VAR(&_7); @@ -156463,9 +154976,9 @@ static PHP_METHOD(Phalcon_Session_Adapter_Memcache, __construct) { ZEPHIR_INIT_NVAR(&_8); ZVAL_STRING(&_8, "gc"); zephir_array_fast_append(&_13, &_8); - ZEPHIR_CALL_FUNCTION(NULL, "session_set_save_handler", NULL, 437, &_7, &_9, &_10, &_11, &_12, &_13); + ZEPHIR_CALL_FUNCTION(NULL, "session_set_save_handler", NULL, 400, &_7, &_9, &_10, &_11, &_12, &_13); zephir_check_call_status(); - ZEPHIR_CALL_PARENT(NULL, phalcon_session_adapter_memcache_ce, this_ptr, "__construct", &_14, 438, &options); + ZEPHIR_CALL_PARENT(NULL, phalcon_session_adapter_memcache_ce, this_ptr, "__construct", &_14, 0, &options); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -156705,7 +155218,7 @@ static PHP_METHOD(Phalcon_Session_Adapter_Redis, __construct) { ZEPHIR_CALL_METHOD(NULL, &_3, "__construct", NULL, 0, &_4); zephir_check_call_status(); } - ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", NULL, 337, &_3, &options); + ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", NULL, 304, &_3, &options); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_redis"), &_2); ZEPHIR_INIT_VAR(&_6); @@ -156744,9 +155257,9 @@ static PHP_METHOD(Phalcon_Session_Adapter_Redis, __construct) { ZEPHIR_INIT_NVAR(&_7); ZVAL_STRING(&_7, "gc"); zephir_array_fast_append(&_12, &_7); - ZEPHIR_CALL_FUNCTION(NULL, "session_set_save_handler", NULL, 437, &_6, &_8, &_9, &_10, &_11, &_12); + ZEPHIR_CALL_FUNCTION(NULL, "session_set_save_handler", NULL, 400, &_6, &_8, &_9, &_10, &_11, &_12); zephir_check_call_status(); - ZEPHIR_CALL_PARENT(NULL, phalcon_session_adapter_redis_ce, this_ptr, "__construct", &_13, 438, &options); + ZEPHIR_CALL_PARENT(NULL, phalcon_session_adapter_redis_ce, this_ptr, "__construct", &_13, 0, &options); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -156985,7 +155498,7 @@ static PHP_METHOD(Phalcon_Tag_Select, selectField) { } ZEPHIR_OBS_VAR(&value); if (!(zephir_array_isset_string_fetch(&value, ¶ms, SL("value"), 0))) { - ZEPHIR_CALL_CE_STATIC(&value, phalcon_tag_ce, "getvalue", &_1, 6, &id, ¶ms); + ZEPHIR_CALL_CE_STATIC(&value, phalcon_tag_ce, "getvalue", &_1, 0, &id, ¶ms); zephir_check_call_status(); } else { zephir_array_unset_string(¶ms, SL("value"), PH_SEPARATE); @@ -157031,7 +155544,7 @@ static PHP_METHOD(Phalcon_Tag_Select, selectField) { zephir_array_unset_string(¶ms, SL("using"), PH_SEPARATE); ZEPHIR_INIT_VAR(&_5); ZVAL_STRING(&_5, "", &_10$$24); - ZEPHIR_CALL_SELF(&_8$$24, "_optionsfromresultset", &_9, 444, &options, &using, &value, &_11$$24); + ZEPHIR_CALL_SELF(&_8$$24, "_optionsfromresultset", &_9, 406, &options, &using, &value, &_11$$24); zephir_check_call_status(); zephir_concat_self(&code, &_8$$24 TSRMLS_CC); } else { @@ -157058,7 +155571,7 @@ static PHP_METHOD(Phalcon_Tag_Select, selectField) { ZEPHIR_GET_CONSTANT(&_14$$26, "PHP_EOL"); ZEPHIR_INIT_VAR(&_15$$26); ZEPHIR_CONCAT_SV(&_15$$26, "", &_14$$26); - ZEPHIR_CALL_SELF(&_12$$26, "_optionsfromarray", &_13, 445, &options, &value, &_15$$26); + ZEPHIR_CALL_SELF(&_12$$26, "_optionsfromarray", &_13, 407, &options, &value, &_15$$26); zephir_check_call_status(); zephir_concat_self(&code, &_12$$26 TSRMLS_CC); } else { @@ -157123,7 +155636,7 @@ static PHP_METHOD(Phalcon_Tag_Select, _optionsFromResultset) { ZEPHIR_OBS_VAR(&usingOne); zephir_array_fetch_long(&usingOne, using, 1, PH_NOISY, "phalcon/tag/select.zep", 168 TSRMLS_CC); } - ZEPHIR_CALL_CE_STATIC(&_0, phalcon_tag_ce, "getescaperservice", &_1, 446); + ZEPHIR_CALL_CE_STATIC(&_0, phalcon_tag_ce, "getescaperservice", &_1, 0); zephir_check_call_status(); ZEPHIR_CPY_WRT(&escaper, &_0); _2 = zephir_get_iterator(resultset TSRMLS_CC); @@ -157254,12 +155767,12 @@ static PHP_METHOD(Phalcon_Tag_Select, _optionsFromArray) { } ZEPHIR_INIT_NVAR(&optionText); ZVAL_COPY(&optionText, _0); - ZEPHIR_CALL_FUNCTION(&escaped, "htmlspecialchars", &_3, 188, &optionValue); + ZEPHIR_CALL_FUNCTION(&escaped, "htmlspecialchars", &_3, 170, &optionValue); zephir_check_call_status(); if (Z_TYPE_P(&optionText) == IS_ARRAY) { ZEPHIR_INIT_NVAR(&_4$$4); ZEPHIR_GET_CONSTANT(&_4$$4, "PHP_EOL"); - ZEPHIR_CALL_SELF(&_5$$4, "_optionsfromarray", &_6, 445, &optionText, value, closeOption); + ZEPHIR_CALL_SELF(&_5$$4, "_optionsfromarray", &_6, 407, &optionText, value, closeOption); zephir_check_call_status(); ZEPHIR_INIT_NVAR(&_7$$4); ZEPHIR_GET_CONSTANT(&_7$$4, "PHP_EOL"); @@ -157382,11 +155895,11 @@ static PHP_METHOD(Phalcon_Translate_Adapter, t) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &translateKey_param, &placeholders); - if (unlikely(Z_TYPE_P(translateKey_param) != IS_STRING && Z_TYPE_P(translateKey_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(translateKey_param) != IS_STRING && Z_TYPE_P(translateKey_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'translateKey' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(translateKey_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(translateKey_param) == IS_STRING)) { zephir_get_strval(&translateKey, translateKey_param); } else { ZEPHIR_INIT_VAR(&translateKey); @@ -157418,11 +155931,11 @@ static PHP_METHOD(Phalcon_Translate_Adapter, _) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &translateKey_param, &placeholders); - if (unlikely(Z_TYPE_P(translateKey_param) != IS_STRING && Z_TYPE_P(translateKey_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(translateKey_param) != IS_STRING && Z_TYPE_P(translateKey_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'translateKey' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(translateKey_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(translateKey_param) == IS_STRING)) { zephir_get_strval(&translateKey, translateKey_param); } else { ZEPHIR_INIT_VAR(&translateKey); @@ -157469,11 +155982,11 @@ static PHP_METHOD(Phalcon_Translate_Adapter, offsetExists) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &translateKey_param); - if (unlikely(Z_TYPE_P(translateKey_param) != IS_STRING && Z_TYPE_P(translateKey_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(translateKey_param) != IS_STRING && Z_TYPE_P(translateKey_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'translateKey' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(translateKey_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(translateKey_param) == IS_STRING)) { zephir_get_strval(&translateKey, translateKey_param); } else { ZEPHIR_INIT_VAR(&translateKey); @@ -157516,11 +156029,11 @@ static PHP_METHOD(Phalcon_Translate_Adapter, offsetGet) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &translateKey_param); - if (unlikely(Z_TYPE_P(translateKey_param) != IS_STRING && Z_TYPE_P(translateKey_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(translateKey_param) != IS_STRING && Z_TYPE_P(translateKey_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'translateKey' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(translateKey_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(translateKey_param) == IS_STRING)) { zephir_get_strval(&translateKey, translateKey_param); } else { ZEPHIR_INIT_VAR(&translateKey); @@ -157550,11 +156063,11 @@ static PHP_METHOD(Phalcon_Translate_Adapter, replacePlaceholders) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &translation_param, &placeholders); - if (unlikely(Z_TYPE_P(translation_param) != IS_STRING && Z_TYPE_P(translation_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(translation_param) != IS_STRING && Z_TYPE_P(translation_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'translation' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(translation_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(translation_param) == IS_STRING)) { zephir_get_strval(&translation, translation_param); } else { ZEPHIR_INIT_VAR(&translation); @@ -157678,7 +156191,7 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Csv, __construct) { ZEPHIR_OBS_COPY_OR_DUP(&options, options_param); - ZEPHIR_CALL_PARENT(NULL, phalcon_translate_adapter_csv_ce, this_ptr, "__construct", &_0, 455, &options); + ZEPHIR_CALL_PARENT(NULL, phalcon_translate_adapter_csv_ce, this_ptr, "__construct", &_0, 0, &options); zephir_check_call_status(); if (!(zephir_array_isset_string(&options, SL("content")))) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_translate_exception_ce, "Parameter 'content' is required", "phalcon/translate/adapter/csv.zep", 42); @@ -157690,7 +156203,7 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Csv, __construct) { ZVAL_STRING(&_3, ";"); ZEPHIR_INIT_VAR(&_4); ZVAL_STRING(&_4, "\""); - ZEPHIR_CALL_METHOD(NULL, this_ptr, "_load", NULL, 456, &_1, &_2, &_3, &_4); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "_load", NULL, 414, &_1, &_2, &_3, &_4); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -157727,21 +156240,21 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Csv, _load) { ZEPHIR_INIT_VAR(&_0); ZVAL_STRING(&_0, "rb"); - ZEPHIR_CALL_FUNCTION(&fileHandler, "fopen", NULL, 295, file, &_0); + ZEPHIR_CALL_FUNCTION(&fileHandler, "fopen", NULL, 263, file, &_0); zephir_check_call_status(); if (Z_TYPE_P(&fileHandler) != IS_RESOURCE) { ZEPHIR_INIT_VAR(&_1$$3); object_init_ex(&_1$$3, phalcon_translate_exception_ce); ZEPHIR_INIT_VAR(&_2$$3); ZEPHIR_CONCAT_SVS(&_2$$3, "Error opening translation file '", file, "'"); - ZEPHIR_CALL_METHOD(NULL, &_1$$3, "__construct", NULL, 9, &_2$$3); + ZEPHIR_CALL_METHOD(NULL, &_1$$3, "__construct", NULL, 4, &_2$$3); zephir_check_call_status(); zephir_throw_exception_debug(&_1$$3, "phalcon/translate/adapter/csv.zep", 63 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } while (1) { - ZEPHIR_CALL_FUNCTION(&data, "fgetcsv", &_3, 457, &fileHandler, length, delimiter, enclosure); + ZEPHIR_CALL_FUNCTION(&data, "fgetcsv", &_3, 415, &fileHandler, length, delimiter, enclosure); zephir_check_call_status(); if (ZEPHIR_IS_FALSE_IDENTICAL(&data)) { break; @@ -157784,11 +156297,11 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Csv, query) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &index_param, &placeholders); - if (unlikely(Z_TYPE_P(index_param) != IS_STRING && Z_TYPE_P(index_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(index_param) != IS_STRING && Z_TYPE_P(index_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'index' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(index_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(index_param) == IS_STRING)) { zephir_get_strval(&index, index_param); } else { ZEPHIR_INIT_VAR(&index); @@ -157823,11 +156336,11 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Csv, exists) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &index_param); - if (unlikely(Z_TYPE_P(index_param) != IS_STRING && Z_TYPE_P(index_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(index_param) != IS_STRING && Z_TYPE_P(index_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'index' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(index_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(index_param) == IS_STRING)) { zephir_get_strval(&index, index_param); } else { ZEPHIR_INIT_VAR(&index); @@ -157946,7 +156459,7 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, __construct) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_translate_exception_ce, "This class requires the gettext extension for PHP", "phalcon/translate/adapter/gettext.zep", 72); return; } - ZEPHIR_CALL_PARENT(NULL, phalcon_translate_adapter_gettext_ce, this_ptr, "__construct", &_0, 455, &options); + ZEPHIR_CALL_PARENT(NULL, phalcon_translate_adapter_gettext_ce, this_ptr, "__construct", &_0, 0, &options); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, this_ptr, "prepareoptions", NULL, 0, &options); zephir_check_call_status(); @@ -157969,11 +156482,11 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, query) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &index_param, &placeholders); - if (unlikely(Z_TYPE_P(index_param) != IS_STRING && Z_TYPE_P(index_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(index_param) != IS_STRING && Z_TYPE_P(index_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'index' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(index_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(index_param) == IS_STRING)) { zephir_get_strval(&index, index_param); } else { ZEPHIR_INIT_VAR(&index); @@ -157985,7 +156498,7 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, query) { } - ZEPHIR_CALL_FUNCTION(&translation, "gettext", NULL, 458, &index); + ZEPHIR_CALL_FUNCTION(&translation, "gettext", NULL, 416, &index); zephir_check_call_status(); ZEPHIR_RETURN_CALL_METHOD(this_ptr, "replaceplaceholders", NULL, 0, &translation, placeholders); zephir_check_call_status(); @@ -158006,11 +156519,11 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, exists) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &index_param); - if (unlikely(Z_TYPE_P(index_param) != IS_STRING && Z_TYPE_P(index_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(index_param) != IS_STRING && Z_TYPE_P(index_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'index' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(index_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(index_param) == IS_STRING)) { zephir_get_strval(&index, index_param); } else { ZEPHIR_INIT_VAR(&index); @@ -158043,27 +156556,27 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, nquery) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 2, &msgid1_param, &msgid2_param, &count_param, &placeholders, &domain_param); - if (unlikely(Z_TYPE_P(msgid1_param) != IS_STRING && Z_TYPE_P(msgid1_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(msgid1_param) != IS_STRING && Z_TYPE_P(msgid1_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'msgid1' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(msgid1_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(msgid1_param) == IS_STRING)) { zephir_get_strval(&msgid1, msgid1_param); } else { ZEPHIR_INIT_VAR(&msgid1); ZVAL_EMPTY_STRING(&msgid1); } - if (unlikely(Z_TYPE_P(msgid2_param) != IS_STRING && Z_TYPE_P(msgid2_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(msgid2_param) != IS_STRING && Z_TYPE_P(msgid2_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'msgid2' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(msgid2_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(msgid2_param) == IS_STRING)) { zephir_get_strval(&msgid2, msgid2_param); } else { ZEPHIR_INIT_VAR(&msgid2); ZVAL_EMPTY_STRING(&msgid2); } - if (unlikely(Z_TYPE_P(count_param) != IS_LONG)) { + if (UNEXPECTED(Z_TYPE_P(count_param) != IS_LONG)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'count' must be a int") TSRMLS_CC); RETURN_MM_NULL(); } @@ -158076,11 +156589,11 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, nquery) { ZEPHIR_INIT_VAR(&domain); ZVAL_STRING(&domain, ""); } else { - if (unlikely(Z_TYPE_P(domain_param) != IS_STRING && Z_TYPE_P(domain_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(domain_param) != IS_STRING && Z_TYPE_P(domain_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'domain' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(domain_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(domain_param) == IS_STRING)) { zephir_get_strval(&domain, domain_param); } else { ZEPHIR_INIT_VAR(&domain); @@ -158091,11 +156604,11 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, nquery) { if (!(!(Z_TYPE_P(&domain) == IS_UNDEF) && Z_STRLEN_P(&domain))) { ZVAL_LONG(&_0$$3, count); - ZEPHIR_CALL_FUNCTION(&translation, "ngettext", NULL, 459, &msgid1, &msgid2, &_0$$3); + ZEPHIR_CALL_FUNCTION(&translation, "ngettext", NULL, 417, &msgid1, &msgid2, &_0$$3); zephir_check_call_status(); } else { ZVAL_LONG(&_1$$4, count); - ZEPHIR_CALL_FUNCTION(&translation, "dngettext", NULL, 460, &domain, &msgid1, &msgid2, &_1$$4); + ZEPHIR_CALL_FUNCTION(&translation, "dngettext", NULL, 418, &domain, &msgid1, &msgid2, &_1$$4); zephir_check_call_status(); } ZEPHIR_RETURN_CALL_METHOD(this_ptr, "replaceplaceholders", NULL, 0, &translation, placeholders); @@ -158117,7 +156630,7 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, setDomain) { - ZEPHIR_RETURN_CALL_FUNCTION("textdomain", NULL, 461, domain); + ZEPHIR_RETURN_CALL_FUNCTION("textdomain", NULL, 419, domain); zephir_check_call_status(); RETURN_MM(); @@ -158135,7 +156648,7 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, resetDomain) { ZEPHIR_CALL_METHOD(&_0, this_ptr, "getdefaultdomain", NULL, 0); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_FUNCTION("textdomain", NULL, 461, &_0); + ZEPHIR_RETURN_CALL_FUNCTION("textdomain", NULL, 419, &_0); zephir_check_call_status(); RETURN_MM(); @@ -158152,11 +156665,11 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, setDefaultDomain) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &domain_param); - if (unlikely(Z_TYPE_P(domain_param) != IS_STRING && Z_TYPE_P(domain_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(domain_param) != IS_STRING && Z_TYPE_P(domain_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'domain' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(domain_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(domain_param) == IS_STRING)) { zephir_get_strval(&domain, domain_param); } else { ZEPHIR_INIT_VAR(&domain); @@ -158204,7 +156717,7 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, setDirectory) { } ZEPHIR_INIT_NVAR(&value); ZVAL_COPY(&value, _0$$4); - ZEPHIR_CALL_FUNCTION(NULL, "bindtextdomain", &_3, 462, &key, &value); + ZEPHIR_CALL_FUNCTION(NULL, "bindtextdomain", &_3, 420, &key, &value); zephir_check_call_status(); } ZEND_HASH_FOREACH_END(); ZEPHIR_INIT_NVAR(&value); @@ -158212,7 +156725,7 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, setDirectory) { } else { ZEPHIR_CALL_METHOD(&_4$$6, this_ptr, "getdefaultdomain", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(NULL, "bindtextdomain", &_3, 462, &_4$$6, directory); + ZEPHIR_CALL_FUNCTION(NULL, "bindtextdomain", &_3, 420, &_4$$6, directory); zephir_check_call_status(); } ZEPHIR_MM_RESTORE(); @@ -158243,16 +156756,16 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, setLocale) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &category_param, &locale_param); - if (unlikely(Z_TYPE_P(category_param) != IS_LONG)) { + if (UNEXPECTED(Z_TYPE_P(category_param) != IS_LONG)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'category' must be a int") TSRMLS_CC); RETURN_MM_NULL(); } category = Z_LVAL_P(category_param); - if (unlikely(Z_TYPE_P(locale_param) != IS_STRING && Z_TYPE_P(locale_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(locale_param) != IS_STRING && Z_TYPE_P(locale_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'locale' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(locale_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(locale_param) == IS_STRING)) { zephir_get_strval(&locale, locale_param); } else { ZEPHIR_INIT_VAR(&locale); @@ -158261,8 +156774,8 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, setLocale) { ZEPHIR_INIT_VAR(&_0); - ZEPHIR_CALL_FUNCTION(&_1, "func_get_args", NULL, 173); - zephir_check_call_status(); + ZEPHIR_INIT_VAR(&_1); + zephir_get_args(&_1); ZEPHIR_INIT_VAR(&_2); ZVAL_STRING(&_2, "setlocale"); ZEPHIR_CALL_USER_FUNC_ARRAY(&_0, &_2, &_1); @@ -158274,21 +156787,21 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, setLocale) { zephir_read_property(&_3, this_ptr, SL("_locale"), PH_NOISY_CC | PH_READONLY); ZEPHIR_INIT_VAR(&_4); ZEPHIR_CONCAT_SV(&_4, "LC_ALL=", &_3); - ZEPHIR_CALL_FUNCTION(NULL, "putenv", &_5, 463, &_4); + ZEPHIR_CALL_FUNCTION(NULL, "putenv", &_5, 421, &_4); zephir_check_call_status(); zephir_read_property(&_6, this_ptr, SL("_locale"), PH_NOISY_CC | PH_READONLY); ZEPHIR_INIT_VAR(&_7); ZEPHIR_CONCAT_SV(&_7, "LANG=", &_6); - ZEPHIR_CALL_FUNCTION(NULL, "putenv", &_5, 463, &_7); + ZEPHIR_CALL_FUNCTION(NULL, "putenv", &_5, 421, &_7); zephir_check_call_status(); zephir_read_property(&_8, this_ptr, SL("_locale"), PH_NOISY_CC | PH_READONLY); ZEPHIR_INIT_VAR(&_9); ZEPHIR_CONCAT_SV(&_9, "LANGUAGE=", &_8); - ZEPHIR_CALL_FUNCTION(NULL, "putenv", &_5, 463, &_9); + ZEPHIR_CALL_FUNCTION(NULL, "putenv", &_5, 421, &_9); zephir_check_call_status(); zephir_read_property(&_10, this_ptr, SL("_locale"), PH_NOISY_CC | PH_READONLY); ZVAL_LONG(&_11, 6); - ZEPHIR_CALL_FUNCTION(NULL, "setlocale", NULL, 443, &_11, &_10); + ZEPHIR_CALL_FUNCTION(NULL, "setlocale", NULL, 405, &_11, &_10); zephir_check_call_status(); RETURN_MM_MEMBER(this_ptr, "_locale"); @@ -158396,7 +156909,7 @@ static PHP_METHOD(Phalcon_Translate_Adapter_NativeArray, __construct) { ZEPHIR_OBS_COPY_OR_DUP(&options, options_param); - ZEPHIR_CALL_PARENT(NULL, phalcon_translate_adapter_nativearray_ce, this_ptr, "__construct", &_0, 455, &options); + ZEPHIR_CALL_PARENT(NULL, phalcon_translate_adapter_nativearray_ce, this_ptr, "__construct", &_0, 0, &options); zephir_check_call_status(); ZEPHIR_OBS_VAR(&data); if (!(zephir_array_isset_string_fetch(&data, &options, SL("content"), 0))) { @@ -158428,11 +156941,11 @@ static PHP_METHOD(Phalcon_Translate_Adapter_NativeArray, query) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &index_param, &placeholders); - if (unlikely(Z_TYPE_P(index_param) != IS_STRING && Z_TYPE_P(index_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(index_param) != IS_STRING && Z_TYPE_P(index_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'index' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(index_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(index_param) == IS_STRING)) { zephir_get_strval(&index, index_param); } else { ZEPHIR_INIT_VAR(&index); @@ -158467,11 +156980,11 @@ static PHP_METHOD(Phalcon_Translate_Adapter_NativeArray, exists) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &index_param); - if (unlikely(Z_TYPE_P(index_param) != IS_STRING && Z_TYPE_P(index_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(index_param) != IS_STRING && Z_TYPE_P(index_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'index' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(index_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(index_param) == IS_STRING)) { zephir_get_strval(&index, index_param); } else { ZEPHIR_INIT_VAR(&index); @@ -158523,11 +157036,11 @@ static PHP_METHOD(Phalcon_Translate_Interpolator_AssociativeArray, replacePlaceh ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &translation_param, &placeholders); - if (unlikely(Z_TYPE_P(translation_param) != IS_STRING && Z_TYPE_P(translation_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(translation_param) != IS_STRING && Z_TYPE_P(translation_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'translation' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(translation_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(translation_param) == IS_STRING)) { zephir_get_strval(&translation, translation_param); } else { ZEPHIR_INIT_VAR(&translation); @@ -158603,11 +157116,11 @@ static PHP_METHOD(Phalcon_Translate_Interpolator_IndexedArray, replacePlaceholde ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &translation_param, &placeholders); - if (unlikely(Z_TYPE_P(translation_param) != IS_STRING && Z_TYPE_P(translation_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(translation_param) != IS_STRING && Z_TYPE_P(translation_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'translation' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(translation_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(translation_param) == IS_STRING)) { zephir_get_strval(&translation, translation_param); } else { ZEPHIR_INIT_VAR(&translation); @@ -158625,7 +157138,7 @@ static PHP_METHOD(Phalcon_Translate_Interpolator_IndexedArray, replacePlaceholde } if (_0) { ZEPHIR_MAKE_REF(placeholders); - ZEPHIR_CALL_FUNCTION(NULL, "array_unshift", NULL, 403, placeholders, &translation); + ZEPHIR_CALL_FUNCTION(NULL, "array_unshift", NULL, 366, placeholders, &translation); ZEPHIR_UNREF(placeholders); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_1$$3); @@ -158717,11 +157230,11 @@ static PHP_METHOD(Phalcon_Validation_Message, __construct) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 3, &message_param, &field, &type_param, &code_param); - if (unlikely(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'message' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(message_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(message_param) == IS_STRING)) { zephir_get_strval(&message, message_param); } else { ZEPHIR_INIT_VAR(&message); @@ -158765,11 +157278,11 @@ static PHP_METHOD(Phalcon_Validation_Message, setType) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &type_param); - if (unlikely(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'type' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(type_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(type_param) == IS_STRING)) { zephir_get_strval(&type, type_param); } else { ZEPHIR_INIT_VAR(&type); @@ -158802,11 +157315,11 @@ static PHP_METHOD(Phalcon_Validation_Message, setMessage) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &message_param); - if (unlikely(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'message' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(message_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(message_param) == IS_STRING)) { zephir_get_strval(&message, message_param); } else { ZEPHIR_INIT_VAR(&message); @@ -158913,7 +157426,7 @@ static PHP_METHOD(Phalcon_Validation_Message, __set_state) { zephir_array_fetch_string(&_0, &message, SL("_message"), PH_NOISY | PH_READONLY, "phalcon/validation/message.zep", 134 TSRMLS_CC); zephir_array_fetch_string(&_1, &message, SL("_field"), PH_NOISY | PH_READONLY, "phalcon/validation/message.zep", 134 TSRMLS_CC); zephir_array_fetch_string(&_2, &message, SL("_type"), PH_NOISY | PH_READONLY, "phalcon/validation/message.zep", 134 TSRMLS_CC); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 467, &_0, &_1, &_2); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 425, &_0, &_1, &_2); zephir_check_call_status(); RETURN_MM(); @@ -159010,11 +157523,11 @@ static PHP_METHOD(Phalcon_Validation_Validator, isSetOption) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &key_param); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(&key, key_param); } else { ZEPHIR_INIT_VAR(&key); @@ -159039,11 +157552,11 @@ static PHP_METHOD(Phalcon_Validation_Validator, hasOption) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &key_param); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(&key, key_param); } else { ZEPHIR_INIT_VAR(&key); @@ -159073,11 +157586,11 @@ static PHP_METHOD(Phalcon_Validation_Validator, getOption) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &key_param, &defaultValue); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(&key, key_param); } else { ZEPHIR_INIT_VAR(&key); @@ -159121,11 +157634,11 @@ static PHP_METHOD(Phalcon_Validation_Validator, setOption) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &key_param, &value); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(&key, key_param); } else { ZEPHIR_INIT_VAR(&key); @@ -159226,7 +157739,7 @@ static PHP_METHOD(Phalcon_Validation_Message_Group, offsetGet) { zephir_fetch_params(0, 1, 0, &index_param); - if (unlikely(Z_TYPE_P(index_param) != IS_LONG)) { + if (UNEXPECTED(Z_TYPE_P(index_param) != IS_LONG)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'index' must be a int") TSRMLS_CC); RETURN_NULL(); } @@ -159253,7 +157766,7 @@ static PHP_METHOD(Phalcon_Validation_Message_Group, offsetSet) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &index_param, &message); - if (unlikely(Z_TYPE_P(index_param) != IS_LONG)) { + if (UNEXPECTED(Z_TYPE_P(index_param) != IS_LONG)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'index' must be a int") TSRMLS_CC); RETURN_MM_NULL(); } @@ -159312,7 +157825,7 @@ static PHP_METHOD(Phalcon_Validation_Message_Group, offsetUnset) { zephir_read_property(&_1$$3, this_ptr, SL("_messages"), PH_NOISY_CC | PH_READONLY); ZVAL_LONG(&_2$$3, 1); ZEPHIR_MAKE_REF(&_1$$3); - ZEPHIR_CALL_FUNCTION(NULL, "array_splice", NULL, 468, &_1$$3, index, &_2$$3); + ZEPHIR_CALL_FUNCTION(NULL, "array_splice", NULL, 426, &_1$$3, index, &_2$$3); ZEPHIR_UNREF(&_1$$3); zephir_check_call_status(); } @@ -159409,11 +157922,11 @@ static PHP_METHOD(Phalcon_Validation_Message_Group, filter) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &fieldName_param); - if (unlikely(Z_TYPE_P(fieldName_param) != IS_STRING && Z_TYPE_P(fieldName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(fieldName_param) != IS_STRING && Z_TYPE_P(fieldName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'fieldName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(fieldName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(fieldName_param) == IS_STRING)) { zephir_get_strval(&fieldName, fieldName_param); } else { ZEPHIR_INIT_VAR(&fieldName); @@ -159540,7 +158053,7 @@ static PHP_METHOD(Phalcon_Validation_Message_Group, __set_state) { object_init_ex(return_value, phalcon_validation_message_group_ce); zephir_array_fetch_string(&_0, group, SL("_messages"), PH_NOISY | PH_READONLY, "phalcon/validation/message/group.zep", 271 TSRMLS_CC); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 3, &_0); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 2, &_0); zephir_check_call_status(); RETURN_MM(); @@ -159613,11 +158126,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_Alnum, validate) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &validation, &field_param); - if (unlikely(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'field' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(field_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(field_param) == IS_STRING)) { zephir_get_strval(&field, field_param); } else { ZEPHIR_INIT_VAR(&field); @@ -159627,7 +158140,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Alnum, validate) { ZEPHIR_CALL_METHOD(&value, validation, "getvalue", NULL, 0, &field); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_0, "ctype_alnum", NULL, 469, &value); + ZEPHIR_CALL_FUNCTION(&_0, "ctype_alnum", NULL, 427, &value); zephir_check_call_status(); if (!(zephir_is_true(&_0))) { ZEPHIR_INIT_VAR(&_1$$3); @@ -159669,11 +158182,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_Alnum, validate) { } ZEPHIR_INIT_NVAR(&_1$$3); object_init_ex(&_1$$3, phalcon_validation_message_ce); - ZEPHIR_CALL_FUNCTION(&_6$$3, "strtr", NULL, 26, &message, &replacePairs); + ZEPHIR_CALL_FUNCTION(&_6$$3, "strtr", NULL, 21, &message, &replacePairs); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_7$$3); ZVAL_STRING(&_7$$3, "Alnum"); - ZEPHIR_CALL_METHOD(NULL, &_1$$3, "__construct", NULL, 467, &_6$$3, &field, &_7$$3, &code); + ZEPHIR_CALL_METHOD(NULL, &_1$$3, "__construct", NULL, 425, &_6$$3, &field, &_7$$3, &code); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, &_1$$3); zephir_check_call_status(); @@ -159729,11 +158242,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_Alpha, validate) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &validation, &field_param); - if (unlikely(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'field' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(field_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(field_param) == IS_STRING)) { zephir_get_strval(&field, field_param); } else { ZEPHIR_INIT_VAR(&field); @@ -159788,11 +158301,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_Alpha, validate) { } ZEPHIR_INIT_NVAR(&_3$$3); object_init_ex(&_3$$3, phalcon_validation_message_ce); - ZEPHIR_CALL_FUNCTION(&_8$$3, "strtr", NULL, 26, &message, &replacePairs); + ZEPHIR_CALL_FUNCTION(&_8$$3, "strtr", NULL, 21, &message, &replacePairs); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_9$$3); ZVAL_STRING(&_9$$3, "Alpha"); - ZEPHIR_CALL_METHOD(NULL, &_3$$3, "__construct", NULL, 467, &_8$$3, &field, &_9$$3, &code); + ZEPHIR_CALL_METHOD(NULL, &_3$$3, "__construct", NULL, 425, &_8$$3, &field, &_9$$3, &code); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, &_3$$3); zephir_check_call_status(); @@ -159851,11 +158364,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_Between, validate) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &validation, &field_param); - if (unlikely(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'field' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(field_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(field_param) == IS_STRING)) { zephir_get_strval(&field, field_param); } else { ZEPHIR_INIT_VAR(&field); @@ -159927,11 +158440,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_Between, validate) { } ZEPHIR_INIT_NVAR(&_4$$5); object_init_ex(&_4$$5, phalcon_validation_message_ce); - ZEPHIR_CALL_FUNCTION(&_9$$5, "strtr", NULL, 26, &message, &replacePairs); + ZEPHIR_CALL_FUNCTION(&_9$$5, "strtr", NULL, 21, &message, &replacePairs); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_10$$5); ZVAL_STRING(&_10$$5, "Between"); - ZEPHIR_CALL_METHOD(NULL, &_4$$5, "__construct", NULL, 467, &_9$$5, &field, &_10$$5, &code); + ZEPHIR_CALL_METHOD(NULL, &_4$$5, "__construct", NULL, 425, &_9$$5, &field, &_10$$5, &code); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, &_4$$5); zephir_check_call_status(); @@ -159988,11 +158501,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_Callback, validate) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &validation, &field_param); - if (unlikely(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'field' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(field_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(field_param) == IS_STRING)) { zephir_get_strval(&field, field_param); } else { ZEPHIR_INIT_VAR(&field); @@ -160011,7 +158524,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Callback, validate) { ZEPHIR_CALL_METHOD(&data, validation, "getdata", NULL, 0); zephir_check_call_status(); } - ZEPHIR_CALL_FUNCTION(&returnedValue, "call_user_func", NULL, 399, &callback, &data); + ZEPHIR_CALL_FUNCTION(&returnedValue, "call_user_func", NULL, 362, &callback, &data); zephir_check_call_status(); _1$$3 = Z_TYPE_P(&returnedValue) == IS_OBJECT; if (_1$$3) { @@ -160058,11 +158571,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_Callback, validate) { } ZEPHIR_INIT_NVAR(&_2$$6); object_init_ex(&_2$$6, phalcon_validation_message_ce); - ZEPHIR_CALL_FUNCTION(&_7$$6, "strtr", NULL, 26, &message, &replacePairs); + ZEPHIR_CALL_FUNCTION(&_7$$6, "strtr", NULL, 21, &message, &replacePairs); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_8$$6); ZVAL_STRING(&_8$$6, "Callback"); - ZEPHIR_CALL_METHOD(NULL, &_2$$6, "__construct", NULL, 467, &_7$$6, &field, &_8$$6, &code); + ZEPHIR_CALL_METHOD(NULL, &_2$$6, "__construct", NULL, 425, &_7$$6, &field, &_8$$6, &code); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, &_2$$6); zephir_check_call_status(); @@ -160131,11 +158644,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_Confirmation, validate) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &validation, &field_param); - if (unlikely(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'field' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(field_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(field_param) == IS_STRING)) { zephir_get_strval(&field, field_param); } else { ZEPHIR_INIT_VAR(&field); @@ -160155,7 +158668,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Confirmation, validate) { zephir_check_call_status(); ZEPHIR_CALL_METHOD(&valueWith, validation, "getvalue", NULL, 0, &fieldWith); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_2, this_ptr, "compare", NULL, 470, &value, &valueWith); + ZEPHIR_CALL_METHOD(&_2, this_ptr, "compare", NULL, 428, &value, &valueWith); zephir_check_call_status(); if (!(zephir_is_true(&_2))) { ZEPHIR_INIT_VAR(&_3$$4); @@ -160210,11 +158723,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_Confirmation, validate) { } ZEPHIR_INIT_NVAR(&_3$$4); object_init_ex(&_3$$4, phalcon_validation_message_ce); - ZEPHIR_CALL_FUNCTION(&_9$$4, "strtr", NULL, 26, &message, &replacePairs); + ZEPHIR_CALL_FUNCTION(&_9$$4, "strtr", NULL, 21, &message, &replacePairs); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_10$$4); ZVAL_STRING(&_10$$4, "Confirmation"); - ZEPHIR_CALL_METHOD(NULL, &_3$$4, "__construct", NULL, 467, &_9$$4, &field, &_10$$4, &code); + ZEPHIR_CALL_METHOD(NULL, &_3$$4, "__construct", NULL, 425, &_9$$4, &field, &_10$$4, &code); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, &_3$$4); zephir_check_call_status(); @@ -160260,12 +158773,12 @@ static PHP_METHOD(Phalcon_Validation_Validator_Confirmation, compare) { } ZEPHIR_INIT_VAR(&_3$$3); ZVAL_STRING(&_3$$3, "utf-8"); - ZEPHIR_CALL_FUNCTION(&_4$$3, "mb_strtolower", &_5, 201, &a, &_3$$3); + ZEPHIR_CALL_FUNCTION(&_4$$3, "mb_strtolower", &_5, 183, &a, &_3$$3); zephir_check_call_status(); zephir_get_strval(&a, &_4$$3); ZEPHIR_INIT_NVAR(&_3$$3); ZVAL_STRING(&_3$$3, "utf-8"); - ZEPHIR_CALL_FUNCTION(&_6$$3, "mb_strtolower", &_5, 201, &b, &_3$$3); + ZEPHIR_CALL_FUNCTION(&_6$$3, "mb_strtolower", &_5, 183, &b, &_3$$3); zephir_check_call_status(); zephir_get_strval(&b, &_6$$3); } @@ -160317,11 +158830,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_CreditCard, validate) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &validation, &field_param); - if (unlikely(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'field' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(field_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(field_param) == IS_STRING)) { zephir_get_strval(&field, field_param); } else { ZEPHIR_INIT_VAR(&field); @@ -160331,7 +158844,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_CreditCard, validate) { ZEPHIR_CALL_METHOD(&value, validation, "getvalue", NULL, 0, &field); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&valid, this_ptr, "verifybyluhnalgorithm", NULL, 471, &value); + ZEPHIR_CALL_METHOD(&valid, this_ptr, "verifybyluhnalgorithm", NULL, 429, &value); zephir_check_call_status(); if (!(zephir_is_true(&valid))) { ZEPHIR_INIT_VAR(&_0$$3); @@ -160373,11 +158886,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_CreditCard, validate) { } ZEPHIR_INIT_NVAR(&_0$$3); object_init_ex(&_0$$3, phalcon_validation_message_ce); - ZEPHIR_CALL_FUNCTION(&_5$$3, "strtr", NULL, 26, &message, &replacePairs); + ZEPHIR_CALL_FUNCTION(&_5$$3, "strtr", NULL, 21, &message, &replacePairs); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_6$$3); ZVAL_STRING(&_6$$3, "CreditCard"); - ZEPHIR_CALL_METHOD(NULL, &_0$$3, "__construct", NULL, 467, &_5$$3, &field, &_6$$3, &code); + ZEPHIR_CALL_METHOD(NULL, &_0$$3, "__construct", NULL, 425, &_5$$3, &field, &_6$$3, &code); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, &_0$$3); zephir_check_call_status(); @@ -160415,13 +158928,13 @@ static PHP_METHOD(Phalcon_Validation_Validator_CreditCard, verifyByLuhnAlgorithm - ZEPHIR_CALL_FUNCTION(&_0, "str_split", &_1, 71, number); + ZEPHIR_CALL_FUNCTION(&_0, "str_split", &_1, 65, number); zephir_check_call_status(); zephir_get_arrval(&_2, &_0); ZEPHIR_CPY_WRT(&digits, &_2); ZEPHIR_INIT_VAR(&hash); ZVAL_STRING(&hash, ""); - ZEPHIR_CALL_FUNCTION(&_4, "array_reverse", NULL, 442, &digits); + ZEPHIR_CALL_FUNCTION(&_4, "array_reverse", NULL, 404, &digits); zephir_check_call_status(); zephir_is_iterable(&_4, 0, "phalcon/validation/validator/creditcard.zep", 118); ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&_4), _6, _7, _5) @@ -160445,9 +158958,9 @@ static PHP_METHOD(Phalcon_Validation_Validator_CreditCard, verifyByLuhnAlgorithm } ZEND_HASH_FOREACH_END(); ZEPHIR_INIT_NVAR(&digit); ZEPHIR_INIT_NVAR(&position); - ZEPHIR_CALL_FUNCTION(&_9, "str_split", &_1, 71, &hash); + ZEPHIR_CALL_FUNCTION(&_9, "str_split", &_1, 65, &hash); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&result, "array_sum", NULL, 472, &_9); + ZEPHIR_CALL_FUNCTION(&result, "array_sum", NULL, 430, &_9); zephir_check_call_status(); RETURN_MM_BOOL((zephir_safe_mod_zval_long(&result, 10 TSRMLS_CC) == 0)); @@ -160498,11 +159011,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_Date, validate) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &validation, &field_param); - if (unlikely(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'field' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(field_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(field_param) == IS_STRING)) { zephir_get_strval(&field, field_param); } else { ZEPHIR_INIT_VAR(&field); @@ -160524,7 +159037,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Date, validate) { ZEPHIR_INIT_NVAR(&format); ZVAL_STRING(&format, "Y-m-d"); } - ZEPHIR_CALL_METHOD(&_2, this_ptr, "checkdate", NULL, 473, &value, &format); + ZEPHIR_CALL_METHOD(&_2, this_ptr, "checkdate", NULL, 431, &value, &format); zephir_check_call_status(); if (!(zephir_is_true(&_2))) { ZEPHIR_INIT_VAR(&_3$$5); @@ -160558,11 +159071,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_Date, validate) { } ZEPHIR_INIT_NVAR(&_3$$5); object_init_ex(&_3$$5, phalcon_validation_message_ce); - ZEPHIR_CALL_FUNCTION(&_7$$5, "strtr", NULL, 26, &message, &replacePairs); + ZEPHIR_CALL_FUNCTION(&_7$$5, "strtr", NULL, 21, &message, &replacePairs); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_8$$5); ZVAL_STRING(&_8$$5, "Date"); - ZEPHIR_CALL_METHOD(NULL, &_3$$5, "__construct", NULL, 467, &_7$$5, &field, &_8$$5); + ZEPHIR_CALL_METHOD(NULL, &_3$$5, "__construct", NULL, 425, &_7$$5, &field, &_8$$5); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, &_3$$5); zephir_check_call_status(); @@ -160659,11 +159172,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_Digit, validate) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &validation, &field_param); - if (unlikely(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'field' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(field_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(field_param) == IS_STRING)) { zephir_get_strval(&field, field_param); } else { ZEPHIR_INIT_VAR(&field); @@ -160675,7 +159188,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Digit, validate) { zephir_check_call_status(); _0 = Z_TYPE_P(&value) == IS_LONG; if (!(_0)) { - ZEPHIR_CALL_FUNCTION(&_1, "ctype_digit", NULL, 474, &value); + ZEPHIR_CALL_FUNCTION(&_1, "ctype_digit", NULL, 432, &value); zephir_check_call_status(); _0 = zephir_is_true(&_1); } @@ -160721,11 +159234,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_Digit, validate) { } ZEPHIR_INIT_NVAR(&_2); object_init_ex(&_2, phalcon_validation_message_ce); - ZEPHIR_CALL_FUNCTION(&_7, "strtr", NULL, 26, &message, &replacePairs); + ZEPHIR_CALL_FUNCTION(&_7, "strtr", NULL, 21, &message, &replacePairs); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_8); ZVAL_STRING(&_8, "Digit"); - ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", NULL, 467, &_7, &field, &_8, &code); + ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", NULL, 425, &_7, &field, &_8, &code); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, &_2); zephir_check_call_status(); @@ -160778,11 +159291,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_Email, validate) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &validation, &field_param); - if (unlikely(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'field' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(field_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(field_param) == IS_STRING)) { zephir_get_strval(&field, field_param); } else { ZEPHIR_INIT_VAR(&field); @@ -160793,7 +159306,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Email, validate) { ZEPHIR_CALL_METHOD(&value, validation, "getvalue", NULL, 0, &field); zephir_check_call_status(); ZVAL_LONG(&_0, 274); - ZEPHIR_CALL_FUNCTION(&_1, "filter_var", NULL, 198, &value, &_0); + ZEPHIR_CALL_FUNCTION(&_1, "filter_var", NULL, 180, &value, &_0); zephir_check_call_status(); if (!(zephir_is_true(&_1))) { ZEPHIR_INIT_VAR(&_2$$3); @@ -160835,11 +159348,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_Email, validate) { } ZEPHIR_INIT_NVAR(&_2$$3); object_init_ex(&_2$$3, phalcon_validation_message_ce); - ZEPHIR_CALL_FUNCTION(&_7$$3, "strtr", NULL, 26, &message, &replacePairs); + ZEPHIR_CALL_FUNCTION(&_7$$3, "strtr", NULL, 21, &message, &replacePairs); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_8$$3); ZVAL_STRING(&_8$$3, "Email"); - ZEPHIR_CALL_METHOD(NULL, &_2$$3, "__construct", NULL, 467, &_7$$3, &field, &_8$$3, &code); + ZEPHIR_CALL_METHOD(NULL, &_2$$3, "__construct", NULL, 425, &_7$$3, &field, &_8$$3, &code); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, &_2$$3); zephir_check_call_status(); @@ -160918,11 +159431,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_ExclusionIn, validate) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &validation, &field_param); - if (unlikely(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'field' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(field_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(field_param) == IS_STRING)) { zephir_get_strval(&field, field_param); } else { ZEPHIR_INIT_VAR(&field); @@ -160966,7 +159479,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_ExclusionIn, validate) { return; } } - ZEPHIR_CALL_FUNCTION(&_4, "in_array", NULL, 381, &value, &domain, &strict); + ZEPHIR_CALL_FUNCTION(&_4, "in_array", NULL, 345, &value, &domain, &strict); zephir_check_call_status(); if (zephir_is_true(&_4)) { ZEPHIR_INIT_VAR(&_5$$9); @@ -161011,11 +159524,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_ExclusionIn, validate) { } ZEPHIR_INIT_NVAR(&_5$$9); object_init_ex(&_5$$9, phalcon_validation_message_ce); - ZEPHIR_CALL_FUNCTION(&_10$$9, "strtr", NULL, 26, &message, &replacePairs); + ZEPHIR_CALL_FUNCTION(&_10$$9, "strtr", NULL, 21, &message, &replacePairs); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_11$$9); ZVAL_STRING(&_11$$9, "ExclusionIn"); - ZEPHIR_CALL_METHOD(NULL, &_5$$9, "__construct", NULL, 467, &_10$$9, &field, &_11$$9, &code); + ZEPHIR_CALL_METHOD(NULL, &_5$$9, "__construct", NULL, 425, &_10$$9, &field, &_11$$9, &code); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, &_5$$9); zephir_check_call_status(); @@ -161159,11 +159672,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, validate) { zephir_get_global(&_SERVER, SL("_SERVER")); zephir_fetch_params(1, 2, 0, &validation, &field_param); - if (unlikely(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'field' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(field_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(field_param) == IS_STRING)) { zephir_get_strval(&field, field_param); } else { ZEPHIR_INIT_VAR(&field); @@ -161236,11 +159749,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, validate) { } ZEPHIR_INIT_NVAR(&_11$$6); object_init_ex(&_11$$6, phalcon_validation_message_ce); - ZEPHIR_CALL_FUNCTION(&_14$$6, "strtr", &_15, 26, &message, &replacePairs); + ZEPHIR_CALL_FUNCTION(&_14$$6, "strtr", &_15, 21, &message, &replacePairs); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_16$$6); ZVAL_STRING(&_16$$6, "FileIniSize"); - ZEPHIR_CALL_METHOD(NULL, &_11$$6, "__construct", &_17, 467, &_14$$6, &field, &_16$$6, &code); + ZEPHIR_CALL_METHOD(NULL, &_11$$6, "__construct", &_17, 425, &_14$$6, &field, &_16$$6, &code); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, &_11$$6); zephir_check_call_status(); @@ -161258,7 +159771,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, validate) { _21 = _19; if (!(_21)) { zephir_array_fetch_string(&_22, &value, SL("tmp_name"), PH_NOISY | PH_READONLY, "phalcon/validation/validator/file.zep", 138 TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_23, "is_uploaded_file", NULL, 243, &_22); + ZEPHIR_CALL_FUNCTION(&_23, "is_uploaded_file", NULL, 211, &_22); zephir_check_call_status(); _21 = !zephir_is_true(&_23); } @@ -161282,11 +159795,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, validate) { } ZEPHIR_INIT_NVAR(&_24$$9); object_init_ex(&_24$$9, phalcon_validation_message_ce); - ZEPHIR_CALL_FUNCTION(&_27$$9, "strtr", &_15, 26, &message, &replacePairs); + ZEPHIR_CALL_FUNCTION(&_27$$9, "strtr", &_15, 21, &message, &replacePairs); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_28$$9); ZVAL_STRING(&_28$$9, "FileEmpty"); - ZEPHIR_CALL_METHOD(NULL, &_24$$9, "__construct", &_17, 467, &_27$$9, &field, &_28$$9, &code); + ZEPHIR_CALL_METHOD(NULL, &_24$$9, "__construct", &_17, 425, &_27$$9, &field, &_28$$9, &code); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, &_24$$9); zephir_check_call_status(); @@ -161320,11 +159833,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, validate) { } ZEPHIR_INIT_NVAR(&_31$$12); object_init_ex(&_31$$12, phalcon_validation_message_ce); - ZEPHIR_CALL_FUNCTION(&_34$$12, "strtr", &_15, 26, &message, &replacePairs); + ZEPHIR_CALL_FUNCTION(&_34$$12, "strtr", &_15, 21, &message, &replacePairs); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_35$$12); ZVAL_STRING(&_35$$12, "FileValid"); - ZEPHIR_CALL_METHOD(NULL, &_31$$12, "__construct", &_17, 467, &_34$$12, &field, &_35$$12, &code); + ZEPHIR_CALL_METHOD(NULL, &_31$$12, "__construct", &_17, 425, &_34$$12, &field, &_35$$12, &code); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, &_31$$12); zephir_check_call_status(); @@ -161371,7 +159884,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, validate) { zephir_array_fetch_long(&unit, &matches, 2, PH_NOISY, "phalcon/validation/validator/file.zep", 186 TSRMLS_CC); } zephir_array_fetch_long(&_42$$15, &matches, 1, PH_NOISY | PH_READONLY, "phalcon/validation/validator/file.zep", 189 TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_43$$15, "floatval", &_44, 319, &_42$$15); + ZEPHIR_CALL_FUNCTION(&_43$$15, "floatval", &_44, 288, &_42$$15); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_45$$15); zephir_array_fetch(&_46$$15, &byteUnits, &unit, PH_NOISY | PH_READONLY, "phalcon/validation/validator/file.zep", 189 TSRMLS_CC); @@ -161380,9 +159893,9 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, validate) { ZEPHIR_INIT_VAR(&bytes); mul_function(&bytes, &_43$$15, &_45$$15 TSRMLS_CC); zephir_array_fetch_string(&_48$$15, &value, SL("size"), PH_NOISY | PH_READONLY, "phalcon/validation/validator/file.zep", 191 TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_43$$15, "floatval", &_44, 319, &_48$$15); + ZEPHIR_CALL_FUNCTION(&_43$$15, "floatval", &_44, 288, &_48$$15); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_49$$15, "floatval", &_44, 319, &bytes); + ZEPHIR_CALL_FUNCTION(&_49$$15, "floatval", &_44, 288, &bytes); zephir_check_call_status(); if (ZEPHIR_GT(&_43$$15, &_49$$15)) { ZEPHIR_INIT_VAR(&_50$$18); @@ -161405,11 +159918,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, validate) { } ZEPHIR_INIT_NVAR(&_50$$18); object_init_ex(&_50$$18, phalcon_validation_message_ce); - ZEPHIR_CALL_FUNCTION(&_53$$18, "strtr", &_15, 26, &message, &replacePairs); + ZEPHIR_CALL_FUNCTION(&_53$$18, "strtr", &_15, 21, &message, &replacePairs); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_54$$18); ZVAL_STRING(&_54$$18, "FileSize"); - ZEPHIR_CALL_METHOD(NULL, &_50$$18, "__construct", &_17, 467, &_53$$18, &field, &_54$$18, &code); + ZEPHIR_CALL_METHOD(NULL, &_50$$18, "__construct", &_17, 425, &_53$$18, &field, &_54$$18, &code); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, &_50$$18); zephir_check_call_status(); @@ -161435,12 +159948,12 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, validate) { } if ((zephir_function_exists_ex(SL("finfo_open") TSRMLS_CC) == SUCCESS)) { ZVAL_LONG(&_57$$24, 16); - ZEPHIR_CALL_FUNCTION(&tmp, "finfo_open", NULL, 240, &_57$$24); + ZEPHIR_CALL_FUNCTION(&tmp, "finfo_open", NULL, 208, &_57$$24); zephir_check_call_status(); zephir_array_fetch_string(&_58$$24, &value, SL("tmp_name"), PH_NOISY | PH_READONLY, "phalcon/validation/validator/file.zep", 222 TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&mime, "finfo_file", NULL, 241, &tmp, &_58$$24); + ZEPHIR_CALL_FUNCTION(&mime, "finfo_file", NULL, 209, &tmp, &_58$$24); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(NULL, "finfo_close", NULL, 242, &tmp); + ZEPHIR_CALL_FUNCTION(NULL, "finfo_close", NULL, 210, &tmp); zephir_check_call_status(); } else { ZEPHIR_OBS_NVAR(&mime); @@ -161469,11 +159982,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, validate) { } ZEPHIR_INIT_NVAR(&_59$$26); object_init_ex(&_59$$26, phalcon_validation_message_ce); - ZEPHIR_CALL_FUNCTION(&_62$$26, "strtr", &_15, 26, &message, &replacePairs); + ZEPHIR_CALL_FUNCTION(&_62$$26, "strtr", &_15, 21, &message, &replacePairs); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_63$$26); ZVAL_STRING(&_63$$26, "FileType"); - ZEPHIR_CALL_METHOD(NULL, &_59$$26, "__construct", &_17, 467, &_62$$26, &field, &_63$$26, &code); + ZEPHIR_CALL_METHOD(NULL, &_59$$26, "__construct", &_17, 425, &_62$$26, &field, &_63$$26, &code); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, &_59$$26); zephir_check_call_status(); @@ -161494,7 +160007,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, validate) { } if (_65) { zephir_array_fetch_string(&_67$$29, &value, SL("tmp_name"), PH_NOISY | PH_READONLY, "phalcon/validation/validator/file.zep", 247 TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&tmp, "getimagesize", NULL, 251, &_67$$29); + ZEPHIR_CALL_FUNCTION(&tmp, "getimagesize", NULL, 219, &_67$$29); zephir_check_call_status(); ZEPHIR_OBS_VAR(&width); zephir_array_fetch_long(&width, &tmp, 0, PH_NOISY, "phalcon/validation/validator/file.zep", 248 TSRMLS_CC); @@ -161550,11 +160063,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, validate) { } ZEPHIR_INIT_NVAR(&_73$$33); object_init_ex(&_73$$33, phalcon_validation_message_ce); - ZEPHIR_CALL_FUNCTION(&_76$$33, "strtr", &_15, 26, &message, &replacePairs); + ZEPHIR_CALL_FUNCTION(&_76$$33, "strtr", &_15, 21, &message, &replacePairs); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_77$$33); ZVAL_STRING(&_77$$33, "FileMinResolution"); - ZEPHIR_CALL_METHOD(NULL, &_73$$33, "__construct", &_17, 467, &_76$$33, &field, &_77$$33, &code); + ZEPHIR_CALL_METHOD(NULL, &_73$$33, "__construct", &_17, 425, &_76$$33, &field, &_77$$33, &code); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, &_73$$33); zephir_check_call_status(); @@ -161604,11 +160117,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, validate) { } ZEPHIR_INIT_NVAR(&_82$$38); object_init_ex(&_82$$38, phalcon_validation_message_ce); - ZEPHIR_CALL_FUNCTION(&_85$$38, "strtr", &_15, 26, &message, &replacePairs); + ZEPHIR_CALL_FUNCTION(&_85$$38, "strtr", &_15, 21, &message, &replacePairs); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_86$$38); ZVAL_STRING(&_86$$38, "FileMaxResolution"); - ZEPHIR_CALL_METHOD(NULL, &_82$$38, "__construct", &_17, 467, &_85$$38, &field, &_86$$38, &code); + ZEPHIR_CALL_METHOD(NULL, &_82$$38, "__construct", &_17, 425, &_85$$38, &field, &_86$$38, &code); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, &_82$$38); zephir_check_call_status(); @@ -161636,11 +160149,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, isAllowEmpty) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &validation, &field_param); - if (unlikely(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'field' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(field_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(field_param) == IS_STRING)) { zephir_get_strval(&field, field_param); } else { ZEPHIR_INIT_VAR(&field); @@ -161717,11 +160230,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_Identical, validate) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &validation, &field_param); - if (unlikely(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'field' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(field_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(field_param) == IS_STRING)) { zephir_get_strval(&field, field_param); } else { ZEPHIR_INIT_VAR(&field); @@ -161802,11 +160315,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_Identical, validate) { } ZEPHIR_INIT_NVAR(&_8$$8); object_init_ex(&_8$$8, phalcon_validation_message_ce); - ZEPHIR_CALL_FUNCTION(&_13$$8, "strtr", NULL, 26, &message, &replacePairs); + ZEPHIR_CALL_FUNCTION(&_13$$8, "strtr", NULL, 21, &message, &replacePairs); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_14$$8); ZVAL_STRING(&_14$$8, "Identical"); - ZEPHIR_CALL_METHOD(NULL, &_8$$8, "__construct", NULL, 467, &_13$$8, &field, &_14$$8, &code); + ZEPHIR_CALL_METHOD(NULL, &_8$$8, "__construct", NULL, 425, &_13$$8, &field, &_14$$8, &code); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, &_8$$8); zephir_check_call_status(); @@ -161867,11 +160380,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_InclusionIn, validate) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &validation, &field_param); - if (unlikely(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'field' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(field_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(field_param) == IS_STRING)) { zephir_get_strval(&field, field_param); } else { ZEPHIR_INIT_VAR(&field); @@ -161915,7 +160428,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_InclusionIn, validate) { return; } } - ZEPHIR_CALL_FUNCTION(&_4, "in_array", NULL, 381, &value, &domain, &strict); + ZEPHIR_CALL_FUNCTION(&_4, "in_array", NULL, 345, &value, &domain, &strict); zephir_check_call_status(); if (!(zephir_is_true(&_4))) { ZEPHIR_INIT_VAR(&_5$$9); @@ -161960,11 +160473,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_InclusionIn, validate) { } ZEPHIR_INIT_NVAR(&_5$$9); object_init_ex(&_5$$9, phalcon_validation_message_ce); - ZEPHIR_CALL_FUNCTION(&_10$$9, "strtr", NULL, 26, &message, &replacePairs); + ZEPHIR_CALL_FUNCTION(&_10$$9, "strtr", NULL, 21, &message, &replacePairs); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_11$$9); ZVAL_STRING(&_11$$9, "InclusionIn"); - ZEPHIR_CALL_METHOD(NULL, &_5$$9, "__construct", NULL, 467, &_10$$9, &field, &_11$$9, &code); + ZEPHIR_CALL_METHOD(NULL, &_5$$9, "__construct", NULL, 425, &_10$$9, &field, &_11$$9, &code); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, &_5$$9); zephir_check_call_status(); @@ -162020,11 +160533,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_Numericality, validate) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &validation, &field_param); - if (unlikely(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'field' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(field_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(field_param) == IS_STRING)) { zephir_get_strval(&field, field_param); } else { ZEPHIR_INIT_VAR(&field); @@ -162079,11 +160592,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_Numericality, validate) { } ZEPHIR_INIT_NVAR(&_3$$3); object_init_ex(&_3$$3, phalcon_validation_message_ce); - ZEPHIR_CALL_FUNCTION(&_8$$3, "strtr", NULL, 26, &message, &replacePairs); + ZEPHIR_CALL_FUNCTION(&_8$$3, "strtr", NULL, 21, &message, &replacePairs); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_9$$3); ZVAL_STRING(&_9$$3, "Numericality"); - ZEPHIR_CALL_METHOD(NULL, &_3$$3, "__construct", NULL, 467, &_8$$3, &field, &_9$$3, &code); + ZEPHIR_CALL_METHOD(NULL, &_3$$3, "__construct", NULL, 425, &_8$$3, &field, &_9$$3, &code); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, &_3$$3); zephir_check_call_status(); @@ -162137,11 +160650,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_PresenceOf, validate) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &validation, &field_param); - if (unlikely(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'field' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(field_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(field_param) == IS_STRING)) { zephir_get_strval(&field, field_param); } else { ZEPHIR_INIT_VAR(&field); @@ -162195,11 +160708,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_PresenceOf, validate) { } ZEPHIR_INIT_NVAR(&_1$$3); object_init_ex(&_1$$3, phalcon_validation_message_ce); - ZEPHIR_CALL_FUNCTION(&_6$$3, "strtr", NULL, 26, &message, &replacePairs); + ZEPHIR_CALL_FUNCTION(&_6$$3, "strtr", NULL, 21, &message, &replacePairs); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_7$$3); ZVAL_STRING(&_7$$3, "PresenceOf"); - ZEPHIR_CALL_METHOD(NULL, &_1$$3, "__construct", NULL, 467, &_6$$3, &field, &_7$$3, &code); + ZEPHIR_CALL_METHOD(NULL, &_1$$3, "__construct", NULL, 425, &_6$$3, &field, &_7$$3, &code); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, &_1$$3); zephir_check_call_status(); @@ -162258,11 +160771,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_Regex, validate) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &validation, &field_param); - if (unlikely(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'field' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(field_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(field_param) == IS_STRING)) { zephir_get_strval(&field, field_param); } else { ZEPHIR_INIT_VAR(&field); @@ -162330,11 +160843,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_Regex, validate) { } ZEPHIR_INIT_NVAR(&_3$$6); object_init_ex(&_3$$6, phalcon_validation_message_ce); - ZEPHIR_CALL_FUNCTION(&_8$$6, "strtr", NULL, 26, &message, &replacePairs); + ZEPHIR_CALL_FUNCTION(&_8$$6, "strtr", NULL, 21, &message, &replacePairs); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_9$$6); ZVAL_STRING(&_9$$6, "Regex"); - ZEPHIR_CALL_METHOD(NULL, &_3$$6, "__construct", NULL, 467, &_8$$6, &field, &_9$$6, &code); + ZEPHIR_CALL_METHOD(NULL, &_3$$6, "__construct", NULL, 425, &_8$$6, &field, &_9$$6, &code); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, &_3$$6); zephir_check_call_status(); @@ -162404,11 +160917,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_StringLength, validate) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &validation, &field_param); - if (unlikely(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'field' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(field_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(field_param) == IS_STRING)) { zephir_get_strval(&field, field_param); } else { ZEPHIR_INIT_VAR(&field); @@ -162455,7 +160968,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_StringLength, validate) { ZEPHIR_CPY_WRT(&code, &_3$$6); } if ((zephir_function_exists_ex(SL("mb_strlen") TSRMLS_CC) == SUCCESS)) { - ZEPHIR_CALL_FUNCTION(&length, "mb_strlen", NULL, 382, &value); + ZEPHIR_CALL_FUNCTION(&length, "mb_strlen", NULL, 346, &value); zephir_check_call_status(); } else { ZEPHIR_INIT_NVAR(&length); @@ -162491,11 +161004,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_StringLength, validate) { } ZEPHIR_INIT_NVAR(&_6$$11); object_init_ex(&_6$$11, phalcon_validation_message_ce); - ZEPHIR_CALL_FUNCTION(&_9$$11, "strtr", &_10, 26, &message, &replacePairs); + ZEPHIR_CALL_FUNCTION(&_9$$11, "strtr", &_10, 21, &message, &replacePairs); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_11$$11); ZVAL_STRING(&_11$$11, "TooLong"); - ZEPHIR_CALL_METHOD(NULL, &_6$$11, "__construct", &_12, 467, &_9$$11, &field, &_11$$11, &code); + ZEPHIR_CALL_METHOD(NULL, &_6$$11, "__construct", &_12, 425, &_9$$11, &field, &_11$$11, &code); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, &_6$$11); zephir_check_call_status(); @@ -162532,11 +161045,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_StringLength, validate) { } ZEPHIR_INIT_NVAR(&_15$$16); object_init_ex(&_15$$16, phalcon_validation_message_ce); - ZEPHIR_CALL_FUNCTION(&_18$$16, "strtr", &_10, 26, &message, &replacePairs); + ZEPHIR_CALL_FUNCTION(&_18$$16, "strtr", &_10, 21, &message, &replacePairs); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_19$$16); ZVAL_STRING(&_19$$16, "TooShort"); - ZEPHIR_CALL_METHOD(NULL, &_15$$16, "__construct", &_12, 467, &_18$$16, &field, &_19$$16, &code); + ZEPHIR_CALL_METHOD(NULL, &_15$$16, "__construct", &_12, 425, &_18$$16, &field, &_19$$16, &code); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, &_15$$16); zephir_check_call_status(); @@ -162617,7 +161130,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Uniqueness, validate) { ZEPHIR_INIT_VAR(&_3$$3); zephir_create_array(&_3$$3, 1, 0 TSRMLS_CC); zephir_array_update_string(&_3$$3, SL(":field"), &label, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_FUNCTION(&_4$$3, "strtr", NULL, 26, &message, &_3$$3); + ZEPHIR_CALL_FUNCTION(&_4$$3, "strtr", NULL, 21, &message, &_3$$3); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_6$$3); ZVAL_STRING(&_6$$3, "code"); @@ -162625,7 +161138,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Uniqueness, validate) { zephir_check_call_status(); ZEPHIR_INIT_NVAR(&_6$$3); ZVAL_STRING(&_6$$3, "Uniqueness"); - ZEPHIR_CALL_METHOD(NULL, &_1$$3, "__construct", NULL, 467, &_4$$3, field, &_6$$3, &_5$$3); + ZEPHIR_CALL_METHOD(NULL, &_1$$3, "__construct", NULL, 425, &_4$$3, field, &_6$$3, &_5$$3); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, &_1$$3); zephir_check_call_status(); @@ -162754,11 +161267,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_Uniqueness, getColumnNameReal) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &record, &field_param); - if (unlikely(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'field' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(field_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(field_param) == IS_STRING)) { zephir_get_strval(&field, field_param); } else { ZEPHIR_INIT_VAR(&field); @@ -162931,7 +161444,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Uniqueness, isUniquenessModel) { zephir_array_keys(&_9$$6, &except TSRMLS_CC); ZVAL_LONG(&_10$$6, 0); ZVAL_LONG(&_11$$6, (zephir_fast_count_int(&except TSRMLS_CC) - 1)); - ZEPHIR_CALL_FUNCTION(&_12$$6, "range", &_13, 447, &_10$$6, &_11$$6); + ZEPHIR_CALL_FUNCTION(&_12$$6, "range", &_13, 408, &_10$$6, &_11$$6); zephir_check_call_status(); _8$$6 = !ZEPHIR_IS_IDENTICAL(&_9$$6, &_12$$6); } @@ -163302,11 +161815,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_Url, validate) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &validation, &field_param); - if (unlikely(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'field' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(field_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(field_param) == IS_STRING)) { zephir_get_strval(&field, field_param); } else { ZEPHIR_INIT_VAR(&field); @@ -163317,7 +161830,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Url, validate) { ZEPHIR_CALL_METHOD(&value, validation, "getvalue", NULL, 0, &field); zephir_check_call_status(); ZVAL_LONG(&_0, 273); - ZEPHIR_CALL_FUNCTION(&_1, "filter_var", NULL, 198, &value, &_0); + ZEPHIR_CALL_FUNCTION(&_1, "filter_var", NULL, 180, &value, &_0); zephir_check_call_status(); if (!(zephir_is_true(&_1))) { ZEPHIR_INIT_VAR(&_2$$3); @@ -163359,11 +161872,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_Url, validate) { } ZEPHIR_INIT_NVAR(&_2$$3); object_init_ex(&_2$$3, phalcon_validation_message_ce); - ZEPHIR_CALL_FUNCTION(&_7$$3, "strtr", NULL, 26, &message, &replacePairs); + ZEPHIR_CALL_FUNCTION(&_7$$3, "strtr", NULL, 21, &message, &replacePairs); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_8$$3); ZVAL_STRING(&_8$$3, "Url"); - ZEPHIR_CALL_METHOD(NULL, &_2$$3, "__construct", NULL, 467, &_7$$3, &field, &_8$$3, &code); + ZEPHIR_CALL_METHOD(NULL, &_2$$3, "__construct", NULL, 425, &_7$$3, &field, &_8$$3, &code); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, &_2$$3); zephir_check_call_status(); diff --git a/build/php7/64bits/phalcon.zep.h b/build/php7/64bits/phalcon.zep.h index 12526b3efda..77f89ce6db7 100644 --- a/build/php7/64bits/phalcon.zep.h +++ b/build/php7/64bits/phalcon.zep.h @@ -17490,7 +17490,7 @@ ZEPHIR_INIT_FUNCS(phalcon_queue_beanstalk_method_entry) { PHP_ME(Phalcon_Queue_Beanstalk, readStatus, NULL, ZEND_ACC_FINAL|ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Queue_Beanstalk, readYaml, NULL, ZEND_ACC_FINAL|ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Queue_Beanstalk, read, arginfo_phalcon_queue_beanstalk_read, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Queue_Beanstalk, write, arginfo_phalcon_queue_beanstalk_write, ZEND_ACC_PROTECTED) + PHP_ME(Phalcon_Queue_Beanstalk, write, arginfo_phalcon_queue_beanstalk_write, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Queue_Beanstalk, disconnect, NULL, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Queue_Beanstalk, quit, NULL, ZEND_ACC_PUBLIC) PHP_FE_END diff --git a/build/php7/64bits/php_phalcon.h b/build/php7/64bits/php_phalcon.h index 2641c90e127..c1ab55cb0f0 100644 --- a/build/php7/64bits/php_phalcon.h +++ b/build/php7/64bits/php_phalcon.h @@ -13,7 +13,7 @@ +------------------------------------------------------------------------+ | Zephir Language | +------------------------------------------------------------------------+ - | Copyright (c) 2011-2016 Zephir Team (http://www.zephir-lang.com) | + | Copyright (c) 2011-2017 Zephir Team (http://www.zephir-lang.com) | +------------------------------------------------------------------------+ | This source file is subject to the New BSD License that is bundled | | with this package in the file docs/LICENSE.txt. | @@ -96,10 +96,6 @@ typedef zend_function zephir_fcall_cache_entry; return FAILURE; \ } -/** Macros for branch prediction */ -#define likely(x) EXPECTED(x) -#define unlikely(x) UNEXPECTED(x) - #if defined(__GNUC__) && (defined(__clang__) || ((__GNUC__ * 100 + __GNUC_MINOR__) >= 405)) # define UNREACHABLE() __builtin_unreachable() # define ASSUME(x) if (x) {} else __builtin_unreachable() @@ -130,10 +126,6 @@ typedef zend_function zephir_fcall_cache_entry; # define __builtin_constant_p(s) (0) #endif -#ifndef ZEND_MOD_END -# define ZEND_MOD_END { NULL, NULL, NULL, 0 } -#endif - #ifndef __func__ # define __func__ __FUNCTION__ #endif @@ -144,20 +136,17 @@ typedef zend_function zephir_fcall_cache_entry; # define ZEPHIR_NO_OPT #endif -#ifdef ZTS -#define zephir_nts_static -#else -#define zephir_nts_static -#endif +#define likely(x) EXPECTED(x) +#define unlikely(x) UNEXPECTED(x) #endif #define PHP_PHALCON_NAME "phalcon" -#define PHP_PHALCON_VERSION "3.1.1" +#define PHP_PHALCON_VERSION "3.1.2" #define PHP_PHALCON_EXTNAME "phalcon" #define PHP_PHALCON_AUTHOR "Phalcon Team and contributors" -#define PHP_PHALCON_ZEPVERSION "0.9.6a-dev-3a72ba9bb5" +#define PHP_PHALCON_ZEPVERSION "0.9.7-1fae5e50ac" #define PHP_PHALCON_DESCRIPTION "Web framework delivered as a C-extension for PHP" typedef struct _zephir_struct_db { diff --git a/build/php7/safe/config.w32 b/build/php7/safe/config.w32 index c6b6f1514dd..b9fd9f14931 100644 --- a/build/php7/safe/config.w32 +++ b/build/php7/safe/config.w32 @@ -1,4 +1,6 @@ + ARG_ENABLE("phalcon", "enable phalcon", "no"); + if (PHP_PHALCON != "no") { EXTENSION("phalcon", "phalcon.zep.c", null, "-I"+configure_module_dirname); ADD_FLAG("CFLAGS", "/D ZEPHIR_RELEASE /Oi /Ot /Oy /Ob2 /Gs /GF /Gy /GL"); diff --git a/build/php7/safe/phalcon.zep.c b/build/php7/safe/phalcon.zep.c index a25bfa0e87d..084c0ddc923 100644 --- a/build/php7/safe/phalcon.zep.c +++ b/build/php7/safe/phalcon.zep.c @@ -2086,6 +2086,9 @@ static int zephir_declare_class_constant_string(zend_class_entry *ce, const char this_ptr = NULL; \ } +static void zephir_get_args(zval* return_value); +static void zephir_get_arg(zval* return_value, zend_long idx); + #endif /* ZEPHIR_KERNEL_MAIN_H */ @@ -2128,12 +2131,12 @@ static int ZEPHIR_FASTCALL zephir_memory_restore_stack(); static void ZEPHIR_FASTCALL zephir_memory_observe(zval *var); static void ZEPHIR_FASTCALL zephir_memory_alloc(zval *var); -static int ZEPHIR_FASTCALL zephir_clean_restore_stack(TSRMLS_D); +static int ZEPHIR_FASTCALL zephir_clean_restore_stack(); #define zephir_safe_zval_ptr_dtor(pzval) -static void zephir_create_symbol_table(TSRMLS_D); -static int zephir_set_symbol(zval *key_name, zval *value TSRMLS_DC); +static void zephir_create_symbol_table(); +static int zephir_set_symbol(zval *key_name, zval *value); static int zephir_set_symbol_str(char *key_name, unsigned int key_length, zval *value); #define ZEPHIR_INIT_VAR(z) zephir_memory_alloc(z); @@ -2281,15 +2284,6 @@ static void zephir_throw_exception_string_debug(zend_class_entry *ce, const char -#ifndef ZEPHIR_KERNEL_HASH_H -#define ZEPHIR_KERNEL_HASH_H - - -#endif - - - - #ifndef ZEPHIR_KERNEL_DEBUG_H #define ZEPHIR_KERNEL_DEBUG_H @@ -2346,8 +2340,8 @@ static void zephir_get_called_class(zval *return_value); zend_class_entry *zephir_fetch_class(const zval *class_name); zend_class_entry *zephir_fetch_class_str_ex(const char *class_name, size_t length, int fetch_type); static void zephir_get_class(zval *result, zval *object, int lower); -static void zephir_get_class_ns(zval *result, zval *object, int lower TSRMLS_DC); -static void zephir_get_ns_class(zval *result, zval *object, int lower TSRMLS_DC); +static void zephir_get_class_ns(zval *result, zval *object, int lower); +static void zephir_get_ns_class(zval *result, zval *object, int lower); /** Cloning/Instance of */ static int zephir_clone(zval *destination, zval *obj); @@ -2393,7 +2387,7 @@ static int zephir_create_closure_ex(zval *return_value, zval *this_ptr, zend_cla /** Create instances */ static int zephir_create_instance(zval *return_value, const zval *class_name); -static int zephir_create_instance_params(zval *return_value, const zval *class_name, const zval *params TSRMLS_DC); +static int zephir_create_instance_params(zval *return_value, const zval *class_name, const zval *params); /** Increment/Decrement properties */ #define zephir_property_incr(object, property) zephir_property_incr_decr(object, property, 1) @@ -2467,48 +2461,16 @@ static void zephir_fast_array_merge(zval *return_value, zval *array1, zval *arra static int zephir_fast_in_array(zval *needle, zval *haystack); #define zephir_array_fast_append(arr, value) \ - Z_TRY_ADDREF_P(value); \ - zend_hash_next_index_insert(Z_ARRVAL_P(arr), value); + do { \ + Z_TRY_ADDREF_P(value); \ + zend_hash_next_index_insert(Z_ARRVAL_P(arr), value); \ + } while (0) #endif /* ZEPHIR_KERNEL_ARRAY_H */ - - - -#ifndef ZEPHIR_KERNEL_FCALL_EXT_H -#define ZEPHIR_KERNEL_FCALL_EXT_H - - - -#define ZEPHIR_FCALL_TYPE_UNKNOWN 0 -#define ZEPHIR_FCALL_TYPE_FUNC 1 -#define ZEPHIR_FCALL_TYPE_ZVAL_METHOD 2 -#define ZEPHIR_FCALL_TYPE_CLASS_PARENT_METHOD 3 -#define ZEPHIR_FCALL_TYPE_CLASS_SELF_METHOD 4 -#define ZEPHIR_FCALL_TYPE_CLASS_STATIC_METHOD 5 -#define ZEPHIR_FCALL_TYPE_CE_METHOD 6 - -typedef struct _zephir_fcall_info { - int type; - zend_class_entry *ce; - zval *object_ptr; - const char *class_name; - int class_length; - const char *func_name; - int func_length; -} zephir_fcall_info; - -static int zephir_call_function_opt(zend_fcall_info *fci, zend_fcall_info_cache *fci_cache, zephir_fcall_info *info, zval **params); -static int zephir_call_func_aparams_fast(zval *return_value_ptr, zephir_fcall_cache_entry **cache_entry, uint param_count, zval **params); - -#endif - - - - #ifndef ZEPHIR_KERNEL_STRING_H #define ZEPHIR_KERNEL_STRING_H @@ -2573,6 +2535,8 @@ static void zephir_append_printable_array(smart_str *implstr, const zval *value) static int zephir_hash_equals(const zval *known_zval, const zval *user_zval); +static void zephir_string_to_hex(zval *return_value, zval *var); + #endif /* ZEPHIR_KERNEL_STRING_H */ @@ -2607,15 +2571,7 @@ typedef enum _zephir_call_type { zephir_fcall_cache_entry **cache_entry_ = cache; \ zval *params_[] = {ZEPHIR_FETCH_VA_ARGS __VA_ARGS__}; \ ZEPHIR_OBSERVE_OR_NULLIFY_PPZV(return_value_ptr); \ - if (__builtin_constant_p(func_name)) { \ - if (cache_entry_ && *cache_entry_) { \ - ZEPHIR_LAST_CALL_STATUS = zephir_call_func_aparams_fast(return_value_ptr, cache, ZEPHIR_CALL_NUM_PARAMS(params_), ZEPHIR_PASS_CALL_PARAMS(params_)); \ - } else { \ - ZEPHIR_LAST_CALL_STATUS = zephir_call_func_aparams(return_value_ptr, func_name, sizeof(func_name)-1, cache, cache_slot, ZEPHIR_CALL_NUM_PARAMS(params_), ZEPHIR_PASS_CALL_PARAMS(params_)); \ - } \ - } else { \ - ZEPHIR_LAST_CALL_STATUS = zephir_call_func_aparams(return_value_ptr, func_name, strlen(func_name), cache, cache_slot, ZEPHIR_CALL_NUM_PARAMS(params_), ZEPHIR_PASS_CALL_PARAMS(params_)); \ - } \ + ZEPHIR_LAST_CALL_STATUS = zephir_call_func_aparams(return_value_ptr, func_name, strlen(func_name), cache, cache_slot, ZEPHIR_CALL_NUM_PARAMS(params_), ZEPHIR_PASS_CALL_PARAMS(params_)); \ } while (0) #define ZEPHIR_CALL_ZVAL_FUNCTION(return_value_ptr, func_name, cache, cache_slot, ...) \ @@ -2874,7 +2830,6 @@ typedef enum _zephir_call_type { static int zephir_call_func_aparams(zval *return_value_ptr, const char *func_name, uint func_length, zephir_fcall_cache_entry **cache_entry, int cache_slot, uint param_count, zval **params); -static int zephir_call_func_aparams_fast(zval *return_value_ptr, zephir_fcall_cache_entry **cache_entry, uint param_count, zval **params); static int zephir_call_zval_func_aparams(zval *return_value_ptr, zval *func_name, zephir_fcall_cache_entry **cache_entry, int cache_slot, @@ -2997,22 +2952,24 @@ ZEPHIR_ATTR_WARN_UNUSED_RESULT ZEPHIR_ATTR_NONNULL static inline int zephir_has_ } #define zephir_check_call_status() \ - do \ + do { \ if (ZEPHIR_LAST_CALL_STATUS == FAILURE) { \ ZEPHIR_MM_RESTORE(); \ return; \ - } \ - while(0) + } \ + } while(0) #define zephir_check_call_status_or_jump(label) \ - if (ZEPHIR_LAST_CALL_STATUS == FAILURE) { \ - if (EG(exception)) { \ - goto label; \ - } else { \ - ZEPHIR_MM_RESTORE(); \ - return; \ + do { \ + if (ZEPHIR_LAST_CALL_STATUS == FAILURE) { \ + if (EG(exception)) { \ + goto label; \ + } else { \ + ZEPHIR_MM_RESTORE(); \ + return; \ + } \ } \ - } + } while (0) #ifdef ZEPHIR_RELEASE #define ZEPHIR_TEMP_PARAM_COPY 0 @@ -3024,24 +2981,6 @@ ZEPHIR_ATTR_WARN_UNUSED_RESULT ZEPHIR_ATTR_NONNULL static inline int zephir_has_ static void zephir_eval_php(zval *str, zval *retval_ptr, char *context); -static inline void zephir_set_called_scope(zend_execute_data *ex, zend_class_entry *called_scope) -{ - while (ex) { - if (Z_TYPE(ex->This) == IS_OBJECT) { - Z_OBJCE(ex->This) = called_scope; - return; - } else if (Z_CE(ex->This)) { - Z_CE(ex->This) = called_scope; - return; - } else if (ex->func) { - if (ex->func->type != ZEND_INTERNAL_FUNCTION || ex->func->common.scope) { - return; - } - } - ex = ex->prev_execute_data; - } -} - #endif /* ZEPHIR_KERNEL_FCALL_H */ @@ -3085,9 +3024,9 @@ static int zephir_fclose(zval *stream_zval); static void zephir_file_get_contents(zval *return_value, zval *filename); static void zephir_file_put_contents(zval *return_value, zval *filename, zval *data); -static void zephir_basename(zval *return_value, zval *path TSRMLS_DC); +static void zephir_basename(zval *return_value, zval *path); static void zephir_filemtime(zval *return_value, zval *path); -static int zephir_compare_mtime(zval *filename1, zval *filename2 TSRMLS_DC); +static int zephir_compare_mtime(zval *filename1, zval *filename2); static void zephir_prepare_virtual_path(zval *return_value, zval *path, zval *virtual_separator); static void zephir_unique_path_key(zval *return_value, zval *path); @@ -3532,7 +3471,7 @@ long zephir_mt_rand(long min, long max); double zephir_ceil(zval *op1); static void zephir_round(zval *return_value, zval *op1, zval *op2, zval *op3); -double zephir_ldexp(zval *value, zval *expval TSRMLS_DC); +double zephir_ldexp(zval *value, zval *expval); #endif @@ -3548,6 +3487,8 @@ static void zephir_var_dump(zval *var); static void zephir_var_export(zval *var); static void zephir_var_export_ex(zval *return_value, zval *var); +static void zephir_get_defined_vars(zval *return_value); + #endif @@ -3630,7 +3571,7 @@ static void zephir_exit(zval *ptr); static int zephir_is_iterable_ex(zval *arr, int duplicate) { - if (unlikely(Z_TYPE_P(arr) != IS_ARRAY)) { + if (UNEXPECTED(Z_TYPE_P(arr) != IS_ARRAY)) { return 0; } //TODO: duplicate @@ -3688,7 +3629,7 @@ static int zephir_get_global(zval *arr, const char *global, unsigned int global_ ZVAL_UNDEF(arr); if (&EG(symbol_table)) { - if ((gv = zend_hash_find(&EG(symbol_table), str)) != NULL) { + if ((gv = zend_hash_find_ind(&EG(symbol_table), str)) != NULL) { ZVAL_DEREF(gv); if (Z_TYPE_P(gv) == IS_ARRAY) { ZVAL_COPY_VALUE(arr, gv); @@ -3699,9 +3640,7 @@ static int zephir_get_global(zval *arr, const char *global, unsigned int global_ } array_init(arr); - zend_hash_update(&EG(symbol_table), str, arr); - //zend_string_free(str); - + zend_string_free(str); return SUCCESS; } @@ -3764,7 +3703,7 @@ static int zephir_fast_count_ev(zval *value) #endif if (Z_OBJ_HT_P(value)->count_elements) { - Z_OBJ_HT(*value)->count_elements(value, &count TSRMLS_CC); + Z_OBJ_HT(*value)->count_elements(value, &count); return (int) count > 0; } @@ -3806,7 +3745,7 @@ static int zephir_fast_count_int(zval *value) #endif if (Z_OBJ_HT_P(value)->count_elements) { - Z_OBJ_HT(*value)->count_elements(value, &count TSRMLS_CC); + Z_OBJ_HT(*value)->count_elements(value, &count); return (int) count; } @@ -3926,6 +3865,7 @@ static void zephir_gettype(zval *return_value, zval *arg) break; } } + /* no break */ default: RETVAL_STRING("unknown type"); @@ -3949,7 +3889,7 @@ static int zephir_declare_class_constant(zend_class_entry *ce, const char *name, { #if PHP_VERSION_ID >= 70100 int ret; - + zend_string *key = zend_string_init(name, name_length, ce->type & ZEND_INTERNAL_CLASS); ret = zend_declare_class_constant_ex(ce, key, value, ZEND_ACC_PUBLIC, NULL); zend_string_release(key); @@ -4009,6 +3949,83 @@ static int zephir_declare_class_constant_string(zend_class_entry *ce, const char return zephir_declare_class_constant_stringl(ce, name, name_length, value, strlen(value)); } +static void zephir_get_args(zval *return_value) +{ + zend_execute_data *ex = EG(current_execute_data); + uint32_t arg_count = ZEND_CALL_NUM_ARGS(ex); + + array_init_size(return_value, arg_count); + if (arg_count) { + uint32_t first_extra_arg = ex->func->op_array.num_args; + zval *p = ZEND_CALL_ARG(ex, 1); + uint32_t i = 0; + + if (arg_count > first_extra_arg) { + while (i < first_extra_arg) { + zval *q = p; + + if (Z_TYPE_P(q) != IS_UNDEF) { + ZVAL_DEREF(q); + Z_TRY_ADDREF_P(q); + zend_hash_next_index_insert_new(Z_ARRVAL_P(return_value), q); + } + + ++p; + ++i; + } + + p = ZEND_CALL_VAR_NUM(ex, ex->func->op_array.last_var + ex->func->op_array.T); + } + + while (i < arg_count) { + zval *q = p; + + if (Z_TYPE_P(q) != IS_UNDEF) { + ZVAL_DEREF(q); + Z_TRY_ADDREF_P(q); + zend_hash_next_index_insert_new(Z_ARRVAL_P(return_value), q); + } + + ++p; + ++i; + } + } +} + +static void zephir_get_arg(zval *return_value, zend_long idx) +{ + zend_execute_data *ex = EG(current_execute_data); + uint32_t arg_count = ZEND_CALL_NUM_ARGS(ex); + zval *arg; + uint32_t first_extra_arg; + + if (UNEXPECTED(idx < 0)) { + zend_error(E_WARNING, "zephir_get_arg(): The argument number should be >= 0"); + RETURN_FALSE; + } + + if (UNEXPECTED((zend_ulong)idx >= arg_count)) { + zend_error(E_WARNING, "zephir_get_arg(): Argument " ZEND_LONG_FMT " not passed to function", idx); + RETURN_FALSE; + } + + first_extra_arg = ex->func->op_array.num_args; + if ((zend_ulong)idx >= first_extra_arg && (arg_count > first_extra_arg)) { + arg = ZEND_CALL_VAR_NUM(ex, ex->func->op_array.last_var + ex->func->op_array.T) + (idx - first_extra_arg); + } + else { + arg = ZEND_CALL_VAR_NUM(ex, idx); + } + + if (EXPECTED(!Z_ISUNDEF_P(arg))) { + ZVAL_DEREF(arg); + ZVAL_COPY(return_value, arg); + return; + } + + RETURN_NULL(); +} + @@ -4189,7 +4206,7 @@ static void zephir_memory_restore_stack_common(zend_zephir_globals_def *g) } #ifndef ZEPHIR_RELEASE -static int ZEPHIR_FASTCALL zephir_memory_restore_stack(const char *func TSRMLS_DC) +static int ZEPHIR_FASTCALL zephir_memory_restore_stack(const char *func) { zend_zephir_globals_def *zephir_globals_ptr = ZEPHIR_VGLOBAL; @@ -4215,7 +4232,7 @@ static void ZEPHIR_FASTCALL zephir_memory_grow_stack(const char *func) zephir_memory_entry *entry; zend_zephir_globals_def *g = ZEPHIR_VGLOBAL; if (g->start_memory == NULL) { - zephir_initialize_memory(g TSRMLS_CC); + zephir_initialize_memory(g); } entry = zephir_memory_grow_stack_common(g); entry->func = func; @@ -4326,7 +4343,7 @@ static void zephir_deinitialize_memory() zephir_globals_ptr->initialized = 0; } -static void zephir_create_symbol_table(TSRMLS_D) +static void zephir_create_symbol_table() { /*zephir_symbol_table *entry; zend_zephir_globals_def *zephir_globals_ptr = ZEPHIR_VGLOBAL; @@ -4353,7 +4370,7 @@ static void zephir_create_symbol_table(TSRMLS_D) ex->symbol_table = symbol_table;*/ } -static int zephir_set_symbol(zval *key_name, zval *value TSRMLS_DC) +static int zephir_set_symbol(zval *key_name, zval *value) { zend_array *symbol_table; @@ -4671,14 +4688,6 @@ static void zephir_throw_exception_format(zend_class_entry *ce, const char *form -#ifdef HAVE_CONFIG_H -#endif - - - - - - #ifdef HAVE_CONFIG_H #endif @@ -4847,7 +4856,7 @@ zend_class_entry *zephir_fetch_class_str_ex(const char *class_name, size_t lengt zend_class_entry *zephir_fetch_class(const zval *class_name) { if (Z_TYPE_P(class_name) == IS_STRING) { - return zend_fetch_class(Z_STR_P(class_name), ZEND_FETCH_CLASS_DEFAULT TSRMLS_CC); + return zend_fetch_class(Z_STR_P(class_name), ZEND_FETCH_CLASS_DEFAULT); } php_error_docref(NULL, E_WARNING, "class name must be a string"); @@ -5025,7 +5034,7 @@ static int zephir_interface_exists(const zval *class_name, int autoload) return 0; } - php_error_docref(NULL TSRMLS_CC, E_WARNING, "interface name must be a string"); + php_error_docref(NULL, E_WARNING, "interface name must be a string"); return 0; } @@ -5065,7 +5074,7 @@ static int zephir_clone(zval *destination, zval *obj) static int zephir_isset_property(zval *object, const char *property_name, unsigned int property_length) { if (Z_TYPE_P(object) == IS_OBJECT) { - if (likely(zend_hash_str_exists(&Z_OBJCE_P(object)->properties_info, property_name, property_length))) { + if (EXPECTED(zend_hash_str_exists(&Z_OBJCE_P(object)->properties_info, property_name, property_length))) { return 1; } return zend_hash_str_exists(Z_OBJ_HT_P(object)->get_properties(object), property_name, property_length); @@ -5079,7 +5088,7 @@ static int zephir_isset_property_zval(zval *object, const zval *property) if (Z_TYPE_P(object) == IS_OBJECT) { if (Z_TYPE_P(property) == IS_STRING) { - if (likely(zend_hash_str_exists(&Z_OBJCE_P(object)->properties_info, Z_STRVAL_P(property), Z_STRLEN_P(property)))) { + if (EXPECTED(zend_hash_str_exists(&Z_OBJCE_P(object)->properties_info, Z_STRVAL_P(property), Z_STRLEN_P(property)))) { return 1; } else { return zend_hash_str_exists(Z_OBJ_HT_P(object)->get_properties(object), Z_STRVAL_P(property), Z_STRLEN_P(property)); @@ -5125,9 +5134,6 @@ static int zephir_read_property(zval *result, zval *object, const char *property } ce = Z_OBJCE_P(object); - if (ce->parent) { - ce = zephir_lookup_class_ce(ce, property_name, property_length); - } #if PHP_VERSION_ID >= 70100 old_scope = EG(fake_scope); @@ -5135,6 +5141,9 @@ static int zephir_read_property(zval *result, zval *object, const char *property #else old_scope = EG(scope); EG(scope) = ce; + if (ce->parent) { + ce = zephir_lookup_class_ce(ce, property_name, property_length); + } #endif if (!Z_OBJ_HT_P(object)->read_property) { @@ -5177,7 +5186,7 @@ static int zephir_fetch_property(zval *result, zval *object, const char *propert static int zephir_fetch_property_zval(zval *result, zval *object, zval *property, int silent) { - if (unlikely(Z_TYPE_P(property) != IS_STRING)) { + if (UNEXPECTED(Z_TYPE_P(property) != IS_STRING)) { ZVAL_NULL(result); return 0; } @@ -5200,7 +5209,7 @@ static int zephir_return_property(zval *return_value, zval *object, char *proper static int zephir_read_property_zval(zval *result, zval *object, zval *property, int flags) { - if (unlikely(Z_TYPE_P(property) != IS_STRING)) { + if (UNEXPECTED(Z_TYPE_P(property) != IS_STRING)) { if ((flags & PH_NOISY) == PH_NOISY) { php_error_docref(NULL, E_NOTICE, "Cannot access empty property %d", Z_TYPE_P(property)); } @@ -5505,7 +5514,7 @@ static int zephir_method_exists_ex(const zval *object, const char *method_name, { zend_class_entry *ce; - if (likely(Z_TYPE_P(object) == IS_OBJECT)) { + if (EXPECTED(Z_TYPE_P(object) == IS_OBJECT)) { ce = Z_OBJCE_P(object); } else { if (Z_TYPE_P(object) == IS_STRING) { @@ -5800,18 +5809,18 @@ static int zephir_create_instance(zval *return_value, const zval *class_name) return SUCCESS; } -static int zephir_create_instance_params(zval *return_value, const zval *class_name, const zval *params TSRMLS_DC) +static int zephir_create_instance_params(zval *return_value, const zval *class_name, const zval *params) { int outcome; zend_class_entry *ce; if (Z_TYPE_P(class_name) != IS_STRING) { - zephir_throw_exception_string(spl_ce_RuntimeException, SL("Invalid class name") TSRMLS_CC); + zephir_throw_exception_string(spl_ce_RuntimeException, SL("Invalid class name")); return FAILURE; } if (Z_TYPE_P(params) != IS_ARRAY) { - zephir_throw_exception_string(spl_ce_RuntimeException, SL("Instantiation parameters must be an array") TSRMLS_CC); + zephir_throw_exception_string(spl_ce_RuntimeException, SL("Instantiation parameters must be an array")); return FAILURE; } @@ -5834,7 +5843,7 @@ static int zephir_create_instance_params(zval *return_value, const zval *class_n zval *item; int i = 0; - if (likely(param_count) <= 10) { + if (EXPECTED(param_count <= 10)) { params_ptr = static_params; } else { params_arr = emalloc(param_count * sizeof(zval*)); @@ -5851,7 +5860,7 @@ static int zephir_create_instance_params(zval *return_value, const zval *class_n outcome = zephir_call_class_method_aparams(NULL, ce, zephir_fcall_method, return_value, SL("__construct"), NULL, 0, param_count, params_ptr); - if (unlikely(params_arr != NULL)) { + if (UNEXPECTED(params_arr != NULL)) { efree(params_arr); } } @@ -5944,7 +5953,7 @@ static int zephir_array_isset_string_fetch(zval *fetched, zval *arr, char *index { zval *zv; - if (likely(Z_TYPE_P(arr) == IS_ARRAY)) { + if (EXPECTED(Z_TYPE_P(arr) == IS_ARRAY)) { if ((zv = zend_hash_str_find(Z_ARRVAL_P(arr), index, index_length)) != NULL) { if (!readonly) { ZVAL_COPY(fetched, zv); @@ -5964,7 +5973,7 @@ static int zephir_array_isset_long_fetch(zval *fetched, zval *arr, unsigned long { zval *zv; - if (likely(Z_TYPE_P(arr) == IS_ARRAY)) { + if (EXPECTED(Z_TYPE_P(arr) == IS_ARRAY)) { if ((zv = zend_hash_index_find(Z_ARRVAL_P(arr), index)) != NULL) { if (!readonly) { ZVAL_COPY(fetched, zv); @@ -6015,7 +6024,7 @@ static int ZEPHIR_FASTCALL zephir_array_isset(const zval *arr, zval *index) static int ZEPHIR_FASTCALL zephir_array_isset_string(const zval *arr, const char *index, uint index_length) { - if (likely(Z_TYPE_P(arr) == IS_ARRAY)) { + if (EXPECTED(Z_TYPE_P(arr) == IS_ARRAY)) { return zend_hash_str_exists(Z_ARRVAL_P(arr), index, index_length); } @@ -6024,7 +6033,7 @@ static int ZEPHIR_FASTCALL zephir_array_isset_string(const zval *arr, const char static int ZEPHIR_FASTCALL zephir_array_isset_long(const zval *arr, unsigned long index) { - if (likely(Z_TYPE_P(arr) == IS_ARRAY)) { + if (EXPECTED(Z_TYPE_P(arr) == IS_ARRAY)) { return zend_hash_index_exists(Z_ARRVAL_P(arr), index); } @@ -6188,7 +6197,7 @@ static int zephir_array_fetch_string(zval *return_value, zval *arr, const char * { zval *zv; - if (likely(Z_TYPE_P(arr) == IS_ARRAY)) { + if (EXPECTED(Z_TYPE_P(arr) == IS_ARRAY)) { if ((zv = zend_hash_str_find(Z_ARRVAL_P(arr), index, index_length)) != NULL) { if ((flags & PH_READONLY) == PH_READONLY) { @@ -6220,7 +6229,7 @@ static int zephir_array_fetch_long(zval *return_value, zval *arr, unsigned long { zval *zv; - if (likely(Z_TYPE_P(arr) == IS_ARRAY)) { + if (EXPECTED(Z_TYPE_P(arr) == IS_ARRAY)) { if ((zv = zend_hash_index_find(Z_ARRVAL_P(arr), index)) != NULL) { if ((flags & PH_READONLY) == PH_READONLY) { @@ -6393,7 +6402,7 @@ static void zephir_array_keys(zval *return_value, zval *input) zend_ulong num_idx; zend_string *str_idx; - if (likely(Z_TYPE_P(input) == IS_ARRAY)) { + if (EXPECTED(Z_TYPE_P(input) == IS_ARRAY)) { array_init_size(return_value, zend_hash_num_elements(Z_ARRVAL_P(input))); zend_hash_real_init(Z_ARRVAL_P(return_value), 1); ZEND_HASH_FILL_PACKED(Z_ARRVAL_P(return_value)) { @@ -6698,1306 +6707,6 @@ static void zephir_fast_array_merge(zval *return_value, zval *array1, zval *arra - - - - - - - -static int zephir_call_func_aparams_fast(zval *return_value_ptr, zephir_fcall_cache_entry **cache_entry, zend_uint param_count, zval *params[]) -{ - uint32_t i; - zend_class_entry *calling_scope = NULL; - zend_execute_data *call, dummy_execute_data; - zval retval_local; - zval *retval_ptr = return_value_ptr ? return_value_ptr : &retval_local; - zend_class_entry *orig_scope; - zend_function *func; - - if (return_value_ptr) { - zval_ptr_dtor(return_value_ptr); - ZVAL_UNDEF(return_value_ptr); - } else { - ZVAL_UNDEF(&retval_local); - } - - if (!EG(active)) { - return FAILURE; /* executor is already inactive */ - } - - if (EG(exception)) { - return FAILURE; /* we would result in an instable executor otherwise */ - } - -#if PHP_VERSION_ID >= 70100 - //orig_scope = EG(fake_scope); -#else - orig_scope = EG(scope); -#endif - - /* Initialize execute_data */ - if (!EG(current_execute_data)) { - /* This only happens when we're called outside any execute()'s - * It shouldn't be strictly necessary to NULL execute_data out, - * but it may make bugs easier to spot - */ - memset(&dummy_execute_data, 0, sizeof(zend_execute_data)); - EG(current_execute_data) = &dummy_execute_data; - } else if (EG(current_execute_data)->func && - ZEND_USER_CODE(EG(current_execute_data)->func->common.type) && - EG(current_execute_data)->opline->opcode != ZEND_DO_FCALL && - EG(current_execute_data)->opline->opcode != ZEND_DO_ICALL && - EG(current_execute_data)->opline->opcode != ZEND_DO_UCALL && - EG(current_execute_data)->opline->opcode != ZEND_DO_FCALL_BY_NAME) { - /* Insert fake frame in case of include or magic calls */ - dummy_execute_data = *EG(current_execute_data); - dummy_execute_data.prev_execute_data = EG(current_execute_data); - dummy_execute_data.call = NULL; - dummy_execute_data.opline = NULL; - dummy_execute_data.func = NULL; - EG(current_execute_data) = &dummy_execute_data; - } - -#ifndef ZEPHIR_RELEASE - func = (*cache_entry)->f; - ++(*cache_entry)->times; -#else - func = *cache_entry; -#endif - - calling_scope = NULL; - call = zend_vm_stack_push_call_frame(ZEND_CALL_TOP_FUNCTION, func, param_count, NULL, NULL); - - for (i = 0; i < param_count; i++) { - zval *param; - zval *arg = params[i]; - - if (ARG_SHOULD_BE_SENT_BY_REF(func, i + 1)) { - if (!Z_ISREF_P(arg)) { - /*if (!ARG_MAY_BE_SENT_BY_REF(func, i + 1)) { - if (i) { - // hack to clean up the stack - ZEND_CALL_NUM_ARGS(call) = i; - zend_vm_stack_free_args(call); - } - zend_vm_stack_free_call_frame(call); - - zend_error(E_WARNING, "Parameter %d to %s%s%s() expected to be a reference, value given", - i+1, - func->common.scope ? ZSTR_VAL(func->common.scope->name) : "", - func->common.scope ? "::" : "", - ZSTR_VAL(func->common.function_name)); - if (EG(current_execute_data) == &dummy_execute_data) { - EG(current_execute_data) = dummy_execute_data.prev_execute_data; - } - return FAILURE; - }*/ - - ZVAL_NEW_REF(arg, arg); - } - Z_ADDREF_P(arg); - } else { - if (Z_ISREF_P(arg) && - !(func->common.fn_flags & ZEND_ACC_CALL_VIA_TRAMPOLINE)) { - /* don't separate references for __call */ - arg = Z_REFVAL_P(arg); - } - if (Z_OPT_REFCOUNTED_P(arg)) { - Z_ADDREF_P(arg); - } - } - param = ZEND_CALL_ARG(call, i+1); - ZVAL_COPY_VALUE(param, arg); - } - -#if PHP_VERSION_ID >= 70100 - //EG(fake_scope)= calling_scope; - - if (UNEXPECTED(func->op_array.fn_flags & ZEND_ACC_CLOSURE)) { - ZEND_ASSERT(GC_TYPE((zend_object*)func->op_array.prototype) == IS_OBJECT); - GC_REFCOUNT((zend_object*)func->op_array.prototype)++; - ZEND_ADD_CALL_FLAG(call, ZEND_CALL_CLOSURE); - } - - ZVAL_NULL(retval_ptr); -#else - EG(scope) = calling_scope; - - Z_OBJ(call->This) = NULL; -#endif - - if (func->type == ZEND_USER_FUNCTION) { - int call_via_handler = (func->common.fn_flags & ZEND_ACC_CALL_VIA_TRAMPOLINE) != 0; -#if PHP_VERSION_ID >= 70100 - //EG(fake_scope)= func->common.scope; -#else - EG(scope) = func->common.scope; -#endif - call->symbol_table = NULL; - -#if PHP_VERSION_ID >= 70100 - zend_init_execute_data(call, &func->op_array, retval_ptr); - zend_execute_ex(call); -#else - if (UNEXPECTED(func->op_array.fn_flags & ZEND_ACC_CLOSURE)) { - ZEND_ASSERT(GC_TYPE((zend_object*)func->op_array.prototype) == IS_OBJECT); - GC_REFCOUNT((zend_object*)func->op_array.prototype)++; - ZEND_ADD_CALL_FLAG(call, ZEND_CALL_CLOSURE); - } - - if (EXPECTED((func->op_array.fn_flags & ZEND_ACC_GENERATOR) == 0)) { - zend_init_execute_data(call, &func->op_array, retval_ptr); - zend_execute_ex(call); - } else { - zend_generator_create_zval(call, &func->op_array, retval_ptr); - } -#endif - if (call_via_handler) { - /* We must re-initialize function again */ - *cache_entry = NULL; - } - } else if (func->type == ZEND_INTERNAL_FUNCTION) { - int call_via_handler = (func->common.fn_flags & ZEND_ACC_CALL_VIA_TRAMPOLINE) != 0; - if (func->common.scope) { -#if PHP_VERSION_ID >= 70100 - ZVAL_NULL(retval_ptr); - //EG(fake_scope)= func->common.scope; -#else - EG(scope) = func->common.scope; -#endif - } - call->prev_execute_data = EG(current_execute_data); - call->return_value = NULL; /* this is not a constructor call */ - EG(current_execute_data) = call; - if (EXPECTED(zend_execute_internal == NULL)) { - /* saves one function call if zend_execute_internal is not used */ - func->internal_function.handler(call, retval_ptr); - } else { - zend_execute_internal(call, retval_ptr); - } - EG(current_execute_data) = call->prev_execute_data; - zend_vm_stack_free_args(call); - - /* We shouldn't fix bad extensions here, - because it can break proper ones (Bug #34045) - if (!EX(function_state).function->common.return_reference) - { - INIT_PZVAL(f->retval); - }*/ - if (EG(exception)) { - zval_ptr_dtor(retval_ptr); - ZVAL_UNDEF(retval_ptr); - } - - if (call_via_handler) { - /* We must re-initialize function again */ - *cache_entry = NULL; - } - } else { /* ZEND_OVERLOADED_FUNCTION */ -#if PHP_VERSION_ID < 70100 - ZVAL_NULL(retval_ptr); -#endif - zend_throw_error(NULL, "Cannot call overloaded function for non-object"); - zend_vm_stack_free_args(call); - - if (func->type == ZEND_OVERLOADED_FUNCTION_TEMPORARY) { - zend_string_release(func->common.function_name); - } - efree(func); - - if (EG(exception)) { - zval_ptr_dtor(retval_ptr); - ZVAL_UNDEF(retval_ptr); - } - } - -#if PHP_VERSION_ID >= 70100 - //EG(fake_scope)= orig_scope; -#else - EG(scope) = orig_scope; -#endif - zend_vm_stack_free_call_frame(call); - - if (EG(current_execute_data) == &dummy_execute_data) { - EG(current_execute_data) = dummy_execute_data.prev_execute_data; - } - - if (EG(exception)) { - zend_throw_exception_internal(NULL); - } - return SUCCESS; -} - -static int zephir_is_callable_check_class(const char *name, int name_len, zend_fcall_info_cache *fcc, int *strict_class, char **error) /* {{{ */ -{ - int ret = 0; - zend_class_entry *pce; - zend_class_entry *scope, *called_scope; - char *lcname = zend_str_tolower_dup(name, name_len); -#if PHP_VERSION_ID >= 70100 - scope = EG(fake_scope); - called_scope = zend_get_called_scope(EG(current_execute_data)); -#else - scope = EG(scope); - called_scope = EG(current_execute_data)->called_scope; -#endif - *strict_class = 0; - if (name_len == sizeof("self") - 1 && - !memcmp(lcname, "self", sizeof("self") - 1)) { - if (!scope) { - if (error) *error = estrdup("cannot access self:: when no class scope is active"); - } else { - fcc->called_scope = called_scope; - if (!fcc->object) { - fcc->object = Z_OBJ(EG(current_execute_data)->This); - } - ret = 1; - } - } else if (name_len == sizeof("parent") - 1 && - !memcmp(lcname, "parent", sizeof("parent") - 1)) { - if (!scope) { - if (error) *error = estrdup("cannot access parent:: when no class scope is active"); - } else if (!scope->parent) { - if (error) *error = estrdup("cannot access parent:: when current class scope has no parent"); - } else { - fcc->called_scope = called_scope; - if (!fcc->object) { - fcc->object = Z_OBJ(EG(current_execute_data)->This); - } - *strict_class = 1; - ret = 1; - } - } else if (name_len == sizeof("static") - 1 && - !memcmp(lcname, "static", sizeof("static") - 1)) { - if (!called_scope) { - if (error) *error = estrdup("cannot access static:: when no class scope is active"); - } else { - fcc->called_scope = called_scope; - if (!fcc->object) { - fcc->object = Z_OBJ(EG(current_execute_data)->This); - } - *strict_class = 1; - ret = 1; - } - } else { - zend_string *class_name; - class_name = zend_string_init(name, name_len, 0); - if ((pce = zend_lookup_class_ex(class_name, NULL, 1)) != NULL) { - scope = EG(current_execute_data) ? EG(current_execute_data)->func->common.scope : NULL; - fcc->calling_scope = pce; - if (scope && !fcc->object && EG(current_execute_data) && Z_OBJ(EG(current_execute_data)->This) && - instanceof_function(Z_OBJCE(EG(current_execute_data)->This), scope TSRMLS_CC) && - instanceof_function(scope, fcc->calling_scope TSRMLS_CC)) { - fcc->object = Z_OBJ(EG(current_execute_data)->This); - fcc->called_scope = fcc->object->ce; - } else { - fcc->called_scope = fcc->object ? fcc->object->ce : fcc->calling_scope; - } - *strict_class = 1; - ret = 1; - } else { - if (error) zephir_spprintf(error, 0, "class '%.*s' not found", name_len, name); - } - zend_string_free(class_name); - } - efree(lcname); - return ret; -} - -static int zephir_is_callable_check_func(int check_flags, zval *callable, zend_fcall_info_cache *fcc, int strict_class, char **error TSRMLS_DC) /* {{{ */ -{ - zend_class_entry *ce_org = fcc->calling_scope; - int retval = 0; - char *mname, *lmname; - zend_string *zs_mname; - const char *colon; - int clen, mlen; - zend_class_entry *last_scope; - HashTable *ftable; - int call_via_handler = 0; - - if (error) { - *error = NULL; - } - - fcc->calling_scope = NULL; - fcc->function_handler = NULL; - - if (!ce_org) { - /* Skip leading \ */ - if (Z_STRVAL_P(callable)[0] == '\\') { - mlen = Z_STRLEN_P(callable) - 1; - lmname = zend_str_tolower_dup(Z_STRVAL_P(callable) + 1, mlen); - } else { - mlen = Z_STRLEN_P(callable); - lmname = zend_str_tolower_dup(Z_STRVAL_P(callable), mlen); - } - /* Check if function with given name exists. - * This may be a compound name that includes namespace name */ - if (EXPECTED((fcc->function_handler = zend_hash_str_find_ptr(EG(function_table), lmname, mlen)) != NULL)) { - efree(lmname); - return 1; - } - efree(lmname); - } - - /* Split name into class/namespace and method/function names */ - if ((colon = zend_memrchr(Z_STRVAL_P(callable), ':', Z_STRLEN_P(callable))) != NULL && - colon > Z_STRVAL_P(callable) && - *(colon-1) == ':' - ) { - colon--; - clen = colon - Z_STRVAL_P(callable); - mlen = Z_STRLEN_P(callable) - clen - 2; - - if (colon == Z_STRVAL_P(callable)) { - if (error) zephir_spprintf(error, 0, "invalid function name"); - return 0; - } - - /* This is a compound name. - * Try to fetch class and then find static method. */ -#if PHP_VERSION_ID >= 70100 - last_scope = EG(fake_scope); - if (ce_org) { - EG(fake_scope) = ce_org; - } - - if (!zephir_is_callable_check_class(Z_STRVAL_P(callable), clen, fcc, &strict_class, error TSRMLS_CC)) { - EG(fake_scope) = last_scope; - return 0; - } - EG(fake_scope) = last_scope; -#else - last_scope = EG(scope); - if (ce_org) { - EG(scope) = ce_org; - } - - if (!zephir_is_callable_check_class(Z_STRVAL_P(callable), clen, fcc, &strict_class, error TSRMLS_CC)) { - EG(scope) = last_scope; - return 0; - } - EG(scope) = last_scope; -#endif - - ftable = &fcc->calling_scope->function_table; - if (ce_org && !instanceof_function(ce_org, fcc->calling_scope TSRMLS_CC)) { - if (error) zephir_spprintf(error, 0, "class '%s' is not a subclass of '%s'", ce_org->name, fcc->calling_scope->name); - return 0; - } - mname = Z_STRVAL_P(callable) + clen + 2; - } else if (ce_org) { - /* Try to fetch find static method of given class. */ - mlen = Z_STRLEN_P(callable); - mname = Z_STRVAL_P(callable); - ftable = &ce_org->function_table; - fcc->calling_scope = ce_org; - } else { - /* We already checked for plain function before. */ - if (error && !(check_flags & IS_CALLABLE_CHECK_SILENT)) { - zephir_spprintf(error, 0, "function '%s' not found or invalid function name", Z_STRVAL_P(callable)); - } - return 0; - } - - zs_mname = zend_string_init(mname, mlen, 0); - lmname = zend_str_tolower_dup(mname, mlen); - if (strict_class && - fcc->calling_scope && - mlen == sizeof(ZEND_CONSTRUCTOR_FUNC_NAME)-1 && - !memcmp(lmname, ZEND_CONSTRUCTOR_FUNC_NAME, sizeof(ZEND_CONSTRUCTOR_FUNC_NAME) - 1)) { - fcc->function_handler = fcc->calling_scope->constructor; - if (fcc->function_handler) { - retval = 1; - } - } else if ((fcc->function_handler = zend_hash_str_find_ptr(ftable, lmname, mlen)) != NULL) { - retval = 1; -#if PHP_VERSION_ID >= 70100 - last_scope = EG(fake_scope); -#else - last_scope = EG(scope); -#endif - if ((fcc->function_handler->op_array.fn_flags & ZEND_ACC_CHANGED) && - !strict_class && last_scope && - instanceof_function(fcc->function_handler->common.scope, last_scope TSRMLS_CC)) { - zend_function *priv_fbc; - - if ((priv_fbc = zend_hash_str_find_ptr(&last_scope->function_table, lmname, mlen)) != NULL - && priv_fbc->common.fn_flags & ZEND_ACC_PRIVATE - && priv_fbc->common.scope == last_scope) { - fcc->function_handler = priv_fbc; - } - } - } else { - if (fcc->object && fcc->calling_scope == ce_org) { - if (strict_class && ce_org->__call) { - fcc->function_handler = zend_get_call_trampoline_func(ce_org, zs_mname, 0); - call_via_handler = 1; - retval = 1; - } else if (fcc->object->handlers->get_method) { - fcc->function_handler = fcc->object->handlers->get_method(&fcc->object, zs_mname, NULL); - if (fcc->function_handler) { - if (strict_class && - (!fcc->function_handler->common.scope || - !instanceof_function(ce_org, fcc->function_handler->common.scope TSRMLS_CC))) { - if ((fcc->function_handler->common.fn_flags & ZEND_ACC_CALL_VIA_HANDLER) != 0) { - if (fcc->function_handler->type != ZEND_OVERLOADED_FUNCTION) { - zend_string_release(fcc->function_handler->common.function_name); - } - zend_free_trampoline(fcc->function_handler); - } - } else { - retval = 1; - call_via_handler = (fcc->function_handler->common.fn_flags & ZEND_ACC_CALL_VIA_HANDLER) != 0; - } - } - } - } else if (fcc->calling_scope) { - if (fcc->calling_scope->get_static_method) { - fcc->function_handler = fcc->calling_scope->get_static_method(fcc->calling_scope, zs_mname); - } else { - fcc->function_handler = zend_std_get_static_method(fcc->calling_scope, zs_mname, NULL); - } - if (fcc->function_handler) { - retval = 1; - call_via_handler = (fcc->function_handler->common.fn_flags & ZEND_ACC_CALL_VIA_HANDLER) != 0; - if (call_via_handler && !fcc->object && EG(current_execute_data) && Z_OBJ(EG(current_execute_data)->This) && - instanceof_function(Z_OBJCE(EG(current_execute_data)->This), fcc->calling_scope)) { - fcc->object = Z_OBJ(EG(current_execute_data)->This); - } - } - } - } - - if (retval) { - if (fcc->calling_scope && !call_via_handler) { - if (!fcc->object && (fcc->function_handler->common.fn_flags & ZEND_ACC_ABSTRACT)) { - if (error) { - zephir_spprintf(error, 0, "cannot call abstract method %s::%s()", fcc->calling_scope->name, fcc->function_handler->common.function_name); - retval = 0; - } else { - zend_error(E_ERROR, "Cannot call abstract method %s::%s()", fcc->calling_scope->name, fcc->function_handler->common.function_name); - } - } else if (!fcc->object && !(fcc->function_handler->common.fn_flags & ZEND_ACC_STATIC)) { - int severity; - char *verb; - if (fcc->function_handler->common.fn_flags & ZEND_ACC_ALLOW_STATIC) { - severity = E_STRICT; - verb = "should not"; - } else { - /* An internal function assumes $this is present and won't check that. So PHP would crash by allowing the call. */ - severity = E_ERROR; - verb = "cannot"; - } - if ((check_flags & IS_CALLABLE_CHECK_IS_STATIC) != 0) { - retval = 0; - } - - if (error) { - zephir_spprintf(error, 0, "non-static method %s::%s() %s be called statically", fcc->calling_scope->name, fcc->function_handler->common.function_name, verb); - if (severity == E_ERROR) { - retval = 0; - } - } else if (retval) { - zend_error(severity, "Non-static method %s::%s() %s be called statically", fcc->calling_scope->name, fcc->function_handler->common.function_name, verb); - } - } - } - } else if (error && !(check_flags & IS_CALLABLE_CHECK_SILENT)) { - if (fcc->calling_scope) { - if (error) zephir_spprintf(error, 0, "class '%s' does not have a method '%s'", fcc->calling_scope->name, mname); - } else { - if (error) zephir_spprintf(error, 0, "function '%s' does not exist", mname); - } - } - efree(lmname); - - zend_string_free(zs_mname); - if (fcc->object) { - fcc->called_scope = fcc->object->ce; - } - if (retval) { - fcc->initialized = 1; - } - return retval; -} - -static zend_bool zephir_is_callable_ex(zval *callable, zend_object *object, uint check_flags, char **callable_name, int *callable_name_len, zend_fcall_info_cache *fcc, char **error) /* {{{ */ -{ - zend_bool ret; - int callable_name_len_local; - zend_fcall_info_cache fcc_local; - - if (callable_name) { - *callable_name = NULL; - } - if (callable_name_len == NULL) { - callable_name_len = &callable_name_len_local; - } - if (fcc == NULL) { - fcc = &fcc_local; - } - if (error) { - *error = NULL; - } - - fcc->initialized = 0; - fcc->calling_scope = NULL; - fcc->called_scope = NULL; - fcc->function_handler = NULL; - fcc->object = NULL; - - if (object && - (!EG(objects_store).object_buckets || - !IS_OBJ_VALID(EG(objects_store).object_buckets[object->handle]))) { - return 0; - } - - switch (Z_TYPE_P(callable)) { - - case IS_STRING: - if (object) { - fcc->object = object; - fcc->calling_scope = object->ce; - if (callable_name) { - char *ptr; - - *callable_name_len = fcc->calling_scope->name->len + Z_STRLEN_P(callable) + sizeof("::") - 1; - ptr = *callable_name = emalloc(*callable_name_len + 1); - memcpy(ptr, fcc->calling_scope->name->val, fcc->calling_scope->name->len); - ptr += fcc->calling_scope->name->len; - memcpy(ptr, "::", sizeof("::") - 1); - ptr += sizeof("::") - 1; - memcpy(ptr, Z_STRVAL_P(callable), Z_STRLEN_P(callable) + 1); - } - } else if (callable_name) { - *callable_name = estrndup(Z_STRVAL_P(callable), Z_STRLEN_P(callable)); - *callable_name_len = Z_STRLEN_P(callable); - } - if (check_flags & IS_CALLABLE_CHECK_SYNTAX_ONLY) { - fcc->called_scope = fcc->calling_scope; - return 1; - } - - ret = zephir_is_callable_check_func(check_flags, callable, fcc, 0, error); - if (fcc == &fcc_local && - fcc->function_handler && - ((fcc->function_handler->type == ZEND_INTERNAL_FUNCTION && - (fcc->function_handler->common.fn_flags & ZEND_ACC_CALL_VIA_HANDLER)) || - fcc->function_handler->type == ZEND_OVERLOADED_FUNCTION_TEMPORARY || - fcc->function_handler->type == ZEND_OVERLOADED_FUNCTION)) { - if (fcc->function_handler->type != ZEND_OVERLOADED_FUNCTION) { - zend_string_release(fcc->function_handler->common.function_name); - } - zend_free_trampoline(fcc->function_handler); - } - return ret; - - case IS_ARRAY: - { - zval *method = NULL; - zval *obj = NULL; - int strict_class = 0; - if (zend_hash_num_elements(Z_ARRVAL_P(callable)) == 2) { - obj = zend_hash_index_find(Z_ARRVAL_P(callable), 0); - method = zend_hash_index_find(Z_ARRVAL_P(callable), 1); - } - - do { - if (obj == NULL || method == NULL) { - break; - } - ZVAL_DEREF(method); - if (Z_TYPE_P(method) != IS_STRING) { - break; - } - - ZVAL_DEREF(obj); - if (Z_TYPE_P(obj) == IS_STRING) { - if (callable_name) { - char *ptr; - - *callable_name_len = Z_STRLEN_P(obj) + Z_STRLEN_P(method) + sizeof("::") - 1; - ptr = *callable_name = emalloc(*callable_name_len + 1); - memcpy(ptr, Z_STRVAL_P(obj), Z_STRLEN_P(obj)); - ptr += Z_STRLEN_P(obj); - memcpy(ptr, "::", sizeof("::") - 1); - ptr += sizeof("::") - 1; - memcpy(ptr, Z_STRVAL_P(method), Z_STRLEN_P(method) + 1); - } - - if (check_flags & IS_CALLABLE_CHECK_SYNTAX_ONLY) { - return 1; - } - - if (!zephir_is_callable_check_class(Z_STRVAL_P(obj), Z_STRLEN_P(obj), fcc, &strict_class, error)) { - return 0; - } - - } else { - if (!EG(objects_store).object_buckets || - !IS_OBJ_VALID(EG(objects_store).object_buckets[Z_OBJ_HANDLE_P(obj)])) { - return 0; - } - fcc->calling_scope = Z_OBJCE_P(obj); /* TBFixed: what if it's overloaded? */ - fcc->object = Z_OBJ_P(obj); - - if (callable_name) { - char *ptr; - - *callable_name_len = fcc->calling_scope->name->len + Z_STRLEN_P(method) + sizeof("::") - 1; - ptr = *callable_name = emalloc(*callable_name_len + 1); - memcpy(ptr, fcc->calling_scope->name->val, fcc->calling_scope->name->len); - ptr += fcc->calling_scope->name->len; - memcpy(ptr, "::", sizeof("::") - 1); - ptr += sizeof("::") - 1; - memcpy(ptr, Z_STRVAL_P(method), Z_STRLEN_P(method) + 1); - } - - if (check_flags & IS_CALLABLE_CHECK_SYNTAX_ONLY) { - fcc->called_scope = fcc->calling_scope; - return 1; - } - } - - ret = zephir_is_callable_check_func(check_flags, method, fcc, strict_class, error); - if (fcc == &fcc_local && - fcc->function_handler && - ((fcc->function_handler->type == ZEND_INTERNAL_FUNCTION && - (fcc->function_handler->common.fn_flags & ZEND_ACC_CALL_VIA_HANDLER)) || - fcc->function_handler->type == ZEND_OVERLOADED_FUNCTION_TEMPORARY || - fcc->function_handler->type == ZEND_OVERLOADED_FUNCTION)) { - if (fcc->function_handler->type != ZEND_OVERLOADED_FUNCTION) { - zend_string_release(fcc->function_handler->common.function_name); - } - zend_free_trampoline(fcc->function_handler); - } - return ret; - - } while (0); - if (zend_hash_num_elements(Z_ARRVAL_P(callable)) == 2) { - if (!obj || (!Z_ISREF_P(obj)? - (Z_TYPE_P(obj) != IS_STRING && Z_TYPE_P(obj) != IS_OBJECT) : - (Z_TYPE_P(Z_REFVAL_P(obj)) != IS_STRING && Z_TYPE_P(Z_REFVAL_P(obj)) != IS_OBJECT))) { - if (error) zephir_spprintf(error, 0, "first array member is not a valid class name or object"); - } else { - if (error) zephir_spprintf(error, 0, "second array member is not a valid method"); - } - } else { - if (error) zephir_spprintf(error, 0, "array must have exactly two members"); - } - if (callable_name) { - *callable_name = estrndup("Array", sizeof("Array")-1); - *callable_name_len = sizeof("Array") - 1; - } - } - return 0; - - case IS_OBJECT: - if (Z_OBJ_HANDLER_P(callable, get_closure) && Z_OBJ_HANDLER_P(callable, get_closure)(callable, &fcc->calling_scope, &fcc->function_handler, &fcc->object) == SUCCESS) { - fcc->called_scope = fcc->calling_scope; - if (callable_name) { - zend_class_entry *ce = Z_OBJCE_P(callable); /* TBFixed: what if it's overloaded? */ - - *callable_name_len = ce->name->len + sizeof("::__invoke") - 1; - *callable_name = emalloc(*callable_name_len + 1); - memcpy(*callable_name, ce->name->val, ce->name->len); - memcpy((*callable_name) + ce->name->len, "::__invoke", sizeof("::__invoke")); - } - return 1; - } - /* break missing intentionally */ - - default: - if (callable_name) { - zval expr_copy; - int use_copy = zend_make_printable_zval(callable, &expr_copy); - - *callable_name = estrndup(Z_STRVAL(expr_copy), Z_STRLEN(expr_copy)); - *callable_name_len = Z_STRLEN(expr_copy); - if (use_copy) { - zval_dtor(&expr_copy); - } - } - if (error) zephir_spprintf(error, 0, "no array or string given"); - return 0; - } -} - -static zend_bool zephir_is_info_dynamic_callable(zephir_fcall_info *info, zend_fcall_info_cache *fcc, zend_class_entry *ce_org, int strict_class) -{ - int call_via_handler = 0, retval = 0; - zend_string *zs_lcname = zend_string_alloc(info->func_length, 0); - zend_str_tolower_copy(ZSTR_VAL(zs_lcname), info->func_name, info->func_length); - - if (fcc->object && fcc->calling_scope == ce_org) { - if (strict_class && ce_org->__call) { - fcc->function_handler = zend_get_call_trampoline_func(ce_org, zs_lcname, 0); - call_via_handler = 1; - retval = 1; - } else if (fcc->object->handlers->get_method) { - fcc->function_handler = fcc->object->handlers->get_method(&fcc->object, zs_lcname, NULL); - if (fcc->function_handler) { - if (strict_class && - (!fcc->function_handler->common.scope || - !instanceof_function(ce_org, fcc->function_handler->common.scope TSRMLS_CC))) { - if ((fcc->function_handler->common.fn_flags & ZEND_ACC_CALL_VIA_HANDLER) != 0) { - if (fcc->function_handler->type != ZEND_OVERLOADED_FUNCTION) { - zend_string_release(fcc->function_handler->common.function_name); - } - zend_free_trampoline(fcc->function_handler); - } - } else { - call_via_handler = (fcc->function_handler->common.fn_flags & ZEND_ACC_CALL_VIA_HANDLER) != 0; - retval = 1; - } - } - } - } else if (fcc->calling_scope) { - if (fcc->calling_scope->get_static_method) { - fcc->function_handler = fcc->calling_scope->get_static_method(fcc->calling_scope, zs_lcname); - } else { - fcc->function_handler = zend_std_get_static_method(fcc->calling_scope, zs_lcname, NULL); - } - if (fcc->function_handler) { - call_via_handler = (fcc->function_handler->common.fn_flags & ZEND_ACC_CALL_VIA_HANDLER) != 0; - if (call_via_handler && !fcc->object && EG(current_execute_data) && Z_OBJ(EG(current_execute_data)->This) && - instanceof_function(Z_OBJCE(EG(current_execute_data)->This), fcc->calling_scope)) { - fcc->object = Z_OBJ(EG(current_execute_data)->This); - } - retval = 1; - } - } - - zend_string_release(zs_lcname); - return retval; -} - -static zend_bool zephir_is_info_callable_ex(zephir_fcall_info *info, zend_fcall_info_cache *fcc TSRMLS_DC) -{ - int retval = 0; - zend_class_entry *ce_org = fcc->calling_scope, *scope, *called_scope; - zend_fcall_info_cache fcc_local; - -#if PHP_VERSION_ID >= 70100 - if(ce_org) { - scope = ce_org; - } else { - scope = zend_get_executed_scope(); - } - called_scope = zend_get_called_scope(EG(current_execute_data)); -#else - scope = EG(scope); - called_scope = EG(current_execute_data)->called_scope; -#endif - - if (fcc == NULL) { - fcc = &fcc_local; - } - - fcc->initialized = 0; - fcc->calling_scope = NULL; - fcc->called_scope = NULL; - fcc->function_handler = NULL; - fcc->object = NULL; - - switch (info->type) { - - case ZEPHIR_FCALL_TYPE_FUNC: - - if ((fcc->function_handler = zend_hash_str_find_ptr(EG(function_table), info->func_name, info->func_length)) != NULL) { - if (fcc == &fcc_local && - fcc->function_handler && - ((fcc->function_handler->type == ZEND_INTERNAL_FUNCTION && - (fcc->function_handler->common.fn_flags & ZEND_ACC_CALL_VIA_HANDLER)) || - fcc->function_handler->type == ZEND_OVERLOADED_FUNCTION_TEMPORARY || - fcc->function_handler->type == ZEND_OVERLOADED_FUNCTION)) { - if (fcc->function_handler->type != ZEND_OVERLOADED_FUNCTION) { - efree((char*)fcc->function_handler->common.function_name); - } - zend_string_release(fcc->function_handler->common.function_name); - } - fcc->initialized = 1; - return 1; - } - break; - - case ZEPHIR_FCALL_TYPE_ZVAL_METHOD: - if (!EG(objects_store).object_buckets || !IS_OBJ_VALID(EG(objects_store).object_buckets[Z_OBJ_HANDLE_P(info->object_ptr)])) { - return 0; - } - fcc->calling_scope = Z_OBJCE_P(info->object_ptr); /* TBFixed: what if it's overloaded? */ - fcc->called_scope = fcc->calling_scope; - fcc->object = Z_OBJ_P(info->object_ptr); - - if (!ce_org) { - ce_org = fcc->calling_scope; - } - - if ((fcc->function_handler = zend_hash_str_find_ptr(&info->ce->function_table, info->func_name, info->func_length + 1)) != NULL) { - if (fcc == &fcc_local && - fcc->function_handler && - ((fcc->function_handler->type == ZEND_INTERNAL_FUNCTION && - (fcc->function_handler->common.fn_flags & ZEND_ACC_CALL_VIA_HANDLER)) || - fcc->function_handler->type == ZEND_OVERLOADED_FUNCTION_TEMPORARY || - fcc->function_handler->type == ZEND_OVERLOADED_FUNCTION)) { - if (fcc->function_handler->type != ZEND_OVERLOADED_FUNCTION) { - zend_string_release(fcc->function_handler->common.function_name); - } - zend_free_trampoline(fcc->function_handler); - } - retval = 1; - } - - if (!retval) { - retval = zephir_is_info_dynamic_callable(info, fcc, ce_org, 0 TSRMLS_CC); - } - break; - - case ZEPHIR_FCALL_TYPE_CLASS_SELF_METHOD: - - if (!called_scope) { - return 0; // cannot access self:: when no class scope is active - } - - fcc->called_scope = called_scope; - fcc->calling_scope = scope; - if (!fcc->object) { - fcc->object = Z_OBJ(EG(current_execute_data)->This); - } - if ((fcc->function_handler = zend_hash_str_find_ptr(&fcc->calling_scope->function_table, info->func_name, info->func_length)) != NULL) { - if (fcc == &fcc_local && - fcc->function_handler && - ((fcc->function_handler->type == ZEND_INTERNAL_FUNCTION && - (fcc->function_handler->common.fn_flags & ZEND_ACC_CALL_VIA_HANDLER)) || - fcc->function_handler->type == ZEND_OVERLOADED_FUNCTION_TEMPORARY || - fcc->function_handler->type == ZEND_OVERLOADED_FUNCTION)) { - if (fcc->function_handler->type != ZEND_OVERLOADED_FUNCTION) { - zend_string_release(fcc->function_handler->common.function_name); - } - zend_free_trampoline(fcc->function_handler); - } - retval = 1; - } - - if (!retval) { - retval = zephir_is_info_dynamic_callable(info, fcc, ce_org, 0 TSRMLS_CC); - } - break; - - case ZEPHIR_FCALL_TYPE_CLASS_PARENT_METHOD: - - if (!scope) { - return 0; // cannot access parent:: when no class scope is active - } - - if (!scope->parent) { - return 0; // cannot access parent:: when current class scope has no parent - } - - fcc->calling_scope = scope->parent; - fcc->called_scope = called_scope; - if (!fcc->object) { - fcc->object = Z_OBJ(EG(current_execute_data)->This); - } - - if ((fcc->function_handler = zend_hash_str_find_ptr(&fcc->calling_scope->function_table, info->func_name, info->func_length)) != NULL) { - if (fcc == &fcc_local && - fcc->function_handler && - ((fcc->function_handler->type == ZEND_INTERNAL_FUNCTION && - (fcc->function_handler->common.fn_flags & ZEND_ACC_CALL_VIA_HANDLER)) || - fcc->function_handler->type == ZEND_OVERLOADED_FUNCTION_TEMPORARY || - fcc->function_handler->type == ZEND_OVERLOADED_FUNCTION)) { - if (fcc->function_handler->type != ZEND_OVERLOADED_FUNCTION) { - zend_string_release(fcc->function_handler->common.function_name); - } - zend_free_trampoline(fcc->function_handler); - } - retval = 1; - } - - if (!retval) { - retval = zephir_is_info_dynamic_callable(info, fcc, ce_org, 1 TSRMLS_CC); - } - break; - - case ZEPHIR_FCALL_TYPE_CLASS_STATIC_METHOD: - - if (!EG(current_execute_data) || !called_scope) { - return 0; // cannot access static:: when no class scope is active - } - - fcc->called_scope = called_scope; - if (!fcc->object) { - fcc->object = Z_OBJ(EG(current_execute_data)->This); - } - fcc->calling_scope = fcc->called_scope; - - if ((fcc->function_handler = zend_hash_str_find_ptr(&fcc->calling_scope->function_table, info->func_name, info->func_length)) != NULL) { - if (fcc == &fcc_local && - fcc->function_handler && - ((fcc->function_handler->type == ZEND_INTERNAL_FUNCTION && - (fcc->function_handler->common.fn_flags & ZEND_ACC_CALL_VIA_HANDLER)) || - fcc->function_handler->type == ZEND_OVERLOADED_FUNCTION_TEMPORARY || - fcc->function_handler->type == ZEND_OVERLOADED_FUNCTION)) { - if (fcc->function_handler->type != ZEND_OVERLOADED_FUNCTION) { - zend_string_release(fcc->function_handler->common.function_name); - } - zend_free_trampoline(fcc->function_handler); - } - retval = 1; - } - - if (!retval) { - retval = zephir_is_info_dynamic_callable(info, fcc, ce_org, 1 TSRMLS_CC); - } - break; - - case ZEPHIR_FCALL_TYPE_CE_METHOD: - { - zend_class_entry *scope = EG(current_execute_data) ? EG(current_execute_data)->func->common.scope : NULL;; - - fcc->calling_scope = info->ce; - if (scope && !fcc->object && EG(current_execute_data) && Z_OBJ(EG(current_execute_data)->This) && - instanceof_function(Z_OBJCE(EG(current_execute_data)->This), scope) && - instanceof_function(scope, fcc->calling_scope)) { - fcc->object = Z_OBJ(EG(current_execute_data)->This); - fcc->called_scope = Z_OBJCE(EG(current_execute_data)->This); - } else { - fcc->called_scope = fcc->object ? fcc->object->ce : fcc->calling_scope; - } - - if ((fcc->function_handler = zend_hash_str_find_ptr(&fcc->calling_scope->function_table, info->func_name, info->func_length)) != NULL) { - if (fcc == &fcc_local && - fcc->function_handler && - ((fcc->function_handler->type == ZEND_INTERNAL_FUNCTION && - (fcc->function_handler->common.fn_flags & ZEND_ACC_CALL_VIA_HANDLER)) || - fcc->function_handler->type == ZEND_OVERLOADED_FUNCTION_TEMPORARY || - fcc->function_handler->type == ZEND_OVERLOADED_FUNCTION)) { - if (fcc->function_handler->type != ZEND_OVERLOADED_FUNCTION) { - zend_string_release(fcc->function_handler->common.function_name); - } - zend_free_trampoline(fcc->function_handler); - } - retval = 1; - } - - if (!retval) { - retval = zephir_is_info_dynamic_callable(info, fcc, ce_org, 1 TSRMLS_CC); - } - } - break; - } - - if (fcc->object) { - fcc->called_scope = fcc->object->ce; - } - if (retval) { - fcc->initialized = 1; - } - - return retval; -} - -static int zephir_call_function_opt(zend_fcall_info *fci, zend_fcall_info_cache *fci_cache, zephir_fcall_info *info, zval *params[]) -{ - uint32_t i; - zend_class_entry *calling_scope = NULL; - zend_execute_data *call, dummy_execute_data; - zend_fcall_info_cache fci_cache_local; - zend_function *func; - zend_class_entry *orig_scope; - - ZVAL_UNDEF(fci->retval); - - if (!EG(active)) { - return FAILURE; /* executor is already inactive */ - } - - if (EG(exception)) { - return FAILURE; /* we would result in an instable executor otherwise */ - } - - switch (fci->size) { - case sizeof(zend_fcall_info): - break; /* nothing to do currently */ - default: - zend_error_noreturn(E_CORE_ERROR, "Corrupted fcall_info provided to zend_call_function()"); - break; - } - -#if PHP_VERSION_ID >= 70100 - //orig_scope = EG(fake_scope); -#else - orig_scope = EG(scope); -#endif - - /* Initialize execute_data */ - if (!EG(current_execute_data)) { - /* This only happens when we're called outside any execute()'s - * It shouldn't be strictly necessary to NULL execute_data out, - * but it may make bugs easier to spot - */ - memset(&dummy_execute_data, 0, sizeof(zend_execute_data)); - EG(current_execute_data) = &dummy_execute_data; - } else if (EG(current_execute_data)->func && - ZEND_USER_CODE(EG(current_execute_data)->func->common.type) && - EG(current_execute_data)->opline->opcode != ZEND_DO_FCALL && - EG(current_execute_data)->opline->opcode != ZEND_DO_ICALL && - EG(current_execute_data)->opline->opcode != ZEND_DO_UCALL && - EG(current_execute_data)->opline->opcode != ZEND_DO_FCALL_BY_NAME) { - /* Insert fake frame in case of include or magic calls */ - dummy_execute_data = *EG(current_execute_data); - dummy_execute_data.prev_execute_data = EG(current_execute_data); - dummy_execute_data.call = NULL; - dummy_execute_data.opline = NULL; - dummy_execute_data.func = NULL; - EG(current_execute_data) = &dummy_execute_data; - } - - if (!fci_cache || !fci_cache->initialized) { - char *error = NULL; - - if (!fci_cache) { - fci_cache = &fci_cache_local; - } - - if (!info) { - char *callable_name; - if (!zephir_is_callable_ex(&fci->function_name, fci->object, IS_CALLABLE_CHECK_SILENT, &callable_name, NULL, fci_cache, &error)) { - if (error) { - zend_error(E_WARNING, "Invalid callback %s, %s", callable_name, error); - efree(error); - } - if (callable_name) { - efree(callable_name); - } - if (EG(current_execute_data) == &dummy_execute_data) { - EG(current_execute_data) = dummy_execute_data.prev_execute_data; - } - return FAILURE; - } else { - if (error) { - zend_error(E_STRICT, "%s", error); - efree(error); - } - } - efree(callable_name); - } else { - if (!zephir_is_info_callable_ex(info, fci_cache)) { - return FAILURE; - } - } - } - - func = fci_cache->function_handler; -#if PHP_VERSION_ID >= 70100 - fci->object = (func->common.fn_flags & ZEND_ACC_STATIC) ? NULL : fci_cache->object; - call = zend_vm_stack_push_call_frame(ZEND_CALL_TOP_FUNCTION, func, fci->param_count, fci_cache->called_scope, fci->object); -#else - call = zend_vm_stack_push_call_frame(ZEND_CALL_TOP_FUNCTION, - func, fci->param_count, fci_cache->called_scope, fci_cache->object); - fci->object = fci_cache->object; -#endif - calling_scope = fci_cache->calling_scope; - if (fci->object && - (!EG(objects_store).object_buckets || - !IS_OBJ_VALID(EG(objects_store).object_buckets[fci->object->handle]))) { - if (EG(current_execute_data) == &dummy_execute_data) { - EG(current_execute_data) = dummy_execute_data.prev_execute_data; - } - return FAILURE; - } - - if (func->common.fn_flags & (ZEND_ACC_ABSTRACT|ZEND_ACC_DEPRECATED)) { - if (func->common.fn_flags & ZEND_ACC_ABSTRACT) { - zend_throw_error(NULL, "Cannot call abstract method %s::%s()", ZSTR_VAL(func->common.scope->name), ZSTR_VAL(func->common.function_name)); - return FAILURE; - } - if (func->common.fn_flags & ZEND_ACC_DEPRECATED) { - zend_error(E_DEPRECATED, "Function %s%s%s() is deprecated", - func->common.scope ? ZSTR_VAL(func->common.scope->name) : "", - func->common.scope ? "::" : "", - ZSTR_VAL(func->common.function_name)); - } - } - - for (i = 0; i < fci->param_count; i++) { - zval *param; - zval *arg = params[i]; - - if (ARG_SHOULD_BE_SENT_BY_REF(func, i + 1)) { - if (UNEXPECTED(!Z_ISREF_P(arg))) { - /*if (fci->no_separation && - !ARG_MAY_BE_SENT_BY_REF(func, i + 1)) { - if (i) { - // hack to clean up the stack - ZEND_CALL_NUM_ARGS(call) = i; - zend_vm_stack_free_args(call); - } - zend_vm_stack_free_call_frame(call); - - zend_error(E_WARNING, "Parameter %d to %s%s%s() expected to be a reference, value given", - i+1, - func->common.scope ? ZSTR_VAL(func->common.scope->name) : "", - func->common.scope ? "::" : "", - ZSTR_VAL(func->common.function_name)); - if (EG(current_execute_data) == &dummy_execute_data) { - EG(current_execute_data) = dummy_execute_data.prev_execute_data; - } - return FAILURE; - } */ - - ZVAL_NEW_REF(arg, arg); - } - Z_ADDREF_P(arg); - } else { - if (Z_ISREF_P(arg) && - !(func->common.fn_flags & ZEND_ACC_CALL_VIA_TRAMPOLINE)) { - /* don't separate references for __call */ - arg = Z_REFVAL_P(arg); - } - if (Z_OPT_REFCOUNTED_P(arg)) { - Z_ADDREF_P(arg); - } - } - param = ZEND_CALL_ARG(call, i+1); - ZVAL_COPY_VALUE(param, arg); - } - -#if PHP_VERSION_ID >= 70100 - //EG(fake_scope) = calling_scope; - if(fci_cache->object) { - Z_OBJ(call->This) = fci_cache->object; - } - if (UNEXPECTED(func->op_array.fn_flags & ZEND_ACC_CLOSURE)) { - ZEND_ASSERT(GC_TYPE((zend_object*)func->op_array.prototype) == IS_OBJECT); - GC_REFCOUNT((zend_object*)func->op_array.prototype)++; - ZEND_ADD_CALL_FLAG(call, ZEND_CALL_CLOSURE); - } -#else - EG(scope) = calling_scope; - if (func->common.fn_flags & ZEND_ACC_STATIC) { - fci->object = NULL; - } - Z_OBJ(call->This) = fci->object; -#endif - - if (func->type == ZEND_USER_FUNCTION) { - int call_via_handler = (func->common.fn_flags & ZEND_ACC_CALL_VIA_TRAMPOLINE) != 0; - -#if PHP_VERSION_ID >= 70100 - //EG(fake_scope) = func->common.scope; - //call->symbol_table = NULL; -#else - EG(scope) = func->common.scope; - call->symbol_table = fci->symbol_table; -#endif - -#if PHP_VERSION_ID >= 70100 - zend_init_execute_data(call, &func->op_array, fci->retval); - zend_execute_ex(call); -#else - if (UNEXPECTED(func->op_array.fn_flags & ZEND_ACC_CLOSURE)) { - ZEND_ASSERT(GC_TYPE((zend_object*)func->op_array.prototype) == IS_OBJECT); - GC_REFCOUNT((zend_object*)func->op_array.prototype)++; - ZEND_ADD_CALL_FLAG(call, ZEND_CALL_CLOSURE); - } - if (EXPECTED((func->op_array.fn_flags & ZEND_ACC_GENERATOR) == 0)) { - zend_init_execute_data(call, &func->op_array, fci->retval); - zend_execute_ex(call); - } else { - zend_generator_create_zval(call, &func->op_array, fci->retval); - } -#endif - if (call_via_handler) { - /* We must re-initialize function again */ - fci_cache->initialized = 0; - } - } else if (func->type == ZEND_INTERNAL_FUNCTION) { - int call_via_handler = (func->common.fn_flags & ZEND_ACC_CALL_VIA_TRAMPOLINE) != 0; - ZVAL_NULL(fci->retval); - if (func->common.scope) { -#if PHP_VERSION_ID >= 70100 - //EG(fake_scope) = func->common.scope; -#else - EG(scope) = func->common.scope; -#endif - } - call->prev_execute_data = EG(current_execute_data); - call->return_value = NULL; /* this is not a constructor call */ - EG(current_execute_data) = call; - if (EXPECTED(zend_execute_internal == NULL)) { - /* saves one function call if zend_execute_internal is not used */ - func->internal_function.handler(call, fci->retval); - } else { - zend_execute_internal(call, fci->retval); - } - EG(current_execute_data) = call->prev_execute_data; - zend_vm_stack_free_args(call); - - /* We shouldn't fix bad extensions here, - because it can break proper ones (Bug #34045) - if (!EX(function_state).function->common.return_reference) - { - INIT_PZVAL(f->retval); - }*/ - if (EG(exception)) { - zval_ptr_dtor(fci->retval); - ZVAL_UNDEF(fci->retval); - } - - if (call_via_handler) { - /* We must re-initialize function again */ - fci_cache->initialized = 0; - } - } else { /* ZEND_OVERLOADED_FUNCTION */ - ZVAL_NULL(fci->retval); - - /* Not sure what should be done here if it's a static method */ - if (fci->object) { - call->prev_execute_data = EG(current_execute_data); - EG(current_execute_data) = call; - fci->object->handlers->call_method(func->common.function_name, fci->object, call, fci->retval); - EG(current_execute_data) = call->prev_execute_data; - } else { - zend_throw_error(NULL, "Cannot call overloaded function for non-object"); - } - - zend_vm_stack_free_args(call); - - if (func->type == ZEND_OVERLOADED_FUNCTION_TEMPORARY) { - zend_string_release(func->common.function_name); - } - efree(func); - - if (EG(exception)) { - zval_ptr_dtor(fci->retval); - ZVAL_UNDEF(fci->retval); - } - } - -#if PHP_VERSION_ID >= 70100 - //EG(fake_scope) = orig_scope; -#else - EG(scope) = orig_scope; -#endif - zend_vm_stack_free_call_frame(call); - - if (EG(current_execute_data) == &dummy_execute_data) { - EG(current_execute_data) = dummy_execute_data.prev_execute_data; - } - - if (EG(exception)) { - zend_throw_exception_internal(NULL); - } - return SUCCESS; -} - - - #ifdef HAVE_CONFIG_H #endif @@ -8488,7 +7197,7 @@ static void zephir_camelize(zval *return_value, const zval *str, const zval *del smart_str camelize_str = {0}; char *marker, ch, *delim; - if (unlikely(Z_TYPE_P(str) != IS_STRING)) { + if (UNEXPECTED(Z_TYPE_P(str) != IS_STRING)) { zend_error(E_WARNING, "Invalid arguments supplied for camelize()"); RETURN_EMPTY_STRING(); } @@ -8615,7 +7324,7 @@ static int zephir_memnstr_str(const zval *haystack, char *needle, unsigned int n static void zephir_fast_explode(zval *return_value, zval *delimiter, zval *str, long limit) { - if (unlikely(Z_TYPE_P(str) != IS_STRING || Z_TYPE_P(delimiter) != IS_STRING)) { + if (UNEXPECTED(Z_TYPE_P(str) != IS_STRING || Z_TYPE_P(delimiter) != IS_STRING)) { zend_error(E_WARNING, "Invalid arguments supplied for explode()"); RETURN_EMPTY_STRING(); } @@ -8628,7 +7337,7 @@ static void zephir_fast_explode_str(zval *return_value, const char *delim, int d { zend_string *delimiter; - if (unlikely(Z_TYPE_P(str) != IS_STRING)) { + if (UNEXPECTED(Z_TYPE_P(str) != IS_STRING)) { zend_error(E_WARNING, "Invalid arguments supplied for explode()"); RETURN_EMPTY_STRING(); } @@ -8643,7 +7352,7 @@ static void zephir_fast_strpos(zval *return_value, const zval *haystack, const z { const char *found = NULL; - if (unlikely(Z_TYPE_P(haystack) != IS_STRING || Z_TYPE_P(needle) != IS_STRING)) { + if (UNEXPECTED(Z_TYPE_P(haystack) != IS_STRING || Z_TYPE_P(needle) != IS_STRING)) { ZVAL_NULL(return_value); zend_error(E_WARNING, "Invalid arguments supplied for strpos()"); return; @@ -8674,7 +7383,7 @@ static void zephir_fast_strpos_str(zval *return_value, const zval *haystack, cha { const char *found = NULL; - if (unlikely(Z_TYPE_P(haystack) != IS_STRING)) { + if (UNEXPECTED(Z_TYPE_P(haystack) != IS_STRING)) { ZVAL_NULL(return_value); zend_error(E_WARNING, "Invalid arguments supplied for strpos()"); return; @@ -8988,7 +7697,8 @@ static void zephir_preg_match(zval *return_value, zval *regex, zval *subject, zv ZVAL_LONG(&tmp_flags, flags); ZVAL_LONG(&tmp_offset, offset); - ZVAL_UNDEF(&tmp_matches); + ZVAL_NULL(&tmp_matches); + ZVAL_MAKE_REF(&tmp_matches); { zval *tmp_params[5] = { regex, subject, &tmp_matches, &tmp_flags, &tmp_offset }; @@ -9035,7 +7745,7 @@ static int zephir_json_decode(zval *return_value, zval *v, zend_bool assoc) zval copy; int use_copy = 0; - if (unlikely(Z_TYPE_P(v) != IS_STRING)) { + if (UNEXPECTED(Z_TYPE_P(v) != IS_STRING)) { use_copy = zend_make_printable_zval(v, ©); if (use_copy) { v = © @@ -9044,7 +7754,7 @@ static int zephir_json_decode(zval *return_value, zval *v, zend_bool assoc) php_json_decode(return_value, Z_STRVAL_P(v), Z_STRLEN_P(v), assoc, 512 /* JSON_PARSER_DEFAULT_DEPTH */); - if (unlikely(use_copy)) { + if (UNEXPECTED(use_copy)) { zval_dtor(©); } @@ -9144,7 +7854,7 @@ static void zephir_ucfirst(zval *return_value, zval *s) char *c; int use_copy = 0; - if (unlikely(Z_TYPE_P(s) != IS_STRING)) { + if (UNEXPECTED(Z_TYPE_P(s) != IS_STRING)) { use_copy = zend_make_printable_zval(s, ©); if (use_copy) { s = © @@ -9160,7 +7870,7 @@ static void zephir_ucfirst(zval *return_value, zval *s) *c = toupper((unsigned char)*c); } - if (unlikely(use_copy)) { + if (UNEXPECTED(use_copy)) { zval_dtor(©); } } @@ -9170,7 +7880,7 @@ static void zephir_addslashes(zval *return_value, zval *str) zval copy; int use_copy = 0; - if (unlikely(Z_TYPE_P(str) != IS_STRING)) { + if (UNEXPECTED(Z_TYPE_P(str) != IS_STRING)) { use_copy = zend_make_printable_zval(str, ©); if (use_copy) { str = © @@ -9179,7 +7889,7 @@ static void zephir_addslashes(zval *return_value, zval *str) ZVAL_STR(return_value, php_addslashes(Z_STR_P(str), 0)); - if (unlikely(use_copy)) { + if (UNEXPECTED(use_copy)) { zval_dtor(©); } } @@ -9189,7 +7899,7 @@ static void zephir_stripslashes(zval *return_value, zval *str) zval copy; int use_copy = 0; - if (unlikely(Z_TYPE_P(str) != IS_STRING)) { + if (UNEXPECTED(Z_TYPE_P(str) != IS_STRING)) { use_copy = zend_make_printable_zval(str, ©); if (use_copy) { str = © @@ -9199,7 +7909,7 @@ static void zephir_stripslashes(zval *return_value, zval *str) ZVAL_STRINGL(return_value, Z_STRVAL_P(str), Z_STRLEN_P(str)); php_stripslashes(Z_STR_P(return_value)); - if (unlikely(use_copy)) { + if (UNEXPECTED(use_copy)) { zval_dtor(©); } } @@ -9209,7 +7919,7 @@ static void zephir_stripcslashes(zval *return_value, zval *str) zval copy; int use_copy = 0; - if (unlikely(Z_TYPE_P(str) != IS_STRING)) { + if (UNEXPECTED(Z_TYPE_P(str) != IS_STRING)) { use_copy = zend_make_printable_zval(str, ©); if (use_copy) { str = © @@ -9219,7 +7929,7 @@ static void zephir_stripcslashes(zval *return_value, zval *str) ZVAL_STRINGL(return_value, Z_STRVAL_P(str), Z_STRLEN_P(str)); php_stripcslashes(Z_STR_P(return_value)); - if (unlikely(use_copy)) { + if (UNEXPECTED(use_copy)) { zval_dtor(©); } } @@ -9248,6 +7958,37 @@ static int zephir_hash_equals(const zval *known_zval, const zval *user_zval) return (int) (result == 0); } +static void zephir_string_to_hex(zval *return_value, zval *var) +{ + int use_copy = 0; + zval copy; + size_t i; + char *s; + zend_string *res; + + if (Z_TYPE_P(var) != IS_STRING) { + use_copy = zend_make_printable_zval(var, ©); + if (use_copy) { + var = © + } + } + + res = zend_string_alloc(2*Z_STRLEN_P(var) + 1, 0); + s = Z_STRVAL_P(var); + for (i=0; ival + 2*i, "%hhX", s[i]); + } + + res->val[2*Z_STRLEN_P(var)] = 0; + res->len = 2*Z_STRLEN_P(var); + zend_string_forget_hash_val(res); + ZVAL_STR(return_value, res); + + if (use_copy) { + zval_dtor(var); + } +} + @@ -9284,7 +8025,7 @@ static int zephir_has_constructor_ce(const zend_class_entry *ce) return 0; } -static ulong zephir_make_fcall_info_key(char **result, size_t *length, const zend_class_entry *obj_ce, zephir_call_type type, zephir_fcall_info *info) +static ulong zephir_make_fcall_key(char **result, size_t *length, const zend_class_entry *obj_ce, zephir_call_type type, zval *function_name) { const zend_class_entry *calling_scope; char *buf = NULL, *c; @@ -9327,114 +8068,6 @@ static ulong zephir_make_fcall_info_key(char **result, size_t *length, const zen calling_scope = NULL; } - switch (info->type) { - - case ZEPHIR_FCALL_TYPE_FUNC: - - l = (size_t)(info->func_length) + 1; - c = (char*) info->func_name; - len = 2 * ppzce_size + l + 1; - buf = emalloc(len); - - memcpy(buf, c, l); - memcpy(buf + l, &calling_scope, ppzce_size); - memcpy(buf + l + ppzce_size, &obj_ce, ppzce_size); - buf[len - 1] = '\0'; - break; - - case ZEPHIR_FCALL_TYPE_CLASS_SELF_METHOD: - case ZEPHIR_FCALL_TYPE_CLASS_STATIC_METHOD: - case ZEPHIR_FCALL_TYPE_CLASS_PARENT_METHOD: - l = (size_t)(info->func_length) + 2; /* reserve 1 char for fcall-type */ - c = (char*) info->func_name; - len = 2 * ppzce_size + l + 1; - buf = emalloc(len); - - buf[0] = info->type; - memcpy(buf + 1, c, l - 1); - memcpy(buf + l, &calling_scope, ppzce_size); - memcpy(buf + l + ppzce_size, &obj_ce, ppzce_size); - buf[len - 1] = '\0'; - break; - - case ZEPHIR_FCALL_TYPE_CE_METHOD: - case ZEPHIR_FCALL_TYPE_ZVAL_METHOD: - l = (size_t)(info->func_length) + 1; - c = (char*) info->func_name; - len = 2 * ppzce_size + l + 1; - buf = emalloc(len); - - memcpy(buf, c, l); - memcpy(buf + l, &calling_scope, ppzce_size); - memcpy(buf + l + ppzce_size, &obj_ce, ppzce_size); - buf[len - 1] = '\0'; - break; - } - - if (EXPECTED(buf != NULL)) { - size_t i; - - for (i = 0; i < l; ++i) { - char c = buf[i]; - c = tolower_map[(unsigned char)c]; - buf[i] = c; - hash = (hash << 5) + hash + c; - } - - for (i = l; i < len; ++i) { - char c = buf[i]; - hash = (hash << 5) + hash + c; - } - } - - *result = buf; - *length = len; - return hash; -} - -static ulong zephir_make_fcall_key(char **result, size_t *length, const zend_class_entry *obj_ce, zephir_call_type type, zval *function_name TSRMLS_DC) -{ - const zend_class_entry *calling_scope; - char *buf = NULL, *c; - size_t l = 0, len = 0; - const size_t ppzce_size = sizeof(zend_class_entry**); - ulong hash = 5381; - -#if PHP_VERSION_ID >= 70100 - calling_scope = EG(fake_scope); -#else - calling_scope = EG(scope); -#endif - *result = NULL; - *length = 0; - - if (calling_scope && type == zephir_fcall_parent) { - calling_scope = calling_scope->parent; - if (UNEXPECTED(!calling_scope)) { - return 0; - } - } - else if (type == zephir_fcall_static) { -#if PHP_VERSION_ID >= 70100 - calling_scope = zend_get_called_scope(EG(current_execute_data)); -#else - calling_scope = EG(current_execute_data)->called_scope; -#endif - if (UNEXPECTED(!calling_scope)) { - return 0; - } - } - - if ( - calling_scope - && obj_ce - && calling_scope != obj_ce - && !instanceof_function(obj_ce, calling_scope) - && !instanceof_function(calling_scope, obj_ce) - ) { - calling_scope = NULL; - } - if (Z_TYPE_P(function_name) == IS_STRING) { l = (size_t)(Z_STRLEN_P(function_name)) + 1; c = Z_STRVAL_P(function_name); @@ -9487,95 +8120,9 @@ static ulong zephir_make_fcall_key(char **result, size_t *length, const zend_cla return hash; } -ZEPHIR_ATTR_NONNULL static void zephir_fcall_populate_fci_cache(zend_fcall_info_cache *fcic, zend_fcall_info *fci, zephir_call_type type) -{ - zend_class_entry *scope, *called_scope; -#if PHP_VERSION_ID >= 70100 - scope = EG(fake_scope); - called_scope = zend_get_called_scope(EG(current_execute_data)); -#else - scope = EG(scope); - called_scope = EG(current_execute_data)->called_scope; -#endif - - switch (type) { - case zephir_fcall_parent: - if (scope && scope->parent) { - fcic->calling_scope = scope->parent; - fcic->called_scope = called_scope; - fcic->object = fci->object ? fci->object : Z_OBJ(EG(current_execute_data)->This); - fcic->initialized = 1; - } - - break; - - case zephir_fcall_self: - if (scope) { - fcic->calling_scope = scope; - fcic->called_scope = called_scope; - fcic->object = fci->object ? fci->object : Z_OBJ(EG(current_execute_data)->This); - fcic->initialized = 1; - } - - break; - - case zephir_fcall_static: - if (called_scope) { - fcic->called_scope = called_scope; - fcic->calling_scope = called_scope; - fcic->object = fci->object ? fci->object : Z_OBJ(EG(current_execute_data)->This); - fcic->initialized = 1; - } - - break; - - case zephir_fcall_function: - fcic->calling_scope = NULL; - fcic->called_scope = NULL; - fcic->object = NULL; - fcic->initialized = 1; - break; - - case zephir_fcall_ce: { - fcic->initialized = 1; - fcic->calling_scope = scope; - /* called_scope: Instead of the checks below, which seem unnecessary/broken? */ - fcic->called_scope = fcic->calling_scope; - fcic->object = NULL; - - break; - } - - case zephir_fcall_method: - fcic->initialized = 1; - fcic->calling_scope = scope; - fcic->object = fci->object; - if (fci->object) { - fcic->called_scope = fci->object->ce; - } - else if (scope && !(called_scope && instanceof_function(called_scope, scope))) { - fcic->called_scope = scope; - } - else { - fcic->called_scope = called_scope; - } - - break; - - default: -#ifndef ZEPHIR_RELEASE - fprintf(stderr, "%s: unknown call type (%d)\n", __func__, (int) type); - abort(); -#endif - fcic->initialized = 0; /* not strictly necessary but just to be safe */ - break; - } - -} - static 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 *params[], zephir_fcall_info *info) + zval *params[]) { zval local_retval_ptr; int status; @@ -9586,12 +8133,10 @@ static int zephir_call_user_function(zval *object_pp, zend_class_entry *obj_ce, ulong fcall_key_hash; size_t fcall_key_len; zephir_fcall_cache_entry *temp_cache_entry = NULL; - zend_class_entry *old_scope; - int reload_cache = 1; + int reload_cache = 1, i; -#if PHP_VERSION_ID >= 70100 - //old_scope = EG(fake_scope); -#else +#if PHP_VERSION_ID < 70100 + zend_class_entry *old_scope; old_scope = EG(scope); #endif @@ -9610,120 +8155,151 @@ static int zephir_call_user_function(zval *object_pp, zend_class_entry *obj_ce, return FAILURE; } - if (type != zephir_fcall_function && !object_pp) { - object_pp = EG(current_execute_data) && Z_OBJ(EG(current_execute_data)->This) ? &EG(current_execute_data)->This : NULL; - if (!obj_ce && object_pp) { - obj_ce = Z_OBJCE_P(object_pp); - } - } - if (obj_ce) { -#if PHP_VERSION_ID >= 70100 - //EG(fake_scope) = obj_ce; -#else +#if PHP_VERSION_ID < 70100 EG(scope) = obj_ce; #endif } - if (!cache_entry || !*cache_entry) { - if (zephir_globals_ptr->cache_enabled) { - - if (cache_slot > 0) { - if (zephir_globals_ptr->scache[cache_slot]) { - reload_cache = 0; - temp_cache_entry = zephir_globals_ptr->scache[cache_slot]; - if (cache_entry) { - *cache_entry = temp_cache_entry; - } + if ((!cache_entry || !*cache_entry) && zephir_globals_ptr->cache_enabled) { + if (cache_slot > 0) { + if (zephir_globals_ptr->scache[cache_slot]) { + reload_cache = 0; + temp_cache_entry = zephir_globals_ptr->scache[cache_slot]; + if (cache_entry) { + *cache_entry = temp_cache_entry; } } + } - if (reload_cache) { - if (info) { - fcall_key_hash = zephir_make_fcall_info_key(&fcall_key, &fcall_key_len, (object_pp && type != zephir_fcall_ce ? Z_OBJCE_P(object_pp) : obj_ce), type, info); - } else { - fcall_key_hash = zephir_make_fcall_key(&fcall_key, &fcall_key_len, (object_pp && type != zephir_fcall_ce ? Z_OBJCE_P(object_pp) : obj_ce), type, function_name); - } - } + if (reload_cache) { + fcall_key_hash = zephir_make_fcall_key(&fcall_key, &fcall_key_len, (object_pp && type != zephir_fcall_ce ? Z_OBJCE_P(object_pp) : obj_ce), type, function_name); } } fci.size = sizeof(fci); #if PHP_VERSION_ID < 70100 fci.function_table = obj_ce ? &obj_ce->function_table : EG(function_table); + fci.symbol_table = NULL; #endif fci.object = object_pp ? Z_OBJ_P(object_pp) : NULL; - if (function_name) ZVAL_COPY_VALUE(&fci.function_name, function_name); + ZVAL_COPY_VALUE(&fci.function_name, function_name); fci.retval = retval_ptr ? retval_ptr : &local_retval_ptr; fci.param_count = param_count; fci.params = NULL; - //fci.params: Passed as separate parameter to prevent the need to convert zval ** to zval * + /* fci.params: Passed as separate parameter to prevent the need to convert zval ** to zval * */ fci.no_separation = 1; -#if PHP_VERSION_ID < 70100 - fci.symbol_table = NULL; -#endif - fcic.initialized = 0; - fcic.function_handler = NULL; - fcic.calling_scope = NULL; - fcic.called_scope = NULL; - if (!cache_entry || !*cache_entry) { - if (fcall_key && (temp_cache_entry = zend_hash_str_find_ptr(zephir_globals_ptr->fcache, fcall_key, fcall_key_len)) != NULL) { - zephir_fcall_populate_fci_cache(&fcic, &fci, type); + if (cache_entry && *cache_entry) { + /* We have a cache record, initialize scope */ + fcic.initialized = 1; + fcic.calling_scope = obj_ce; -#ifndef ZEPHIR_RELEASE - fcic.function_handler = temp_cache_entry->f; - ++(temp_cache_entry->times); + if (object_pp) { + fcic.called_scope = Z_OBJCE_P(object_pp); + } + else { + zend_class_entry *called_scope; +#if PHP_VERSION_ID >= 70100 + called_scope = zend_get_called_scope(EG(current_execute_data)); #else - fcic.function_handler = temp_cache_entry; + called_scope = EG(current_execute_data)->called_scope; #endif - /*memcpy(&clone, &fcic, sizeof(clone));*/ + + if (obj_ce && (!called_scope || instanceof_function(called_scope, obj_ce))) { + fcic.called_scope = obj_ce; + } + else { + fcic.called_scope = called_scope; + } } - } else { - zephir_fcall_populate_fci_cache(&fcic, &fci, type); + + fcic.object = object_pp ? Z_OBJ_P(object_pp) : NULL; + #ifndef ZEPHIR_RELEASE fcic.function_handler = (*cache_entry)->f; ++(*cache_entry)->times; #else fcic.function_handler = *cache_entry; -#endif -#if PHP_VERSION_ID >= 70100 - fcic.called_scope = obj_ce ? obj_ce : (EG(current_execute_data) ? Z_OBJCE(EG(current_execute_data)->This) : NULL); #endif } + else if ((cache_entry && !*cache_entry) || zephir_globals_ptr->cache_enabled) { + /* The caller is interested in caching OR we have the call cache enabled */ + zend_string *callable_name = NULL; + char *error = NULL; - /* fcic.initialized = 0; */ - //status = ZEPHIR_ZEND_CALL_FUNCTION_WRAPPER(&fci, &fcic, info); - status = zephir_call_function_opt(&fci, &fcic, info, params); + zend_is_callable_ex(&fci.function_name, fci.object, IS_CALLABLE_CHECK_SILENT, &callable_name, &fcic, &error); + if (error) { efree(error); } + if (callable_name) { zend_string_release(callable_name); } + } + else { + fcic.initialized = 0; + } -#if PHP_VERSION_ID >= 70100 - //EG(fake_scope) = old_scope; +#ifdef _MSC_VER + zval *p = emalloc(sizeof(zval) * (fci.param_count + 1)); #else - EG(scope) = old_scope; + zval p[fci.param_count]; #endif + for (i=0; iname)); + } + fprintf(stderr, "> %s called: %p, calling: %p, obj: %p, h: %p, type=%d\n", Z_STRVAL(tmp), fcic.called_scope, fcic.calling_scope, fcic.object, fcic.function_handler, (int)type); +#endif + status = zend_call_function(&fci, &fcic); +#if 0 + fprintf(stderr, "< called: %p, calling: %p, obj: %p, h: %p\n", fcic.called_scope, fcic.calling_scope, fcic.object, fcic.function_handler); +#endif + +#ifdef _MSC_VER + efree(p); +#endif + +#if PHP_VERSION_ID < 70100 + EG(scope) = old_scope; +#endif + + /* Skip caching IF: + * call failed OR there was an exception (to be safe) OR cache key is not defined OR + * fcall cache was deinitialized OR we have a slot cache + */ + if (EXPECTED(status != FAILURE) && !EG(exception) && fcall_key && fcic.initialized && !temp_cache_entry) { + int add_failed = 0; #ifndef ZEPHIR_RELEASE - zephir_fcall_cache_entry *cache_entry_temp = malloc(sizeof(zephir_fcall_cache_entry)); - cache_entry_temp->f = fcic.function_handler; - cache_entry_temp->times = 0; + zephir_fcall_cache_entry *cache_entry_temp = malloc(sizeof(zephir_fcall_cache_entry)); + cache_entry_temp->f = fcic.function_handler; + cache_entry_temp->times = 0; #else - zephir_fcall_cache_entry *cache_entry_temp = fcic.function_handler; + zephir_fcall_cache_entry *cache_entry_temp = fcic.function_handler; #endif + + if (zephir_globals_ptr->cache_enabled) { + /** TODO: maybe construct zend_string (we do have a valid fcall_key) to avoid hash recalculation */ if (NULL == zend_hash_str_add_ptr(zephir_globals_ptr->fcache, fcall_key, fcall_key_len, cache_entry_temp)) { + add_failed = 1; + } + } + + if (cache_entry) { + if (cache_slot > 0) { + *cache_entry = cache_entry_temp; + zephir_globals_ptr->scache[cache_slot] = *cache_entry; + } + } + else if (add_failed) { #ifndef ZEPHIR_RELEASE - free(cache_entry_temp); - free(temp_cache_entry); + free(cache_entry_temp); #endif - } else { - if (cache_entry) { - *cache_entry = cache_entry_temp; - if (cache_slot > 0) { - zephir_globals_ptr->scache[cache_slot] = *cache_entry; - } - } - } } } @@ -9745,8 +8321,6 @@ static int zephir_call_func_aparams(zval *return_value_ptr, const char *func_nam { int status; zval rv, *rvp = return_value_ptr ? return_value_ptr : &rv; - zval *func = NULL; - zephir_fcall_info info; ZVAL_UNDEF(&rv); @@ -9758,12 +8332,10 @@ static int zephir_call_func_aparams(zval *return_value_ptr, const char *func_nam } #endif - info.type = ZEPHIR_FCALL_TYPE_FUNC; - info.class_name = NULL; - info.func_name = func_name; - info.func_length = func_length; - - status = zephir_call_user_function(NULL, NULL, zephir_fcall_function, func, rvp, cache_entry, cache_slot, param_count, params, &info); + zval f; + ZVAL_STRINGL(&f, func_name, func_length); + status = zephir_call_user_function(NULL, NULL, zephir_fcall_function, &f, rvp, cache_entry, cache_slot, param_count, params); + zval_ptr_dtor(&f); if (status == FAILURE && !EG(exception)) { zephir_throw_exception_format(spl_ce_RuntimeException, "Call to undefined function %s()", func_name); @@ -9805,7 +8377,7 @@ static int zephir_call_zval_func_aparams(zval *return_value_ptr, zval *func_name } #endif - status = zephir_call_user_function(NULL, NULL, zephir_fcall_function, func_name, rvp, cache_entry, cache_slot, param_count, params, NULL); + status = zephir_call_user_function(NULL, NULL, zephir_fcall_function, func_name, rvp, cache_entry, cache_slot, param_count, params); if (status == FAILURE && !EG(exception)) { zephir_throw_exception_format(spl_ce_RuntimeException, "Call to undefined function %s()", Z_TYPE_P(func_name) ? Z_STRVAL_P(func_name) : "undefined"); @@ -9835,11 +8407,8 @@ static int zephir_call_class_method_aparams(zval *return_value_ptr, zend_class_e zephir_fcall_cache_entry **cache_entry, int cache_slot, uint param_count, zval **params) { - char *possible_method; zval rv, *rvp = return_value_ptr ? return_value_ptr : &rv; - zval *fn = NULL; int status; - zephir_fcall_info info; ZVAL_UNDEF(&rv); @@ -9853,7 +8422,7 @@ static int zephir_call_class_method_aparams(zval *return_value_ptr, zend_class_e if (object) { if (Z_TYPE_P(object) != IS_OBJECT) { - zephir_throw_exception_format(spl_ce_RuntimeException TSRMLS_CC, "Trying to call method %s on a non-object", method_name); + zephir_throw_exception_format(spl_ce_RuntimeException, "Trying to call method %s on a non-object", method_name); if (return_value_ptr) { zval_ptr_dtor(return_value_ptr); ZVAL_UNDEF(return_value_ptr); @@ -9861,73 +8430,49 @@ static int zephir_call_class_method_aparams(zval *return_value_ptr, zend_class_e return FAILURE; } } -#if PHP_VERSION_ID < 70100 - if (!cache_entry || !*cache_entry) { -#endif + + zval method; + array_init_size(&method, 2); + switch (type) { case zephir_fcall_parent: - info.type = ZEPHIR_FCALL_TYPE_CLASS_PARENT_METHOD; + add_next_index_string(&method, "parent"); break; case zephir_fcall_self: - assert(!ce); - info.type = ZEPHIR_FCALL_TYPE_CLASS_SELF_METHOD; + add_next_index_string(&method, "self"); break; case zephir_fcall_static: - assert(!ce); - info.type = ZEPHIR_FCALL_TYPE_CLASS_STATIC_METHOD; + add_next_index_string(&method, "static"); break; case zephir_fcall_ce: - assert(ce != NULL); - info.type = ZEPHIR_FCALL_TYPE_CE_METHOD; - info.ce = ce; + add_next_index_string(&method, ZSTR_VAL(ce->name)); break; - case zephir_fcall_method: default: - assert(object != NULL); - info.type = ZEPHIR_FCALL_TYPE_ZVAL_METHOD; - info.object_ptr = object; - info.ce = ce; + assert(object); + Z_TRY_ADDREF_P(object); + add_next_index_zval(&method, object); break; - } - info.func_name = method_name; - info.func_length = method_len; -#if PHP_VERSION_ID < 70100 } -#endif - status = zephir_call_user_function(object ? object : NULL, ce, type, fn, rvp, cache_entry, cache_slot, param_count, params, &info); + add_next_index_stringl(&method, method_name, method_len); - if (status == FAILURE && !EG(exception)) { - - if (ce) { - //possible_method = zephir_fcall_possible_method(ce, method_name); - possible_method = NULL; // todo - } else { - possible_method = "undefined"; - } + status = zephir_call_user_function(object, ce, type, &method, rvp, cache_entry, cache_slot, param_count, params); + zval_ptr_dtor(&method); + if (status == FAILURE && !EG(exception)) { switch (type) { - case zephir_fcall_parent: - if (possible_method) { - zephir_throw_exception_format(spl_ce_RuntimeException, "Call to undefined method parent::%s(), did you mean '%s'?", method_name, possible_method); - } else { - zephir_throw_exception_format(spl_ce_RuntimeException, "Call to undefined method parent::%s()", method_name); - } + zephir_throw_exception_format(spl_ce_RuntimeException, "Call to undefined method parent::%s()", method_name); break; case zephir_fcall_self: - if (possible_method) { - zephir_throw_exception_format(spl_ce_RuntimeException, "Call to undefined method self::%s(), did you mean '%s'?", method_name, possible_method); - } else { - zephir_throw_exception_format(spl_ce_RuntimeException, "Call to undefined method self::%s()", method_name); - } + zephir_throw_exception_format(spl_ce_RuntimeException, "Call to undefined method self::%s()", method_name); break; case zephir_fcall_static: @@ -9939,11 +8484,7 @@ static int zephir_call_class_method_aparams(zval *return_value_ptr, zend_class_e break; case zephir_fcall_method: - if (possible_method) { - zephir_throw_exception_format(spl_ce_RuntimeException, "Call to undefined method %s::%s(), did you mean '%s'?", ce->name, method_name, possible_method); - } else { - zephir_throw_exception_format(spl_ce_RuntimeException, "Call to undefined method %s::%s()", ce->name, method_name); - } + zephir_throw_exception_format(spl_ce_RuntimeException, "Call to undefined method %s::%s()", ce->name, method_name); break; default: @@ -10103,7 +8644,7 @@ static int zephir_require_ret(zval *return_value_ptr, const char *require_path) } #if PHP_VERSION_ID >= 70100 - new_op_array->scope = EG(fake_scope); + new_op_array->scope = EG(fake_scope) ? EG(fake_scope) : zend_get_executed_scope(); #else new_op_array->scope = EG(scope); #endif @@ -10154,7 +8695,7 @@ static int zephir_require_ret(zval *return_value_ptr, const char *require_path) static void zephir_basename(zval *return_value, zval *path) { - if (likely(Z_TYPE_P(path) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(path) == IS_STRING)) { zend_string *ret; ret = php_basename(Z_STRVAL_P(path), Z_STRLEN_P(path), NULL, 0); ZVAL_STR(return_value, ret); @@ -10180,23 +8721,23 @@ static int zephir_file_exists(zval *filename) return SUCCESS; } -static int zephir_compare_mtime(zval *filename1, zval *filename2 TSRMLS_DC) +static int zephir_compare_mtime(zval *filename1, zval *filename2) { php_stream_statbuf statbuffer1, statbuffer2; if (Z_TYPE_P(filename1) != IS_STRING || Z_TYPE_P(filename2) != IS_STRING) { - php_error_docref(NULL TSRMLS_CC, E_WARNING, "Invalid arguments supplied for compare_mtime()"); + php_error_docref(NULL, E_WARNING, "Invalid arguments supplied for compare_mtime()"); return 0; } if (php_stream_stat_path_ex(Z_STRVAL_P(filename1), 0, &statbuffer1, NULL)) { - php_error_docref(NULL TSRMLS_CC, E_WARNING, "mstat failed for %s", Z_STRVAL_P(filename1)); + php_error_docref(NULL, E_WARNING, "mstat failed for %s", Z_STRVAL_P(filename1)); return 0; } if (php_stream_stat_path_ex(Z_STRVAL_P(filename2), 0, &statbuffer2, NULL)) { - php_error_docref(NULL TSRMLS_CC, E_WARNING, "mstat failed for %s", Z_STRVAL_P(filename2)); + php_error_docref(NULL, E_WARNING, "mstat failed for %s", Z_STRVAL_P(filename2)); return 0; } @@ -10294,7 +8835,7 @@ static void zephir_file_get_contents(zval *return_value, zval *filename) php_stream_context *context = NULL; if (Z_TYPE_P(filename) != IS_STRING) { - php_error_docref(NULL TSRMLS_CC, E_WARNING, "Invalid arguments supplied for zephir_file_get_contents()"); + php_error_docref(NULL, E_WARNING, "Invalid arguments supplied for zephir_file_get_contents()"); RETVAL_FALSE; return; } @@ -10391,7 +8932,7 @@ static void zephir_file_put_contents(zval *return_value, zval *filename, zval *d static void zephir_filemtime(zval *return_value, zval *path) { - if (likely(Z_TYPE_P(path) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(path) == IS_STRING)) { php_stat(Z_STRVAL_P(path), (php_stat_len)(Z_STRLEN_P(path)), FS_MTIME, return_value); } else { ZVAL_FALSE(return_value); @@ -13218,7 +11759,7 @@ static void zephir_concat_function(zval *result, zval *op1, zval *op2) /* {{{ */ { zval tmp; /* Force separate zval, if op2=result will be reallocated */ - if (unlikely(result == op2)) { + if (UNEXPECTED(result == op2)) { ZVAL_COPY_VALUE(&tmp, op2); op2 = &tmp; } @@ -13408,7 +11949,7 @@ long zephir_mt_rand(long min, long max) return number; } -double zephir_ldexp(zval *value, zval *expval TSRMLS_DC) +double zephir_ldexp(zval *value, zval *expval) { int exp = (int) zephir_get_numberval(expval); @@ -13461,6 +12002,16 @@ static void zephir_var_export_ex(zval *return_value, zval *var) ZVAL_STR(return_value, buf.s); } +static void zephir_get_defined_vars(zval *return_value) +{ + zend_array *symtable = zend_rebuild_symbol_table(); + if (EXPECTED(symtable != NULL)) { + RETURN_ARR(zend_array_dup(symtable)); + } + + RETURN_NULL(); +} + @@ -13861,76 +12412,6 @@ static int phalcon_cssmin(zval *return_value, zval *style TSRMLS_DC); #endif /* PHALCON_ASSETS_FILTERS_CSSMINIFIER_H */ -/* jsmin.c - 2013-03-29 - -Copyright (c) 2002 Douglas Crockford (www.crockford.com) - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to deal in -the Software without restriction, including without limitation the rights to -use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies -of the Software, and to permit persons to whom the Software is furnished to do -so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -The Software shall be used for Good, not Evil. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. -*/ - -#ifndef PHALCON_ASSETS_FILTERS_CSSMINIFIER_H -#define PHALCON_ASSETS_FILTERS_CSSMINIFIER_H - - -static int phalcon_cssmin(zval *return_value, zval *style TSRMLS_DC); - -#endif /* PHALCON_ASSETS_FILTERS_CSSMINIFIER_H */ - - -/* jsmin.c - 2013-03-29 - -Copyright (c) 2002 Douglas Crockford (www.crockford.com) - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to deal in -the Software without restriction, including without limitation the rights to -use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies -of the Software, and to permit persons to whom the Software is furnished to do -so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -The Software shall be used for Good, not Evil. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. -*/ - -#ifndef PHALCON_ASSETS_FILTERS_JSMINIFIER_H -#define PHALCON_ASSETS_FILTERS_JSMINIFIER_H - - -static int phalcon_jsmin(zval *return_value, zval *script TSRMLS_DC); - -#endif /* PHALCON_ASSETS_FILTERS_JSMINIFIER_H */ - - #ifdef HAVE_CONFIG_H #endif @@ -14176,11 +12657,11 @@ static PHP_METHOD(Phalcon_Application, getModule) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(&name, name_param); } else { ZEPHIR_INIT_VAR(&name); @@ -14195,7 +12676,7 @@ static PHP_METHOD(Phalcon_Application, getModule) { object_init_ex(&_1$$3, phalcon_application_exception_ce); ZEPHIR_INIT_VAR(&_2$$3); ZEPHIR_CONCAT_SVS(&_2$$3, "Module '", &name, "' isn't registered in the application container"); - ZEPHIR_CALL_METHOD(NULL, &_1$$3, "__construct", NULL, 9, &_2$$3); + ZEPHIR_CALL_METHOD(NULL, &_1$$3, "__construct", NULL, 4, &_2$$3); zephir_check_call_status(); zephir_throw_exception_debug(&_1$$3, "phalcon/application.zep", 123 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -14216,11 +12697,11 @@ static PHP_METHOD(Phalcon_Application, setDefaultModule) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &defaultModule_param); - if (unlikely(Z_TYPE_P(defaultModule_param) != IS_STRING && Z_TYPE_P(defaultModule_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(defaultModule_param) != IS_STRING && Z_TYPE_P(defaultModule_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'defaultModule' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(defaultModule_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(defaultModule_param) == IS_STRING)) { zephir_get_strval(&defaultModule, defaultModule_param); } else { ZEPHIR_INIT_VAR(&defaultModule); @@ -14349,7 +12830,7 @@ static PHP_METHOD(Phalcon_Config, offsetExists) { ZEPHIR_SEPARATE_PARAM(index); - ZEPHIR_CALL_FUNCTION(&_0, "strval", NULL, 18, index); + ZEPHIR_CALL_FUNCTION(&_0, "strval", NULL, 13, index); zephir_check_call_status(); ZEPHIR_CPY_WRT(index, &_0); RETURN_MM_BOOL(zephir_isset_property_zval(this_ptr, index TSRMLS_CC)); @@ -14378,7 +12859,7 @@ static PHP_METHOD(Phalcon_Config, get) { } - ZEPHIR_CALL_FUNCTION(&_0, "strval", NULL, 18, index); + ZEPHIR_CALL_FUNCTION(&_0, "strval", NULL, 13, index); zephir_check_call_status(); ZEPHIR_CPY_WRT(index, &_0); if (zephir_isset_property_zval(this_ptr, index TSRMLS_CC)) { @@ -14407,7 +12888,7 @@ static PHP_METHOD(Phalcon_Config, offsetGet) { ZEPHIR_SEPARATE_PARAM(index); - ZEPHIR_CALL_FUNCTION(&_0, "strval", NULL, 18, index); + ZEPHIR_CALL_FUNCTION(&_0, "strval", NULL, 13, index); zephir_check_call_status(); ZEPHIR_CPY_WRT(index, &_0); ZEPHIR_OBS_VAR(&_1); @@ -14433,13 +12914,13 @@ static PHP_METHOD(Phalcon_Config, offsetSet) { ZEPHIR_SEPARATE_PARAM(index); - ZEPHIR_CALL_FUNCTION(&_0, "strval", NULL, 18, index); + ZEPHIR_CALL_FUNCTION(&_0, "strval", NULL, 13, index); zephir_check_call_status(); ZEPHIR_CPY_WRT(index, &_0); if (Z_TYPE_P(value) == IS_ARRAY) { ZEPHIR_INIT_VAR(&_1$$3); object_init_ex(&_1$$3, phalcon_config_ce); - ZEPHIR_CALL_METHOD(NULL, &_1$$3, "__construct", NULL, 19, value); + ZEPHIR_CALL_METHOD(NULL, &_1$$3, "__construct", NULL, 14, value); zephir_check_call_status(); zephir_update_property_zval_zval(this_ptr, index, &_1$$3 TSRMLS_CC); } else { @@ -14465,7 +12946,7 @@ static PHP_METHOD(Phalcon_Config, offsetUnset) { ZEPHIR_SEPARATE_PARAM(index); - ZEPHIR_CALL_FUNCTION(&_0, "strval", NULL, 18, index); + ZEPHIR_CALL_FUNCTION(&_0, "strval", NULL, 13, index); zephir_check_call_status(); ZEPHIR_CPY_WRT(index, &_0); zephir_update_property_zval_zval(this_ptr, index, &__$null TSRMLS_CC); @@ -14486,7 +12967,7 @@ static PHP_METHOD(Phalcon_Config, merge) { - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_merge", NULL, 20, config); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_merge", NULL, 15, config); zephir_check_call_status(); RETURN_MM(); @@ -14510,7 +12991,7 @@ static PHP_METHOD(Phalcon_Config, toArray) { ZEPHIR_INIT_VAR(&arrayConfig); array_init(&arrayConfig); - ZEPHIR_CALL_FUNCTION(&_0, "get_object_vars", NULL, 21, this_ptr); + ZEPHIR_CALL_FUNCTION(&_0, "get_object_vars", NULL, 16, this_ptr); zephir_check_call_status(); zephir_is_iterable(&_0, 0, "phalcon/config.zep", 196); ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&_0), _2, _3, _1) @@ -14551,7 +13032,7 @@ static PHP_METHOD(Phalcon_Config, count) { ZEPHIR_MM_GROW(); - ZEPHIR_CALL_FUNCTION(&_0, "get_object_vars", NULL, 21, this_ptr); + ZEPHIR_CALL_FUNCTION(&_0, "get_object_vars", NULL, 16, this_ptr); zephir_check_call_status(); RETURN_MM_LONG(zephir_fast_count_int(&_0 TSRMLS_CC)); @@ -14573,7 +13054,7 @@ static PHP_METHOD(Phalcon_Config, __set_state) { object_init_ex(return_value, phalcon_config_ce); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 19, &data); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 14, &data); zephir_check_call_status(); RETURN_MM(); @@ -14614,7 +13095,7 @@ static PHP_METHOD(Phalcon_Config, _merge) { } ZEPHIR_CALL_METHOD(&number, instance, "count", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_0, "get_object_vars", NULL, 21, config); + ZEPHIR_CALL_FUNCTION(&_0, "get_object_vars", NULL, 16, config); zephir_check_call_status(); zephir_is_iterable(&_0, 0, "phalcon/config.zep", 261); ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&_0), _2, _3, _1) @@ -14639,14 +13120,14 @@ static PHP_METHOD(Phalcon_Config, _merge) { _5$$6 = zephir_instance_of_ev(&value, phalcon_config_ce TSRMLS_CC); } if (_5$$6) { - ZEPHIR_CALL_METHOD(NULL, this_ptr, "_merge", &_6, 20, &value, &localObject); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "_merge", &_6, 15, &value, &localObject); zephir_check_call_status(); continue; } } } if (zephir_is_numeric(&key)) { - ZEPHIR_CALL_FUNCTION(&key, "strval", &_7, 18, &number); + ZEPHIR_CALL_FUNCTION(&key, "strval", &_7, 13, &number); zephir_check_call_status(); ZEPHIR_SEPARATE(&number); zephir_increment(&number); @@ -14709,7 +13190,7 @@ static PHP_METHOD(Phalcon_Crypt, setPadding) { zephir_fetch_params(0, 1, 0, &scheme_param); - if (unlikely(Z_TYPE_P(scheme_param) != IS_LONG)) { + if (UNEXPECTED(Z_TYPE_P(scheme_param) != IS_LONG)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'scheme' must be a int") TSRMLS_CC); RETURN_NULL(); } @@ -14734,11 +13215,11 @@ static PHP_METHOD(Phalcon_Crypt, setCipher) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &cipher_param); - if (unlikely(Z_TYPE_P(cipher_param) != IS_STRING && Z_TYPE_P(cipher_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(cipher_param) != IS_STRING && Z_TYPE_P(cipher_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'cipher' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(cipher_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(cipher_param) == IS_STRING)) { zephir_get_strval(&cipher, cipher_param); } else { ZEPHIR_INIT_VAR(&cipher); @@ -14771,11 +13252,11 @@ static PHP_METHOD(Phalcon_Crypt, setKey) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &key_param); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(&key, key_param); } else { ZEPHIR_INIT_VAR(&key); @@ -14835,22 +13316,22 @@ static PHP_METHOD(Phalcon_Crypt, _cryptPadText) { zephir_fetch_params(1, 4, 0, &text_param, &mode_param, &blockSize_param, &paddingType_param); zephir_get_strval(&text, text_param); - if (unlikely(Z_TYPE_P(mode_param) != IS_STRING && Z_TYPE_P(mode_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(mode_param) != IS_STRING && Z_TYPE_P(mode_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'mode' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(mode_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(mode_param) == IS_STRING)) { zephir_get_strval(&mode, mode_param); } else { ZEPHIR_INIT_VAR(&mode); ZVAL_EMPTY_STRING(&mode); } - if (unlikely(Z_TYPE_P(blockSize_param) != IS_LONG)) { + if (UNEXPECTED(Z_TYPE_P(blockSize_param) != IS_LONG)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'blockSize' must be a int") TSRMLS_CC); RETURN_MM_NULL(); } blockSize = Z_LVAL_P(blockSize_param); - if (unlikely(Z_TYPE_P(paddingType_param) != IS_LONG)) { + if (UNEXPECTED(Z_TYPE_P(paddingType_param) != IS_LONG)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'paddingType' must be a int") TSRMLS_CC); RETURN_MM_NULL(); } @@ -14873,13 +13354,13 @@ static PHP_METHOD(Phalcon_Crypt, _cryptPadText) { do { if (paddingType == 1) { ZVAL_LONG(&_1$$5, 0); - ZEPHIR_CALL_FUNCTION(&_2$$5, "chr", &_3, 138, &_1$$5); + ZEPHIR_CALL_FUNCTION(&_2$$5, "chr", &_3, 126, &_1$$5); zephir_check_call_status(); ZVAL_LONG(&_1$$5, (paddingSize - 1)); - ZEPHIR_CALL_FUNCTION(&_4$$5, "str_repeat", &_5, 139, &_2$$5, &_1$$5); + ZEPHIR_CALL_FUNCTION(&_4$$5, "str_repeat", &_5, 127, &_2$$5, &_1$$5); zephir_check_call_status(); ZVAL_LONG(&_1$$5, paddingSize); - ZEPHIR_CALL_FUNCTION(&_6$$5, "chr", &_3, 138, &_1$$5); + ZEPHIR_CALL_FUNCTION(&_6$$5, "chr", &_3, 126, &_1$$5); zephir_check_call_status(); ZEPHIR_INIT_NVAR(&padding); ZEPHIR_CONCAT_VV(&padding, &_4$$5, &_6$$5); @@ -14887,10 +13368,10 @@ static PHP_METHOD(Phalcon_Crypt, _cryptPadText) { } if (paddingType == 2) { ZVAL_LONG(&_7$$6, paddingSize); - ZEPHIR_CALL_FUNCTION(&_8$$6, "chr", &_3, 138, &_7$$6); + ZEPHIR_CALL_FUNCTION(&_8$$6, "chr", &_3, 126, &_7$$6); zephir_check_call_status(); ZVAL_LONG(&_7$$6, paddingSize); - ZEPHIR_CALL_FUNCTION(&padding, "str_repeat", &_5, 139, &_8$$6, &_7$$6); + ZEPHIR_CALL_FUNCTION(&padding, "str_repeat", &_5, 127, &_8$$6, &_7$$6); zephir_check_call_status(); break; } @@ -14911,28 +13392,28 @@ static PHP_METHOD(Phalcon_Crypt, _cryptPadText) { _9$$7 = 1; } i = _10$$7; - ZEPHIR_CALL_FUNCTION(&_12$$8, "rand", &_13, 115); + ZEPHIR_CALL_FUNCTION(&_12$$8, "rand", &_13, 104); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_14$$8, "chr", &_3, 138, &_12$$8); + ZEPHIR_CALL_FUNCTION(&_14$$8, "chr", &_3, 126, &_12$$8); zephir_check_call_status(); zephir_concat_self(&padding, &_14$$8 TSRMLS_CC); } } ZVAL_LONG(&_15$$7, paddingSize); - ZEPHIR_CALL_FUNCTION(&_16$$7, "chr", &_3, 138, &_15$$7); + ZEPHIR_CALL_FUNCTION(&_16$$7, "chr", &_3, 126, &_15$$7); zephir_check_call_status(); zephir_concat_self(&padding, &_16$$7 TSRMLS_CC); break; } if (paddingType == 4) { ZVAL_LONG(&_17$$9, 0x80); - ZEPHIR_CALL_FUNCTION(&_18$$9, "chr", &_3, 138, &_17$$9); + ZEPHIR_CALL_FUNCTION(&_18$$9, "chr", &_3, 126, &_17$$9); zephir_check_call_status(); ZVAL_LONG(&_17$$9, 0); - ZEPHIR_CALL_FUNCTION(&_19$$9, "chr", &_3, 138, &_17$$9); + ZEPHIR_CALL_FUNCTION(&_19$$9, "chr", &_3, 126, &_17$$9); zephir_check_call_status(); ZVAL_LONG(&_17$$9, (paddingSize - 1)); - ZEPHIR_CALL_FUNCTION(&_20$$9, "str_repeat", &_5, 139, &_19$$9, &_17$$9); + ZEPHIR_CALL_FUNCTION(&_20$$9, "str_repeat", &_5, 127, &_19$$9, &_17$$9); zephir_check_call_status(); ZEPHIR_INIT_NVAR(&padding); ZEPHIR_CONCAT_VV(&padding, &_18$$9, &_20$$9); @@ -14940,10 +13421,10 @@ static PHP_METHOD(Phalcon_Crypt, _cryptPadText) { } if (paddingType == 5) { ZVAL_LONG(&_21$$10, 0); - ZEPHIR_CALL_FUNCTION(&_22$$10, "chr", &_3, 138, &_21$$10); + ZEPHIR_CALL_FUNCTION(&_22$$10, "chr", &_3, 126, &_21$$10); zephir_check_call_status(); ZVAL_LONG(&_21$$10, paddingSize); - ZEPHIR_CALL_FUNCTION(&padding, "str_repeat", &_5, 139, &_22$$10, &_21$$10); + ZEPHIR_CALL_FUNCTION(&padding, "str_repeat", &_5, 127, &_22$$10, &_21$$10); zephir_check_call_status(); break; } @@ -14951,7 +13432,7 @@ static PHP_METHOD(Phalcon_Crypt, _cryptPadText) { ZEPHIR_INIT_VAR(&_23$$11); ZVAL_STRING(&_23$$11, " "); ZVAL_LONG(&_24$$11, paddingSize); - ZEPHIR_CALL_FUNCTION(&padding, "str_repeat", &_5, 139, &_23$$11, &_24$$11); + ZEPHIR_CALL_FUNCTION(&padding, "str_repeat", &_5, 127, &_23$$11, &_24$$11); zephir_check_call_status(); break; } @@ -15014,22 +13495,22 @@ static PHP_METHOD(Phalcon_Crypt, _cryptUnpadText) { zephir_fetch_params(1, 4, 0, &text_param, &mode_param, &blockSize_param, &paddingType_param); zephir_get_strval(&text, text_param); - if (unlikely(Z_TYPE_P(mode_param) != IS_STRING && Z_TYPE_P(mode_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(mode_param) != IS_STRING && Z_TYPE_P(mode_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'mode' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(mode_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(mode_param) == IS_STRING)) { zephir_get_strval(&mode, mode_param); } else { ZEPHIR_INIT_VAR(&mode); ZVAL_EMPTY_STRING(&mode); } - if (unlikely(Z_TYPE_P(blockSize_param) != IS_LONG)) { + if (UNEXPECTED(Z_TYPE_P(blockSize_param) != IS_LONG)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'blockSize' must be a int") TSRMLS_CC); RETURN_MM_NULL(); } blockSize = Z_LVAL_P(blockSize_param); - if (unlikely(Z_TYPE_P(paddingType_param) != IS_LONG)) { + if (UNEXPECTED(Z_TYPE_P(paddingType_param) != IS_LONG)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'paddingType' must be a int") TSRMLS_CC); RETURN_MM_NULL(); } @@ -15057,16 +13538,16 @@ static PHP_METHOD(Phalcon_Crypt, _cryptUnpadText) { ZVAL_LONG(&_4$$4, 1); ZEPHIR_INIT_VAR(&last); zephir_substr(&last, &text, zephir_get_intval(&_3$$4), 1 , 0); - ZEPHIR_CALL_FUNCTION(&_5$$4, "ord", &_6, 140, &last); + ZEPHIR_CALL_FUNCTION(&_5$$4, "ord", &_6, 128, &last); zephir_check_call_status(); ord = zephir_get_intval(&_5$$4); if (ord <= blockSize) { paddingSize = ord; ZVAL_LONG(&_7$$5, 0); - ZEPHIR_CALL_FUNCTION(&_8$$5, "chr", &_9, 138, &_7$$5); + ZEPHIR_CALL_FUNCTION(&_8$$5, "chr", &_9, 126, &_7$$5); zephir_check_call_status(); ZVAL_LONG(&_7$$5, (paddingSize - 1)); - ZEPHIR_CALL_FUNCTION(&_10$$5, "str_repeat", &_11, 139, &_8$$5, &_7$$5); + ZEPHIR_CALL_FUNCTION(&_10$$5, "str_repeat", &_11, 127, &_8$$5, &_7$$5); zephir_check_call_status(); ZEPHIR_INIT_VAR(&padding); ZEPHIR_CONCAT_VV(&padding, &_10$$5, &last); @@ -15084,16 +13565,16 @@ static PHP_METHOD(Phalcon_Crypt, _cryptUnpadText) { ZVAL_LONG(&_14$$7, 1); ZEPHIR_INIT_NVAR(&last); zephir_substr(&last, &text, zephir_get_intval(&_13$$7), 1 , 0); - ZEPHIR_CALL_FUNCTION(&_15$$7, "ord", &_6, 140, &last); + ZEPHIR_CALL_FUNCTION(&_15$$7, "ord", &_6, 128, &last); zephir_check_call_status(); ord = zephir_get_intval(&_15$$7); if (ord <= blockSize) { paddingSize = ord; ZVAL_LONG(&_16$$8, paddingSize); - ZEPHIR_CALL_FUNCTION(&_17$$8, "chr", &_9, 138, &_16$$8); + ZEPHIR_CALL_FUNCTION(&_17$$8, "chr", &_9, 126, &_16$$8); zephir_check_call_status(); ZVAL_LONG(&_16$$8, paddingSize); - ZEPHIR_CALL_FUNCTION(&padding, "str_repeat", &_11, 139, &_17$$8, &_16$$8); + ZEPHIR_CALL_FUNCTION(&padding, "str_repeat", &_11, 127, &_17$$8, &_16$$8); zephir_check_call_status(); ZVAL_LONG(&_16$$8, (length - paddingSize)); ZEPHIR_INIT_VAR(&_18$$8); @@ -15109,7 +13590,7 @@ static PHP_METHOD(Phalcon_Crypt, _cryptUnpadText) { ZVAL_LONG(&_20$$10, 1); ZEPHIR_INIT_NVAR(&last); zephir_substr(&last, &text, zephir_get_intval(&_19$$10), 1 , 0); - ZEPHIR_CALL_FUNCTION(&_21$$10, "ord", &_6, 140, &last); + ZEPHIR_CALL_FUNCTION(&_21$$10, "ord", &_6, 128, &last); zephir_check_call_status(); paddingSize = zephir_get_intval(&_21$$10); break; @@ -15239,11 +13720,11 @@ static PHP_METHOD(Phalcon_Crypt, encrypt) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &text_param, &key_param); - if (unlikely(Z_TYPE_P(text_param) != IS_STRING && Z_TYPE_P(text_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(text_param) != IS_STRING && Z_TYPE_P(text_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'text' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(text_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(text_param) == IS_STRING)) { zephir_get_strval(&text, text_param); } else { ZEPHIR_INIT_VAR(&text); @@ -15253,11 +13734,11 @@ static PHP_METHOD(Phalcon_Crypt, encrypt) { ZEPHIR_INIT_VAR(&key); ZVAL_STRING(&key, ""); } else { - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(&key, key_param); } else { ZEPHIR_INIT_VAR(&key); @@ -15284,20 +13765,20 @@ static PHP_METHOD(Phalcon_Crypt, encrypt) { zephir_read_property(&cipher, this_ptr, SL("_cipher"), PH_NOISY_CC); ZEPHIR_INIT_VAR(&_0); ZVAL_STRING(&_0, "-"); - ZEPHIR_CALL_FUNCTION(&_1, "strrpos", NULL, 141, &cipher, &_0); + ZEPHIR_CALL_FUNCTION(&_1, "strrpos", NULL, 129, &cipher, &_0); zephir_check_call_status(); ZVAL_LONG(&_2, (zephir_get_numberval(&_1) - zephir_fast_strlen_ev(&cipher))); ZEPHIR_INIT_NVAR(&_0); zephir_substr(&_0, &cipher, zephir_get_intval(&_2), 0, ZEPHIR_SUBSTR_NO_LENGTH); ZEPHIR_INIT_VAR(&mode); zephir_fast_strtolower(&mode, &_0); - ZEPHIR_CALL_FUNCTION(&_3, "openssl_get_cipher_methods", NULL, 142, &__$true); + ZEPHIR_CALL_FUNCTION(&_3, "openssl_get_cipher_methods", NULL, 130, &__$true); zephir_check_call_status(); if (!(zephir_fast_in_array(&cipher, &_3 TSRMLS_CC))) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_crypt_exception_ce, "Cipher algorithm is unknown", "phalcon/crypt.zep", 297); return; } - ZEPHIR_CALL_FUNCTION(&ivSize, "openssl_cipher_iv_length", &_4, 143, &cipher); + ZEPHIR_CALL_FUNCTION(&ivSize, "openssl_cipher_iv_length", &_4, 131, &cipher); zephir_check_call_status(); if (ZEPHIR_GT_LONG(&ivSize, 0)) { ZEPHIR_CPY_WRT(&blockSize, &ivSize); @@ -15306,12 +13787,12 @@ static PHP_METHOD(Phalcon_Crypt, encrypt) { ZEPHIR_CONCAT_SV(&_5$$9, "-", &mode); ZEPHIR_INIT_VAR(&_6$$9); ZVAL_STRING(&_6$$9, ""); - ZEPHIR_CALL_FUNCTION(&_7$$9, "str_ireplace", NULL, 144, &_5$$9, &_6$$9, &cipher); + ZEPHIR_CALL_FUNCTION(&_7$$9, "str_ireplace", NULL, 132, &_5$$9, &_6$$9, &cipher); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&blockSize, "openssl_cipher_iv_length", &_4, 143, &_7$$9); + ZEPHIR_CALL_FUNCTION(&blockSize, "openssl_cipher_iv_length", &_4, 131, &_7$$9); zephir_check_call_status(); } - ZEPHIR_CALL_FUNCTION(&iv, "openssl_random_pseudo_bytes", NULL, 145, &ivSize); + ZEPHIR_CALL_FUNCTION(&iv, "openssl_random_pseudo_bytes", NULL, 133, &ivSize); zephir_check_call_status(); ZEPHIR_OBS_VAR(&paddingType); zephir_read_property(&paddingType, this_ptr, SL("_padding"), PH_NOISY_CC); @@ -15330,7 +13811,7 @@ static PHP_METHOD(Phalcon_Crypt, encrypt) { ZEPHIR_CPY_WRT(&padded, &text); } ZVAL_LONG(&_10, 1); - ZEPHIR_CALL_FUNCTION(&_11, "openssl_encrypt", NULL, 146, &padded, &cipher, &encryptKey, &_10, &iv); + ZEPHIR_CALL_FUNCTION(&_11, "openssl_encrypt", NULL, 134, &padded, &cipher, &encryptKey, &_10, &iv); zephir_check_call_status(); ZEPHIR_CONCAT_VV(return_value, &iv, &_11); RETURN_MM(); @@ -15372,11 +13853,11 @@ static PHP_METHOD(Phalcon_Crypt, decrypt) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &text_param, &key); - if (unlikely(Z_TYPE_P(text_param) != IS_STRING && Z_TYPE_P(text_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(text_param) != IS_STRING && Z_TYPE_P(text_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'text' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(text_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(text_param) == IS_STRING)) { zephir_get_strval(&text, text_param); } else { ZEPHIR_INIT_VAR(&text); @@ -15406,20 +13887,20 @@ static PHP_METHOD(Phalcon_Crypt, decrypt) { zephir_read_property(&cipher, this_ptr, SL("_cipher"), PH_NOISY_CC); ZEPHIR_INIT_VAR(&_0); ZVAL_STRING(&_0, "-"); - ZEPHIR_CALL_FUNCTION(&_1, "strrpos", NULL, 141, &cipher, &_0); + ZEPHIR_CALL_FUNCTION(&_1, "strrpos", NULL, 129, &cipher, &_0); zephir_check_call_status(); ZVAL_LONG(&_2, (zephir_get_numberval(&_1) - zephir_fast_strlen_ev(&cipher))); ZEPHIR_INIT_NVAR(&_0); zephir_substr(&_0, &cipher, zephir_get_intval(&_2), 0, ZEPHIR_SUBSTR_NO_LENGTH); ZEPHIR_INIT_VAR(&mode); zephir_fast_strtolower(&mode, &_0); - ZEPHIR_CALL_FUNCTION(&_3, "openssl_get_cipher_methods", NULL, 142, &__$true); + ZEPHIR_CALL_FUNCTION(&_3, "openssl_get_cipher_methods", NULL, 130, &__$true); zephir_check_call_status(); if (!(zephir_fast_in_array(&cipher, &_3 TSRMLS_CC))) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_crypt_exception_ce, "Cipher algorithm is unknown", "phalcon/crypt.zep", 348); return; } - ZEPHIR_CALL_FUNCTION(&ivSize, "openssl_cipher_iv_length", &_4, 143, &cipher); + ZEPHIR_CALL_FUNCTION(&ivSize, "openssl_cipher_iv_length", &_4, 131, &cipher); zephir_check_call_status(); if (ZEPHIR_GT_LONG(&ivSize, 0)) { ZEPHIR_CPY_WRT(&blockSize, &ivSize); @@ -15428,9 +13909,9 @@ static PHP_METHOD(Phalcon_Crypt, decrypt) { ZEPHIR_CONCAT_SV(&_5$$9, "-", &mode); ZEPHIR_INIT_VAR(&_6$$9); ZVAL_STRING(&_6$$9, ""); - ZEPHIR_CALL_FUNCTION(&_7$$9, "str_ireplace", NULL, 144, &_5$$9, &_6$$9, &cipher); + ZEPHIR_CALL_FUNCTION(&_7$$9, "str_ireplace", NULL, 132, &_5$$9, &_6$$9, &cipher); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&blockSize, "openssl_cipher_iv_length", &_4, 143, &_7$$9); + ZEPHIR_CALL_FUNCTION(&blockSize, "openssl_cipher_iv_length", &_4, 131, &_7$$9); zephir_check_call_status(); } ZEPHIR_INIT_VAR(&_8); @@ -15439,7 +13920,7 @@ static PHP_METHOD(Phalcon_Crypt, decrypt) { ZEPHIR_INIT_VAR(&_10); zephir_substr(&_10, &text, 0 , zephir_get_intval(&ivSize), 0); ZVAL_LONG(&_11, 1); - ZEPHIR_CALL_FUNCTION(&decrypted, "openssl_decrypt", NULL, 147, &_8, &cipher, &decryptKey, &_11, &_10); + ZEPHIR_CALL_FUNCTION(&decrypted, "openssl_decrypt", NULL, 135, &_8, &cipher, &decryptKey, &_11, &_10); zephir_check_call_status(); ZEPHIR_OBS_VAR(&paddingType); zephir_read_property(&paddingType, this_ptr, SL("_padding"), PH_NOISY_CC); @@ -15477,11 +13958,11 @@ static PHP_METHOD(Phalcon_Crypt, encryptBase64) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &text_param, &key, &safe_param); - if (unlikely(Z_TYPE_P(text_param) != IS_STRING && Z_TYPE_P(text_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(text_param) != IS_STRING && Z_TYPE_P(text_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'text' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(text_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(text_param) == IS_STRING)) { zephir_get_strval(&text, text_param); } else { ZEPHIR_INIT_VAR(&text); @@ -15494,7 +13975,7 @@ static PHP_METHOD(Phalcon_Crypt, encryptBase64) { if (!safe_param) { safe = 0; } else { - if (unlikely(Z_TYPE_P(safe_param) != IS_TRUE && Z_TYPE_P(safe_param) != IS_FALSE)) { + if (UNEXPECTED(Z_TYPE_P(safe_param) != IS_TRUE && Z_TYPE_P(safe_param) != IS_FALSE)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'safe' must be a bool") TSRMLS_CC); RETURN_MM_NULL(); } @@ -15505,19 +13986,19 @@ static PHP_METHOD(Phalcon_Crypt, encryptBase64) { if (safe == 1) { ZEPHIR_CALL_METHOD(&_0$$3, this_ptr, "encrypt", &_1, 0, &text, key); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_2$$3, "base64_encode", &_3, 120, &_0$$3); + ZEPHIR_CALL_FUNCTION(&_2$$3, "base64_encode", &_3, 109, &_0$$3); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_4$$3); ZVAL_STRING(&_4$$3, "+/"); ZEPHIR_INIT_VAR(&_5$$3); ZVAL_STRING(&_5$$3, "-_"); - ZEPHIR_RETURN_CALL_FUNCTION("strtr", NULL, 26, &_2$$3, &_4$$3, &_5$$3); + ZEPHIR_RETURN_CALL_FUNCTION("strtr", NULL, 21, &_2$$3, &_4$$3, &_5$$3); zephir_check_call_status(); RETURN_MM(); } ZEPHIR_CALL_METHOD(&_6, this_ptr, "encrypt", &_1, 0, &text, key); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_FUNCTION("base64_encode", &_3, 120, &_6); + ZEPHIR_RETURN_CALL_FUNCTION("base64_encode", &_3, 109, &_6); zephir_check_call_status(); RETURN_MM(); @@ -15544,11 +14025,11 @@ static PHP_METHOD(Phalcon_Crypt, decryptBase64) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &text_param, &key, &safe_param); - if (unlikely(Z_TYPE_P(text_param) != IS_STRING && Z_TYPE_P(text_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(text_param) != IS_STRING && Z_TYPE_P(text_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'text' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(text_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(text_param) == IS_STRING)) { zephir_get_strval(&text, text_param); } else { ZEPHIR_INIT_VAR(&text); @@ -15561,7 +14042,7 @@ static PHP_METHOD(Phalcon_Crypt, decryptBase64) { if (!safe_param) { safe = 0; } else { - if (unlikely(Z_TYPE_P(safe_param) != IS_TRUE && Z_TYPE_P(safe_param) != IS_FALSE)) { + if (UNEXPECTED(Z_TYPE_P(safe_param) != IS_TRUE && Z_TYPE_P(safe_param) != IS_FALSE)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'safe' must be a bool") TSRMLS_CC); RETURN_MM_NULL(); } @@ -15574,15 +14055,15 @@ static PHP_METHOD(Phalcon_Crypt, decryptBase64) { ZVAL_STRING(&_0$$3, "-_"); ZEPHIR_INIT_VAR(&_1$$3); ZVAL_STRING(&_1$$3, "+/"); - ZEPHIR_CALL_FUNCTION(&_2$$3, "strtr", NULL, 26, &text, &_0$$3, &_1$$3); + ZEPHIR_CALL_FUNCTION(&_2$$3, "strtr", NULL, 21, &text, &_0$$3, &_1$$3); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_3$$3, "base64_decode", &_4, 121, &_2$$3); + ZEPHIR_CALL_FUNCTION(&_3$$3, "base64_decode", &_4, 110, &_2$$3); zephir_check_call_status(); ZEPHIR_RETURN_CALL_METHOD(this_ptr, "decrypt", &_5, 0, &_3$$3, key); zephir_check_call_status(); RETURN_MM(); } - ZEPHIR_CALL_FUNCTION(&_6, "base64_decode", &_4, 121, &text); + ZEPHIR_CALL_FUNCTION(&_6, "base64_decode", &_4, 110, &text); zephir_check_call_status(); ZEPHIR_RETURN_CALL_METHOD(this_ptr, "decrypt", &_5, 0, &_6, key); zephir_check_call_status(); @@ -15600,7 +14081,7 @@ static PHP_METHOD(Phalcon_Crypt, getAvailableCiphers) { ZEPHIR_MM_GROW(); - ZEPHIR_RETURN_CALL_FUNCTION("openssl_get_cipher_methods", NULL, 142, &__$true); + ZEPHIR_RETURN_CALL_FUNCTION("openssl_get_cipher_methods", NULL, 130, &__$true); zephir_check_call_status(); RETURN_MM(); @@ -15767,11 +14248,11 @@ static PHP_METHOD(Phalcon_Debug, setUri) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &uri_param); - if (unlikely(Z_TYPE_P(uri_param) != IS_STRING && Z_TYPE_P(uri_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(uri_param) != IS_STRING && Z_TYPE_P(uri_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'uri' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(uri_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(uri_param) == IS_STRING)) { zephir_get_strval(&uri, uri_param); } else { ZEPHIR_INIT_VAR(&uri); @@ -15906,7 +14387,7 @@ static PHP_METHOD(Phalcon_Debug, listenExceptions) { ZEPHIR_INIT_VAR(&_1); ZVAL_STRING(&_1, "onUncaughtException"); zephir_array_fast_append(&_0, &_1); - ZEPHIR_CALL_FUNCTION(NULL, "set_exception_handler", NULL, 155, &_0); + ZEPHIR_CALL_FUNCTION(NULL, "set_exception_handler", NULL, 142, &_0); zephir_check_call_status(); RETURN_THIS(); @@ -15931,7 +14412,7 @@ static PHP_METHOD(Phalcon_Debug, listenLowSeverity) { ZEPHIR_INIT_VAR(&_1); ZVAL_STRING(&_1, "onUncaughtLowSeverity"); zephir_array_fast_append(&_0, &_1); - ZEPHIR_CALL_FUNCTION(NULL, "set_error_handler", NULL, 156, &_0); + ZEPHIR_CALL_FUNCTION(NULL, "set_error_handler", NULL, 143, &_0); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_2); zephir_create_array(&_2, 2, 0 TSRMLS_CC); @@ -15939,7 +14420,7 @@ static PHP_METHOD(Phalcon_Debug, listenLowSeverity) { ZEPHIR_INIT_NVAR(&_1); ZVAL_STRING(&_1, "onUncaughtException"); zephir_array_fast_append(&_2, &_1); - ZEPHIR_CALL_FUNCTION(NULL, "set_exception_handler", NULL, 155, &_2); + ZEPHIR_CALL_FUNCTION(NULL, "set_exception_handler", NULL, 142, &_2); zephir_check_call_status(); RETURN_THIS(); @@ -15983,7 +14464,7 @@ static PHP_METHOD(Phalcon_Debug, debugVar) { ZEPHIR_INIT_VAR(&_0); zephir_create_array(&_0, 3, 0 TSRMLS_CC); zephir_array_fast_append(&_0, varz); - ZEPHIR_CALL_FUNCTION(&_1, "debug_backtrace", NULL, 157); + ZEPHIR_CALL_FUNCTION(&_1, "debug_backtrace", NULL, 144); zephir_check_call_status(); zephir_array_fast_append(&_0, &_1); ZEPHIR_INIT_VAR(&_2); @@ -16035,7 +14516,7 @@ static PHP_METHOD(Phalcon_Debug, _escapeString) { ZVAL_LONG(&_3$$3, 2); ZEPHIR_INIT_VAR(&_4$$3); ZVAL_STRING(&_4$$3, "utf-8"); - ZEPHIR_RETURN_CALL_FUNCTION("htmlentities", NULL, 158, &_0$$3, &_3$$3, &_4$$3); + ZEPHIR_RETURN_CALL_FUNCTION("htmlentities", NULL, 145, &_0$$3, &_3$$3, &_4$$3); zephir_check_call_status(); RETURN_MM(); } @@ -16111,7 +14592,7 @@ static PHP_METHOD(Phalcon_Debug, _getArrayDump) { zephir_check_call_status(); } else if (Z_TYPE_P(&v) == IS_ARRAY) { ZVAL_LONG(&_6$$8, (zephir_get_numberval(n) + 1)); - ZEPHIR_CALL_METHOD(&_5$$8, this_ptr, "_getarraydump", &_7, 159, &v, &_6$$8); + ZEPHIR_CALL_METHOD(&_5$$8, this_ptr, "_getarraydump", &_7, 146, &v, &_6$$8); zephir_check_call_status(); ZEPHIR_INIT_NVAR(&varDump); ZEPHIR_CONCAT_SVS(&varDump, "Array(", &_5$$8, ")"); @@ -16187,7 +14668,7 @@ static PHP_METHOD(Phalcon_Debug, _getVarDump) { } } if (Z_TYPE_P(variable) == IS_ARRAY) { - ZEPHIR_CALL_METHOD(&_2$$11, this_ptr, "_getarraydump", &_1, 159, variable); + ZEPHIR_CALL_METHOD(&_2$$11, this_ptr, "_getarraydump", &_1, 146, variable); zephir_check_call_status(); ZEPHIR_CONCAT_SVS(return_value, "Array(", &_2$$11, ")"); RETURN_MM(); @@ -16213,7 +14694,7 @@ static PHP_METHOD(Phalcon_Debug, getMajorVersion) { ZEPHIR_MM_GROW(); - ZEPHIR_CALL_CE_STATIC(&_0, phalcon_version_ce, "get", &_1, 160); + ZEPHIR_CALL_CE_STATIC(&_0, phalcon_version_ce, "get", &_1, 0); zephir_check_call_status(); ZEPHIR_INIT_VAR(&parts); zephir_fast_explode_str(&parts, SL(" "), &_0, LONG_MAX TSRMLS_CC); @@ -16241,17 +14722,17 @@ static PHP_METHOD(Phalcon_Debug, getVersion) { ZEPHIR_INIT_VAR(&link); zephir_create_array(&link, 4, 0 TSRMLS_CC); ZVAL_LONG(&_2, 0); - ZEPHIR_CALL_CE_STATIC(&_0, phalcon_version_ce, "getpart", &_1, 161, &_2); + ZEPHIR_CALL_CE_STATIC(&_0, phalcon_version_ce, "getpart", &_1, 0, &_2); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_3); ZEPHIR_CONCAT_SVS(&_3, "https://docs.phalconphp.com/en/", &_0, ".0.0/"); zephir_array_update_string(&link, SL("action"), &_3, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_CE_STATIC(&_4, phalcon_version_ce, "get", &_5, 160); + ZEPHIR_CALL_CE_STATIC(&_4, phalcon_version_ce, "get", &_5, 0); zephir_check_call_status(); zephir_array_update_string(&link, SL("text"), &_4, PH_COPY | PH_SEPARATE); zephir_array_update_string(&link, SL("local"), &__$false, PH_COPY | PH_SEPARATE); add_assoc_stringl_ex(&link, SL("target"), SL("_new")); - ZEPHIR_CALL_CE_STATIC(&_4, phalcon_tag_ce, "linkto", &_6, 162, &link); + ZEPHIR_CALL_CE_STATIC(&_4, phalcon_tag_ce, "linkto", &_6, 0, &link); zephir_check_call_status(); ZEPHIR_CONCAT_SVS(return_value, "
Phalcon Framework ", &_4, "
"); RETURN_MM(); @@ -16425,9 +14906,9 @@ static PHP_METHOD(Phalcon_Debug, showTraceItem) { } else { ZEPHIR_INIT_VAR(&classReflection); object_init_ex(&classReflection, zephir_get_internal_ce(SL("reflectionclass"))); - ZEPHIR_CALL_METHOD(NULL, &classReflection, "__construct", NULL, 91, &className); + ZEPHIR_CALL_METHOD(NULL, &classReflection, "__construct", NULL, 83, &className); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_7$$5, &classReflection, "isinternal", NULL, 163); + ZEPHIR_CALL_METHOD(&_7$$5, &classReflection, "isinternal", NULL, 147); zephir_check_call_status(); if (zephir_is_true(&_7$$5)) { ZEPHIR_INIT_VAR(&_8$$6); @@ -16458,9 +14939,9 @@ static PHP_METHOD(Phalcon_Debug, showTraceItem) { if ((zephir_function_exists(&functionName TSRMLS_CC) == SUCCESS)) { ZEPHIR_INIT_VAR(&functionReflection); object_init_ex(&functionReflection, zephir_get_internal_ce(SL("reflectionfunction"))); - ZEPHIR_CALL_METHOD(NULL, &functionReflection, "__construct", NULL, 82, &functionName); + ZEPHIR_CALL_METHOD(NULL, &functionReflection, "__construct", NULL, 74, &functionName); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_13$$10, &functionReflection, "isinternal", NULL, 164); + ZEPHIR_CALL_METHOD(&_13$$10, &functionReflection, "isinternal", NULL, 148); zephir_check_call_status(); if (zephir_is_true(&_13$$10)) { ZEPHIR_INIT_VAR(&_14$$11); @@ -16515,7 +14996,7 @@ static PHP_METHOD(Phalcon_Debug, showTraceItem) { ZEPHIR_OBS_VAR(&showFiles); zephir_read_property(&showFiles, this_ptr, SL("_showFiles"), PH_NOISY_CC); if (zephir_is_true(&showFiles)) { - ZEPHIR_CALL_FUNCTION(&lines, "file", NULL, 165, &filez); + ZEPHIR_CALL_FUNCTION(&lines, "file", NULL, 149, &filez); zephir_check_call_status(); ZEPHIR_INIT_VAR(&numberLines); ZVAL_LONG(&numberLines, zephir_fast_count_int(&lines TSRMLS_CC)); @@ -16597,7 +15078,7 @@ static PHP_METHOD(Phalcon_Debug, showTraceItem) { ZVAL_LONG(&_42$$29, 2); ZEPHIR_INIT_NVAR(&_43$$29); ZVAL_STRING(&_43$$29, "UTF-8"); - ZEPHIR_CALL_FUNCTION(&_44$$29, "htmlentities", &_45, 158, &_39$$29, &_42$$29, &_43$$29); + ZEPHIR_CALL_FUNCTION(&_44$$29, "htmlentities", &_45, 145, &_39$$29, &_42$$29, &_43$$29); zephir_check_call_status(); zephir_concat_self(&html, &_44$$29 TSRMLS_CC); } @@ -16632,7 +15113,7 @@ static PHP_METHOD(Phalcon_Debug, onUncaughtLowSeverity) { - ZEPHIR_CALL_FUNCTION(&_0, "error_reporting", NULL, 166); + ZEPHIR_CALL_FUNCTION(&_0, "error_reporting", NULL, 150); zephir_check_call_status(); ZEPHIR_SINIT_VAR(_1); zephir_bitwise_and_function(&_1, &_0, severity TSRMLS_CC); @@ -16640,7 +15121,7 @@ static PHP_METHOD(Phalcon_Debug, onUncaughtLowSeverity) { ZEPHIR_INIT_VAR(&_2$$3); object_init_ex(&_2$$3, zephir_get_internal_ce(SL("errorexception"))); ZVAL_LONG(&_3$$3, 0); - ZEPHIR_CALL_METHOD(NULL, &_2$$3, "__construct", NULL, 167, message, &_3$$3, severity, file, line); + ZEPHIR_CALL_METHOD(NULL, &_2$$3, "__construct", NULL, 151, message, &_3$$3, severity, file, line); zephir_check_call_status(); zephir_throw_exception_debug(&_2$$3, "phalcon/debug.zep", 565 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -16712,10 +15193,10 @@ static PHP_METHOD(Phalcon_Debug, onUncaughtException) { - ZEPHIR_CALL_FUNCTION(&obLevel, "ob_get_level", NULL, 168); + ZEPHIR_CALL_FUNCTION(&obLevel, "ob_get_level", NULL, 152); zephir_check_call_status(); if (ZEPHIR_GT_LONG(&obLevel, 0)) { - ZEPHIR_CALL_FUNCTION(NULL, "ob_end_clean", NULL, 128); + ZEPHIR_CALL_FUNCTION(NULL, "ob_end_clean", NULL, 117); zephir_check_call_status(); } zephir_read_static_property_ce(&_0, phalcon_debug_ce, SL("_isActive"), PH_NOISY_CC | PH_READONLY); @@ -16783,7 +15264,7 @@ static PHP_METHOD(Phalcon_Debug, onUncaughtException) { } ZEPHIR_INIT_NVAR(&traceItem); ZVAL_COPY(&traceItem, _11$$5); - ZEPHIR_CALL_METHOD(&_14$$7, this_ptr, "showtraceitem", &_15, 169, &n, &traceItem); + ZEPHIR_CALL_METHOD(&_14$$7, this_ptr, "showtraceitem", &_15, 153, &n, &traceItem); zephir_check_call_status(); zephir_concat_self(&html, &_14$$7 TSRMLS_CC); } ZEND_HASH_FOREACH_END(); @@ -16808,7 +15289,7 @@ static PHP_METHOD(Phalcon_Debug, onUncaughtException) { ZEPHIR_CONCAT_SVSVS(&_19$$9, "
"); zephir_concat_self(&html, &_19$$9 TSRMLS_CC); } else { - ZEPHIR_CALL_FUNCTION(&_20$$10, "print_r", &_21, 170, &value, &__$true); + ZEPHIR_CALL_FUNCTION(&_20$$10, "print_r", &_21, 154, &value, &__$true); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_22$$10); ZEPHIR_CONCAT_SVSVS(&_22$$10, ""); @@ -16842,7 +15323,7 @@ static PHP_METHOD(Phalcon_Debug, onUncaughtException) { zephir_concat_self_str(&html, SL("
Memory
Usage", &_34$$5, "
", &keyRequest, "", &value, "
", &keyRequest, "", &_20$$10, "
") TSRMLS_CC); zephir_concat_self_str(&html, SL("
") TSRMLS_CC); zephir_concat_self_str(&html, SL("") TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_29$$5, "get_included_files", NULL, 171); + ZEPHIR_CALL_FUNCTION(&_29$$5, "get_included_files", NULL, 155); zephir_check_call_status(); zephir_is_iterable(&_29$$5, 0, "phalcon/debug.zep", 693); ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&_29$$5), _31$$5, _32$$5, _30$$5) @@ -16863,7 +15344,7 @@ static PHP_METHOD(Phalcon_Debug, onUncaughtException) { ZEPHIR_INIT_NVAR(&keyFile); zephir_concat_self_str(&html, SL("
#Path
") TSRMLS_CC); zephir_concat_self_str(&html, SL("
") TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_34$$5, "memory_get_usage", NULL, 172, &__$true); + ZEPHIR_CALL_FUNCTION(&_34$$5, "memory_get_usage", NULL, 156, &__$true); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_35$$5); ZEPHIR_CONCAT_SVS(&_35$$5, ""); @@ -16994,11 +15475,11 @@ static PHP_METHOD(Phalcon_Di, set) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 1, &name_param, &definition, &shared_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(&name, name_param); } else { ZEPHIR_INIT_VAR(&name); @@ -17018,7 +15499,7 @@ static PHP_METHOD(Phalcon_Di, set) { } else { ZVAL_BOOL(&_0, 0); } - ZEPHIR_CALL_METHOD(NULL, &service, "__construct", NULL, 67, &name, definition, &_0); + ZEPHIR_CALL_METHOD(NULL, &service, "__construct", NULL, 61, &name, definition, &_0); zephir_check_call_status(); zephir_update_property_array(this_ptr, SL("_services"), &name, &service TSRMLS_CC); RETURN_CCTOR(service); @@ -17039,11 +15520,11 @@ static PHP_METHOD(Phalcon_Di, setShared) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &name_param, &definition); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(&name, name_param); } else { ZEPHIR_INIT_VAR(&name); @@ -17071,11 +15552,11 @@ static PHP_METHOD(Phalcon_Di, remove) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(&name, name_param); } else { ZEPHIR_INIT_VAR(&name); @@ -17108,11 +15589,11 @@ static PHP_METHOD(Phalcon_Di, attempt) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 1, &name_param, &definition, &shared_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(&name, name_param); } else { ZEPHIR_INIT_VAR(&name); @@ -17134,7 +15615,7 @@ static PHP_METHOD(Phalcon_Di, attempt) { } else { ZVAL_BOOL(&_1$$3, 0); } - ZEPHIR_CALL_METHOD(NULL, &service, "__construct", NULL, 67, &name, definition, &_1$$3); + ZEPHIR_CALL_METHOD(NULL, &service, "__construct", NULL, 61, &name, definition, &_1$$3); zephir_check_call_status(); zephir_update_property_array(this_ptr, SL("_services"), &name, &service TSRMLS_CC); RETURN_CCTOR(service); @@ -17155,11 +15636,11 @@ static PHP_METHOD(Phalcon_Di, setRaw) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &name_param, &rawDefinition); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(&name, name_param); } else { ZEPHIR_INIT_VAR(&name); @@ -17189,11 +15670,11 @@ static PHP_METHOD(Phalcon_Di, getRaw) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(&name, name_param); } else { ZEPHIR_INIT_VAR(&name); @@ -17212,7 +15693,7 @@ static PHP_METHOD(Phalcon_Di, getRaw) { object_init_ex(&_1, phalcon_di_exception_ce); ZEPHIR_INIT_VAR(&_2); ZEPHIR_CONCAT_SVS(&_2, "Service '", &name, "' wasn't found in the dependency injection container"); - ZEPHIR_CALL_METHOD(NULL, &_1, "__construct", NULL, 9, &_2); + ZEPHIR_CALL_METHOD(NULL, &_1, "__construct", NULL, 4, &_2); zephir_check_call_status(); zephir_throw_exception_debug(&_1, "phalcon/di.zep", 191 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -17236,11 +15717,11 @@ static PHP_METHOD(Phalcon_Di, getService) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(&name, name_param); } else { ZEPHIR_INIT_VAR(&name); @@ -17257,7 +15738,7 @@ static PHP_METHOD(Phalcon_Di, getService) { object_init_ex(&_1, phalcon_di_exception_ce); ZEPHIR_INIT_VAR(&_2); ZEPHIR_CONCAT_SVS(&_2, "Service '", &name, "' wasn't found in the dependency injection container"); - ZEPHIR_CALL_METHOD(NULL, &_1, "__construct", NULL, 9, &_2); + ZEPHIR_CALL_METHOD(NULL, &_1, "__construct", NULL, 4, &_2); zephir_check_call_status(); zephir_throw_exception_debug(&_1, "phalcon/di.zep", 205 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -17292,11 +15773,11 @@ static PHP_METHOD(Phalcon_Di, get) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &name_param, ¶meters); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(&name, name_param); } else { ZEPHIR_INIT_VAR(&name); @@ -17334,7 +15815,7 @@ static PHP_METHOD(Phalcon_Di, get) { object_init_ex(&_4$$7, phalcon_di_exception_ce); ZEPHIR_INIT_VAR(&_5$$7); ZEPHIR_CONCAT_SVS(&_5$$7, "Service '", &name, "' wasn't found in the dependency injection container"); - ZEPHIR_CALL_METHOD(NULL, &_4$$7, "__construct", NULL, 9, &_5$$7); + ZEPHIR_CALL_METHOD(NULL, &_4$$7, "__construct", NULL, 4, &_5$$7); zephir_check_call_status(); zephir_throw_exception_debug(&_4$$7, "phalcon/di.zep", 236 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -17394,11 +15875,11 @@ static PHP_METHOD(Phalcon_Di, getShared) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &name_param, ¶meters); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(&name, name_param); } else { ZEPHIR_INIT_VAR(&name); @@ -17444,11 +15925,11 @@ static PHP_METHOD(Phalcon_Di, has) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(&name, name_param); } else { ZEPHIR_INIT_VAR(&name); @@ -17491,11 +15972,11 @@ static PHP_METHOD(Phalcon_Di, offsetExists) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(&name, name_param); } else { ZEPHIR_INIT_VAR(&name); @@ -17522,11 +16003,11 @@ static PHP_METHOD(Phalcon_Di, offsetSet) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &name_param, &definition); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(&name, name_param); } else { ZEPHIR_INIT_VAR(&name); @@ -17552,11 +16033,11 @@ static PHP_METHOD(Phalcon_Di, offsetGet) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(&name, name_param); } else { ZEPHIR_INIT_VAR(&name); @@ -17581,11 +16062,11 @@ static PHP_METHOD(Phalcon_Di, offsetUnset) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(&name, name_param); } else { ZEPHIR_INIT_VAR(&name); @@ -17623,11 +16104,11 @@ static PHP_METHOD(Phalcon_Di, __call) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &method_param, &arguments); - if (unlikely(Z_TYPE_P(method_param) != IS_STRING && Z_TYPE_P(method_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(method_param) != IS_STRING && Z_TYPE_P(method_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'method' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(method_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(method_param) == IS_STRING)) { zephir_get_strval(&method, method_param); } else { ZEPHIR_INIT_VAR(&method); @@ -17645,7 +16126,7 @@ static PHP_METHOD(Phalcon_Di, __call) { ZVAL_LONG(&_0$$3, 3); ZEPHIR_INIT_VAR(&_1$$3); zephir_substr(&_1$$3, &method, 3 , 0, ZEPHIR_SUBSTR_NO_LENGTH); - ZEPHIR_CALL_FUNCTION(&possibleService, "lcfirst", &_2, 68, &_1$$3); + ZEPHIR_CALL_FUNCTION(&possibleService, "lcfirst", &_2, 62, &_1$$3); zephir_check_call_status(); if (zephir_array_isset(&services, &possibleService)) { if (zephir_fast_count_int(arguments TSRMLS_CC)) { @@ -17664,7 +16145,7 @@ static PHP_METHOD(Phalcon_Di, __call) { ZVAL_LONG(&_4$$8, 3); ZEPHIR_INIT_VAR(&_5$$8); zephir_substr(&_5$$8, &method, 3 , 0, ZEPHIR_SUBSTR_NO_LENGTH); - ZEPHIR_CALL_FUNCTION(&_6$$8, "lcfirst", &_2, 68, &_5$$8); + ZEPHIR_CALL_FUNCTION(&_6$$8, "lcfirst", &_2, 62, &_5$$8); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, this_ptr, "set", NULL, 0, &_6$$8, &definition); zephir_check_call_status(); @@ -17675,7 +16156,7 @@ static PHP_METHOD(Phalcon_Di, __call) { object_init_ex(&_7, phalcon_di_exception_ce); ZEPHIR_INIT_VAR(&_8); ZEPHIR_CONCAT_SVS(&_8, "Call to undefined method or service '", &method, "'"); - ZEPHIR_CALL_METHOD(NULL, &_7, "__construct", NULL, 9, &_8); + ZEPHIR_CALL_METHOD(NULL, &_7, "__construct", NULL, 4, &_8); zephir_check_call_status(); zephir_throw_exception_debug(&_7, "phalcon/di.zep", 406 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -18278,7 +16759,7 @@ static PHP_METHOD(Phalcon_Dispatcher, setModelBinding) { if (value) { ZEPHIR_INIT_VAR(&_1$$4); object_init_ex(&_1$$4, phalcon_mvc_model_binder_ce); - ZEPHIR_CALL_METHOD(NULL, &_1$$4, "__construct", NULL, 69, cache); + ZEPHIR_CALL_METHOD(NULL, &_1$$4, "__construct", NULL, 63, cache); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_modelBinder"), &_1$$4); } @@ -18343,13 +16824,14 @@ static PHP_METHOD(Phalcon_Dispatcher, getModelBinder) { static PHP_METHOD(Phalcon_Dispatcher, dispatch) { - zval handler, e, _0$$4; + zval handler, e, _0, _1$$4; int ZEPHIR_LAST_CALL_STATUS; ZEPHIR_INIT_THIS(); ZVAL_UNDEF(&handler); ZVAL_UNDEF(&e); - ZVAL_UNDEF(&_0$$4); + ZVAL_UNDEF(&_0); + ZVAL_UNDEF(&_1$$4); ZEPHIR_MM_GROW(); @@ -18362,13 +16844,15 @@ static PHP_METHOD(Phalcon_Dispatcher, dispatch) { try_end_1: if (EG(exception)) { - ZVAL_OBJ(&e, EG(exception)); - Z_ADDREF_P(&e); - if (zephir_instance_of_ev(&e, zend_exception_get_default(TSRMLS_C) TSRMLS_CC)) { + ZEPHIR_INIT_VAR(&_0); + ZVAL_OBJ(&_0, EG(exception)); + Z_ADDREF_P(&_0); + if (zephir_instance_of_ev(&_0, zend_exception_get_default(TSRMLS_C) TSRMLS_CC)) { zend_clear_exception(TSRMLS_C); - ZEPHIR_CALL_METHOD(&_0$$4, this_ptr, "_handleexception", NULL, 0, &e); + ZEPHIR_CPY_WRT(&e, &_0); + ZEPHIR_CALL_METHOD(&_1$$4, this_ptr, "_handleexception", NULL, 0, &e); zephir_check_call_status(); - if (ZEPHIR_IS_FALSE_IDENTICAL(&_0$$4)) { + if (ZEPHIR_IS_FALSE_IDENTICAL(&_1$$4)) { RETURN_MM_BOOL(0); } zephir_throw_exception_debug(&e, "phalcon/dispatcher.zep", 413 TSRMLS_CC); @@ -18384,8 +16868,8 @@ static PHP_METHOD(Phalcon_Dispatcher, _dispatch) { zval _30$$6; zend_bool hasService = 0, wasFresh; - zephir_fcall_cache_entry *_7 = NULL, *_8 = NULL, *_9 = NULL, *_12 = NULL, *_15 = NULL, *_18 = NULL, *_20 = NULL, *_21 = NULL, *_24 = NULL, *_28 = NULL, *_33 = NULL, *_37 = NULL, *_41 = NULL, *_47 = NULL, *_53 = NULL, *_58 = NULL, *_60 = NULL, *_64 = NULL, *_66 = NULL; - zval __$true, __$false, value, handler, dependencyInjector, namespaceName, handlerName, actionName, params, eventsManager, actionSuffix, handlerClass, status, actionMethod, modelBinder, e, bindCacheKey, _0, _1$$3, _2$$3, _3$$4, _4$$4, _5$$7, _6$$7, _10$$8, _11$$8, _13$$8, _14$$6, _49$$6, _16$$12, _17$$12, _19$$13, _22$$16, _23$$16, _25$$17, _26$$19, _27$$19, _29$$20, _31$$23, _32$$23, _34$$23, _35$$22, _36$$22, _38$$26, _39$$28, _40$$28, _42$$28, _43$$31, _44$$31, _45$$36, _46$$36, _48$$36, _50$$39, _51$$40, _52$$40, _54$$40, _55$$43, _56$$43, _57$$46, _59$$47, _61$$48, _62$$51, _63$$51, _65$$51, _67$$54, _68$$54, _69$$57; + zephir_fcall_cache_entry *_7 = NULL, *_8 = NULL, *_9 = NULL, *_12 = NULL, *_15 = NULL, *_18 = NULL, *_20 = NULL, *_21 = NULL, *_24 = NULL, *_28 = NULL, *_33 = NULL, *_37 = NULL, *_41 = NULL, *_47 = NULL, *_53 = NULL, *_58 = NULL, *_61 = NULL, *_65 = NULL, *_67 = NULL; + zval __$true, __$false, value, handler, dependencyInjector, namespaceName, handlerName, actionName, params, eventsManager, actionSuffix, handlerClass, status, actionMethod, modelBinder, e, bindCacheKey, _0, _1$$3, _2$$3, _3$$4, _4$$4, _5$$7, _6$$7, _10$$8, _11$$8, _13$$8, _14$$6, _49$$6, _59$$6, _16$$12, _17$$12, _19$$13, _22$$16, _23$$16, _25$$17, _26$$19, _27$$19, _29$$20, _31$$23, _32$$23, _34$$23, _35$$22, _36$$22, _38$$26, _39$$28, _40$$28, _42$$28, _43$$31, _44$$31, _45$$36, _46$$36, _48$$36, _50$$39, _51$$40, _52$$40, _54$$40, _55$$43, _56$$43, _57$$46, _60$$47, _62$$48, _63$$51, _64$$51, _66$$51, _68$$54, _69$$54, _70$$57; int ZEPHIR_LAST_CALL_STATUS, numberDispatches = 0; ZEPHIR_INIT_THIS(); @@ -18418,6 +16902,7 @@ static PHP_METHOD(Phalcon_Dispatcher, _dispatch) { ZVAL_UNDEF(&_13$$8); ZVAL_UNDEF(&_14$$6); ZVAL_UNDEF(&_49$$6); + ZVAL_UNDEF(&_59$$6); ZVAL_UNDEF(&_16$$12); ZVAL_UNDEF(&_17$$12); ZVAL_UNDEF(&_19$$13); @@ -18448,14 +16933,14 @@ static PHP_METHOD(Phalcon_Dispatcher, _dispatch) { ZVAL_UNDEF(&_55$$43); ZVAL_UNDEF(&_56$$43); ZVAL_UNDEF(&_57$$46); - ZVAL_UNDEF(&_59$$47); - ZVAL_UNDEF(&_61$$48); - ZVAL_UNDEF(&_62$$51); + ZVAL_UNDEF(&_60$$47); + ZVAL_UNDEF(&_62$$48); ZVAL_UNDEF(&_63$$51); - ZVAL_UNDEF(&_65$$51); - ZVAL_UNDEF(&_67$$54); + ZVAL_UNDEF(&_64$$51); + ZVAL_UNDEF(&_66$$51); ZVAL_UNDEF(&_68$$54); - ZVAL_UNDEF(&_69$$57); + ZVAL_UNDEF(&_69$$54); + ZVAL_UNDEF(&_70$$57); ZVAL_UNDEF(&_30$$6); ZEPHIR_MM_GROW(); @@ -18715,15 +17200,17 @@ static PHP_METHOD(Phalcon_Dispatcher, _dispatch) { try_end_1: if (EG(exception)) { - ZVAL_OBJ(&e, EG(exception)); - Z_ADDREF_P(&e); - if (zephir_instance_of_ev(&e, zend_exception_get_default(TSRMLS_C) TSRMLS_CC)) { + ZEPHIR_INIT_NVAR(&_59$$6); + ZVAL_OBJ(&_59$$6, EG(exception)); + Z_ADDREF_P(&_59$$6); + if (zephir_instance_of_ev(&_59$$6, zend_exception_get_default(TSRMLS_C) TSRMLS_CC)) { zend_clear_exception(TSRMLS_C); - ZEPHIR_CALL_METHOD(&_59$$47, this_ptr, "_handleexception", &_60, 0, &e); + ZEPHIR_CPY_WRT(&e, &_59$$6); + ZEPHIR_CALL_METHOD(&_60$$47, this_ptr, "_handleexception", &_61, 0, &e); zephir_check_call_status(); - if (ZEPHIR_IS_FALSE_IDENTICAL(&_59$$47)) { - zephir_read_property(&_61$$48, this_ptr, SL("_finished"), PH_NOISY_CC | PH_READONLY); - if (ZEPHIR_IS_FALSE_IDENTICAL(&_61$$48)) { + if (ZEPHIR_IS_FALSE_IDENTICAL(&_60$$47)) { + zephir_read_property(&_62$$48, this_ptr, SL("_finished"), PH_NOISY_CC | PH_READONLY); + if (ZEPHIR_IS_FALSE_IDENTICAL(&_62$$48)) { continue; } } else { @@ -18734,38 +17221,38 @@ static PHP_METHOD(Phalcon_Dispatcher, _dispatch) { } } if (Z_TYPE_P(&eventsManager) == IS_OBJECT) { - ZEPHIR_INIT_NVAR(&_63$$51); - ZVAL_STRING(&_63$$51, "dispatch:afterExecuteRoute"); - ZEPHIR_CALL_METHOD(&_62$$51, &eventsManager, "fire", &_64, 0, &_63$$51, this_ptr, &value); + ZEPHIR_INIT_NVAR(&_64$$51); + ZVAL_STRING(&_64$$51, "dispatch:afterExecuteRoute"); + ZEPHIR_CALL_METHOD(&_63$$51, &eventsManager, "fire", &_65, 0, &_64$$51, this_ptr, &value); zephir_check_call_status(); - if (ZEPHIR_IS_FALSE_IDENTICAL(&_62$$51)) { + if (ZEPHIR_IS_FALSE_IDENTICAL(&_63$$51)) { continue; } - zephir_read_property(&_65$$51, this_ptr, SL("_finished"), PH_NOISY_CC | PH_READONLY); - if (ZEPHIR_IS_FALSE_IDENTICAL(&_65$$51)) { + zephir_read_property(&_66$$51, this_ptr, SL("_finished"), PH_NOISY_CC | PH_READONLY); + if (ZEPHIR_IS_FALSE_IDENTICAL(&_66$$51)) { continue; } - ZEPHIR_INIT_NVAR(&_63$$51); - ZVAL_STRING(&_63$$51, "dispatch:afterDispatch"); - ZEPHIR_CALL_METHOD(NULL, &eventsManager, "fire", &_66, 0, &_63$$51, this_ptr); + ZEPHIR_INIT_NVAR(&_64$$51); + ZVAL_STRING(&_64$$51, "dispatch:afterDispatch"); + ZEPHIR_CALL_METHOD(NULL, &eventsManager, "fire", &_67, 0, &_64$$51, this_ptr); zephir_check_call_status(); } if ((zephir_method_exists_ex(&handler, SL("afterexecuteroute") TSRMLS_CC) == SUCCESS)) { - ZEPHIR_CALL_METHOD(&_67$$54, &handler, "afterexecuteroute", NULL, 0, this_ptr, &value); + ZEPHIR_CALL_METHOD(&_68$$54, &handler, "afterexecuteroute", NULL, 0, this_ptr, &value); zephir_check_call_status(); - if (ZEPHIR_IS_FALSE_IDENTICAL(&_67$$54)) { + if (ZEPHIR_IS_FALSE_IDENTICAL(&_68$$54)) { continue; } - zephir_read_property(&_68$$54, this_ptr, SL("_finished"), PH_NOISY_CC | PH_READONLY); - if (ZEPHIR_IS_FALSE_IDENTICAL(&_68$$54)) { + zephir_read_property(&_69$$54, this_ptr, SL("_finished"), PH_NOISY_CC | PH_READONLY); + if (ZEPHIR_IS_FALSE_IDENTICAL(&_69$$54)) { continue; } } } if (Z_TYPE_P(&eventsManager) == IS_OBJECT) { - ZEPHIR_INIT_VAR(&_69$$57); - ZVAL_STRING(&_69$$57, "dispatch:afterDispatchLoop"); - ZEPHIR_CALL_METHOD(NULL, &eventsManager, "fire", NULL, 0, &_69$$57, this_ptr); + ZEPHIR_INIT_VAR(&_70$$57); + ZVAL_STRING(&_70$$57, "dispatch:afterDispatchLoop"); + ZEPHIR_CALL_METHOD(NULL, &eventsManager, "fire", NULL, 0, &_70$$57, this_ptr); zephir_check_call_status(); } RETURN_CCTOR(handler); @@ -19202,14 +17689,14 @@ static PHP_METHOD(Phalcon_Escaper, detectEncoding) { { ZEPHIR_INIT_NVAR(&charset); ZVAL_COPY(&charset, _2); - ZEPHIR_CALL_FUNCTION(&_3$$5, "mb_detect_encoding", &_4, 185, &str, &charset, &__$true); + ZEPHIR_CALL_FUNCTION(&_3$$5, "mb_detect_encoding", &_4, 167, &str, &charset, &__$true); zephir_check_call_status(); if (zephir_is_true(&_3$$5)) { RETURN_CCTOR(charset); } } ZEND_HASH_FOREACH_END(); ZEPHIR_INIT_NVAR(&charset); - ZEPHIR_RETURN_CALL_FUNCTION("mb_detect_encoding", &_4, 185, &str); + ZEPHIR_RETURN_CALL_FUNCTION("mb_detect_encoding", &_4, 167, &str); zephir_check_call_status(); RETURN_MM(); @@ -19236,11 +17723,11 @@ static PHP_METHOD(Phalcon_Escaper, normalizeEncoding) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_escaper_exception_ce, "Extension 'mbstring' is required", "phalcon/escaper.zep", 144); return; } - ZEPHIR_CALL_METHOD(&_0, this_ptr, "detectencoding", NULL, 186, &str); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "detectencoding", NULL, 168, &str); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_1); ZVAL_STRING(&_1, "UTF-32"); - ZEPHIR_RETURN_CALL_FUNCTION("mb_convert_encoding", NULL, 187, &str, &_1, &_0); + ZEPHIR_RETURN_CALL_FUNCTION("mb_convert_encoding", NULL, 169, &str, &_1, &_0); zephir_check_call_status(); RETURN_MM(); @@ -19267,7 +17754,7 @@ static PHP_METHOD(Phalcon_Escaper, escapeHtml) { zephir_read_property(&_0, this_ptr, SL("_htmlQuoteType"), PH_NOISY_CC | PH_READONLY); zephir_read_property(&_1, this_ptr, SL("_encoding"), PH_NOISY_CC | PH_READONLY); zephir_read_property(&_2, this_ptr, SL("_doubleEncode"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_RETURN_CALL_FUNCTION("htmlspecialchars", NULL, 188, &text, &_0, &_1, &_2); + ZEPHIR_RETURN_CALL_FUNCTION("htmlspecialchars", NULL, 170, &text, &_0, &_1, &_2); zephir_check_call_status(); RETURN_MM(); @@ -19294,7 +17781,7 @@ static PHP_METHOD(Phalcon_Escaper, escapeHtmlAttr) { zephir_read_property(&_0, this_ptr, SL("_encoding"), PH_NOISY_CC | PH_READONLY); zephir_read_property(&_1, this_ptr, SL("_doubleEncode"), PH_NOISY_CC | PH_READONLY); ZVAL_LONG(&_2, 3); - ZEPHIR_RETURN_CALL_FUNCTION("htmlspecialchars", NULL, 188, &attribute, &_2, &_0, &_1); + ZEPHIR_RETURN_CALL_FUNCTION("htmlspecialchars", NULL, 170, &attribute, &_2, &_0, &_1); zephir_check_call_status(); RETURN_MM(); @@ -19316,7 +17803,7 @@ static PHP_METHOD(Phalcon_Escaper, escapeCss) { zephir_get_strval(&css, css_param); - ZEPHIR_CALL_METHOD(&_0, this_ptr, "normalizeencoding", NULL, 189, &css); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "normalizeencoding", NULL, 171, &css); zephir_check_call_status(); zephir_escape_css(return_value, &_0); RETURN_MM(); @@ -19339,7 +17826,7 @@ static PHP_METHOD(Phalcon_Escaper, escapeJs) { zephir_get_strval(&js, js_param); - ZEPHIR_CALL_METHOD(&_0, this_ptr, "normalizeencoding", NULL, 189, &js); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "normalizeencoding", NULL, 171, &js); zephir_check_call_status(); zephir_escape_js(return_value, &_0); RETURN_MM(); @@ -19361,7 +17848,7 @@ static PHP_METHOD(Phalcon_Escaper, escapeUrl) { zephir_get_strval(&url, url_param); - ZEPHIR_RETURN_CALL_FUNCTION("rawurlencode", NULL, 190, &url); + ZEPHIR_RETURN_CALL_FUNCTION("rawurlencode", NULL, 172, &url); zephir_check_call_status(); RETURN_MM(); @@ -19477,11 +17964,11 @@ static PHP_METHOD(Phalcon_Filter, add) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &name_param, &handler); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(&name, name_param); } else { ZEPHIR_INIT_VAR(&name); @@ -19639,11 +18126,11 @@ static PHP_METHOD(Phalcon_Filter, _sanitize) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &value, &filter_param); - if (unlikely(Z_TYPE_P(filter_param) != IS_STRING && Z_TYPE_P(filter_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(filter_param) != IS_STRING && Z_TYPE_P(filter_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'filter' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(filter_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(filter_param) == IS_STRING)) { zephir_get_strval(&filter, filter_param); } else { ZEPHIR_INIT_VAR(&filter); @@ -19678,15 +18165,15 @@ static PHP_METHOD(Phalcon_Filter, _sanitize) { if (ZEPHIR_IS_STRING(&filter, "email")) { ZEPHIR_INIT_VAR(&_4$$5); ZVAL_STRING(&_4$$5, "FILTER_SANITIZE_EMAIL"); - ZEPHIR_CALL_FUNCTION(&_5$$5, "constant", NULL, 197, &_4$$5); + ZEPHIR_CALL_FUNCTION(&_5$$5, "constant", NULL, 179, &_4$$5); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_FUNCTION("filter_var", &_6, 198, value, &_5$$5); + ZEPHIR_RETURN_CALL_FUNCTION("filter_var", &_6, 180, value, &_5$$5); zephir_check_call_status(); RETURN_MM(); } if (ZEPHIR_IS_STRING(&filter, "int")) { ZVAL_LONG(&_7$$6, 519); - ZEPHIR_RETURN_CALL_FUNCTION("filter_var", &_6, 198, value, &_7$$6); + ZEPHIR_RETURN_CALL_FUNCTION("filter_var", &_6, 180, value, &_7$$6); zephir_check_call_status(); RETURN_MM(); } @@ -19695,13 +18182,13 @@ static PHP_METHOD(Phalcon_Filter, _sanitize) { } if (ZEPHIR_IS_STRING(&filter, "absint")) { ZVAL_LONG(&_8$$8, zephir_get_intval(value)); - ZEPHIR_RETURN_CALL_FUNCTION("abs", NULL, 199, &_8$$8); + ZEPHIR_RETURN_CALL_FUNCTION("abs", NULL, 181, &_8$$8); zephir_check_call_status(); RETURN_MM(); } if (ZEPHIR_IS_STRING(&filter, "string")) { ZVAL_LONG(&_9$$9, 513); - ZEPHIR_RETURN_CALL_FUNCTION("filter_var", &_6, 198, value, &_9$$9); + ZEPHIR_RETURN_CALL_FUNCTION("filter_var", &_6, 180, value, &_9$$9); zephir_check_call_status(); RETURN_MM(); } @@ -19710,7 +18197,7 @@ static PHP_METHOD(Phalcon_Filter, _sanitize) { zephir_create_array(&_10$$10, 1, 0 TSRMLS_CC); add_assoc_long_ex(&_10$$10, SL("flags"), 4096); ZVAL_LONG(&_11$$10, 520); - ZEPHIR_RETURN_CALL_FUNCTION("filter_var", &_6, 198, value, &_11$$10, &_10$$10); + ZEPHIR_RETURN_CALL_FUNCTION("filter_var", &_6, 180, value, &_11$$10, &_10$$10); zephir_check_call_status(); RETURN_MM(); } @@ -19722,7 +18209,7 @@ static PHP_METHOD(Phalcon_Filter, _sanitize) { ZVAL_STRING(&_12$$12, "/[^A-Za-z0-9]/"); ZEPHIR_INIT_VAR(&_13$$12); ZVAL_STRING(&_13$$12, ""); - ZEPHIR_RETURN_CALL_FUNCTION("preg_replace", NULL, 39, &_12$$12, &_13$$12, value); + ZEPHIR_RETURN_CALL_FUNCTION("preg_replace", NULL, 33, &_12$$12, &_13$$12, value); zephir_check_call_status(); RETURN_MM(); } @@ -19731,13 +18218,13 @@ static PHP_METHOD(Phalcon_Filter, _sanitize) { RETURN_MM(); } if (ZEPHIR_IS_STRING(&filter, "striptags")) { - ZEPHIR_RETURN_CALL_FUNCTION("strip_tags", NULL, 200, value); + ZEPHIR_RETURN_CALL_FUNCTION("strip_tags", NULL, 182, value); zephir_check_call_status(); RETURN_MM(); } if (ZEPHIR_IS_STRING(&filter, "lower")) { if ((zephir_function_exists_ex(SL("mb_strtolower") TSRMLS_CC) == SUCCESS)) { - ZEPHIR_RETURN_CALL_FUNCTION("mb_strtolower", NULL, 201, value); + ZEPHIR_RETURN_CALL_FUNCTION("mb_strtolower", NULL, 183, value); zephir_check_call_status(); RETURN_MM(); } @@ -19746,7 +18233,7 @@ static PHP_METHOD(Phalcon_Filter, _sanitize) { } if (ZEPHIR_IS_STRING(&filter, "upper")) { if ((zephir_function_exists_ex(SL("mb_strtoupper") TSRMLS_CC) == SUCCESS)) { - ZEPHIR_RETURN_CALL_FUNCTION("mb_strtoupper", NULL, 202, value); + ZEPHIR_RETURN_CALL_FUNCTION("mb_strtoupper", NULL, 184, value); zephir_check_call_status(); RETURN_MM(); } @@ -19757,7 +18244,7 @@ static PHP_METHOD(Phalcon_Filter, _sanitize) { object_init_ex(&_14$$19, phalcon_filter_exception_ce); ZEPHIR_INIT_VAR(&_15$$19); ZEPHIR_CONCAT_SVS(&_15$$19, "Sanitize filter '", &filter, "' is not supported"); - ZEPHIR_CALL_METHOD(NULL, &_14$$19, "__construct", NULL, 9, &_15$$19); + ZEPHIR_CALL_METHOD(NULL, &_14$$19, "__construct", NULL, 4, &_15$$19); zephir_check_call_status(); zephir_throw_exception_debug(&_14$$19, "phalcon/filter.zep", 214 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -19975,7 +18462,7 @@ static PHP_METHOD(Phalcon_Flash, getDI) { ZEPHIR_OBS_VAR(&di); zephir_read_property(&di, this_ptr, SL("_dependencyInjector"), PH_NOISY_CC); if (Z_TYPE_P(&di) != IS_OBJECT) { - ZEPHIR_CALL_CE_STATIC(&di, phalcon_di_ce, "getdefault", &_0, 1); + ZEPHIR_CALL_CE_STATIC(&di, phalcon_di_ce, "getdefault", &_0, 0); zephir_check_call_status(); } RETURN_CCTOR(di); @@ -20363,11 +18850,11 @@ static PHP_METHOD(Phalcon_Kernel, preComputeHashKey) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &key_param); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(&key, key_param); } else { ZEPHIR_INIT_VAR(&key); @@ -20808,7 +19295,7 @@ static PHP_METHOD(Phalcon_Loader, register) { ZVAL_STRING(&_2$$3, "autoLoad"); zephir_array_fast_append(&_1$$3, &_2$$3); ZVAL_BOOL(&_3$$3, (prepend ? 1 : 0)); - ZEPHIR_CALL_FUNCTION(NULL, "spl_autoload_register", NULL, 296, &_1$$3, &__$true, &_3$$3); + ZEPHIR_CALL_FUNCTION(NULL, "spl_autoload_register", NULL, 264, &_1$$3, &__$true, &_3$$3); zephir_check_call_status(); if (1) { zephir_update_property_zval(this_ptr, SL("_registered"), &__$true); @@ -20843,7 +19330,7 @@ static PHP_METHOD(Phalcon_Loader, unregister) { ZEPHIR_INIT_VAR(&_2$$3); ZVAL_STRING(&_2$$3, "autoLoad"); zephir_array_fast_append(&_1$$3, &_2$$3); - ZEPHIR_CALL_FUNCTION(NULL, "spl_autoload_unregister", NULL, 297, &_1$$3); + ZEPHIR_CALL_FUNCTION(NULL, "spl_autoload_unregister", NULL, 265, &_1$$3); zephir_check_call_status(); if (0) { zephir_update_property_zval(this_ptr, SL("_registered"), &__$true); @@ -20890,7 +19377,7 @@ static PHP_METHOD(Phalcon_Loader, loadFiles) { ZEPHIR_CALL_METHOD(NULL, &_3$$4, "fire", NULL, 0, &_4$$4, this_ptr, &filePath); zephir_check_call_status(); } - ZEPHIR_CALL_FUNCTION(&_5$$3, "is_file", &_6, 298, &filePath); + ZEPHIR_CALL_FUNCTION(&_5$$3, "is_file", &_6, 266, &filePath); zephir_check_call_status(); if (zephir_is_true(&_5$$3)) { ZEPHIR_OBS_NVAR(&_7$$5); @@ -20957,11 +19444,11 @@ static PHP_METHOD(Phalcon_Loader, autoLoad) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &className_param); - if (unlikely(Z_TYPE_P(className_param) != IS_STRING && Z_TYPE_P(className_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(className_param) != IS_STRING && Z_TYPE_P(className_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'className' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(className_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(className_param) == IS_STRING)) { zephir_get_strval(&className, className_param); } else { ZEPHIR_INIT_VAR(&className); @@ -21049,7 +19536,7 @@ static PHP_METHOD(Phalcon_Loader, autoLoad) { ZEPHIR_CALL_METHOD(NULL, &eventsManager, "fire", &_12, 0, &_11$$11, this_ptr); zephir_check_call_status(); } - ZEPHIR_CALL_FUNCTION(&_13$$10, "is_file", &_14, 298, &filePath); + ZEPHIR_CALL_FUNCTION(&_13$$10, "is_file", &_14, 266, &filePath); zephir_check_call_status(); if (zephir_is_true(&_13$$10)) { if (Z_TYPE_P(&eventsManager) == IS_OBJECT) { @@ -21100,7 +19587,7 @@ static PHP_METHOD(Phalcon_Loader, autoLoad) { ZEPHIR_CALL_METHOD(NULL, &eventsManager, "fire", &_22, 0, &_21$$16, this_ptr, &filePath); zephir_check_call_status(); } - ZEPHIR_CALL_FUNCTION(&_23$$15, "is_file", &_14, 298, &filePath); + ZEPHIR_CALL_FUNCTION(&_23$$15, "is_file", &_14, 266, &filePath); zephir_check_call_status(); if (zephir_is_true(&_23$$15)) { if (Z_TYPE_P(&eventsManager) == IS_OBJECT) { @@ -21298,11 +19785,11 @@ static PHP_METHOD(Phalcon_Registry, offsetExists) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &offset_param); - if (unlikely(Z_TYPE_P(offset_param) != IS_STRING && Z_TYPE_P(offset_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(offset_param) != IS_STRING && Z_TYPE_P(offset_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'offset' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(offset_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(offset_param) == IS_STRING)) { zephir_get_strval(&offset, offset_param); } else { ZEPHIR_INIT_VAR(&offset); @@ -21328,11 +19815,11 @@ static PHP_METHOD(Phalcon_Registry, offsetGet) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &offset_param); - if (unlikely(Z_TYPE_P(offset_param) != IS_STRING && Z_TYPE_P(offset_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(offset_param) != IS_STRING && Z_TYPE_P(offset_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'offset' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(offset_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(offset_param) == IS_STRING)) { zephir_get_strval(&offset, offset_param); } else { ZEPHIR_INIT_VAR(&offset); @@ -21358,11 +19845,11 @@ static PHP_METHOD(Phalcon_Registry, offsetSet) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &offset_param, &value); - if (unlikely(Z_TYPE_P(offset_param) != IS_STRING && Z_TYPE_P(offset_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(offset_param) != IS_STRING && Z_TYPE_P(offset_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'offset' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(offset_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(offset_param) == IS_STRING)) { zephir_get_strval(&offset, offset_param); } else { ZEPHIR_INIT_VAR(&offset); @@ -21387,11 +19874,11 @@ static PHP_METHOD(Phalcon_Registry, offsetUnset) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &offset_param); - if (unlikely(Z_TYPE_P(offset_param) != IS_STRING && Z_TYPE_P(offset_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(offset_param) != IS_STRING && Z_TYPE_P(offset_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'offset' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(offset_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(offset_param) == IS_STRING)) { zephir_get_strval(&offset, offset_param); } else { ZEPHIR_INIT_VAR(&offset); @@ -21430,7 +19917,7 @@ static PHP_METHOD(Phalcon_Registry, next) { zephir_read_property(&_0, this_ptr, SL("_data"), PH_NOISY_CC | PH_READONLY); ZEPHIR_MAKE_REF(&_0); - ZEPHIR_CALL_FUNCTION(NULL, "next", NULL, 417, &_0); + ZEPHIR_CALL_FUNCTION(NULL, "next", NULL, 380, &_0); ZEPHIR_UNREF(&_0); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -21448,7 +19935,7 @@ static PHP_METHOD(Phalcon_Registry, key) { ZEPHIR_MM_GROW(); zephir_read_property(&_0, this_ptr, SL("_data"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_RETURN_CALL_FUNCTION("key", NULL, 418, &_0); + ZEPHIR_RETURN_CALL_FUNCTION("key", NULL, 381, &_0); zephir_check_call_status(); RETURN_MM(); @@ -21466,7 +19953,7 @@ static PHP_METHOD(Phalcon_Registry, rewind) { zephir_read_property(&_0, this_ptr, SL("_data"), PH_NOISY_CC | PH_READONLY); ZEPHIR_MAKE_REF(&_0); - ZEPHIR_CALL_FUNCTION(NULL, "reset", NULL, 419, &_0); + ZEPHIR_CALL_FUNCTION(NULL, "reset", NULL, 382, &_0); ZEPHIR_UNREF(&_0); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -21485,7 +19972,7 @@ static PHP_METHOD(Phalcon_Registry, valid) { ZEPHIR_MM_GROW(); zephir_read_property(&_0, this_ptr, SL("_data"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(&_1, "key", NULL, 418, &_0); + ZEPHIR_CALL_FUNCTION(&_1, "key", NULL, 381, &_0); zephir_check_call_status(); RETURN_MM_BOOL(Z_TYPE_P(&_1) != IS_NULL); @@ -21502,7 +19989,7 @@ static PHP_METHOD(Phalcon_Registry, current) { ZEPHIR_MM_GROW(); zephir_read_property(&_0, this_ptr, SL("_data"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_RETURN_CALL_FUNCTION("current", NULL, 420, &_0); + ZEPHIR_RETURN_CALL_FUNCTION("current", NULL, 383, &_0); zephir_check_call_status(); RETURN_MM(); @@ -21521,11 +20008,11 @@ static PHP_METHOD(Phalcon_Registry, __set) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &key_param, &value); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(&key, key_param); } else { ZEPHIR_INIT_VAR(&key); @@ -21533,7 +20020,7 @@ static PHP_METHOD(Phalcon_Registry, __set) { } - ZEPHIR_CALL_METHOD(NULL, this_ptr, "offsetset", NULL, 421, &key, value); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "offsetset", NULL, 384, &key, value); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -21551,11 +20038,11 @@ static PHP_METHOD(Phalcon_Registry, __get) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &key_param); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(&key, key_param); } else { ZEPHIR_INIT_VAR(&key); @@ -21563,7 +20050,7 @@ static PHP_METHOD(Phalcon_Registry, __get) { } - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "offsetget", NULL, 422, &key); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "offsetget", NULL, 385, &key); zephir_check_call_status(); RETURN_MM(); @@ -21581,11 +20068,11 @@ static PHP_METHOD(Phalcon_Registry, __isset) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &key_param); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(&key, key_param); } else { ZEPHIR_INIT_VAR(&key); @@ -21593,7 +20080,7 @@ static PHP_METHOD(Phalcon_Registry, __isset) { } - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "offsetexists", NULL, 423, &key); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "offsetexists", NULL, 386, &key); zephir_check_call_status(); RETURN_MM(); @@ -21611,11 +20098,11 @@ static PHP_METHOD(Phalcon_Registry, __unset) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &key_param); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(&key, key_param); } else { ZEPHIR_INIT_VAR(&key); @@ -21623,7 +20110,7 @@ static PHP_METHOD(Phalcon_Registry, __unset) { } - ZEPHIR_CALL_METHOD(NULL, this_ptr, "offsetunset", NULL, 424, &key); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "offsetunset", NULL, 387, &key); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -21765,7 +20252,7 @@ static PHP_METHOD(Phalcon_Security, setRandomBytes) { zephir_fetch_params(0, 1, 0, &randomBytes_param); - if (unlikely(Z_TYPE_P(randomBytes_param) != IS_LONG)) { + if (UNEXPECTED(Z_TYPE_P(randomBytes_param) != IS_LONG)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'randomBytes' must be a long") TSRMLS_CC); RETURN_NULL(); } @@ -21937,7 +20424,7 @@ static PHP_METHOD(Phalcon_Security, hash) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_security_exception_ce, "Unable to get random bytes for the salt", "phalcon/security.zep", 222); return; } - ZEPHIR_RETURN_CALL_FUNCTION("crypt", &_6, 425, &password, &saltBytes); + ZEPHIR_RETURN_CALL_FUNCTION("crypt", &_6, 388, &password, &saltBytes); zephir_check_call_status(); RETURN_MM(); } @@ -21958,7 +20445,7 @@ static PHP_METHOD(Phalcon_Security, hash) { } ZEPHIR_INIT_VAR(&_8$$15); ZEPHIR_CONCAT_SVSVS(&_8$$15, "$", &variant, "$", &saltBytes, "$"); - ZEPHIR_RETURN_CALL_FUNCTION("crypt", &_6, 425, &password, &_8$$15); + ZEPHIR_RETURN_CALL_FUNCTION("crypt", &_6, 388, &password, &_8$$15); zephir_check_call_status(); RETURN_MM(); } @@ -21979,11 +20466,11 @@ static PHP_METHOD(Phalcon_Security, hash) { ZEPHIR_INIT_VAR(&_10$$17); ZVAL_STRING(&_10$$17, "%02s"); ZVAL_LONG(&_9$$17, workFactor); - ZEPHIR_CALL_FUNCTION(&_11$$17, "sprintf", NULL, 194, &_10$$17, &_9$$17); + ZEPHIR_CALL_FUNCTION(&_11$$17, "sprintf", NULL, 176, &_10$$17, &_9$$17); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_12$$17); ZEPHIR_CONCAT_SVSVSVS(&_12$$17, "$2", &variant, "$", &_11$$17, "$", &saltBytes, "$"); - ZEPHIR_RETURN_CALL_FUNCTION("crypt", &_6, 425, &password, &_12$$17); + ZEPHIR_RETURN_CALL_FUNCTION("crypt", &_6, 388, &password, &_12$$17); zephir_check_call_status(); RETURN_MM(); } while(0); @@ -22030,7 +20517,7 @@ static PHP_METHOD(Phalcon_Security, checkHash) { RETURN_MM_BOOL(0); } } - ZEPHIR_CALL_FUNCTION(&_1, "crypt", NULL, 425, &password, &passwordHash); + ZEPHIR_CALL_FUNCTION(&_1, "crypt", NULL, 388, &password, &passwordHash); zephir_check_call_status(); zephir_get_strval(&_2, &_1); ZEPHIR_CPY_WRT(&cryptedHash, &_2); @@ -22348,14 +20835,14 @@ static PHP_METHOD(Phalcon_Security, computeHmac) { ZVAL_BOOL(&_0, (raw ? 1 : 0)); - ZEPHIR_CALL_FUNCTION(&hmac, "hash_hmac", NULL, 426, &algo, &data, &key, &_0); + ZEPHIR_CALL_FUNCTION(&hmac, "hash_hmac", NULL, 389, &algo, &data, &key, &_0); zephir_check_call_status(); if (!(zephir_is_true(&hmac))) { ZEPHIR_INIT_VAR(&_1$$3); object_init_ex(&_1$$3, phalcon_security_exception_ce); ZEPHIR_INIT_VAR(&_2$$3); ZEPHIR_CONCAT_SV(&_2$$3, "Unknown hashing algorithm: %s", &algo); - ZEPHIR_CALL_METHOD(NULL, &_1$$3, "__construct", NULL, 9, &_2$$3); + ZEPHIR_CALL_METHOD(NULL, &_1$$3, "__construct", NULL, 4, &_2$$3); zephir_check_call_status(); zephir_throw_exception_debug(&_1$$3, "phalcon/security.zep", 465 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -22409,7 +20896,7 @@ static PHP_METHOD(Phalcon_Security, hasLibreSsl) { ZEPHIR_INIT_VAR(&_0); ZVAL_STRING(&_0, "OPENSSL_VERSION_TEXT"); - ZEPHIR_CALL_FUNCTION(&_1, "defined", NULL, 239, &_0); + ZEPHIR_CALL_FUNCTION(&_1, "defined", NULL, 207, &_0); zephir_check_call_status(); if (!(zephir_is_true(&_1))) { RETURN_MM_BOOL(0); @@ -22586,11 +21073,11 @@ static PHP_METHOD(Phalcon_Tag, renderAttributes) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &code_param, &attributes_param); - if (unlikely(Z_TYPE_P(code_param) != IS_STRING && Z_TYPE_P(code_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(code_param) != IS_STRING && Z_TYPE_P(code_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'code' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(code_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(code_param) == IS_STRING)) { zephir_get_strval(&code, code_param); } else { ZEPHIR_INIT_VAR(&code); @@ -22680,7 +21167,7 @@ static PHP_METHOD(Phalcon_Tag, renderAttributes) { zephir_gettype(&_13$$9, &value TSRMLS_CC); ZEPHIR_INIT_LNVAR(_14$$9); ZEPHIR_CONCAT_SVSVS(&_14$$9, "Value at index: '", &key, "' type: '", &_13$$9, "' cannot be rendered"); - ZEPHIR_CALL_METHOD(NULL, &_12$$9, "__construct", &_15, 9, &_14$$9); + ZEPHIR_CALL_METHOD(NULL, &_12$$9, "__construct", &_15, 4, &_14$$9); zephir_check_call_status(); zephir_throw_exception_debug(&_12$$9, "phalcon/tag.zep", 151 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -22732,7 +21219,7 @@ static PHP_METHOD(Phalcon_Tag, getDI) { ZEPHIR_OBS_VAR(&di); zephir_read_static_property_ce(&di, phalcon_tag_ce, SL("_dependencyInjector"), PH_NOISY_CC); if (Z_TYPE_P(&di) != IS_OBJECT) { - ZEPHIR_CALL_CE_STATIC(&di, phalcon_di_ce, "getdefault", &_0, 1); + ZEPHIR_CALL_CE_STATIC(&di, phalcon_di_ce, "getdefault", &_0, 0); zephir_check_call_status(); } RETURN_CCTOR(di); @@ -22837,11 +21324,11 @@ static PHP_METHOD(Phalcon_Tag, setDefault) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &id_param, &value); - if (unlikely(Z_TYPE_P(id_param) != IS_STRING && Z_TYPE_P(id_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(id_param) != IS_STRING && Z_TYPE_P(id_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'id' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(id_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(id_param) == IS_STRING)) { zephir_get_strval(&id, id_param); } else { ZEPHIR_INIT_VAR(&id); @@ -23323,7 +21810,7 @@ static PHP_METHOD(Phalcon_Tag, colorField) { ZEPHIR_INIT_VAR(&_1); ZVAL_STRING(&_1, "color"); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 440, &_1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 402, &_1, parameters); zephir_check_call_status(); RETURN_MM(); @@ -23346,7 +21833,7 @@ static PHP_METHOD(Phalcon_Tag, textField) { ZEPHIR_INIT_VAR(&_1); ZVAL_STRING(&_1, "text"); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 440, &_1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 402, &_1, parameters); zephir_check_call_status(); RETURN_MM(); @@ -23369,7 +21856,7 @@ static PHP_METHOD(Phalcon_Tag, numericField) { ZEPHIR_INIT_VAR(&_1); ZVAL_STRING(&_1, "number"); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 440, &_1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 402, &_1, parameters); zephir_check_call_status(); RETURN_MM(); @@ -23392,7 +21879,7 @@ static PHP_METHOD(Phalcon_Tag, rangeField) { ZEPHIR_INIT_VAR(&_1); ZVAL_STRING(&_1, "range"); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 440, &_1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 402, &_1, parameters); zephir_check_call_status(); RETURN_MM(); @@ -23415,7 +21902,7 @@ static PHP_METHOD(Phalcon_Tag, emailField) { ZEPHIR_INIT_VAR(&_1); ZVAL_STRING(&_1, "email"); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 440, &_1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 402, &_1, parameters); zephir_check_call_status(); RETURN_MM(); @@ -23438,7 +21925,7 @@ static PHP_METHOD(Phalcon_Tag, dateField) { ZEPHIR_INIT_VAR(&_1); ZVAL_STRING(&_1, "date"); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 440, &_1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 402, &_1, parameters); zephir_check_call_status(); RETURN_MM(); @@ -23461,7 +21948,7 @@ static PHP_METHOD(Phalcon_Tag, dateTimeField) { ZEPHIR_INIT_VAR(&_1); ZVAL_STRING(&_1, "datetime"); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 440, &_1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 402, &_1, parameters); zephir_check_call_status(); RETURN_MM(); @@ -23484,7 +21971,7 @@ static PHP_METHOD(Phalcon_Tag, dateTimeLocalField) { ZEPHIR_INIT_VAR(&_1); ZVAL_STRING(&_1, "datetime-local"); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 440, &_1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 402, &_1, parameters); zephir_check_call_status(); RETURN_MM(); @@ -23507,7 +21994,7 @@ static PHP_METHOD(Phalcon_Tag, monthField) { ZEPHIR_INIT_VAR(&_1); ZVAL_STRING(&_1, "month"); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 440, &_1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 402, &_1, parameters); zephir_check_call_status(); RETURN_MM(); @@ -23530,7 +22017,7 @@ static PHP_METHOD(Phalcon_Tag, timeField) { ZEPHIR_INIT_VAR(&_1); ZVAL_STRING(&_1, "time"); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 440, &_1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 402, &_1, parameters); zephir_check_call_status(); RETURN_MM(); @@ -23553,7 +22040,7 @@ static PHP_METHOD(Phalcon_Tag, weekField) { ZEPHIR_INIT_VAR(&_1); ZVAL_STRING(&_1, "week"); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 440, &_1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 402, &_1, parameters); zephir_check_call_status(); RETURN_MM(); @@ -23576,7 +22063,7 @@ static PHP_METHOD(Phalcon_Tag, passwordField) { ZEPHIR_INIT_VAR(&_1); ZVAL_STRING(&_1, "password"); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 440, &_1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 402, &_1, parameters); zephir_check_call_status(); RETURN_MM(); @@ -23599,7 +22086,7 @@ static PHP_METHOD(Phalcon_Tag, hiddenField) { ZEPHIR_INIT_VAR(&_1); ZVAL_STRING(&_1, "hidden"); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 440, &_1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 402, &_1, parameters); zephir_check_call_status(); RETURN_MM(); @@ -23622,7 +22109,7 @@ static PHP_METHOD(Phalcon_Tag, fileField) { ZEPHIR_INIT_VAR(&_1); ZVAL_STRING(&_1, "file"); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 440, &_1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 402, &_1, parameters); zephir_check_call_status(); RETURN_MM(); @@ -23645,7 +22132,7 @@ static PHP_METHOD(Phalcon_Tag, searchField) { ZEPHIR_INIT_VAR(&_1); ZVAL_STRING(&_1, "search"); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 440, &_1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 402, &_1, parameters); zephir_check_call_status(); RETURN_MM(); @@ -23668,7 +22155,7 @@ static PHP_METHOD(Phalcon_Tag, telField) { ZEPHIR_INIT_VAR(&_1); ZVAL_STRING(&_1, "tel"); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 440, &_1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 402, &_1, parameters); zephir_check_call_status(); RETURN_MM(); @@ -23691,7 +22178,7 @@ static PHP_METHOD(Phalcon_Tag, urlField) { ZEPHIR_INIT_VAR(&_1); ZVAL_STRING(&_1, "url"); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 440, &_1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 402, &_1, parameters); zephir_check_call_status(); RETURN_MM(); @@ -23714,7 +22201,7 @@ static PHP_METHOD(Phalcon_Tag, checkField) { ZEPHIR_INIT_VAR(&_1); ZVAL_STRING(&_1, "checkbox"); - ZEPHIR_RETURN_CALL_SELF("_inputfieldchecked", &_0, 441, &_1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfieldchecked", &_0, 403, &_1, parameters); zephir_check_call_status(); RETURN_MM(); @@ -23737,7 +22224,7 @@ static PHP_METHOD(Phalcon_Tag, radioField) { ZEPHIR_INIT_VAR(&_1); ZVAL_STRING(&_1, "radio"); - ZEPHIR_RETURN_CALL_SELF("_inputfieldchecked", &_0, 441, &_1, parameters); + ZEPHIR_RETURN_CALL_SELF("_inputfieldchecked", &_0, 403, &_1, parameters); zephir_check_call_status(); RETURN_MM(); @@ -23762,7 +22249,7 @@ static PHP_METHOD(Phalcon_Tag, imageInput) { ZEPHIR_INIT_VAR(&_1); ZVAL_STRING(&_1, "image"); ZVAL_BOOL(&_2, 1); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 440, &_1, parameters, &_2); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 402, &_1, parameters, &_2); zephir_check_call_status(); RETURN_MM(); @@ -23787,7 +22274,7 @@ static PHP_METHOD(Phalcon_Tag, submitButton) { ZEPHIR_INIT_VAR(&_1); ZVAL_STRING(&_1, "submit"); ZVAL_BOOL(&_2, 1); - ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 440, &_1, parameters, &_2); + ZEPHIR_RETURN_CALL_SELF("_inputfield", &_0, 402, &_1, parameters, &_2); zephir_check_call_status(); RETURN_MM(); @@ -23813,7 +22300,7 @@ static PHP_METHOD(Phalcon_Tag, selectStatic) { } - ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_select_ce, "selectfield", &_0, 213, parameters, data); + ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_select_ce, "selectfield", &_0, 0, parameters, data); zephir_check_call_status(); RETURN_MM(); @@ -23839,7 +22326,7 @@ static PHP_METHOD(Phalcon_Tag, select) { } - ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_select_ce, "selectfield", &_0, 213, parameters, data); + ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_tag_select_ce, "selectfield", &_0, 0, parameters, data); zephir_check_call_status(); RETURN_MM(); @@ -24160,7 +22647,7 @@ static PHP_METHOD(Phalcon_Tag, getTitle) { ZEPHIR_OBS_VAR(&documentPrependTitle); zephir_read_static_property_ce(&documentPrependTitle, phalcon_tag_ce, SL("_documentPrependTitle"), PH_NOISY_CC); if (!(ZEPHIR_IS_EMPTY(&documentPrependTitle))) { - ZEPHIR_CALL_FUNCTION(&tmp$$5, "array_reverse", NULL, 442, &documentPrependTitle); + ZEPHIR_CALL_FUNCTION(&tmp$$5, "array_reverse", NULL, 404, &documentPrependTitle); zephir_check_call_status(); zephir_is_iterable(&tmp$$5, 0, "phalcon/tag.zep", 1228); ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&tmp$$5), _8$$5) @@ -24560,19 +23047,19 @@ static PHP_METHOD(Phalcon_Tag, friendlyTitle) { ZEPHIR_INIT_VAR(&_0); ZVAL_STRING(&_0, "iconv"); - ZEPHIR_CALL_FUNCTION(&_1, "extension_loaded", &_2, 136, &_0); + ZEPHIR_CALL_FUNCTION(&_1, "extension_loaded", &_2, 124, &_0); zephir_check_call_status(); if (zephir_is_true(&_1)) { ZVAL_LONG(&_3$$3, 6); ZEPHIR_INIT_VAR(&_4$$3); ZVAL_STRING(&_4$$3, "en_US.UTF-8"); - ZEPHIR_CALL_FUNCTION(&locale, "setlocale", &_5, 443, &_3$$3, &_4$$3); + ZEPHIR_CALL_FUNCTION(&locale, "setlocale", &_5, 405, &_3$$3, &_4$$3); zephir_check_call_status(); ZEPHIR_INIT_NVAR(&_4$$3); ZVAL_STRING(&_4$$3, "UTF-8"); ZEPHIR_INIT_VAR(&_6$$3); ZVAL_STRING(&_6$$3, "ASCII//TRANSLIT"); - ZEPHIR_CALL_FUNCTION(&_7$$3, "iconv", NULL, 395, &_4$$3, &_6$$3, &text); + ZEPHIR_CALL_FUNCTION(&_7$$3, "iconv", NULL, 358, &_4$$3, &_6$$3, &text); zephir_check_call_status(); zephir_get_strval(&text, &_7$$3); } @@ -24610,7 +23097,7 @@ static PHP_METHOD(Phalcon_Tag, friendlyTitle) { ZVAL_STRING(&_0, "/[^a-zA-Z0-9\\/_|+ -]/"); ZEPHIR_INIT_VAR(&_14); ZVAL_STRING(&_14, ""); - ZEPHIR_CALL_FUNCTION(&friendly, "preg_replace", &_15, 39, &_0, &_14, &text); + ZEPHIR_CALL_FUNCTION(&friendly, "preg_replace", &_15, 33, &_0, &_14, &text); zephir_check_call_status(); if (lowercase) { ZEPHIR_INIT_VAR(&_16$$9); @@ -24619,7 +23106,7 @@ static PHP_METHOD(Phalcon_Tag, friendlyTitle) { } ZEPHIR_INIT_NVAR(&_0); ZVAL_STRING(&_0, "/[\\/_|+ -]+/"); - ZEPHIR_CALL_FUNCTION(&_17, "preg_replace", &_15, 39, &_0, &separator, &friendly); + ZEPHIR_CALL_FUNCTION(&_17, "preg_replace", &_15, 33, &_0, &separator, &friendly); zephir_check_call_status(); ZEPHIR_CPY_WRT(&friendly, &_17); ZEPHIR_INIT_NVAR(&_0); @@ -24627,11 +23114,11 @@ static PHP_METHOD(Phalcon_Tag, friendlyTitle) { ZEPHIR_CPY_WRT(&friendly, &_0); ZEPHIR_INIT_NVAR(&_0); ZVAL_STRING(&_0, "iconv"); - ZEPHIR_CALL_FUNCTION(&_17, "extension_loaded", &_2, 136, &_0); + ZEPHIR_CALL_FUNCTION(&_17, "extension_loaded", &_2, 124, &_0); zephir_check_call_status(); if (zephir_is_true(&_17)) { ZVAL_LONG(&_18$$10, 6); - ZEPHIR_CALL_FUNCTION(NULL, "setlocale", &_5, 443, &_18$$10, &locale); + ZEPHIR_CALL_FUNCTION(NULL, "setlocale", &_5, 405, &_18$$10, &locale); zephir_check_call_status(); } RETURN_CCTOR(friendly); @@ -24933,11 +23420,11 @@ static PHP_METHOD(Phalcon_Text, camelize) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &str_param, &delimiter); - if (unlikely(Z_TYPE_P(str_param) != IS_STRING && Z_TYPE_P(str_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(str_param) != IS_STRING && Z_TYPE_P(str_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'str' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(str_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(str_param) == IS_STRING)) { zephir_get_strval(&str, str_param); } else { ZEPHIR_INIT_VAR(&str); @@ -24969,11 +23456,11 @@ static PHP_METHOD(Phalcon_Text, uncamelize) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &str_param, &delimiter); - if (unlikely(Z_TYPE_P(str_param) != IS_STRING && Z_TYPE_P(str_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(str_param) != IS_STRING && Z_TYPE_P(str_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'str' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(str_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(str_param) == IS_STRING)) { zephir_get_strval(&str, str_param); } else { ZEPHIR_INIT_VAR(&str); @@ -25089,13 +23576,13 @@ static PHP_METHOD(Phalcon_Text, random) { ZVAL_STRING(&_0$$3, "a"); ZEPHIR_INIT_VAR(&_1$$3); ZVAL_STRING(&_1$$3, "z"); - ZEPHIR_CALL_FUNCTION(&_2$$3, "range", &_3, 447, &_0$$3, &_1$$3); + ZEPHIR_CALL_FUNCTION(&_2$$3, "range", &_3, 408, &_0$$3, &_1$$3); zephir_check_call_status(); ZEPHIR_INIT_NVAR(&_0$$3); ZVAL_STRING(&_0$$3, "A"); ZEPHIR_INIT_NVAR(&_1$$3); ZVAL_STRING(&_1$$3, "Z"); - ZEPHIR_CALL_FUNCTION(&_4$$3, "range", &_3, 447, &_0$$3, &_1$$3); + ZEPHIR_CALL_FUNCTION(&_4$$3, "range", &_3, 408, &_0$$3, &_1$$3); zephir_check_call_status(); ZEPHIR_INIT_VAR(&pool); zephir_fast_array_merge(&pool, &_2$$3, &_4$$3 TSRMLS_CC); @@ -25104,13 +23591,13 @@ static PHP_METHOD(Phalcon_Text, random) { if (type == 2) { ZVAL_LONG(&_5$$4, 0); ZVAL_LONG(&_6$$4, 9); - ZEPHIR_CALL_FUNCTION(&_7$$4, "range", &_3, 447, &_5$$4, &_6$$4); + ZEPHIR_CALL_FUNCTION(&_7$$4, "range", &_3, 408, &_5$$4, &_6$$4); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_8$$4); ZVAL_STRING(&_8$$4, "a"); ZEPHIR_INIT_VAR(&_9$$4); ZVAL_STRING(&_9$$4, "f"); - ZEPHIR_CALL_FUNCTION(&_10$$4, "range", &_3, 447, &_8$$4, &_9$$4); + ZEPHIR_CALL_FUNCTION(&_10$$4, "range", &_3, 408, &_8$$4, &_9$$4); zephir_check_call_status(); ZEPHIR_INIT_NVAR(&pool); zephir_fast_array_merge(&pool, &_7$$4, &_10$$4 TSRMLS_CC); @@ -25119,34 +23606,34 @@ static PHP_METHOD(Phalcon_Text, random) { if (type == 3) { ZVAL_LONG(&_11$$5, 0); ZVAL_LONG(&_12$$5, 9); - ZEPHIR_CALL_FUNCTION(&pool, "range", &_3, 447, &_11$$5, &_12$$5); + ZEPHIR_CALL_FUNCTION(&pool, "range", &_3, 408, &_11$$5, &_12$$5); zephir_check_call_status(); break; } if (type == 4) { ZVAL_LONG(&_13$$6, 1); ZVAL_LONG(&_14$$6, 9); - ZEPHIR_CALL_FUNCTION(&pool, "range", &_3, 447, &_13$$6, &_14$$6); + ZEPHIR_CALL_FUNCTION(&pool, "range", &_3, 408, &_13$$6, &_14$$6); zephir_check_call_status(); break; } ZVAL_LONG(&_15$$7, 0); ZVAL_LONG(&_16$$7, 9); - ZEPHIR_CALL_FUNCTION(&_17$$7, "range", &_3, 447, &_15$$7, &_16$$7); + ZEPHIR_CALL_FUNCTION(&_17$$7, "range", &_3, 408, &_15$$7, &_16$$7); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_18$$7); ZVAL_STRING(&_18$$7, "a"); ZEPHIR_INIT_VAR(&_19$$7); ZVAL_STRING(&_19$$7, "z"); - ZEPHIR_CALL_FUNCTION(&_20$$7, "range", &_3, 447, &_18$$7, &_19$$7); + ZEPHIR_CALL_FUNCTION(&_20$$7, "range", &_3, 408, &_18$$7, &_19$$7); zephir_check_call_status(); ZEPHIR_INIT_NVAR(&_18$$7); ZVAL_STRING(&_18$$7, "A"); ZEPHIR_INIT_NVAR(&_19$$7); ZVAL_STRING(&_19$$7, "Z"); - ZEPHIR_CALL_FUNCTION(&_21$$7, "range", &_3, 447, &_18$$7, &_19$$7); + ZEPHIR_CALL_FUNCTION(&_21$$7, "range", &_3, 408, &_18$$7, &_19$$7); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&pool, "array_merge", &_22, 448, &_17$$7, &_20$$7, &_21$$7); + ZEPHIR_CALL_FUNCTION(&pool, "array_merge", &_22, 409, &_17$$7, &_20$$7, &_21$$7); zephir_check_call_status(); break; } while(0); @@ -25234,11 +23721,11 @@ static PHP_METHOD(Phalcon_Text, lower) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &str_param, &encoding_param); - if (unlikely(Z_TYPE_P(str_param) != IS_STRING && Z_TYPE_P(str_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(str_param) != IS_STRING && Z_TYPE_P(str_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'str' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(str_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(str_param) == IS_STRING)) { zephir_get_strval(&str, str_param); } else { ZEPHIR_INIT_VAR(&str); @@ -25248,11 +23735,11 @@ static PHP_METHOD(Phalcon_Text, lower) { ZEPHIR_INIT_VAR(&encoding); ZVAL_STRING(&encoding, "UTF-8"); } else { - if (unlikely(Z_TYPE_P(encoding_param) != IS_STRING && Z_TYPE_P(encoding_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(encoding_param) != IS_STRING && Z_TYPE_P(encoding_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'encoding' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(encoding_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(encoding_param) == IS_STRING)) { zephir_get_strval(&encoding, encoding_param); } else { ZEPHIR_INIT_VAR(&encoding); @@ -25262,7 +23749,7 @@ static PHP_METHOD(Phalcon_Text, lower) { if ((zephir_function_exists_ex(SL("mb_strtolower") TSRMLS_CC) == SUCCESS)) { - ZEPHIR_RETURN_CALL_FUNCTION("mb_strtolower", NULL, 201, &str, &encoding); + ZEPHIR_RETURN_CALL_FUNCTION("mb_strtolower", NULL, 183, &str, &encoding); zephir_check_call_status(); RETURN_MM(); } @@ -25284,11 +23771,11 @@ static PHP_METHOD(Phalcon_Text, upper) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &str_param, &encoding_param); - if (unlikely(Z_TYPE_P(str_param) != IS_STRING && Z_TYPE_P(str_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(str_param) != IS_STRING && Z_TYPE_P(str_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'str' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(str_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(str_param) == IS_STRING)) { zephir_get_strval(&str, str_param); } else { ZEPHIR_INIT_VAR(&str); @@ -25298,11 +23785,11 @@ static PHP_METHOD(Phalcon_Text, upper) { ZEPHIR_INIT_VAR(&encoding); ZVAL_STRING(&encoding, "UTF-8"); } else { - if (unlikely(Z_TYPE_P(encoding_param) != IS_STRING && Z_TYPE_P(encoding_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(encoding_param) != IS_STRING && Z_TYPE_P(encoding_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'encoding' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(encoding_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(encoding_param) == IS_STRING)) { zephir_get_strval(&encoding, encoding_param); } else { ZEPHIR_INIT_VAR(&encoding); @@ -25312,7 +23799,7 @@ static PHP_METHOD(Phalcon_Text, upper) { if ((zephir_function_exists_ex(SL("mb_strtoupper") TSRMLS_CC) == SUCCESS)) { - ZEPHIR_RETURN_CALL_FUNCTION("mb_strtoupper", NULL, 202, &str, &encoding); + ZEPHIR_RETURN_CALL_FUNCTION("mb_strtoupper", NULL, 184, &str, &encoding); zephir_check_call_status(); RETURN_MM(); } @@ -25342,7 +23829,7 @@ static PHP_METHOD(Phalcon_Text, reduceSlashes) { ZVAL_STRING(&_0, "#(? 3) { + ZEPHIR_INIT_VAR(&_3$$3); + zephir_get_args(&_3$$3); ZVAL_LONG(&_4$$3, 3); - ZEPHIR_CALL_FUNCTION(&_5$$3, "array_slice", NULL, 396, &_3$$3, &_4$$3); + ZEPHIR_CALL_FUNCTION(&_5$$3, "array_slice", NULL, 359, &_3$$3, &_4$$3); zephir_check_call_status(); zephir_is_iterable(&_5$$3, 0, "phalcon/text.zep", 256); ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&_5$$3), _6$$3) @@ -25450,11 +23935,11 @@ static PHP_METHOD(Phalcon_Text, dynamic) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 3, &text_param, &leftDelimiter_param, &rightDelimiter_param, &separator_param); - if (unlikely(Z_TYPE_P(text_param) != IS_STRING && Z_TYPE_P(text_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(text_param) != IS_STRING && Z_TYPE_P(text_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'text' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(text_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(text_param) == IS_STRING)) { zephir_get_strval(&text, text_param); } else { ZEPHIR_INIT_VAR(&text); @@ -25464,11 +23949,11 @@ static PHP_METHOD(Phalcon_Text, dynamic) { ZEPHIR_INIT_VAR(&leftDelimiter); ZVAL_STRING(&leftDelimiter, "{"); } else { - if (unlikely(Z_TYPE_P(leftDelimiter_param) != IS_STRING && Z_TYPE_P(leftDelimiter_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(leftDelimiter_param) != IS_STRING && Z_TYPE_P(leftDelimiter_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'leftDelimiter' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(leftDelimiter_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(leftDelimiter_param) == IS_STRING)) { zephir_get_strval(&leftDelimiter, leftDelimiter_param); } else { ZEPHIR_INIT_VAR(&leftDelimiter); @@ -25479,11 +23964,11 @@ static PHP_METHOD(Phalcon_Text, dynamic) { ZEPHIR_INIT_VAR(&rightDelimiter); ZVAL_STRING(&rightDelimiter, "}"); } else { - if (unlikely(Z_TYPE_P(rightDelimiter_param) != IS_STRING && Z_TYPE_P(rightDelimiter_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(rightDelimiter_param) != IS_STRING && Z_TYPE_P(rightDelimiter_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'rightDelimiter' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(rightDelimiter_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(rightDelimiter_param) == IS_STRING)) { zephir_get_strval(&rightDelimiter, rightDelimiter_param); } else { ZEPHIR_INIT_VAR(&rightDelimiter); @@ -25494,11 +23979,11 @@ static PHP_METHOD(Phalcon_Text, dynamic) { ZEPHIR_INIT_VAR(&separator); ZVAL_STRING(&separator, "|"); } else { - if (unlikely(Z_TYPE_P(separator_param) != IS_STRING && Z_TYPE_P(separator_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(separator_param) != IS_STRING && Z_TYPE_P(separator_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'separator' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(separator_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(separator_param) == IS_STRING)) { zephir_get_strval(&separator, separator_param); } else { ZEPHIR_INIT_VAR(&separator); @@ -25507,24 +23992,24 @@ static PHP_METHOD(Phalcon_Text, dynamic) { } - ZEPHIR_CALL_FUNCTION(&_0, "substr_count", &_1, 451, &text, &leftDelimiter); + ZEPHIR_CALL_FUNCTION(&_0, "substr_count", &_1, 410, &text, &leftDelimiter); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_2, "substr_count", &_1, 451, &text, &rightDelimiter); + ZEPHIR_CALL_FUNCTION(&_2, "substr_count", &_1, 410, &text, &rightDelimiter); zephir_check_call_status(); if (!ZEPHIR_IS_IDENTICAL(&_0, &_2)) { ZEPHIR_INIT_VAR(&_3$$3); object_init_ex(&_3$$3, spl_ce_RuntimeException); ZEPHIR_INIT_VAR(&_4$$3); ZEPHIR_CONCAT_SVS(&_4$$3, "Syntax error in string \"", &text, "\""); - ZEPHIR_CALL_METHOD(NULL, &_3$$3, "__construct", NULL, 452, &_4$$3); + ZEPHIR_CALL_METHOD(NULL, &_3$$3, "__construct", NULL, 411, &_4$$3); zephir_check_call_status(); zephir_throw_exception_debug(&_3$$3, "phalcon/text.zep", 283 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } - ZEPHIR_CALL_FUNCTION(&ldS, "preg_quote", &_5, 453, &leftDelimiter); + ZEPHIR_CALL_FUNCTION(&ldS, "preg_quote", &_5, 412, &leftDelimiter); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&rdS, "preg_quote", &_5, 453, &rightDelimiter); + ZEPHIR_CALL_FUNCTION(&rdS, "preg_quote", &_5, 412, &rightDelimiter); zephir_check_call_status(); ZEPHIR_INIT_VAR(&pattern); ZEPHIR_CONCAT_SVSVVSVS(&pattern, "/", &ldS, "([^", &ldS, &rdS, "]+)", &rdS, "/"); @@ -25532,7 +24017,7 @@ static PHP_METHOD(Phalcon_Text, dynamic) { array_init(&matches); ZVAL_LONG(&_6, 2); ZEPHIR_MAKE_REF(&matches); - ZEPHIR_CALL_FUNCTION(&_7, "preg_match_all", NULL, 38, &pattern, &text, &matches, &_6); + ZEPHIR_CALL_FUNCTION(&_7, "preg_match_all", NULL, 32, &pattern, &text, &matches, &_6); ZEPHIR_UNREF(&matches); zephir_check_call_status(); if (!(zephir_is_true(&_7))) { @@ -25555,16 +24040,16 @@ static PHP_METHOD(Phalcon_Text, dynamic) { ZEPHIR_INIT_NVAR(&words); zephir_fast_explode(&words, &separator, &_10$$6, LONG_MAX TSRMLS_CC); ZEPHIR_OBS_NVAR(&word); - ZEPHIR_CALL_FUNCTION(&_11$$6, "array_rand", &_12, 454, &words); + ZEPHIR_CALL_FUNCTION(&_11$$6, "array_rand", &_12, 413, &words); zephir_check_call_status(); zephir_array_fetch(&word, &words, &_11$$6, PH_NOISY, "phalcon/text.zep", 302 TSRMLS_CC); zephir_array_fetch_long(&_13$$6, &match, 0, PH_NOISY | PH_READONLY, "phalcon/text.zep", 303 TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&sub, "preg_quote", &_5, 453, &_13$$6, &separator); + ZEPHIR_CALL_FUNCTION(&sub, "preg_quote", &_5, 412, &_13$$6, &separator); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_14$$6); ZEPHIR_CONCAT_SVS(&_14$$6, "/", &sub, "/"); ZVAL_LONG(&_15$$6, 1); - ZEPHIR_CALL_FUNCTION(&_16$$6, "preg_replace", &_17, 39, &_14$$6, &word, &text, &_15$$6); + ZEPHIR_CALL_FUNCTION(&_16$$6, "preg_replace", &_17, 33, &_14$$6, &word, &text, &_15$$6); zephir_check_call_status(); zephir_get_strval(&text, &_16$$6); } ZEND_HASH_FOREACH_END(); @@ -25589,11 +24074,11 @@ static PHP_METHOD(Phalcon_Text, underscore) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &text_param); - if (unlikely(Z_TYPE_P(text_param) != IS_STRING && Z_TYPE_P(text_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(text_param) != IS_STRING && Z_TYPE_P(text_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'text' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(text_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(text_param) == IS_STRING)) { zephir_get_strval(&text, text_param); } else { ZEPHIR_INIT_VAR(&text); @@ -25607,7 +24092,7 @@ static PHP_METHOD(Phalcon_Text, underscore) { ZVAL_STRING(&_1, "#\\s+#"); ZEPHIR_INIT_VAR(&_2); ZVAL_STRING(&_2, "_"); - ZEPHIR_RETURN_CALL_FUNCTION("preg_replace", NULL, 39, &_1, &_2, &_0); + ZEPHIR_RETURN_CALL_FUNCTION("preg_replace", NULL, 33, &_1, &_2, &_0); zephir_check_call_status(); RETURN_MM(); @@ -25628,11 +24113,11 @@ static PHP_METHOD(Phalcon_Text, humanize) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &text_param); - if (unlikely(Z_TYPE_P(text_param) != IS_STRING && Z_TYPE_P(text_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(text_param) != IS_STRING && Z_TYPE_P(text_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'text' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(text_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(text_param) == IS_STRING)) { zephir_get_strval(&text, text_param); } else { ZEPHIR_INIT_VAR(&text); @@ -25646,7 +24131,7 @@ static PHP_METHOD(Phalcon_Text, humanize) { ZVAL_STRING(&_1, "#[_-]+#"); ZEPHIR_INIT_VAR(&_2); ZVAL_STRING(&_2, " "); - ZEPHIR_RETURN_CALL_FUNCTION("preg_replace", NULL, 39, &_1, &_2, &_0); + ZEPHIR_RETURN_CALL_FUNCTION("preg_replace", NULL, 33, &_1, &_2, &_0); zephir_check_call_status(); RETURN_MM(); @@ -25762,13 +24247,13 @@ static PHP_METHOD(Phalcon_Validation, __construct) { ZEPHIR_INIT_VAR(&_0$$3); ZEPHIR_INIT_NVAR(&_0$$3); zephir_create_closure_ex(&_0$$3, NULL, phalcon_0__closure_ce, SL("__invoke")); - ZEPHIR_CALL_FUNCTION(&_1$$3, "array_filter", &_2, 464, &validators, &_0$$3); + ZEPHIR_CALL_FUNCTION(&_1$$3, "array_filter", &_2, 422, &validators, &_0$$3); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_validators"), &_1$$3); ZEPHIR_INIT_VAR(&_3$$3); ZEPHIR_INIT_NVAR(&_3$$3); zephir_create_closure_ex(&_3$$3, NULL, phalcon_1__closure_ce, SL("__invoke")); - ZEPHIR_CALL_FUNCTION(&_4$$3, "array_filter", &_2, 464, &validators, &_3$$3); + ZEPHIR_CALL_FUNCTION(&_4$$3, "array_filter", &_2, 422, &validators, &_3$$3); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_combinedFieldsValidators"), &_4$$3); } @@ -25834,7 +24319,7 @@ static PHP_METHOD(Phalcon_Validation, validate) { zephir_update_property_zval(this_ptr, SL("_values"), &__$null); ZEPHIR_INIT_VAR(&messages); object_init_ex(&messages, phalcon_validation_message_group_ce); - ZEPHIR_CALL_METHOD(NULL, &messages, "__construct", NULL, 3); + ZEPHIR_CALL_METHOD(NULL, &messages, "__construct", NULL, 2); zephir_check_call_status(); if (Z_TYPE_P(entity) != IS_NULL) { ZEPHIR_CALL_METHOD(NULL, this_ptr, "setentity", NULL, 0, entity); @@ -26220,11 +24705,11 @@ static PHP_METHOD(Phalcon_Validation, getDefaultMessage) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &type_param); - if (unlikely(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'type' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(type_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(type_param) == IS_STRING)) { zephir_get_strval(&type, type_param); } else { ZEPHIR_INIT_VAR(&type); @@ -26315,10 +24800,10 @@ static PHP_METHOD(Phalcon_Validation, appendMessage) { if (Z_TYPE_P(&messages) != IS_OBJECT) { ZEPHIR_INIT_NVAR(&messages); object_init_ex(&messages, phalcon_validation_message_group_ce); - ZEPHIR_CALL_METHOD(NULL, &messages, "__construct", NULL, 3); + ZEPHIR_CALL_METHOD(NULL, &messages, "__construct", NULL, 2); zephir_check_call_status(); } - ZEPHIR_CALL_METHOD(NULL, &messages, "appendmessage", NULL, 465, message); + ZEPHIR_CALL_METHOD(NULL, &messages, "appendmessage", NULL, 423, message); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_messages"), &messages); RETURN_THIS(); @@ -26453,7 +24938,7 @@ static PHP_METHOD(Phalcon_Validation, getValue) { ZEPHIR_CALL_METHOD(&dependencyInjector, this_ptr, "getdi", NULL, 0); zephir_check_call_status(); if (Z_TYPE_P(&dependencyInjector) != IS_OBJECT) { - ZEPHIR_CALL_CE_STATIC(&dependencyInjector, phalcon_di_ce, "getdefault", &_1, 1); + ZEPHIR_CALL_CE_STATIC(&dependencyInjector, phalcon_di_ce, "getdefault", &_1, 0); zephir_check_call_status(); if (Z_TYPE_P(&dependencyInjector) != IS_OBJECT) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_validation_exception_ce, "A dependency injector is required to obtain the 'filter' service", "phalcon/validation.zep", 536); @@ -26482,7 +24967,7 @@ static PHP_METHOD(Phalcon_Validation, getValue) { ZEPHIR_CALL_METHOD(NULL, &entity, "writeattribute", NULL, 0, &field, &value); zephir_check_call_status(); } else { - ZEPHIR_CALL_FUNCTION(&_4$$28, "property_exists", NULL, 324, &entity, &field); + ZEPHIR_CALL_FUNCTION(&_4$$28, "property_exists", NULL, 293, &entity, &field); zephir_check_call_status(); if (zephir_is_true(&_4$$28)) { zephir_update_property_zval_zval(&entity, &field, &value TSRMLS_CC); @@ -26528,7 +25013,7 @@ static PHP_METHOD(Phalcon_Validation, preChecking) { { ZEPHIR_INIT_NVAR(&singleField); ZVAL_COPY(&singleField, _0$$3); - ZEPHIR_CALL_METHOD(&result, this_ptr, "prechecking", &_1, 466, &singleField, validator); + ZEPHIR_CALL_METHOD(&result, this_ptr, "prechecking", &_1, 424, &singleField, validator); zephir_check_call_status(); if (zephir_is_true(&result)) { RETURN_CCTOR(result); @@ -26711,7 +25196,7 @@ static PHP_METHOD(Phalcon_Version, _getVersion) { ZVAL_LONG(&_0, 1); zephir_array_fast_append(return_value, &_0); ZEPHIR_INIT_NVAR(&_0); - ZVAL_LONG(&_0, 1); + ZVAL_LONG(&_0, 2); zephir_array_fast_append(return_value, &_0); ZEPHIR_INIT_NVAR(&_0); ZVAL_LONG(&_0, 4); @@ -26794,7 +25279,7 @@ static PHP_METHOD(Phalcon_Version, get) { zephir_array_fetch_long(&specialNumber, &version, 4, PH_NOISY, "phalcon/version.zep", 143 TSRMLS_CC); ZEPHIR_INIT_VAR(&result); ZEPHIR_CONCAT_VSVSVS(&result, &major, ".", &medium, ".", &minor, " "); - ZEPHIR_CALL_STATIC(&suffix, "_getspecial", &_0, 475, &special); + ZEPHIR_CALL_STATIC(&suffix, "_getspecial", &_0, 433, &special); zephir_check_call_status(); if (!ZEPHIR_IS_STRING(&suffix, "")) { ZEPHIR_INIT_VAR(&_1$$3); @@ -26839,11 +25324,11 @@ static PHP_METHOD(Phalcon_Version, getId) { zephir_array_fetch_long(&specialNumber, &version, 4, PH_NOISY, "phalcon/version.zep", 173 TSRMLS_CC); ZEPHIR_INIT_VAR(&_0); ZVAL_STRING(&_0, "%02s"); - ZEPHIR_CALL_FUNCTION(&_1, "sprintf", &_2, 194, &_0, &medium); + ZEPHIR_CALL_FUNCTION(&_1, "sprintf", &_2, 176, &_0, &medium); zephir_check_call_status(); ZEPHIR_INIT_NVAR(&_0); ZVAL_STRING(&_0, "%02s"); - ZEPHIR_CALL_FUNCTION(&_3, "sprintf", &_2, 194, &_0, &minor); + ZEPHIR_CALL_FUNCTION(&_3, "sprintf", &_2, 176, &_0, &minor); zephir_check_call_status(); ZEPHIR_CONCAT_VVVVV(return_value, &major, &_1, &_3, &special, &specialNumber); RETURN_MM(); @@ -26877,7 +25362,7 @@ static PHP_METHOD(Phalcon_Version, getPart) { } if (part == 3) { zephir_array_fetch_long(&_1$$4, &version, 3, PH_NOISY | PH_READONLY, "phalcon/version.zep", 204 TSRMLS_CC); - ZEPHIR_CALL_STATIC(&result, "_getspecial", &_0, 475, &_1$$4); + ZEPHIR_CALL_STATIC(&result, "_getspecial", &_0, 433, &_1$$4); zephir_check_call_status(); break; } @@ -27137,11 +25622,11 @@ static PHP_METHOD(Phalcon_Acl_Resource, __construct) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &name_param, &description_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(&name, name_param); } else { ZEPHIR_INIT_VAR(&name); @@ -27273,11 +25758,11 @@ static PHP_METHOD(Phalcon_Acl_Role, __construct) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &name_param, &description_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(&name, name_param); } else { ZEPHIR_INIT_VAR(&name); @@ -27443,7 +25928,7 @@ static PHP_METHOD(Phalcon_Acl_Adapter_Memory, addRole) { ZEPHIR_CPY_WRT(&roleName, role); ZEPHIR_INIT_NVAR(&roleObject); object_init_ex(&roleObject, phalcon_acl_role_ce); - ZEPHIR_CALL_METHOD(NULL, &roleObject, "__construct", NULL, 79, role); + ZEPHIR_CALL_METHOD(NULL, &roleObject, "__construct", NULL, 71, role); zephir_check_call_status(); } else { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_acl_exception_ce, "Role must be either an string or implement RoleInterface", "phalcon/acl/adapter/memory.zep", 201); @@ -27501,7 +25986,7 @@ static PHP_METHOD(Phalcon_Acl_Adapter_Memory, addInherit) { object_init_ex(&_0$$3, phalcon_acl_exception_ce); ZEPHIR_INIT_VAR(&_1$$3); ZEPHIR_CONCAT_SVS(&_1$$3, "Role '", &roleName, "' does not exist in the role list"); - ZEPHIR_CALL_METHOD(NULL, &_0$$3, "__construct", NULL, 9, &_1$$3); + ZEPHIR_CALL_METHOD(NULL, &_0$$3, "__construct", NULL, 4, &_1$$3); zephir_check_call_status(); zephir_throw_exception_debug(&_0$$3, "phalcon/acl/adapter/memory.zep", 227 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -27526,7 +26011,7 @@ static PHP_METHOD(Phalcon_Acl_Adapter_Memory, addInherit) { { ZEPHIR_INIT_NVAR(&deepInheritName); ZVAL_COPY(&deepInheritName, _6$$6); - ZEPHIR_CALL_METHOD(NULL, this_ptr, "addinherit", &_7, 80, &roleName, &deepInheritName); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "addinherit", &_7, 72, &roleName, &deepInheritName); zephir_check_call_status(); } ZEND_HASH_FOREACH_END(); ZEPHIR_INIT_NVAR(&deepInheritName); @@ -27536,7 +26021,7 @@ static PHP_METHOD(Phalcon_Acl_Adapter_Memory, addInherit) { object_init_ex(&_8$$8, phalcon_acl_exception_ce); ZEPHIR_INIT_VAR(&_9$$8); ZEPHIR_CONCAT_SVS(&_9$$8, "Role '", &roleInheritName, "' (to inherit) does not exist in the role list"); - ZEPHIR_CALL_METHOD(NULL, &_8$$8, "__construct", NULL, 9, &_9$$8); + ZEPHIR_CALL_METHOD(NULL, &_8$$8, "__construct", NULL, 4, &_9$$8); zephir_check_call_status(); zephir_throw_exception_debug(&_8$$8, "phalcon/acl/adapter/memory.zep", 249 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -27625,7 +26110,7 @@ static PHP_METHOD(Phalcon_Acl_Adapter_Memory, addResource) { ZEPHIR_CPY_WRT(&resourceName, resourceValue); ZEPHIR_INIT_NVAR(&resourceObject); object_init_ex(&resourceObject, phalcon_acl_resource_ce); - ZEPHIR_CALL_METHOD(NULL, &resourceObject, "__construct", NULL, 81, &resourceName); + ZEPHIR_CALL_METHOD(NULL, &resourceObject, "__construct", NULL, 73, &resourceName); zephir_check_call_status(); } zephir_read_property(&_1, this_ptr, SL("_resourcesNames"), PH_NOISY_CC | PH_READONLY); @@ -27671,7 +26156,7 @@ static PHP_METHOD(Phalcon_Acl_Adapter_Memory, addResourceAccess) { object_init_ex(&_1$$3, phalcon_acl_exception_ce); ZEPHIR_INIT_VAR(&_2$$3); ZEPHIR_CONCAT_SVS(&_2$$3, "Resource '", &resourceName, "' does not exist in ACL"); - ZEPHIR_CALL_METHOD(NULL, &_1$$3, "__construct", NULL, 9, &_2$$3); + ZEPHIR_CALL_METHOD(NULL, &_1$$3, "__construct", NULL, 4, &_2$$3); zephir_check_call_status(); zephir_throw_exception_debug(&_1$$3, "phalcon/acl/adapter/memory.zep", 348 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -27811,7 +26296,7 @@ static PHP_METHOD(Phalcon_Acl_Adapter_Memory, _allowOrDeny) { object_init_ex(&_1$$3, phalcon_acl_exception_ce); ZEPHIR_INIT_VAR(&_2$$3); ZEPHIR_CONCAT_SVS(&_2$$3, "Role '", &roleName, "' does not exist in ACL"); - ZEPHIR_CALL_METHOD(NULL, &_1$$3, "__construct", NULL, 9, &_2$$3); + ZEPHIR_CALL_METHOD(NULL, &_1$$3, "__construct", NULL, 4, &_2$$3); zephir_check_call_status(); zephir_throw_exception_debug(&_1$$3, "phalcon/acl/adapter/memory.zep", 407 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -27823,7 +26308,7 @@ static PHP_METHOD(Phalcon_Acl_Adapter_Memory, _allowOrDeny) { object_init_ex(&_4$$4, phalcon_acl_exception_ce); ZEPHIR_INIT_VAR(&_5$$4); ZEPHIR_CONCAT_SVS(&_5$$4, "Resource '", &resourceName, "' does not exist in ACL"); - ZEPHIR_CALL_METHOD(NULL, &_4$$4, "__construct", NULL, 9, &_5$$4); + ZEPHIR_CALL_METHOD(NULL, &_4$$4, "__construct", NULL, 4, &_5$$4); zephir_check_call_status(); zephir_throw_exception_debug(&_4$$4, "phalcon/acl/adapter/memory.zep", 411 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -27844,7 +26329,7 @@ static PHP_METHOD(Phalcon_Acl_Adapter_Memory, _allowOrDeny) { object_init_ex(&_7$$7, phalcon_acl_exception_ce); ZEPHIR_INIT_LNVAR(_8$$7); ZEPHIR_CONCAT_SVSVS(&_8$$7, "Access '", &accessName, "' does not exist in resource '", &resourceName, "'"); - ZEPHIR_CALL_METHOD(NULL, &_7$$7, "__construct", NULL, 9, &_8$$7); + ZEPHIR_CALL_METHOD(NULL, &_7$$7, "__construct", NULL, 4, &_8$$7); zephir_check_call_status(); zephir_throw_exception_debug(&_7$$7, "phalcon/acl/adapter/memory.zep", 421 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -27874,7 +26359,7 @@ static PHP_METHOD(Phalcon_Acl_Adapter_Memory, _allowOrDeny) { object_init_ex(&_10$$12, phalcon_acl_exception_ce); ZEPHIR_INIT_VAR(&_11$$12); ZEPHIR_CONCAT_SVSVS(&_11$$12, "Access '", access, "' does not exist in resource '", &resourceName, "'"); - ZEPHIR_CALL_METHOD(NULL, &_10$$12, "__construct", NULL, 9, &_11$$12); + ZEPHIR_CALL_METHOD(NULL, &_10$$12, "__construct", NULL, 4, &_11$$12); zephir_check_call_status(); zephir_throw_exception_debug(&_10$$12, "phalcon/acl/adapter/memory.zep", 439 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -28257,9 +26742,9 @@ static PHP_METHOD(Phalcon_Acl_Adapter_Memory, isAllowed) { if (Z_TYPE_P(&funcAccess) != IS_NULL) { ZEPHIR_INIT_VAR(&reflectionFunction); object_init_ex(&reflectionFunction, zephir_get_internal_ce(SL("reflectionfunction"))); - ZEPHIR_CALL_METHOD(NULL, &reflectionFunction, "__construct", NULL, 82, &funcAccess); + ZEPHIR_CALL_METHOD(NULL, &reflectionFunction, "__construct", NULL, 74, &funcAccess); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&reflectionParameters, &reflectionFunction, "getparameters", NULL, 83); + ZEPHIR_CALL_METHOD(&reflectionParameters, &reflectionFunction, "getparameters", NULL, 75); zephir_check_call_status(); ZEPHIR_INIT_VAR(¶meterNumber); ZVAL_LONG(¶meterNumber, zephir_fast_count_int(&reflectionParameters TSRMLS_CC)); @@ -28275,7 +26760,7 @@ static PHP_METHOD(Phalcon_Acl_Adapter_Memory, isAllowed) { } ZEPHIR_INIT_VAR(¶metersForFunction); array_init(¶metersForFunction); - ZEPHIR_CALL_METHOD(&numberOfRequiredParameters, &reflectionFunction, "getnumberofrequiredparameters", NULL, 84); + ZEPHIR_CALL_METHOD(&numberOfRequiredParameters, &reflectionFunction, "getnumberofrequiredparameters", NULL, 76); zephir_check_call_status(); ZEPHIR_CPY_WRT(&userParametersSizeShouldBe, ¶meterNumber); zephir_is_iterable(&reflectionParameters, 0, "phalcon/acl/adapter/memory.zep", 746); @@ -28335,7 +26820,7 @@ static PHP_METHOD(Phalcon_Acl_Adapter_Memory, isAllowed) { zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_27$$40); ZEPHIR_CONCAT_SVSVSVSVSVS(&_27$$40, "Your passed parameter doesn't have the same class as the parameter in defined function when check ", roleName, " can ", &access, " ", resourceName, ". Class passed: ", &_24$$40, " , Class in defined function: ", &_26$$40, "."); - ZEPHIR_CALL_METHOD(NULL, &_23$$40, "__construct", &_28, 9, &_27$$40); + ZEPHIR_CALL_METHOD(NULL, &_23$$40, "__construct", &_28, 4, &_27$$40); zephir_check_call_status(); zephir_throw_exception_debug(&_23$$40, "phalcon/acl/adapter/memory.zep", 736 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -28352,14 +26837,14 @@ static PHP_METHOD(Phalcon_Acl_Adapter_Memory, isAllowed) { ZEPHIR_INIT_VAR(&_30$$42); ZEPHIR_CONCAT_SVSVSVS(&_30$$42, "Number of parameters in array is higher than the number of parameters in defined function when check ", roleName, " can ", &access, " ", resourceName, ". Remember that more parameters than defined in function will be ignored."); ZVAL_LONG(&_31$$42, 512); - ZEPHIR_CALL_FUNCTION(NULL, "trigger_error", &_32, 2, &_30$$42, &_31$$42); + ZEPHIR_CALL_FUNCTION(NULL, "trigger_error", &_32, 1, &_30$$42, &_31$$42); zephir_check_call_status(); } if (zephir_fast_count_int(¶metersForFunction TSRMLS_CC) == 0) { if (ZEPHIR_GT_LONG(&numberOfRequiredParameters, 0)) { ZEPHIR_INIT_VAR(&_33$$44); ZEPHIR_CONCAT_SVSVSVS(&_33$$44, "You didn't provide any parameters when check ", roleName, " can ", &access, " ", resourceName, ". We will use default action when no arguments."); - ZEPHIR_CALL_FUNCTION(NULL, "trigger_error", &_32, 2, &_33$$44); + ZEPHIR_CALL_FUNCTION(NULL, "trigger_error", &_32, 1, &_33$$44); zephir_check_call_status(); _34$$44 = ZEPHIR_IS_LONG(&haveAccess, 1); if (_34$$44) { @@ -28391,7 +26876,7 @@ static PHP_METHOD(Phalcon_Acl_Adapter_Memory, isAllowed) { object_init_ex(&_40$$34, phalcon_acl_exception_ce); ZEPHIR_INIT_VAR(&_41$$34); ZEPHIR_CONCAT_SVSVSV(&_41$$34, "You didn't provide all necessary parameters for defined function when check ", roleName, " can ", &access, " ", resourceName); - ZEPHIR_CALL_METHOD(NULL, &_40$$34, "__construct", &_28, 9, &_41$$34); + ZEPHIR_CALL_METHOD(NULL, &_40$$34, "__construct", &_28, 4, &_41$$34); zephir_check_call_status(); zephir_throw_exception_debug(&_40$$34, "phalcon/acl/adapter/memory.zep", 775 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -28559,7 +27044,7 @@ static PHP_METHOD(Phalcon_Annotations_Adapter, get) { if (Z_TYPE_P(&parsedAnnotations) == IS_ARRAY) { ZEPHIR_INIT_NVAR(&classAnnotations); object_init_ex(&classAnnotations, phalcon_annotations_reflection_ce); - ZEPHIR_CALL_METHOD(NULL, &classAnnotations, "__construct", NULL, 15, &parsedAnnotations); + ZEPHIR_CALL_METHOD(NULL, &classAnnotations, "__construct", NULL, 10, &parsedAnnotations); zephir_check_call_status(); zephir_update_property_array(this_ptr, SL("_annotations"), &realClassName, &classAnnotations TSRMLS_CC); ZEPHIR_CALL_METHOD(NULL, this_ptr, "write", NULL, 0, &realClassName, &classAnnotations); @@ -28640,7 +27125,7 @@ static PHP_METHOD(Phalcon_Annotations_Adapter, getMethod) { } ZEPHIR_INIT_NVAR(&method); ZVAL_COPY(&method, _0$$4); - ZEPHIR_CALL_FUNCTION(&_3$$5, "strcasecmp", &_4, 16, &methodKey, &methodName); + ZEPHIR_CALL_FUNCTION(&_3$$5, "strcasecmp", &_4, 11, &methodKey, &methodName); zephir_check_call_status(); if (!(zephir_is_true(&_3$$5))) { RETURN_CCTOR(method); @@ -28651,7 +27136,7 @@ static PHP_METHOD(Phalcon_Annotations_Adapter, getMethod) { } } object_init_ex(return_value, phalcon_annotations_collection_ce); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 17); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 12); zephir_check_call_status(); RETURN_MM(); @@ -28717,7 +27202,7 @@ static PHP_METHOD(Phalcon_Annotations_Adapter, getProperty) { } } object_init_ex(return_value, phalcon_annotations_collection_ce); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 17); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 12); zephir_check_call_status(); RETURN_MM(); @@ -28898,7 +27383,7 @@ static PHP_METHOD(Phalcon_Annotations_Annotation, getExpression) { ZEPHIR_INIT_NVAR(&item); ZVAL_COPY(&item, _1$$7); zephir_array_fetch_string(&_2$$8, &item, SL("expr"), PH_NOISY | PH_READONLY, "phalcon/annotations/annotation.zep", 121 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&resolvedItem, this_ptr, "getexpression", &_3, 89, &_2$$8); + ZEPHIR_CALL_METHOD(&resolvedItem, this_ptr, "getexpression", &_3, 81, &_2$$8); zephir_check_call_status(); ZEPHIR_OBS_NVAR(&name); if (zephir_array_isset_string_fetch(&name, &item, SL("name"), 0)) { @@ -28912,7 +27397,7 @@ static PHP_METHOD(Phalcon_Annotations_Annotation, getExpression) { } if (ZEPHIR_IS_LONG(&type, 300)) { object_init_ex(return_value, phalcon_annotations_annotation_ce); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 90, &expr); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 82, &expr); zephir_check_call_status(); RETURN_MM(); } @@ -28920,7 +27405,7 @@ static PHP_METHOD(Phalcon_Annotations_Annotation, getExpression) { object_init_ex(&_4$$12, phalcon_annotations_exception_ce); ZEPHIR_INIT_VAR(&_5$$12); ZEPHIR_CONCAT_SVS(&_5$$12, "The expression ", &type, " is unknown"); - ZEPHIR_CALL_METHOD(NULL, &_4$$12, "__construct", NULL, 9, &_5$$12); + ZEPHIR_CALL_METHOD(NULL, &_4$$12, "__construct", NULL, 4, &_5$$12); zephir_check_call_status(); zephir_throw_exception_debug(&_4$$12, "phalcon/annotations/annotation.zep", 134 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -29012,11 +27497,11 @@ static PHP_METHOD(Phalcon_Annotations_Annotation, getNamedArgument) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(&name, name_param); } else { ZEPHIR_INIT_VAR(&name); @@ -29044,11 +27529,11 @@ static PHP_METHOD(Phalcon_Annotations_Annotation, getNamedParameter) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(&name, name_param); } else { ZEPHIR_INIT_VAR(&name); @@ -29127,7 +27612,7 @@ static PHP_METHOD(Phalcon_Annotations_Collection, __construct) { ZVAL_COPY(&annotationData, _1$$4); ZEPHIR_INIT_NVAR(&_2$$5); object_init_ex(&_2$$5, phalcon_annotations_annotation_ce); - ZEPHIR_CALL_METHOD(NULL, &_2$$5, "__construct", &_3, 90, &annotationData); + ZEPHIR_CALL_METHOD(NULL, &_2$$5, "__construct", &_3, 82, &annotationData); zephir_check_call_status(); zephir_array_append(&annotations, &_2$$5, PH_SEPARATE, "phalcon/annotations/collection.zep", 66); } ZEND_HASH_FOREACH_END(); @@ -29266,7 +27751,7 @@ static PHP_METHOD(Phalcon_Annotations_Collection, get) { object_init_ex(&_2, phalcon_annotations_exception_ce); ZEPHIR_INIT_VAR(&_3); ZEPHIR_CONCAT_SVS(&_3, "Collection doesn't have an annotation called '", &name, "'"); - ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", NULL, 9, &_3); + ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", NULL, 4, &_3); zephir_check_call_status(); zephir_throw_exception_debug(&_2, "phalcon/annotations/collection.zep", 149 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -31750,15 +30235,15 @@ static PHP_METHOD(Phalcon_Annotations_Reader, parse) { array_init(&annotations); ZEPHIR_INIT_VAR(&reflection); object_init_ex(&reflection, zephir_get_internal_ce(SL("reflectionclass"))); - ZEPHIR_CALL_METHOD(NULL, &reflection, "__construct", NULL, 91, &className); + ZEPHIR_CALL_METHOD(NULL, &reflection, "__construct", NULL, 83, &className); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&comment, &reflection, "getdoccomment", NULL, 92); + ZEPHIR_CALL_METHOD(&comment, &reflection, "getdoccomment", NULL, 84); zephir_check_call_status(); if (Z_TYPE_P(&comment) == IS_STRING) { ZEPHIR_INIT_VAR(&classAnnotations); - ZEPHIR_CALL_METHOD(&_0$$3, &reflection, "getfilename", NULL, 93); + ZEPHIR_CALL_METHOD(&_0$$3, &reflection, "getfilename", NULL, 85); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_1$$3, &reflection, "getstartline", NULL, 94); + ZEPHIR_CALL_METHOD(&_1$$3, &reflection, "getstartline", NULL, 86); zephir_check_call_status(); ZEPHIR_LAST_CALL_STATUS = phannot_parse_annotations(&classAnnotations, &comment, &_0$$3, &_1$$3 TSRMLS_CC); zephir_check_call_status(); @@ -31766,7 +30251,7 @@ static PHP_METHOD(Phalcon_Annotations_Reader, parse) { zephir_array_update_string(&annotations, SL("class"), &classAnnotations, PH_COPY | PH_SEPARATE); } } - ZEPHIR_CALL_METHOD(&properties, &reflection, "getproperties", NULL, 95); + ZEPHIR_CALL_METHOD(&properties, &reflection, "getproperties", NULL, 87); zephir_check_call_status(); if (zephir_fast_count_int(&properties TSRMLS_CC)) { line = 1; @@ -31781,7 +30266,7 @@ static PHP_METHOD(Phalcon_Annotations_Reader, parse) { zephir_check_call_status(); if (Z_TYPE_P(&comment) == IS_STRING) { ZEPHIR_INIT_NVAR(&propertyAnnotations); - ZEPHIR_CALL_METHOD(&_3$$7, &reflection, "getfilename", NULL, 93); + ZEPHIR_CALL_METHOD(&_3$$7, &reflection, "getfilename", NULL, 85); zephir_check_call_status(); ZVAL_LONG(&_4$$7, line); ZEPHIR_LAST_CALL_STATUS = phannot_parse_annotations(&propertyAnnotations, &comment, &_3$$7, &_4$$7 TSRMLS_CC); @@ -31798,7 +30283,7 @@ static PHP_METHOD(Phalcon_Annotations_Reader, parse) { zephir_array_update_string(&annotations, SL("properties"), &annotationsProperties, PH_COPY | PH_SEPARATE); } } - ZEPHIR_CALL_METHOD(&methods, &reflection, "getmethods", NULL, 96); + ZEPHIR_CALL_METHOD(&methods, &reflection, "getmethods", NULL, 88); zephir_check_call_status(); if (zephir_fast_count_int(&methods TSRMLS_CC)) { ZEPHIR_INIT_VAR(&annotationsMethods); @@ -31963,7 +30448,7 @@ static PHP_METHOD(Phalcon_Annotations_Reflection, getClassAnnotations) { if (zephir_array_isset_string_fetch(&reflectionClass, &_0$$3, SL("class"), 1)) { ZEPHIR_INIT_VAR(&collection); object_init_ex(&collection, phalcon_annotations_collection_ce); - ZEPHIR_CALL_METHOD(NULL, &collection, "__construct", NULL, 17, &reflectionClass); + ZEPHIR_CALL_METHOD(NULL, &collection, "__construct", NULL, 12, &reflectionClass); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_classAnnotations"), &collection); RETURN_CCTOR(collection); @@ -32022,7 +30507,7 @@ static PHP_METHOD(Phalcon_Annotations_Reflection, getMethodsAnnotations) { ZVAL_COPY(&reflectionMethod, _1$$5); ZEPHIR_INIT_NVAR(&_4$$6); object_init_ex(&_4$$6, phalcon_annotations_collection_ce); - ZEPHIR_CALL_METHOD(NULL, &_4$$6, "__construct", &_5, 17, &reflectionMethod); + ZEPHIR_CALL_METHOD(NULL, &_4$$6, "__construct", &_5, 12, &reflectionMethod); zephir_check_call_status(); zephir_array_update_zval(&collections, &methodName, &_4$$6, PH_COPY | PH_SEPARATE); } ZEND_HASH_FOREACH_END(); @@ -32086,7 +30571,7 @@ static PHP_METHOD(Phalcon_Annotations_Reflection, getPropertiesAnnotations) { ZVAL_COPY(&reflectionProperty, _1$$5); ZEPHIR_INIT_NVAR(&_4$$6); object_init_ex(&_4$$6, phalcon_annotations_collection_ce); - ZEPHIR_CALL_METHOD(NULL, &_4$$6, "__construct", &_5, 17, &reflectionProperty); + ZEPHIR_CALL_METHOD(NULL, &_4$$6, "__construct", &_5, 12, &reflectionProperty); zephir_check_call_status(); zephir_array_update_zval(&collections, &property, &_4$$6, PH_COPY | PH_SEPARATE); } ZEND_HASH_FOREACH_END(); @@ -32133,13 +30618,13 @@ static PHP_METHOD(Phalcon_Annotations_Reflection, __set_state) { if (Z_TYPE_P(data) == IS_ARRAY) { if (zephir_array_isset_string_fetch(&reflectionData, data, SL("_reflectionData"), 1)) { object_init_ex(return_value, phalcon_annotations_reflection_ce); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 15, &reflectionData); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 10, &reflectionData); zephir_check_call_status(); RETURN_MM(); } } object_init_ex(return_value, phalcon_annotations_reflection_ce); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 15); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 10); zephir_check_call_status(); RETURN_MM(); @@ -33219,11 +31704,11 @@ static PHP_METHOD(Phalcon_Annotations_Adapter_Apc, read) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &key_param); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(&key, key_param); } else { ZEPHIR_INIT_VAR(&key); @@ -33236,7 +31721,7 @@ static PHP_METHOD(Phalcon_Annotations_Adapter_Apc, read) { ZEPHIR_INIT_VAR(&_2); ZEPHIR_CONCAT_SVV(&_2, "_PHAN", &_1, &key); zephir_fast_strtolower(&_0, &_2); - ZEPHIR_RETURN_CALL_FUNCTION("apc_fetch", NULL, 85, &_0); + ZEPHIR_RETURN_CALL_FUNCTION("apc_fetch", NULL, 77, &_0); zephir_check_call_status(); RETURN_MM(); @@ -33259,11 +31744,11 @@ static PHP_METHOD(Phalcon_Annotations_Adapter_Apc, write) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &key_param, &data); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(&key, key_param); } else { ZEPHIR_INIT_VAR(&key); @@ -33277,7 +31762,7 @@ static PHP_METHOD(Phalcon_Annotations_Adapter_Apc, write) { ZEPHIR_CONCAT_SVV(&_2, "_PHAN", &_1, &key); zephir_fast_strtolower(&_0, &_2); zephir_read_property(&_3, this_ptr, SL("_ttl"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_RETURN_CALL_FUNCTION("apc_store", NULL, 86, &_0, data, &_3); + ZEPHIR_RETURN_CALL_FUNCTION("apc_store", NULL, 78, &_0, data, &_3); zephir_check_call_status(); RETURN_MM(); @@ -33384,11 +31869,11 @@ static PHP_METHOD(Phalcon_Annotations_Adapter_Files, write) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &key_param, &data); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(&key, key_param); } else { ZEPHIR_INIT_VAR(&key); @@ -33452,11 +31937,11 @@ static PHP_METHOD(Phalcon_Annotations_Adapter_Memory, read) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &key_param); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(&key, key_param); } else { ZEPHIR_INIT_VAR(&key); @@ -33487,11 +31972,11 @@ static PHP_METHOD(Phalcon_Annotations_Adapter_Memory, write) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &key_param, &data); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(&key, key_param); } else { ZEPHIR_INIT_VAR(&key); @@ -33540,11 +32025,11 @@ static PHP_METHOD(Phalcon_Annotations_Adapter_Xcache, read) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &key_param); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(&key, key_param); } else { ZEPHIR_INIT_VAR(&key); @@ -33556,10 +32041,10 @@ static PHP_METHOD(Phalcon_Annotations_Adapter_Xcache, read) { ZEPHIR_INIT_VAR(&_1); ZEPHIR_CONCAT_SV(&_1, "_PHAN", &key); zephir_fast_strtolower(&_0, &_1); - ZEPHIR_CALL_FUNCTION(&serialized, "xcache_get", NULL, 87, &_0); + ZEPHIR_CALL_FUNCTION(&serialized, "xcache_get", NULL, 79, &_0); zephir_check_call_status(); if (Z_TYPE_P(&serialized) == IS_STRING) { - ZEPHIR_CALL_FUNCTION(&data, "unserialize", NULL, 66, &serialized); + ZEPHIR_CALL_FUNCTION(&data, "unserialize", NULL, 60, &serialized); zephir_check_call_status(); if (Z_TYPE_P(&data) == IS_OBJECT) { RETURN_CCTOR(data); @@ -33585,11 +32070,11 @@ static PHP_METHOD(Phalcon_Annotations_Adapter_Xcache, write) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &key_param, &data); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(&key, key_param); } else { ZEPHIR_INIT_VAR(&key); @@ -33601,9 +32086,9 @@ static PHP_METHOD(Phalcon_Annotations_Adapter_Xcache, write) { ZEPHIR_INIT_VAR(&_1); ZEPHIR_CONCAT_SV(&_1, "_PHAN", &key); zephir_fast_strtolower(&_0, &_1); - ZEPHIR_CALL_FUNCTION(&_2, "serialize", NULL, 65, data); + ZEPHIR_CALL_FUNCTION(&_2, "serialize", NULL, 59, data); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(NULL, "xcache_set", NULL, 88, &_0, &_2); + ZEPHIR_CALL_FUNCTION(NULL, "xcache_set", NULL, 80, &_0, &_2); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -33833,11 +32318,11 @@ static PHP_METHOD(Phalcon_Assets_Collection, addCss) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 3, &path_param, &local, &filter_param, &attributes); - if (unlikely(Z_TYPE_P(path_param) != IS_STRING && Z_TYPE_P(path_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(path_param) != IS_STRING && Z_TYPE_P(path_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'path' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(path_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(path_param) == IS_STRING)) { zephir_get_strval(&path, path_param); } else { ZEPHIR_INIT_VAR(&path); @@ -33877,7 +32362,7 @@ static PHP_METHOD(Phalcon_Assets_Collection, addCss) { } else { ZVAL_BOOL(&_1, 0); } - ZEPHIR_CALL_METHOD(NULL, &_0, "__construct", NULL, 97, &path, &collectionLocal, &_1, &collectionAttributes); + ZEPHIR_CALL_METHOD(NULL, &_0, "__construct", NULL, 89, &path, &collectionLocal, &_1, &collectionAttributes); zephir_check_call_status(); zephir_update_property_array_append(this_ptr, SL("_resources"), &_0 TSRMLS_CC); RETURN_THIS(); @@ -33927,7 +32412,7 @@ static PHP_METHOD(Phalcon_Assets_Collection, addInlineCss) { } else { ZVAL_BOOL(&_1, 0); } - ZEPHIR_CALL_METHOD(NULL, &_0, "__construct", NULL, 98, &content, &_1, &collectionAttributes); + ZEPHIR_CALL_METHOD(NULL, &_0, "__construct", NULL, 90, &content, &_1, &collectionAttributes); zephir_check_call_status(); zephir_update_property_array_append(this_ptr, SL("_codes"), &_0 TSRMLS_CC); RETURN_THIS(); @@ -33954,11 +32439,11 @@ static PHP_METHOD(Phalcon_Assets_Collection, addJs) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 3, &path_param, &local, &filter_param, &attributes); - if (unlikely(Z_TYPE_P(path_param) != IS_STRING && Z_TYPE_P(path_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(path_param) != IS_STRING && Z_TYPE_P(path_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'path' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(path_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(path_param) == IS_STRING)) { zephir_get_strval(&path, path_param); } else { ZEPHIR_INIT_VAR(&path); @@ -33998,7 +32483,7 @@ static PHP_METHOD(Phalcon_Assets_Collection, addJs) { } else { ZVAL_BOOL(&_1, 0); } - ZEPHIR_CALL_METHOD(NULL, &_0, "__construct", NULL, 99, &path, &collectionLocal, &_1, &collectionAttributes); + ZEPHIR_CALL_METHOD(NULL, &_0, "__construct", NULL, 91, &path, &collectionLocal, &_1, &collectionAttributes); zephir_check_call_status(); zephir_update_property_array_append(this_ptr, SL("_resources"), &_0 TSRMLS_CC); RETURN_THIS(); @@ -34048,7 +32533,7 @@ static PHP_METHOD(Phalcon_Assets_Collection, addInlineJs) { } else { ZVAL_BOOL(&_1, 0); } - ZEPHIR_CALL_METHOD(NULL, &_0, "__construct", NULL, 100, &content, &_1, &collectionAttributes); + ZEPHIR_CALL_METHOD(NULL, &_0, "__construct", NULL, 92, &content, &_1, &collectionAttributes); zephir_check_call_status(); zephir_update_property_array_append(this_ptr, SL("_codes"), &_0 TSRMLS_CC); RETURN_THIS(); @@ -34145,11 +32630,11 @@ static PHP_METHOD(Phalcon_Assets_Collection, setTargetPath) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &targetPath_param); - if (unlikely(Z_TYPE_P(targetPath_param) != IS_STRING && Z_TYPE_P(targetPath_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(targetPath_param) != IS_STRING && Z_TYPE_P(targetPath_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'targetPath' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(targetPath_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(targetPath_param) == IS_STRING)) { zephir_get_strval(&targetPath, targetPath_param); } else { ZEPHIR_INIT_VAR(&targetPath); @@ -34173,11 +32658,11 @@ static PHP_METHOD(Phalcon_Assets_Collection, setSourcePath) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &sourcePath_param); - if (unlikely(Z_TYPE_P(sourcePath_param) != IS_STRING && Z_TYPE_P(sourcePath_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(sourcePath_param) != IS_STRING && Z_TYPE_P(sourcePath_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'sourcePath' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(sourcePath_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(sourcePath_param) == IS_STRING)) { zephir_get_strval(&sourcePath, sourcePath_param); } else { ZEPHIR_INIT_VAR(&sourcePath); @@ -34201,11 +32686,11 @@ static PHP_METHOD(Phalcon_Assets_Collection, setTargetUri) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &targetUri_param); - if (unlikely(Z_TYPE_P(targetUri_param) != IS_STRING && Z_TYPE_P(targetUri_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(targetUri_param) != IS_STRING && Z_TYPE_P(targetUri_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'targetUri' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(targetUri_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(targetUri_param) == IS_STRING)) { zephir_get_strval(&targetUri, targetUri_param); } else { ZEPHIR_INIT_VAR(&targetUri); @@ -34229,11 +32714,11 @@ static PHP_METHOD(Phalcon_Assets_Collection, setPrefix) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &prefix_param); - if (unlikely(Z_TYPE_P(prefix_param) != IS_STRING && Z_TYPE_P(prefix_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(prefix_param) != IS_STRING && Z_TYPE_P(prefix_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'prefix' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(prefix_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(prefix_param) == IS_STRING)) { zephir_get_strval(&prefix, prefix_param); } else { ZEPHIR_INIT_VAR(&prefix); @@ -34257,7 +32742,7 @@ static PHP_METHOD(Phalcon_Assets_Collection, setLocal) { zephir_fetch_params(0, 1, 0, &local_param); - if (unlikely(Z_TYPE_P(local_param) != IS_TRUE && Z_TYPE_P(local_param) != IS_FALSE)) { + if (UNEXPECTED(Z_TYPE_P(local_param) != IS_TRUE && Z_TYPE_P(local_param) != IS_FALSE)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'local' must be a bool") TSRMLS_CC); RETURN_NULL(); } @@ -34322,7 +32807,7 @@ static PHP_METHOD(Phalcon_Assets_Collection, setTargetLocal) { zephir_fetch_params(0, 1, 0, &targetLocal_param); - if (unlikely(Z_TYPE_P(targetLocal_param) != IS_TRUE && Z_TYPE_P(targetLocal_param) != IS_FALSE)) { + if (UNEXPECTED(Z_TYPE_P(targetLocal_param) != IS_TRUE && Z_TYPE_P(targetLocal_param) != IS_FALSE)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'targetLocal' must be a bool") TSRMLS_CC); RETURN_NULL(); } @@ -34375,11 +32860,11 @@ static PHP_METHOD(Phalcon_Assets_Collection, getRealTargetPath) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &basePath_param); - if (unlikely(Z_TYPE_P(basePath_param) != IS_STRING && Z_TYPE_P(basePath_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(basePath_param) != IS_STRING && Z_TYPE_P(basePath_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'basePath' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(basePath_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(basePath_param) == IS_STRING)) { zephir_get_strval(&basePath, basePath_param); } else { ZEPHIR_INIT_VAR(&basePath); @@ -34392,7 +32877,7 @@ static PHP_METHOD(Phalcon_Assets_Collection, getRealTargetPath) { ZEPHIR_INIT_VAR(&completePath); ZEPHIR_CONCAT_VV(&completePath, &basePath, &targetPath); if ((zephir_file_exists(&completePath TSRMLS_CC) == SUCCESS)) { - ZEPHIR_RETURN_CALL_FUNCTION("realpath", NULL, 64, &completePath); + ZEPHIR_RETURN_CALL_FUNCTION("realpath", NULL, 58, &completePath); zephir_check_call_status(); RETURN_MM(); } @@ -34784,11 +33269,11 @@ static PHP_METHOD(Phalcon_Assets_Manager, addCss) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 3, &path_param, &local, &filter, &attributes); - if (unlikely(Z_TYPE_P(path_param) != IS_STRING && Z_TYPE_P(path_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(path_param) != IS_STRING && Z_TYPE_P(path_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'path' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(path_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(path_param) == IS_STRING)) { zephir_get_strval(&path, path_param); } else { ZEPHIR_INIT_VAR(&path); @@ -34810,7 +33295,7 @@ static PHP_METHOD(Phalcon_Assets_Manager, addCss) { ZEPHIR_INIT_VAR(&_0); object_init_ex(&_0, phalcon_assets_resource_css_ce); - ZEPHIR_CALL_METHOD(NULL, &_0, "__construct", NULL, 97, &path, local, filter, attributes); + ZEPHIR_CALL_METHOD(NULL, &_0, "__construct", NULL, 89, &path, local, filter, attributes); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_1); ZVAL_STRING(&_1, "css"); @@ -34851,7 +33336,7 @@ static PHP_METHOD(Phalcon_Assets_Manager, addInlineCss) { ZEPHIR_INIT_VAR(&_0); object_init_ex(&_0, phalcon_assets_inline_css_ce); - ZEPHIR_CALL_METHOD(NULL, &_0, "__construct", NULL, 98, &content, filter, attributes); + ZEPHIR_CALL_METHOD(NULL, &_0, "__construct", NULL, 90, &content, filter, attributes); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_1); ZVAL_STRING(&_1, "css"); @@ -34880,11 +33365,11 @@ static PHP_METHOD(Phalcon_Assets_Manager, addJs) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 3, &path_param, &local, &filter, &attributes); - if (unlikely(Z_TYPE_P(path_param) != IS_STRING && Z_TYPE_P(path_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(path_param) != IS_STRING && Z_TYPE_P(path_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'path' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(path_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(path_param) == IS_STRING)) { zephir_get_strval(&path, path_param); } else { ZEPHIR_INIT_VAR(&path); @@ -34906,7 +33391,7 @@ static PHP_METHOD(Phalcon_Assets_Manager, addJs) { ZEPHIR_INIT_VAR(&_0); object_init_ex(&_0, phalcon_assets_resource_js_ce); - ZEPHIR_CALL_METHOD(NULL, &_0, "__construct", NULL, 99, &path, local, filter, attributes); + ZEPHIR_CALL_METHOD(NULL, &_0, "__construct", NULL, 91, &path, local, filter, attributes); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_1); ZVAL_STRING(&_1, "js"); @@ -34947,7 +33432,7 @@ static PHP_METHOD(Phalcon_Assets_Manager, addInlineJs) { ZEPHIR_INIT_VAR(&_0); object_init_ex(&_0, phalcon_assets_inline_js_ce); - ZEPHIR_CALL_METHOD(NULL, &_0, "__construct", NULL, 100, &content, filter, attributes); + ZEPHIR_CALL_METHOD(NULL, &_0, "__construct", NULL, 92, &content, filter, attributes); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_1); ZVAL_STRING(&_1, "js"); @@ -34972,11 +33457,11 @@ static PHP_METHOD(Phalcon_Assets_Manager, addResourceByType) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &type_param, &resource); - if (unlikely(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'type' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(type_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(type_param) == IS_STRING)) { zephir_get_strval(&type, type_param); } else { ZEPHIR_INIT_VAR(&type); @@ -34995,7 +33480,7 @@ static PHP_METHOD(Phalcon_Assets_Manager, addResourceByType) { } zephir_update_property_array(this_ptr, SL("_collections"), &type, &collection TSRMLS_CC); } - ZEPHIR_CALL_METHOD(NULL, &collection, "add", NULL, 102, resource); + ZEPHIR_CALL_METHOD(NULL, &collection, "add", NULL, 93, resource); zephir_check_call_status(); RETURN_THIS(); @@ -35016,11 +33501,11 @@ static PHP_METHOD(Phalcon_Assets_Manager, addInlineCodeByType) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &type_param, &code); - if (unlikely(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'type' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(type_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(type_param) == IS_STRING)) { zephir_get_strval(&type, type_param); } else { ZEPHIR_INIT_VAR(&type); @@ -35039,7 +33524,7 @@ static PHP_METHOD(Phalcon_Assets_Manager, addInlineCodeByType) { } zephir_update_property_array(this_ptr, SL("_collections"), &type, &collection TSRMLS_CC); } - ZEPHIR_CALL_METHOD(NULL, &collection, "addinline", NULL, 103, code); + ZEPHIR_CALL_METHOD(NULL, &collection, "addinline", NULL, 94, code); zephir_check_call_status(); RETURN_THIS(); @@ -35101,11 +33586,11 @@ static PHP_METHOD(Phalcon_Assets_Manager, set) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &id_param, &collection); - if (unlikely(Z_TYPE_P(id_param) != IS_STRING && Z_TYPE_P(id_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(id_param) != IS_STRING && Z_TYPE_P(id_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'id' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(id_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(id_param) == IS_STRING)) { zephir_get_strval(&id, id_param); } else { ZEPHIR_INIT_VAR(&id); @@ -35131,11 +33616,11 @@ static PHP_METHOD(Phalcon_Assets_Manager, get) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &id_param); - if (unlikely(Z_TYPE_P(id_param) != IS_STRING && Z_TYPE_P(id_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(id_param) != IS_STRING && Z_TYPE_P(id_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'id' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(id_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(id_param) == IS_STRING)) { zephir_get_strval(&id, id_param); } else { ZEPHIR_INIT_VAR(&id); @@ -35343,20 +33828,20 @@ static PHP_METHOD(Phalcon_Assets_Manager, output) { object_init_ex(&_0$$10, phalcon_assets_exception_ce); ZEPHIR_INIT_VAR(&_1$$10); ZEPHIR_CONCAT_SVS(&_1$$10, "Path '", &completeTargetPath, "' is not a valid target path (1)"); - ZEPHIR_CALL_METHOD(NULL, &_0$$10, "__construct", NULL, 9, &_1$$10); + ZEPHIR_CALL_METHOD(NULL, &_0$$10, "__construct", NULL, 4, &_1$$10); zephir_check_call_status(); zephir_throw_exception_debug(&_0$$10, "phalcon/assets/manager.zep", 396 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } - ZEPHIR_CALL_FUNCTION(&_2$$9, "is_dir", NULL, 104, &completeTargetPath); + ZEPHIR_CALL_FUNCTION(&_2$$9, "is_dir", NULL, 95, &completeTargetPath); zephir_check_call_status(); if (zephir_is_true(&_2$$9)) { ZEPHIR_INIT_VAR(&_3$$11); object_init_ex(&_3$$11, phalcon_assets_exception_ce); ZEPHIR_INIT_VAR(&_4$$11); ZEPHIR_CONCAT_SVS(&_4$$11, "Path '", &completeTargetPath, "' is not a valid target path (2), is dir."); - ZEPHIR_CALL_METHOD(NULL, &_3$$11, "__construct", NULL, 9, &_4$$11); + ZEPHIR_CALL_METHOD(NULL, &_3$$11, "__construct", NULL, 4, &_4$$11); zephir_check_call_status(); zephir_throw_exception_debug(&_3$$11, "phalcon/assets/manager.zep", 400 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -35385,7 +33870,7 @@ static PHP_METHOD(Phalcon_Assets_Manager, output) { object_init_ex(&_6$$15, phalcon_assets_exception_ce); ZEPHIR_INIT_LNVAR(_7$$15); ZEPHIR_CONCAT_SVS(&_7$$15, "Resource '", &sourcePath, "' does not have a valid source path"); - ZEPHIR_CALL_METHOD(NULL, &_6$$15, "__construct", NULL, 9, &_7$$15); + ZEPHIR_CALL_METHOD(NULL, &_6$$15, "__construct", NULL, 4, &_7$$15); zephir_check_call_status(); zephir_throw_exception_debug(&_6$$15, "phalcon/assets/manager.zep", 434 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -35403,7 +33888,7 @@ static PHP_METHOD(Phalcon_Assets_Manager, output) { object_init_ex(&_8$$17, phalcon_assets_exception_ce); ZEPHIR_INIT_LNVAR(_9$$17); ZEPHIR_CONCAT_SVS(&_9$$17, "Resource '", &sourcePath, "' does not have a valid target path"); - ZEPHIR_CALL_METHOD(NULL, &_8$$17, "__construct", NULL, 9, &_9$$17); + ZEPHIR_CALL_METHOD(NULL, &_8$$17, "__construct", NULL, 4, &_9$$17); zephir_check_call_status(); zephir_throw_exception_debug(&_8$$17, "phalcon/assets/manager.zep", 458 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -35415,7 +33900,7 @@ static PHP_METHOD(Phalcon_Assets_Manager, output) { object_init_ex(&_10$$19, phalcon_assets_exception_ce); ZEPHIR_INIT_LNVAR(_11$$19); ZEPHIR_CONCAT_SVS(&_11$$19, "Resource '", &targetPath, "' have the same source and target paths"); - ZEPHIR_CALL_METHOD(NULL, &_10$$19, "__construct", NULL, 9, &_11$$19); + ZEPHIR_CALL_METHOD(NULL, &_10$$19, "__construct", NULL, 4, &_11$$19); zephir_check_call_status(); zephir_throw_exception_debug(&_10$$19, "phalcon/assets/manager.zep", 467 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -35864,11 +34349,11 @@ static PHP_METHOD(Phalcon_Assets_Manager, exists) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &id_param); - if (unlikely(Z_TYPE_P(id_param) != IS_STRING && Z_TYPE_P(id_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(id_param) != IS_STRING && Z_TYPE_P(id_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'id' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(id_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(id_param) == IS_STRING)) { zephir_get_strval(&id, id_param); } else { ZEPHIR_INIT_VAR(&id); @@ -36244,7 +34729,7 @@ static PHP_METHOD(Phalcon_Assets_Resource, getContent) { object_init_ex(&_1$$5, phalcon_assets_exception_ce); ZEPHIR_INIT_VAR(&_2$$5); ZEPHIR_CONCAT_SVS(&_2$$5, "Resource's content for '", &completePath, "' cannot be read"); - ZEPHIR_CALL_METHOD(NULL, &_1$$5, "__construct", NULL, 9, &_2$$5); + ZEPHIR_CALL_METHOD(NULL, &_1$$5, "__construct", NULL, 4, &_2$$5); zephir_check_call_status(); zephir_throw_exception_debug(&_1$$5, "phalcon/assets/resource.zep", 183 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -36258,7 +34743,7 @@ static PHP_METHOD(Phalcon_Assets_Resource, getContent) { object_init_ex(&_3$$6, phalcon_assets_exception_ce); ZEPHIR_INIT_VAR(&_4$$6); ZEPHIR_CONCAT_SVS(&_4$$6, "Resource's content for '", &completePath, "' cannot be read"); - ZEPHIR_CALL_METHOD(NULL, &_3$$6, "__construct", NULL, 9, &_4$$6); + ZEPHIR_CALL_METHOD(NULL, &_3$$6, "__construct", NULL, 4, &_4$$6); zephir_check_call_status(); zephir_throw_exception_debug(&_3$$6, "phalcon/assets/resource.zep", 192 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -36320,7 +34805,7 @@ static PHP_METHOD(Phalcon_Assets_Resource, getRealSourcePath) { if (zephir_is_true(&_0)) { ZEPHIR_INIT_VAR(&_1$$4); ZEPHIR_CONCAT_VV(&_1$$4, &basePath, &sourcePath); - ZEPHIR_RETURN_CALL_FUNCTION("realpath", NULL, 64, &_1$$4); + ZEPHIR_RETURN_CALL_FUNCTION("realpath", NULL, 58, &_1$$4); zephir_check_call_status(); RETURN_MM(); } @@ -36362,7 +34847,7 @@ static PHP_METHOD(Phalcon_Assets_Resource, getRealTargetPath) { ZEPHIR_INIT_VAR(&completePath); ZEPHIR_CONCAT_VV(&completePath, &basePath, &targetPath); if ((zephir_file_exists(&completePath TSRMLS_CC) == SUCCESS)) { - ZEPHIR_RETURN_CALL_FUNCTION("realpath", NULL, 64, &completePath); + ZEPHIR_RETURN_CALL_FUNCTION("realpath", NULL, 58, &completePath); zephir_check_call_status(); RETURN_MM(); } @@ -36402,11 +34887,11 @@ static PHP_METHOD(Phalcon_Assets_Filters_Cssmin, filter) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &content_param); - if (unlikely(Z_TYPE_P(content_param) != IS_STRING && Z_TYPE_P(content_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(content_param) != IS_STRING && Z_TYPE_P(content_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'content' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(content_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(content_param) == IS_STRING)) { zephir_get_strval(&content, content_param); } else { ZEPHIR_INIT_VAR(&content); @@ -36739,11 +35224,11 @@ static PHP_METHOD(Phalcon_Assets_Filters_Jsmin, filter) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &content_param); - if (unlikely(Z_TYPE_P(content_param) != IS_STRING && Z_TYPE_P(content_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(content_param) != IS_STRING && Z_TYPE_P(content_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'content' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(content_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(content_param) == IS_STRING)) { zephir_get_strval(&content, content_param); } else { ZEPHIR_INIT_VAR(&content); @@ -37197,11 +35682,11 @@ static PHP_METHOD(Phalcon_Assets_Filters_None, filter) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &content_param); - if (unlikely(Z_TYPE_P(content_param) != IS_STRING && Z_TYPE_P(content_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(content_param) != IS_STRING && Z_TYPE_P(content_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'content' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(content_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(content_param) == IS_STRING)) { zephir_get_strval(&content, content_param); } else { ZEPHIR_INIT_VAR(&content); @@ -37275,7 +35760,7 @@ static PHP_METHOD(Phalcon_Assets_Inline_Css, __construct) { } else { ZVAL_BOOL(&_2, 0); } - ZEPHIR_CALL_PARENT(NULL, phalcon_assets_inline_css_ce, this_ptr, "__construct", &_0, 101, &_1, &content, &_2, attributes); + ZEPHIR_CALL_PARENT(NULL, phalcon_assets_inline_css_ce, this_ptr, "__construct", &_0, 0, &_1, &content, &_2, attributes); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -37343,7 +35828,7 @@ static PHP_METHOD(Phalcon_Assets_Inline_Js, __construct) { } else { ZVAL_BOOL(&_2, 0); } - ZEPHIR_CALL_PARENT(NULL, phalcon_assets_inline_js_ce, this_ptr, "__construct", &_0, 101, &_1, &content, &_2, attributes); + ZEPHIR_CALL_PARENT(NULL, phalcon_assets_inline_js_ce, this_ptr, "__construct", &_0, 0, &_1, &content, &_2, attributes); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -37386,11 +35871,11 @@ static PHP_METHOD(Phalcon_Assets_Resource_Css, __construct) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 3, &path_param, &local_param, &filter_param, &attributes); - if (unlikely(Z_TYPE_P(path_param) != IS_STRING && Z_TYPE_P(path_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(path_param) != IS_STRING && Z_TYPE_P(path_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'path' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(path_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(path_param) == IS_STRING)) { zephir_get_strval(&path, path_param); } else { ZEPHIR_INIT_VAR(&path); @@ -37424,7 +35909,7 @@ static PHP_METHOD(Phalcon_Assets_Resource_Css, __construct) { } else { ZVAL_BOOL(&_3, 0); } - ZEPHIR_CALL_PARENT(NULL, phalcon_assets_resource_css_ce, this_ptr, "__construct", &_0, 105, &_1, &path, &_2, &_3, attributes); + ZEPHIR_CALL_PARENT(NULL, phalcon_assets_resource_css_ce, this_ptr, "__construct", &_0, 0, &_1, &path, &_2, &_3, attributes); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -37482,7 +35967,7 @@ static PHP_METHOD(Phalcon_Assets_Resource_Js, __construct) { ZEPHIR_INIT_VAR(&_1); ZVAL_STRING(&_1, "js"); - ZEPHIR_CALL_PARENT(NULL, phalcon_assets_resource_js_ce, this_ptr, "__construct", &_0, 105, &_1, path, local, filter, attributes); + ZEPHIR_CALL_PARENT(NULL, phalcon_assets_resource_js_ce, this_ptr, "__construct", &_0, 0, &_1, path, local, filter, attributes); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -38154,7 +36639,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_Apc, get) { ZEPHIR_INIT_VAR(&prefixedKey); ZEPHIR_CONCAT_SVV(&prefixedKey, "_PHCA", &_0, &keyName); zephir_update_property_zval(this_ptr, SL("_lastKey"), &prefixedKey); - ZEPHIR_CALL_FUNCTION(&cachedContent, "apc_fetch", NULL, 85, &prefixedKey); + ZEPHIR_CALL_FUNCTION(&cachedContent, "apc_fetch", NULL, 77, &prefixedKey); zephir_check_call_status(); if (ZEPHIR_IS_FALSE_IDENTICAL(&cachedContent)) { RETURN_MM_NULL(); @@ -38251,7 +36736,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_Apc, save) { } else { ZEPHIR_CPY_WRT(&ttl, lifetime); } - ZEPHIR_CALL_FUNCTION(&success, "apc_store", NULL, 86, &lastKey, &preparedContent, &ttl); + ZEPHIR_CALL_FUNCTION(&success, "apc_store", NULL, 78, &lastKey, &preparedContent, &ttl); zephir_check_call_status(); if (!(zephir_is_true(&success))) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_cache_exception_ce, "Failed storing data in apc", "phalcon/cache/backend/apc.zep", 132); @@ -38309,11 +36794,11 @@ static PHP_METHOD(Phalcon_Cache_Backend_Apc, increment) { zephir_update_property_zval(this_ptr, SL("_lastKey"), &prefixedKey); if ((zephir_function_exists_ex(SL("apc_inc") TSRMLS_CC) == SUCCESS)) { ZVAL_LONG(&_1$$3, value); - ZEPHIR_CALL_FUNCTION(&result, "apc_inc", NULL, 106, &prefixedKey, &_1$$3); + ZEPHIR_CALL_FUNCTION(&result, "apc_inc", NULL, 96, &prefixedKey, &_1$$3); zephir_check_call_status(); RETURN_CCTOR(result); } else { - ZEPHIR_CALL_FUNCTION(&cachedContent, "apc_fetch", NULL, 85, &prefixedKey); + ZEPHIR_CALL_FUNCTION(&cachedContent, "apc_fetch", NULL, 77, &prefixedKey); zephir_check_call_status(); if (zephir_is_numeric(&cachedContent)) { ZEPHIR_INIT_NVAR(&result); @@ -38361,11 +36846,11 @@ static PHP_METHOD(Phalcon_Cache_Backend_Apc, decrement) { zephir_update_property_zval(this_ptr, SL("_lastKey"), &lastKey); if ((zephir_function_exists_ex(SL("apc_dec") TSRMLS_CC) == SUCCESS)) { ZVAL_LONG(&_1$$3, value); - ZEPHIR_RETURN_CALL_FUNCTION("apc_dec", NULL, 107, &lastKey, &_1$$3); + ZEPHIR_RETURN_CALL_FUNCTION("apc_dec", NULL, 97, &lastKey, &_1$$3); zephir_check_call_status(); RETURN_MM(); } else { - ZEPHIR_CALL_FUNCTION(&cachedContent, "apc_fetch", NULL, 85, &lastKey); + ZEPHIR_CALL_FUNCTION(&cachedContent, "apc_fetch", NULL, 77, &lastKey); zephir_check_call_status(); if (zephir_is_numeric(&cachedContent)) { ZEPHIR_INIT_VAR(&result); @@ -38393,11 +36878,11 @@ static PHP_METHOD(Phalcon_Cache_Backend_Apc, delete) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &keyName_param); - if (unlikely(Z_TYPE_P(keyName_param) != IS_STRING && Z_TYPE_P(keyName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(keyName_param) != IS_STRING && Z_TYPE_P(keyName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'keyName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(keyName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(keyName_param) == IS_STRING)) { zephir_get_strval(&keyName, keyName_param); } else { ZEPHIR_INIT_VAR(&keyName); @@ -38408,7 +36893,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_Apc, delete) { zephir_read_property(&_0, this_ptr, SL("_prefix"), PH_NOISY_CC | PH_READONLY); ZEPHIR_INIT_VAR(&_1); ZEPHIR_CONCAT_SVV(&_1, "_PHCA", &_0, &keyName); - ZEPHIR_RETURN_CALL_FUNCTION("apc_delete", NULL, 108, &_1); + ZEPHIR_RETURN_CALL_FUNCTION("apc_delete", NULL, 98, &_1); zephir_check_call_status(); RETURN_MM(); @@ -38512,7 +36997,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_Apc, exists) { ZEPHIR_CONCAT_SVV(&lastKey, "_PHCA", &_0$$4, keyName); } if (zephir_is_true(&lastKey)) { - ZEPHIR_CALL_FUNCTION(&_1$$5, "apc_exists", NULL, 109, &lastKey); + ZEPHIR_CALL_FUNCTION(&_1$$5, "apc_exists", NULL, 99, &lastKey); zephir_check_call_status(); if (!ZEPHIR_IS_FALSE_IDENTICAL(&_1$$5)) { RETURN_MM_BOOL(1); @@ -38555,7 +37040,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_Apc, flush) { ZEPHIR_ITERATOR_COPY(&item, _1); } zephir_array_fetch_string(&_4$$3, &item, SL("key"), PH_NOISY | PH_READONLY, "phalcon/cache/backend/apc.zep", 289 TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(NULL, "apc_delete", &_5, 108, &_4$$3); + ZEPHIR_CALL_FUNCTION(NULL, "apc_delete", &_5, 98, &_4$$3); zephir_check_call_status(); } zend_iterator_dtor(_1); @@ -38636,7 +37121,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_File, __construct) { return; } } - ZEPHIR_CALL_PARENT(NULL, phalcon_cache_backend_file_ce, this_ptr, "__construct", &_5, 110, frontend, &options); + ZEPHIR_CALL_PARENT(NULL, phalcon_cache_backend_file_ce, this_ptr, "__construct", &_5, 0, frontend, &options); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -38708,7 +37193,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_File, get) { } else { ttl = lifetime; } - ZEPHIR_CALL_FUNCTION(NULL, "clearstatcache", NULL, 111, &__$true, &cacheFile); + ZEPHIR_CALL_FUNCTION(NULL, "clearstatcache", NULL, 100, &__$true, &cacheFile); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_4$$4); zephir_filemtime(&_4$$4, &cacheFile TSRMLS_CC); @@ -38723,7 +37208,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_File, get) { object_init_ex(&_6$$10, phalcon_cache_exception_ce); ZEPHIR_INIT_VAR(&_7$$10); ZEPHIR_CONCAT_SVS(&_7$$10, "Cache file ", &cacheFile, " could not be opened"); - ZEPHIR_CALL_METHOD(NULL, &_6$$10, "__construct", NULL, 9, &_7$$10); + ZEPHIR_CALL_METHOD(NULL, &_6$$10, "__construct", NULL, 4, &_7$$10); zephir_check_call_status(); zephir_throw_exception_debug(&_6$$10, "phalcon/cache/backend/file.zep", 148 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -38835,7 +37320,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_File, save) { object_init_ex(&_3$$11, phalcon_cache_exception_ce); ZEPHIR_INIT_VAR(&_4$$11); ZEPHIR_CONCAT_SVS(&_4$$11, "Cache file ", &cacheFile, " could not be written"); - ZEPHIR_CALL_METHOD(NULL, &_3$$11, "__construct", NULL, 9, &_4$$11); + ZEPHIR_CALL_METHOD(NULL, &_3$$11, "__construct", NULL, 4, &_4$$11); zephir_check_call_status(); zephir_throw_exception_debug(&_3$$11, "phalcon/cache/backend/file.zep", 215 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -38889,7 +37374,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_File, delete) { ZEPHIR_INIT_VAR(&cacheFile); ZEPHIR_CONCAT_VVV(&cacheFile, &cacheDir, &_1, &_2); if ((zephir_file_exists(&cacheFile TSRMLS_CC) == SUCCESS)) { - ZEPHIR_RETURN_CALL_FUNCTION("unlink", NULL, 112, &cacheFile); + ZEPHIR_RETURN_CALL_FUNCTION("unlink", NULL, 101, &cacheFile); zephir_check_call_status(); RETURN_MM(); } @@ -38946,7 +37431,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_File, queryKeys) { } ZEPHIR_INIT_VAR(&_4); object_init_ex(&_4, spl_ce_DirectoryIterator); - ZEPHIR_CALL_METHOD(NULL, &_4, "__construct", NULL, 113, &cacheDir); + ZEPHIR_CALL_METHOD(NULL, &_4, "__construct", NULL, 102, &cacheDir); zephir_check_call_status(); _3 = zephir_get_iterator(&_4 TSRMLS_CC); _3->funcs->rewind(_3 TSRMLS_CC); @@ -38956,7 +37441,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_File, queryKeys) { } ZEPHIR_CALL_METHOD(&_5$$5, &item, "isdir", NULL, 0); zephir_check_call_status(); - if (likely(ZEPHIR_IS_FALSE_IDENTICAL(&_5$$5))) { + if (EXPECTED(ZEPHIR_IS_FALSE_IDENTICAL(&_5$$5))) { ZEPHIR_CALL_METHOD(&key, &item, "getfilename", NULL, 0); zephir_check_call_status(); if (!(ZEPHIR_IS_EMPTY(&prefix))) { @@ -39032,7 +37517,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_File, exists) { } else { ttl = lifetime; } - ZEPHIR_CALL_FUNCTION(NULL, "clearstatcache", NULL, 111, &__$true, &cacheFile); + ZEPHIR_CALL_FUNCTION(NULL, "clearstatcache", NULL, 100, &__$true, &cacheFile); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_5$$6); zephir_filemtime(&_5$$6, &cacheFile TSRMLS_CC); @@ -39109,7 +37594,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_File, increment) { } else { ZEPHIR_CPY_WRT(&ttl, &lifetime); } - ZEPHIR_CALL_FUNCTION(NULL, "clearstatcache", NULL, 111, &__$true, &cacheFile); + ZEPHIR_CALL_FUNCTION(NULL, "clearstatcache", NULL, 100, &__$true, &cacheFile); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_4$$3); zephir_filemtime(&_4$$3, &cacheFile TSRMLS_CC); @@ -39124,7 +37609,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_File, increment) { object_init_ex(&_6$$7, phalcon_cache_exception_ce); ZEPHIR_INIT_VAR(&_7$$7); ZEPHIR_CONCAT_SVS(&_7$$7, "Cache file ", &cacheFile, " could not be opened"); - ZEPHIR_CALL_METHOD(NULL, &_6$$7, "__construct", NULL, 9, &_7$$7); + ZEPHIR_CALL_METHOD(NULL, &_6$$7, "__construct", NULL, 4, &_7$$7); zephir_check_call_status(); zephir_throw_exception_debug(&_6$$7, "phalcon/cache/backend/file.zep", 383 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -39207,7 +37692,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_File, decrement) { } else { ZEPHIR_CPY_WRT(&ttl, &lifetime); } - ZEPHIR_CALL_FUNCTION(NULL, "clearstatcache", NULL, 111, &__$true, &cacheFile); + ZEPHIR_CALL_FUNCTION(NULL, "clearstatcache", NULL, 100, &__$true, &cacheFile); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_5$$3); zephir_filemtime(&_5$$3, &cacheFile TSRMLS_CC); @@ -39222,7 +37707,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_File, decrement) { object_init_ex(&_7$$7, phalcon_cache_exception_ce); ZEPHIR_INIT_VAR(&_8$$7); ZEPHIR_CONCAT_SVS(&_8$$7, "Cache file ", &cacheFile, " could not be opened"); - ZEPHIR_CALL_METHOD(NULL, &_7$$7, "__construct", NULL, 9, &_8$$7); + ZEPHIR_CALL_METHOD(NULL, &_7$$7, "__construct", NULL, 4, &_8$$7); zephir_check_call_status(); zephir_throw_exception_debug(&_7$$7, "phalcon/cache/backend/file.zep", 441 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -39276,7 +37761,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_File, flush) { } ZEPHIR_INIT_VAR(&_2); object_init_ex(&_2, spl_ce_DirectoryIterator); - ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", NULL, 113, &cacheDir); + ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", NULL, 102, &cacheDir); zephir_check_call_status(); _1 = zephir_get_iterator(&_2 TSRMLS_CC); _1->funcs->rewind(_1 TSRMLS_CC); @@ -39286,7 +37771,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_File, flush) { } ZEPHIR_CALL_METHOD(&_3$$4, &item, "isfile", NULL, 0); zephir_check_call_status(); - if (likely(ZEPHIR_IS_TRUE(&_3$$4))) { + if (EXPECTED(ZEPHIR_IS_TRUE(&_3$$4))) { ZEPHIR_CALL_METHOD(&key, &item, "getfilename", NULL, 0); zephir_check_call_status(); ZEPHIR_CALL_METHOD(&cacheFile, &item, "getpathname", NULL, 0); @@ -39296,7 +37781,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_File, flush) { _4$$5 = zephir_start_with(&key, &prefix, NULL); } if (_4$$5) { - ZEPHIR_CALL_FUNCTION(&_5$$6, "unlink", &_6, 112, &cacheFile); + ZEPHIR_CALL_FUNCTION(&_5$$6, "unlink", &_6, 101, &cacheFile); zephir_check_call_status(); if (!(zephir_is_true(&_5$$6))) { RETURN_MM_BOOL(0); @@ -39420,7 +37905,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_Libmemcached, __construct) { ZVAL_STRING(&_1$$5, ""); zephir_array_update_string(options, SL("statsKey"), &_1$$5, PH_COPY | PH_SEPARATE); } - ZEPHIR_CALL_PARENT(NULL, phalcon_cache_backend_libmemcached_ce, this_ptr, "__construct", &_2, 110, frontend, options); + ZEPHIR_CALL_PARENT(NULL, phalcon_cache_backend_libmemcached_ce, this_ptr, "__construct", &_2, 0, frontend, options); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -39654,7 +38139,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_Libmemcached, save) { zephir_check_call_status(); ZEPHIR_INIT_VAR(&_3$$15); ZEPHIR_CONCAT_SV(&_3$$15, "Failed storing data in memcached, error code: ", &_2$$15); - ZEPHIR_CALL_METHOD(NULL, &_1$$15, "__construct", NULL, 9, &_3$$15); + ZEPHIR_CALL_METHOD(NULL, &_1$$15, "__construct", NULL, 4, &_3$$15); zephir_check_call_status(); zephir_throw_exception_debug(&_1$$15, "phalcon/cache/backend/libmemcached.zep", 240 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -39802,7 +38287,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_Libmemcached, queryKeys) { } ZEPHIR_CALL_METHOD(&keys, &memcache, "get", NULL, 0, &specialKey); zephir_check_call_status(); - if (unlikely(Z_TYPE_P(&keys) != IS_ARRAY)) { + if (UNEXPECTED(Z_TYPE_P(&keys) != IS_ARRAY)) { array_init(return_value); RETURN_MM(); } @@ -40035,7 +38520,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_Libmemcached, flush) { } ZEPHIR_CALL_METHOD(&keys, &memcache, "get", NULL, 0, &specialKey); zephir_check_call_status(); - if (unlikely(Z_TYPE_P(&keys) != IS_ARRAY)) { + if (UNEXPECTED(Z_TYPE_P(&keys) != IS_ARRAY)) { RETURN_MM_BOOL(1); } ZEPHIR_INIT_VAR(&_0); @@ -40129,7 +38614,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_Memcache, __construct) { ZVAL_STRING(&_2$$7, ""); zephir_array_update_string(options, SL("statsKey"), &_2$$7, PH_COPY | PH_SEPARATE); } - ZEPHIR_CALL_PARENT(NULL, phalcon_cache_backend_memcache_ce, this_ptr, "__construct", &_3, 110, frontend, options); + ZEPHIR_CALL_PARENT(NULL, phalcon_cache_backend_memcache_ce, this_ptr, "__construct", &_3, 0, frontend, options); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -40207,11 +38692,11 @@ static PHP_METHOD(Phalcon_Cache_Backend_Memcache, addServers) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 1, &host_param, &port_param, &persistent_param); - if (unlikely(Z_TYPE_P(host_param) != IS_STRING && Z_TYPE_P(host_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(host_param) != IS_STRING && Z_TYPE_P(host_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'host' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(host_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(host_param) == IS_STRING)) { zephir_get_strval(&host, host_param); } else { ZEPHIR_INIT_VAR(&host); @@ -40545,7 +39030,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_Memcache, queryKeys) { } ZEPHIR_CALL_METHOD(&keys, &memcache, "get", NULL, 0, &specialKey); zephir_check_call_status(); - if (unlikely(Z_TYPE_P(&keys) != IS_ARRAY)) { + if (UNEXPECTED(Z_TYPE_P(&keys) != IS_ARRAY)) { array_init(return_value); RETURN_MM(); } @@ -40776,7 +39261,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_Memcache, flush) { } ZEPHIR_CALL_METHOD(&keys, &memcache, "get", NULL, 0, &specialKey); zephir_check_call_status(); - if (unlikely(Z_TYPE_P(&keys) != IS_ARRAY)) { + if (UNEXPECTED(Z_TYPE_P(&keys) != IS_ARRAY)) { RETURN_MM_BOOL(1); } ZEPHIR_INIT_VAR(&_0); @@ -41223,7 +39708,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_Memory, serialize) { ZEPHIR_OBS_VAR(&_1); zephir_read_property(&_1, this_ptr, SL("_frontend"), PH_NOISY_CC); zephir_array_update_string(&_0, SL("frontend"), &_1, PH_COPY | PH_SEPARATE); - ZEPHIR_RETURN_CALL_FUNCTION("serialize", NULL, 65, &_0); + ZEPHIR_RETURN_CALL_FUNCTION("serialize", NULL, 59, &_0); zephir_check_call_status(); RETURN_MM(); @@ -41244,7 +39729,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_Memory, unserialize) { - ZEPHIR_CALL_FUNCTION(&unserialized, "unserialize", NULL, 66, data); + ZEPHIR_CALL_FUNCTION(&unserialized, "unserialize", NULL, 60, data); zephir_check_call_status(); if (Z_TYPE_P(&unserialized) != IS_ARRAY) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(zend_exception_get_default(TSRMLS_C), "Unserialized data must be an array", "phalcon/cache/backend/memory.zep", 295); @@ -41310,7 +39795,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_Mongo, __construct) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_cache_exception_ce, "The parameter 'collection' is required", "phalcon/cache/backend/mongo.zep", 86); return; } - ZEPHIR_CALL_PARENT(NULL, phalcon_cache_backend_mongo_ce, this_ptr, "__construct", &_0, 110, frontend, options); + ZEPHIR_CALL_PARENT(NULL, phalcon_cache_backend_mongo_ce, this_ptr, "__construct", &_0, 0, frontend, options); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -41437,7 +39922,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_Mongo, get) { zephir_time(&_2); zephir_array_update_string(&_1, SL("$gt"), &_2, PH_COPY | PH_SEPARATE); zephir_array_update_string(&conditions, SL("time"), &_1, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(&_3, this_ptr, "_getcollection", NULL, 114); + ZEPHIR_CALL_METHOD(&_3, this_ptr, "_getcollection", NULL, 103); zephir_check_call_status(); ZEPHIR_CALL_METHOD(&document, &_3, "findone", NULL, 0, &conditions); zephir_check_call_status(); @@ -41556,7 +40041,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_Mongo, save) { } else { ZEPHIR_CPY_WRT(&ttl, lifetime); } - ZEPHIR_CALL_METHOD(&collection, this_ptr, "_getcollection", NULL, 114); + ZEPHIR_CALL_METHOD(&collection, this_ptr, "_getcollection", NULL, 103); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_1); zephir_time(&_1); @@ -41623,7 +40108,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_Mongo, delete) { - ZEPHIR_CALL_METHOD(&_0, this_ptr, "_getcollection", NULL, 114); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "_getcollection", NULL, 103); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_1); zephir_create_array(&_1, 1, 0 TSRMLS_CC); @@ -41633,7 +40118,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_Mongo, delete) { zephir_array_update_string(&_1, SL("key"), &_3, PH_COPY | PH_SEPARATE); ZEPHIR_CALL_METHOD(NULL, &_0, "remove", NULL, 0, &_1); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_4, "rand", NULL, 115); + ZEPHIR_CALL_FUNCTION(&_4, "rand", NULL, 104); zephir_check_call_status(); if (zephir_safe_mod_long_long(zephir_get_intval(&_4), 100 TSRMLS_CC) == 0) { ZEPHIR_CALL_METHOD(NULL, this_ptr, "gc", NULL, 0); @@ -41700,7 +40185,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_Mongo, queryKeys) { zephir_time(&_3); zephir_array_update_string(&_2, SL("$gt"), &_3, PH_COPY | PH_SEPARATE); zephir_array_update_string(&conditions, SL("time"), &_2, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(&collection, this_ptr, "_getcollection", NULL, 114); + ZEPHIR_CALL_METHOD(&collection, this_ptr, "_getcollection", NULL, 103); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_4); zephir_create_array(&_4, 1, 0 TSRMLS_CC); @@ -41776,7 +40261,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_Mongo, exists) { ZEPHIR_CONCAT_VV(&lastKey, &_0$$4, keyName); } if (zephir_is_true(&lastKey)) { - ZEPHIR_CALL_METHOD(&_1$$5, this_ptr, "_getcollection", NULL, 114); + ZEPHIR_CALL_METHOD(&_1$$5, this_ptr, "_getcollection", NULL, 103); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_3$$5); zephir_create_array(&_3$$5, 2, 0 TSRMLS_CC); @@ -41809,7 +40294,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_Mongo, gc) { ZEPHIR_MM_GROW(); - ZEPHIR_CALL_METHOD(&_0, this_ptr, "_getcollection", NULL, 114); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "_getcollection", NULL, 103); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_1); zephir_create_array(&_1, 1, 0 TSRMLS_CC); @@ -41857,7 +40342,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_Mongo, increment) { ZEPHIR_INIT_VAR(&prefixedKey); ZEPHIR_CONCAT_VV(&prefixedKey, &_0, keyName); zephir_update_property_zval(this_ptr, SL("_lastKey"), &prefixedKey); - ZEPHIR_CALL_METHOD(&_1, this_ptr, "_getcollection", NULL, 114); + ZEPHIR_CALL_METHOD(&_1, this_ptr, "_getcollection", NULL, 103); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_2); zephir_create_array(&_2, 1, 0 TSRMLS_CC); @@ -41921,7 +40406,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_Mongo, decrement) { ZEPHIR_INIT_VAR(&prefixedKey); ZEPHIR_CONCAT_VV(&prefixedKey, &_0, keyName); zephir_update_property_zval(this_ptr, SL("_lastKey"), &prefixedKey); - ZEPHIR_CALL_METHOD(&_1, this_ptr, "_getcollection", NULL, 114); + ZEPHIR_CALL_METHOD(&_1, this_ptr, "_getcollection", NULL, 103); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_2); zephir_create_array(&_2, 1, 0 TSRMLS_CC); @@ -41963,7 +40448,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_Mongo, flush) { ZEPHIR_MM_GROW(); - ZEPHIR_CALL_METHOD(&_0, this_ptr, "_getcollection", NULL, 114); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "_getcollection", NULL, 103); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, &_0, "remove", NULL, 0); zephir_check_call_status(); @@ -42045,7 +40530,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_Redis, __construct) { ZVAL_STRING(&_3$$8, ""); zephir_array_update_string(options, SL("statsKey"), &_3$$8, PH_COPY | PH_SEPARATE); } - ZEPHIR_CALL_PARENT(NULL, phalcon_cache_backend_redis_ce, this_ptr, "__construct", &_4, 110, frontend, options); + ZEPHIR_CALL_PARENT(NULL, phalcon_cache_backend_redis_ce, this_ptr, "__construct", &_4, 0, frontend, options); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -42075,8 +40560,10 @@ static PHP_METHOD(Phalcon_Cache_Backend_Redis, _connect) { zephir_read_property(&options, this_ptr, SL("_options"), PH_NOISY_CC); ZEPHIR_INIT_VAR(&redis); object_init_ex(&redis, zephir_get_internal_ce(SL("redis"))); - ZEPHIR_CALL_METHOD(NULL, &redis, "__construct", NULL, 0); - zephir_check_call_status(); + if (zephir_has_constructor(&redis TSRMLS_CC)) { + ZEPHIR_CALL_METHOD(NULL, &redis, "__construct", NULL, 0); + zephir_check_call_status(); + } ZEPHIR_OBS_VAR(&host); _0 = !(zephir_array_isset_string_fetch(&host, &options, SL("host"), 0)); if (!(_0)) { @@ -42104,7 +40591,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_Redis, _connect) { object_init_ex(&_2$$6, phalcon_cache_exception_ce); ZEPHIR_INIT_VAR(&_3$$6); ZEPHIR_CONCAT_SVSV(&_3$$6, "Could not connect to the Redisd server ", &host, ":", &port); - ZEPHIR_CALL_METHOD(NULL, &_2$$6, "__construct", NULL, 9, &_3$$6); + ZEPHIR_CALL_METHOD(NULL, &_2$$6, "__construct", NULL, 4, &_3$$6); zephir_check_call_status(); zephir_throw_exception_debug(&_2$$6, "phalcon/cache/backend/redis.zep", 124 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -42724,7 +41211,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_Xcache, __construct) { ZVAL_STRING(&_0$$4, ""); zephir_array_update_string(options, SL("statsKey"), &_0$$4, PH_COPY | PH_SEPARATE); } - ZEPHIR_CALL_PARENT(NULL, phalcon_cache_backend_xcache_ce, this_ptr, "__construct", &_1, 110, frontend, options); + ZEPHIR_CALL_PARENT(NULL, phalcon_cache_backend_xcache_ce, this_ptr, "__construct", &_1, 0, frontend, options); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -42760,7 +41247,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_Xcache, get) { ZEPHIR_INIT_VAR(&prefixedKey); ZEPHIR_CONCAT_SVV(&prefixedKey, "_PHCX", &_0, &keyName); zephir_update_property_zval(this_ptr, SL("_lastKey"), &prefixedKey); - ZEPHIR_CALL_FUNCTION(&cachedContent, "xcache_get", NULL, 87, &prefixedKey); + ZEPHIR_CALL_FUNCTION(&cachedContent, "xcache_get", NULL, 79, &prefixedKey); zephir_check_call_status(); if (!(zephir_is_true(&cachedContent))) { RETURN_MM_NULL(); @@ -42864,7 +41351,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_Xcache, save) { } else { ZEPHIR_CPY_WRT(&tt1, lifetime); } - ZEPHIR_CALL_FUNCTION(&success, "xcache_set", &_1, 88, &lastKey, &preparedContent, &tt1); + ZEPHIR_CALL_FUNCTION(&success, "xcache_set", &_1, 80, &lastKey, &preparedContent, &tt1); zephir_check_call_status(); if (!(zephir_is_true(&success))) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_cache_exception_ce, "Failed storing the data in xcache", "phalcon/cache/backend/xcache.zep", 156); @@ -42894,14 +41381,14 @@ static PHP_METHOD(Phalcon_Cache_Backend_Xcache, save) { return; } if (!ZEPHIR_IS_STRING(&specialKey, "")) { - ZEPHIR_CALL_FUNCTION(&keys, "xcache_get", NULL, 87, &specialKey); + ZEPHIR_CALL_FUNCTION(&keys, "xcache_get", NULL, 79, &specialKey); zephir_check_call_status(); if (Z_TYPE_P(&keys) != IS_ARRAY) { ZEPHIR_INIT_NVAR(&keys); array_init(&keys); } zephir_array_update_zval(&keys, &lastKey, &tt1, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_FUNCTION(NULL, "xcache_set", &_1, 88, &specialKey, &keys); + ZEPHIR_CALL_FUNCTION(NULL, "xcache_set", &_1, 80, &specialKey, &keys); zephir_check_call_status(); } } @@ -42937,14 +41424,14 @@ static PHP_METHOD(Phalcon_Cache_Backend_Xcache, delete) { return; } if (!ZEPHIR_IS_STRING(&specialKey, "")) { - ZEPHIR_CALL_FUNCTION(&keys, "xcache_get", NULL, 87, &specialKey); + ZEPHIR_CALL_FUNCTION(&keys, "xcache_get", NULL, 79, &specialKey); zephir_check_call_status(); if (Z_TYPE_P(&keys) != IS_ARRAY) { ZEPHIR_INIT_NVAR(&keys); array_init(&keys); } zephir_array_unset(&keys, &prefixedKey, PH_SEPARATE); - ZEPHIR_CALL_FUNCTION(NULL, "xcache_set", NULL, 88, &specialKey, &keys); + ZEPHIR_CALL_FUNCTION(NULL, "xcache_set", NULL, 80, &specialKey, &keys); zephir_check_call_status(); } ZEPHIR_MM_RESTORE(); @@ -43004,7 +41491,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_Xcache, queryKeys) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_cache_exception_ce, "Cached keys need to be enabled to use this function (options['statsKey'] == '_PHCX')!", "phalcon/cache/backend/xcache.zep", 251); return; } - ZEPHIR_CALL_FUNCTION(&keys, "xcache_get", NULL, 87, &specialKey); + ZEPHIR_CALL_FUNCTION(&keys, "xcache_get", NULL, 79, &specialKey); zephir_check_call_status(); if (Z_TYPE_P(&keys) != IS_ARRAY) { array_init(return_value); @@ -43071,7 +41558,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_Xcache, exists) { ZEPHIR_CONCAT_SVV(&lastKey, "_PHCX", &_0$$4, keyName); } if (zephir_is_true(&lastKey)) { - ZEPHIR_RETURN_CALL_FUNCTION("xcache_isset", NULL, 116, &lastKey); + ZEPHIR_RETURN_CALL_FUNCTION("xcache_isset", NULL, 105, &lastKey); zephir_check_call_status(); RETURN_MM(); } @@ -43116,14 +41603,14 @@ static PHP_METHOD(Phalcon_Cache_Backend_Xcache, increment) { } if ((zephir_function_exists_ex(SL("xcache_inc") TSRMLS_CC) == SUCCESS)) { ZVAL_LONG(&_1$$6, value); - ZEPHIR_CALL_FUNCTION(&newVal, "xcache_inc", NULL, 117, &lastKey, &_1$$6); + ZEPHIR_CALL_FUNCTION(&newVal, "xcache_inc", NULL, 106, &lastKey, &_1$$6); zephir_check_call_status(); } else { - ZEPHIR_CALL_FUNCTION(&origVal, "xcache_get", NULL, 87, &lastKey); + ZEPHIR_CALL_FUNCTION(&origVal, "xcache_get", NULL, 79, &lastKey); zephir_check_call_status(); ZEPHIR_INIT_NVAR(&newVal); ZVAL_LONG(&newVal, (zephir_get_numberval(&origVal) - value)); - ZEPHIR_CALL_FUNCTION(NULL, "xcache_set", NULL, 88, &lastKey, &newVal); + ZEPHIR_CALL_FUNCTION(NULL, "xcache_set", NULL, 80, &lastKey, &newVal); zephir_check_call_status(); } RETURN_CCTOR(newVal); @@ -43168,14 +41655,14 @@ static PHP_METHOD(Phalcon_Cache_Backend_Xcache, decrement) { } if ((zephir_function_exists_ex(SL("xcache_dec") TSRMLS_CC) == SUCCESS)) { ZVAL_LONG(&_1$$6, value); - ZEPHIR_CALL_FUNCTION(&newVal, "xcache_dec", NULL, 118, &lastKey, &_1$$6); + ZEPHIR_CALL_FUNCTION(&newVal, "xcache_dec", NULL, 107, &lastKey, &_1$$6); zephir_check_call_status(); } else { - ZEPHIR_CALL_FUNCTION(&origVal, "xcache_get", NULL, 87, &lastKey); + ZEPHIR_CALL_FUNCTION(&origVal, "xcache_get", NULL, 79, &lastKey); zephir_check_call_status(); ZEPHIR_INIT_NVAR(&newVal); ZVAL_LONG(&newVal, (zephir_get_numberval(&origVal) - value)); - ZEPHIR_CALL_FUNCTION(&success, "xcache_set", NULL, 88, &lastKey, &newVal); + ZEPHIR_CALL_FUNCTION(&success, "xcache_set", NULL, 80, &lastKey, &newVal); zephir_check_call_status(); } RETURN_CCTOR(newVal); @@ -43212,7 +41699,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_Xcache, flush) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_cache_exception_ce, "Cached keys need to be enabled to use this function (options['statsKey'] == '_PHCM')!", "phalcon/cache/backend/xcache.zep", 371); return; } - ZEPHIR_CALL_FUNCTION(&keys, "xcache_get", NULL, 87, &specialKey); + ZEPHIR_CALL_FUNCTION(&keys, "xcache_get", NULL, 79, &specialKey); zephir_check_call_status(); if (Z_TYPE_P(&keys) == IS_ARRAY) { ZEPHIR_INIT_VAR(&_1$$5); @@ -43228,12 +41715,12 @@ static PHP_METHOD(Phalcon_Cache_Backend_Xcache, flush) { ZEPHIR_INIT_NVAR(&_1$$5); ZVAL_COPY(&_1$$5, _2$$5); zephir_array_unset(&keys, &key, PH_SEPARATE); - ZEPHIR_CALL_FUNCTION(NULL, "xcache_unset", &_5, 119, &key); + ZEPHIR_CALL_FUNCTION(NULL, "xcache_unset", &_5, 108, &key); zephir_check_call_status(); } ZEND_HASH_FOREACH_END(); ZEPHIR_INIT_NVAR(&_1$$5); ZEPHIR_INIT_NVAR(&key); - ZEPHIR_CALL_FUNCTION(NULL, "xcache_set", NULL, 88, &specialKey, &keys); + ZEPHIR_CALL_FUNCTION(NULL, "xcache_set", NULL, 80, &specialKey, &keys); zephir_check_call_status(); } RETURN_MM_BOOL(1); @@ -43347,7 +41834,7 @@ static PHP_METHOD(Phalcon_Cache_Frontend_Base64, beforeStore) { - ZEPHIR_RETURN_CALL_FUNCTION("base64_encode", NULL, 120, data); + ZEPHIR_RETURN_CALL_FUNCTION("base64_encode", NULL, 109, data); zephir_check_call_status(); RETURN_MM(); @@ -43366,7 +41853,7 @@ static PHP_METHOD(Phalcon_Cache_Frontend_Base64, afterRetrieve) { - ZEPHIR_RETURN_CALL_FUNCTION("base64_decode", NULL, 121, data); + ZEPHIR_RETURN_CALL_FUNCTION("base64_decode", NULL, 110, data); zephir_check_call_status(); RETURN_MM(); @@ -43479,7 +41966,7 @@ static PHP_METHOD(Phalcon_Cache_Frontend_Data, beforeStore) { - ZEPHIR_RETURN_CALL_FUNCTION("serialize", NULL, 65, data); + ZEPHIR_RETURN_CALL_FUNCTION("serialize", NULL, 59, data); zephir_check_call_status(); RETURN_MM(); @@ -43506,7 +41993,7 @@ static PHP_METHOD(Phalcon_Cache_Frontend_Data, afterRetrieve) { RETVAL_ZVAL(data, 1, 0); RETURN_MM(); } - ZEPHIR_RETURN_CALL_FUNCTION("unserialize", NULL, 66, data); + ZEPHIR_RETURN_CALL_FUNCTION("unserialize", NULL, 60, data); zephir_check_call_status(); RETURN_MM(); @@ -43617,7 +42104,7 @@ static PHP_METHOD(Phalcon_Cache_Frontend_Igbinary, beforeStore) { - ZEPHIR_RETURN_CALL_FUNCTION("igbinary_serialize", NULL, 122, data); + ZEPHIR_RETURN_CALL_FUNCTION("igbinary_serialize", NULL, 111, data); zephir_check_call_status(); RETURN_MM(); @@ -43640,7 +42127,7 @@ static PHP_METHOD(Phalcon_Cache_Frontend_Igbinary, afterRetrieve) { RETVAL_ZVAL(data, 1, 0); RETURN_MM(); } - ZEPHIR_RETURN_CALL_FUNCTION("igbinary_unserialize", NULL, 123, data); + ZEPHIR_RETURN_CALL_FUNCTION("igbinary_unserialize", NULL, 112, data); zephir_check_call_status(); RETURN_MM(); @@ -43887,7 +42374,7 @@ static PHP_METHOD(Phalcon_Cache_Frontend_Msgpack, beforeStore) { - ZEPHIR_RETURN_CALL_FUNCTION("msgpack_pack", NULL, 124, data); + ZEPHIR_RETURN_CALL_FUNCTION("msgpack_pack", NULL, 113, data); zephir_check_call_status(); RETURN_MM(); @@ -43910,7 +42397,7 @@ static PHP_METHOD(Phalcon_Cache_Frontend_Msgpack, afterRetrieve) { RETVAL_ZVAL(data, 1, 0); RETURN_MM(); } - ZEPHIR_RETURN_CALL_FUNCTION("msgpack_unpack", NULL, 125, data); + ZEPHIR_RETURN_CALL_FUNCTION("msgpack_unpack", NULL, 114, data); zephir_check_call_status(); RETURN_MM(); @@ -44096,7 +42583,7 @@ static PHP_METHOD(Phalcon_Cache_Frontend_Output, start) { } else { zephir_update_property_zval(this_ptr, SL("_buffering"), &__$false); } - ZEPHIR_CALL_FUNCTION(NULL, "ob_start", NULL, 126); + ZEPHIR_CALL_FUNCTION(NULL, "ob_start", NULL, 115); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -44114,7 +42601,7 @@ static PHP_METHOD(Phalcon_Cache_Frontend_Output, getContent) { zephir_read_property(&_0, this_ptr, SL("_buffering"), PH_NOISY_CC | PH_READONLY); if (zephir_is_true(&_0)) { - ZEPHIR_RETURN_CALL_FUNCTION("ob_get_contents", NULL, 127); + ZEPHIR_RETURN_CALL_FUNCTION("ob_get_contents", NULL, 116); zephir_check_call_status(); RETURN_MM(); } @@ -44136,7 +42623,7 @@ static PHP_METHOD(Phalcon_Cache_Frontend_Output, stop) { zephir_read_property(&_0, this_ptr, SL("_buffering"), PH_NOISY_CC | PH_READONLY); if (zephir_is_true(&_0)) { - ZEPHIR_CALL_FUNCTION(NULL, "ob_end_clean", NULL, 128); + ZEPHIR_CALL_FUNCTION(NULL, "ob_end_clean", NULL, 117); zephir_check_call_status(); } if (0) { @@ -44336,7 +42823,7 @@ static PHP_METHOD(Phalcon_Cli_Console, handle) { object_init_ex(&_9$$12, phalcon_cli_console_exception_ce); ZEPHIR_INIT_VAR(&_10$$12); ZEPHIR_CONCAT_SVS(&_10$$12, "Module '", &moduleName, "' isn't registered in the console container"); - ZEPHIR_CALL_METHOD(NULL, &_9$$12, "__construct", NULL, 9, &_10$$12); + ZEPHIR_CALL_METHOD(NULL, &_9$$12, "__construct", NULL, 4, &_10$$12); zephir_check_call_status(); zephir_throw_exception_debug(&_9$$12, "phalcon/cli/console.zep", 111 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -44355,7 +42842,7 @@ static PHP_METHOD(Phalcon_Cli_Console, handle) { object_init_ex(&_11$$15, phalcon_cli_console_exception_ce); ZEPHIR_INIT_VAR(&_12$$15); ZEPHIR_CONCAT_SVS(&_12$$15, "Module definition path '", &path, "' doesn't exist"); - ZEPHIR_CALL_METHOD(NULL, &_11$$15, "__construct", NULL, 9, &_12$$15); + ZEPHIR_CALL_METHOD(NULL, &_11$$15, "__construct", NULL, 4, &_12$$15); zephir_check_call_status(); zephir_throw_exception_debug(&_11$$15, "phalcon/cli/console.zep", 121 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -44480,7 +42967,7 @@ static PHP_METHOD(Phalcon_Cli_Console, setArgument) { if (!str_param) { str = 1; } else { - if (unlikely(Z_TYPE_P(str_param) != IS_TRUE && Z_TYPE_P(str_param) != IS_FALSE)) { + if (UNEXPECTED(Z_TYPE_P(str_param) != IS_TRUE && Z_TYPE_P(str_param) != IS_FALSE)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'str' must be a bool") TSRMLS_CC); RETURN_MM_NULL(); } @@ -44489,7 +42976,7 @@ static PHP_METHOD(Phalcon_Cli_Console, setArgument) { if (!shift_param) { shift = 1; } else { - if (unlikely(Z_TYPE_P(shift_param) != IS_TRUE && Z_TYPE_P(shift_param) != IS_FALSE)) { + if (UNEXPECTED(Z_TYPE_P(shift_param) != IS_TRUE && Z_TYPE_P(shift_param) != IS_FALSE)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'shift' must be a bool") TSRMLS_CC); RETURN_MM_NULL(); } @@ -44509,7 +42996,7 @@ static PHP_METHOD(Phalcon_Cli_Console, setArgument) { } if (_0) { ZEPHIR_MAKE_REF(&arguments); - ZEPHIR_CALL_FUNCTION(NULL, "array_shift", &_1, 129, &arguments); + ZEPHIR_CALL_FUNCTION(NULL, "array_shift", &_1, 118, &arguments); ZEPHIR_UNREF(&arguments); zephir_check_call_status(); } @@ -44522,7 +43009,7 @@ static PHP_METHOD(Phalcon_Cli_Console, setArgument) { ZEPHIR_INIT_NVAR(&_3$$5); ZVAL_STRING(&_3$$5, "--"); ZVAL_LONG(&_4$$5, 2); - ZEPHIR_CALL_FUNCTION(&_5$$5, "strncmp", &_6, 130, &arg, &_3$$5, &_4$$5); + ZEPHIR_CALL_FUNCTION(&_5$$5, "strncmp", &_6, 119, &arg, &_3$$5, &_4$$5); zephir_check_call_status(); if (ZEPHIR_IS_LONG(&_5$$5, 0)) { ZEPHIR_INIT_NVAR(&_7$$6); @@ -44554,7 +43041,7 @@ static PHP_METHOD(Phalcon_Cli_Console, setArgument) { ZEPHIR_INIT_NVAR(&_18$$9); ZVAL_STRING(&_18$$9, "-"); ZVAL_LONG(&_19$$9, 1); - ZEPHIR_CALL_FUNCTION(&_20$$9, "strncmp", &_6, 130, &arg, &_18$$9, &_19$$9); + ZEPHIR_CALL_FUNCTION(&_20$$9, "strncmp", &_6, 119, &arg, &_18$$9, &_19$$9); zephir_check_call_status(); if (ZEPHIR_IS_LONG(&_20$$9, 0)) { ZVAL_LONG(&_21$$10, 1); @@ -44572,21 +43059,21 @@ static PHP_METHOD(Phalcon_Cli_Console, setArgument) { ZEPHIR_INIT_NVAR(&arg); if (str) { ZEPHIR_INIT_VAR(&_23$$13); - ZEPHIR_CALL_CE_STATIC(&_24$$13, phalcon_cli_router_route_ce, "getdelimiter", &_25, 131); + ZEPHIR_CALL_CE_STATIC(&_24$$13, phalcon_cli_router_route_ce, "getdelimiter", &_25, 0); zephir_check_call_status(); zephir_fast_join(&_23$$13, &_24$$13, &args TSRMLS_CC); zephir_update_property_zval(this_ptr, SL("_arguments"), &_23$$13); } else { if (zephir_fast_count_int(&args TSRMLS_CC)) { ZEPHIR_MAKE_REF(&args); - ZEPHIR_CALL_FUNCTION(&_26$$15, "array_shift", &_1, 129, &args); + ZEPHIR_CALL_FUNCTION(&_26$$15, "array_shift", &_1, 118, &args); ZEPHIR_UNREF(&args); zephir_check_call_status(); zephir_array_update_string(&handleArgs, SL("task"), &_26$$15, PH_COPY | PH_SEPARATE); } if (zephir_fast_count_int(&args TSRMLS_CC)) { ZEPHIR_MAKE_REF(&args); - ZEPHIR_CALL_FUNCTION(&_27$$16, "array_shift", &_1, 129, &args); + ZEPHIR_CALL_FUNCTION(&_27$$16, "array_shift", &_1, 118, &args); ZEPHIR_UNREF(&args); zephir_check_call_status(); zephir_array_update_string(&handleArgs, SL("action"), &_27$$16, PH_COPY | PH_SEPARATE); @@ -44763,7 +43250,7 @@ static PHP_METHOD(Phalcon_Cli_Dispatcher, _throwDispatchException) { ZEPHIR_INIT_VAR(&exception); object_init_ex(&exception, phalcon_cli_dispatcher_exception_ce); ZVAL_LONG(&_0, exceptionCode); - ZEPHIR_CALL_METHOD(NULL, &exception, "__construct", NULL, 9, &message, &_0); + ZEPHIR_CALL_METHOD(NULL, &exception, "__construct", NULL, 4, &message, &_0); zephir_check_call_status(); ZEPHIR_CALL_METHOD(&_1, this_ptr, "_handleexception", NULL, 0, &exception); zephir_check_call_status(); @@ -45038,7 +43525,7 @@ static PHP_METHOD(Phalcon_Cli_Router, __construct) { add_assoc_long_ex(&_1$$3, SL("task"), 1); ZEPHIR_INIT_VAR(&_2$$3); ZVAL_STRING(&_2$$3, "#^(?::delimiter)?([a-zA-Z0-9\\_\\-]+)[:delimiter]{0,1}$#"); - ZEPHIR_CALL_METHOD(NULL, &_0$$3, "__construct", &_3, 132, &_2$$3, &_1$$3); + ZEPHIR_CALL_METHOD(NULL, &_0$$3, "__construct", &_3, 120, &_2$$3, &_1$$3); zephir_check_call_status(); zephir_array_append(&routes, &_0$$3, PH_SEPARATE, "phalcon/cli/router.zep", 93); ZEPHIR_INIT_NVAR(&_2$$3); @@ -45050,7 +43537,7 @@ static PHP_METHOD(Phalcon_Cli_Router, __construct) { add_assoc_long_ex(&_4$$3, SL("params"), 3); ZEPHIR_INIT_VAR(&_5$$3); ZVAL_STRING(&_5$$3, "#^(?::delimiter)?([a-zA-Z0-9\\_\\-]+):delimiter([a-zA-Z0-9\\.\\_]+)(:delimiter.*)*$#"); - ZEPHIR_CALL_METHOD(NULL, &_2$$3, "__construct", &_3, 132, &_5$$3, &_4$$3); + ZEPHIR_CALL_METHOD(NULL, &_2$$3, "__construct", &_3, 120, &_5$$3, &_4$$3); zephir_check_call_status(); zephir_array_append(&routes, &_2$$3, PH_SEPARATE, "phalcon/cli/router.zep", 99); } @@ -45405,7 +43892,7 @@ static PHP_METHOD(Phalcon_Cli_Router, handle) { ZEPHIR_INIT_VAR(&strParams); zephir_substr(&strParams, &_15$$30, 1 , 0, ZEPHIR_SUBSTR_NO_LENGTH); if (zephir_is_true(&strParams)) { - ZEPHIR_CALL_CE_STATIC(&_17$$31, phalcon_cli_router_route_ce, "getdelimiter", &_18, 131); + ZEPHIR_CALL_CE_STATIC(&_17$$31, phalcon_cli_router_route_ce, "getdelimiter", &_18, 0); zephir_check_call_status(); ZEPHIR_INIT_NVAR(¶ms); zephir_fast_explode(¶ms, &_17$$31, &strParams, LONG_MAX TSRMLS_CC); @@ -45446,11 +43933,11 @@ static PHP_METHOD(Phalcon_Cli_Router, add) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &pattern_param, &paths); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(&pattern, pattern_param); } else { ZEPHIR_INIT_VAR(&pattern); @@ -45464,7 +43951,7 @@ static PHP_METHOD(Phalcon_Cli_Router, add) { ZEPHIR_INIT_VAR(&route); object_init_ex(&route, phalcon_cli_router_route_ce); - ZEPHIR_CALL_METHOD(NULL, &route, "__construct", NULL, 132, &pattern, paths); + ZEPHIR_CALL_METHOD(NULL, &route, "__construct", NULL, 120, &pattern, paths); zephir_check_call_status(); zephir_update_property_array_append(this_ptr, SL("_routes"), &route TSRMLS_CC); RETURN_CCTOR(route); @@ -45591,11 +44078,11 @@ static PHP_METHOD(Phalcon_Cli_Router, getRouteByName) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(&name, name_param); } else { ZEPHIR_INIT_VAR(&name); @@ -45866,11 +44353,11 @@ static PHP_METHOD(Phalcon_Cli_Router_Route, __construct) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &pattern_param, &paths); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(&pattern, pattern_param); } else { ZEPHIR_INIT_VAR(&pattern); @@ -45939,11 +44426,11 @@ static PHP_METHOD(Phalcon_Cli_Router_Route, compilePattern) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &pattern_param); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(&pattern, pattern_param); } else { ZEPHIR_INIT_VAR(&pattern); @@ -46065,11 +44552,11 @@ static PHP_METHOD(Phalcon_Cli_Router_Route, extractNamedParams) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &pattern_param); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(&pattern, pattern_param); } else { ZEPHIR_INIT_VAR(&pattern); @@ -46303,11 +44790,11 @@ static PHP_METHOD(Phalcon_Cli_Router_Route, reConfigure) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &pattern_param, &paths); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(&pattern, pattern_param); } else { ZEPHIR_INIT_VAR(&pattern); @@ -46442,11 +44929,11 @@ static PHP_METHOD(Phalcon_Cli_Router_Route, setName) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(&name, name_param); } else { ZEPHIR_INIT_VAR(&name); @@ -46568,11 +45055,11 @@ static PHP_METHOD(Phalcon_Cli_Router_Route, convert) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &name_param, &converter); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(&name, name_param); } else { ZEPHIR_INIT_VAR(&name); @@ -46621,11 +45108,11 @@ static PHP_METHOD(Phalcon_Cli_Router_Route, delimiter) { ZEPHIR_INIT_VAR(&delimiter); ZVAL_STRING(&delimiter, ""); } else { - if (unlikely(Z_TYPE_P(delimiter_param) != IS_STRING && Z_TYPE_P(delimiter_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(delimiter_param) != IS_STRING && Z_TYPE_P(delimiter_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'delimiter' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(delimiter_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(delimiter_param) == IS_STRING)) { zephir_get_strval(&delimiter, delimiter_param); } else { ZEPHIR_INIT_VAR(&delimiter); @@ -46765,11 +45252,11 @@ static PHP_METHOD(Phalcon_Config_Adapter_Ini, __construct) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &filePath_param, &mode); - if (unlikely(Z_TYPE_P(filePath_param) != IS_STRING && Z_TYPE_P(filePath_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(filePath_param) != IS_STRING && Z_TYPE_P(filePath_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'filePath' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(filePath_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(filePath_param) == IS_STRING)) { zephir_get_strval(&filePath, filePath_param); } else { ZEPHIR_INIT_VAR(&filePath); @@ -46787,7 +45274,7 @@ static PHP_METHOD(Phalcon_Config_Adapter_Ini, __construct) { ZEPHIR_INIT_NVAR(mode); ZVAL_LONG(mode, 1); } - ZEPHIR_CALL_FUNCTION(&iniConfig, "parse_ini_file", NULL, 133, &filePath, &__$true, mode); + ZEPHIR_CALL_FUNCTION(&iniConfig, "parse_ini_file", NULL, 121, &filePath, &__$true, mode); zephir_check_call_status(); if (ZEPHIR_IS_FALSE_IDENTICAL(&iniConfig)) { ZEPHIR_INIT_VAR(&_0$$4); @@ -46796,7 +45283,7 @@ static PHP_METHOD(Phalcon_Config_Adapter_Ini, __construct) { zephir_basename(&_1$$4, &filePath TSRMLS_CC); ZEPHIR_INIT_VAR(&_2$$4); ZEPHIR_CONCAT_SVS(&_2$$4, "Configuration file ", &_1$$4, " can't be loaded"); - ZEPHIR_CALL_METHOD(NULL, &_0$$4, "__construct", NULL, 9, &_2$$4); + ZEPHIR_CALL_METHOD(NULL, &_0$$4, "__construct", NULL, 4, &_2$$4); zephir_check_call_status(); zephir_throw_exception_debug(&_0$$4, "phalcon/config/adapter/ini.zep", 85 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -46852,7 +45339,7 @@ static PHP_METHOD(Phalcon_Config_Adapter_Ini, __construct) { } ZEND_HASH_FOREACH_END(); ZEPHIR_INIT_NVAR(&directives); ZEPHIR_INIT_NVAR(§ion); - ZEPHIR_CALL_PARENT(NULL, phalcon_config_adapter_ini_ce, this_ptr, "__construct", &_16, 19, &config); + ZEPHIR_CALL_PARENT(NULL, phalcon_config_adapter_ini_ce, this_ptr, "__construct", &_16, 0, &config); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -46878,11 +45365,11 @@ static PHP_METHOD(Phalcon_Config_Adapter_Ini, _parseIniString) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &path_param, &value); - if (unlikely(Z_TYPE_P(path_param) != IS_STRING && Z_TYPE_P(path_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(path_param) != IS_STRING && Z_TYPE_P(path_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'path' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(path_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(path_param) == IS_STRING)) { zephir_get_strval(&path, path_param); } else { ZEPHIR_INIT_VAR(&path); @@ -46911,7 +45398,7 @@ static PHP_METHOD(Phalcon_Config_Adapter_Ini, _parseIniString) { zephir_substr(&_4, &path, zephir_get_intval(&_3), 0, ZEPHIR_SUBSTR_NO_LENGTH); zephir_get_strval(&path, &_4); zephir_create_array(return_value, 1, 0 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_0, this_ptr, "_parseinistring", NULL, 134, &path, value); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "_parseinistring", NULL, 122, &path, value); zephir_check_call_status(); zephir_array_update_zval(return_value, &key, &_0, PH_COPY); RETURN_MM(); @@ -46956,7 +45443,7 @@ static PHP_METHOD(Phalcon_Config_Adapter_Ini, _cast) { } ZEPHIR_INIT_NVAR(&val); ZVAL_COPY(&val, _0$$3); - ZEPHIR_CALL_METHOD(&_3$$4, this_ptr, "_cast", &_4, 135, &val); + ZEPHIR_CALL_METHOD(&_3$$4, this_ptr, "_cast", &_4, 123, &val); zephir_check_call_status(); zephir_array_update_zval(ini, &key, &_3$$4, PH_COPY | PH_SEPARATE); } ZEND_HASH_FOREACH_END(); @@ -47045,11 +45532,11 @@ static PHP_METHOD(Phalcon_Config_Adapter_Json, __construct) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &filePath_param); - if (unlikely(Z_TYPE_P(filePath_param) != IS_STRING && Z_TYPE_P(filePath_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(filePath_param) != IS_STRING && Z_TYPE_P(filePath_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'filePath' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(filePath_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(filePath_param) == IS_STRING)) { zephir_get_strval(&filePath, filePath_param); } else { ZEPHIR_INIT_VAR(&filePath); @@ -47061,7 +45548,7 @@ static PHP_METHOD(Phalcon_Config_Adapter_Json, __construct) { ZEPHIR_INIT_VAR(&_2); zephir_file_get_contents(&_2, &filePath TSRMLS_CC); zephir_json_decode(&_1, &_2, zephir_get_intval(&__$true) ); - ZEPHIR_CALL_PARENT(NULL, phalcon_config_adapter_json_ce, this_ptr, "__construct", &_0, 19, &_1); + ZEPHIR_CALL_PARENT(NULL, phalcon_config_adapter_json_ce, this_ptr, "__construct", &_0, 0, &_1); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -47099,11 +45586,11 @@ static PHP_METHOD(Phalcon_Config_Adapter_Php, __construct) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &filePath_param); - if (unlikely(Z_TYPE_P(filePath_param) != IS_STRING && Z_TYPE_P(filePath_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(filePath_param) != IS_STRING && Z_TYPE_P(filePath_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'filePath' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(filePath_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(filePath_param) == IS_STRING)) { zephir_get_strval(&filePath, filePath_param); } else { ZEPHIR_INIT_VAR(&filePath); @@ -47115,7 +45602,7 @@ static PHP_METHOD(Phalcon_Config_Adapter_Php, __construct) { if (zephir_require_zval_ret(&_1, &filePath TSRMLS_CC) == FAILURE) { RETURN_MM_NULL(); } - ZEPHIR_CALL_PARENT(NULL, phalcon_config_adapter_php_ce, this_ptr, "__construct", &_0, 19, &_1); + ZEPHIR_CALL_PARENT(NULL, phalcon_config_adapter_php_ce, this_ptr, "__construct", &_0, 0, &_1); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -47162,11 +45649,11 @@ static PHP_METHOD(Phalcon_Config_Adapter_Yaml, __construct) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &filePath_param, &callbacks_param); - if (unlikely(Z_TYPE_P(filePath_param) != IS_STRING && Z_TYPE_P(filePath_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(filePath_param) != IS_STRING && Z_TYPE_P(filePath_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'filePath' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(filePath_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(filePath_param) == IS_STRING)) { zephir_get_strval(&filePath, filePath_param); } else { ZEPHIR_INIT_VAR(&filePath); @@ -47183,7 +45670,7 @@ static PHP_METHOD(Phalcon_Config_Adapter_Yaml, __construct) { ndocs = 0; ZEPHIR_INIT_VAR(&_0); ZVAL_STRING(&_0, "yaml"); - ZEPHIR_CALL_FUNCTION(&_1, "extension_loaded", NULL, 136, &_0); + ZEPHIR_CALL_FUNCTION(&_1, "extension_loaded", NULL, 124, &_0); zephir_check_call_status(); if (!(zephir_is_true(&_1))) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_config_exception_ce, "Yaml extension not loaded", "phalcon/config/adapter/yaml.zep", 76); @@ -47193,11 +45680,11 @@ static PHP_METHOD(Phalcon_Config_Adapter_Yaml, __construct) { ZVAL_LONG(&_2$$4, 0); ZVAL_LONG(&_3$$4, ndocs); ZEPHIR_MAKE_REF(&_3$$4); - ZEPHIR_CALL_FUNCTION(&yamlConfig, "yaml_parse_file", &_4, 137, &filePath, &_2$$4, &_3$$4, &callbacks); + ZEPHIR_CALL_FUNCTION(&yamlConfig, "yaml_parse_file", &_4, 125, &filePath, &_2$$4, &_3$$4, &callbacks); ZEPHIR_UNREF(&_3$$4); zephir_check_call_status(); } else { - ZEPHIR_CALL_FUNCTION(&yamlConfig, "yaml_parse_file", &_4, 137, &filePath); + ZEPHIR_CALL_FUNCTION(&yamlConfig, "yaml_parse_file", &_4, 125, &filePath); zephir_check_call_status(); } if (ZEPHIR_IS_FALSE_IDENTICAL(&yamlConfig)) { @@ -47207,13 +45694,13 @@ static PHP_METHOD(Phalcon_Config_Adapter_Yaml, __construct) { zephir_basename(&_6$$6, &filePath TSRMLS_CC); ZEPHIR_INIT_VAR(&_7$$6); ZEPHIR_CONCAT_SVS(&_7$$6, "Configuration file ", &_6$$6, " can't be loaded"); - ZEPHIR_CALL_METHOD(NULL, &_5$$6, "__construct", NULL, 9, &_7$$6); + ZEPHIR_CALL_METHOD(NULL, &_5$$6, "__construct", NULL, 4, &_7$$6); zephir_check_call_status(); zephir_throw_exception_debug(&_5$$6, "phalcon/config/adapter/yaml.zep", 86 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } - ZEPHIR_CALL_PARENT(NULL, phalcon_config_adapter_yaml_ce, this_ptr, "__construct", &_8, 19, &yamlConfig); + ZEPHIR_CALL_PARENT(NULL, phalcon_config_adapter_yaml_ce, this_ptr, "__construct", &_8, 0, &yamlConfig); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -47429,11 +45916,11 @@ static PHP_METHOD(Phalcon_Db_Adapter, fetchOne) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 3, &sqlQuery_param, &fetchMode, &bindParams, &bindTypes); - if (unlikely(Z_TYPE_P(sqlQuery_param) != IS_STRING && Z_TYPE_P(sqlQuery_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(sqlQuery_param) != IS_STRING && Z_TYPE_P(sqlQuery_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'sqlQuery' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(sqlQuery_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(sqlQuery_param) == IS_STRING)) { zephir_get_strval(&sqlQuery, sqlQuery_param); } else { ZEPHIR_INIT_VAR(&sqlQuery); @@ -47625,7 +46112,7 @@ static PHP_METHOD(Phalcon_Db_Adapter, insert) { object_init_ex(&_0$$3, phalcon_db_exception_ce); ZEPHIR_INIT_VAR(&_1$$3); ZEPHIR_CONCAT_SVS(&_1$$3, "Unable to insert into ", table, " without data"); - ZEPHIR_CALL_METHOD(NULL, &_0$$3, "__construct", NULL, 9, &_1$$3); + ZEPHIR_CALL_METHOD(NULL, &_0$$3, "__construct", NULL, 4, &_1$$3); zephir_check_call_status(); zephir_throw_exception_debug(&_0$$3, "phalcon/db/adapter.zep", 319 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -48091,11 +46578,11 @@ static PHP_METHOD(Phalcon_Db_Adapter, limit) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &sqlQuery_param, &number_param); - if (unlikely(Z_TYPE_P(sqlQuery_param) != IS_STRING && Z_TYPE_P(sqlQuery_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(sqlQuery_param) != IS_STRING && Z_TYPE_P(sqlQuery_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'sqlQuery' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(sqlQuery_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(sqlQuery_param) == IS_STRING)) { zephir_get_strval(&sqlQuery, sqlQuery_param); } else { ZEPHIR_INIT_VAR(&sqlQuery); @@ -48130,11 +46617,11 @@ static PHP_METHOD(Phalcon_Db_Adapter, tableExists) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &tableName_param, &schemaName_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(&tableName, tableName_param); } else { ZEPHIR_INIT_VAR(&tableName); @@ -48144,11 +46631,11 @@ static PHP_METHOD(Phalcon_Db_Adapter, tableExists) { ZEPHIR_INIT_VAR(&schemaName); ZVAL_STRING(&schemaName, ""); } else { - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(&schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(&schemaName); @@ -48186,11 +46673,11 @@ static PHP_METHOD(Phalcon_Db_Adapter, viewExists) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &viewName_param, &schemaName_param); - if (unlikely(Z_TYPE_P(viewName_param) != IS_STRING && Z_TYPE_P(viewName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(viewName_param) != IS_STRING && Z_TYPE_P(viewName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'viewName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(viewName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(viewName_param) == IS_STRING)) { zephir_get_strval(&viewName, viewName_param); } else { ZEPHIR_INIT_VAR(&viewName); @@ -48200,11 +46687,11 @@ static PHP_METHOD(Phalcon_Db_Adapter, viewExists) { ZEPHIR_INIT_VAR(&schemaName); ZVAL_STRING(&schemaName, ""); } else { - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(&schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(&schemaName); @@ -48237,11 +46724,11 @@ static PHP_METHOD(Phalcon_Db_Adapter, forUpdate) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &sqlQuery_param); - if (unlikely(Z_TYPE_P(sqlQuery_param) != IS_STRING && Z_TYPE_P(sqlQuery_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(sqlQuery_param) != IS_STRING && Z_TYPE_P(sqlQuery_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'sqlQuery' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(sqlQuery_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(sqlQuery_param) == IS_STRING)) { zephir_get_strval(&sqlQuery, sqlQuery_param); } else { ZEPHIR_INIT_VAR(&sqlQuery); @@ -48269,11 +46756,11 @@ static PHP_METHOD(Phalcon_Db_Adapter, sharedLock) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &sqlQuery_param); - if (unlikely(Z_TYPE_P(sqlQuery_param) != IS_STRING && Z_TYPE_P(sqlQuery_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(sqlQuery_param) != IS_STRING && Z_TYPE_P(sqlQuery_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'sqlQuery' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(sqlQuery_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(sqlQuery_param) == IS_STRING)) { zephir_get_strval(&sqlQuery, sqlQuery_param); } else { ZEPHIR_INIT_VAR(&sqlQuery); @@ -48306,21 +46793,21 @@ static PHP_METHOD(Phalcon_Db_Adapter, createTable) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &definition_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(&tableName, tableName_param); } else { ZEPHIR_INIT_VAR(&tableName); ZVAL_EMPTY_STRING(&tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(&schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(&schemaName); @@ -48364,11 +46851,11 @@ static PHP_METHOD(Phalcon_Db_Adapter, dropTable) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &tableName_param, &schemaName_param, &ifExists_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(&tableName, tableName_param); } else { ZEPHIR_INIT_VAR(&tableName); @@ -48378,11 +46865,11 @@ static PHP_METHOD(Phalcon_Db_Adapter, dropTable) { ZEPHIR_INIT_VAR(&schemaName); ZVAL_STRING(&schemaName, ""); } else { - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(&schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(&schemaName); @@ -48428,11 +46915,11 @@ static PHP_METHOD(Phalcon_Db_Adapter, createView) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 1, &viewName_param, &definition_param, &schemaName); - if (unlikely(Z_TYPE_P(viewName_param) != IS_STRING && Z_TYPE_P(viewName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(viewName_param) != IS_STRING && Z_TYPE_P(viewName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'viewName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(viewName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(viewName_param) == IS_STRING)) { zephir_get_strval(&viewName, viewName_param); } else { ZEPHIR_INIT_VAR(&viewName); @@ -48475,11 +46962,11 @@ static PHP_METHOD(Phalcon_Db_Adapter, dropView) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &viewName_param, &schemaName_param, &ifExists_param); - if (unlikely(Z_TYPE_P(viewName_param) != IS_STRING && Z_TYPE_P(viewName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(viewName_param) != IS_STRING && Z_TYPE_P(viewName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'viewName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(viewName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(viewName_param) == IS_STRING)) { zephir_get_strval(&viewName, viewName_param); } else { ZEPHIR_INIT_VAR(&viewName); @@ -48489,11 +46976,11 @@ static PHP_METHOD(Phalcon_Db_Adapter, dropView) { ZEPHIR_INIT_VAR(&schemaName); ZVAL_STRING(&schemaName, ""); } else { - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(&schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(&schemaName); @@ -48537,21 +47024,21 @@ static PHP_METHOD(Phalcon_Db_Adapter, addColumn) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &column); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(&tableName, tableName_param); } else { ZEPHIR_INIT_VAR(&tableName); ZVAL_EMPTY_STRING(&tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(&schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(&schemaName); @@ -48586,21 +47073,21 @@ static PHP_METHOD(Phalcon_Db_Adapter, modifyColumn) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 1, &tableName_param, &schemaName_param, &column, ¤tColumn); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(&tableName, tableName_param); } else { ZEPHIR_INIT_VAR(&tableName); ZVAL_EMPTY_STRING(&tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(&schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(&schemaName); @@ -48637,21 +47124,21 @@ static PHP_METHOD(Phalcon_Db_Adapter, dropColumn) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &columnName_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(&tableName, tableName_param); } else { ZEPHIR_INIT_VAR(&tableName); ZVAL_EMPTY_STRING(&tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(&schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(&schemaName); @@ -48685,21 +47172,21 @@ static PHP_METHOD(Phalcon_Db_Adapter, addIndex) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &index); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(&tableName, tableName_param); } else { ZEPHIR_INIT_VAR(&tableName); ZVAL_EMPTY_STRING(&tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(&schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(&schemaName); @@ -48732,21 +47219,21 @@ static PHP_METHOD(Phalcon_Db_Adapter, dropIndex) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &indexName); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(&tableName, tableName_param); } else { ZEPHIR_INIT_VAR(&tableName); ZVAL_EMPTY_STRING(&tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(&schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(&schemaName); @@ -48779,21 +47266,21 @@ static PHP_METHOD(Phalcon_Db_Adapter, addPrimaryKey) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &index); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(&tableName, tableName_param); } else { ZEPHIR_INIT_VAR(&tableName); ZVAL_EMPTY_STRING(&tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(&schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(&schemaName); @@ -48825,21 +47312,21 @@ static PHP_METHOD(Phalcon_Db_Adapter, dropPrimaryKey) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &tableName_param, &schemaName_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(&tableName, tableName_param); } else { ZEPHIR_INIT_VAR(&tableName); ZVAL_EMPTY_STRING(&tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(&schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(&schemaName); @@ -48872,21 +47359,21 @@ static PHP_METHOD(Phalcon_Db_Adapter, addForeignKey) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &reference); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(&tableName, tableName_param); } else { ZEPHIR_INIT_VAR(&tableName); ZVAL_EMPTY_STRING(&tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(&schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(&schemaName); @@ -48919,31 +47406,31 @@ static PHP_METHOD(Phalcon_Db_Adapter, dropForeignKey) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &referenceName_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(&tableName, tableName_param); } else { ZEPHIR_INIT_VAR(&tableName); ZVAL_EMPTY_STRING(&tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(&schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(&schemaName); ZVAL_EMPTY_STRING(&schemaName); } - if (unlikely(Z_TYPE_P(referenceName_param) != IS_STRING && Z_TYPE_P(referenceName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(referenceName_param) != IS_STRING && Z_TYPE_P(referenceName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'referenceName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(referenceName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(referenceName_param) == IS_STRING)) { zephir_get_strval(&referenceName, referenceName_param); } else { ZEPHIR_INIT_VAR(&referenceName); @@ -49004,11 +47491,11 @@ static PHP_METHOD(Phalcon_Db_Adapter, listTables) { ZEPHIR_INIT_VAR(&schemaName); ZVAL_STRING(&schemaName, ""); } else { - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(&schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(&schemaName); @@ -49061,11 +47548,11 @@ static PHP_METHOD(Phalcon_Db_Adapter, listViews) { ZEPHIR_INIT_VAR(&schemaName); ZVAL_STRING(&schemaName, ""); } else { - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(&schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(&schemaName); @@ -49125,11 +47612,11 @@ static PHP_METHOD(Phalcon_Db_Adapter, describeIndexes) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &table_param, &schema); - if (unlikely(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'table' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(table_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(table_param) == IS_STRING)) { zephir_get_strval(&table, table_param); } else { ZEPHIR_INIT_VAR(&table); @@ -49182,7 +47669,7 @@ static PHP_METHOD(Phalcon_Db_Adapter, describeIndexes) { ZVAL_COPY(&indexColumns, _6); ZEPHIR_INIT_NVAR(&_9$$6); object_init_ex(&_9$$6, phalcon_db_index_ce); - ZEPHIR_CALL_METHOD(NULL, &_9$$6, "__construct", &_10, 22, &name, &indexColumns); + ZEPHIR_CALL_METHOD(NULL, &_9$$6, "__construct", &_10, 17, &name, &indexColumns); zephir_check_call_status(); zephir_array_update_zval(&indexObjects, &name, &_9$$6, PH_COPY | PH_SEPARATE); } ZEND_HASH_FOREACH_END(); @@ -49233,11 +47720,11 @@ static PHP_METHOD(Phalcon_Db_Adapter, describeReferences) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &table_param, &schema_param); - if (unlikely(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'table' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(table_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(table_param) == IS_STRING)) { zephir_get_strval(&table, table_param); } else { ZEPHIR_INIT_VAR(&table); @@ -49247,11 +47734,11 @@ static PHP_METHOD(Phalcon_Db_Adapter, describeReferences) { ZEPHIR_INIT_VAR(&schema); ZVAL_STRING(&schema, ""); } else { - if (unlikely(Z_TYPE_P(schema_param) != IS_STRING && Z_TYPE_P(schema_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schema_param) != IS_STRING && Z_TYPE_P(schema_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schema' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schema_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schema_param) == IS_STRING)) { zephir_get_strval(&schema, schema_param); } else { ZEPHIR_INIT_VAR(&schema); @@ -49339,7 +47826,7 @@ static PHP_METHOD(Phalcon_Db_Adapter, describeReferences) { ZEPHIR_OBS_NVAR(&_17$$6); zephir_array_fetch_string(&_17$$6, &arrayReference, SL("referencedColumns"), PH_NOISY, "phalcon/db/adapter.zep", 985 TSRMLS_CC); zephir_array_update_string(&_16$$6, SL("referencedColumns"), &_17$$6, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(NULL, &_15$$6, "__construct", &_18, 23, &name, &_16$$6); + ZEPHIR_CALL_METHOD(NULL, &_15$$6, "__construct", &_18, 18, &name, &_16$$6); zephir_check_call_status(); zephir_array_update_zval(&referenceObjects, &name, &_15$$6, PH_COPY | PH_SEPARATE); } ZEND_HASH_FOREACH_END(); @@ -49367,11 +47854,11 @@ static PHP_METHOD(Phalcon_Db_Adapter, tableOptions) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &tableName_param, &schemaName_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(&tableName, tableName_param); } else { ZEPHIR_INIT_VAR(&tableName); @@ -49415,11 +47902,11 @@ static PHP_METHOD(Phalcon_Db_Adapter, createSavepoint) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(&name, name_param); } else { ZEPHIR_INIT_VAR(&name); @@ -49459,11 +47946,11 @@ static PHP_METHOD(Phalcon_Db_Adapter, releaseSavepoint) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(&name, name_param); } else { ZEPHIR_INIT_VAR(&name); @@ -49507,11 +47994,11 @@ static PHP_METHOD(Phalcon_Db_Adapter, rollbackSavepoint) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(&name, name_param); } else { ZEPHIR_INIT_VAR(&name); @@ -49611,7 +48098,7 @@ static PHP_METHOD(Phalcon_Db_Adapter, getDefaultIdValue) { object_init_ex(return_value, phalcon_db_rawvalue_ce); ZEPHIR_INIT_VAR(&_0); ZVAL_STRING(&_0, "null"); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 24, &_0); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 19, &_0); zephir_check_call_status(); RETURN_MM(); @@ -49630,7 +48117,7 @@ static PHP_METHOD(Phalcon_Db_Adapter, getDefaultValue) { object_init_ex(return_value, phalcon_db_rawvalue_ce); ZEPHIR_INIT_VAR(&_0); ZVAL_STRING(&_0, "DEFAULT"); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 24, &_0); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 19, &_0); zephir_check_call_status(); RETURN_MM(); @@ -50066,11 +48553,11 @@ static PHP_METHOD(Phalcon_Db_Column, __construct) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &name_param, &definition_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(&name, name_param); } else { ZEPHIR_INIT_VAR(&name); @@ -50337,7 +48824,7 @@ static PHP_METHOD(Phalcon_Db_Column, __set_state) { zephir_array_update_string(&definition, SL("bindType"), &bindType, PH_COPY | PH_SEPARATE); } object_init_ex(return_value, phalcon_db_column_ce); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 148, &columnName, &definition); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 136, &columnName, &definition); zephir_check_call_status(); RETURN_MM(); @@ -50485,11 +48972,11 @@ static PHP_METHOD(Phalcon_Db_Dialect, escapeSchema) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &str_param, &escapeChar_param); - if (unlikely(Z_TYPE_P(str_param) != IS_STRING && Z_TYPE_P(str_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(str_param) != IS_STRING && Z_TYPE_P(str_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'str' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(str_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(str_param) == IS_STRING)) { zephir_get_strval(&str, str_param); } else { ZEPHIR_INIT_VAR(&str); @@ -50549,11 +49036,11 @@ static PHP_METHOD(Phalcon_Db_Dialect, escape) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &str_param, &escapeChar_param); - if (unlikely(Z_TYPE_P(str_param) != IS_STRING && Z_TYPE_P(str_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(str_param) != IS_STRING && Z_TYPE_P(str_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'str' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(str_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(str_param) == IS_STRING)) { zephir_get_strval(&str, str_param); } else { ZEPHIR_INIT_VAR(&str); @@ -50653,11 +49140,11 @@ static PHP_METHOD(Phalcon_Db_Dialect, limit) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &sqlQuery_param, &number); - if (unlikely(Z_TYPE_P(sqlQuery_param) != IS_STRING && Z_TYPE_P(sqlQuery_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(sqlQuery_param) != IS_STRING && Z_TYPE_P(sqlQuery_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'sqlQuery' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(sqlQuery_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(sqlQuery_param) == IS_STRING)) { zephir_get_strval(&sqlQuery, sqlQuery_param); } else { ZEPHIR_INIT_VAR(&sqlQuery); @@ -50699,11 +49186,11 @@ static PHP_METHOD(Phalcon_Db_Dialect, forUpdate) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &sqlQuery_param); - if (unlikely(Z_TYPE_P(sqlQuery_param) != IS_STRING && Z_TYPE_P(sqlQuery_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(sqlQuery_param) != IS_STRING && Z_TYPE_P(sqlQuery_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'sqlQuery' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(sqlQuery_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(sqlQuery_param) == IS_STRING)) { zephir_get_strval(&sqlQuery, sqlQuery_param); } else { ZEPHIR_INIT_VAR(&sqlQuery); @@ -50727,11 +49214,11 @@ static PHP_METHOD(Phalcon_Db_Dialect, sharedLock) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &sqlQuery_param); - if (unlikely(Z_TYPE_P(sqlQuery_param) != IS_STRING && Z_TYPE_P(sqlQuery_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(sqlQuery_param) != IS_STRING && Z_TYPE_P(sqlQuery_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'sqlQuery' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(sqlQuery_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(sqlQuery_param) == IS_STRING)) { zephir_get_strval(&sqlQuery, sqlQuery_param); } else { ZEPHIR_INIT_VAR(&sqlQuery); @@ -50784,7 +49271,7 @@ static PHP_METHOD(Phalcon_Db_Dialect, getColumnList) { { ZEPHIR_INIT_NVAR(&column); ZVAL_COPY(&column, _0); - ZEPHIR_CALL_METHOD(&_1$$3, this_ptr, "getsqlcolumn", &_2, 40, &column, &escapeChar, bindCounts); + ZEPHIR_CALL_METHOD(&_1$$3, this_ptr, "getsqlcolumn", &_2, 34, &column, &escapeChar, bindCounts); zephir_check_call_status(); zephir_array_append(&columns, &_1$$3, PH_SEPARATE, "phalcon/db/dialect.zep", 179); } ZEND_HASH_FOREACH_END(); @@ -50947,17 +49434,17 @@ static PHP_METHOD(Phalcon_Db_Dialect, getSqlExpression) { } do { if (ZEPHIR_IS_STRING(&type, "scalar")) { - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "getsqlexpressionscalar", NULL, 41, &expression, &escapeChar, bindCounts); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "getsqlexpressionscalar", NULL, 35, &expression, &escapeChar, bindCounts); zephir_check_call_status(); RETURN_MM(); } if (ZEPHIR_IS_STRING(&type, "object")) { - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "getsqlexpressionobject", NULL, 42, &expression, &escapeChar, bindCounts); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "getsqlexpressionobject", NULL, 36, &expression, &escapeChar, bindCounts); zephir_check_call_status(); RETURN_MM(); } if (ZEPHIR_IS_STRING(&type, "qualified")) { - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "getsqlexpressionqualified", NULL, 43, &expression, &escapeChar); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "getsqlexpressionqualified", NULL, 37, &expression, &escapeChar); zephir_check_call_status(); RETURN_MM(); } @@ -51006,34 +49493,34 @@ static PHP_METHOD(Phalcon_Db_Dialect, getSqlExpression) { RETURN_CTOR(_6$$8); } if (ZEPHIR_IS_STRING(&type, "binary-op")) { - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "getsqlexpressionbinaryoperations", NULL, 44, &expression, &escapeChar, bindCounts); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "getsqlexpressionbinaryoperations", NULL, 38, &expression, &escapeChar, bindCounts); zephir_check_call_status(); RETURN_MM(); } if (ZEPHIR_IS_STRING(&type, "unary-op")) { - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "getsqlexpressionunaryoperations", NULL, 45, &expression, &escapeChar, bindCounts); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "getsqlexpressionunaryoperations", NULL, 39, &expression, &escapeChar, bindCounts); zephir_check_call_status(); RETURN_MM(); } if (ZEPHIR_IS_STRING(&type, "parentheses")) { zephir_array_fetch_string(&_8$$14, &expression, SL("left"), PH_NOISY | PH_READONLY, "phalcon/db/dialect.zep", 326 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_7$$14, this_ptr, "getsqlexpression", NULL, 46, &_8$$14, &escapeChar, bindCounts); + ZEPHIR_CALL_METHOD(&_7$$14, this_ptr, "getsqlexpression", NULL, 40, &_8$$14, &escapeChar, bindCounts); zephir_check_call_status(); ZEPHIR_CONCAT_SVS(return_value, "(", &_7$$14, ")"); RETURN_MM(); } if (ZEPHIR_IS_STRING(&type, "functionCall")) { - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "getsqlexpressionfunctioncall", NULL, 47, &expression, &escapeChar, bindCounts); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "getsqlexpressionfunctioncall", NULL, 41, &expression, &escapeChar, bindCounts); zephir_check_call_status(); RETURN_MM(); } if (ZEPHIR_IS_STRING(&type, "list")) { - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "getsqlexpressionlist", NULL, 48, &expression, &escapeChar, bindCounts); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "getsqlexpressionlist", NULL, 42, &expression, &escapeChar, bindCounts); zephir_check_call_status(); RETURN_MM(); } if (ZEPHIR_IS_STRING(&type, "all")) { - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "getsqlexpressionall", NULL, 49, &expression, &escapeChar); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "getsqlexpressionall", NULL, 43, &expression, &escapeChar); zephir_check_call_status(); RETURN_MM(); } @@ -51045,17 +49532,17 @@ static PHP_METHOD(Phalcon_Db_Dialect, getSqlExpression) { RETURN_MM(); } if (ZEPHIR_IS_STRING(&type, "cast")) { - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "getsqlexpressioncastvalue", NULL, 50, &expression, &escapeChar, bindCounts); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "getsqlexpressioncastvalue", NULL, 44, &expression, &escapeChar, bindCounts); zephir_check_call_status(); RETURN_MM(); } if (ZEPHIR_IS_STRING(&type, "convert")) { - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "getsqlexpressionconvertvalue", NULL, 51, &expression, &escapeChar, bindCounts); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "getsqlexpressionconvertvalue", NULL, 45, &expression, &escapeChar, bindCounts); zephir_check_call_status(); RETURN_MM(); } if (ZEPHIR_IS_STRING(&type, "case")) { - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "getsqlexpressioncase", NULL, 52, &expression, &escapeChar, bindCounts); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "getsqlexpressioncase", NULL, 46, &expression, &escapeChar, bindCounts); zephir_check_call_status(); RETURN_MM(); } @@ -51065,7 +49552,7 @@ static PHP_METHOD(Phalcon_Db_Dialect, getSqlExpression) { object_init_ex(&_11, phalcon_db_exception_ce); ZEPHIR_INIT_VAR(&_12); ZEPHIR_CONCAT_SVS(&_12, "Invalid SQL expression type '", &type, "'"); - ZEPHIR_CALL_METHOD(NULL, &_11, "__construct", NULL, 9, &_12); + ZEPHIR_CALL_METHOD(NULL, &_11, "__construct", NULL, 4, &_12); zephir_check_call_status(); zephir_throw_exception_debug(&_11, "phalcon/db/dialect.zep", 371 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -51108,7 +49595,7 @@ static PHP_METHOD(Phalcon_Db_Dialect, getSqlTable) { zephir_check_call_status(); RETURN_MM(); } - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "escape", NULL, 53, table, &escapeChar); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "escape", NULL, 47, table, &escapeChar); zephir_check_call_status(); RETURN_MM(); @@ -51185,12 +49672,12 @@ static PHP_METHOD(Phalcon_Db_Dialect, select) { zephir_array_isset_string_fetch(&bindCounts, &definition, SL("bindCounts"), 0); ZEPHIR_OBS_VAR(&escapeChar); zephir_read_property(&escapeChar, this_ptr, SL("_escapeChar"), PH_NOISY_CC); - ZEPHIR_CALL_METHOD(&_0, this_ptr, "getcolumnlist", NULL, 54, &columns, &escapeChar, &bindCounts); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "getcolumnlist", NULL, 48, &columns, &escapeChar, &bindCounts); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_1); ZEPHIR_CONCAT_SV(&_1, " ", &_0); zephir_concat_self(&sql, &_1 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_2, this_ptr, "getsqlexpressionfrom", NULL, 55, &tables, &escapeChar); + ZEPHIR_CALL_METHOD(&_2, this_ptr, "getsqlexpressionfrom", NULL, 49, &tables, &escapeChar); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_3); ZEPHIR_CONCAT_SV(&_3, " ", &_2); @@ -51202,7 +49689,7 @@ static PHP_METHOD(Phalcon_Db_Dialect, select) { } if (_4) { zephir_array_fetch_string(&_6$$9, &definition, SL("joins"), PH_NOISY | PH_READONLY, "phalcon/db/dialect.zep", 450 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_5$$9, this_ptr, "getsqlexpressionjoins", NULL, 56, &_6$$9, &escapeChar, &bindCounts); + ZEPHIR_CALL_METHOD(&_5$$9, this_ptr, "getsqlexpressionjoins", NULL, 50, &_6$$9, &escapeChar, &bindCounts); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_7$$9); ZEPHIR_CONCAT_SV(&_7$$9, " ", &_5$$9); @@ -51214,7 +49701,7 @@ static PHP_METHOD(Phalcon_Db_Dialect, select) { _8 = zephir_is_true(&where); } if (_8) { - ZEPHIR_CALL_METHOD(&_9$$10, this_ptr, "getsqlexpressionwhere", NULL, 57, &where, &escapeChar, &bindCounts); + ZEPHIR_CALL_METHOD(&_9$$10, this_ptr, "getsqlexpressionwhere", NULL, 51, &where, &escapeChar, &bindCounts); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_10$$10); ZEPHIR_CONCAT_SV(&_10$$10, " ", &_9$$10); @@ -51226,7 +49713,7 @@ static PHP_METHOD(Phalcon_Db_Dialect, select) { _11 = zephir_is_true(&groupBy); } if (_11) { - ZEPHIR_CALL_METHOD(&_12$$11, this_ptr, "getsqlexpressiongroupby", NULL, 58, &groupBy, &escapeChar); + ZEPHIR_CALL_METHOD(&_12$$11, this_ptr, "getsqlexpressiongroupby", NULL, 52, &groupBy, &escapeChar); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_13$$11); ZEPHIR_CONCAT_SV(&_13$$11, " ", &_12$$11); @@ -51238,7 +49725,7 @@ static PHP_METHOD(Phalcon_Db_Dialect, select) { _14 = zephir_is_true(&having); } if (_14) { - ZEPHIR_CALL_METHOD(&_15$$12, this_ptr, "getsqlexpressionhaving", NULL, 59, &having, &escapeChar, &bindCounts); + ZEPHIR_CALL_METHOD(&_15$$12, this_ptr, "getsqlexpressionhaving", NULL, 53, &having, &escapeChar, &bindCounts); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_16$$12); ZEPHIR_CONCAT_SV(&_16$$12, " ", &_15$$12); @@ -51250,7 +49737,7 @@ static PHP_METHOD(Phalcon_Db_Dialect, select) { _17 = zephir_is_true(&orderBy); } if (_17) { - ZEPHIR_CALL_METHOD(&_18$$13, this_ptr, "getsqlexpressionorderby", NULL, 60, &orderBy, &escapeChar, &bindCounts); + ZEPHIR_CALL_METHOD(&_18$$13, this_ptr, "getsqlexpressionorderby", NULL, 54, &orderBy, &escapeChar, &bindCounts); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_19$$13); ZEPHIR_CONCAT_SV(&_19$$13, " ", &_18$$13); @@ -51266,7 +49753,7 @@ static PHP_METHOD(Phalcon_Db_Dialect, select) { zephir_create_array(&_21$$14, 2, 0 TSRMLS_CC); zephir_array_update_string(&_21$$14, SL("sql"), &sql, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_21$$14, SL("value"), &limit, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(&sql, this_ptr, "getsqlexpressionlimit", NULL, 61, &_21$$14, &escapeChar, &bindCounts); + ZEPHIR_CALL_METHOD(&sql, this_ptr, "getsqlexpressionlimit", NULL, 55, &_21$$14, &escapeChar, &bindCounts); zephir_check_call_status(); } _22 = zephir_array_isset_string_fetch(&forUpdate, &definition, SL("forUpdate"), 1); @@ -51314,11 +49801,11 @@ static PHP_METHOD(Phalcon_Db_Dialect, createSavepoint) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(&name, name_param); } else { ZEPHIR_INIT_VAR(&name); @@ -51342,11 +49829,11 @@ static PHP_METHOD(Phalcon_Db_Dialect, releaseSavepoint) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(&name, name_param); } else { ZEPHIR_INIT_VAR(&name); @@ -51370,11 +49857,11 @@ static PHP_METHOD(Phalcon_Db_Dialect, rollbackSavepoint) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(&name, name_param); } else { ZEPHIR_INIT_VAR(&name); @@ -51420,7 +49907,7 @@ static PHP_METHOD(Phalcon_Db_Dialect, getSqlExpressionScalar) { if (zephir_array_isset_string(&expression, SL("column"))) { zephir_array_fetch_string(&_0$$3, &expression, SL("column"), PH_NOISY | PH_READONLY, "phalcon/db/dialect.zep", 546 TSRMLS_CC); - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "getsqlcolumn", NULL, 40, &_0$$3); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "getsqlcolumn", NULL, 34, &_0$$3); zephir_check_call_status(); RETURN_MM(); } @@ -51571,7 +50058,7 @@ static PHP_METHOD(Phalcon_Db_Dialect, getSqlExpressionBinaryOperations) { ZEPHIR_CALL_METHOD(&left, this_ptr, "getsqlexpression", &_1, 0, &_0, &escapeChar, bindCounts); zephir_check_call_status(); zephir_array_fetch_string(&_2, &expression, SL("right"), PH_NOISY | PH_READONLY, "phalcon/db/dialect.zep", 604 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&right, this_ptr, "getsqlexpression", &_1, 46, &_2, &escapeChar, bindCounts); + ZEPHIR_CALL_METHOD(&right, this_ptr, "getsqlexpression", &_1, 40, &_2, &escapeChar, bindCounts); zephir_check_call_status(); zephir_array_fetch_string(&_3, &expression, SL("op"), PH_NOISY | PH_READONLY, "phalcon/db/dialect.zep", 606 TSRMLS_CC); ZEPHIR_CONCAT_VSVSV(return_value, &left, " ", &_3, " ", &right); @@ -51626,7 +50113,7 @@ static PHP_METHOD(Phalcon_Db_Dialect, getSqlExpressionUnaryOperations) { ZEPHIR_OBS_VAR(&right); if (zephir_array_isset_string_fetch(&right, &expression, SL("right"), 0)) { zephir_array_fetch_string(&_3$$4, &expression, SL("op"), PH_NOISY | PH_READONLY, "phalcon/db/dialect.zep", 627 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_4$$4, this_ptr, "getsqlexpression", &_1, 46, &right, &escapeChar, bindCounts); + ZEPHIR_CALL_METHOD(&_4$$4, this_ptr, "getsqlexpression", &_1, 40, &right, &escapeChar, bindCounts); zephir_check_call_status(); ZEPHIR_CONCAT_VSV(return_value, &_3$$4, " ", &_4$$4); RETURN_MM(); @@ -51866,7 +50353,7 @@ static PHP_METHOD(Phalcon_Db_Dialect, getSqlExpressionCastValue) { ZEPHIR_CALL_METHOD(&left, this_ptr, "getsqlexpression", &_1, 0, &_0, &escapeChar, bindCounts); zephir_check_call_status(); zephir_array_fetch_string(&_2, &expression, SL("right"), PH_NOISY | PH_READONLY, "phalcon/db/dialect.zep", 714 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&right, this_ptr, "getsqlexpression", &_1, 46, &_2, &escapeChar, bindCounts); + ZEPHIR_CALL_METHOD(&right, this_ptr, "getsqlexpression", &_1, 40, &_2, &escapeChar, bindCounts); zephir_check_call_status(); ZEPHIR_CONCAT_SVSVS(return_value, "CAST(", &left, " AS ", &right, ")"); RETURN_MM(); @@ -51911,7 +50398,7 @@ static PHP_METHOD(Phalcon_Db_Dialect, getSqlExpressionConvertValue) { ZEPHIR_CALL_METHOD(&left, this_ptr, "getsqlexpression", &_1, 0, &_0, &escapeChar, bindCounts); zephir_check_call_status(); zephir_array_fetch_string(&_2, &expression, SL("right"), PH_NOISY | PH_READONLY, "phalcon/db/dialect.zep", 727 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&right, this_ptr, "getsqlexpression", &_1, 46, &_2, &escapeChar, bindCounts); + ZEPHIR_CALL_METHOD(&right, this_ptr, "getsqlexpression", &_1, 40, &_2, &escapeChar, bindCounts); zephir_check_call_status(); ZEPHIR_CONCAT_SVSVS(return_value, "CONVERT(", &left, " USING ", &right, ")"); RETURN_MM(); @@ -51976,17 +50463,17 @@ static PHP_METHOD(Phalcon_Db_Dialect, getSqlExpressionCase) { zephir_array_fetch_string(&_5$$3, &whenClause, SL("type"), PH_NOISY | PH_READONLY, "phalcon/db/dialect.zep", 742 TSRMLS_CC); if (ZEPHIR_IS_STRING(&_5$$3, "when")) { zephir_array_fetch_string(&_7$$4, &whenClause, SL("expr"), PH_NOISY | PH_READONLY, "phalcon/db/dialect.zep", 744 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_6$$4, this_ptr, "getsqlexpression", &_2, 46, &_7$$4, &escapeChar, bindCounts); + ZEPHIR_CALL_METHOD(&_6$$4, this_ptr, "getsqlexpression", &_2, 40, &_7$$4, &escapeChar, bindCounts); zephir_check_call_status(); zephir_array_fetch_string(&_9$$4, &whenClause, SL("then"), PH_NOISY | PH_READONLY, "phalcon/db/dialect.zep", 746 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_8$$4, this_ptr, "getsqlexpression", &_2, 46, &_9$$4, &escapeChar, bindCounts); + ZEPHIR_CALL_METHOD(&_8$$4, this_ptr, "getsqlexpression", &_2, 40, &_9$$4, &escapeChar, bindCounts); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_10$$4); ZEPHIR_CONCAT_SVSV(&_10$$4, " WHEN ", &_6$$4, " THEN ", &_8$$4); zephir_concat_self(&sql, &_10$$4 TSRMLS_CC); } else { zephir_array_fetch_string(&_12$$5, &whenClause, SL("expr"), PH_NOISY | PH_READONLY, "phalcon/db/dialect.zep", 748 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_11$$5, this_ptr, "getsqlexpression", &_2, 46, &_12$$5, &escapeChar, bindCounts); + ZEPHIR_CALL_METHOD(&_11$$5, this_ptr, "getsqlexpression", &_2, 40, &_12$$5, &escapeChar, bindCounts); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_13$$5); ZEPHIR_CONCAT_SV(&_13$$5, " ELSE ", &_11$$5); @@ -52033,7 +50520,7 @@ static PHP_METHOD(Phalcon_Db_Dialect, getSqlExpressionFrom) { { ZEPHIR_INIT_NVAR(&table); ZVAL_COPY(&table, _0$$3); - ZEPHIR_CALL_METHOD(&_1$$4, this_ptr, "getsqltable", &_2, 62, &table, &escapeChar); + ZEPHIR_CALL_METHOD(&_1$$4, this_ptr, "getsqltable", &_2, 56, &table, &escapeChar); zephir_check_call_status(); zephir_array_append(&tables, &_1$$4, PH_SEPARATE, "phalcon/db/dialect.zep", 767); } ZEND_HASH_FOREACH_END(); @@ -52115,7 +50602,7 @@ static PHP_METHOD(Phalcon_Db_Dialect, getSqlExpressionJoins) { { ZEPHIR_INIT_NVAR(&condition); ZVAL_COPY(&condition, _3$$6); - ZEPHIR_CALL_METHOD(&_4$$7, this_ptr, "getsqlexpression", &_2, 46, &condition, &escapeChar, bindCounts); + ZEPHIR_CALL_METHOD(&_4$$7, this_ptr, "getsqlexpression", &_2, 40, &condition, &escapeChar, bindCounts); zephir_check_call_status(); zephir_array_append(&joinCondition, &_4$$7, PH_SEPARATE, "phalcon/db/dialect.zep", 800); } ZEND_HASH_FOREACH_END(); @@ -52137,7 +50624,7 @@ static PHP_METHOD(Phalcon_Db_Dialect, getSqlExpressionJoins) { zephir_concat_self_str(&joinType, SL(" ") TSRMLS_CC); } zephir_array_fetch_string(&_7$$3, &join, SL("source"), PH_NOISY | PH_READONLY, "phalcon/db/dialect.zep", 813 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&joinTable, this_ptr, "getsqltable", &_8, 62, &_7$$3, &escapeChar); + ZEPHIR_CALL_METHOD(&joinTable, this_ptr, "getsqltable", &_8, 56, &_7$$3, &escapeChar); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_9$$3); ZEPHIR_CONCAT_SVSVSV(&_9$$3, " ", &joinType, "JOIN ", &joinTable, " ON ", &joinCondition); @@ -52227,7 +50714,7 @@ static PHP_METHOD(Phalcon_Db_Dialect, getSqlExpressionGroupBy) { { ZEPHIR_INIT_NVAR(&field); ZVAL_COPY(&field, _0$$3); - if (unlikely(Z_TYPE_P(&field) != IS_ARRAY)) { + if (UNEXPECTED(Z_TYPE_P(&field) != IS_ARRAY)) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Invalid SQL-GROUP-BY expression", "phalcon/db/dialect.zep", 850); return; } @@ -52330,7 +50817,7 @@ static PHP_METHOD(Phalcon_Db_Dialect, getSqlExpressionOrderBy) { { ZEPHIR_INIT_NVAR(&field); ZVAL_COPY(&field, _0$$3); - if (unlikely(Z_TYPE_P(&field) != IS_ARRAY)) { + if (UNEXPECTED(Z_TYPE_P(&field) != IS_ARRAY)) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Invalid SQL-ORDER-BY expression", "phalcon/db/dialect.zep", 887); return; } @@ -52426,7 +50913,7 @@ static PHP_METHOD(Phalcon_Db_Dialect, getSqlExpressionLimit) { _3$$4 = Z_TYPE_P(&offset) == IS_ARRAY; } if (_3$$4) { - ZEPHIR_CALL_METHOD(&_4$$7, this_ptr, "getsqlexpression", &_2, 46, &offset, &escapeChar, bindCounts); + ZEPHIR_CALL_METHOD(&_4$$7, this_ptr, "getsqlexpression", &_2, 40, &offset, &escapeChar, bindCounts); zephir_check_call_status(); ZEPHIR_CPY_WRT(&offset, &_4$$7); } @@ -52458,11 +50945,11 @@ static PHP_METHOD(Phalcon_Db_Dialect, prepareColumnAlias) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &qualified_param, &alias_param, &escapeChar_param); - if (unlikely(Z_TYPE_P(qualified_param) != IS_STRING && Z_TYPE_P(qualified_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(qualified_param) != IS_STRING && Z_TYPE_P(qualified_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'qualified' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(qualified_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(qualified_param) == IS_STRING)) { zephir_get_strval(&qualified, qualified_param); } else { ZEPHIR_INIT_VAR(&qualified); @@ -52483,7 +50970,7 @@ static PHP_METHOD(Phalcon_Db_Dialect, prepareColumnAlias) { if (!ZEPHIR_IS_STRING(&alias, "")) { - ZEPHIR_CALL_METHOD(&_0$$3, this_ptr, "escape", NULL, 53, &alias, &escapeChar); + ZEPHIR_CALL_METHOD(&_0$$3, this_ptr, "escape", NULL, 47, &alias, &escapeChar); zephir_check_call_status(); ZEPHIR_CONCAT_VSV(return_value, &qualified, " AS ", &_0$$3); RETURN_MM(); @@ -52513,11 +51000,11 @@ static PHP_METHOD(Phalcon_Db_Dialect, prepareTable) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 3, &table_param, &schema_param, &alias_param, &escapeChar_param); - if (unlikely(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'table' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(table_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(table_param) == IS_STRING)) { zephir_get_strval(&table, table_param); } else { ZEPHIR_INIT_VAR(&table); @@ -52543,18 +51030,18 @@ static PHP_METHOD(Phalcon_Db_Dialect, prepareTable) { } - ZEPHIR_CALL_METHOD(&_0, this_ptr, "escape", &_1, 53, &table, &escapeChar); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "escape", &_1, 47, &table, &escapeChar); zephir_check_call_status(); zephir_get_strval(&table, &_0); if (!ZEPHIR_IS_STRING(&schema, "")) { - ZEPHIR_CALL_METHOD(&_2$$3, this_ptr, "escapeschema", NULL, 63, &schema, &escapeChar); + ZEPHIR_CALL_METHOD(&_2$$3, this_ptr, "escapeschema", NULL, 57, &schema, &escapeChar); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_3$$3); ZEPHIR_CONCAT_VSV(&_3$$3, &_2$$3, ".", &table); zephir_get_strval(&table, &_3$$3); } if (!ZEPHIR_IS_STRING(&alias, "")) { - ZEPHIR_CALL_METHOD(&_4$$4, this_ptr, "escape", &_1, 53, &alias, &escapeChar); + ZEPHIR_CALL_METHOD(&_4$$4, this_ptr, "escape", &_1, 47, &alias, &escapeChar); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_5$$4); ZEPHIR_CONCAT_VSV(&_5$$4, &table, " AS ", &_4$$4); @@ -52580,11 +51067,11 @@ static PHP_METHOD(Phalcon_Db_Dialect, prepareQualified) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &column_param, &domain_param, &escapeChar_param); - if (unlikely(Z_TYPE_P(column_param) != IS_STRING && Z_TYPE_P(column_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(column_param) != IS_STRING && Z_TYPE_P(column_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'column' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(column_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(column_param) == IS_STRING)) { zephir_get_strval(&column, column_param); } else { ZEPHIR_INIT_VAR(&column); @@ -52607,11 +51094,11 @@ static PHP_METHOD(Phalcon_Db_Dialect, prepareQualified) { if (!ZEPHIR_IS_STRING(&domain, "")) { ZEPHIR_INIT_VAR(&_0$$3); ZEPHIR_CONCAT_VSV(&_0$$3, &domain, ".", &column); - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "escape", &_1, 53, &_0$$3, &escapeChar); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "escape", &_1, 47, &_0$$3, &escapeChar); zephir_check_call_status(); RETURN_MM(); } - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "escape", &_1, 53, &column, &escapeChar); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "escape", &_1, 47, &column, &escapeChar); zephir_check_call_status(); RETURN_MM(); @@ -52783,11 +51270,11 @@ static PHP_METHOD(Phalcon_Db_Index, __construct) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 1, &name_param, &columns_param, &type); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(&name, name_param); } else { ZEPHIR_INIT_VAR(&name); @@ -52842,7 +51329,7 @@ static PHP_METHOD(Phalcon_Db_Index, __set_state) { ZVAL_STRING(&type, ""); } object_init_ex(return_value, phalcon_db_index_ce); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 22, &indexName, &columns, &type); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 17, &indexName, &columns, &type); zephir_check_call_status(); RETURN_MM(); @@ -52931,19 +51418,19 @@ static PHP_METHOD(Phalcon_Db_Profiler, startProfile) { ZEPHIR_CALL_METHOD(NULL, &activeProfile, "__construct", NULL, 0); zephir_check_call_status(); } - ZEPHIR_CALL_METHOD(NULL, &activeProfile, "setsqlstatement", NULL, 151, sqlStatement); + ZEPHIR_CALL_METHOD(NULL, &activeProfile, "setsqlstatement", NULL, 138, sqlStatement); zephir_check_call_status(); if (Z_TYPE_P(sqlVariables) == IS_ARRAY) { - ZEPHIR_CALL_METHOD(NULL, &activeProfile, "setsqlvariables", NULL, 152, sqlVariables); + ZEPHIR_CALL_METHOD(NULL, &activeProfile, "setsqlvariables", NULL, 139, sqlVariables); zephir_check_call_status(); } if (Z_TYPE_P(sqlBindTypes) == IS_ARRAY) { - ZEPHIR_CALL_METHOD(NULL, &activeProfile, "setsqlbindtypes", NULL, 153, sqlBindTypes); + ZEPHIR_CALL_METHOD(NULL, &activeProfile, "setsqlbindtypes", NULL, 140, sqlBindTypes); zephir_check_call_status(); } ZEPHIR_INIT_VAR(&_0); zephir_microtime(&_0, &__$true TSRMLS_CC); - ZEPHIR_CALL_METHOD(NULL, &activeProfile, "setinitialtime", NULL, 154, &_0); + ZEPHIR_CALL_METHOD(NULL, &activeProfile, "setinitialtime", NULL, 141, &_0); zephir_check_call_status(); if ((zephir_method_exists_ex(this_ptr, SL("beforestartprofile") TSRMLS_CC) == SUCCESS)) { ZEPHIR_CALL_METHOD(NULL, this_ptr, "beforestartprofile", NULL, 0, &activeProfile); @@ -53255,11 +51742,11 @@ static PHP_METHOD(Phalcon_Db_Reference, __construct) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &name_param, &definition_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(&name, name_param); } else { ZEPHIR_INIT_VAR(&name); @@ -53360,7 +51847,7 @@ static PHP_METHOD(Phalcon_Db_Reference, __set_state) { zephir_array_update_string(&_0, SL("referencedColumns"), &referencedColumns, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_0, SL("onDelete"), &onDelete, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_0, SL("onUpdate"), &onUpdate, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 23, &constraintName, &_0); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 18, &constraintName, &_0); zephir_check_call_status(); RETURN_MM(); @@ -53488,7 +51975,7 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo, __construct) { ZEPHIR_CALL_METHOD(NULL, this_ptr, "connect", NULL, 0, &descriptor); zephir_check_call_status(); - ZEPHIR_CALL_PARENT(NULL, phalcon_db_adapter_pdo_ce, this_ptr, "__construct", &_0, 35, &descriptor); + ZEPHIR_CALL_PARENT(NULL, phalcon_db_adapter_pdo_ce, this_ptr, "__construct", &_0, 0, &descriptor); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -53621,11 +52108,11 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo, prepare) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &sqlStatement_param); - if (unlikely(Z_TYPE_P(sqlStatement_param) != IS_STRING && Z_TYPE_P(sqlStatement_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(sqlStatement_param) != IS_STRING && Z_TYPE_P(sqlStatement_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'sqlStatement' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(sqlStatement_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(sqlStatement_param) == IS_STRING)) { zephir_get_strval(&sqlStatement, sqlStatement_param); } else { ZEPHIR_INIT_VAR(&sqlStatement); @@ -53711,7 +52198,7 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo, executePrepared) { do { if (ZEPHIR_IS_LONG(&type, 1)) { ZVAL_LONG(&_4$$12, 10); - ZEPHIR_CALL_FUNCTION(&castValue, "intval", &_5, 36, &value, &_4$$12); + ZEPHIR_CALL_FUNCTION(&castValue, "intval", &_5, 30, &value, &_4$$12); zephir_check_call_status(); break; } @@ -53834,11 +52321,11 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo, query) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &sqlStatement_param, &bindParams, &bindTypes); - if (unlikely(Z_TYPE_P(sqlStatement_param) != IS_STRING && Z_TYPE_P(sqlStatement_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(sqlStatement_param) != IS_STRING && Z_TYPE_P(sqlStatement_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'sqlStatement' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(sqlStatement_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(sqlStatement_param) == IS_STRING)) { zephir_get_strval(&sqlStatement, sqlStatement_param); } else { ZEPHIR_INIT_VAR(&sqlStatement); @@ -53890,7 +52377,7 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo, query) { zephir_check_call_status(); } object_init_ex(return_value, phalcon_db_result_pdo_ce); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 37, this_ptr, &statement, &sqlStatement, bindParams, bindTypes); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 31, this_ptr, &statement, &sqlStatement, bindParams, bindTypes); zephir_check_call_status(); RETURN_MM(); } @@ -53922,11 +52409,11 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo, execute) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &sqlStatement_param, &bindParams, &bindTypes); - if (unlikely(Z_TYPE_P(sqlStatement_param) != IS_STRING && Z_TYPE_P(sqlStatement_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(sqlStatement_param) != IS_STRING && Z_TYPE_P(sqlStatement_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'sqlStatement' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(sqlStatement_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(sqlStatement_param) == IS_STRING)) { zephir_get_strval(&sqlStatement, sqlStatement_param); } else { ZEPHIR_INIT_VAR(&sqlStatement); @@ -54060,11 +52547,11 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo, convertBoundParams) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &sql_param, ¶ms_param); - if (unlikely(Z_TYPE_P(sql_param) != IS_STRING && Z_TYPE_P(sql_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(sql_param) != IS_STRING && Z_TYPE_P(sql_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'sql' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(sql_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(sql_param) == IS_STRING)) { zephir_get_strval(&sql, sql_param); } else { ZEPHIR_INIT_VAR(&sql); @@ -54087,7 +52574,7 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo, convertBoundParams) { setOrder = 2; ZVAL_LONG(&_0, setOrder); ZEPHIR_MAKE_REF(&matches); - ZEPHIR_CALL_FUNCTION(&_1, "preg_match_all", NULL, 38, &bindPattern, &sql, &matches, &_0); + ZEPHIR_CALL_FUNCTION(&_1, "preg_match_all", NULL, 32, &bindPattern, &sql, &matches, &_0); ZEPHIR_UNREF(&matches); zephir_check_call_status(); if (zephir_is_true(&_1)) { @@ -54116,7 +52603,7 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo, convertBoundParams) { ZEPHIR_INIT_NVAR(&placeMatch); ZEPHIR_INIT_VAR(&_5$$3); ZVAL_STRING(&_5$$3, "?"); - ZEPHIR_CALL_FUNCTION(&boundSql, "preg_replace", NULL, 39, &bindPattern, &_5$$3, &sql); + ZEPHIR_CALL_FUNCTION(&boundSql, "preg_replace", NULL, 33, &bindPattern, &_5$$3, &sql); zephir_check_call_status(); } else { ZEPHIR_CPY_WRT(&boundSql, &sql); @@ -54731,7 +53218,7 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Mysql, describeColumns) { zephir_array_fetch_long(&columnName, &field, 0, PH_NOISY | PH_READONLY, "phalcon/db/adapter/pdo/mysql.zep", 258 TSRMLS_CC); ZEPHIR_INIT_NVAR(&_38$$3); object_init_ex(&_38$$3, phalcon_db_column_ce); - ZEPHIR_CALL_METHOD(NULL, &_38$$3, "__construct", &_39, 148, &columnName, &definition); + ZEPHIR_CALL_METHOD(NULL, &_38$$3, "__construct", &_39, 136, &columnName, &definition); zephir_check_call_status(); zephir_array_append(&columns, &_38$$3, PH_SEPARATE, "phalcon/db/adapter/pdo/mysql.zep", 259); ZEPHIR_CPY_WRT(&oldColumn, &columnName); @@ -54780,11 +53267,11 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Mysql, describeIndexes) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &table_param, &schema); - if (unlikely(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'table' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(table_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(table_param) == IS_STRING)) { zephir_get_strval(&table, table_param); } else { ZEPHIR_INIT_VAR(&table); @@ -54863,7 +53350,7 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Mysql, describeIndexes) { object_init_ex(&_16$$11, phalcon_db_index_ce); zephir_array_fetch_string(&_17$$11, &index, SL("columns"), PH_NOISY | PH_READONLY, "phalcon/db/adapter/pdo/mysql.zep", 314 TSRMLS_CC); zephir_array_fetch_string(&_18$$11, &index, SL("type"), PH_NOISY | PH_READONLY, "phalcon/db/adapter/pdo/mysql.zep", 314 TSRMLS_CC); - ZEPHIR_CALL_METHOD(NULL, &_16$$11, "__construct", &_19, 22, &name, &_17$$11, &_18$$11); + ZEPHIR_CALL_METHOD(NULL, &_16$$11, "__construct", &_19, 17, &name, &_17$$11, &_18$$11); zephir_check_call_status(); zephir_array_update_zval(&indexObjects, &name, &_16$$11, PH_COPY | PH_SEPARATE); } ZEND_HASH_FOREACH_END(); @@ -54918,11 +53405,11 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Mysql, describeReferences) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &table_param, &schema_param); - if (unlikely(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'table' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(table_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(table_param) == IS_STRING)) { zephir_get_strval(&table, table_param); } else { ZEPHIR_INIT_VAR(&table); @@ -54932,11 +53419,11 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Mysql, describeReferences) { ZEPHIR_INIT_VAR(&schema); ZVAL_STRING(&schema, ""); } else { - if (unlikely(Z_TYPE_P(schema_param) != IS_STRING && Z_TYPE_P(schema_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schema_param) != IS_STRING && Z_TYPE_P(schema_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schema' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schema_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schema_param) == IS_STRING)) { zephir_get_strval(&schema, schema_param); } else { ZEPHIR_INIT_VAR(&schema); @@ -55042,7 +53529,7 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Mysql, describeReferences) { ZEPHIR_OBS_NVAR(&_19$$6); zephir_array_fetch_string(&_19$$6, &arrayReference, SL("onDelete"), PH_NOISY, "phalcon/db/adapter/pdo/mysql.zep", 380 TSRMLS_CC); zephir_array_update_string(&_18$$6, SL("onDelete"), &_19$$6, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(NULL, &_17$$6, "__construct", &_20, 23, &name, &_18$$6); + ZEPHIR_CALL_METHOD(NULL, &_17$$6, "__construct", &_20, 18, &name, &_18$$6); zephir_check_call_status(); zephir_array_update_zval(&referenceObjects, &name, &_17$$6, PH_COPY | PH_SEPARATE); } ZEND_HASH_FOREACH_END(); @@ -55129,7 +53616,7 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Postgresql, connect) { zephir_array_update_string(&descriptor, SL("password"), &__$null, PH_COPY | PH_SEPARATE); } } - ZEPHIR_CALL_PARENT(&status, phalcon_db_adapter_pdo_postgresql_ce, this_ptr, "connect", &_5, 149, &descriptor); + ZEPHIR_CALL_PARENT(&status, phalcon_db_adapter_pdo_postgresql_ce, this_ptr, "connect", &_5, 0, &descriptor); zephir_check_call_status(); if (!(ZEPHIR_IS_EMPTY(&schema))) { ZEPHIR_INIT_VAR(&sql); @@ -55376,13 +53863,13 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Postgresql, describeColumns) { ZVAL_STRING(&_36$$26, "/^'|'?::[[:alnum:][:space:]]+$/"); ZEPHIR_INIT_NVAR(&_37$$26); ZVAL_STRING(&_37$$26, ""); - ZEPHIR_CALL_FUNCTION(&_38$$26, "preg_replace", &_39, 39, &_36$$26, &_37$$26, &_35$$26); + ZEPHIR_CALL_FUNCTION(&_38$$26, "preg_replace", &_39, 33, &_36$$26, &_37$$26, &_35$$26); zephir_check_call_status(); zephir_array_update_string(&definition, SL("default"), &_38$$26, PH_COPY | PH_SEPARATE); zephir_array_fetch_string(&_40$$26, &definition, SL("default"), PH_NOISY | PH_READONLY, "phalcon/db/adapter/pdo/postgresql.zep", 268 TSRMLS_CC); ZEPHIR_INIT_NVAR(&_36$$26); ZVAL_STRING(&_36$$26, "null"); - ZEPHIR_CALL_FUNCTION(&_41$$26, "strcasecmp", &_42, 16, &_40$$26, &_36$$26); + ZEPHIR_CALL_FUNCTION(&_41$$26, "strcasecmp", &_42, 11, &_40$$26, &_36$$26); zephir_check_call_status(); if (ZEPHIR_IS_LONG(&_41$$26, 0)) { zephir_array_update_string(&definition, SL("default"), &__$null, PH_COPY | PH_SEPARATE); @@ -55391,7 +53878,7 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Postgresql, describeColumns) { zephir_array_fetch_long(&columnName, &field, 0, PH_NOISY | PH_READONLY, "phalcon/db/adapter/pdo/postgresql.zep", 276 TSRMLS_CC); ZEPHIR_INIT_NVAR(&_43$$3); object_init_ex(&_43$$3, phalcon_db_column_ce); - ZEPHIR_CALL_METHOD(NULL, &_43$$3, "__construct", &_44, 148, &columnName, &definition); + ZEPHIR_CALL_METHOD(NULL, &_43$$3, "__construct", &_44, 136, &columnName, &definition); zephir_check_call_status(); zephir_array_append(&columns, &_43$$3, PH_SEPARATE, "phalcon/db/adapter/pdo/postgresql.zep", 277); ZEPHIR_CPY_WRT(&oldColumn, &columnName); @@ -55406,7 +53893,7 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Postgresql, createTable) { zephir_fcall_cache_entry *_3 = NULL; int ZEPHIR_LAST_CALL_STATUS; zval definition; - zval *tableName_param = NULL, *schemaName_param = NULL, *definition_param = NULL, sql, queries, query, exception, columns, _0, *_1$$6, _2$$7, _4$$10, _5$$10; + zval *tableName_param = NULL, *schemaName_param = NULL, *definition_param = NULL, sql, queries, query, exception, columns, _0, *_1$$6, _2$$7, _4$$5, _5$$10, _6$$10; zval tableName, schemaName; ZEPHIR_INIT_THIS(); @@ -55419,28 +53906,29 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Postgresql, createTable) { ZVAL_UNDEF(&columns); ZVAL_UNDEF(&_0); ZVAL_UNDEF(&_2$$7); - ZVAL_UNDEF(&_4$$10); + ZVAL_UNDEF(&_4$$5); ZVAL_UNDEF(&_5$$10); + ZVAL_UNDEF(&_6$$10); ZVAL_UNDEF(&definition); ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &definition_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(&tableName, tableName_param); } else { ZEPHIR_INIT_VAR(&tableName); ZVAL_EMPTY_STRING(&tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(&schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(&schemaName); @@ -55490,10 +53978,12 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Postgresql, createTable) { try_end_1: if (EG(exception)) { - ZVAL_OBJ(&exception, EG(exception)); - Z_ADDREF_P(&exception); - if (zephir_instance_of_ev(&exception, zend_exception_get_default(TSRMLS_C) TSRMLS_CC)) { + ZEPHIR_INIT_VAR(&_4$$5); + ZVAL_OBJ(&_4$$5, EG(exception)); + Z_ADDREF_P(&_4$$5); + if (zephir_instance_of_ev(&_4$$5, zend_exception_get_default(TSRMLS_C) TSRMLS_CC)) { zend_clear_exception(TSRMLS_C); + ZEPHIR_CPY_WRT(&exception, &_4$$5); ZEPHIR_CALL_METHOD(NULL, this_ptr, "rollback", NULL, 0); zephir_check_call_status(); zephir_throw_exception_debug(&exception, "phalcon/db/adapter/pdo/postgresql.zep", 316 TSRMLS_CC); @@ -55502,10 +53992,10 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Postgresql, createTable) { } } } else { - zephir_array_fetch_long(&_4$$10, &queries, 0, PH_NOISY | PH_READONLY, "phalcon/db/adapter/pdo/postgresql.zep", 319 TSRMLS_CC); - ZEPHIR_INIT_VAR(&_5$$10); - ZEPHIR_CONCAT_VS(&_5$$10, &_4$$10, ";"); - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "execute", NULL, 0, &_5$$10); + zephir_array_fetch_long(&_5$$10, &queries, 0, PH_NOISY | PH_READONLY, "phalcon/db/adapter/pdo/postgresql.zep", 319 TSRMLS_CC); + ZEPHIR_INIT_VAR(&_6$$10); + ZEPHIR_CONCAT_VS(&_6$$10, &_5$$10, ";"); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "execute", NULL, 0, &_6$$10); zephir_check_call_status(); RETURN_MM(); } @@ -55517,7 +54007,7 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Postgresql, modifyColumn) { zephir_fcall_cache_entry *_3 = NULL; int ZEPHIR_LAST_CALL_STATUS; - zval *tableName_param = NULL, *schemaName_param = NULL, *column, column_sub, *currentColumn = NULL, currentColumn_sub, __$null, sql, queries, query, exception, _0, *_1$$4, _2$$5, _4$$8, _5$$8, _6$$8; + zval *tableName_param = NULL, *schemaName_param = NULL, *column, column_sub, *currentColumn = NULL, currentColumn_sub, __$null, sql, queries, query, exception, _0, *_1$$4, _2$$5, _4$$3, _5$$8, _6$$8, _7$$8; zval tableName, schemaName; ZEPHIR_INIT_THIS(); @@ -55532,28 +54022,29 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Postgresql, modifyColumn) { ZVAL_UNDEF(&exception); ZVAL_UNDEF(&_0); ZVAL_UNDEF(&_2$$5); - ZVAL_UNDEF(&_4$$8); + ZVAL_UNDEF(&_4$$3); ZVAL_UNDEF(&_5$$8); ZVAL_UNDEF(&_6$$8); + ZVAL_UNDEF(&_7$$8); ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 1, &tableName_param, &schemaName_param, &column, ¤tColumn); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(&tableName, tableName_param); } else { ZEPHIR_INIT_VAR(&tableName); ZVAL_EMPTY_STRING(&tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(&schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(&schemaName); @@ -55597,10 +54088,12 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Postgresql, modifyColumn) { try_end_1: if (EG(exception)) { - ZVAL_OBJ(&exception, EG(exception)); - Z_ADDREF_P(&exception); - if (zephir_instance_of_ev(&exception, zend_exception_get_default(TSRMLS_C) TSRMLS_CC)) { + ZEPHIR_INIT_VAR(&_4$$3); + ZVAL_OBJ(&_4$$3, EG(exception)); + Z_ADDREF_P(&_4$$3); + if (zephir_instance_of_ev(&_4$$3, zend_exception_get_default(TSRMLS_C) TSRMLS_CC)) { zend_clear_exception(TSRMLS_C); + ZEPHIR_CPY_WRT(&exception, &_4$$3); ZEPHIR_CALL_METHOD(NULL, this_ptr, "rollback", NULL, 0); zephir_check_call_status(); zephir_throw_exception_debug(&exception, "phalcon/db/adapter/pdo/postgresql.zep", 349 TSRMLS_CC); @@ -55609,17 +54102,17 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Postgresql, modifyColumn) { } } } else { - ZEPHIR_INIT_VAR(&_4$$8); + ZEPHIR_INIT_VAR(&_5$$8); if (!(ZEPHIR_IS_EMPTY(&sql))) { - zephir_array_fetch_long(&_5$$8, &queries, 0, PH_NOISY | PH_READONLY, "phalcon/db/adapter/pdo/postgresql.zep", 353 TSRMLS_CC); - ZEPHIR_INIT_VAR(&_6$$8); - ZEPHIR_CONCAT_VS(&_6$$8, &_5$$8, ";"); - ZEPHIR_CALL_METHOD(&_4$$8, this_ptr, "execute", NULL, 0, &_6$$8); + zephir_array_fetch_long(&_6$$8, &queries, 0, PH_NOISY | PH_READONLY, "phalcon/db/adapter/pdo/postgresql.zep", 353 TSRMLS_CC); + ZEPHIR_INIT_VAR(&_7$$8); + ZEPHIR_CONCAT_VS(&_7$$8, &_6$$8, ";"); + ZEPHIR_CALL_METHOD(&_5$$8, this_ptr, "execute", NULL, 0, &_7$$8); zephir_check_call_status(); } else { - ZVAL_BOOL(&_4$$8, 1); + ZVAL_BOOL(&_5$$8, 1); } - RETURN_CCTOR(_4$$8); + RETURN_CCTOR(_5$$8); } RETURN_MM_BOOL(1); @@ -55647,7 +54140,7 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Postgresql, getDefaultIdValue) { object_init_ex(return_value, phalcon_db_rawvalue_ce); ZEPHIR_INIT_VAR(&_0); ZVAL_STRING(&_0, "DEFAULT"); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 24, &_0); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 19, &_0); zephir_check_call_status(); RETURN_MM(); @@ -55720,7 +54213,7 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Sqlite, connect) { return; } zephir_array_update_string(&descriptor, SL("dsn"), &dbname, PH_COPY | PH_SEPARATE); - ZEPHIR_RETURN_CALL_PARENT(phalcon_db_adapter_pdo_sqlite_ce, this_ptr, "connect", &_2, 149, &descriptor); + ZEPHIR_RETURN_CALL_PARENT(phalcon_db_adapter_pdo_sqlite_ce, this_ptr, "connect", &_2, 0, &descriptor); zephir_check_call_status(); RETURN_MM(); @@ -55940,7 +54433,7 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Sqlite, describeColumns) { zephir_array_fetch_long(&_30$$3, &field, 4, PH_NOISY | PH_READONLY, "phalcon/db/adapter/pdo/sqlite.zep", 240 TSRMLS_CC); ZEPHIR_INIT_NVAR(&_31$$3); ZVAL_STRING(&_31$$3, "null"); - ZEPHIR_CALL_FUNCTION(&_32$$3, "strcasecmp", &_33, 16, &_30$$3, &_31$$3); + ZEPHIR_CALL_FUNCTION(&_32$$3, "strcasecmp", &_33, 11, &_30$$3, &_31$$3); zephir_check_call_status(); _34$$3 = !ZEPHIR_IS_LONG(&_32$$3, 0); if (_34$$3) { @@ -55953,14 +54446,14 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Sqlite, describeColumns) { ZVAL_STRING(&_37$$27, "/^'|'$/"); ZEPHIR_INIT_NVAR(&_38$$27); ZVAL_STRING(&_38$$27, ""); - ZEPHIR_CALL_FUNCTION(&_39$$27, "preg_replace", &_40, 39, &_37$$27, &_38$$27, &_36$$27); + ZEPHIR_CALL_FUNCTION(&_39$$27, "preg_replace", &_40, 33, &_37$$27, &_38$$27, &_36$$27); zephir_check_call_status(); zephir_array_update_string(&definition, SL("default"), &_39$$27, PH_COPY | PH_SEPARATE); } zephir_array_fetch_long(&columnName, &field, 1, PH_NOISY | PH_READONLY, "phalcon/db/adapter/pdo/sqlite.zep", 247 TSRMLS_CC); ZEPHIR_INIT_NVAR(&_31$$3); object_init_ex(&_31$$3, phalcon_db_column_ce); - ZEPHIR_CALL_METHOD(NULL, &_31$$3, "__construct", &_41, 148, &columnName, &definition); + ZEPHIR_CALL_METHOD(NULL, &_31$$3, "__construct", &_41, 136, &columnName, &definition); zephir_check_call_status(); zephir_array_append(&columns, &_31$$3, PH_SEPARATE, "phalcon/db/adapter/pdo/sqlite.zep", 248); ZEPHIR_CPY_WRT(&oldColumn, &columnName); @@ -56110,7 +54603,7 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Sqlite, describeIndexes) { object_init_ex(&_25$$12, phalcon_db_index_ce); zephir_array_fetch_string(&_26$$12, &index, SL("columns"), PH_NOISY | PH_READONLY, "phalcon/db/adapter/pdo/sqlite.zep", 306 TSRMLS_CC); zephir_array_fetch_string(&_27$$12, &index, SL("type"), PH_NOISY | PH_READONLY, "phalcon/db/adapter/pdo/sqlite.zep", 306 TSRMLS_CC); - ZEPHIR_CALL_METHOD(NULL, &_25$$12, "__construct", &_28, 22, &name, &_26$$12, &_27$$12); + ZEPHIR_CALL_METHOD(NULL, &_25$$12, "__construct", &_28, 17, &name, &_26$$12, &_27$$12); zephir_check_call_status(); zephir_array_update_zval(&indexObjects, &name, &_25$$12, PH_COPY | PH_SEPARATE); } ZEND_HASH_FOREACH_END(); @@ -56255,7 +54748,7 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Sqlite, describeReferences) { ZEPHIR_OBS_NVAR(&_19$$6); zephir_array_fetch_string(&_19$$6, &arrayReference, SL("referencedColumns"), PH_NOISY, "phalcon/db/adapter/pdo/sqlite.zep", 361 TSRMLS_CC); zephir_array_update_string(&_18$$6, SL("referencedColumns"), &_19$$6, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(NULL, &_17$$6, "__construct", &_20, 23, &name, &_18$$6); + ZEPHIR_CALL_METHOD(NULL, &_17$$6, "__construct", &_20, 18, &name, &_18$$6); zephir_check_call_status(); zephir_array_update_zval(&referenceObjects, &name, &_17$$6, PH_COPY | PH_SEPARATE); } ZEND_HASH_FOREACH_END(); @@ -56287,7 +54780,7 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Sqlite, getDefaultValue) { object_init_ex(return_value, phalcon_db_rawvalue_ce); ZEPHIR_INIT_VAR(&_0); ZVAL_STRING(&_0, "NULL"); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 24, &_0); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 19, &_0); zephir_check_call_status(); RETURN_MM(); @@ -56567,7 +55060,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, getColumnDefinition) { zephir_check_call_status(); ZEPHIR_INIT_VAR(&_22$$49); ZEPHIR_CONCAT_SV(&_22$$49, "Unrecognized MySQL data type at column ", &_21$$49); - ZEPHIR_CALL_METHOD(NULL, &_20$$49, "__construct", NULL, 9, &_22$$49); + ZEPHIR_CALL_METHOD(NULL, &_20$$49, "__construct", NULL, 4, &_22$$49); zephir_check_call_status(); zephir_throw_exception_debug(&_20$$49, "phalcon/db/dialect/mysql.zep", 197 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -56586,7 +55079,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, getColumnDefinition) { ZVAL_COPY(&value$$51, _23$$51); ZEPHIR_INIT_NVAR(&_24$$52); ZVAL_STRING(&_24$$52, "\""); - ZEPHIR_CALL_FUNCTION(&_25$$52, "addcslashes", &_26, 150, &value$$51, &_24$$52); + ZEPHIR_CALL_FUNCTION(&_25$$52, "addcslashes", &_26, 137, &value$$51, &_24$$52); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_27$$52); ZEPHIR_CONCAT_SVS(&_27$$52, "\"", &_25$$52, "\", "); @@ -56603,7 +55096,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, getColumnDefinition) { } else { ZEPHIR_INIT_VAR(&_32$$53); ZVAL_STRING(&_32$$53, "\""); - ZEPHIR_CALL_FUNCTION(&_33$$53, "addcslashes", &_26, 150, &typeValues, &_32$$53); + ZEPHIR_CALL_FUNCTION(&_33$$53, "addcslashes", &_26, 137, &typeValues, &_32$$53); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_34$$53); ZEPHIR_CONCAT_SVS(&_34$$53, "(\"", &_33$$53, "\")"); @@ -56645,21 +55138,21 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, addColumn) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &column); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(&tableName, tableName_param); } else { ZEPHIR_INIT_VAR(&tableName); ZVAL_EMPTY_STRING(&tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(&schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(&schemaName); @@ -56687,7 +55180,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, addColumn) { } else { ZEPHIR_INIT_VAR(&_5$$5); ZVAL_STRING(&_5$$5, "\""); - ZEPHIR_CALL_FUNCTION(&_6$$5, "addcslashes", NULL, 150, &defaultValue, &_5$$5); + ZEPHIR_CALL_FUNCTION(&_6$$5, "addcslashes", NULL, 137, &defaultValue, &_5$$5); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_7$$5); ZEPHIR_CONCAT_SVS(&_7$$5, " DEFAULT \"", &_6$$5, "\""); @@ -56752,21 +55245,21 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, modifyColumn) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 1, &tableName_param, &schemaName_param, &column, ¤tColumn); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(&tableName, tableName_param); } else { ZEPHIR_INIT_VAR(&tableName); ZVAL_EMPTY_STRING(&tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(&schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(&schemaName); @@ -56798,7 +55291,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, modifyColumn) { } else { ZEPHIR_INIT_VAR(&_5$$5); ZVAL_STRING(&_5$$5, "\""); - ZEPHIR_CALL_FUNCTION(&_6$$5, "addcslashes", NULL, 150, &defaultValue, &_5$$5); + ZEPHIR_CALL_FUNCTION(&_6$$5, "addcslashes", NULL, 137, &defaultValue, &_5$$5); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_7$$5); ZEPHIR_CONCAT_SVS(&_7$$5, " DEFAULT \"", &_6$$5, "\""); @@ -56847,31 +55340,31 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, dropColumn) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &columnName_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(&tableName, tableName_param); } else { ZEPHIR_INIT_VAR(&tableName); ZVAL_EMPTY_STRING(&tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(&schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(&schemaName); ZVAL_EMPTY_STRING(&schemaName); } - if (unlikely(Z_TYPE_P(columnName_param) != IS_STRING && Z_TYPE_P(columnName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(columnName_param) != IS_STRING && Z_TYPE_P(columnName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'columnName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(columnName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(columnName_param) == IS_STRING)) { zephir_get_strval(&columnName, columnName_param); } else { ZEPHIR_INIT_VAR(&columnName); @@ -56908,21 +55401,21 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, addIndex) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &index); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(&tableName, tableName_param); } else { ZEPHIR_INIT_VAR(&tableName); ZVAL_EMPTY_STRING(&tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(&schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(&schemaName); @@ -56947,7 +55440,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, addIndex) { zephir_check_call_status(); ZEPHIR_CALL_METHOD(&_4, index, "getcolumns", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_3, this_ptr, "getcolumnlist", NULL, 54, &_4); + ZEPHIR_CALL_METHOD(&_3, this_ptr, "getcolumnlist", NULL, 48, &_4); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_5); ZEPHIR_CONCAT_SVSVS(&_5, "`", &_2, "` (", &_3, ")"); @@ -56971,31 +55464,31 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, dropIndex) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &indexName_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(&tableName, tableName_param); } else { ZEPHIR_INIT_VAR(&tableName); ZVAL_EMPTY_STRING(&tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(&schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(&schemaName); ZVAL_EMPTY_STRING(&schemaName); } - if (unlikely(Z_TYPE_P(indexName_param) != IS_STRING && Z_TYPE_P(indexName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(indexName_param) != IS_STRING && Z_TYPE_P(indexName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'indexName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(indexName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(indexName_param) == IS_STRING)) { zephir_get_strval(&indexName, indexName_param); } else { ZEPHIR_INIT_VAR(&indexName); @@ -57027,21 +55520,21 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, addPrimaryKey) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &index); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(&tableName, tableName_param); } else { ZEPHIR_INIT_VAR(&tableName); ZVAL_EMPTY_STRING(&tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(&schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(&schemaName); @@ -57053,7 +55546,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, addPrimaryKey) { zephir_check_call_status(); ZEPHIR_CALL_METHOD(&_2, index, "getcolumns", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_1, this_ptr, "getcolumnlist", NULL, 54, &_2); + ZEPHIR_CALL_METHOD(&_1, this_ptr, "getcolumnlist", NULL, 48, &_2); zephir_check_call_status(); ZEPHIR_CONCAT_SVSVS(return_value, "ALTER TABLE ", &_0, " ADD PRIMARY KEY (", &_1, ")"); RETURN_MM(); @@ -57074,21 +55567,21 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, dropPrimaryKey) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &tableName_param, &schemaName_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(&tableName, tableName_param); } else { ZEPHIR_INIT_VAR(&tableName); ZVAL_EMPTY_STRING(&tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(&schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(&schemaName); @@ -57131,21 +55624,21 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, addForeignKey) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &reference); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(&tableName, tableName_param); } else { ZEPHIR_INIT_VAR(&tableName); ZVAL_EMPTY_STRING(&tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(&schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(&schemaName); @@ -57159,7 +55652,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, addForeignKey) { zephir_check_call_status(); ZEPHIR_CALL_METHOD(&_3, reference, "getcolumns", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_2, this_ptr, "getcolumnlist", NULL, 54, &_3); + ZEPHIR_CALL_METHOD(&_2, this_ptr, "getcolumnlist", NULL, 48, &_3); zephir_check_call_status(); ZEPHIR_CALL_METHOD(&_5, reference, "getreferencedtable", NULL, 0); zephir_check_call_status(); @@ -57169,7 +55662,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, addForeignKey) { zephir_check_call_status(); ZEPHIR_CALL_METHOD(&_8, reference, "getreferencedcolumns", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_7, this_ptr, "getcolumnlist", NULL, 54, &_8); + ZEPHIR_CALL_METHOD(&_7, this_ptr, "getcolumnlist", NULL, 48, &_8); zephir_check_call_status(); ZEPHIR_INIT_VAR(&sql); ZEPHIR_CONCAT_SVSVSVSVSVS(&sql, "ALTER TABLE ", &_0, " ADD FOREIGN KEY `", &_1, "`(", &_2, ") REFERENCES ", &_4, "(", &_7, ")"); @@ -57206,31 +55699,31 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, dropForeignKey) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &referenceName_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(&tableName, tableName_param); } else { ZEPHIR_INIT_VAR(&tableName); ZVAL_EMPTY_STRING(&tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(&schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(&schemaName); ZVAL_EMPTY_STRING(&schemaName); } - if (unlikely(Z_TYPE_P(referenceName_param) != IS_STRING && Z_TYPE_P(referenceName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(referenceName_param) != IS_STRING && Z_TYPE_P(referenceName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'referenceName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(referenceName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(referenceName_param) == IS_STRING)) { zephir_get_strval(&referenceName, referenceName_param); } else { ZEPHIR_INIT_VAR(&referenceName); @@ -57308,21 +55801,21 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, createTable) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &definition_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(&tableName, tableName_param); } else { ZEPHIR_INIT_VAR(&tableName); ZVAL_EMPTY_STRING(&tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(&schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(&schemaName); @@ -57376,7 +55869,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, createTable) { } else { ZEPHIR_INIT_NVAR(&_6$$10); ZVAL_STRING(&_6$$10, "\""); - ZEPHIR_CALL_FUNCTION(&_7$$10, "addcslashes", &_8, 150, &defaultValue, &_6$$10); + ZEPHIR_CALL_FUNCTION(&_7$$10, "addcslashes", &_8, 137, &defaultValue, &_6$$10); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_9$$10); ZEPHIR_CONCAT_SVS(&_9$$10, " DEFAULT \"", &_7$$10, "\""); @@ -57415,7 +55908,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, createTable) { if (ZEPHIR_IS_STRING(&indexName, "PRIMARY")) { ZEPHIR_CALL_METHOD(&_15$$16, &index, "getcolumns", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_14$$16, this_ptr, "getcolumnlist", &_16, 54, &_15$$16); + ZEPHIR_CALL_METHOD(&_14$$16, this_ptr, "getcolumnlist", &_16, 48, &_15$$16); zephir_check_call_status(); ZEPHIR_INIT_NVAR(&indexSql); ZEPHIR_CONCAT_SVS(&indexSql, "PRIMARY KEY (", &_14$$16, ")"); @@ -57424,13 +55917,13 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, createTable) { if (!(ZEPHIR_IS_EMPTY(&indexType))) { ZEPHIR_CALL_METHOD(&_18$$18, &index, "getcolumns", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_17$$18, this_ptr, "getcolumnlist", &_16, 54, &_18$$18); + ZEPHIR_CALL_METHOD(&_17$$18, this_ptr, "getcolumnlist", &_16, 48, &_18$$18); zephir_check_call_status(); ZEPHIR_CONCAT_VSVSVS(&indexSql, &indexType, " KEY `", &indexName, "` (", &_17$$18, ")"); } else { ZEPHIR_CALL_METHOD(&_20$$19, &index, "getcolumns", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_19$$19, this_ptr, "getcolumnlist", &_16, 54, &_20$$19); + ZEPHIR_CALL_METHOD(&_19$$19, this_ptr, "getcolumnlist", &_16, 48, &_20$$19); zephir_check_call_status(); ZEPHIR_CONCAT_SVSVS(&indexSql, "KEY `", &indexName, "` (", &_19$$19, ")"); } @@ -57450,13 +55943,13 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, createTable) { zephir_check_call_status(); ZEPHIR_CALL_METHOD(&_24$$21, &reference, "getcolumns", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_23$$21, this_ptr, "getcolumnlist", &_16, 54, &_24$$21); + ZEPHIR_CALL_METHOD(&_23$$21, this_ptr, "getcolumnlist", &_16, 48, &_24$$21); zephir_check_call_status(); ZEPHIR_CALL_METHOD(&_25$$21, &reference, "getreferencedtable", NULL, 0); zephir_check_call_status(); ZEPHIR_CALL_METHOD(&_27$$21, &reference, "getreferencedcolumns", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_26$$21, this_ptr, "getcolumnlist", &_16, 54, &_27$$21); + ZEPHIR_CALL_METHOD(&_26$$21, this_ptr, "getcolumnlist", &_16, 48, &_27$$21); zephir_check_call_status(); ZEPHIR_INIT_NVAR(&referenceSql); ZEPHIR_CONCAT_SVSVSSVSVS(&referenceSql, "CONSTRAINT `", &_22$$21, "` FOREIGN KEY (", &_23$$21, ")", " REFERENCES `", &_25$$21, "`(", &_26$$21, ")"); @@ -57510,21 +56003,21 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, truncateTable) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &tableName_param, &schemaName_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(&tableName, tableName_param); } else { ZEPHIR_INIT_VAR(&tableName); ZVAL_EMPTY_STRING(&tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(&schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(&schemaName); @@ -57564,11 +56057,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, dropTable) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &tableName_param, &schemaName_param, &ifExists_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(&tableName, tableName_param); } else { ZEPHIR_INIT_VAR(&tableName); @@ -57583,7 +56076,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, dropTable) { if (!ifExists_param) { ifExists = 1; } else { - if (unlikely(Z_TYPE_P(ifExists_param) != IS_TRUE && Z_TYPE_P(ifExists_param) != IS_FALSE)) { + if (UNEXPECTED(Z_TYPE_P(ifExists_param) != IS_TRUE && Z_TYPE_P(ifExists_param) != IS_FALSE)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'ifExists' must be a bool") TSRMLS_CC); RETURN_MM_NULL(); } @@ -57620,11 +56113,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, createView) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 1, &viewName_param, &definition_param, &schemaName_param); - if (unlikely(Z_TYPE_P(viewName_param) != IS_STRING && Z_TYPE_P(viewName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(viewName_param) != IS_STRING && Z_TYPE_P(viewName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'viewName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(viewName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(viewName_param) == IS_STRING)) { zephir_get_strval(&viewName, viewName_param); } else { ZEPHIR_INIT_VAR(&viewName); @@ -57667,11 +56160,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, dropView) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &viewName_param, &schemaName_param, &ifExists_param); - if (unlikely(Z_TYPE_P(viewName_param) != IS_STRING && Z_TYPE_P(viewName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(viewName_param) != IS_STRING && Z_TYPE_P(viewName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'viewName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(viewName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(viewName_param) == IS_STRING)) { zephir_get_strval(&viewName, viewName_param); } else { ZEPHIR_INIT_VAR(&viewName); @@ -57686,7 +56179,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, dropView) { if (!ifExists_param) { ifExists = 1; } else { - if (unlikely(Z_TYPE_P(ifExists_param) != IS_TRUE && Z_TYPE_P(ifExists_param) != IS_FALSE)) { + if (UNEXPECTED(Z_TYPE_P(ifExists_param) != IS_TRUE && Z_TYPE_P(ifExists_param) != IS_FALSE)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'ifExists' must be a bool") TSRMLS_CC); RETURN_MM_NULL(); } @@ -57718,11 +56211,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, tableExists) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &tableName_param, &schemaName_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(&tableName, tableName_param); } else { ZEPHIR_INIT_VAR(&tableName); @@ -57757,11 +56250,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, viewExists) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &viewName_param, &schemaName_param); - if (unlikely(Z_TYPE_P(viewName_param) != IS_STRING && Z_TYPE_P(viewName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(viewName_param) != IS_STRING && Z_TYPE_P(viewName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'viewName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(viewName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(viewName_param) == IS_STRING)) { zephir_get_strval(&viewName, viewName_param); } else { ZEPHIR_INIT_VAR(&viewName); @@ -57798,11 +56291,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, describeColumns) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &table_param, &schema_param); - if (unlikely(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'table' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(table_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(table_param) == IS_STRING)) { zephir_get_strval(&table, table_param); } else { ZEPHIR_INIT_VAR(&table); @@ -57865,11 +56358,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, listViews) { ZEPHIR_INIT_VAR(&schemaName); ZVAL_STRING(&schemaName, ""); } else { - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(&schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(&schemaName); @@ -57900,11 +56393,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, describeIndexes) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &table_param, &schema_param); - if (unlikely(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'table' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(table_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(table_param) == IS_STRING)) { zephir_get_strval(&table, table_param); } else { ZEPHIR_INIT_VAR(&table); @@ -57940,11 +56433,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, describeReferences) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &table_param, &schema_param); - if (unlikely(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'table' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(table_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(table_param) == IS_STRING)) { zephir_get_strval(&table, table_param); } else { ZEPHIR_INIT_VAR(&table); @@ -57986,11 +56479,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, tableOptions) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &table_param, &schema_param); - if (unlikely(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'table' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(table_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(table_param) == IS_STRING)) { zephir_get_strval(&table, table_param); } else { ZEPHIR_INIT_VAR(&table); @@ -58262,7 +56755,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, getColumnDefinition) { zephir_check_call_status(); ZEPHIR_INIT_VAR(&_8$$35); ZEPHIR_CONCAT_SV(&_8$$35, "Unrecognized PostgreSQL data type at column ", &_7$$35); - ZEPHIR_CALL_METHOD(NULL, &_6$$35, "__construct", NULL, 9, &_8$$35); + ZEPHIR_CALL_METHOD(NULL, &_6$$35, "__construct", NULL, 4, &_8$$35); zephir_check_call_status(); zephir_throw_exception_debug(&_6$$35, "phalcon/db/dialect/postgresql.zep", 150 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -58281,7 +56774,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, getColumnDefinition) { ZVAL_COPY(&value$$37, _9$$37); ZEPHIR_INIT_NVAR(&_10$$38); ZVAL_STRING(&_10$$38, "\\'"); - ZEPHIR_CALL_FUNCTION(&_11$$38, "addcslashes", &_12, 150, &value$$37, &_10$$38); + ZEPHIR_CALL_FUNCTION(&_11$$38, "addcslashes", &_12, 137, &value$$37, &_10$$38); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_13$$38); ZEPHIR_CONCAT_SVS(&_13$$38, "'", &_11$$38, "', "); @@ -58298,7 +56791,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, getColumnDefinition) { } else { ZEPHIR_INIT_VAR(&_18$$39); ZVAL_STRING(&_18$$39, "\\'"); - ZEPHIR_CALL_FUNCTION(&_19$$39, "addcslashes", &_12, 150, &typeValues, &_18$$39); + ZEPHIR_CALL_FUNCTION(&_19$$39, "addcslashes", &_12, 137, &typeValues, &_18$$39); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_20$$39); ZEPHIR_CONCAT_SVS(&_20$$39, "('", &_19$$39, "')"); @@ -58334,21 +56827,21 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, addColumn) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &column); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(&tableName, tableName_param); } else { ZEPHIR_INIT_VAR(&tableName); ZVAL_EMPTY_STRING(&tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(&schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(&schemaName); @@ -58435,21 +56928,21 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, modifyColumn) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 1, &tableName_param, &schemaName_param, &column, ¤tColumn); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(&tableName, tableName_param); } else { ZEPHIR_INIT_VAR(&tableName); ZVAL_EMPTY_STRING(&tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(&schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(&schemaName); @@ -58580,31 +57073,31 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, dropColumn) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &columnName_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(&tableName, tableName_param); } else { ZEPHIR_INIT_VAR(&tableName); ZVAL_EMPTY_STRING(&tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(&schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(&schemaName); ZVAL_EMPTY_STRING(&schemaName); } - if (unlikely(Z_TYPE_P(columnName_param) != IS_STRING && Z_TYPE_P(columnName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(columnName_param) != IS_STRING && Z_TYPE_P(columnName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'columnName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(columnName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(columnName_param) == IS_STRING)) { zephir_get_strval(&columnName, columnName_param); } else { ZEPHIR_INIT_VAR(&columnName); @@ -58643,21 +57136,21 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, addIndex) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &index); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(&tableName, tableName_param); } else { ZEPHIR_INIT_VAR(&tableName); ZVAL_EMPTY_STRING(&tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(&schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(&schemaName); @@ -58690,7 +57183,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, addIndex) { zephir_concat_self(&sql, &_4 TSRMLS_CC); ZEPHIR_CALL_METHOD(&_6, index, "getcolumns", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_5, this_ptr, "getcolumnlist", NULL, 54, &_6); + ZEPHIR_CALL_METHOD(&_5, this_ptr, "getcolumnlist", NULL, 48, &_6); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_7); ZEPHIR_CONCAT_SVS(&_7, " (", &_5, ")"); @@ -58712,31 +57205,31 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, dropIndex) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &indexName_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(&tableName, tableName_param); } else { ZEPHIR_INIT_VAR(&tableName); ZVAL_EMPTY_STRING(&tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(&schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(&schemaName); ZVAL_EMPTY_STRING(&schemaName); } - if (unlikely(Z_TYPE_P(indexName_param) != IS_STRING && Z_TYPE_P(indexName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(indexName_param) != IS_STRING && Z_TYPE_P(indexName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'indexName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(indexName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(indexName_param) == IS_STRING)) { zephir_get_strval(&indexName, indexName_param); } else { ZEPHIR_INIT_VAR(&indexName); @@ -58766,21 +57259,21 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, addPrimaryKey) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &index); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(&tableName, tableName_param); } else { ZEPHIR_INIT_VAR(&tableName); ZVAL_EMPTY_STRING(&tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(&schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(&schemaName); @@ -58792,7 +57285,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, addPrimaryKey) { zephir_check_call_status(); ZEPHIR_CALL_METHOD(&_2, index, "getcolumns", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_1, this_ptr, "getcolumnlist", NULL, 54, &_2); + ZEPHIR_CALL_METHOD(&_1, this_ptr, "getcolumnlist", NULL, 48, &_2); zephir_check_call_status(); ZEPHIR_CONCAT_SVSVS(return_value, "ALTER TABLE ", &_0, " ADD CONSTRAINT \"PRIMARY\" PRIMARY KEY (", &_1, ")"); RETURN_MM(); @@ -58813,21 +57306,21 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, dropPrimaryKey) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &tableName_param, &schemaName_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(&tableName, tableName_param); } else { ZEPHIR_INIT_VAR(&tableName); ZVAL_EMPTY_STRING(&tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(&schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(&schemaName); @@ -58868,21 +57361,21 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, addForeignKey) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &reference); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(&tableName, tableName_param); } else { ZEPHIR_INIT_VAR(&tableName); ZVAL_EMPTY_STRING(&tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(&schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(&schemaName); @@ -58896,13 +57389,13 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, addForeignKey) { zephir_check_call_status(); ZEPHIR_CALL_METHOD(&_3, reference, "getcolumns", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_2, this_ptr, "getcolumnlist", NULL, 54, &_3); + ZEPHIR_CALL_METHOD(&_2, this_ptr, "getcolumnlist", NULL, 48, &_3); zephir_check_call_status(); ZEPHIR_CALL_METHOD(&_4, reference, "getreferencedtable", NULL, 0); zephir_check_call_status(); ZEPHIR_CALL_METHOD(&_6, reference, "getreferencedcolumns", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_5, this_ptr, "getcolumnlist", NULL, 54, &_6); + ZEPHIR_CALL_METHOD(&_5, this_ptr, "getcolumnlist", NULL, 48, &_6); zephir_check_call_status(); ZEPHIR_INIT_VAR(&sql); ZEPHIR_CONCAT_SVSVSVSSVSVS(&sql, "ALTER TABLE ", &_0, " ADD CONSTRAINT \"", &_1, "\" FOREIGN KEY (", &_2, ")", " REFERENCES \"", &_4, "\" (", &_5, ")"); @@ -58939,31 +57432,31 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, dropForeignKey) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &referenceName_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(&tableName, tableName_param); } else { ZEPHIR_INIT_VAR(&tableName); ZVAL_EMPTY_STRING(&tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(&schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(&schemaName); ZVAL_EMPTY_STRING(&schemaName); } - if (unlikely(Z_TYPE_P(referenceName_param) != IS_STRING && Z_TYPE_P(referenceName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(referenceName_param) != IS_STRING && Z_TYPE_P(referenceName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'referenceName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(referenceName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(referenceName_param) == IS_STRING)) { zephir_get_strval(&referenceName, referenceName_param); } else { ZEPHIR_INIT_VAR(&referenceName); @@ -59051,21 +57544,21 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, createTable) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &definition_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(&tableName, tableName_param); } else { ZEPHIR_INIT_VAR(&tableName); ZVAL_EMPTY_STRING(&tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(&schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(&schemaName); @@ -59142,7 +57635,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, createTable) { } ZEND_HASH_FOREACH_END(); ZEPHIR_INIT_NVAR(&column); if (!(ZEPHIR_IS_EMPTY(&primaryColumns))) { - ZEPHIR_CALL_METHOD(&_11$$13, this_ptr, "getcolumnlist", NULL, 54, &primaryColumns); + ZEPHIR_CALL_METHOD(&_11$$13, this_ptr, "getcolumnlist", NULL, 48, &primaryColumns); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_12$$13); ZEPHIR_CONCAT_SVS(&_12$$13, "PRIMARY KEY (", &_11$$13, ")"); @@ -59166,7 +57659,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, createTable) { if (ZEPHIR_IS_STRING(&indexName, "PRIMARY")) { ZEPHIR_CALL_METHOD(&_15$$16, &index, "getcolumns", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_14$$16, this_ptr, "getcolumnlist", NULL, 54, &_15$$16); + ZEPHIR_CALL_METHOD(&_14$$16, this_ptr, "getcolumnlist", NULL, 48, &_15$$16); zephir_check_call_status(); ZEPHIR_INIT_NVAR(&indexSql); ZEPHIR_CONCAT_SVS(&indexSql, "CONSTRAINT \"PRIMARY\" PRIMARY KEY (", &_14$$16, ")"); @@ -59174,7 +57667,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, createTable) { if (!(ZEPHIR_IS_EMPTY(&indexType))) { ZEPHIR_CALL_METHOD(&_17$$18, &index, "getcolumns", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_16$$18, this_ptr, "getcolumnlist", NULL, 54, &_17$$18); + ZEPHIR_CALL_METHOD(&_16$$18, this_ptr, "getcolumnlist", NULL, 48, &_17$$18); zephir_check_call_status(); ZEPHIR_INIT_NVAR(&indexSql); ZEPHIR_CONCAT_SVSVSVS(&indexSql, "CONSTRAINT \"", &indexName, "\" ", &indexType, " (", &_16$$18, ")"); @@ -59188,7 +57681,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, createTable) { zephir_concat_self(&indexSqlAfterCreate, &_20$$19 TSRMLS_CC); ZEPHIR_CALL_METHOD(&_22$$19, &index, "getcolumns", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_21$$19, this_ptr, "getcolumnlist", NULL, 54, &_22$$19); + ZEPHIR_CALL_METHOD(&_21$$19, this_ptr, "getcolumnlist", NULL, 48, &_22$$19); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_23$$19); ZEPHIR_CONCAT_SVS(&_23$$19, " (", &_21$$19, ");"); @@ -59212,7 +57705,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, createTable) { zephir_check_call_status(); ZEPHIR_CALL_METHOD(&_27$$22, &reference, "getcolumns", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_26$$22, this_ptr, "getcolumnlist", NULL, 54, &_27$$22); + ZEPHIR_CALL_METHOD(&_26$$22, this_ptr, "getcolumnlist", NULL, 48, &_27$$22); zephir_check_call_status(); ZEPHIR_INIT_NVAR(&referenceSql); ZEPHIR_CONCAT_SVSVS(&referenceSql, "CONSTRAINT \"", &_25$$22, "\" FOREIGN KEY (", &_26$$22, ") REFERENCES "); @@ -59223,7 +57716,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, createTable) { zephir_concat_self(&referenceSql, &_28$$22 TSRMLS_CC); ZEPHIR_CALL_METHOD(&_31$$22, &reference, "getreferencedcolumns", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_30$$22, this_ptr, "getcolumnlist", NULL, 54, &_31$$22); + ZEPHIR_CALL_METHOD(&_30$$22, this_ptr, "getcolumnlist", NULL, 48, &_31$$22); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_32$$22); ZEPHIR_CONCAT_SVS(&_32$$22, " (", &_30$$22, ")"); @@ -59280,21 +57773,21 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, truncateTable) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &tableName_param, &schemaName_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(&tableName, tableName_param); } else { ZEPHIR_INIT_VAR(&tableName); ZVAL_EMPTY_STRING(&tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(&schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(&schemaName); @@ -59331,11 +57824,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, dropTable) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &tableName_param, &schemaName_param, &ifExists_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(&tableName, tableName_param); } else { ZEPHIR_INIT_VAR(&tableName); @@ -59350,7 +57843,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, dropTable) { if (!ifExists_param) { ifExists = 1; } else { - if (unlikely(Z_TYPE_P(ifExists_param) != IS_TRUE && Z_TYPE_P(ifExists_param) != IS_FALSE)) { + if (UNEXPECTED(Z_TYPE_P(ifExists_param) != IS_TRUE && Z_TYPE_P(ifExists_param) != IS_FALSE)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'ifExists' must be a bool") TSRMLS_CC); RETURN_MM_NULL(); } @@ -59387,11 +57880,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, createView) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 1, &viewName_param, &definition_param, &schemaName_param); - if (unlikely(Z_TYPE_P(viewName_param) != IS_STRING && Z_TYPE_P(viewName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(viewName_param) != IS_STRING && Z_TYPE_P(viewName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'viewName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(viewName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(viewName_param) == IS_STRING)) { zephir_get_strval(&viewName, viewName_param); } else { ZEPHIR_INIT_VAR(&viewName); @@ -59434,11 +57927,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, dropView) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &viewName_param, &schemaName_param, &ifExists_param); - if (unlikely(Z_TYPE_P(viewName_param) != IS_STRING && Z_TYPE_P(viewName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(viewName_param) != IS_STRING && Z_TYPE_P(viewName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'viewName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(viewName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(viewName_param) == IS_STRING)) { zephir_get_strval(&viewName, viewName_param); } else { ZEPHIR_INIT_VAR(&viewName); @@ -59453,7 +57946,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, dropView) { if (!ifExists_param) { ifExists = 1; } else { - if (unlikely(Z_TYPE_P(ifExists_param) != IS_TRUE && Z_TYPE_P(ifExists_param) != IS_FALSE)) { + if (UNEXPECTED(Z_TYPE_P(ifExists_param) != IS_TRUE && Z_TYPE_P(ifExists_param) != IS_FALSE)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'ifExists' must be a bool") TSRMLS_CC); RETURN_MM_NULL(); } @@ -59485,11 +57978,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, tableExists) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &tableName_param, &schemaName_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(&tableName, tableName_param); } else { ZEPHIR_INIT_VAR(&tableName); @@ -59524,11 +58017,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, viewExists) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &viewName_param, &schemaName_param); - if (unlikely(Z_TYPE_P(viewName_param) != IS_STRING && Z_TYPE_P(viewName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(viewName_param) != IS_STRING && Z_TYPE_P(viewName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'viewName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(viewName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(viewName_param) == IS_STRING)) { zephir_get_strval(&viewName, viewName_param); } else { ZEPHIR_INIT_VAR(&viewName); @@ -59563,11 +58056,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, describeColumns) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &table_param, &schema_param); - if (unlikely(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'table' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(table_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(table_param) == IS_STRING)) { zephir_get_strval(&table, table_param); } else { ZEPHIR_INIT_VAR(&table); @@ -59653,11 +58146,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, describeIndexes) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &table_param, &schema_param); - if (unlikely(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'table' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(table_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(table_param) == IS_STRING)) { zephir_get_strval(&table, table_param); } else { ZEPHIR_INIT_VAR(&table); @@ -59691,11 +58184,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, describeReferences) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &table_param, &schema_param); - if (unlikely(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'table' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(table_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(table_param) == IS_STRING)) { zephir_get_strval(&table, table_param); } else { ZEPHIR_INIT_VAR(&table); @@ -59736,11 +58229,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, tableOptions) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &table_param, &schema_param); - if (unlikely(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'table' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(table_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(table_param) == IS_STRING)) { zephir_get_strval(&table, table_param); } else { ZEPHIR_INIT_VAR(&table); @@ -59828,7 +58321,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, _castDefault) { } else { ZEPHIR_INIT_VAR(&_8$$6); ZVAL_STRING(&_8$$6, "\\'"); - ZEPHIR_CALL_FUNCTION(&_9$$6, "addcslashes", NULL, 150, &defaultValue, &_8$$6); + ZEPHIR_CALL_FUNCTION(&_9$$6, "addcslashes", NULL, 137, &defaultValue, &_8$$6); zephir_check_call_status(); ZEPHIR_CONCAT_SVS(&preparedValue, "'", &_9$$6, "'"); } @@ -60055,7 +58548,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, getColumnDefinition) { zephir_check_call_status(); ZEPHIR_INIT_VAR(&_11$$39); ZEPHIR_CONCAT_SV(&_11$$39, "Unrecognized SQLite data type at column ", &_10$$39); - ZEPHIR_CALL_METHOD(NULL, &_9$$39, "__construct", NULL, 9, &_11$$39); + ZEPHIR_CALL_METHOD(NULL, &_9$$39, "__construct", NULL, 4, &_11$$39); zephir_check_call_status(); zephir_throw_exception_debug(&_9$$39, "phalcon/db/dialect/sqlite.zep", 169 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -60074,7 +58567,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, getColumnDefinition) { ZVAL_COPY(&value$$41, _12$$41); ZEPHIR_INIT_NVAR(&_13$$42); ZVAL_STRING(&_13$$42, "\""); - ZEPHIR_CALL_FUNCTION(&_14$$42, "addcslashes", &_15, 150, &value$$41, &_13$$42); + ZEPHIR_CALL_FUNCTION(&_14$$42, "addcslashes", &_15, 137, &value$$41, &_13$$42); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_16$$42); ZEPHIR_CONCAT_SVS(&_16$$42, "\"", &_14$$42, "\", "); @@ -60091,7 +58584,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, getColumnDefinition) { } else { ZEPHIR_INIT_VAR(&_21$$43); ZVAL_STRING(&_21$$43, "\""); - ZEPHIR_CALL_FUNCTION(&_22$$43, "addcslashes", &_15, 150, &typeValues, &_21$$43); + ZEPHIR_CALL_FUNCTION(&_22$$43, "addcslashes", &_15, 137, &typeValues, &_21$$43); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_23$$43); ZEPHIR_CONCAT_SVS(&_23$$43, "(\"", &_22$$43, "\")"); @@ -60131,21 +58624,21 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, addColumn) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &column); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(&tableName, tableName_param); } else { ZEPHIR_INIT_VAR(&tableName); ZVAL_EMPTY_STRING(&tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(&schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(&schemaName); @@ -60176,7 +58669,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, addColumn) { } else { ZEPHIR_INIT_VAR(&_6$$5); ZVAL_STRING(&_6$$5, "\""); - ZEPHIR_CALL_FUNCTION(&_7$$5, "addcslashes", NULL, 150, &defaultValue, &_6$$5); + ZEPHIR_CALL_FUNCTION(&_7$$5, "addcslashes", NULL, 137, &defaultValue, &_6$$5); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_8$$5); ZEPHIR_CONCAT_SVS(&_8$$5, " DEFAULT \"", &_7$$5, "\""); @@ -60212,21 +58705,21 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, modifyColumn) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 1, &tableName_param, &schemaName_param, &column, ¤tColumn); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(&tableName, tableName_param); } else { ZEPHIR_INIT_VAR(&tableName); ZVAL_EMPTY_STRING(&tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(&schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(&schemaName); @@ -60256,31 +58749,31 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, dropColumn) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &columnName_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(&tableName, tableName_param); } else { ZEPHIR_INIT_VAR(&tableName); ZVAL_EMPTY_STRING(&tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(&schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(&schemaName); ZVAL_EMPTY_STRING(&schemaName); } - if (unlikely(Z_TYPE_P(columnName_param) != IS_STRING && Z_TYPE_P(columnName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(columnName_param) != IS_STRING && Z_TYPE_P(columnName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'columnName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(columnName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(columnName_param) == IS_STRING)) { zephir_get_strval(&columnName, columnName_param); } else { ZEPHIR_INIT_VAR(&columnName); @@ -60316,21 +58809,21 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, addIndex) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &index); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(&tableName, tableName_param); } else { ZEPHIR_INIT_VAR(&tableName); ZVAL_EMPTY_STRING(&tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(&schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(&schemaName); @@ -60361,7 +58854,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, addIndex) { } ZEPHIR_CALL_METHOD(&_5, index, "getcolumns", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_4, this_ptr, "getcolumnlist", NULL, 54, &_5); + ZEPHIR_CALL_METHOD(&_4, this_ptr, "getcolumnlist", NULL, 48, &_5); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_6); ZEPHIR_CONCAT_VS(&_6, &_4, ")"); @@ -60383,31 +58876,31 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, dropIndex) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &indexName_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(&tableName, tableName_param); } else { ZEPHIR_INIT_VAR(&tableName); ZVAL_EMPTY_STRING(&tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(&schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(&schemaName); ZVAL_EMPTY_STRING(&schemaName); } - if (unlikely(Z_TYPE_P(indexName_param) != IS_STRING && Z_TYPE_P(indexName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(indexName_param) != IS_STRING && Z_TYPE_P(indexName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'indexName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(indexName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(indexName_param) == IS_STRING)) { zephir_get_strval(&indexName, indexName_param); } else { ZEPHIR_INIT_VAR(&indexName); @@ -60437,21 +58930,21 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, addPrimaryKey) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &index); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(&tableName, tableName_param); } else { ZEPHIR_INIT_VAR(&tableName); ZVAL_EMPTY_STRING(&tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(&schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(&schemaName); @@ -60476,21 +58969,21 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, dropPrimaryKey) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &tableName_param, &schemaName_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(&tableName, tableName_param); } else { ZEPHIR_INIT_VAR(&tableName); ZVAL_EMPTY_STRING(&tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(&schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(&schemaName); @@ -60516,21 +59009,21 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, addForeignKey) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &reference); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(&tableName, tableName_param); } else { ZEPHIR_INIT_VAR(&tableName); ZVAL_EMPTY_STRING(&tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(&schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(&schemaName); @@ -60556,31 +59049,31 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, dropForeignKey) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &referenceName_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(&tableName, tableName_param); } else { ZEPHIR_INIT_VAR(&tableName); ZVAL_EMPTY_STRING(&tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(&schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(&schemaName); ZVAL_EMPTY_STRING(&schemaName); } - if (unlikely(Z_TYPE_P(referenceName_param) != IS_STRING && Z_TYPE_P(referenceName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(referenceName_param) != IS_STRING && Z_TYPE_P(referenceName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'referenceName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(referenceName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(referenceName_param) == IS_STRING)) { zephir_get_strval(&referenceName, referenceName_param); } else { ZEPHIR_INIT_VAR(&referenceName); @@ -60655,21 +59148,21 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, createTable) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &definition_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(&tableName, tableName_param); } else { ZEPHIR_INIT_VAR(&tableName); ZVAL_EMPTY_STRING(&tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(&schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(&schemaName); @@ -60743,7 +59236,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, createTable) { } else { ZEPHIR_INIT_NVAR(&_10$$12); ZVAL_STRING(&_10$$12, "\""); - ZEPHIR_CALL_FUNCTION(&_11$$12, "addcslashes", &_12, 150, &defaultValue, &_10$$12); + ZEPHIR_CALL_FUNCTION(&_11$$12, "addcslashes", &_12, 137, &defaultValue, &_10$$12); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_13$$12); ZEPHIR_CONCAT_SVS(&_13$$12, " DEFAULT \"", &_11$$12, "\""); @@ -60782,7 +59275,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, createTable) { if (_16$$15) { ZEPHIR_CALL_METHOD(&_20$$16, &index, "getcolumns", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_19$$16, this_ptr, "getcolumnlist", &_21, 54, &_20$$16); + ZEPHIR_CALL_METHOD(&_19$$16, this_ptr, "getcolumnlist", &_21, 48, &_20$$16); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_22$$16); ZEPHIR_CONCAT_SVS(&_22$$16, "PRIMARY KEY (", &_19$$16, ")"); @@ -60790,7 +59283,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, createTable) { } else if (_17$$15) { ZEPHIR_CALL_METHOD(&_24$$17, &index, "getcolumns", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_23$$17, this_ptr, "getcolumnlist", &_21, 54, &_24$$17); + ZEPHIR_CALL_METHOD(&_23$$17, this_ptr, "getcolumnlist", &_21, 48, &_24$$17); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_25$$17); ZEPHIR_CONCAT_SVS(&_25$$17, "UNIQUE (", &_23$$17, ")"); @@ -60810,13 +59303,13 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, createTable) { zephir_check_call_status(); ZEPHIR_CALL_METHOD(&_29$$19, &reference, "getcolumns", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_28$$19, this_ptr, "getcolumnlist", &_21, 54, &_29$$19); + ZEPHIR_CALL_METHOD(&_28$$19, this_ptr, "getcolumnlist", &_21, 48, &_29$$19); zephir_check_call_status(); ZEPHIR_CALL_METHOD(&_30$$19, &reference, "getreferencedtable", NULL, 0); zephir_check_call_status(); ZEPHIR_CALL_METHOD(&_32$$19, &reference, "getreferencedcolumns", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_31$$19, this_ptr, "getcolumnlist", &_21, 54, &_32$$19); + ZEPHIR_CALL_METHOD(&_31$$19, this_ptr, "getcolumnlist", &_21, 48, &_32$$19); zephir_check_call_status(); ZEPHIR_INIT_NVAR(&referenceSql); ZEPHIR_CONCAT_SVSVSSVSVS(&referenceSql, "CONSTRAINT `", &_27$$19, "` FOREIGN KEY (", &_28$$19, ")", " REFERENCES `", &_30$$19, "`(", &_31$$19, ")"); @@ -60862,21 +59355,21 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, truncateTable) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &tableName_param, &schemaName_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(&tableName, tableName_param); } else { ZEPHIR_INIT_VAR(&tableName); ZVAL_EMPTY_STRING(&tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(&schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(&schemaName); @@ -60913,11 +59406,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, dropTable) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &tableName_param, &schemaName_param, &ifExists_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(&tableName, tableName_param); } else { ZEPHIR_INIT_VAR(&tableName); @@ -60932,7 +59425,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, dropTable) { if (!ifExists_param) { ifExists = 1; } else { - if (unlikely(Z_TYPE_P(ifExists_param) != IS_TRUE && Z_TYPE_P(ifExists_param) != IS_FALSE)) { + if (UNEXPECTED(Z_TYPE_P(ifExists_param) != IS_TRUE && Z_TYPE_P(ifExists_param) != IS_FALSE)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'ifExists' must be a bool") TSRMLS_CC); RETURN_MM_NULL(); } @@ -60969,11 +59462,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, createView) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 1, &viewName_param, &definition_param, &schemaName_param); - if (unlikely(Z_TYPE_P(viewName_param) != IS_STRING && Z_TYPE_P(viewName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(viewName_param) != IS_STRING && Z_TYPE_P(viewName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'viewName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(viewName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(viewName_param) == IS_STRING)) { zephir_get_strval(&viewName, viewName_param); } else { ZEPHIR_INIT_VAR(&viewName); @@ -61015,11 +59508,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, dropView) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &viewName_param, &schemaName_param, &ifExists_param); - if (unlikely(Z_TYPE_P(viewName_param) != IS_STRING && Z_TYPE_P(viewName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(viewName_param) != IS_STRING && Z_TYPE_P(viewName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'viewName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(viewName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(viewName_param) == IS_STRING)) { zephir_get_strval(&viewName, viewName_param); } else { ZEPHIR_INIT_VAR(&viewName); @@ -61034,7 +59527,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, dropView) { if (!ifExists_param) { ifExists = 1; } else { - if (unlikely(Z_TYPE_P(ifExists_param) != IS_TRUE && Z_TYPE_P(ifExists_param) != IS_FALSE)) { + if (UNEXPECTED(Z_TYPE_P(ifExists_param) != IS_TRUE && Z_TYPE_P(ifExists_param) != IS_FALSE)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'ifExists' must be a bool") TSRMLS_CC); RETURN_MM_NULL(); } @@ -61065,11 +59558,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, tableExists) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &tableName_param, &schemaName_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(&tableName, tableName_param); } else { ZEPHIR_INIT_VAR(&tableName); @@ -61100,11 +59593,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, viewExists) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &viewName_param, &schemaName_param); - if (unlikely(Z_TYPE_P(viewName_param) != IS_STRING && Z_TYPE_P(viewName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(viewName_param) != IS_STRING && Z_TYPE_P(viewName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'viewName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(viewName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(viewName_param) == IS_STRING)) { zephir_get_strval(&viewName, viewName_param); } else { ZEPHIR_INIT_VAR(&viewName); @@ -61135,11 +59628,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, describeColumns) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &table_param, &schema_param); - if (unlikely(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'table' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(table_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(table_param) == IS_STRING)) { zephir_get_strval(&table, table_param); } else { ZEPHIR_INIT_VAR(&table); @@ -61196,11 +59689,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, listViews) { ZEPHIR_INIT_VAR(&schemaName); ZVAL_STRING(&schemaName, ""); } else { - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(&schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(&schemaName); @@ -61232,11 +59725,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, listIndexesSql) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &table_param, &schema_param, &keyName_param); - if (unlikely(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'table' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(table_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(table_param) == IS_STRING)) { zephir_get_strval(&table, table_param); } else { ZEPHIR_INIT_VAR(&table); @@ -61256,13 +59749,13 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, listIndexesSql) { } - ZEPHIR_CALL_METHOD(&_0, this_ptr, "escape", NULL, 53, &table); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "escape", NULL, 47, &table); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_1); ZEPHIR_CONCAT_SVS(&_1, "SELECT sql FROM sqlite_master WHERE type = 'index' AND tbl_name = ", &_0, " COLLATE NOCASE"); zephir_get_strval(&sql, &_1); if (!(Z_TYPE_P(&keyName) == IS_UNDEF) && Z_STRLEN_P(&keyName)) { - ZEPHIR_CALL_METHOD(&_2$$3, this_ptr, "escape", NULL, 53, &keyName); + ZEPHIR_CALL_METHOD(&_2$$3, this_ptr, "escape", NULL, 47, &keyName); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_3$$3); ZEPHIR_CONCAT_SVS(&_3$$3, " AND name = ", &_2$$3, " COLLATE NOCASE"); @@ -61284,11 +59777,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, describeIndexes) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &table_param, &schema_param); - if (unlikely(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'table' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(table_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(table_param) == IS_STRING)) { zephir_get_strval(&table, table_param); } else { ZEPHIR_INIT_VAR(&table); @@ -61318,11 +59811,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, describeIndex) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &index_param); - if (unlikely(Z_TYPE_P(index_param) != IS_STRING && Z_TYPE_P(index_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(index_param) != IS_STRING && Z_TYPE_P(index_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'index' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(index_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(index_param) == IS_STRING)) { zephir_get_strval(&index, index_param); } else { ZEPHIR_INIT_VAR(&index); @@ -61347,11 +59840,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, describeReferences) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &table_param, &schema_param); - if (unlikely(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'table' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(table_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(table_param) == IS_STRING)) { zephir_get_strval(&table, table_param); } else { ZEPHIR_INIT_VAR(&table); @@ -61382,11 +59875,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, tableOptions) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &table_param, &schema_param); - if (unlikely(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'table' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(table_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(table_param) == IS_STRING)) { zephir_get_strval(&table, table_param); } else { ZEPHIR_INIT_VAR(&table); @@ -62114,14 +60607,13 @@ static PHP_METHOD(Phalcon_Debug_Dump, __construct) { static PHP_METHOD(Phalcon_Debug_Dump, all) { - zval _1, _2; + zval _1; zval _0; int ZEPHIR_LAST_CALL_STATUS; ZEPHIR_INIT_THIS(); ZVAL_UNDEF(&_0); ZVAL_UNDEF(&_1); - ZVAL_UNDEF(&_2); ZEPHIR_MM_GROW(); @@ -62131,9 +60623,9 @@ static PHP_METHOD(Phalcon_Debug_Dump, all) { ZEPHIR_INIT_VAR(&_1); ZVAL_STRING(&_1, "variables"); zephir_array_fast_append(&_0, &_1); - ZEPHIR_CALL_FUNCTION(&_2, "func_get_args", NULL, 173); - zephir_check_call_status(); - ZEPHIR_CALL_USER_FUNC_ARRAY(return_value, &_0, &_2); + ZEPHIR_INIT_NVAR(&_1); + zephir_get_args(&_1); + ZEPHIR_CALL_USER_FUNC_ARRAY(return_value, &_0, &_1); zephir_check_call_status(); RETURN_MM(); @@ -62152,11 +60644,11 @@ static PHP_METHOD(Phalcon_Debug_Dump, getStyle) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &type_param); - if (unlikely(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'type' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(type_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(type_param) == IS_STRING)) { zephir_get_strval(&type, type_param); } else { ZEPHIR_INIT_VAR(&type); @@ -62403,7 +60895,7 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { add_assoc_long_ex(&_1$$4, SL(":count"), zephir_fast_count_int(variable TSRMLS_CC)); ZEPHIR_INIT_NVAR(&_3$$4); ZVAL_STRING(&_3$$4, "Array (:count) (\n"); - ZEPHIR_CALL_FUNCTION(&_2$$4, "strtr", &_5, 26, &_3$$4, &_1$$4); + ZEPHIR_CALL_FUNCTION(&_2$$4, "strtr", &_5, 21, &_3$$4, &_1$$4); zephir_check_call_status(); zephir_concat_self(&output, &_2$$4 TSRMLS_CC); zephir_is_iterable(variable, 0, "phalcon/debug/dump.zep", 161); @@ -62418,7 +60910,7 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { ZEPHIR_INIT_NVAR(&value); ZVAL_COPY(&value, _6$$4); ZVAL_LONG(&_9$$5, tab); - ZEPHIR_CALL_FUNCTION(&_10$$5, "str_repeat", &_11, 139, &space, &_9$$5); + ZEPHIR_CALL_FUNCTION(&_10$$5, "str_repeat", &_11, 127, &space, &_9$$5); zephir_check_call_status(); ZEPHIR_INIT_NVAR(&_12$$5); zephir_create_array(&_12$$5, 2, 0 TSRMLS_CC); @@ -62430,7 +60922,7 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { zephir_array_update_string(&_12$$5, SL(":key"), &key, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_NVAR(&_14$$5); ZVAL_STRING(&_14$$5, "[:key] => "); - ZEPHIR_CALL_FUNCTION(&_13$$5, "strtr", &_5, 26, &_14$$5, &_12$$5); + ZEPHIR_CALL_FUNCTION(&_13$$5, "strtr", &_5, 21, &_14$$5, &_12$$5); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_15$$5); ZEPHIR_CONCAT_VV(&_15$$5, &_10$$5, &_13$$5); @@ -62453,7 +60945,7 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { ZEPHIR_INIT_NVAR(&_20$$7); ZVAL_STRING(&_20$$7, ""); ZVAL_LONG(&_21$$7, (tab + 1)); - ZEPHIR_CALL_METHOD(&_19$$7, this_ptr, "output", &_22, 174, &value, &_20$$7, &_21$$7); + ZEPHIR_CALL_METHOD(&_19$$7, this_ptr, "output", &_22, 157, &value, &_20$$7, &_21$$7); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_23$$7); ZEPHIR_CONCAT_VS(&_23$$7, &_19$$7, "\n"); @@ -62463,7 +60955,7 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { ZEPHIR_INIT_NVAR(&value); ZEPHIR_INIT_NVAR(&key); ZVAL_LONG(&_24$$4, (tab - 1)); - ZEPHIR_CALL_FUNCTION(&_25$$4, "str_repeat", &_11, 139, &space, &_24$$4); + ZEPHIR_CALL_FUNCTION(&_25$$4, "str_repeat", &_11, 127, &space, &_24$$4); zephir_check_call_status(); ZEPHIR_CONCAT_VVS(return_value, &output, &_25$$4, ")"); RETURN_MM(); @@ -62481,10 +60973,10 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { zephir_array_update_string(&_26$$8, SL(":class"), &_28$$8, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_NVAR(&_28$$8); ZVAL_STRING(&_28$$8, "Object :class"); - ZEPHIR_CALL_FUNCTION(&_27$$8, "strtr", &_5, 26, &_28$$8, &_26$$8); + ZEPHIR_CALL_FUNCTION(&_27$$8, "strtr", &_5, 21, &_28$$8, &_26$$8); zephir_check_call_status(); zephir_concat_self(&output, &_27$$8 TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_29$$8, "get_parent_class", &_30, 175, variable); + ZEPHIR_CALL_FUNCTION(&_29$$8, "get_parent_class", &_30, 158, variable); zephir_check_call_status(); if (zephir_is_true(&_29$$8)) { ZEPHIR_INIT_VAR(&_31$$9); @@ -62494,12 +60986,12 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { ZEPHIR_CALL_METHOD(&_32$$9, this_ptr, "getstyle", &_4, 0, &_33$$9); zephir_check_call_status(); zephir_array_update_string(&_31$$9, SL(":style"), &_32$$9, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_FUNCTION(&_32$$9, "get_parent_class", &_30, 175, variable); + ZEPHIR_CALL_FUNCTION(&_32$$9, "get_parent_class", &_30, 158, variable); zephir_check_call_status(); zephir_array_update_string(&_31$$9, SL(":parent"), &_32$$9, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_NVAR(&_33$$9); ZVAL_STRING(&_33$$9, " extends :parent"); - ZEPHIR_CALL_FUNCTION(&_32$$9, "strtr", &_5, 26, &_33$$9, &_31$$9); + ZEPHIR_CALL_FUNCTION(&_32$$9, "strtr", &_5, 21, &_33$$9, &_31$$9); zephir_check_call_status(); zephir_concat_self(&output, &_32$$9 TSRMLS_CC); } @@ -62507,13 +60999,13 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { zephir_read_property(&_34$$8, this_ptr, SL("_detailed"), PH_NOISY_CC | PH_READONLY); if (zephir_instance_of_ev(variable, phalcon_di_ce TSRMLS_CC)) { ZVAL_LONG(&_35$$10, tab); - ZEPHIR_CALL_FUNCTION(&_36$$10, "str_repeat", &_11, 139, &space, &_35$$10); + ZEPHIR_CALL_FUNCTION(&_36$$10, "str_repeat", &_11, 127, &space, &_35$$10); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_37$$10); ZEPHIR_CONCAT_VS(&_37$$10, &_36$$10, "[skipped]\n"); zephir_concat_self(&output, &_37$$10 TSRMLS_CC); } else if (!(zephir_is_true(&_34$$8))) { - ZEPHIR_CALL_FUNCTION(&_38$$11, "get_object_vars", NULL, 21, variable); + ZEPHIR_CALL_FUNCTION(&_38$$11, "get_object_vars", NULL, 16, variable); zephir_check_call_status(); zephir_is_iterable(&_38$$11, 0, "phalcon/debug/dump.zep", 194); ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&_38$$11), _40$$11, _41$$11, _39$$11) @@ -62527,7 +61019,7 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { ZEPHIR_INIT_NVAR(&value); ZVAL_COPY(&value, _39$$11); ZVAL_LONG(&_42$$12, tab); - ZEPHIR_CALL_FUNCTION(&_43$$12, "str_repeat", &_11, 139, &space, &_42$$12); + ZEPHIR_CALL_FUNCTION(&_43$$12, "str_repeat", &_11, 127, &space, &_42$$12); zephir_check_call_status(); ZEPHIR_INIT_NVAR(&_44$$12); zephir_create_array(&_44$$12, 3, 0 TSRMLS_CC); @@ -62540,7 +61032,7 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { add_assoc_stringl_ex(&_44$$12, SL(":type"), SL("public")); ZEPHIR_INIT_NVAR(&_46$$12); ZVAL_STRING(&_46$$12, "->:key (:type) = "); - ZEPHIR_CALL_FUNCTION(&_45$$12, "strtr", &_5, 26, &_46$$12, &_44$$12); + ZEPHIR_CALL_FUNCTION(&_45$$12, "strtr", &_5, 21, &_46$$12, &_44$$12); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_47$$12); ZEPHIR_CONCAT_VV(&_47$$12, &_43$$12, &_45$$12); @@ -62548,7 +61040,7 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { ZEPHIR_INIT_NVAR(&_46$$12); ZVAL_STRING(&_46$$12, ""); ZVAL_LONG(&_42$$12, (tab + 1)); - ZEPHIR_CALL_METHOD(&_48$$12, this_ptr, "output", &_22, 174, &value, &_46$$12, &_42$$12); + ZEPHIR_CALL_METHOD(&_48$$12, this_ptr, "output", &_22, 157, &value, &_46$$12, &_42$$12); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_49$$12); ZEPHIR_CONCAT_VS(&_49$$12, &_48$$12, "\n"); @@ -62559,7 +61051,7 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { } else { do { ZEPHIR_MAKE_REF(variable); - ZEPHIR_CALL_FUNCTION(&attr, "each", &_50, 176, variable); + ZEPHIR_CALL_FUNCTION(&attr, "each", &_50, 159, variable); ZEPHIR_UNREF(variable); zephir_check_call_status(); if (!(zephir_is_true(&attr))) { @@ -62574,7 +61066,7 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { } ZEPHIR_INIT_NVAR(&_51$$14); ZVAL_LONG(&_52$$14, 0); - ZEPHIR_CALL_FUNCTION(&_53$$14, "chr", &_54, 138, &_52$$14); + ZEPHIR_CALL_FUNCTION(&_53$$14, "chr", &_54, 126, &_52$$14); zephir_check_call_status(); zephir_fast_explode(&_51$$14, &_53$$14, &key, LONG_MAX TSRMLS_CC); ZEPHIR_CPY_WRT(&key, &_51$$14); @@ -62590,7 +61082,7 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { } } ZVAL_LONG(&_52$$14, tab); - ZEPHIR_CALL_FUNCTION(&_56$$14, "str_repeat", &_11, 139, &space, &_52$$14); + ZEPHIR_CALL_FUNCTION(&_56$$14, "str_repeat", &_11, 127, &space, &_52$$14); zephir_check_call_status(); ZEPHIR_INIT_NVAR(&_57$$14); zephir_create_array(&_57$$14, 3, 0 TSRMLS_CC); @@ -62600,14 +61092,14 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { zephir_check_call_status(); zephir_array_update_string(&_57$$14, SL(":style"), &_58$$14, PH_COPY | PH_SEPARATE); ZEPHIR_MAKE_REF(&key); - ZEPHIR_CALL_FUNCTION(&_58$$14, "end", &_59, 177, &key); + ZEPHIR_CALL_FUNCTION(&_58$$14, "end", &_59, 160, &key); ZEPHIR_UNREF(&key); zephir_check_call_status(); zephir_array_update_string(&_57$$14, SL(":key"), &_58$$14, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_57$$14, SL(":type"), &type, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_NVAR(&_51$$14); ZVAL_STRING(&_51$$14, "->:key (:type) = "); - ZEPHIR_CALL_FUNCTION(&_58$$14, "strtr", &_5, 26, &_51$$14, &_57$$14); + ZEPHIR_CALL_FUNCTION(&_58$$14, "strtr", &_5, 21, &_51$$14, &_57$$14); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_60$$14); ZEPHIR_CONCAT_VV(&_60$$14, &_56$$14, &_58$$14); @@ -62615,17 +61107,17 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { ZEPHIR_INIT_NVAR(&_51$$14); ZVAL_STRING(&_51$$14, ""); ZVAL_LONG(&_52$$14, (tab + 1)); - ZEPHIR_CALL_METHOD(&_61$$14, this_ptr, "output", &_22, 174, &value, &_51$$14, &_52$$14); + ZEPHIR_CALL_METHOD(&_61$$14, this_ptr, "output", &_22, 157, &value, &_51$$14, &_52$$14); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_62$$14); ZEPHIR_CONCAT_VS(&_62$$14, &_61$$14, "\n"); zephir_concat_self(&output, &_62$$14 TSRMLS_CC); } while (zephir_is_true(&attr)); } - ZEPHIR_CALL_FUNCTION(&attr, "get_class_methods", NULL, 178, variable); + ZEPHIR_CALL_FUNCTION(&attr, "get_class_methods", NULL, 161, variable); zephir_check_call_status(); ZVAL_LONG(&_63$$8, tab); - ZEPHIR_CALL_FUNCTION(&_64$$8, "str_repeat", &_11, 139, &space, &_63$$8); + ZEPHIR_CALL_FUNCTION(&_64$$8, "str_repeat", &_11, 127, &space, &_63$$8); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_65$$8); zephir_create_array(&_65$$8, 3, 0 TSRMLS_CC); @@ -62640,7 +61132,7 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { add_assoc_long_ex(&_65$$8, SL(":count"), zephir_fast_count_int(&attr TSRMLS_CC)); ZEPHIR_INIT_NVAR(&_28$$8); ZVAL_STRING(&_28$$8, ":class methods: (:count) (\n"); - ZEPHIR_CALL_FUNCTION(&_66$$8, "strtr", &_5, 26, &_28$$8, &_65$$8); + ZEPHIR_CALL_FUNCTION(&_66$$8, "strtr", &_5, 21, &_28$$8, &_65$$8); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_67$$8); ZEPHIR_CONCAT_VV(&_67$$8, &_64$$8, &_66$$8); @@ -62650,7 +61142,7 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { zephir_read_property(&_63$$8, this_ptr, SL("_methods"), PH_NOISY_CC | PH_READONLY); if (zephir_fast_in_array(&_28$$8, &_63$$8 TSRMLS_CC)) { ZVAL_LONG(&_68$$19, tab); - ZEPHIR_CALL_FUNCTION(&_69$$19, "str_repeat", &_11, 139, &space, &_68$$19); + ZEPHIR_CALL_FUNCTION(&_69$$19, "str_repeat", &_11, 127, &space, &_68$$19); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_70$$19); ZEPHIR_CONCAT_VS(&_70$$19, &_69$$19, "[already listed]\n"); @@ -62666,7 +61158,7 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { zephir_update_property_array_append(this_ptr, SL("_methods"), &_72$$21 TSRMLS_CC); if (ZEPHIR_IS_STRING(&value, "__construct")) { ZVAL_LONG(&_73$$22, (tab + 1)); - ZEPHIR_CALL_FUNCTION(&_74$$22, "str_repeat", &_11, 139, &space, &_73$$22); + ZEPHIR_CALL_FUNCTION(&_74$$22, "str_repeat", &_11, 127, &space, &_73$$22); zephir_check_call_status(); ZEPHIR_INIT_NVAR(&_75$$22); zephir_create_array(&_75$$22, 2, 0 TSRMLS_CC); @@ -62678,14 +61170,14 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { zephir_array_update_string(&_75$$22, SL(":method"), &value, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_NVAR(&_77$$22); ZVAL_STRING(&_77$$22, "->:method(); [constructor]\n"); - ZEPHIR_CALL_FUNCTION(&_76$$22, "strtr", &_5, 26, &_77$$22, &_75$$22); + ZEPHIR_CALL_FUNCTION(&_76$$22, "strtr", &_5, 21, &_77$$22, &_75$$22); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_78$$22); ZEPHIR_CONCAT_VV(&_78$$22, &_74$$22, &_76$$22); zephir_concat_self(&output, &_78$$22 TSRMLS_CC); } else { ZVAL_LONG(&_79$$23, (tab + 1)); - ZEPHIR_CALL_FUNCTION(&_80$$23, "str_repeat", &_11, 139, &space, &_79$$23); + ZEPHIR_CALL_FUNCTION(&_80$$23, "str_repeat", &_11, 127, &space, &_79$$23); zephir_check_call_status(); ZEPHIR_INIT_NVAR(&_81$$23); zephir_create_array(&_81$$23, 2, 0 TSRMLS_CC); @@ -62697,7 +61189,7 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { zephir_array_update_string(&_81$$23, SL(":method"), &value, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_NVAR(&_83$$23); ZVAL_STRING(&_83$$23, "->:method();\n"); - ZEPHIR_CALL_FUNCTION(&_82$$23, "strtr", &_5, 26, &_83$$23, &_81$$23); + ZEPHIR_CALL_FUNCTION(&_82$$23, "strtr", &_5, 21, &_83$$23, &_81$$23); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_84$$23); ZEPHIR_CONCAT_VV(&_84$$23, &_80$$23, &_82$$23); @@ -62706,14 +61198,14 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { } ZEND_HASH_FOREACH_END(); ZEPHIR_INIT_NVAR(&value); ZVAL_LONG(&_85$$20, tab); - ZEPHIR_CALL_FUNCTION(&_86$$20, "str_repeat", &_11, 139, &space, &_85$$20); + ZEPHIR_CALL_FUNCTION(&_86$$20, "str_repeat", &_11, 127, &space, &_85$$20); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_87$$20); ZEPHIR_CONCAT_VS(&_87$$20, &_86$$20, ")\n"); zephir_concat_self(&output, &_87$$20 TSRMLS_CC); } ZVAL_LONG(&_88$$8, (tab - 1)); - ZEPHIR_CALL_FUNCTION(&_89$$8, "str_repeat", &_11, 139, &space, &_88$$8); + ZEPHIR_CALL_FUNCTION(&_89$$8, "str_repeat", &_11, 127, &space, &_88$$8); zephir_check_call_status(); ZEPHIR_CONCAT_VVS(return_value, &output, &_89$$8, ")"); RETURN_MM(); @@ -62729,12 +61221,12 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { zephir_array_update_string(&_90$$24, SL(":var"), variable, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_NVAR(&_92$$24); ZVAL_STRING(&_92$$24, "Integer (:var)"); - ZEPHIR_CALL_FUNCTION(&_91$$24, "strtr", &_5, 26, &_92$$24, &_90$$24); + ZEPHIR_CALL_FUNCTION(&_91$$24, "strtr", &_5, 21, &_92$$24, &_90$$24); zephir_check_call_status(); ZEPHIR_CONCAT_VV(return_value, &output, &_91$$24); RETURN_MM(); } - ZEPHIR_CALL_FUNCTION(&_93, "is_float", NULL, 179, variable); + ZEPHIR_CALL_FUNCTION(&_93, "is_float", NULL, 162, variable); zephir_check_call_status(); if (zephir_is_true(&_93)) { ZEPHIR_INIT_VAR(&_94$$25); @@ -62747,7 +61239,7 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { zephir_array_update_string(&_94$$25, SL(":var"), variable, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_NVAR(&_96$$25); ZVAL_STRING(&_96$$25, "Float (:var)"); - ZEPHIR_CALL_FUNCTION(&_95$$25, "strtr", &_5, 26, &_96$$25, &_94$$25); + ZEPHIR_CALL_FUNCTION(&_95$$25, "strtr", &_5, 21, &_96$$25, &_94$$25); zephir_check_call_status(); ZEPHIR_CONCAT_VV(return_value, &output, &_95$$25); RETURN_MM(); @@ -62764,7 +61256,7 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { zephir_array_update_string(&_97$$26, SL(":var"), variable, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_NVAR(&_99$$26); ZVAL_STRING(&_99$$26, "Numeric string (:length) \":var\""); - ZEPHIR_CALL_FUNCTION(&_98$$26, "strtr", &_5, 26, &_99$$26, &_97$$26); + ZEPHIR_CALL_FUNCTION(&_98$$26, "strtr", &_5, 21, &_99$$26, &_97$$26); zephir_check_call_status(); ZEPHIR_CONCAT_VV(return_value, &output, &_98$$26); RETURN_MM(); @@ -62781,14 +61273,14 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { ZVAL_LONG(&_103$$27, 4); ZEPHIR_INIT_NVAR(&_102$$27); ZVAL_STRING(&_102$$27, "utf-8"); - ZEPHIR_CALL_FUNCTION(&_101$$27, "htmlentities", NULL, 158, variable, &_103$$27, &_102$$27); + ZEPHIR_CALL_FUNCTION(&_101$$27, "htmlentities", NULL, 145, variable, &_103$$27, &_102$$27); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_104$$27, "nl2br", NULL, 180, &_101$$27); + ZEPHIR_CALL_FUNCTION(&_104$$27, "nl2br", NULL, 163, &_101$$27); zephir_check_call_status(); zephir_array_update_string(&_100$$27, SL(":var"), &_104$$27, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_NVAR(&_102$$27); ZVAL_STRING(&_102$$27, "String (:length) \":var\""); - ZEPHIR_CALL_FUNCTION(&_104$$27, "strtr", &_5, 26, &_102$$27, &_100$$27); + ZEPHIR_CALL_FUNCTION(&_104$$27, "strtr", &_5, 21, &_102$$27, &_100$$27); zephir_check_call_status(); ZEPHIR_CONCAT_VV(return_value, &output, &_104$$27); RETURN_MM(); @@ -62812,7 +61304,7 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { zephir_array_update_string(&_105$$28, SL(":var"), &_108$$28, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_NVAR(&_107$$28); ZVAL_STRING(&_107$$28, "Boolean (:var)"); - ZEPHIR_CALL_FUNCTION(&_106$$28, "strtr", &_5, 26, &_107$$28, &_105$$28); + ZEPHIR_CALL_FUNCTION(&_106$$28, "strtr", &_5, 21, &_107$$28, &_105$$28); zephir_check_call_status(); ZEPHIR_CONCAT_VV(return_value, &output, &_106$$28); RETURN_MM(); @@ -62827,7 +61319,7 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { zephir_array_update_string(&_109$$29, SL(":style"), &_110$$29, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_NVAR(&_111$$29); ZVAL_STRING(&_111$$29, "NULL"); - ZEPHIR_CALL_FUNCTION(&_110$$29, "strtr", &_5, 26, &_111$$29, &_109$$29); + ZEPHIR_CALL_FUNCTION(&_110$$29, "strtr", &_5, 21, &_111$$29, &_109$$29); zephir_check_call_status(); ZEPHIR_CONCAT_VV(return_value, &output, &_110$$29); RETURN_MM(); @@ -62842,7 +61334,7 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { zephir_array_update_string(&_112, SL(":var"), variable, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_NVAR(&_114); ZVAL_STRING(&_114, "(:var)"); - ZEPHIR_CALL_FUNCTION(&_113, "strtr", &_5, 26, &_114, &_112); + ZEPHIR_CALL_FUNCTION(&_113, "strtr", &_5, 21, &_114, &_112); zephir_check_call_status(); ZEPHIR_CONCAT_VV(return_value, &output, &_113); RETURN_MM(); @@ -62886,7 +61378,7 @@ static PHP_METHOD(Phalcon_Debug_Dump, variable) { zephir_array_update_string(&_0, SL(":output"), &_1, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_NVAR(&_2); ZVAL_STRING(&_2, "
:output
"); - ZEPHIR_RETURN_CALL_FUNCTION("strtr", NULL, 26, &_2, &_0); + ZEPHIR_RETURN_CALL_FUNCTION("strtr", NULL, 21, &_2, &_0); zephir_check_call_status(); RETURN_MM(); @@ -62912,8 +61404,8 @@ static PHP_METHOD(Phalcon_Debug_Dump, variables) { ZEPHIR_INIT_VAR(&output); ZVAL_STRING(&output, ""); - ZEPHIR_CALL_FUNCTION(&_0, "func_get_args", NULL, 173); - zephir_check_call_status(); + ZEPHIR_INIT_VAR(&_0); + zephir_get_args(&_0); zephir_is_iterable(&_0, 0, "phalcon/debug/dump.zep", 315); ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&_0), _2, _3, _1) { @@ -63048,7 +61540,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZEPHIR_MM_GROW(); - ZEPHIR_CALL_PARENT(NULL, phalcon_di_factorydefault_ce, this_ptr, "__construct", &_0, 76); + ZEPHIR_CALL_PARENT(NULL, phalcon_di_factorydefault_ce, this_ptr, "__construct", &_0, 0); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_1); zephir_create_array(&_1, 21, 0 TSRMLS_CC); @@ -63059,7 +61551,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZEPHIR_INIT_VAR(&_4); ZVAL_STRING(&_4, "Phalcon\\Mvc\\Router"); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 67, &_3, &_4, &_5); + ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 61, &_3, &_4, &_5); zephir_check_call_status(); zephir_array_update_string(&_1, SL("router"), &_2, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_NVAR(&_2); @@ -63069,7 +61561,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZEPHIR_INIT_NVAR(&_4); ZVAL_STRING(&_4, "Phalcon\\Mvc\\Dispatcher"); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 67, &_3, &_4, &_5); + ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 61, &_3, &_4, &_5); zephir_check_call_status(); zephir_array_update_string(&_1, SL("dispatcher"), &_2, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_NVAR(&_2); @@ -63079,7 +61571,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZEPHIR_INIT_NVAR(&_4); ZVAL_STRING(&_4, "Phalcon\\Mvc\\Url"); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 67, &_3, &_4, &_5); + ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 61, &_3, &_4, &_5); zephir_check_call_status(); zephir_array_update_string(&_1, SL("url"), &_2, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_NVAR(&_2); @@ -63089,7 +61581,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZEPHIR_INIT_NVAR(&_4); ZVAL_STRING(&_4, "Phalcon\\Mvc\\Model\\Manager"); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 67, &_3, &_4, &_5); + ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 61, &_3, &_4, &_5); zephir_check_call_status(); zephir_array_update_string(&_1, SL("modelsManager"), &_2, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_NVAR(&_2); @@ -63099,7 +61591,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZEPHIR_INIT_NVAR(&_4); ZVAL_STRING(&_4, "Phalcon\\Mvc\\Model\\MetaData\\Memory"); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 67, &_3, &_4, &_5); + ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 61, &_3, &_4, &_5); zephir_check_call_status(); zephir_array_update_string(&_1, SL("modelsMetadata"), &_2, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_NVAR(&_2); @@ -63109,7 +61601,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZEPHIR_INIT_NVAR(&_4); ZVAL_STRING(&_4, "Phalcon\\Http\\Response"); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 67, &_3, &_4, &_5); + ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 61, &_3, &_4, &_5); zephir_check_call_status(); zephir_array_update_string(&_1, SL("response"), &_2, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_NVAR(&_2); @@ -63119,7 +61611,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZEPHIR_INIT_NVAR(&_4); ZVAL_STRING(&_4, "Phalcon\\Http\\Response\\Cookies"); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 67, &_3, &_4, &_5); + ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 61, &_3, &_4, &_5); zephir_check_call_status(); zephir_array_update_string(&_1, SL("cookies"), &_2, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_NVAR(&_2); @@ -63129,7 +61621,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZEPHIR_INIT_NVAR(&_4); ZVAL_STRING(&_4, "Phalcon\\Http\\Request"); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 67, &_3, &_4, &_5); + ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 61, &_3, &_4, &_5); zephir_check_call_status(); zephir_array_update_string(&_1, SL("request"), &_2, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_NVAR(&_2); @@ -63139,7 +61631,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZEPHIR_INIT_NVAR(&_4); ZVAL_STRING(&_4, "Phalcon\\Filter"); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 67, &_3, &_4, &_5); + ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 61, &_3, &_4, &_5); zephir_check_call_status(); zephir_array_update_string(&_1, SL("filter"), &_2, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_NVAR(&_2); @@ -63149,7 +61641,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZEPHIR_INIT_NVAR(&_4); ZVAL_STRING(&_4, "Phalcon\\Escaper"); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 67, &_3, &_4, &_5); + ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 61, &_3, &_4, &_5); zephir_check_call_status(); zephir_array_update_string(&_1, SL("escaper"), &_2, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_NVAR(&_2); @@ -63159,7 +61651,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZEPHIR_INIT_NVAR(&_4); ZVAL_STRING(&_4, "Phalcon\\Security"); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 67, &_3, &_4, &_5); + ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 61, &_3, &_4, &_5); zephir_check_call_status(); zephir_array_update_string(&_1, SL("security"), &_2, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_NVAR(&_2); @@ -63169,7 +61661,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZEPHIR_INIT_NVAR(&_4); ZVAL_STRING(&_4, "Phalcon\\Crypt"); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 67, &_3, &_4, &_5); + ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 61, &_3, &_4, &_5); zephir_check_call_status(); zephir_array_update_string(&_1, SL("crypt"), &_2, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_NVAR(&_2); @@ -63179,7 +61671,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZEPHIR_INIT_NVAR(&_4); ZVAL_STRING(&_4, "Phalcon\\Annotations\\Adapter\\Memory"); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 67, &_3, &_4, &_5); + ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 61, &_3, &_4, &_5); zephir_check_call_status(); zephir_array_update_string(&_1, SL("annotations"), &_2, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_NVAR(&_2); @@ -63189,7 +61681,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZEPHIR_INIT_NVAR(&_4); ZVAL_STRING(&_4, "Phalcon\\Flash\\Direct"); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 67, &_3, &_4, &_5); + ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 61, &_3, &_4, &_5); zephir_check_call_status(); zephir_array_update_string(&_1, SL("flash"), &_2, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_NVAR(&_2); @@ -63199,7 +61691,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZEPHIR_INIT_NVAR(&_4); ZVAL_STRING(&_4, "Phalcon\\Flash\\Session"); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 67, &_3, &_4, &_5); + ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 61, &_3, &_4, &_5); zephir_check_call_status(); zephir_array_update_string(&_1, SL("flashSession"), &_2, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_NVAR(&_2); @@ -63209,7 +61701,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZEPHIR_INIT_NVAR(&_4); ZVAL_STRING(&_4, "Phalcon\\Tag"); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 67, &_3, &_4, &_5); + ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 61, &_3, &_4, &_5); zephir_check_call_status(); zephir_array_update_string(&_1, SL("tag"), &_2, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_NVAR(&_2); @@ -63219,7 +61711,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZEPHIR_INIT_NVAR(&_4); ZVAL_STRING(&_4, "Phalcon\\Session\\Adapter\\Files"); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 67, &_3, &_4, &_5); + ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 61, &_3, &_4, &_5); zephir_check_call_status(); zephir_array_update_string(&_1, SL("session"), &_2, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_NVAR(&_2); @@ -63228,7 +61720,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZVAL_STRING(&_3, "sessionBag"); ZEPHIR_INIT_NVAR(&_4); ZVAL_STRING(&_4, "Phalcon\\Session\\Bag"); - ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 67, &_3, &_4); + ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 61, &_3, &_4); zephir_check_call_status(); zephir_array_update_string(&_1, SL("sessionBag"), &_2, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_NVAR(&_2); @@ -63238,7 +61730,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZEPHIR_INIT_NVAR(&_4); ZVAL_STRING(&_4, "Phalcon\\Events\\Manager"); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 67, &_3, &_4, &_5); + ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 61, &_3, &_4, &_5); zephir_check_call_status(); zephir_array_update_string(&_1, SL("eventsManager"), &_2, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_NVAR(&_2); @@ -63248,7 +61740,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZEPHIR_INIT_NVAR(&_4); ZVAL_STRING(&_4, "Phalcon\\Mvc\\Model\\Transaction\\Manager"); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 67, &_3, &_4, &_5); + ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 61, &_3, &_4, &_5); zephir_check_call_status(); zephir_array_update_string(&_1, SL("transactionManager"), &_2, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_NVAR(&_2); @@ -63258,7 +61750,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault, __construct) { ZEPHIR_INIT_NVAR(&_4); ZVAL_STRING(&_4, "Phalcon\\Assets\\Manager"); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 67, &_3, &_4, &_5); + ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 61, &_3, &_4, &_5); zephir_check_call_status(); zephir_array_update_string(&_1, SL("assets"), &_2, PH_COPY | PH_SEPARATE); zephir_update_property_zval(this_ptr, SL("_services"), &_1); @@ -63319,7 +61811,7 @@ static PHP_METHOD(Phalcon_Di_Injectable, getDI) { ZEPHIR_OBS_VAR(&dependencyInjector); zephir_read_property(&dependencyInjector, this_ptr, SL("_dependencyInjector"), PH_NOISY_CC); if (Z_TYPE_P(&dependencyInjector) != IS_OBJECT) { - ZEPHIR_CALL_CE_STATIC(&dependencyInjector, phalcon_di_ce, "getdefault", &_0, 1); + ZEPHIR_CALL_CE_STATIC(&dependencyInjector, phalcon_di_ce, "getdefault", &_0, 0); zephir_check_call_status(); } RETURN_CCTOR(dependencyInjector); @@ -63373,11 +61865,11 @@ static PHP_METHOD(Phalcon_Di_Injectable, __get) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &propertyName_param); - if (unlikely(Z_TYPE_P(propertyName_param) != IS_STRING && Z_TYPE_P(propertyName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(propertyName_param) != IS_STRING && Z_TYPE_P(propertyName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'propertyName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(propertyName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(propertyName_param) == IS_STRING)) { zephir_get_strval(&propertyName, propertyName_param); } else { ZEPHIR_INIT_VAR(&propertyName); @@ -63388,7 +61880,7 @@ static PHP_METHOD(Phalcon_Di_Injectable, __get) { zephir_read_property(&_0, this_ptr, SL("_dependencyInjector"), PH_NOISY_CC | PH_READONLY); ZEPHIR_CPY_WRT(&dependencyInjector, &_0); if (Z_TYPE_P(&dependencyInjector) != IS_OBJECT) { - ZEPHIR_CALL_CE_STATIC(&dependencyInjector, phalcon_di_ce, "getdefault", &_1, 1); + ZEPHIR_CALL_CE_STATIC(&dependencyInjector, phalcon_di_ce, "getdefault", &_1, 0); zephir_check_call_status(); if (Z_TYPE_P(&dependencyInjector) != IS_OBJECT) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_di_exception_ce, "A dependency injection object is required to access the application services", "phalcon/di/injectable.zep", 127); @@ -63423,7 +61915,7 @@ static PHP_METHOD(Phalcon_Di_Injectable, __get) { } ZEPHIR_INIT_VAR(&_6); ZEPHIR_CONCAT_SV(&_6, "Access to undefined property ", &propertyName); - ZEPHIR_CALL_FUNCTION(NULL, "trigger_error", NULL, 2, &_6); + ZEPHIR_CALL_FUNCTION(NULL, "trigger_error", NULL, 1, &_6); zephir_check_call_status(); RETURN_MM_NULL(); @@ -63495,11 +61987,11 @@ static PHP_METHOD(Phalcon_Di_Service, __construct) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 1, &name_param, &definition, &shared_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(&name, name_param); } else { ZEPHIR_INIT_VAR(&name); @@ -63701,7 +62193,7 @@ static PHP_METHOD(Phalcon_Di_Service, resolve) { ZEPHIR_CALL_METHOD(NULL, &builder, "__construct", NULL, 0); zephir_check_call_status(); } - ZEPHIR_CALL_METHOD(&instance, &builder, "build", NULL, 182, dependencyInjector, &definition, parameters); + ZEPHIR_CALL_METHOD(&instance, &builder, "build", NULL, 164, dependencyInjector, &definition, parameters); zephir_check_call_status(); } else { found = 0; @@ -63714,7 +62206,7 @@ static PHP_METHOD(Phalcon_Di_Service, resolve) { zephir_read_property(&_3$$22, this_ptr, SL("_name"), PH_NOISY_CC | PH_READONLY); ZEPHIR_INIT_VAR(&_4$$22); ZEPHIR_CONCAT_SVS(&_4$$22, "Service '", &_3$$22, "' cannot be resolved"); - ZEPHIR_CALL_METHOD(NULL, &_2$$22, "__construct", NULL, 9, &_4$$22); + ZEPHIR_CALL_METHOD(NULL, &_2$$22, "__construct", NULL, 4, &_4$$22); zephir_check_call_status(); zephir_throw_exception_debug(&_2$$22, "phalcon/di/service.zep", 208 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -63844,7 +62336,7 @@ static PHP_METHOD(Phalcon_Di_Service, __set_state) { return; } object_init_ex(return_value, phalcon_di_service_ce); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 67, &name, &definition, &shared); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 61, &name, &definition, &shared); zephir_check_call_status(); RETURN_MM(); @@ -63918,7 +62410,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault_Cli, __construct) { ZEPHIR_MM_GROW(); - ZEPHIR_CALL_PARENT(NULL, phalcon_di_factorydefault_cli_ce, this_ptr, "__construct", &_0, 181); + ZEPHIR_CALL_PARENT(NULL, phalcon_di_factorydefault_cli_ce, this_ptr, "__construct", &_0, 0); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_1); zephir_create_array(&_1, 10, 0 TSRMLS_CC); @@ -63929,7 +62421,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault_Cli, __construct) { ZEPHIR_INIT_VAR(&_4); ZVAL_STRING(&_4, "Phalcon\\Cli\\Router"); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 67, &_3, &_4, &_5); + ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 61, &_3, &_4, &_5); zephir_check_call_status(); zephir_array_update_string(&_1, SL("router"), &_2, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_NVAR(&_2); @@ -63939,7 +62431,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault_Cli, __construct) { ZEPHIR_INIT_NVAR(&_4); ZVAL_STRING(&_4, "Phalcon\\Cli\\Dispatcher"); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 67, &_3, &_4, &_5); + ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 61, &_3, &_4, &_5); zephir_check_call_status(); zephir_array_update_string(&_1, SL("dispatcher"), &_2, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_NVAR(&_2); @@ -63949,7 +62441,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault_Cli, __construct) { ZEPHIR_INIT_NVAR(&_4); ZVAL_STRING(&_4, "Phalcon\\Mvc\\Model\\Manager"); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 67, &_3, &_4, &_5); + ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 61, &_3, &_4, &_5); zephir_check_call_status(); zephir_array_update_string(&_1, SL("modelsManager"), &_2, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_NVAR(&_2); @@ -63959,7 +62451,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault_Cli, __construct) { ZEPHIR_INIT_NVAR(&_4); ZVAL_STRING(&_4, "Phalcon\\Mvc\\Model\\MetaData\\Memory"); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 67, &_3, &_4, &_5); + ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 61, &_3, &_4, &_5); zephir_check_call_status(); zephir_array_update_string(&_1, SL("modelsMetadata"), &_2, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_NVAR(&_2); @@ -63969,7 +62461,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault_Cli, __construct) { ZEPHIR_INIT_NVAR(&_4); ZVAL_STRING(&_4, "Phalcon\\Filter"); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 67, &_3, &_4, &_5); + ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 61, &_3, &_4, &_5); zephir_check_call_status(); zephir_array_update_string(&_1, SL("filter"), &_2, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_NVAR(&_2); @@ -63979,7 +62471,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault_Cli, __construct) { ZEPHIR_INIT_NVAR(&_4); ZVAL_STRING(&_4, "Phalcon\\Escaper"); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 67, &_3, &_4, &_5); + ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 61, &_3, &_4, &_5); zephir_check_call_status(); zephir_array_update_string(&_1, SL("escaper"), &_2, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_NVAR(&_2); @@ -63989,7 +62481,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault_Cli, __construct) { ZEPHIR_INIT_NVAR(&_4); ZVAL_STRING(&_4, "Phalcon\\Annotations\\Adapter\\Memory"); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 67, &_3, &_4, &_5); + ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 61, &_3, &_4, &_5); zephir_check_call_status(); zephir_array_update_string(&_1, SL("annotations"), &_2, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_NVAR(&_2); @@ -63999,7 +62491,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault_Cli, __construct) { ZEPHIR_INIT_NVAR(&_4); ZVAL_STRING(&_4, "Phalcon\\Security"); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 67, &_3, &_4, &_5); + ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 61, &_3, &_4, &_5); zephir_check_call_status(); zephir_array_update_string(&_1, SL("security"), &_2, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_NVAR(&_2); @@ -64009,7 +62501,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault_Cli, __construct) { ZEPHIR_INIT_NVAR(&_4); ZVAL_STRING(&_4, "Phalcon\\Events\\Manager"); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 67, &_3, &_4, &_5); + ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 61, &_3, &_4, &_5); zephir_check_call_status(); zephir_array_update_string(&_1, SL("eventsManager"), &_2, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_NVAR(&_2); @@ -64019,7 +62511,7 @@ static PHP_METHOD(Phalcon_Di_FactoryDefault_Cli, __construct) { ZEPHIR_INIT_NVAR(&_4); ZVAL_STRING(&_4, "Phalcon\\Mvc\\Model\\Transaction\\Manager"); ZVAL_BOOL(&_5, 1); - ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 67, &_3, &_4, &_5); + ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", &_6, 61, &_3, &_4, &_5); zephir_check_call_status(); zephir_array_update_string(&_1, SL("transactionManager"), &_2, PH_COPY | PH_SEPARATE); zephir_update_property_zval(this_ptr, SL("_services"), &_1); @@ -64090,7 +62582,7 @@ static PHP_METHOD(Phalcon_Di_Service_Builder, _buildParameter) { ZVAL_LONG(&_1$$3, position); ZEPHIR_INIT_VAR(&_2$$3); ZEPHIR_CONCAT_SVS(&_2$$3, "Argument at position ", &_1$$3, " must have a type"); - ZEPHIR_CALL_METHOD(NULL, &_0$$3, "__construct", NULL, 9, &_2$$3); + ZEPHIR_CALL_METHOD(NULL, &_0$$3, "__construct", NULL, 4, &_2$$3); zephir_check_call_status(); zephir_throw_exception_debug(&_0$$3, "phalcon/di/service/builder.zep", 49 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -64106,7 +62598,7 @@ static PHP_METHOD(Phalcon_Di_Service_Builder, _buildParameter) { ZVAL_LONG(&_4$$5, position); ZEPHIR_INIT_VAR(&_5$$5); ZEPHIR_CONCAT_SV(&_5$$5, "Service 'name' is required in parameter on position ", &_4$$5); - ZEPHIR_CALL_METHOD(NULL, &_3$$5, "__construct", NULL, 9, &_5$$5); + ZEPHIR_CALL_METHOD(NULL, &_3$$5, "__construct", NULL, 4, &_5$$5); zephir_check_call_status(); zephir_throw_exception_debug(&_3$$5, "phalcon/di/service/builder.zep", 59 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -64129,7 +62621,7 @@ static PHP_METHOD(Phalcon_Di_Service_Builder, _buildParameter) { ZVAL_LONG(&_7$$8, position); ZEPHIR_INIT_VAR(&_8$$8); ZEPHIR_CONCAT_SV(&_8$$8, "Service 'value' is required in parameter on position ", &_7$$8); - ZEPHIR_CALL_METHOD(NULL, &_6$$8, "__construct", NULL, 9, &_8$$8); + ZEPHIR_CALL_METHOD(NULL, &_6$$8, "__construct", NULL, 4, &_8$$8); zephir_check_call_status(); zephir_throw_exception_debug(&_6$$8, "phalcon/di/service/builder.zep", 71 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -64146,7 +62638,7 @@ static PHP_METHOD(Phalcon_Di_Service_Builder, _buildParameter) { ZVAL_LONG(&_10$$10, position); ZEPHIR_INIT_VAR(&_11$$10); ZEPHIR_CONCAT_SV(&_11$$10, "Service 'className' is required in parameter on position ", &_10$$10); - ZEPHIR_CALL_METHOD(NULL, &_9$$10, "__construct", NULL, 9, &_11$$10); + ZEPHIR_CALL_METHOD(NULL, &_9$$10, "__construct", NULL, 4, &_11$$10); zephir_check_call_status(); zephir_throw_exception_debug(&_9$$10, "phalcon/di/service/builder.zep", 81 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -64172,7 +62664,7 @@ static PHP_METHOD(Phalcon_Di_Service_Builder, _buildParameter) { ZVAL_LONG(&_13$$13, position); ZEPHIR_INIT_VAR(&_14$$13); ZEPHIR_CONCAT_SV(&_14$$13, "Unknown service type in parameter on position ", &_13$$13); - ZEPHIR_CALL_METHOD(NULL, &_12$$13, "__construct", NULL, 9, &_14$$13); + ZEPHIR_CALL_METHOD(NULL, &_12$$13, "__construct", NULL, 4, &_14$$13); zephir_check_call_status(); zephir_throw_exception_debug(&_12$$13, "phalcon/di/service/builder.zep", 104 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -64219,7 +62711,7 @@ static PHP_METHOD(Phalcon_Di_Service_Builder, _buildParameters) { } ZEPHIR_INIT_NVAR(&argument); ZVAL_COPY(&argument, _0); - ZEPHIR_CALL_METHOD(&_3$$3, this_ptr, "_buildparameter", &_4, 183, dependencyInjector, &position, &argument); + ZEPHIR_CALL_METHOD(&_3$$3, this_ptr, "_buildparameter", &_4, 165, dependencyInjector, &position, &argument); zephir_check_call_status(); zephir_array_append(&buildArguments, &_3$$3, PH_SEPARATE, "phalcon/di/service/builder.zep", 117); } ZEND_HASH_FOREACH_END(); @@ -64301,7 +62793,7 @@ static PHP_METHOD(Phalcon_Di_Service_Builder, build) { } else { ZEPHIR_OBS_VAR(&arguments); if (zephir_array_isset_string_fetch(&arguments, &definition, SL("arguments"), 0)) { - ZEPHIR_CALL_METHOD(&_0$$8, this_ptr, "_buildparameters", &_1, 184, dependencyInjector, &arguments); + ZEPHIR_CALL_METHOD(&_0$$8, this_ptr, "_buildparameters", &_1, 166, dependencyInjector, &arguments); zephir_check_call_status(); ZEPHIR_INIT_NVAR(&instance); ZEPHIR_LAST_CALL_STATUS = zephir_create_instance_params(&instance, &className, &_0$$8 TSRMLS_CC); @@ -64338,7 +62830,7 @@ static PHP_METHOD(Phalcon_Di_Service_Builder, build) { object_init_ex(&_5$$14, phalcon_di_exception_ce); ZEPHIR_INIT_LNVAR(_6$$14); ZEPHIR_CONCAT_SV(&_6$$14, "Method call must be an array on position ", &methodPosition); - ZEPHIR_CALL_METHOD(NULL, &_5$$14, "__construct", &_7, 9, &_6$$14); + ZEPHIR_CALL_METHOD(NULL, &_5$$14, "__construct", &_7, 4, &_6$$14); zephir_check_call_status(); zephir_throw_exception_debug(&_5$$14, "phalcon/di/service/builder.zep", 195 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -64350,7 +62842,7 @@ static PHP_METHOD(Phalcon_Di_Service_Builder, build) { object_init_ex(&_8$$15, phalcon_di_exception_ce); ZEPHIR_INIT_LNVAR(_9$$15); ZEPHIR_CONCAT_SV(&_9$$15, "The method name is required on position ", &methodPosition); - ZEPHIR_CALL_METHOD(NULL, &_8$$15, "__construct", &_7, 9, &_9$$15); + ZEPHIR_CALL_METHOD(NULL, &_8$$15, "__construct", &_7, 4, &_9$$15); zephir_check_call_status(); zephir_throw_exception_debug(&_8$$15, "phalcon/di/service/builder.zep", 202 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -64367,7 +62859,7 @@ static PHP_METHOD(Phalcon_Di_Service_Builder, build) { object_init_ex(&_10$$17, phalcon_di_exception_ce); ZEPHIR_INIT_LNVAR(_11$$17); ZEPHIR_CONCAT_SV(&_11$$17, "Call arguments must be an array ", &methodPosition); - ZEPHIR_CALL_METHOD(NULL, &_10$$17, "__construct", &_7, 9, &_11$$17); + ZEPHIR_CALL_METHOD(NULL, &_10$$17, "__construct", &_7, 4, &_11$$17); zephir_check_call_status(); zephir_throw_exception_debug(&_10$$17, "phalcon/di/service/builder.zep", 213 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -64375,7 +62867,7 @@ static PHP_METHOD(Phalcon_Di_Service_Builder, build) { } if (zephir_fast_count_int(&arguments TSRMLS_CC)) { ZEPHIR_INIT_NVAR(&_12$$18); - ZEPHIR_CALL_METHOD(&_13$$18, this_ptr, "_buildparameters", &_1, 184, dependencyInjector, &arguments); + ZEPHIR_CALL_METHOD(&_13$$18, this_ptr, "_buildparameters", &_1, 166, dependencyInjector, &arguments); zephir_check_call_status(); ZEPHIR_CALL_USER_FUNC_ARRAY(&_12$$18, &methodCall, &_13$$18); zephir_check_call_status(); @@ -64415,7 +62907,7 @@ static PHP_METHOD(Phalcon_Di_Service_Builder, build) { object_init_ex(&_18$$23, phalcon_di_exception_ce); ZEPHIR_INIT_LNVAR(_19$$23); ZEPHIR_CONCAT_SV(&_19$$23, "Property must be an array on position ", &propertyPosition); - ZEPHIR_CALL_METHOD(NULL, &_18$$23, "__construct", &_7, 9, &_19$$23); + ZEPHIR_CALL_METHOD(NULL, &_18$$23, "__construct", &_7, 4, &_19$$23); zephir_check_call_status(); zephir_throw_exception_debug(&_18$$23, "phalcon/di/service/builder.zep", 261 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -64427,7 +62919,7 @@ static PHP_METHOD(Phalcon_Di_Service_Builder, build) { object_init_ex(&_20$$24, phalcon_di_exception_ce); ZEPHIR_INIT_LNVAR(_21$$24); ZEPHIR_CONCAT_SV(&_21$$24, "The property name is required on position ", &propertyPosition); - ZEPHIR_CALL_METHOD(NULL, &_20$$24, "__construct", &_7, 9, &_21$$24); + ZEPHIR_CALL_METHOD(NULL, &_20$$24, "__construct", &_7, 4, &_21$$24); zephir_check_call_status(); zephir_throw_exception_debug(&_20$$24, "phalcon/di/service/builder.zep", 268 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -64439,13 +62931,13 @@ static PHP_METHOD(Phalcon_Di_Service_Builder, build) { object_init_ex(&_22$$25, phalcon_di_exception_ce); ZEPHIR_INIT_LNVAR(_23$$25); ZEPHIR_CONCAT_SV(&_23$$25, "The property value is required on position ", &propertyPosition); - ZEPHIR_CALL_METHOD(NULL, &_22$$25, "__construct", &_7, 9, &_23$$25); + ZEPHIR_CALL_METHOD(NULL, &_22$$25, "__construct", &_7, 4, &_23$$25); zephir_check_call_status(); zephir_throw_exception_debug(&_22$$25, "phalcon/di/service/builder.zep", 275 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } - ZEPHIR_CALL_METHOD(&_24$$22, this_ptr, "_buildparameter", &_25, 183, dependencyInjector, &propertyPosition, &propertyValue); + ZEPHIR_CALL_METHOD(&_24$$22, this_ptr, "_buildparameter", &_25, 165, dependencyInjector, &propertyPosition, &propertyValue); zephir_check_call_status(); zephir_update_property_zval_zval(&instance, &propertyName, &_24$$22 TSRMLS_CC); } ZEND_HASH_FOREACH_END(); @@ -64547,11 +63039,11 @@ static PHP_METHOD(Phalcon_Events_Event, __construct) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 2, &type_param, &source, &data, &cancelable_param); - if (unlikely(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'type' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(type_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(type_param) == IS_STRING)) { zephir_get_strval(&type, type_param); } else { ZEPHIR_INIT_VAR(&type); @@ -64616,11 +63108,11 @@ static PHP_METHOD(Phalcon_Events_Event, setType) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &type_param); - if (unlikely(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'type' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(type_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(type_param) == IS_STRING)) { zephir_get_strval(&type, type_param); } else { ZEPHIR_INIT_VAR(&type); @@ -64792,11 +63284,11 @@ static PHP_METHOD(Phalcon_Events_Manager, attach) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 1, &eventType_param, &handler, &priority_param); - if (unlikely(Z_TYPE_P(eventType_param) != IS_STRING && Z_TYPE_P(eventType_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(eventType_param) != IS_STRING && Z_TYPE_P(eventType_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'eventType' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(eventType_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(eventType_param) == IS_STRING)) { zephir_get_strval(&eventType, eventType_param); } else { ZEPHIR_INIT_VAR(&eventType); @@ -64805,7 +63297,7 @@ static PHP_METHOD(Phalcon_Events_Manager, attach) { if (!priority_param) { priority = 100; } else { - if (unlikely(Z_TYPE_P(priority_param) != IS_LONG)) { + if (UNEXPECTED(Z_TYPE_P(priority_param) != IS_LONG)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'priority' must be a int") TSRMLS_CC); RETURN_MM_NULL(); } @@ -64829,7 +63321,7 @@ static PHP_METHOD(Phalcon_Events_Manager, attach) { zephir_check_call_status(); } ZVAL_LONG(&_2$$5, 1); - ZEPHIR_CALL_METHOD(NULL, &priorityQueue, "setextractflags", NULL, 191, &_2$$5); + ZEPHIR_CALL_METHOD(NULL, &priorityQueue, "setextractflags", NULL, 173, &_2$$5); zephir_check_call_status(); zephir_update_property_array(this_ptr, SL("_events"), &eventType, &priorityQueue TSRMLS_CC); } else { @@ -64838,7 +63330,7 @@ static PHP_METHOD(Phalcon_Events_Manager, attach) { } if (Z_TYPE_P(&priorityQueue) == IS_OBJECT) { ZVAL_LONG(&_3$$7, priority); - ZEPHIR_CALL_METHOD(NULL, &priorityQueue, "insert", NULL, 192, handler, &_3$$7); + ZEPHIR_CALL_METHOD(NULL, &priorityQueue, "insert", NULL, 174, handler, &_3$$7); zephir_check_call_status(); } else { zephir_array_append(&priorityQueue, handler, PH_SEPARATE, "phalcon/events/manager.zep", 82); @@ -64873,11 +63365,11 @@ static PHP_METHOD(Phalcon_Events_Manager, detach) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &eventType_param, &handler); - if (unlikely(Z_TYPE_P(eventType_param) != IS_STRING && Z_TYPE_P(eventType_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(eventType_param) != IS_STRING && Z_TYPE_P(eventType_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'eventType' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(eventType_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(eventType_param) == IS_STRING)) { zephir_get_strval(&eventType, eventType_param); } else { ZEPHIR_INIT_VAR(&eventType); @@ -64900,7 +63392,7 @@ static PHP_METHOD(Phalcon_Events_Manager, detach) { zephir_check_call_status(); } ZVAL_LONG(&_1$$5, 1); - ZEPHIR_CALL_METHOD(NULL, &newPriorityQueue, "setextractflags", NULL, 191, &_1$$5); + ZEPHIR_CALL_METHOD(NULL, &newPriorityQueue, "setextractflags", NULL, 173, &_1$$5); zephir_check_call_status(); ZVAL_LONG(&_1$$5, 3); ZEPHIR_CALL_METHOD(NULL, &priorityQueue, "setextractflags", NULL, 0, &_1$$5); @@ -64921,13 +63413,13 @@ static PHP_METHOD(Phalcon_Events_Manager, detach) { if (!ZEPHIR_IS_IDENTICAL(&_5$$6, handler)) { zephir_array_fetch_string(&_6$$7, &data, SL("data"), PH_NOISY | PH_READONLY, "phalcon/events/manager.zep", 117 TSRMLS_CC); zephir_array_fetch_string(&_7$$7, &data, SL("priority"), PH_NOISY | PH_READONLY, "phalcon/events/manager.zep", 117 TSRMLS_CC); - ZEPHIR_CALL_METHOD(NULL, &newPriorityQueue, "insert", &_8, 192, &_6$$7, &_7$$7); + ZEPHIR_CALL_METHOD(NULL, &newPriorityQueue, "insert", &_8, 174, &_6$$7, &_7$$7); zephir_check_call_status(); } } zephir_update_property_array(this_ptr, SL("_events"), &eventType, &newPriorityQueue TSRMLS_CC); } else { - ZEPHIR_CALL_FUNCTION(&key, "array_search", NULL, 193, handler, &priorityQueue, &__$true); + ZEPHIR_CALL_FUNCTION(&key, "array_search", NULL, 175, handler, &priorityQueue, &__$true); zephir_check_call_status(); if (!ZEPHIR_IS_FALSE_IDENTICAL(&key)) { zephir_array_unset(&priorityQueue, &key, PH_SEPARATE); @@ -65028,11 +63520,11 @@ static PHP_METHOD(Phalcon_Events_Manager, detachAll) { ZEPHIR_INIT_VAR(&type); ZVAL_STRING(&type, ""); } else { - if (unlikely(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'type' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(type_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(type_param) == IS_STRING)) { zephir_get_strval(&type, type_param); } else { ZEPHIR_INIT_VAR(&type); @@ -65097,9 +63589,9 @@ static PHP_METHOD(Phalcon_Events_Manager, fireQueue) { zephir_get_class(&_1$$5, queue, 0 TSRMLS_CC); ZEPHIR_INIT_VAR(&_2$$5); ZVAL_STRING(&_2$$5, "Unexpected value type: expected object of type SplPriorityQueue, %s given"); - ZEPHIR_CALL_FUNCTION(&_3$$5, "sprintf", NULL, 194, &_2$$5, &_1$$5); + ZEPHIR_CALL_FUNCTION(&_3$$5, "sprintf", NULL, 176, &_2$$5, &_1$$5); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, &_0$$5, "__construct", NULL, 9, &_3$$5); + ZEPHIR_CALL_METHOD(NULL, &_0$$5, "__construct", NULL, 4, &_3$$5); zephir_check_call_status(); zephir_throw_exception_debug(&_0$$5, "phalcon/events/manager.zep", 210 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -65268,11 +63760,11 @@ static PHP_METHOD(Phalcon_Events_Manager, fire) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 2, &eventType_param, &source, &data, &cancelable_param); - if (unlikely(Z_TYPE_P(eventType_param) != IS_STRING && Z_TYPE_P(eventType_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(eventType_param) != IS_STRING && Z_TYPE_P(eventType_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'eventType' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(eventType_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(eventType_param) == IS_STRING)) { zephir_get_strval(&eventType, eventType_param); } else { ZEPHIR_INIT_VAR(&eventType); @@ -65299,7 +63791,7 @@ static PHP_METHOD(Phalcon_Events_Manager, fire) { object_init_ex(&_0$$4, phalcon_events_exception_ce); ZEPHIR_INIT_VAR(&_1$$4); ZEPHIR_CONCAT_SV(&_1$$4, "Invalid event type ", &eventType); - ZEPHIR_CALL_METHOD(NULL, &_0$$4, "__construct", NULL, 9, &_1$$4); + ZEPHIR_CALL_METHOD(NULL, &_0$$4, "__construct", NULL, 4, &_1$$4); zephir_check_call_status(); zephir_throw_exception_debug(&_0$$4, "phalcon/events/manager.zep", 387 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -65333,9 +63825,9 @@ static PHP_METHOD(Phalcon_Events_Manager, fire) { } else { ZVAL_BOOL(&_4$$7, 0); } - ZEPHIR_CALL_METHOD(NULL, &event, "__construct", &_5, 195, &eventName, source, data, &_4$$7); + ZEPHIR_CALL_METHOD(NULL, &event, "__construct", &_5, 177, &eventName, source, data, &_4$$7); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&status, this_ptr, "firequeue", &_6, 196, &fireEvents, &event); + ZEPHIR_CALL_METHOD(&status, this_ptr, "firequeue", &_6, 178, &fireEvents, &event); zephir_check_call_status(); } } @@ -65354,10 +63846,10 @@ static PHP_METHOD(Phalcon_Events_Manager, fire) { } else { ZVAL_BOOL(&_8$$10, 0); } - ZEPHIR_CALL_METHOD(NULL, &event, "__construct", &_5, 195, &eventName, source, data, &_8$$10); + ZEPHIR_CALL_METHOD(NULL, &event, "__construct", &_5, 177, &eventName, source, data, &_8$$10); zephir_check_call_status(); } - ZEPHIR_CALL_METHOD(&status, this_ptr, "firequeue", &_6, 196, &fireEvents, &event); + ZEPHIR_CALL_METHOD(&status, this_ptr, "firequeue", &_6, 178, &fireEvents, &event); zephir_check_call_status(); } } @@ -65377,11 +63869,11 @@ static PHP_METHOD(Phalcon_Events_Manager, hasListeners) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &type_param); - if (unlikely(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'type' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(type_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(type_param) == IS_STRING)) { zephir_get_strval(&type, type_param); } else { ZEPHIR_INIT_VAR(&type); @@ -65407,11 +63899,11 @@ static PHP_METHOD(Phalcon_Events_Manager, getListeners) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &type_param); - if (unlikely(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'type' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(type_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(type_param) == IS_STRING)) { zephir_get_strval(&type, type_param); } else { ZEPHIR_INIT_VAR(&type); @@ -65570,7 +64062,7 @@ static PHP_METHOD(Phalcon_Flash_Direct, output) { ZEPHIR_INIT_NVAR(&message); } if (remove) { - ZEPHIR_CALL_PARENT(NULL, phalcon_flash_direct_ce, this_ptr, "clear", &_1, 203); + ZEPHIR_CALL_PARENT(NULL, phalcon_flash_direct_ce, this_ptr, "clear", &_1, 0); zephir_check_call_status(); } ZEPHIR_MM_RESTORE(); @@ -65871,7 +64363,7 @@ static PHP_METHOD(Phalcon_Flash_Session, output) { ZEPHIR_INIT_NVAR(&message); ZEPHIR_INIT_NVAR(&type); } - ZEPHIR_CALL_PARENT(NULL, phalcon_flash_session_ce, this_ptr, "clear", &_5, 203); + ZEPHIR_CALL_PARENT(NULL, phalcon_flash_session_ce, this_ptr, "clear", &_5, 0); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -65891,7 +64383,7 @@ static PHP_METHOD(Phalcon_Flash_Session, clear) { ZVAL_BOOL(&_0, 1); ZEPHIR_CALL_METHOD(NULL, this_ptr, "_getsessionmessages", NULL, 0, &_0); zephir_check_call_status(); - ZEPHIR_CALL_PARENT(NULL, phalcon_flash_session_ce, this_ptr, "clear", &_1, 203); + ZEPHIR_CALL_PARENT(NULL, phalcon_flash_session_ce, this_ptr, "clear", &_1, 0); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -65964,7 +64456,7 @@ static PHP_METHOD(Phalcon_Forms_Element, __construct) { } ZEPHIR_INIT_VAR(&_0); object_init_ex(&_0, phalcon_validation_message_group_ce); - ZEPHIR_CALL_METHOD(NULL, &_0, "__construct", NULL, 3); + ZEPHIR_CALL_METHOD(NULL, &_0, "__construct", NULL, 2); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_messages"), &_0); ZEPHIR_MM_RESTORE(); @@ -66007,11 +64499,11 @@ static PHP_METHOD(Phalcon_Forms_Element, setName) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(&name, name_param); } else { ZEPHIR_INIT_VAR(&name); @@ -66486,7 +64978,7 @@ static PHP_METHOD(Phalcon_Forms_Element, label) { } ZEPHIR_INIT_VAR(&_1); ZVAL_STRING(&_1, "="); - ZEPHIR_CALL_FUNCTION(&_7, "version_compare", NULL, 250, &version, &_1, &_6); + ZEPHIR_CALL_FUNCTION(&_7, "version_compare", NULL, 218, &version, &_1, &_6); zephir_check_call_status(); if (!(zephir_is_true(&_7))) { ZEPHIR_INIT_VAR(&_8$$8); object_init_ex(&_8$$8, phalcon_image_exception_ce); ZEPHIR_INIT_VAR(&_9$$8); ZEPHIR_CONCAT_SV(&_9$$8, "Phalcon\\Image\\Adapter\\GD requires GD version '2.0.1' or greater, you have ", &version); - ZEPHIR_CALL_METHOD(NULL, &_8$$8, "__construct", NULL, 9, &_9$$8); + ZEPHIR_CALL_METHOD(NULL, &_8$$8, "__construct", NULL, 4, &_9$$8); zephir_check_call_status(); zephir_throw_exception_debug(&_8$$8, "phalcon/image/adapter/gd.zep", 52 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -75725,11 +74217,11 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, __construct) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &file_param, &width_param, &height_param); - if (unlikely(Z_TYPE_P(file_param) != IS_STRING && Z_TYPE_P(file_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(file_param) != IS_STRING && Z_TYPE_P(file_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'file' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(file_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(file_param) == IS_STRING)) { zephir_get_strval(&file, file_param); } else { ZEPHIR_INIT_VAR(&file); @@ -75756,11 +74248,11 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, __construct) { zephir_read_property(&_1, this_ptr, SL("_file"), PH_NOISY_CC | PH_READONLY); if ((zephir_file_exists(&_1 TSRMLS_CC) == SUCCESS)) { zephir_read_property(&_2$$4, this_ptr, SL("_file"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(&_3$$4, "realpath", NULL, 64, &_2$$4); + ZEPHIR_CALL_FUNCTION(&_3$$4, "realpath", NULL, 58, &_2$$4); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_realpath"), &_3$$4); zephir_read_property(&_4$$4, this_ptr, SL("_file"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(&imageinfo, "getimagesize", NULL, 251, &_4$$4); + ZEPHIR_CALL_FUNCTION(&imageinfo, "getimagesize", NULL, 219, &_4$$4); zephir_check_call_status(); if (zephir_is_true(&imageinfo)) { zephir_array_fetch_long(&_5$$5, &imageinfo, 0, PH_NOISY | PH_READONLY, "phalcon/image/adapter/gd.zep", 76 TSRMLS_CC); @@ -75776,35 +74268,35 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, __construct) { do { if (ZEPHIR_IS_LONG(&_9$$4, 1)) { zephir_read_property(&_10$$6, this_ptr, SL("_file"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(&_11$$6, "imagecreatefromgif", NULL, 252, &_10$$6); + ZEPHIR_CALL_FUNCTION(&_11$$6, "imagecreatefromgif", NULL, 220, &_10$$6); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_image"), &_11$$6); break; } if (ZEPHIR_IS_LONG(&_9$$4, 2)) { zephir_read_property(&_12$$7, this_ptr, SL("_file"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(&_13$$7, "imagecreatefromjpeg", NULL, 253, &_12$$7); + ZEPHIR_CALL_FUNCTION(&_13$$7, "imagecreatefromjpeg", NULL, 221, &_12$$7); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_image"), &_13$$7); break; } if (ZEPHIR_IS_LONG(&_9$$4, 3)) { zephir_read_property(&_14$$8, this_ptr, SL("_file"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(&_15$$8, "imagecreatefrompng", NULL, 254, &_14$$8); + ZEPHIR_CALL_FUNCTION(&_15$$8, "imagecreatefrompng", NULL, 222, &_14$$8); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_image"), &_15$$8); break; } if (ZEPHIR_IS_LONG(&_9$$4, 15)) { zephir_read_property(&_16$$9, this_ptr, SL("_file"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(&_17$$9, "imagecreatefromwbmp", NULL, 255, &_16$$9); + ZEPHIR_CALL_FUNCTION(&_17$$9, "imagecreatefromwbmp", NULL, 223, &_16$$9); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_image"), &_17$$9); break; } if (ZEPHIR_IS_LONG(&_9$$4, 16)) { zephir_read_property(&_18$$10, this_ptr, SL("_file"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(&_19$$10, "imagecreatefromxbm", NULL, 256, &_18$$10); + ZEPHIR_CALL_FUNCTION(&_19$$10, "imagecreatefromxbm", NULL, 224, &_18$$10); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_image"), &_19$$10); break; @@ -75816,7 +74308,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, __construct) { zephir_read_property(&_22$$12, this_ptr, SL("_mime"), PH_NOISY_CC | PH_READONLY); ZEPHIR_INIT_VAR(&_23$$12); ZEPHIR_CONCAT_SVS(&_23$$12, "Installed GD does not support ", &_22$$12, " images"); - ZEPHIR_CALL_METHOD(NULL, &_21$$12, "__construct", NULL, 9, &_23$$12); + ZEPHIR_CALL_METHOD(NULL, &_21$$12, "__construct", NULL, 4, &_23$$12); zephir_check_call_status(); zephir_throw_exception_debug(&_21$$12, "phalcon/image/adapter/gd.zep", 100 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -75829,7 +74321,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, __construct) { } while(0); zephir_read_property(&_24$$4, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", &_25, 257, &_24$$4, &__$true); + ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", &_25, 225, &_24$$4, &__$true); zephir_check_call_status(); } else { _26$$14 = !width; @@ -75842,7 +74334,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, __construct) { zephir_read_property(&_28$$15, this_ptr, SL("_file"), PH_NOISY_CC | PH_READONLY); ZEPHIR_INIT_VAR(&_29$$15); ZEPHIR_CONCAT_SV(&_29$$15, "Failed to create image from file ", &_28$$15); - ZEPHIR_CALL_METHOD(NULL, &_27$$15, "__construct", NULL, 9, &_29$$15); + ZEPHIR_CALL_METHOD(NULL, &_27$$15, "__construct", NULL, 4, &_29$$15); zephir_check_call_status(); zephir_throw_exception_debug(&_27$$15, "phalcon/image/adapter/gd.zep", 111 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -75850,14 +74342,14 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, __construct) { } ZVAL_LONG(&_30$$14, width); ZVAL_LONG(&_31$$14, height); - ZEPHIR_CALL_FUNCTION(&_32$$14, "imagecreatetruecolor", NULL, 258, &_30$$14, &_31$$14); + ZEPHIR_CALL_FUNCTION(&_32$$14, "imagecreatetruecolor", NULL, 226, &_30$$14, &_31$$14); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_image"), &_32$$14); zephir_read_property(&_30$$14, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(NULL, "imagealphablending", NULL, 259, &_30$$14, &__$true); + ZEPHIR_CALL_FUNCTION(NULL, "imagealphablending", NULL, 227, &_30$$14, &__$true); zephir_check_call_status(); zephir_read_property(&_31$$14, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", &_25, 257, &_31$$14, &__$true); + ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", &_25, 225, &_31$$14, &__$true); zephir_check_call_status(); zephir_read_property(&_33$$14, this_ptr, SL("_file"), PH_NOISY_CC | PH_READONLY); zephir_update_property_zval(this_ptr, SL("_realpath"), &_33$$14); @@ -75936,7 +74428,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _resize) { ZEPHIR_GET_CONSTANT(&_0, "PHP_VERSION"); ZEPHIR_INIT_VAR(&_1); ZVAL_STRING(&_1, "5.5.0"); - ZEPHIR_CALL_FUNCTION(&_2, "version_compare", NULL, 250, &_0, &_1); + ZEPHIR_CALL_FUNCTION(&_2, "version_compare", NULL, 218, &_0, &_1); zephir_check_call_status(); if (ZEPHIR_LT_LONG(&_2, 0)) { ZEPHIR_OBS_VAR(&pre_width); @@ -75978,11 +74470,11 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _resize) { ZVAL_LONG(&_14$$4, 0); ZVAL_LONG(&_15$$4, 0); ZVAL_LONG(&_16$$4, 0); - ZEPHIR_CALL_FUNCTION(&_17$$4, "imagecopyresized", NULL, 260, &image, &_10$$4, &_13$$4, &_14$$4, &_15$$4, &_16$$4, &pre_width, &pre_height, &_11$$4, &_12$$4); + ZEPHIR_CALL_FUNCTION(&_17$$4, "imagecopyresized", NULL, 228, &image, &_10$$4, &_13$$4, &_14$$4, &_15$$4, &_16$$4, &pre_width, &pre_height, &_11$$4, &_12$$4); zephir_check_call_status(); if (zephir_is_true(&_17$$4)) { zephir_read_property(&_18$$6, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", &_19, 261, &_18$$6); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", &_19, 229, &_18$$6); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_image"), &image); } @@ -75998,17 +74490,17 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _resize) { ZVAL_LONG(&_24$$3, 0); ZVAL_LONG(&_25$$3, width); ZVAL_LONG(&_26$$3, height); - ZEPHIR_CALL_FUNCTION(&_27$$3, "imagecopyresampled", NULL, 262, &image, &_20$$3, &_21$$3, &_22$$3, &_23$$3, &_24$$3, &_25$$3, &_26$$3, &pre_width, &pre_height); + ZEPHIR_CALL_FUNCTION(&_27$$3, "imagecopyresampled", NULL, 230, &image, &_20$$3, &_21$$3, &_22$$3, &_23$$3, &_24$$3, &_25$$3, &_26$$3, &pre_width, &pre_height); zephir_check_call_status(); if (zephir_is_true(&_27$$3)) { zephir_read_property(&_28$$7, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", &_19, 261, &_28$$7); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", &_19, 229, &_28$$7); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_image"), &image); - ZEPHIR_CALL_FUNCTION(&_29$$7, "imagesx", &_30, 263, &image); + ZEPHIR_CALL_FUNCTION(&_29$$7, "imagesx", &_30, 231, &image); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_width"), &_29$$7); - ZEPHIR_CALL_FUNCTION(&_31$$7, "imagesy", &_32, 264, &image); + ZEPHIR_CALL_FUNCTION(&_31$$7, "imagesy", &_32, 232, &image); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_height"), &_31$$7); } @@ -76016,16 +74508,16 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _resize) { zephir_read_property(&_33$$8, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); ZVAL_LONG(&_34$$8, width); ZVAL_LONG(&_35$$8, height); - ZEPHIR_CALL_FUNCTION(&image, "imagescale", NULL, 265, &_33$$8, &_34$$8, &_35$$8); + ZEPHIR_CALL_FUNCTION(&image, "imagescale", NULL, 233, &_33$$8, &_34$$8, &_35$$8); zephir_check_call_status(); zephir_read_property(&_34$$8, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", &_19, 261, &_34$$8); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", &_19, 229, &_34$$8); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_image"), &image); - ZEPHIR_CALL_FUNCTION(&_36$$8, "imagesx", &_30, 263, &image); + ZEPHIR_CALL_FUNCTION(&_36$$8, "imagesx", &_30, 231, &image); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_width"), &_36$$8); - ZEPHIR_CALL_FUNCTION(&_37$$8, "imagesy", &_32, 264, &image); + ZEPHIR_CALL_FUNCTION(&_37$$8, "imagesy", &_32, 232, &image); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_height"), &_37$$8); } @@ -76077,7 +74569,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _crop) { ZEPHIR_GET_CONSTANT(&_0, "PHP_VERSION"); ZEPHIR_INIT_VAR(&_1); ZVAL_STRING(&_1, "5.5.0"); - ZEPHIR_CALL_FUNCTION(&_2, "version_compare", NULL, 250, &_0, &_1); + ZEPHIR_CALL_FUNCTION(&_2, "version_compare", NULL, 218, &_0, &_1); zephir_check_call_status(); if (ZEPHIR_LT_LONG(&_2, 0)) { ZVAL_LONG(&_3$$3, width); @@ -76093,17 +74585,17 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _crop) { ZVAL_LONG(&_9$$3, height); ZVAL_LONG(&_10$$3, width); ZVAL_LONG(&_11$$3, height); - ZEPHIR_CALL_FUNCTION(&_12$$3, "imagecopyresampled", NULL, 262, &image, &_3$$3, &_4$$3, &_5$$3, &_6$$3, &_7$$3, &_8$$3, &_9$$3, &_10$$3, &_11$$3); + ZEPHIR_CALL_FUNCTION(&_12$$3, "imagecopyresampled", NULL, 230, &image, &_3$$3, &_4$$3, &_5$$3, &_6$$3, &_7$$3, &_8$$3, &_9$$3, &_10$$3, &_11$$3); zephir_check_call_status(); if (zephir_is_true(&_12$$3)) { zephir_read_property(&_13$$4, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", &_14, 261, &_13$$4); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", &_14, 229, &_13$$4); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_image"), &image); - ZEPHIR_CALL_FUNCTION(&_15$$4, "imagesx", &_16, 263, &image); + ZEPHIR_CALL_FUNCTION(&_15$$4, "imagesx", &_16, 231, &image); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_width"), &_15$$4); - ZEPHIR_CALL_FUNCTION(&_17$$4, "imagesy", &_18, 264, &image); + ZEPHIR_CALL_FUNCTION(&_17$$4, "imagesy", &_18, 232, &image); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_height"), &_17$$4); } @@ -76123,16 +74615,16 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _crop) { ZVAL_LONG(&_19$$5, height); zephir_array_update_string(&rect, SL("height"), &_19$$5, PH_COPY | PH_SEPARATE); zephir_read_property(&_20$$5, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(&image, "imagecrop", NULL, 266, &_20$$5, &rect); + ZEPHIR_CALL_FUNCTION(&image, "imagecrop", NULL, 234, &_20$$5, &rect); zephir_check_call_status(); zephir_read_property(&_21$$5, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", &_14, 261, &_21$$5); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", &_14, 229, &_21$$5); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_image"), &image); - ZEPHIR_CALL_FUNCTION(&_22$$5, "imagesx", &_16, 263, &image); + ZEPHIR_CALL_FUNCTION(&_22$$5, "imagesx", &_16, 231, &image); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_width"), &_22$$5); - ZEPHIR_CALL_FUNCTION(&_23$$5, "imagesy", &_18, 264, &image); + ZEPHIR_CALL_FUNCTION(&_23$$5, "imagesy", &_18, 232, &image); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_height"), &_23$$5); } @@ -76173,18 +74665,18 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _rotate) { ZVAL_LONG(&_2, 0); ZVAL_LONG(&_3, 0); ZVAL_LONG(&_4, 127); - ZEPHIR_CALL_FUNCTION(&transparent, "imagecolorallocatealpha", NULL, 267, &_0, &_1, &_2, &_3, &_4); + ZEPHIR_CALL_FUNCTION(&transparent, "imagecolorallocatealpha", NULL, 235, &_0, &_1, &_2, &_3, &_4); zephir_check_call_status(); zephir_read_property(&_1, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); ZVAL_LONG(&_2, (360 - degrees)); ZVAL_LONG(&_3, 1); - ZEPHIR_CALL_FUNCTION(&image, "imagerotate", NULL, 268, &_1, &_2, &transparent, &_3); + ZEPHIR_CALL_FUNCTION(&image, "imagerotate", NULL, 236, &_1, &_2, &transparent, &_3); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", NULL, 257, &image, &__$true); + ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", NULL, 225, &image, &__$true); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&width, "imagesx", NULL, 263, &image); + ZEPHIR_CALL_FUNCTION(&width, "imagesx", NULL, 231, &image); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&height, "imagesy", NULL, 264, &image); + ZEPHIR_CALL_FUNCTION(&height, "imagesy", NULL, 232, &image); zephir_check_call_status(); zephir_read_property(&_2, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); ZVAL_LONG(&_3, 0); @@ -76192,11 +74684,11 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _rotate) { ZVAL_LONG(&_5, 0); ZVAL_LONG(&_6, 0); ZVAL_LONG(&_7, 100); - ZEPHIR_CALL_FUNCTION(&_8, "imagecopymerge", NULL, 269, &_2, &image, &_3, &_4, &_5, &_6, &width, &height, &_7); + ZEPHIR_CALL_FUNCTION(&_8, "imagecopymerge", NULL, 237, &_2, &image, &_3, &_4, &_5, &_6, &width, &height, &_7); zephir_check_call_status(); if (zephir_is_true(&_8)) { zephir_read_property(&_9$$3, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 261, &_9$$3); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 229, &_9$$3); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_image"), &image); zephir_update_property_zval(this_ptr, SL("_width"), &width); @@ -76255,7 +74747,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _flip) { ZEPHIR_GET_CONSTANT(&_0, "PHP_VERSION"); ZEPHIR_INIT_VAR(&_1); ZVAL_STRING(&_1, "5.5.0"); - ZEPHIR_CALL_FUNCTION(&_2, "version_compare", NULL, 250, &_0, &_1); + ZEPHIR_CALL_FUNCTION(&_2, "version_compare", NULL, 218, &_0, &_1); zephir_check_call_status(); if (ZEPHIR_LT_LONG(&_2, 0)) { zephir_read_property(&_3$$3, this_ptr, SL("_width"), PH_NOISY_CC | PH_READONLY); @@ -76278,7 +74770,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _flip) { ZVAL_LONG(&_11$$5, ((zephir_get_numberval(&_7$$5) - x) - 1)); ZVAL_LONG(&_12$$5, 0); ZVAL_LONG(&_13$$5, 1); - ZEPHIR_CALL_FUNCTION(NULL, "imagecopy", &_14, 270, &image, &_6$$5, &_9$$5, &_10$$5, &_11$$5, &_12$$5, &_13$$5, &_8$$5); + ZEPHIR_CALL_FUNCTION(NULL, "imagecopy", &_14, 238, &image, &_6$$5, &_9$$5, &_10$$5, &_11$$5, &_12$$5, &_13$$5, &_8$$5); zephir_check_call_status(); } } else { @@ -76297,30 +74789,30 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _flip) { ZVAL_LONG(&_21$$7, 0); ZVAL_LONG(&_22$$7, ((zephir_get_numberval(&_17$$7) - x) - 1)); ZVAL_LONG(&_23$$7, 1); - ZEPHIR_CALL_FUNCTION(NULL, "imagecopy", &_14, 270, &image, &_16$$7, &_19$$7, &_20$$7, &_21$$7, &_22$$7, &_18$$7, &_23$$7); + ZEPHIR_CALL_FUNCTION(NULL, "imagecopy", &_14, 238, &image, &_16$$7, &_19$$7, &_20$$7, &_21$$7, &_22$$7, &_18$$7, &_23$$7); zephir_check_call_status(); } } zephir_read_property(&_24$$3, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 261, &_24$$3); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 229, &_24$$3); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_image"), &image); - ZEPHIR_CALL_FUNCTION(&_25$$3, "imagesx", NULL, 263, &image); + ZEPHIR_CALL_FUNCTION(&_25$$3, "imagesx", NULL, 231, &image); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_width"), &_25$$3); - ZEPHIR_CALL_FUNCTION(&_26$$3, "imagesy", NULL, 264, &image); + ZEPHIR_CALL_FUNCTION(&_26$$3, "imagesy", NULL, 232, &image); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_height"), &_26$$3); } else { if (direction == 11) { zephir_read_property(&_27$$9, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); ZVAL_LONG(&_28$$9, 1); - ZEPHIR_CALL_FUNCTION(NULL, "imageflip", &_29, 271, &_27$$9, &_28$$9); + ZEPHIR_CALL_FUNCTION(NULL, "imageflip", &_29, 239, &_27$$9, &_28$$9); zephir_check_call_status(); } else { zephir_read_property(&_30$$10, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); ZVAL_LONG(&_31$$10, 2); - ZEPHIR_CALL_FUNCTION(NULL, "imageflip", &_29, 271, &_30$$10, &_31$$10); + ZEPHIR_CALL_FUNCTION(NULL, "imageflip", &_29, 239, &_30$$10, &_31$$10); zephir_check_call_status(); } } @@ -76358,7 +74850,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _sharpen) { ZEPHIR_INIT_VAR(&_0); ZVAL_LONG(&_1, (-18 + ((amount * 0.08)))); - ZEPHIR_CALL_FUNCTION(&_2, "abs", NULL, 199, &_1); + ZEPHIR_CALL_FUNCTION(&_2, "abs", NULL, 181, &_1); zephir_check_call_status(); ZVAL_LONG(&_1, 2); zephir_round(&_0, &_2, &_1, NULL TSRMLS_CC); @@ -76404,15 +74896,15 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _sharpen) { zephir_read_property(&_5, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); ZVAL_LONG(&_6, (amount - 8)); ZVAL_LONG(&_7, 0); - ZEPHIR_CALL_FUNCTION(&_8, "imageconvolution", NULL, 272, &_5, &matrix, &_6, &_7); + ZEPHIR_CALL_FUNCTION(&_8, "imageconvolution", NULL, 240, &_5, &matrix, &_6, &_7); zephir_check_call_status(); if (zephir_is_true(&_8)) { zephir_read_property(&_9$$3, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(&_10$$3, "imagesx", NULL, 263, &_9$$3); + ZEPHIR_CALL_FUNCTION(&_10$$3, "imagesx", NULL, 231, &_9$$3); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_width"), &_10$$3); zephir_read_property(&_11$$3, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(&_12$$3, "imagesy", NULL, 264, &_11$$3); + ZEPHIR_CALL_FUNCTION(&_12$$3, "imagesy", NULL, 232, &_11$$3); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_height"), &_12$$3); } @@ -76469,7 +74961,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _reflection) { ZEPHIR_INIT_VAR(&_0); ZVAL_DOUBLE(&_1, ((zephir_safe_div_long_long((opacity * 127), 100 TSRMLS_CC)) - (double) (127))); - ZEPHIR_CALL_FUNCTION(&_2, "abs", NULL, 199, &_1); + ZEPHIR_CALL_FUNCTION(&_2, "abs", NULL, 181, &_1); zephir_check_call_status(); zephir_round(&_0, &_2, NULL, NULL TSRMLS_CC); opacity = zephir_get_intval(&_0); @@ -76490,7 +74982,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _reflection) { ZVAL_LONG(&_9, 0); ZVAL_LONG(&_10, 0); ZVAL_LONG(&_11, 0); - ZEPHIR_CALL_FUNCTION(NULL, "imagecopy", &_12, 270, &reflection, &_4, &_8, &_9, &_10, &_11, &_6, &_7); + ZEPHIR_CALL_FUNCTION(NULL, "imagecopy", &_12, 238, &reflection, &_4, &_8, &_9, &_10, &_11, &_6, &_7); zephir_check_call_status(); offset = 0; while (1) { @@ -76523,14 +75015,14 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _reflection) { ZVAL_LONG(&_24$$5, 0); ZVAL_LONG(&_25$$5, src_y); ZVAL_LONG(&_26$$5, 1); - ZEPHIR_CALL_FUNCTION(NULL, "imagecopy", &_12, 270, &line, &_20$$5, &_22$$5, &_23$$5, &_24$$5, &_25$$5, &_21$$5, &_26$$5); + ZEPHIR_CALL_FUNCTION(NULL, "imagecopy", &_12, 238, &line, &_20$$5, &_22$$5, &_23$$5, &_24$$5, &_25$$5, &_21$$5, &_26$$5); zephir_check_call_status(); ZVAL_LONG(&_22$$5, 4); ZVAL_LONG(&_23$$5, 0); ZVAL_LONG(&_24$$5, 0); ZVAL_LONG(&_25$$5, 0); ZVAL_LONG(&_26$$5, dst_opacity); - ZEPHIR_CALL_FUNCTION(NULL, "imagefilter", &_27, 273, &line, &_22$$5, &_23$$5, &_24$$5, &_25$$5, &_26$$5); + ZEPHIR_CALL_FUNCTION(NULL, "imagefilter", &_27, 241, &line, &_22$$5, &_23$$5, &_24$$5, &_25$$5, &_26$$5); zephir_check_call_status(); zephir_read_property(&_22$$5, this_ptr, SL("_width"), PH_NOISY_CC | PH_READONLY); ZVAL_LONG(&_23$$5, 0); @@ -76538,18 +75030,18 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _reflection) { ZVAL_LONG(&_25$$5, 0); ZVAL_LONG(&_26$$5, 0); ZVAL_LONG(&_28$$5, 1); - ZEPHIR_CALL_FUNCTION(NULL, "imagecopy", &_12, 270, &reflection, &line, &_23$$5, &_24$$5, &_25$$5, &_26$$5, &_22$$5, &_28$$5); + ZEPHIR_CALL_FUNCTION(NULL, "imagecopy", &_12, 238, &reflection, &line, &_23$$5, &_24$$5, &_25$$5, &_26$$5, &_22$$5, &_28$$5); zephir_check_call_status(); offset++; } zephir_read_property(&_8, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 261, &_8); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 229, &_8); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_image"), &reflection); - ZEPHIR_CALL_FUNCTION(&_29, "imagesx", NULL, 263, &reflection); + ZEPHIR_CALL_FUNCTION(&_29, "imagesx", NULL, 231, &reflection); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_width"), &_29); - ZEPHIR_CALL_FUNCTION(&_30, "imagesy", NULL, 264, &reflection); + ZEPHIR_CALL_FUNCTION(&_30, "imagesy", NULL, 232, &reflection); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_height"), &_30); ZEPHIR_MM_RESTORE(); @@ -76595,20 +75087,20 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _watermark) { ZEPHIR_CALL_METHOD(&_0, watermark, "render", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&overlay, "imagecreatefromstring", NULL, 274, &_0); + ZEPHIR_CALL_FUNCTION(&overlay, "imagecreatefromstring", NULL, 242, &_0); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", NULL, 257, &overlay, &__$true); + ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", NULL, 225, &overlay, &__$true); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_1, "imagesx", NULL, 263, &overlay); + ZEPHIR_CALL_FUNCTION(&_1, "imagesx", NULL, 231, &overlay); zephir_check_call_status(); width = zephir_get_intval(&_1); - ZEPHIR_CALL_FUNCTION(&_2, "imagesy", NULL, 264, &overlay); + ZEPHIR_CALL_FUNCTION(&_2, "imagesy", NULL, 232, &overlay); zephir_check_call_status(); height = zephir_get_intval(&_2); if (opacity < 100) { ZEPHIR_INIT_VAR(&_3$$3); ZVAL_DOUBLE(&_4$$3, ((zephir_safe_div_long_long((opacity * 127), 100 TSRMLS_CC)) - (double) (127))); - ZEPHIR_CALL_FUNCTION(&_5$$3, "abs", NULL, 199, &_4$$3); + ZEPHIR_CALL_FUNCTION(&_5$$3, "abs", NULL, 181, &_4$$3); zephir_check_call_status(); zephir_round(&_3$$3, &_5$$3, NULL, NULL TSRMLS_CC); opacity = zephir_get_intval(&_3$$3); @@ -76616,20 +75108,20 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _watermark) { ZVAL_LONG(&_6$$3, 127); ZVAL_LONG(&_7$$3, 127); ZVAL_LONG(&_8$$3, opacity); - ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", NULL, 267, &overlay, &_4$$3, &_6$$3, &_7$$3, &_8$$3); + ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", NULL, 235, &overlay, &_4$$3, &_6$$3, &_7$$3, &_8$$3); zephir_check_call_status(); ZVAL_LONG(&_4$$3, 3); - ZEPHIR_CALL_FUNCTION(NULL, "imagelayereffect", NULL, 275, &overlay, &_4$$3); + ZEPHIR_CALL_FUNCTION(NULL, "imagelayereffect", NULL, 243, &overlay, &_4$$3); zephir_check_call_status(); ZVAL_LONG(&_4$$3, 0); ZVAL_LONG(&_6$$3, 0); ZVAL_LONG(&_7$$3, width); ZVAL_LONG(&_8$$3, height); - ZEPHIR_CALL_FUNCTION(NULL, "imagefilledrectangle", NULL, 276, &overlay, &_4$$3, &_6$$3, &_7$$3, &_8$$3, &color); + ZEPHIR_CALL_FUNCTION(NULL, "imagefilledrectangle", NULL, 244, &overlay, &_4$$3, &_6$$3, &_7$$3, &_8$$3, &color); zephir_check_call_status(); } zephir_read_property(&_9, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(NULL, "imagealphablending", NULL, 259, &_9, &__$true); + ZEPHIR_CALL_FUNCTION(NULL, "imagealphablending", NULL, 227, &_9, &__$true); zephir_check_call_status(); zephir_read_property(&_10, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); ZVAL_LONG(&_11, offsetX); @@ -76638,10 +75130,10 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _watermark) { ZVAL_LONG(&_14, 0); ZVAL_LONG(&_15, width); ZVAL_LONG(&_16, height); - ZEPHIR_CALL_FUNCTION(&_17, "imagecopy", NULL, 270, &_10, &overlay, &_11, &_12, &_13, &_14, &_15, &_16); + ZEPHIR_CALL_FUNCTION(&_17, "imagecopy", NULL, 238, &_10, &overlay, &_11, &_12, &_13, &_14, &_15, &_16); zephir_check_call_status(); if (zephir_is_true(&_17)) { - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 261, &overlay); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 229, &overlay); zephir_check_call_status(); } ZEPHIR_MM_RESTORE(); @@ -76708,14 +75200,14 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _text) { s5 = 0; ZEPHIR_INIT_VAR(&_0); ZVAL_DOUBLE(&_1, ((zephir_safe_div_long_long((opacity * 127), 100 TSRMLS_CC)) - (double) (127))); - ZEPHIR_CALL_FUNCTION(&_2, "abs", &_3, 199, &_1); + ZEPHIR_CALL_FUNCTION(&_2, "abs", &_3, 181, &_1); zephir_check_call_status(); zephir_round(&_0, &_2, NULL, NULL TSRMLS_CC); opacity = zephir_get_intval(&_0); if (!(Z_TYPE_P(&fontfile) == IS_UNDEF) && Z_STRLEN_P(&fontfile)) { ZVAL_LONG(&_4$$3, size); ZVAL_LONG(&_5$$3, 0); - ZEPHIR_CALL_FUNCTION(&space, "imagettfbbox", NULL, 277, &_4$$3, &_5$$3, &fontfile, &text); + ZEPHIR_CALL_FUNCTION(&space, "imagettfbbox", NULL, 245, &_4$$3, &_5$$3, &fontfile, &text); zephir_check_call_status(); if (zephir_array_isset_long(&space, 0)) { ZEPHIR_OBS_VAR(&_6$$4); @@ -76748,11 +75240,11 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _text) { return; } ZVAL_LONG(&_4$$3, (s4 - s0)); - ZEPHIR_CALL_FUNCTION(&_13$$3, "abs", &_3, 199, &_4$$3); + ZEPHIR_CALL_FUNCTION(&_13$$3, "abs", &_3, 181, &_4$$3); zephir_check_call_status(); width = (zephir_get_numberval(&_13$$3) + 10); ZVAL_LONG(&_4$$3, (s5 - s1)); - ZEPHIR_CALL_FUNCTION(&_14$$3, "abs", &_3, 199, &_4$$3); + ZEPHIR_CALL_FUNCTION(&_14$$3, "abs", &_3, 181, &_4$$3); zephir_check_call_status(); height = (zephir_get_numberval(&_14$$3) + 10); if (offsetX < 0) { @@ -76768,7 +75260,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _text) { ZVAL_LONG(&_17$$3, g); ZVAL_LONG(&_18$$3, b); ZVAL_LONG(&_19$$3, opacity); - ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", &_20, 267, &_4$$3, &_5$$3, &_17$$3, &_18$$3, &_19$$3); + ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", &_20, 235, &_4$$3, &_5$$3, &_17$$3, &_18$$3, &_19$$3); zephir_check_call_status(); angle = 0; zephir_read_property(&_5$$3, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); @@ -76776,15 +75268,15 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _text) { ZVAL_LONG(&_18$$3, angle); ZVAL_LONG(&_19$$3, offsetX); ZVAL_LONG(&_21$$3, offsetY); - ZEPHIR_CALL_FUNCTION(NULL, "imagettftext", NULL, 278, &_5$$3, &_17$$3, &_18$$3, &_19$$3, &_21$$3, &color, &fontfile, &text); + ZEPHIR_CALL_FUNCTION(NULL, "imagettftext", NULL, 246, &_5$$3, &_17$$3, &_18$$3, &_19$$3, &_21$$3, &color, &fontfile, &text); zephir_check_call_status(); } else { ZVAL_LONG(&_22$$8, size); - ZEPHIR_CALL_FUNCTION(&_23$$8, "imagefontwidth", NULL, 279, &_22$$8); + ZEPHIR_CALL_FUNCTION(&_23$$8, "imagefontwidth", NULL, 247, &_22$$8); zephir_check_call_status(); width = (zephir_get_intval(&_23$$8) * zephir_fast_strlen_ev(&text)); ZVAL_LONG(&_22$$8, size); - ZEPHIR_CALL_FUNCTION(&_24$$8, "imagefontheight", NULL, 280, &_22$$8); + ZEPHIR_CALL_FUNCTION(&_24$$8, "imagefontheight", NULL, 248, &_22$$8); zephir_check_call_status(); height = zephir_get_intval(&_24$$8); if (offsetX < 0) { @@ -76800,13 +75292,13 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _text) { ZVAL_LONG(&_28$$8, g); ZVAL_LONG(&_29$$8, b); ZVAL_LONG(&_30$$8, opacity); - ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", &_20, 267, &_22$$8, &_27$$8, &_28$$8, &_29$$8, &_30$$8); + ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", &_20, 235, &_22$$8, &_27$$8, &_28$$8, &_29$$8, &_30$$8); zephir_check_call_status(); zephir_read_property(&_27$$8, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); ZVAL_LONG(&_28$$8, size); ZVAL_LONG(&_29$$8, offsetX); ZVAL_LONG(&_30$$8, offsetY); - ZEPHIR_CALL_FUNCTION(NULL, "imagestring", NULL, 281, &_27$$8, &_28$$8, &_29$$8, &_30$$8, &text, &color); + ZEPHIR_CALL_FUNCTION(NULL, "imagestring", NULL, 249, &_27$$8, &_28$$8, &_29$$8, &_30$$8, &text, &color); zephir_check_call_status(); } ZEPHIR_MM_RESTORE(); @@ -76865,32 +75357,32 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _mask) { ZEPHIR_CALL_METHOD(&_0, mask, "render", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&maskImage, "imagecreatefromstring", NULL, 274, &_0); + ZEPHIR_CALL_FUNCTION(&maskImage, "imagecreatefromstring", NULL, 242, &_0); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_1, "imagesx", NULL, 263, &maskImage); + ZEPHIR_CALL_FUNCTION(&_1, "imagesx", NULL, 231, &maskImage); zephir_check_call_status(); mask_width = zephir_get_intval(&_1); - ZEPHIR_CALL_FUNCTION(&_2, "imagesy", NULL, 264, &maskImage); + ZEPHIR_CALL_FUNCTION(&_2, "imagesy", NULL, 232, &maskImage); zephir_check_call_status(); mask_height = zephir_get_intval(&_2); alpha = 127; - ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", &_3, 257, &maskImage, &__$true); + ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", &_3, 225, &maskImage, &__$true); zephir_check_call_status(); zephir_read_property(&_4, this_ptr, SL("_width"), PH_NOISY_CC | PH_READONLY); zephir_read_property(&_5, this_ptr, SL("_height"), PH_NOISY_CC | PH_READONLY); ZEPHIR_CALL_METHOD(&newimage, this_ptr, "_create", NULL, 0, &_4, &_5); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", &_3, 257, &newimage, &__$true); + ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", &_3, 225, &newimage, &__$true); zephir_check_call_status(); ZVAL_LONG(&_6, 0); ZVAL_LONG(&_7, 0); ZVAL_LONG(&_8, 0); ZVAL_LONG(&_9, alpha); - ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", &_10, 267, &newimage, &_6, &_7, &_8, &_9); + ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", &_10, 235, &newimage, &_6, &_7, &_8, &_9); zephir_check_call_status(); ZVAL_LONG(&_6, 0); ZVAL_LONG(&_7, 0); - ZEPHIR_CALL_FUNCTION(NULL, "imagefill", NULL, 282, &newimage, &_6, &_7, &color); + ZEPHIR_CALL_FUNCTION(NULL, "imagefill", NULL, 250, &newimage, &_6, &_7, &color); zephir_check_call_status(); zephir_read_property(&_6, this_ptr, SL("_width"), PH_NOISY_CC | PH_READONLY); _11 = !ZEPHIR_IS_LONG(&_6, mask_width); @@ -76901,7 +75393,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _mask) { if (_11) { zephir_read_property(&_12$$3, this_ptr, SL("_width"), PH_NOISY_CC | PH_READONLY); zephir_read_property(&_13$$3, this_ptr, SL("_height"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(&tempImage, "imagecreatetruecolor", NULL, 258, &_12$$3, &_13$$3); + ZEPHIR_CALL_FUNCTION(&tempImage, "imagecreatetruecolor", NULL, 226, &_12$$3, &_13$$3); zephir_check_call_status(); zephir_read_property(&_14$$3, this_ptr, SL("_width"), PH_NOISY_CC | PH_READONLY); zephir_read_property(&_15$$3, this_ptr, SL("_height"), PH_NOISY_CC | PH_READONLY); @@ -76911,9 +75403,9 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _mask) { ZVAL_LONG(&_19$$3, 0); ZVAL_LONG(&_20$$3, mask_width); ZVAL_LONG(&_21$$3, mask_height); - ZEPHIR_CALL_FUNCTION(NULL, "imagecopyresampled", NULL, 262, &tempImage, &maskImage, &_16$$3, &_17$$3, &_18$$3, &_19$$3, &_14$$3, &_15$$3, &_20$$3, &_21$$3); + ZEPHIR_CALL_FUNCTION(NULL, "imagecopyresampled", NULL, 230, &tempImage, &maskImage, &_16$$3, &_17$$3, &_18$$3, &_19$$3, &_14$$3, &_15$$3, &_20$$3, &_21$$3); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", &_22, 261, &maskImage); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", &_22, 229, &maskImage); zephir_check_call_status(); ZEPHIR_CPY_WRT(&maskImage, &tempImage); } @@ -76931,9 +75423,9 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _mask) { } ZVAL_LONG(&_24$$5, x); ZVAL_LONG(&_25$$5, y); - ZEPHIR_CALL_FUNCTION(&index, "imagecolorat", &_26, 283, &maskImage, &_24$$5, &_25$$5); + ZEPHIR_CALL_FUNCTION(&index, "imagecolorat", &_26, 251, &maskImage, &_24$$5, &_25$$5); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&color, "imagecolorsforindex", &_27, 284, &maskImage, &index); + ZEPHIR_CALL_FUNCTION(&color, "imagecolorsforindex", &_27, 252, &maskImage, &index); zephir_check_call_status(); if (zephir_array_isset_string(&color, SL("red"))) { zephir_array_fetch_string(&_28$$6, &color, SL("red"), PH_NOISY | PH_READONLY, "phalcon/image/adapter/gd.zep", 430 TSRMLS_CC); @@ -76943,10 +75435,10 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _mask) { zephir_read_property(&_24$$5, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); ZVAL_LONG(&_25$$5, x); ZVAL_LONG(&_30$$5, y); - ZEPHIR_CALL_FUNCTION(&index, "imagecolorat", &_26, 283, &_24$$5, &_25$$5, &_30$$5); + ZEPHIR_CALL_FUNCTION(&index, "imagecolorat", &_26, 251, &_24$$5, &_25$$5, &_30$$5); zephir_check_call_status(); zephir_read_property(&_25$$5, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(&color, "imagecolorsforindex", &_27, 284, &_25$$5, &index); + ZEPHIR_CALL_FUNCTION(&color, "imagecolorsforindex", &_27, 252, &_25$$5, &index); zephir_check_call_status(); ZEPHIR_OBS_NVAR(&r); zephir_array_fetch_string(&r, &color, SL("red"), PH_NOISY, "phalcon/image/adapter/gd.zep", 435 TSRMLS_CC); @@ -76955,20 +75447,20 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _mask) { ZEPHIR_OBS_NVAR(&b); zephir_array_fetch_string(&b, &color, SL("blue"), PH_NOISY, "phalcon/image/adapter/gd.zep", 435 TSRMLS_CC); ZVAL_LONG(&_30$$5, alpha); - ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", &_10, 267, &newimage, &r, &g, &b, &_30$$5); + ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", &_10, 235, &newimage, &r, &g, &b, &_30$$5); zephir_check_call_status(); ZVAL_LONG(&_30$$5, x); ZVAL_LONG(&_31$$5, y); - ZEPHIR_CALL_FUNCTION(NULL, "imagesetpixel", &_32, 285, &newimage, &_30$$5, &_31$$5, &color); + ZEPHIR_CALL_FUNCTION(NULL, "imagesetpixel", &_32, 253, &newimage, &_30$$5, &_31$$5, &color); zephir_check_call_status(); y++; } x++; } zephir_read_property(&_9, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", &_22, 261, &_9); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", &_22, 229, &_9); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", &_22, 261, &maskImage); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", &_22, 229, &maskImage); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_image"), &newimage); ZEPHIR_MM_RESTORE(); @@ -77014,9 +75506,9 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _background) { ZVAL_LONG(&_3, g); ZVAL_LONG(&_4, b); ZVAL_LONG(&_5, opacity); - ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", NULL, 267, &background, &_2, &_3, &_4, &_5); + ZEPHIR_CALL_FUNCTION(&color, "imagecolorallocatealpha", NULL, 235, &background, &_2, &_3, &_4, &_5); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(NULL, "imagealphablending", NULL, 259, &background, &__$true); + ZEPHIR_CALL_FUNCTION(NULL, "imagealphablending", NULL, 227, &background, &__$true); zephir_check_call_status(); zephir_read_property(&_2, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); zephir_read_property(&_3, this_ptr, SL("_width"), PH_NOISY_CC | PH_READONLY); @@ -77025,11 +75517,11 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _background) { ZVAL_LONG(&_6, 0); ZVAL_LONG(&_7, 0); ZVAL_LONG(&_8, 0); - ZEPHIR_CALL_FUNCTION(&_9, "imagecopy", NULL, 270, &background, &_2, &_5, &_6, &_7, &_8, &_3, &_4); + ZEPHIR_CALL_FUNCTION(&_9, "imagecopy", NULL, 238, &background, &_2, &_5, &_6, &_7, &_8, &_3, &_4); zephir_check_call_status(); if (zephir_is_true(&_9)) { zephir_read_property(&_10$$3, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 261, &_10$$3); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 229, &_10$$3); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_image"), &background); } @@ -77060,7 +75552,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _blur) { } zephir_read_property(&_0$$3, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); ZVAL_LONG(&_1$$3, 7); - ZEPHIR_CALL_FUNCTION(NULL, "imagefilter", &_2, 273, &_0$$3, &_1$$3); + ZEPHIR_CALL_FUNCTION(NULL, "imagefilter", &_2, 241, &_0$$3, &_1$$3); zephir_check_call_status(); i++; } @@ -77108,7 +75600,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _pixelate) { zephir_read_property(&_2$$4, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); ZVAL_LONG(&_3$$4, x1); ZVAL_LONG(&_4$$4, y1); - ZEPHIR_CALL_FUNCTION(&color, "imagecolorat", &_5, 283, &_2$$4, &_3$$4, &_4$$4); + ZEPHIR_CALL_FUNCTION(&color, "imagecolorat", &_5, 251, &_2$$4, &_3$$4, &_4$$4); zephir_check_call_status(); x2 = (x + amount); y2 = (y + amount); @@ -77117,7 +75609,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _pixelate) { ZVAL_LONG(&_6$$4, y); ZVAL_LONG(&_7$$4, x2); ZVAL_LONG(&_8$$4, y2); - ZEPHIR_CALL_FUNCTION(NULL, "imagefilledrectangle", &_9, 276, &_3$$4, &_4$$4, &_6$$4, &_7$$4, &_8$$4, &color); + ZEPHIR_CALL_FUNCTION(NULL, "imagefilledrectangle", &_9, 244, &_3$$4, &_4$$4, &_6$$4, &_7$$4, &_8$$4, &color); zephir_check_call_status(); y += amount; } @@ -77175,11 +75667,11 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _save) { ZVAL_LONG(&_0, 4); - ZEPHIR_CALL_FUNCTION(&ext, "pathinfo", NULL, 73, &file, &_0); + ZEPHIR_CALL_FUNCTION(&ext, "pathinfo", NULL, 67, &file, &_0); zephir_check_call_status(); if (!(zephir_is_true(&ext))) { zephir_read_property(&_1$$3, this_ptr, SL("_type"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(&ext, "image_type_to_extension", NULL, 286, &_1$$3, &__$false); + ZEPHIR_CALL_FUNCTION(&ext, "image_type_to_extension", NULL, 254, &_1$$3, &__$false); zephir_check_call_status(); } ZEPHIR_INIT_VAR(&_2); @@ -77187,30 +75679,30 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _save) { ZEPHIR_CPY_WRT(&ext, &_2); ZEPHIR_INIT_NVAR(&_2); ZVAL_STRING(&_2, "gif"); - ZEPHIR_CALL_FUNCTION(&_3, "strcmp", &_4, 287, &ext, &_2); + ZEPHIR_CALL_FUNCTION(&_3, "strcmp", &_4, 255, &ext, &_2); zephir_check_call_status(); if (ZEPHIR_IS_LONG(&_3, 0)) { ZEPHIR_INIT_ZVAL_NREF(_5$$4); ZVAL_LONG(&_5$$4, 1); zephir_update_property_zval(this_ptr, SL("_type"), &_5$$4); zephir_read_property(&_5$$4, this_ptr, SL("_type"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(&_6$$4, "image_type_to_mime_type", &_7, 288, &_5$$4); + ZEPHIR_CALL_FUNCTION(&_6$$4, "image_type_to_mime_type", &_7, 256, &_5$$4); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_mime"), &_6$$4); zephir_read_property(&_8$$4, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(NULL, "imagegif", NULL, 289, &_8$$4, &file); + ZEPHIR_CALL_FUNCTION(NULL, "imagegif", NULL, 257, &_8$$4, &file); zephir_check_call_status(); RETURN_MM_BOOL(1); } ZEPHIR_INIT_NVAR(&_2); ZVAL_STRING(&_2, "jpg"); - ZEPHIR_CALL_FUNCTION(&_9, "strcmp", &_4, 287, &ext, &_2); + ZEPHIR_CALL_FUNCTION(&_9, "strcmp", &_4, 255, &ext, &_2); zephir_check_call_status(); _10 = ZEPHIR_IS_LONG(&_9, 0); if (!(_10)) { ZEPHIR_INIT_NVAR(&_2); ZVAL_STRING(&_2, "jpeg"); - ZEPHIR_CALL_FUNCTION(&_11, "strcmp", &_4, 287, &ext, &_2); + ZEPHIR_CALL_FUNCTION(&_11, "strcmp", &_4, 255, &ext, &_2); zephir_check_call_status(); _10 = ZEPHIR_IS_LONG(&_11, 0); } @@ -77219,7 +75711,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _save) { ZVAL_LONG(&_12$$5, 2); zephir_update_property_zval(this_ptr, SL("_type"), &_12$$5); zephir_read_property(&_12$$5, this_ptr, SL("_type"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(&_13$$5, "image_type_to_mime_type", &_7, 288, &_12$$5); + ZEPHIR_CALL_FUNCTION(&_13$$5, "image_type_to_mime_type", &_7, 256, &_12$$5); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_mime"), &_13$$5); if (quality >= 0) { @@ -77230,63 +75722,63 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _save) { } zephir_read_property(&_14$$6, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); ZVAL_LONG(&_15$$6, quality); - ZEPHIR_CALL_FUNCTION(NULL, "imagejpeg", &_16, 290, &_14$$6, &file, &_15$$6); + ZEPHIR_CALL_FUNCTION(NULL, "imagejpeg", &_16, 258, &_14$$6, &file, &_15$$6); zephir_check_call_status(); } else { zephir_read_property(&_17$$9, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(NULL, "imagejpeg", &_16, 290, &_17$$9, &file); + ZEPHIR_CALL_FUNCTION(NULL, "imagejpeg", &_16, 258, &_17$$9, &file); zephir_check_call_status(); } RETURN_MM_BOOL(1); } ZEPHIR_INIT_NVAR(&_2); ZVAL_STRING(&_2, "png"); - ZEPHIR_CALL_FUNCTION(&_18, "strcmp", &_4, 287, &ext, &_2); + ZEPHIR_CALL_FUNCTION(&_18, "strcmp", &_4, 255, &ext, &_2); zephir_check_call_status(); if (ZEPHIR_IS_LONG(&_18, 0)) { ZEPHIR_INIT_ZVAL_NREF(_19$$10); ZVAL_LONG(&_19$$10, 3); zephir_update_property_zval(this_ptr, SL("_type"), &_19$$10); zephir_read_property(&_19$$10, this_ptr, SL("_type"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(&_20$$10, "image_type_to_mime_type", &_7, 288, &_19$$10); + ZEPHIR_CALL_FUNCTION(&_20$$10, "image_type_to_mime_type", &_7, 256, &_19$$10); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_mime"), &_20$$10); zephir_read_property(&_21$$10, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(NULL, "imagepng", NULL, 291, &_21$$10, &file); + ZEPHIR_CALL_FUNCTION(NULL, "imagepng", NULL, 259, &_21$$10, &file); zephir_check_call_status(); RETURN_MM_BOOL(1); } ZEPHIR_INIT_NVAR(&_2); ZVAL_STRING(&_2, "wbmp"); - ZEPHIR_CALL_FUNCTION(&_22, "strcmp", &_4, 287, &ext, &_2); + ZEPHIR_CALL_FUNCTION(&_22, "strcmp", &_4, 255, &ext, &_2); zephir_check_call_status(); if (ZEPHIR_IS_LONG(&_22, 0)) { ZEPHIR_INIT_ZVAL_NREF(_23$$11); ZVAL_LONG(&_23$$11, 15); zephir_update_property_zval(this_ptr, SL("_type"), &_23$$11); zephir_read_property(&_23$$11, this_ptr, SL("_type"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(&_24$$11, "image_type_to_mime_type", &_7, 288, &_23$$11); + ZEPHIR_CALL_FUNCTION(&_24$$11, "image_type_to_mime_type", &_7, 256, &_23$$11); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_mime"), &_24$$11); zephir_read_property(&_25$$11, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(NULL, "imagewbmp", NULL, 292, &_25$$11, &file); + ZEPHIR_CALL_FUNCTION(NULL, "imagewbmp", NULL, 260, &_25$$11, &file); zephir_check_call_status(); RETURN_MM_BOOL(1); } ZEPHIR_INIT_NVAR(&_2); ZVAL_STRING(&_2, "xbm"); - ZEPHIR_CALL_FUNCTION(&_26, "strcmp", &_4, 287, &ext, &_2); + ZEPHIR_CALL_FUNCTION(&_26, "strcmp", &_4, 255, &ext, &_2); zephir_check_call_status(); if (ZEPHIR_IS_LONG(&_26, 0)) { ZEPHIR_INIT_ZVAL_NREF(_27$$12); ZVAL_LONG(&_27$$12, 16); zephir_update_property_zval(this_ptr, SL("_type"), &_27$$12); zephir_read_property(&_27$$12, this_ptr, SL("_type"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(&_28$$12, "image_type_to_mime_type", &_7, 288, &_27$$12); + ZEPHIR_CALL_FUNCTION(&_28$$12, "image_type_to_mime_type", &_7, 256, &_27$$12); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_mime"), &_28$$12); zephir_read_property(&_29$$12, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(NULL, "imagexbm", NULL, 293, &_29$$12, &file); + ZEPHIR_CALL_FUNCTION(NULL, "imagexbm", NULL, 261, &_29$$12, &file); zephir_check_call_status(); RETURN_MM_BOOL(1); } @@ -77294,7 +75786,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _save) { object_init_ex(&_2, phalcon_image_exception_ce); ZEPHIR_INIT_VAR(&_30); ZEPHIR_CONCAT_SVS(&_30, "Installed GD does not support '", &ext, "' images"); - ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", NULL, 9, &_30); + ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", NULL, 4, &_30); zephir_check_call_status(); zephir_throw_exception_debug(&_2, "phalcon/image/adapter/gd.zep", 554 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -77339,74 +75831,74 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _render) { ZEPHIR_INIT_VAR(&_0); zephir_fast_strtolower(&_0, &ext); zephir_get_strval(&ext, &_0); - ZEPHIR_CALL_FUNCTION(NULL, "ob_start", NULL, 126); + ZEPHIR_CALL_FUNCTION(NULL, "ob_start", NULL, 115); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_1); ZVAL_STRING(&_1, "gif"); - ZEPHIR_CALL_FUNCTION(&_2, "strcmp", &_3, 287, &ext, &_1); + ZEPHIR_CALL_FUNCTION(&_2, "strcmp", &_3, 255, &ext, &_1); zephir_check_call_status(); if (ZEPHIR_IS_LONG(&_2, 0)) { zephir_read_property(&_4$$3, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(NULL, "imagegif", NULL, 289, &_4$$3); + ZEPHIR_CALL_FUNCTION(NULL, "imagegif", NULL, 257, &_4$$3); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_FUNCTION("ob_get_clean", &_5, 294); + ZEPHIR_RETURN_CALL_FUNCTION("ob_get_clean", &_5, 262); zephir_check_call_status(); RETURN_MM(); } ZEPHIR_INIT_NVAR(&_1); ZVAL_STRING(&_1, "jpg"); - ZEPHIR_CALL_FUNCTION(&_6, "strcmp", &_3, 287, &ext, &_1); + ZEPHIR_CALL_FUNCTION(&_6, "strcmp", &_3, 255, &ext, &_1); zephir_check_call_status(); _7 = ZEPHIR_IS_LONG(&_6, 0); if (!(_7)) { ZEPHIR_INIT_NVAR(&_1); ZVAL_STRING(&_1, "jpeg"); - ZEPHIR_CALL_FUNCTION(&_8, "strcmp", &_3, 287, &ext, &_1); + ZEPHIR_CALL_FUNCTION(&_8, "strcmp", &_3, 255, &ext, &_1); zephir_check_call_status(); _7 = ZEPHIR_IS_LONG(&_8, 0); } if (_7) { zephir_read_property(&_9$$4, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); ZVAL_LONG(&_10$$4, quality); - ZEPHIR_CALL_FUNCTION(NULL, "imagejpeg", NULL, 290, &_9$$4, &__$null, &_10$$4); + ZEPHIR_CALL_FUNCTION(NULL, "imagejpeg", NULL, 258, &_9$$4, &__$null, &_10$$4); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_FUNCTION("ob_get_clean", &_5, 294); + ZEPHIR_RETURN_CALL_FUNCTION("ob_get_clean", &_5, 262); zephir_check_call_status(); RETURN_MM(); } ZEPHIR_INIT_NVAR(&_1); ZVAL_STRING(&_1, "png"); - ZEPHIR_CALL_FUNCTION(&_11, "strcmp", &_3, 287, &ext, &_1); + ZEPHIR_CALL_FUNCTION(&_11, "strcmp", &_3, 255, &ext, &_1); zephir_check_call_status(); if (ZEPHIR_IS_LONG(&_11, 0)) { zephir_read_property(&_12$$5, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(NULL, "imagepng", NULL, 291, &_12$$5); + ZEPHIR_CALL_FUNCTION(NULL, "imagepng", NULL, 259, &_12$$5); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_FUNCTION("ob_get_clean", &_5, 294); + ZEPHIR_RETURN_CALL_FUNCTION("ob_get_clean", &_5, 262); zephir_check_call_status(); RETURN_MM(); } ZEPHIR_INIT_NVAR(&_1); ZVAL_STRING(&_1, "wbmp"); - ZEPHIR_CALL_FUNCTION(&_13, "strcmp", &_3, 287, &ext, &_1); + ZEPHIR_CALL_FUNCTION(&_13, "strcmp", &_3, 255, &ext, &_1); zephir_check_call_status(); if (ZEPHIR_IS_LONG(&_13, 0)) { zephir_read_property(&_14$$6, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(NULL, "imagewbmp", NULL, 292, &_14$$6); + ZEPHIR_CALL_FUNCTION(NULL, "imagewbmp", NULL, 260, &_14$$6); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_FUNCTION("ob_get_clean", &_5, 294); + ZEPHIR_RETURN_CALL_FUNCTION("ob_get_clean", &_5, 262); zephir_check_call_status(); RETURN_MM(); } ZEPHIR_INIT_NVAR(&_1); ZVAL_STRING(&_1, "xbm"); - ZEPHIR_CALL_FUNCTION(&_15, "strcmp", &_3, 287, &ext, &_1); + ZEPHIR_CALL_FUNCTION(&_15, "strcmp", &_3, 255, &ext, &_1); zephir_check_call_status(); if (ZEPHIR_IS_LONG(&_15, 0)) { zephir_read_property(&_16$$7, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(NULL, "imagexbm", NULL, 293, &_16$$7, &__$null); + ZEPHIR_CALL_FUNCTION(NULL, "imagexbm", NULL, 261, &_16$$7, &__$null); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_FUNCTION("ob_get_clean", &_5, 294); + ZEPHIR_RETURN_CALL_FUNCTION("ob_get_clean", &_5, 262); zephir_check_call_status(); RETURN_MM(); } @@ -77414,7 +75906,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _render) { object_init_ex(&_1, phalcon_image_exception_ce); ZEPHIR_INIT_VAR(&_17); ZEPHIR_CONCAT_SVS(&_17, "Installed GD does not support '", &ext, "' images"); - ZEPHIR_CALL_METHOD(NULL, &_1, "__construct", NULL, 9, &_17); + ZEPHIR_CALL_METHOD(NULL, &_1, "__construct", NULL, 4, &_17); zephir_check_call_status(); zephir_throw_exception_debug(&_1, "phalcon/image/adapter/gd.zep", 582 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -77443,11 +75935,11 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, _create) { ZVAL_LONG(&_0, width); ZVAL_LONG(&_1, height); - ZEPHIR_CALL_FUNCTION(&image, "imagecreatetruecolor", NULL, 258, &_0, &_1); + ZEPHIR_CALL_FUNCTION(&image, "imagecreatetruecolor", NULL, 226, &_0, &_1); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(NULL, "imagealphablending", NULL, 259, &image, &__$false); + ZEPHIR_CALL_FUNCTION(NULL, "imagealphablending", NULL, 227, &image, &__$false); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", NULL, 257, &image, &__$true); + ZEPHIR_CALL_FUNCTION(NULL, "imagesavealpha", NULL, 225, &image, &__$true); zephir_check_call_status(); RETURN_CCTOR(image); @@ -77466,7 +75958,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, __destruct) { ZEPHIR_OBS_VAR(&image); zephir_read_property(&image, this_ptr, SL("_image"), PH_NOISY_CC); if (Z_TYPE_P(&image) == IS_RESOURCE) { - ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 261, &image); + ZEPHIR_CALL_FUNCTION(NULL, "imagedestroy", NULL, 229, &image); zephir_check_call_status(); } ZEPHIR_MM_RESTORE(); @@ -77524,12 +76016,12 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, check) { } ZEPHIR_INIT_VAR(&_2); ZVAL_STRING(&_2, "Imagick::IMAGICK_EXTNUM"); - ZEPHIR_CALL_FUNCTION(&_3, "defined", NULL, 239, &_2); + ZEPHIR_CALL_FUNCTION(&_3, "defined", NULL, 207, &_2); zephir_check_call_status(); if (zephir_is_true(&_3)) { ZEPHIR_INIT_VAR(&_4$$5); ZVAL_STRING(&_4$$5, "Imagick::IMAGICK_EXTNUM"); - ZEPHIR_CALL_FUNCTION(&_5$$5, "constant", NULL, 197, &_4$$5); + ZEPHIR_CALL_FUNCTION(&_5$$5, "constant", NULL, 179, &_4$$5); zephir_check_call_status(); zephir_update_static_property_ce(phalcon_image_adapter_imagick_ce, SL("_version"), &_5$$5); } @@ -77591,11 +76083,11 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, __construct) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &file_param, &width_param, &height_param); - if (unlikely(Z_TYPE_P(file_param) != IS_STRING && Z_TYPE_P(file_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(file_param) != IS_STRING && Z_TYPE_P(file_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'file' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(file_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(file_param) == IS_STRING)) { zephir_get_strval(&file, file_param); } else { ZEPHIR_INIT_VAR(&file); @@ -77621,13 +76113,15 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, __construct) { zephir_update_property_zval(this_ptr, SL("_file"), &file); ZEPHIR_INIT_VAR(&_1); object_init_ex(&_1, zephir_get_internal_ce(SL("imagick"))); - ZEPHIR_CALL_METHOD(NULL, &_1, "__construct", NULL, 0); - zephir_check_call_status(); + if (zephir_has_constructor(&_1 TSRMLS_CC)) { + ZEPHIR_CALL_METHOD(NULL, &_1, "__construct", NULL, 0); + zephir_check_call_status(); + } zephir_update_property_zval(this_ptr, SL("_image"), &_1); zephir_read_property(&_2, this_ptr, SL("_file"), PH_NOISY_CC | PH_READONLY); if ((zephir_file_exists(&_2 TSRMLS_CC) == SUCCESS)) { zephir_read_property(&_3$$4, this_ptr, SL("_file"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(&_4$$4, "realpath", NULL, 64, &_3$$4); + ZEPHIR_CALL_FUNCTION(&_4$$4, "realpath", NULL, 58, &_3$$4); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_realpath"), &_4$$4); zephir_read_property(&_5$$4, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); @@ -77640,7 +76134,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, __construct) { zephir_read_property(&_9$$5, this_ptr, SL("_file"), PH_NOISY_CC | PH_READONLY); ZEPHIR_INIT_VAR(&_10$$5); ZEPHIR_CONCAT_SVS(&_10$$5, "Imagick::readImage ", &_9$$5, " failed"); - ZEPHIR_CALL_METHOD(NULL, &_8$$5, "__construct", NULL, 9, &_10$$5); + ZEPHIR_CALL_METHOD(NULL, &_8$$5, "__construct", NULL, 4, &_10$$5); zephir_check_call_status(); zephir_throw_exception_debug(&_8$$5, "phalcon/image/adapter/imagick.zep", 86 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -77653,7 +76147,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, __construct) { zephir_read_property(&_13$$6, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); ZEPHIR_INIT_VAR(&_14$$6); ZVAL_STRING(&_14$$6, "Imagick::ALPHACHANNEL_SET"); - ZEPHIR_CALL_FUNCTION(&_15$$6, "constant", NULL, 197, &_14$$6); + ZEPHIR_CALL_FUNCTION(&_15$$6, "constant", NULL, 179, &_14$$6); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, &_13$$6, "setimagealphachannel", NULL, 0, &_15$$6); zephir_check_call_status(); @@ -77682,7 +76176,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, __construct) { zephir_read_property(&_22$$9, this_ptr, SL("_file"), PH_NOISY_CC | PH_READONLY); ZEPHIR_INIT_VAR(&_23$$9); ZEPHIR_CONCAT_SV(&_23$$9, "Failed to create image from file ", &_22$$9); - ZEPHIR_CALL_METHOD(NULL, &_21$$9, "__construct", NULL, 9, &_23$$9); + ZEPHIR_CALL_METHOD(NULL, &_21$$9, "__construct", NULL, 4, &_23$$9); zephir_check_call_status(); zephir_throw_exception_debug(&_21$$9, "phalcon/image/adapter/imagick.zep", 102 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -77691,10 +76185,12 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, __construct) { zephir_read_property(&_24$$8, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); ZEPHIR_INIT_VAR(&_25$$8); object_init_ex(&_25$$8, zephir_get_internal_ce(SL("imagickpixel"))); - ZEPHIR_INIT_VAR(&_26$$8); - ZVAL_STRING(&_26$$8, "transparent"); - ZEPHIR_CALL_METHOD(NULL, &_25$$8, "__construct", NULL, 0, &_26$$8); - zephir_check_call_status(); + if (zephir_has_constructor(&_25$$8 TSRMLS_CC)) { + ZEPHIR_INIT_VAR(&_26$$8); + ZVAL_STRING(&_26$$8, "transparent"); + ZEPHIR_CALL_METHOD(NULL, &_25$$8, "__construct", NULL, 0, &_26$$8); + zephir_check_call_status(); + } ZVAL_LONG(&_27$$8, width); ZVAL_LONG(&_28$$8, height); ZEPHIR_CALL_METHOD(NULL, &_24$$8, "newimage", NULL, 0, &_27$$8, &_28$$8, &_25$$8); @@ -77933,8 +76429,10 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _rotate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(&pixel); object_init_ex(&pixel, zephir_get_internal_ce(SL("imagickpixel"))); - ZEPHIR_CALL_METHOD(NULL, &pixel, "__construct", NULL, 0); - zephir_check_call_status(); + if (zephir_has_constructor(&pixel TSRMLS_CC)) { + ZEPHIR_CALL_METHOD(NULL, &pixel, "__construct", NULL, 0); + zephir_check_call_status(); + } while (1) { zephir_read_property(&_2$$3, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); ZVAL_LONG(&_3$$3, degrees); @@ -78180,8 +76678,10 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _reflection) { } ZEPHIR_INIT_VAR(&fade); object_init_ex(&fade, zephir_get_internal_ce(SL("imagick"))); - ZEPHIR_CALL_METHOD(NULL, &fade, "__construct", NULL, 0); - zephir_check_call_status(); + if (zephir_has_constructor(&fade TSRMLS_CC)) { + ZEPHIR_CALL_METHOD(NULL, &fade, "__construct", NULL, 0); + zephir_check_call_status(); + } ZEPHIR_CALL_METHOD(&_17, &reflection, "getimagewidth", NULL, 0); zephir_check_call_status(); ZEPHIR_CALL_METHOD(&_18, &reflection, "getimageheight", NULL, 0); @@ -78195,7 +76695,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _reflection) { while (1) { ZEPHIR_INIT_NVAR(&_19$$7); ZVAL_STRING(&_19$$7, "Imagick::COMPOSITE_DSTOUT"); - ZEPHIR_CALL_FUNCTION(&_20$$7, "constant", &_21, 197, &_19$$7); + ZEPHIR_CALL_FUNCTION(&_20$$7, "constant", &_21, 179, &_19$$7); zephir_check_call_status(); ZVAL_LONG(&_22$$7, 0); ZVAL_LONG(&_23$$7, 0); @@ -78207,11 +76707,11 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _reflection) { } ZEPHIR_INIT_NVAR(&_19$$7); ZVAL_STRING(&_19$$7, "Imagick::EVALUATE_MULTIPLY"); - ZEPHIR_CALL_FUNCTION(&_25$$7, "constant", &_21, 197, &_19$$7); + ZEPHIR_CALL_FUNCTION(&_25$$7, "constant", &_21, 179, &_19$$7); zephir_check_call_status(); ZEPHIR_INIT_NVAR(&_19$$7); ZVAL_STRING(&_19$$7, "Imagick::CHANNEL_ALPHA"); - ZEPHIR_CALL_FUNCTION(&_26$$7, "constant", &_21, 197, &_19$$7); + ZEPHIR_CALL_FUNCTION(&_26$$7, "constant", &_21, 179, &_19$$7); zephir_check_call_status(); ZVAL_LONG(&_22$$7, opacity); ZEPHIR_CALL_METHOD(NULL, &reflection, "evaluateimage", &_27, 0, &_25$$7, &_22$$7, &_26$$7); @@ -78226,12 +76726,16 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _reflection) { zephir_check_call_status(); ZEPHIR_INIT_VAR(&image); object_init_ex(&image, zephir_get_internal_ce(SL("imagick"))); - ZEPHIR_CALL_METHOD(NULL, &image, "__construct", NULL, 0); - zephir_check_call_status(); + if (zephir_has_constructor(&image TSRMLS_CC)) { + ZEPHIR_CALL_METHOD(NULL, &image, "__construct", NULL, 0); + zephir_check_call_status(); + } ZEPHIR_INIT_VAR(&pixel); object_init_ex(&pixel, zephir_get_internal_ce(SL("imagickpixel"))); - ZEPHIR_CALL_METHOD(NULL, &pixel, "__construct", NULL, 0); - zephir_check_call_status(); + if (zephir_has_constructor(&pixel TSRMLS_CC)) { + ZEPHIR_CALL_METHOD(NULL, &pixel, "__construct", NULL, 0); + zephir_check_call_status(); + } zephir_read_property(&_4, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); ZEPHIR_CALL_METHOD(&_30, &_4, "getimageheight", NULL, 0); zephir_check_call_status(); @@ -78247,7 +76751,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _reflection) { zephir_check_call_status(); ZEPHIR_INIT_NVAR(&_36$$10); ZVAL_STRING(&_36$$10, "Imagick::ALPHACHANNEL_SET"); - ZEPHIR_CALL_FUNCTION(&_37$$10, "constant", &_21, 197, &_36$$10); + ZEPHIR_CALL_FUNCTION(&_37$$10, "constant", &_21, 179, &_36$$10); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, &image, "setimagealphachannel", &_38, 0, &_37$$10); zephir_check_call_status(); @@ -78264,7 +76768,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _reflection) { zephir_read_property(&_44$$10, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); ZEPHIR_INIT_NVAR(&_36$$10); ZVAL_STRING(&_36$$10, "Imagick::COMPOSITE_SRC"); - ZEPHIR_CALL_FUNCTION(&_45$$10, "constant", &_21, 197, &_36$$10); + ZEPHIR_CALL_FUNCTION(&_45$$10, "constant", &_21, 179, &_36$$10); zephir_check_call_status(); ZVAL_LONG(&_46$$10, 0); ZVAL_LONG(&_47$$10, 0); @@ -78290,7 +76794,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _reflection) { while (1) { ZEPHIR_INIT_NVAR(&_50$$13); ZVAL_STRING(&_50$$13, "Imagick::COMPOSITE_OVER"); - ZEPHIR_CALL_FUNCTION(&_51$$13, "constant", &_21, 197, &_50$$13); + ZEPHIR_CALL_FUNCTION(&_51$$13, "constant", &_21, 179, &_50$$13); zephir_check_call_status(); zephir_read_property(&_52$$13, this_ptr, SL("_height"), PH_NOISY_CC | PH_READONLY); ZVAL_LONG(&_53$$13, 0); @@ -78335,10 +76839,9 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _reflection) { static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _watermark) { - zend_class_entry *_0$$3; - zephir_fcall_cache_entry *_8 = NULL; + zephir_fcall_cache_entry *_7 = NULL; int offsetX, offsetY, opacity, ZEPHIR_LAST_CALL_STATUS; - zval *image, image_sub, *offsetX_param = NULL, *offsetY_param = NULL, *opacity_param = NULL, watermark, ret, version, method, _2, _3, _4, _1$$3, _5$$5, _6$$5, _7$$5, _9$$5, _10$$5, _11$$5; + zval *image, image_sub, *offsetX_param = NULL, *offsetY_param = NULL, *opacity_param = NULL, watermark, ret, version, method, _1, _2, _3, _0$$3, _4$$5, _5$$5, _6$$5, _8$$5, _9$$5, _10$$5; ZEPHIR_INIT_THIS(); ZVAL_UNDEF(&image_sub); @@ -78346,16 +76849,16 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _watermark) { ZVAL_UNDEF(&ret); ZVAL_UNDEF(&version); ZVAL_UNDEF(&method); + ZVAL_UNDEF(&_1); ZVAL_UNDEF(&_2); ZVAL_UNDEF(&_3); - ZVAL_UNDEF(&_4); - ZVAL_UNDEF(&_1$$3); + ZVAL_UNDEF(&_0$$3); + ZVAL_UNDEF(&_4$$5); ZVAL_UNDEF(&_5$$5); ZVAL_UNDEF(&_6$$5); - ZVAL_UNDEF(&_7$$5); + ZVAL_UNDEF(&_8$$5); ZVAL_UNDEF(&_9$$5); ZVAL_UNDEF(&_10$$5); - ZVAL_UNDEF(&_11$$5); ZEPHIR_MM_GROW(); zephir_fetch_params(1, 4, 0, &image, &offsetX_param, &offsetY_param, &opacity_param); @@ -78368,49 +76871,50 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _watermark) { opacity = (long) (zephir_safe_div_long_long(opacity, 100 TSRMLS_CC)); ZEPHIR_INIT_VAR(&watermark); object_init_ex(&watermark, zephir_get_internal_ce(SL("imagick"))); - ZEPHIR_CALL_METHOD(NULL, &watermark, "__construct", NULL, 0); - zephir_check_call_status(); + if (zephir_has_constructor(&watermark TSRMLS_CC)) { + ZEPHIR_CALL_METHOD(NULL, &watermark, "__construct", NULL, 0); + zephir_check_call_status(); + } ZEPHIR_INIT_VAR(&method); ZVAL_STRING(&method, "setImageOpacity"); - if (likely((zephir_method_exists_ex(&watermark, SL("getversion") TSRMLS_CC) == SUCCESS))) { - _0$$3 = zephir_fetch_class_str_ex(SL("Imagick"), ZEND_FETCH_CLASS_AUTO); - ZEPHIR_CALL_CE_STATIC(&version, _0$$3, "getversion", NULL, 0); + if (EXPECTED((zephir_method_exists_ex(&watermark, SL("getversion") TSRMLS_CC) == SUCCESS))) { + ZEPHIR_CALL_METHOD(&version, &watermark, "getversion", NULL, 0); zephir_check_call_status(); - zephir_array_fetch_string(&_1$$3, &version, SL("versionNumber"), PH_NOISY | PH_READONLY, "phalcon/image/adapter/imagick.zep", 365 TSRMLS_CC); - if (ZEPHIR_GE_LONG(&_1$$3, 0x700)) { + zephir_array_fetch_string(&_0$$3, &version, SL("versionNumber"), PH_NOISY | PH_READONLY, "phalcon/image/adapter/imagick.zep", 365 TSRMLS_CC); + if (ZEPHIR_GE_LONG(&_0$$3, 0x700)) { ZEPHIR_INIT_NVAR(&method); ZVAL_STRING(&method, "setImageAlpha"); } } - ZEPHIR_CALL_METHOD(&_2, image, "render", NULL, 0); + ZEPHIR_CALL_METHOD(&_1, image, "render", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, &watermark, "readimageblob", NULL, 0, &_2); + ZEPHIR_CALL_METHOD(NULL, &watermark, "readimageblob", NULL, 0, &_1); zephir_check_call_status(); - ZVAL_LONG(&_3, opacity); - ZEPHIR_CALL_METHOD_ZVAL(NULL, &watermark, &method, NULL, 0, &_3); + ZVAL_LONG(&_2, opacity); + ZEPHIR_CALL_METHOD_ZVAL(NULL, &watermark, &method, NULL, 0, &_2); zephir_check_call_status(); - zephir_read_property(&_3, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); - ZVAL_LONG(&_4, 0); - ZEPHIR_CALL_METHOD(NULL, &_3, "setiteratorindex", NULL, 0, &_4); + zephir_read_property(&_2, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); + ZVAL_LONG(&_3, 0); + ZEPHIR_CALL_METHOD(NULL, &_2, "setiteratorindex", NULL, 0, &_3); zephir_check_call_status(); while (1) { - zephir_read_property(&_5$$5, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_INIT_NVAR(&_6$$5); - ZVAL_STRING(&_6$$5, "Imagick::COMPOSITE_OVER"); - ZEPHIR_CALL_FUNCTION(&_7$$5, "constant", &_8, 197, &_6$$5); + zephir_read_property(&_4$$5, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); + ZEPHIR_INIT_NVAR(&_5$$5); + ZVAL_STRING(&_5$$5, "Imagick::COMPOSITE_OVER"); + ZEPHIR_CALL_FUNCTION(&_6$$5, "constant", &_7, 179, &_5$$5); zephir_check_call_status(); - ZVAL_LONG(&_9$$5, offsetX); - ZVAL_LONG(&_10$$5, offsetY); - ZEPHIR_CALL_METHOD(&ret, &_5$$5, "compositeimage", NULL, 0, &watermark, &_7$$5, &_9$$5, &_10$$5); + ZVAL_LONG(&_8$$5, offsetX); + ZVAL_LONG(&_9$$5, offsetY); + ZEPHIR_CALL_METHOD(&ret, &_4$$5, "compositeimage", NULL, 0, &watermark, &_6$$5, &_8$$5, &_9$$5); zephir_check_call_status(); if (!ZEPHIR_IS_TRUE_IDENTICAL(&ret)) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_image_exception_ce, "Imagick::compositeImage failed", "phalcon/image/adapter/imagick.zep", 379); return; } - zephir_read_property(&_9$$5, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_METHOD(&_11$$5, &_9$$5, "nextimage", NULL, 0); + zephir_read_property(&_8$$5, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); + ZEPHIR_CALL_METHOD(&_10$$5, &_8$$5, "nextimage", NULL, 0); zephir_check_call_status(); - if (ZEPHIR_IS_FALSE_IDENTICAL(&_11$$5)) { + if (ZEPHIR_IS_FALSE_IDENTICAL(&_10$$5)) { break; } } @@ -78481,19 +76985,23 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _text) { opacity = (long) (zephir_safe_div_long_long(opacity, 100 TSRMLS_CC)); ZEPHIR_INIT_VAR(&draw); object_init_ex(&draw, zephir_get_internal_ce(SL("imagickdraw"))); - ZEPHIR_CALL_METHOD(NULL, &draw, "__construct", NULL, 0); - zephir_check_call_status(); + if (zephir_has_constructor(&draw TSRMLS_CC)) { + ZEPHIR_CALL_METHOD(NULL, &draw, "__construct", NULL, 0); + zephir_check_call_status(); + } ZEPHIR_INIT_VAR(&_0); ZVAL_STRING(&_0, "rgb(%d, %d, %d)"); ZVAL_LONG(&_1, r); ZVAL_LONG(&_2, g); ZVAL_LONG(&_3, b); - ZEPHIR_CALL_FUNCTION(&color, "sprintf", NULL, 194, &_0, &_1, &_2, &_3); + ZEPHIR_CALL_FUNCTION(&color, "sprintf", NULL, 176, &_0, &_1, &_2, &_3); zephir_check_call_status(); ZEPHIR_INIT_NVAR(&_0); object_init_ex(&_0, zephir_get_internal_ce(SL("imagickpixel"))); - ZEPHIR_CALL_METHOD(NULL, &_0, "__construct", NULL, 0, &color); - zephir_check_call_status(); + if (zephir_has_constructor(&_0 TSRMLS_CC)) { + ZEPHIR_CALL_METHOD(NULL, &_0, "__construct", NULL, 0, &color); + zephir_check_call_status(); + } ZEPHIR_CALL_METHOD(NULL, &draw, "setfillcolor", NULL, 0, &_0); zephir_check_call_status(); if (!(Z_TYPE_P(&fontfile) == IS_UNDEF) && Z_STRLEN_P(&fontfile)) { @@ -78525,24 +77033,24 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _text) { if (_6$$7) { ZEPHIR_INIT_VAR(&_7$$8); ZVAL_STRING(&_7$$8, "Imagick::GRAVITY_SOUTHEAST"); - ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_8, 197, &_7$$8); + ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_8, 179, &_7$$8); zephir_check_call_status(); } else { if (zephir_is_true(offsetX)) { ZEPHIR_INIT_VAR(&_9$$10); ZVAL_STRING(&_9$$10, "Imagick::GRAVITY_EAST"); - ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_8, 197, &_9$$10); + ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_8, 179, &_9$$10); zephir_check_call_status(); } else { if (zephir_is_true(offsetY)) { ZEPHIR_INIT_VAR(&_10$$12); ZVAL_STRING(&_10$$12, "Imagick::GRAVITY_SOUTH"); - ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_8, 197, &_10$$12); + ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_8, 179, &_10$$12); zephir_check_call_status(); } else { ZEPHIR_INIT_VAR(&_11$$13); ZVAL_STRING(&_11$$13, "Imagick::GRAVITY_CENTER"); - ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_8, 197, &_11$$13); + ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_8, 179, &_11$$13); zephir_check_call_status(); } } @@ -78558,13 +77066,13 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _text) { ZVAL_LONG(offsetY, (y * -1)); ZEPHIR_INIT_VAR(&_12$$17); ZVAL_STRING(&_12$$17, "Imagick::GRAVITY_SOUTHEAST"); - ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_8, 197, &_12$$17); + ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_8, 179, &_12$$17); zephir_check_call_status(); } else { ZVAL_LONG(offsetX, 0); ZEPHIR_INIT_VAR(&_13$$18); ZVAL_STRING(&_13$$18, "Imagick::GRAVITY_NORTHEAST"); - ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_8, 197, &_13$$18); + ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_8, 179, &_13$$18); zephir_check_call_status(); } } else { @@ -78575,13 +77083,13 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _text) { ZVAL_LONG(offsetY, (y * -1)); ZEPHIR_INIT_VAR(&_14$$20); ZVAL_STRING(&_14$$20, "Imagick::GRAVITY_SOUTH"); - ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_8, 197, &_14$$20); + ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_8, 179, &_14$$20); zephir_check_call_status(); } else { ZVAL_LONG(offsetX, 0); ZEPHIR_INIT_VAR(&_15$$21); ZVAL_STRING(&_15$$21, "Imagick::GRAVITY_NORTH"); - ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_8, 197, &_15$$21); + ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_8, 179, &_15$$21); zephir_check_call_status(); } } @@ -78600,13 +77108,13 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _text) { ZVAL_LONG(offsetY, 0); ZEPHIR_INIT_VAR(&_16$$27); ZVAL_STRING(&_16$$27, "Imagick::GRAVITY_SOUTHEAST"); - ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_8, 197, &_16$$27); + ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_8, 179, &_16$$27); zephir_check_call_status(); } else { ZVAL_LONG(offsetY, 0); ZEPHIR_INIT_VAR(&_17$$28); ZVAL_STRING(&_17$$28, "Imagick::GRAVITY_SOUTH"); - ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_8, 197, &_17$$28); + ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_8, 179, &_17$$28); zephir_check_call_status(); } } else { @@ -78617,13 +77125,13 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _text) { ZVAL_LONG(offsetY, 0); ZEPHIR_INIT_VAR(&_18$$30); ZVAL_STRING(&_18$$30, "Imagick::GRAVITY_EAST"); - ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_8, 197, &_18$$30); + ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_8, 179, &_18$$30); zephir_check_call_status(); } else { ZVAL_LONG(offsetY, 0); ZEPHIR_INIT_VAR(&_19$$31); ZVAL_STRING(&_19$$31, "Imagick::GRAVITY_WEST"); - ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_8, 197, &_19$$31); + ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_8, 179, &_19$$31); zephir_check_call_status(); } } @@ -78639,13 +77147,13 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _text) { ZVAL_LONG(offsetY, (y * -1)); ZEPHIR_INIT_VAR(&_20$$35); ZVAL_STRING(&_20$$35, "Imagick::GRAVITY_SOUTHEAST"); - ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_8, 197, &_20$$35); + ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_8, 179, &_20$$35); zephir_check_call_status(); } else { ZVAL_LONG(offsetX, (x * -1)); ZEPHIR_INIT_VAR(&_21$$36); ZVAL_STRING(&_21$$36, "Imagick::GRAVITY_NORTHEAST"); - ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_8, 197, &_21$$36); + ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_8, 179, &_21$$36); zephir_check_call_status(); } } else { @@ -78656,13 +77164,13 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _text) { ZVAL_LONG(offsetY, (y * -1)); ZEPHIR_INIT_VAR(&_22$$38); ZVAL_STRING(&_22$$38, "Imagick::GRAVITY_SOUTHWEST"); - ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_8, 197, &_22$$38); + ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_8, 179, &_22$$38); zephir_check_call_status(); } else { ZVAL_LONG(offsetX, 0); ZEPHIR_INIT_VAR(&_23$$39); ZVAL_STRING(&_23$$39, "Imagick::GRAVITY_NORTHWEST"); - ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_8, 197, &_23$$39); + ZEPHIR_CALL_FUNCTION(&gravity, "constant", &_8, 179, &_23$$39); zephir_check_call_status(); } } @@ -78723,8 +77231,10 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _mask) { ZEPHIR_INIT_VAR(&mask); object_init_ex(&mask, zephir_get_internal_ce(SL("imagick"))); - ZEPHIR_CALL_METHOD(NULL, &mask, "__construct", NULL, 0); - zephir_check_call_status(); + if (zephir_has_constructor(&mask TSRMLS_CC)) { + ZEPHIR_CALL_METHOD(NULL, &mask, "__construct", NULL, 0); + zephir_check_call_status(); + } ZEPHIR_CALL_METHOD(&_0, image, "render", NULL, 0); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, &mask, "readimageblob", NULL, 0, &_0); @@ -78741,7 +77251,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _mask) { zephir_read_property(&_4$$3, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); ZEPHIR_INIT_NVAR(&_5$$3); ZVAL_STRING(&_5$$3, "Imagick::COMPOSITE_DSTIN"); - ZEPHIR_CALL_FUNCTION(&_6$$3, "constant", &_7, 197, &_5$$3); + ZEPHIR_CALL_FUNCTION(&_6$$3, "constant", &_7, 179, &_5$$3); zephir_check_call_status(); ZVAL_LONG(&_8$$3, 0); ZVAL_LONG(&_9$$3, 0); @@ -78812,23 +77322,29 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _background) { ZVAL_LONG(&_1, r); ZVAL_LONG(&_2, g); ZVAL_LONG(&_3, b); - ZEPHIR_CALL_FUNCTION(&color, "sprintf", NULL, 194, &_0, &_1, &_2, &_3); + ZEPHIR_CALL_FUNCTION(&color, "sprintf", NULL, 176, &_0, &_1, &_2, &_3); zephir_check_call_status(); ZEPHIR_INIT_VAR(&pixel1); object_init_ex(&pixel1, zephir_get_internal_ce(SL("imagickpixel"))); - ZEPHIR_CALL_METHOD(NULL, &pixel1, "__construct", NULL, 0, &color); - zephir_check_call_status(); + if (zephir_has_constructor(&pixel1 TSRMLS_CC)) { + ZEPHIR_CALL_METHOD(NULL, &pixel1, "__construct", NULL, 0, &color); + zephir_check_call_status(); + } opacity = (long) (zephir_safe_div_long_long(opacity, 100 TSRMLS_CC)); ZEPHIR_INIT_VAR(&pixel2); object_init_ex(&pixel2, zephir_get_internal_ce(SL("imagickpixel"))); - ZEPHIR_INIT_NVAR(&_0); - ZVAL_STRING(&_0, "transparent"); - ZEPHIR_CALL_METHOD(NULL, &pixel2, "__construct", NULL, 0, &_0); - zephir_check_call_status(); + if (zephir_has_constructor(&pixel2 TSRMLS_CC)) { + ZEPHIR_INIT_NVAR(&_0); + ZVAL_STRING(&_0, "transparent"); + ZEPHIR_CALL_METHOD(NULL, &pixel2, "__construct", NULL, 0, &_0); + zephir_check_call_status(); + } ZEPHIR_INIT_VAR(&background); object_init_ex(&background, zephir_get_internal_ce(SL("imagick"))); - ZEPHIR_CALL_METHOD(NULL, &background, "__construct", NULL, 0); - zephir_check_call_status(); + if (zephir_has_constructor(&background TSRMLS_CC)) { + ZEPHIR_CALL_METHOD(NULL, &background, "__construct", NULL, 0); + zephir_check_call_status(); + } zephir_read_property(&_1, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); ZVAL_LONG(&_2, 0); ZEPHIR_CALL_METHOD(NULL, &_1, "setiteratorindex", NULL, 0, &_2); @@ -78843,7 +77359,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _background) { if (!(zephir_is_true(&_7$$3))) { ZEPHIR_INIT_NVAR(&_9$$4); ZVAL_STRING(&_9$$4, "Imagick::ALPHACHANNEL_SET"); - ZEPHIR_CALL_FUNCTION(&_10$$4, "constant", &_11, 197, &_9$$4); + ZEPHIR_CALL_FUNCTION(&_10$$4, "constant", &_11, 179, &_9$$4); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, &background, "setimagealphachannel", &_12, 0, &_10$$4); zephir_check_call_status(); @@ -78852,11 +77368,11 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _background) { zephir_check_call_status(); ZEPHIR_INIT_NVAR(&_14$$3); ZVAL_STRING(&_14$$3, "Imagick::EVALUATE_MULTIPLY"); - ZEPHIR_CALL_FUNCTION(&_15$$3, "constant", &_11, 197, &_14$$3); + ZEPHIR_CALL_FUNCTION(&_15$$3, "constant", &_11, 179, &_14$$3); zephir_check_call_status(); ZEPHIR_INIT_NVAR(&_14$$3); ZVAL_STRING(&_14$$3, "Imagick::CHANNEL_ALPHA"); - ZEPHIR_CALL_FUNCTION(&_16$$3, "constant", &_11, 197, &_14$$3); + ZEPHIR_CALL_FUNCTION(&_16$$3, "constant", &_11, 179, &_14$$3); zephir_check_call_status(); ZVAL_LONG(&_17$$3, opacity); ZEPHIR_CALL_METHOD(NULL, &background, "evaluateimage", &_18, 0, &_15$$3, &_17$$3, &_16$$3); @@ -78869,7 +77385,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _background) { zephir_read_property(&_21$$3, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); ZEPHIR_INIT_NVAR(&_14$$3); ZVAL_STRING(&_14$$3, "Imagick::COMPOSITE_DISSOLVE"); - ZEPHIR_CALL_FUNCTION(&_22$$3, "constant", &_11, 197, &_14$$3); + ZEPHIR_CALL_FUNCTION(&_22$$3, "constant", &_11, 179, &_14$$3); zephir_check_call_status(); ZVAL_LONG(&_23$$3, 0); ZVAL_LONG(&_24$$3, 0); @@ -79032,7 +77548,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _save) { ZVAL_LONG(&_0, 4); - ZEPHIR_CALL_FUNCTION(&ext, "pathinfo", NULL, 73, &file, &_0); + ZEPHIR_CALL_FUNCTION(&ext, "pathinfo", NULL, 67, &file, &_0); zephir_check_call_status(); zephir_read_property(&_0, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); ZEPHIR_CALL_METHOD(NULL, &_0, "setformat", NULL, 0, &ext); @@ -79052,7 +77568,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _save) { zephir_update_property_zval(this_ptr, SL("_mime"), &_6); ZEPHIR_INIT_VAR(&_7); ZVAL_STRING(&_7, "gif"); - ZEPHIR_CALL_FUNCTION(&_8, "strcasecmp", &_9, 16, &ext, &_7); + ZEPHIR_CALL_FUNCTION(&_8, "strcasecmp", &_9, 11, &ext, &_7); zephir_check_call_status(); if (ZEPHIR_IS_LONG(&_8, 0)) { zephir_read_property(&_10$$3, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); @@ -79060,7 +77576,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _save) { zephir_check_call_status(); ZEPHIR_INIT_VAR(&_11$$3); ZVAL_STRING(&_11$$3, "w"); - ZEPHIR_CALL_FUNCTION(&fp, "fopen", NULL, 295, &file, &_11$$3); + ZEPHIR_CALL_FUNCTION(&fp, "fopen", NULL, 263, &file, &_11$$3); zephir_check_call_status(); zephir_read_property(&_12$$3, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); ZEPHIR_CALL_METHOD(NULL, &_12$$3, "writeimagesfile", NULL, 0, &fp); @@ -79070,13 +77586,13 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _save) { } else { ZEPHIR_INIT_VAR(&_13$$4); ZVAL_STRING(&_13$$4, "jpg"); - ZEPHIR_CALL_FUNCTION(&_14$$4, "strcasecmp", &_9, 16, &ext, &_13$$4); + ZEPHIR_CALL_FUNCTION(&_14$$4, "strcasecmp", &_9, 11, &ext, &_13$$4); zephir_check_call_status(); _15$$4 = ZEPHIR_IS_LONG(&_14$$4, 0); if (!(_15$$4)) { ZEPHIR_INIT_NVAR(&_13$$4); ZVAL_STRING(&_13$$4, "jpeg"); - ZEPHIR_CALL_FUNCTION(&_16$$4, "strcasecmp", &_9, 16, &ext, &_13$$4); + ZEPHIR_CALL_FUNCTION(&_16$$4, "strcasecmp", &_9, 11, &ext, &_13$$4); zephir_check_call_status(); _15$$4 = ZEPHIR_IS_LONG(&_16$$4, 0); } @@ -79084,7 +77600,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _save) { zephir_read_property(&_17$$5, this_ptr, SL("_image"), PH_NOISY_CC | PH_READONLY); ZEPHIR_INIT_VAR(&_18$$5); ZVAL_STRING(&_18$$5, "Imagick::COMPRESSION_JPEG"); - ZEPHIR_CALL_FUNCTION(&_19$$5, "constant", NULL, 197, &_18$$5); + ZEPHIR_CALL_FUNCTION(&_19$$5, "constant", NULL, 179, &_18$$5); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, &_17$$5, "setimagecompression", NULL, 0, &_19$$5); zephir_check_call_status(); @@ -79156,7 +77672,7 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _render) { zephir_update_property_zval(this_ptr, SL("_mime"), &_2); ZEPHIR_INIT_VAR(&_3); ZVAL_STRING(&_3, "gif"); - ZEPHIR_CALL_FUNCTION(&_4, "strcasecmp", &_5, 16, &extension, &_3); + ZEPHIR_CALL_FUNCTION(&_4, "strcasecmp", &_5, 11, &extension, &_3); zephir_check_call_status(); if (ZEPHIR_IS_LONG_IDENTICAL(&_4, 0)) { ZEPHIR_CALL_METHOD(NULL, &image, "optimizeimagelayers", NULL, 0); @@ -79164,20 +77680,20 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _render) { } else { ZEPHIR_INIT_VAR(&_6$$4); ZVAL_STRING(&_6$$4, "jpg"); - ZEPHIR_CALL_FUNCTION(&_7$$4, "strcasecmp", &_5, 16, &extension, &_6$$4); + ZEPHIR_CALL_FUNCTION(&_7$$4, "strcasecmp", &_5, 11, &extension, &_6$$4); zephir_check_call_status(); _8$$4 = ZEPHIR_IS_LONG_IDENTICAL(&_7$$4, 0); if (!(_8$$4)) { ZEPHIR_INIT_NVAR(&_6$$4); ZVAL_STRING(&_6$$4, "jpeg"); - ZEPHIR_CALL_FUNCTION(&_9$$4, "strcasecmp", &_5, 16, &extension, &_6$$4); + ZEPHIR_CALL_FUNCTION(&_9$$4, "strcasecmp", &_5, 11, &extension, &_6$$4); zephir_check_call_status(); _8$$4 = ZEPHIR_IS_LONG_IDENTICAL(&_9$$4, 0); } if (_8$$4) { ZEPHIR_INIT_VAR(&_10$$5); ZVAL_STRING(&_10$$5, "Imagick::COMPRESSION_JPEG"); - ZEPHIR_CALL_FUNCTION(&_11$$5, "constant", NULL, 197, &_10$$5); + ZEPHIR_CALL_FUNCTION(&_11$$5, "constant", NULL, 179, &_10$$5); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, &image, "setimagecompression", NULL, 0, &_11$$5); zephir_check_call_status(); @@ -79472,11 +77988,11 @@ static PHP_METHOD(Phalcon_Logger_Adapter, critical) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &message_param, &context_param); - if (unlikely(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'message' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(message_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(message_param) == IS_STRING)) { zephir_get_strval(&message, message_param); } else { ZEPHIR_INIT_VAR(&message); @@ -79512,11 +78028,11 @@ static PHP_METHOD(Phalcon_Logger_Adapter, emergency) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &message_param, &context_param); - if (unlikely(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'message' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(message_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(message_param) == IS_STRING)) { zephir_get_strval(&message, message_param); } else { ZEPHIR_INIT_VAR(&message); @@ -79552,11 +78068,11 @@ static PHP_METHOD(Phalcon_Logger_Adapter, debug) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &message_param, &context_param); - if (unlikely(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'message' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(message_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(message_param) == IS_STRING)) { zephir_get_strval(&message, message_param); } else { ZEPHIR_INIT_VAR(&message); @@ -79592,11 +78108,11 @@ static PHP_METHOD(Phalcon_Logger_Adapter, error) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &message_param, &context_param); - if (unlikely(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'message' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(message_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(message_param) == IS_STRING)) { zephir_get_strval(&message, message_param); } else { ZEPHIR_INIT_VAR(&message); @@ -79632,11 +78148,11 @@ static PHP_METHOD(Phalcon_Logger_Adapter, info) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &message_param, &context_param); - if (unlikely(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'message' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(message_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(message_param) == IS_STRING)) { zephir_get_strval(&message, message_param); } else { ZEPHIR_INIT_VAR(&message); @@ -79672,11 +78188,11 @@ static PHP_METHOD(Phalcon_Logger_Adapter, notice) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &message_param, &context_param); - if (unlikely(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'message' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(message_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(message_param) == IS_STRING)) { zephir_get_strval(&message, message_param); } else { ZEPHIR_INIT_VAR(&message); @@ -79712,11 +78228,11 @@ static PHP_METHOD(Phalcon_Logger_Adapter, warning) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &message_param, &context_param); - if (unlikely(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'message' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(message_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(message_param) == IS_STRING)) { zephir_get_strval(&message, message_param); } else { ZEPHIR_INIT_VAR(&message); @@ -79752,11 +78268,11 @@ static PHP_METHOD(Phalcon_Logger_Adapter, alert) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &message_param, &context_param); - if (unlikely(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'message' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(message_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(message_param) == IS_STRING)) { zephir_get_strval(&message, message_param); } else { ZEPHIR_INIT_VAR(&message); @@ -79843,7 +78359,7 @@ static PHP_METHOD(Phalcon_Logger_Adapter, log) { if (zephir_is_true(&_3$$8)) { ZEPHIR_INIT_VAR(&_4$$9); object_init_ex(&_4$$9, phalcon_logger_item_ce); - ZEPHIR_CALL_METHOD(NULL, &_4$$9, "__construct", NULL, 25, &toggledMessage, &toggledType, ×tamp, &context); + ZEPHIR_CALL_METHOD(NULL, &_4$$9, "__construct", NULL, 20, &toggledMessage, &toggledType, ×tamp, &context); zephir_check_call_status(); zephir_update_property_array_append(this_ptr, SL("_queue"), &_4$$9 TSRMLS_CC); } else { @@ -80066,7 +78582,7 @@ static PHP_METHOD(Phalcon_Logger_Formatter, interpolate) { } ZEND_HASH_FOREACH_END(); ZEPHIR_INIT_NVAR(&value); ZEPHIR_INIT_NVAR(&key); - ZEPHIR_RETURN_CALL_FUNCTION("strtr", NULL, 26, &message, &replace); + ZEPHIR_RETURN_CALL_FUNCTION("strtr", NULL, 21, &message, &replace); zephir_check_call_status(); RETURN_MM(); } @@ -80396,11 +78912,11 @@ static PHP_METHOD(Phalcon_Logger_Multiple, critical) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &message_param, &context_param); - if (unlikely(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'message' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(message_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(message_param) == IS_STRING)) { zephir_get_strval(&message, message_param); } else { ZEPHIR_INIT_VAR(&message); @@ -80436,11 +78952,11 @@ static PHP_METHOD(Phalcon_Logger_Multiple, emergency) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &message_param, &context_param); - if (unlikely(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'message' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(message_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(message_param) == IS_STRING)) { zephir_get_strval(&message, message_param); } else { ZEPHIR_INIT_VAR(&message); @@ -80476,11 +78992,11 @@ static PHP_METHOD(Phalcon_Logger_Multiple, debug) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &message_param, &context_param); - if (unlikely(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'message' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(message_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(message_param) == IS_STRING)) { zephir_get_strval(&message, message_param); } else { ZEPHIR_INIT_VAR(&message); @@ -80516,11 +79032,11 @@ static PHP_METHOD(Phalcon_Logger_Multiple, error) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &message_param, &context_param); - if (unlikely(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'message' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(message_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(message_param) == IS_STRING)) { zephir_get_strval(&message, message_param); } else { ZEPHIR_INIT_VAR(&message); @@ -80556,11 +79072,11 @@ static PHP_METHOD(Phalcon_Logger_Multiple, info) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &message_param, &context_param); - if (unlikely(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'message' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(message_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(message_param) == IS_STRING)) { zephir_get_strval(&message, message_param); } else { ZEPHIR_INIT_VAR(&message); @@ -80596,11 +79112,11 @@ static PHP_METHOD(Phalcon_Logger_Multiple, notice) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &message_param, &context_param); - if (unlikely(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'message' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(message_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(message_param) == IS_STRING)) { zephir_get_strval(&message, message_param); } else { ZEPHIR_INIT_VAR(&message); @@ -80636,11 +79152,11 @@ static PHP_METHOD(Phalcon_Logger_Multiple, warning) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &message_param, &context_param); - if (unlikely(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'message' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(message_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(message_param) == IS_STRING)) { zephir_get_strval(&message, message_param); } else { ZEPHIR_INIT_VAR(&message); @@ -80676,11 +79192,11 @@ static PHP_METHOD(Phalcon_Logger_Multiple, alert) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &message_param, &context_param); - if (unlikely(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'message' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(message_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(message_param) == IS_STRING)) { zephir_get_strval(&message, message_param); } else { ZEPHIR_INIT_VAR(&message); @@ -80752,11 +79268,11 @@ static PHP_METHOD(Phalcon_Logger_Adapter_File, __construct) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &name_param, &options); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(&name, name_param); } else { ZEPHIR_INIT_VAR(&name); @@ -80783,14 +79299,14 @@ static PHP_METHOD(Phalcon_Logger_Adapter_File, __construct) { ZEPHIR_INIT_NVAR(&mode); ZVAL_STRING(&mode, "ab"); } - ZEPHIR_CALL_FUNCTION(&handler, "fopen", NULL, 295, &name, &mode); + ZEPHIR_CALL_FUNCTION(&handler, "fopen", NULL, 263, &name, &mode); zephir_check_call_status(); if (Z_TYPE_P(&handler) != IS_RESOURCE) { ZEPHIR_INIT_VAR(&_0$$7); object_init_ex(&_0$$7, phalcon_logger_exception_ce); ZEPHIR_INIT_VAR(&_1$$7); ZEPHIR_CONCAT_SVS(&_1$$7, "Can't open log file at '", &name, "'"); - ZEPHIR_CALL_METHOD(NULL, &_0$$7, "__construct", NULL, 9, &_1$$7); + ZEPHIR_CALL_METHOD(NULL, &_0$$7, "__construct", NULL, 4, &_1$$7); zephir_check_call_status(); zephir_throw_exception_debug(&_0$$7, "phalcon/logger/adapter/file.zep", 89 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -80819,7 +79335,7 @@ static PHP_METHOD(Phalcon_Logger_Adapter_File, getFormatter) { if (Z_TYPE_P(&_0) != IS_OBJECT) { ZEPHIR_INIT_VAR(&_1$$3); object_init_ex(&_1$$3, phalcon_logger_formatter_line_ce); - ZEPHIR_CALL_METHOD(NULL, &_1$$3, "__construct", NULL, 299); + ZEPHIR_CALL_METHOD(NULL, &_1$$3, "__construct", NULL, 267); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_formatter"), &_1$$3); } @@ -80915,7 +79431,7 @@ static PHP_METHOD(Phalcon_Logger_Adapter_File, __wakeup) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_logger_exception_ce, "Logger must be opened in append or write mode", "phalcon/logger/adapter/file.zep", 153); return; } - ZEPHIR_CALL_FUNCTION(&_1, "fopen", NULL, 295, &path, &mode); + ZEPHIR_CALL_FUNCTION(&_1, "fopen", NULL, 263, &path, &mode); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_fileHandler"), &_1); ZEPHIR_MM_RESTORE(); @@ -81011,15 +79527,15 @@ static PHP_METHOD(Phalcon_Logger_Adapter_Firephp, logInternal) { if (!(zephir_is_true(&_0))) { ZEPHIR_INIT_VAR(&_1$$3); ZVAL_STRING(&_1$$3, "X-Wf-Protocol-1: http://meta.wildfirehq.org/Protocol/JsonStream/0.2"); - ZEPHIR_CALL_FUNCTION(NULL, "header", &_2, 247, &_1$$3); + ZEPHIR_CALL_FUNCTION(NULL, "header", &_2, 215, &_1$$3); zephir_check_call_status(); ZEPHIR_INIT_NVAR(&_1$$3); ZVAL_STRING(&_1$$3, "X-Wf-1-Plugin-1: http://meta.firephp.org/Wildfire/Plugin/FirePHP/Library-FirePHPCore/0.3"); - ZEPHIR_CALL_FUNCTION(NULL, "header", &_2, 247, &_1$$3); + ZEPHIR_CALL_FUNCTION(NULL, "header", &_2, 215, &_1$$3); zephir_check_call_status(); ZEPHIR_INIT_NVAR(&_1$$3); ZVAL_STRING(&_1$$3, "X-Wf-Structure-1: http://meta.firephp.org/Wildfire/Structure/FirePHP/FirebugConsole/0.1"); - ZEPHIR_CALL_FUNCTION(NULL, "header", &_2, 247, &_1$$3); + ZEPHIR_CALL_FUNCTION(NULL, "header", &_2, 215, &_1$$3); zephir_check_call_status(); if (1) { zephir_update_property_zval(this_ptr, SL("_initialized"), &__$true); @@ -81034,7 +79550,7 @@ static PHP_METHOD(Phalcon_Logger_Adapter_Firephp, logInternal) { ZEPHIR_CALL_METHOD(&format, &_3, "format", NULL, 0, &message, &_4, &_5, &context); zephir_check_call_status(); ZVAL_LONG(&_4, 4500); - ZEPHIR_CALL_FUNCTION(&chunk, "str_split", NULL, 71, &format, &_4); + ZEPHIR_CALL_FUNCTION(&chunk, "str_split", NULL, 65, &format, &_4); zephir_check_call_status(); ZEPHIR_OBS_VAR(&index); zephir_read_property(&index, this_ptr, SL("_index"), PH_NOISY_CC); @@ -81055,7 +79571,7 @@ static PHP_METHOD(Phalcon_Logger_Adapter_Firephp, logInternal) { if (zephir_array_isset_long(&chunk, (zephir_get_numberval(&key) + 1))) { zephir_concat_self_str(&content, SL("|\\") TSRMLS_CC); } - ZEPHIR_CALL_FUNCTION(NULL, "header", &_2, 247, &content); + ZEPHIR_CALL_FUNCTION(NULL, "header", &_2, 215, &content); zephir_check_call_status(); ZEPHIR_SEPARATE(&index); zephir_increment(&index); @@ -81114,11 +79630,11 @@ static PHP_METHOD(Phalcon_Logger_Adapter_Stream, __construct) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &name_param, &options); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(&name, name_param); } else { ZEPHIR_INIT_VAR(&name); @@ -81140,14 +79656,14 @@ static PHP_METHOD(Phalcon_Logger_Adapter_Stream, __construct) { ZEPHIR_INIT_NVAR(&mode); ZVAL_STRING(&mode, "ab"); } - ZEPHIR_CALL_FUNCTION(&stream, "fopen", NULL, 295, &name, &mode); + ZEPHIR_CALL_FUNCTION(&stream, "fopen", NULL, 263, &name, &mode); zephir_check_call_status(); if (!(zephir_is_true(&stream))) { ZEPHIR_INIT_VAR(&_0$$6); object_init_ex(&_0$$6, phalcon_logger_exception_ce); ZEPHIR_INIT_VAR(&_1$$6); ZEPHIR_CONCAT_SVS(&_1$$6, "Can't open stream '", &name, "'"); - ZEPHIR_CALL_METHOD(NULL, &_0$$6, "__construct", NULL, 9, &_1$$6); + ZEPHIR_CALL_METHOD(NULL, &_0$$6, "__construct", NULL, 4, &_1$$6); zephir_check_call_status(); zephir_throw_exception_debug(&_0$$6, "phalcon/logger/adapter/stream.zep", 76 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -81174,7 +79690,7 @@ static PHP_METHOD(Phalcon_Logger_Adapter_Stream, getFormatter) { if (Z_TYPE_P(&_0) != IS_OBJECT) { ZEPHIR_INIT_VAR(&_1$$3); object_init_ex(&_1$$3, phalcon_logger_formatter_line_ce); - ZEPHIR_CALL_METHOD(NULL, &_1$$3, "__construct", NULL, 299); + ZEPHIR_CALL_METHOD(NULL, &_1$$3, "__construct", NULL, 267); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_formatter"), &_1$$3); } @@ -81291,7 +79807,7 @@ static PHP_METHOD(Phalcon_Logger_Adapter_Syslog, __construct) { ZEPHIR_INIT_NVAR(&facility); ZVAL_LONG(&facility, 8); } - ZEPHIR_CALL_FUNCTION(NULL, "openlog", NULL, 300, name, &option, &facility); + ZEPHIR_CALL_FUNCTION(NULL, "openlog", NULL, 268, name, &option, &facility); zephir_check_call_status(); if (1) { zephir_update_property_zval(this_ptr, SL("_opened"), &__$true); @@ -81367,7 +79883,7 @@ static PHP_METHOD(Phalcon_Logger_Adapter_Syslog, logInternal) { } zephir_array_fetch_long(&_3, &appliedFormat, 0, PH_NOISY | PH_READONLY, "phalcon/logger/adapter/syslog.zep", 104 TSRMLS_CC); zephir_array_fetch_long(&_4, &appliedFormat, 1, PH_NOISY | PH_READONLY, "phalcon/logger/adapter/syslog.zep", 104 TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(NULL, "syslog", NULL, 301, &_3, &_4); + ZEPHIR_CALL_FUNCTION(NULL, "syslog", NULL, 269, &_3, &_4); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -81387,7 +79903,7 @@ static PHP_METHOD(Phalcon_Logger_Adapter_Syslog, close) { if (!(zephir_is_true(&_0))) { RETURN_MM_BOOL(1); } - ZEPHIR_RETURN_CALL_FUNCTION("closelog", NULL, 302); + ZEPHIR_RETURN_CALL_FUNCTION("closelog", NULL, 270); zephir_check_call_status(); RETURN_MM(); @@ -81582,10 +80098,10 @@ static PHP_METHOD(Phalcon_Logger_Formatter_Firephp, format) { if (zephir_is_true(&_2)) { ZEPHIR_INIT_VAR(¶m$$4); ZVAL_LONG(¶m$$4, 2); - ZEPHIR_CALL_FUNCTION(&backtrace, "debug_backtrace", NULL, 157, ¶m$$4); + ZEPHIR_CALL_FUNCTION(&backtrace, "debug_backtrace", NULL, 144, ¶m$$4); zephir_check_call_status(); ZEPHIR_MAKE_REF(&backtrace); - ZEPHIR_CALL_FUNCTION(&lastTrace, "end", NULL, 177, &backtrace); + ZEPHIR_CALL_FUNCTION(&lastTrace, "end", NULL, 160, &backtrace); ZEPHIR_UNREF(&backtrace); zephir_check_call_status(); if (zephir_array_isset_string(&lastTrace, SL("file"))) { @@ -81883,7 +80399,7 @@ static PHP_METHOD(Phalcon_Logger_Formatter_Line, format) { ZEPHIR_INIT_VAR(&_0$$3); zephir_read_property(&_1$$3, this_ptr, SL("_dateFormat"), PH_NOISY_CC | PH_READONLY); ZVAL_LONG(&_2$$3, timestamp); - ZEPHIR_CALL_FUNCTION(&_3$$3, "date", NULL, 303, &_1$$3, &_2$$3); + ZEPHIR_CALL_FUNCTION(&_3$$3, "date", NULL, 271, &_1$$3, &_2$$3); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_4$$3); ZVAL_STRING(&_4$$3, "%date%"); @@ -82199,7 +80715,7 @@ static PHP_METHOD(Phalcon_Mvc_Application, handle) { object_init_ex(&_13$$21, phalcon_mvc_application_exception_ce); ZEPHIR_INIT_VAR(&_14$$21); ZEPHIR_CONCAT_SVS(&_14$$21, "Module definition path '", &path, "' doesn't exist"); - ZEPHIR_CALL_METHOD(NULL, &_13$$21, "__construct", NULL, 9, &_14$$21); + ZEPHIR_CALL_METHOD(NULL, &_13$$21, "__construct", NULL, 4, &_14$$21); zephir_check_call_status(); zephir_throw_exception_debug(&_13$$21, "phalcon/mvc/application.zep", 217 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -82468,7 +80984,7 @@ static PHP_METHOD(Phalcon_Mvc_Collection, __construct) { if (Z_TYPE_P(dependencyInjector) != IS_OBJECT) { - ZEPHIR_CALL_CE_STATIC(dependencyInjector, phalcon_di_ce, "getdefault", &_0, 1); + ZEPHIR_CALL_CE_STATIC(dependencyInjector, phalcon_di_ce, "getdefault", &_0, 0); zephir_check_call_status(); } if (Z_TYPE_P(dependencyInjector) != IS_OBJECT) { @@ -82681,11 +81197,11 @@ static PHP_METHOD(Phalcon_Mvc_Collection, setSource) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &source_param); - if (unlikely(Z_TYPE_P(source_param) != IS_STRING && Z_TYPE_P(source_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(source_param) != IS_STRING && Z_TYPE_P(source_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'source' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(source_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(source_param) == IS_STRING)) { zephir_get_strval(&source, source_param); } else { ZEPHIR_INIT_VAR(&source); @@ -82736,11 +81252,11 @@ static PHP_METHOD(Phalcon_Mvc_Collection, setConnectionService) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &connectionService_param); - if (unlikely(Z_TYPE_P(connectionService_param) != IS_STRING && Z_TYPE_P(connectionService_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(connectionService_param) != IS_STRING && Z_TYPE_P(connectionService_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'connectionService' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(connectionService_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(connectionService_param) == IS_STRING)) { zephir_get_strval(&connectionService, connectionService_param); } else { ZEPHIR_INIT_VAR(&connectionService); @@ -82808,11 +81324,11 @@ static PHP_METHOD(Phalcon_Mvc_Collection, readAttribute) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &attribute_param); - if (unlikely(Z_TYPE_P(attribute_param) != IS_STRING && Z_TYPE_P(attribute_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(attribute_param) != IS_STRING && Z_TYPE_P(attribute_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'attribute' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(attribute_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(attribute_param) == IS_STRING)) { zephir_get_strval(&attribute, attribute_param); } else { ZEPHIR_INIT_VAR(&attribute); @@ -82956,7 +81472,7 @@ static PHP_METHOD(Phalcon_Mvc_Collection, _getResultset) { object_init_ex(&_3$$4, phalcon_mvc_collection_exception_ce); ZEPHIR_INIT_VAR(&_4$$4); ZEPHIR_CONCAT_SVS(&_4$$4, "Object of class '", &className, "' must be an implementation of Phalcon\\Mvc\\CollectionInterface or an instance of Phalcon\\Mvc\\Collection\\Document"); - ZEPHIR_CALL_METHOD(NULL, &_3$$4, "__construct", NULL, 9, &_4$$4); + ZEPHIR_CALL_METHOD(NULL, &_3$$4, "__construct", NULL, 4, &_4$$4); zephir_check_call_status(); zephir_throw_exception_debug(&_3$$4, "phalcon/mvc/collection.zep", 362 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -83031,7 +81547,7 @@ static PHP_METHOD(Phalcon_Mvc_Collection, _getResultset) { } ZEPHIR_INIT_VAR(&collections); array_init(&collections); - ZEPHIR_CALL_FUNCTION(&_6, "iterator_to_array", NULL, 304, &documentsCursor, &__$false); + ZEPHIR_CALL_FUNCTION(&_6, "iterator_to_array", NULL, 272, &documentsCursor, &__$false); zephir_check_call_status(); zephir_is_iterable(&_6, 0, "phalcon/mvc/collection.zep", 457); ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&_6), _7) @@ -83340,7 +81856,7 @@ static PHP_METHOD(Phalcon_Mvc_Collection, validate) { zephir_check_call_status(); ZEPHIR_CALL_METHOD(&_9$$8, &message, "gettype", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, &_6$$8, "__construct", &_10, 8, &_7$$8, &_8$$8, &_9$$8); + ZEPHIR_CALL_METHOD(NULL, &_6$$8, "__construct", &_10, 3, &_7$$8, &_8$$8, &_9$$8); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, this_ptr, "appendmessage", &_11, 0, &_6$$8); zephir_check_call_status(); @@ -83384,11 +81900,11 @@ static PHP_METHOD(Phalcon_Mvc_Collection, fireEvent) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &eventName_param); - if (unlikely(Z_TYPE_P(eventName_param) != IS_STRING && Z_TYPE_P(eventName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(eventName_param) != IS_STRING && Z_TYPE_P(eventName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'eventName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(eventName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(eventName_param) == IS_STRING)) { zephir_get_strval(&eventName, eventName_param); } else { ZEPHIR_INIT_VAR(&eventName); @@ -83422,11 +81938,11 @@ static PHP_METHOD(Phalcon_Mvc_Collection, fireEventCancel) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &eventName_param); - if (unlikely(Z_TYPE_P(eventName_param) != IS_STRING && Z_TYPE_P(eventName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(eventName_param) != IS_STRING && Z_TYPE_P(eventName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'eventName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(eventName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(eventName_param) == IS_STRING)) { zephir_get_strval(&eventName, eventName_param); } else { ZEPHIR_INIT_VAR(&eventName); @@ -83654,7 +82170,7 @@ static PHP_METHOD(Phalcon_Mvc_Collection, save) { zephir_update_property_zval(this_ptr, SL("_errorMessages"), &_2); zephir_read_property(&_4, this_ptr, SL("_dependencyInjector"), PH_NOISY_CC | PH_READONLY); zephir_read_static_property_ce(&_5, phalcon_mvc_collection_ce, SL("_disableEvents"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_METHOD(&_3, this_ptr, "_presave", NULL, 305, &_4, &_5, &exists); + ZEPHIR_CALL_METHOD(&_3, this_ptr, "_presave", NULL, 273, &_4, &_5, &exists); zephir_check_call_status(); if (ZEPHIR_IS_FALSE_IDENTICAL(&_3)) { RETURN_MM_BOOL(0); @@ -83690,7 +82206,7 @@ static PHP_METHOD(Phalcon_Mvc_Collection, save) { } else { ZVAL_BOOL(&_9, 0); } - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_postsave", NULL, 306, &_8, &_9, &exists); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_postsave", NULL, 274, &_8, &_9, &exists); zephir_check_call_status(); RETURN_MM(); @@ -83739,7 +82255,7 @@ static PHP_METHOD(Phalcon_Mvc_Collection, create) { } else { ZVAL_BOOL(&_4, 0); } - ZEPHIR_CALL_METHOD(&_2, this_ptr, "_presave", NULL, 305, &_0, &_3, &_4); + ZEPHIR_CALL_METHOD(&_2, this_ptr, "_presave", NULL, 273, &_0, &_3, &_4); zephir_check_call_status(); if (ZEPHIR_IS_FALSE_IDENTICAL(&_2)) { RETURN_MM_BOOL(0); @@ -83780,7 +82296,7 @@ static PHP_METHOD(Phalcon_Mvc_Collection, create) { } else { ZVAL_BOOL(&_9, 0); } - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_postsave", NULL, 306, &_7, &_8, &_9); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_postsave", NULL, 274, &_7, &_8, &_9); zephir_check_call_status(); RETURN_MM(); @@ -83845,22 +82361,22 @@ static PHP_METHOD(Phalcon_Mvc_Collection, createIfNotExist) { } else { ZVAL_BOOL(&_4, 0); } - ZEPHIR_CALL_METHOD(&_2, this_ptr, "_presave", NULL, 305, &_0, &_3, &_4); + ZEPHIR_CALL_METHOD(&_2, this_ptr, "_presave", NULL, 273, &_0, &_3, &_4); zephir_check_call_status(); if (ZEPHIR_IS_FALSE_IDENTICAL(&_2)) { RETURN_MM_BOOL(0); } - ZEPHIR_CALL_FUNCTION(&keys, "array_flip", NULL, 307, &criteria); + ZEPHIR_CALL_FUNCTION(&keys, "array_flip", NULL, 275, &criteria); zephir_check_call_status(); ZEPHIR_CALL_METHOD(&data, this_ptr, "toarray", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_5, "array_diff_key", NULL, 308, &keys, &data); + ZEPHIR_CALL_FUNCTION(&_5, "array_diff_key", NULL, 276, &keys, &data); zephir_check_call_status(); if (zephir_is_true(&_5)) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_collection_exception_ce, "Criteria parameter must be array with one or more attributes of the model", "phalcon/mvc/collection.zep", 1134); return; } - ZEPHIR_CALL_FUNCTION(&query, "array_intersect_key", NULL, 309, &data, &keys); + ZEPHIR_CALL_FUNCTION(&query, "array_intersect_key", NULL, 277, &data, &keys); zephir_check_call_status(); success = 0; ZEPHIR_INIT_VAR(&_6); @@ -83889,7 +82405,7 @@ static PHP_METHOD(Phalcon_Mvc_Collection, createIfNotExist) { object_init_ex(&_11$$8, phalcon_mvc_model_message_ce); ZEPHIR_INIT_VAR(&_12$$8); ZVAL_STRING(&_12$$8, "Document already exists"); - ZEPHIR_CALL_METHOD(NULL, &_11$$8, "__construct", NULL, 8, &_12$$8); + ZEPHIR_CALL_METHOD(NULL, &_11$$8, "__construct", NULL, 3, &_12$$8); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, this_ptr, "appendmessage", NULL, 0, &_11$$8); zephir_check_call_status(); @@ -83905,7 +82421,7 @@ static PHP_METHOD(Phalcon_Mvc_Collection, createIfNotExist) { } else { ZVAL_BOOL(&_14, 0); } - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_postsave", NULL, 306, &_8, &_13, &_14); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_postsave", NULL, 274, &_8, &_13, &_14); zephir_check_call_status(); RETURN_MM(); @@ -83953,7 +82469,7 @@ static PHP_METHOD(Phalcon_Mvc_Collection, update) { zephir_update_property_zval(this_ptr, SL("_errorMessages"), &_1); zephir_read_property(&_0, this_ptr, SL("_dependencyInjector"), PH_NOISY_CC | PH_READONLY); zephir_read_static_property_ce(&_3, phalcon_mvc_collection_ce, SL("_disableEvents"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_METHOD(&_2, this_ptr, "_presave", NULL, 305, &_0, &_3, &exists); + ZEPHIR_CALL_METHOD(&_2, this_ptr, "_presave", NULL, 273, &_0, &_3, &exists); zephir_check_call_status(); if (ZEPHIR_IS_FALSE_IDENTICAL(&_2)) { RETURN_MM_BOOL(0); @@ -83987,7 +82503,7 @@ static PHP_METHOD(Phalcon_Mvc_Collection, update) { } else { ZVAL_BOOL(&_8, 0); } - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_postsave", NULL, 306, &_7, &_8, &exists); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_postsave", NULL, 274, &_7, &_8, &exists); zephir_check_call_status(); RETURN_MM(); @@ -84283,11 +82799,11 @@ static PHP_METHOD(Phalcon_Mvc_Collection, summatory) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &field_param, &conditions, &finalize); - if (unlikely(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'field' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(field_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(field_param) == IS_STRING)) { zephir_get_strval(&field, field_param); } else { ZEPHIR_INIT_VAR(&field); @@ -84551,7 +83067,7 @@ static PHP_METHOD(Phalcon_Mvc_Collection, toArray) { zephir_check_call_status(); ZEPHIR_INIT_VAR(&data); array_init(&data); - ZEPHIR_CALL_FUNCTION(&_0, "get_object_vars", NULL, 21, this_ptr); + ZEPHIR_CALL_FUNCTION(&_0, "get_object_vars", NULL, 16, this_ptr); zephir_check_call_status(); zephir_is_iterable(&_0, 0, "phalcon/mvc/collection.zep", 1633); ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&_0), _2, _3, _1) @@ -84592,7 +83108,7 @@ static PHP_METHOD(Phalcon_Mvc_Collection, serialize) { ZEPHIR_CALL_METHOD(&_0, this_ptr, "toarray", NULL, 0); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_FUNCTION("serialize", NULL, 65, &_0); + ZEPHIR_RETURN_CALL_FUNCTION("serialize", NULL, 59, &_0); zephir_check_call_status(); RETURN_MM(); @@ -84619,11 +83135,11 @@ static PHP_METHOD(Phalcon_Mvc_Collection, unserialize) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &data_param); - if (unlikely(Z_TYPE_P(data_param) != IS_STRING && Z_TYPE_P(data_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(data_param) != IS_STRING && Z_TYPE_P(data_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'data' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(data_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(data_param) == IS_STRING)) { zephir_get_strval(&data, data_param); } else { ZEPHIR_INIT_VAR(&data); @@ -84631,10 +83147,10 @@ static PHP_METHOD(Phalcon_Mvc_Collection, unserialize) { } - ZEPHIR_CALL_FUNCTION(&attributes, "unserialize", NULL, 66, &data); + ZEPHIR_CALL_FUNCTION(&attributes, "unserialize", NULL, 60, &data); zephir_check_call_status(); if (Z_TYPE_P(&attributes) == IS_ARRAY) { - ZEPHIR_CALL_CE_STATIC(&dependencyInjector, phalcon_di_ce, "getdefault", &_0, 1); + ZEPHIR_CALL_CE_STATIC(&dependencyInjector, phalcon_di_ce, "getdefault", &_0, 0); zephir_check_call_status(); if (Z_TYPE_P(&dependencyInjector) != IS_OBJECT) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_collection_exception_ce, "A dependency injector container is required to obtain the services related to the ODM", "phalcon/mvc/collection.zep", 1662); @@ -84840,11 +83356,11 @@ static PHP_METHOD(Phalcon_Mvc_Dispatcher, setControllerSuffix) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &controllerSuffix_param); - if (unlikely(Z_TYPE_P(controllerSuffix_param) != IS_STRING && Z_TYPE_P(controllerSuffix_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(controllerSuffix_param) != IS_STRING && Z_TYPE_P(controllerSuffix_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'controllerSuffix' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(controllerSuffix_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(controllerSuffix_param) == IS_STRING)) { zephir_get_strval(&controllerSuffix, controllerSuffix_param); } else { ZEPHIR_INIT_VAR(&controllerSuffix); @@ -84868,11 +83384,11 @@ static PHP_METHOD(Phalcon_Mvc_Dispatcher, setDefaultController) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &controllerName_param); - if (unlikely(Z_TYPE_P(controllerName_param) != IS_STRING && Z_TYPE_P(controllerName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(controllerName_param) != IS_STRING && Z_TYPE_P(controllerName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'controllerName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(controllerName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(controllerName_param) == IS_STRING)) { zephir_get_strval(&controllerName, controllerName_param); } else { ZEPHIR_INIT_VAR(&controllerName); @@ -84896,11 +83412,11 @@ static PHP_METHOD(Phalcon_Mvc_Dispatcher, setControllerName) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &controllerName_param); - if (unlikely(Z_TYPE_P(controllerName_param) != IS_STRING && Z_TYPE_P(controllerName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(controllerName_param) != IS_STRING && Z_TYPE_P(controllerName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'controllerName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(controllerName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(controllerName_param) == IS_STRING)) { zephir_get_strval(&controllerName, controllerName_param); } else { ZEPHIR_INIT_VAR(&controllerName); @@ -84970,11 +83486,11 @@ static PHP_METHOD(Phalcon_Mvc_Dispatcher, _throwDispatchException) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &message_param, &exceptionCode_param); - if (unlikely(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'message' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(message_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(message_param) == IS_STRING)) { zephir_get_strval(&message, message_param); } else { ZEPHIR_INIT_VAR(&message); @@ -84995,7 +83511,7 @@ static PHP_METHOD(Phalcon_Mvc_Dispatcher, _throwDispatchException) { ZEPHIR_INIT_VAR(&_1$$3); ZVAL_STRING(&_1$$3, "A dependency injection container is required to access the 'response' service"); ZVAL_LONG(&_2$$3, 0); - ZEPHIR_CALL_METHOD(NULL, &_0$$3, "__construct", NULL, 9, &_1$$3, &_2$$3); + ZEPHIR_CALL_METHOD(NULL, &_0$$3, "__construct", NULL, 4, &_1$$3, &_2$$3); zephir_check_call_status(); zephir_throw_exception_debug(&_0$$3, "phalcon/mvc/dispatcher.zep", 127 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -85014,7 +83530,7 @@ static PHP_METHOD(Phalcon_Mvc_Dispatcher, _throwDispatchException) { ZEPHIR_INIT_VAR(&exception); object_init_ex(&exception, phalcon_mvc_dispatcher_exception_ce); ZVAL_LONG(&_5, exceptionCode); - ZEPHIR_CALL_METHOD(NULL, &exception, "__construct", NULL, 9, &message, &_5); + ZEPHIR_CALL_METHOD(NULL, &exception, "__construct", NULL, 4, &message, &_5); zephir_check_call_status(); ZEPHIR_CALL_METHOD(&_3, this_ptr, "_handleexception", NULL, 0, &exception); zephir_check_call_status(); @@ -85266,11 +83782,11 @@ static PHP_METHOD(Phalcon_Mvc_Micro, map) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &routePattern_param, &handler); - if (unlikely(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'routePattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(routePattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(routePattern_param) == IS_STRING)) { zephir_get_strval(&routePattern, routePattern_param); } else { ZEPHIR_INIT_VAR(&routePattern); @@ -85305,11 +83821,11 @@ static PHP_METHOD(Phalcon_Mvc_Micro, get) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &routePattern_param, &handler); - if (unlikely(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'routePattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(routePattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(routePattern_param) == IS_STRING)) { zephir_get_strval(&routePattern, routePattern_param); } else { ZEPHIR_INIT_VAR(&routePattern); @@ -85344,11 +83860,11 @@ static PHP_METHOD(Phalcon_Mvc_Micro, post) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &routePattern_param, &handler); - if (unlikely(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'routePattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(routePattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(routePattern_param) == IS_STRING)) { zephir_get_strval(&routePattern, routePattern_param); } else { ZEPHIR_INIT_VAR(&routePattern); @@ -85383,11 +83899,11 @@ static PHP_METHOD(Phalcon_Mvc_Micro, put) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &routePattern_param, &handler); - if (unlikely(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'routePattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(routePattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(routePattern_param) == IS_STRING)) { zephir_get_strval(&routePattern, routePattern_param); } else { ZEPHIR_INIT_VAR(&routePattern); @@ -85422,11 +83938,11 @@ static PHP_METHOD(Phalcon_Mvc_Micro, patch) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &routePattern_param, &handler); - if (unlikely(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'routePattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(routePattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(routePattern_param) == IS_STRING)) { zephir_get_strval(&routePattern, routePattern_param); } else { ZEPHIR_INIT_VAR(&routePattern); @@ -85461,11 +83977,11 @@ static PHP_METHOD(Phalcon_Mvc_Micro, head) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &routePattern_param, &handler); - if (unlikely(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'routePattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(routePattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(routePattern_param) == IS_STRING)) { zephir_get_strval(&routePattern, routePattern_param); } else { ZEPHIR_INIT_VAR(&routePattern); @@ -85500,11 +84016,11 @@ static PHP_METHOD(Phalcon_Mvc_Micro, delete) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &routePattern_param, &handler); - if (unlikely(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'routePattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(routePattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(routePattern_param) == IS_STRING)) { zephir_get_strval(&routePattern, routePattern_param); } else { ZEPHIR_INIT_VAR(&routePattern); @@ -85539,11 +84055,11 @@ static PHP_METHOD(Phalcon_Mvc_Micro, options) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &routePattern_param, &handler); - if (unlikely(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'routePattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(routePattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(routePattern_param) == IS_STRING)) { zephir_get_strval(&routePattern, routePattern_param); } else { ZEPHIR_INIT_VAR(&routePattern); @@ -85608,7 +84124,7 @@ static PHP_METHOD(Phalcon_Mvc_Micro, mount) { if (zephir_is_true(&_0$$5)) { ZEPHIR_INIT_VAR(&lazyHandler); object_init_ex(&lazyHandler, phalcon_mvc_micro_lazyloader_ce); - ZEPHIR_CALL_METHOD(NULL, &lazyHandler, "__construct", NULL, 310, &mainHandler); + ZEPHIR_CALL_METHOD(NULL, &lazyHandler, "__construct", NULL, 278, &mainHandler); zephir_check_call_status(); } else { ZEPHIR_CPY_WRT(&lazyHandler, &mainHandler); @@ -85749,11 +84265,11 @@ static PHP_METHOD(Phalcon_Mvc_Micro, setService) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 1, &serviceName_param, &definition, &shared_param); - if (unlikely(Z_TYPE_P(serviceName_param) != IS_STRING && Z_TYPE_P(serviceName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(serviceName_param) != IS_STRING && Z_TYPE_P(serviceName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'serviceName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(serviceName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(serviceName_param) == IS_STRING)) { zephir_get_strval(&serviceName, serviceName_param); } else { ZEPHIR_INIT_VAR(&serviceName); @@ -85771,7 +84287,7 @@ static PHP_METHOD(Phalcon_Mvc_Micro, setService) { if (Z_TYPE_P(&dependencyInjector) != IS_OBJECT) { ZEPHIR_INIT_NVAR(&dependencyInjector); object_init_ex(&dependencyInjector, phalcon_di_factorydefault_ce); - ZEPHIR_CALL_METHOD(NULL, &dependencyInjector, "__construct", NULL, 181); + ZEPHIR_CALL_METHOD(NULL, &dependencyInjector, "__construct", NULL, 279); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_dependencyInjector"), &dependencyInjector); } @@ -85780,7 +84296,7 @@ static PHP_METHOD(Phalcon_Mvc_Micro, setService) { } else { ZVAL_BOOL(&_0, 0); } - ZEPHIR_RETURN_CALL_METHOD(&dependencyInjector, "set", NULL, 311, &serviceName, definition, &_0); + ZEPHIR_RETURN_CALL_METHOD(&dependencyInjector, "set", NULL, 280, &serviceName, definition, &_0); zephir_check_call_status(); RETURN_MM(); @@ -85799,11 +84315,11 @@ static PHP_METHOD(Phalcon_Mvc_Micro, hasService) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &serviceName_param); - if (unlikely(Z_TYPE_P(serviceName_param) != IS_STRING && Z_TYPE_P(serviceName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(serviceName_param) != IS_STRING && Z_TYPE_P(serviceName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'serviceName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(serviceName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(serviceName_param) == IS_STRING)) { zephir_get_strval(&serviceName, serviceName_param); } else { ZEPHIR_INIT_VAR(&serviceName); @@ -85816,11 +84332,11 @@ static PHP_METHOD(Phalcon_Mvc_Micro, hasService) { if (Z_TYPE_P(&dependencyInjector) != IS_OBJECT) { ZEPHIR_INIT_NVAR(&dependencyInjector); object_init_ex(&dependencyInjector, phalcon_di_factorydefault_ce); - ZEPHIR_CALL_METHOD(NULL, &dependencyInjector, "__construct", NULL, 181); + ZEPHIR_CALL_METHOD(NULL, &dependencyInjector, "__construct", NULL, 279); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_dependencyInjector"), &dependencyInjector); } - ZEPHIR_RETURN_CALL_METHOD(&dependencyInjector, "has", NULL, 312, &serviceName); + ZEPHIR_RETURN_CALL_METHOD(&dependencyInjector, "has", NULL, 281, &serviceName); zephir_check_call_status(); RETURN_MM(); @@ -85839,11 +84355,11 @@ static PHP_METHOD(Phalcon_Mvc_Micro, getService) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &serviceName_param); - if (unlikely(Z_TYPE_P(serviceName_param) != IS_STRING && Z_TYPE_P(serviceName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(serviceName_param) != IS_STRING && Z_TYPE_P(serviceName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'serviceName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(serviceName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(serviceName_param) == IS_STRING)) { zephir_get_strval(&serviceName, serviceName_param); } else { ZEPHIR_INIT_VAR(&serviceName); @@ -85856,11 +84372,11 @@ static PHP_METHOD(Phalcon_Mvc_Micro, getService) { if (Z_TYPE_P(&dependencyInjector) != IS_OBJECT) { ZEPHIR_INIT_NVAR(&dependencyInjector); object_init_ex(&dependencyInjector, phalcon_di_factorydefault_ce); - ZEPHIR_CALL_METHOD(NULL, &dependencyInjector, "__construct", NULL, 181); + ZEPHIR_CALL_METHOD(NULL, &dependencyInjector, "__construct", NULL, 279); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_dependencyInjector"), &dependencyInjector); } - ZEPHIR_RETURN_CALL_METHOD(&dependencyInjector, "get", NULL, 313, &serviceName); + ZEPHIR_RETURN_CALL_METHOD(&dependencyInjector, "get", NULL, 282, &serviceName); zephir_check_call_status(); RETURN_MM(); @@ -85885,11 +84401,11 @@ static PHP_METHOD(Phalcon_Mvc_Micro, getSharedService) { if (Z_TYPE_P(&dependencyInjector) != IS_OBJECT) { ZEPHIR_INIT_NVAR(&dependencyInjector); object_init_ex(&dependencyInjector, phalcon_di_factorydefault_ce); - ZEPHIR_CALL_METHOD(NULL, &dependencyInjector, "__construct", NULL, 181); + ZEPHIR_CALL_METHOD(NULL, &dependencyInjector, "__construct", NULL, 279); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_dependencyInjector"), &dependencyInjector); } - ZEPHIR_RETURN_CALL_METHOD(&dependencyInjector, "getshared", NULL, 314, serviceName); + ZEPHIR_RETURN_CALL_METHOD(&dependencyInjector, "getshared", NULL, 283, serviceName); zephir_check_call_status(); RETURN_MM(); @@ -85897,11 +84413,11 @@ static PHP_METHOD(Phalcon_Mvc_Micro, getSharedService) { static PHP_METHOD(Phalcon_Mvc_Micro, handle) { - zval _50$$59; + zval _51$$59; zend_class_entry *_18$$20; zend_bool _16$$7, _24$$7, _21$$24, _28$$31; int ZEPHIR_LAST_CALL_STATUS; - zval *uri = NULL, uri_sub, __$true, __$false, __$null, dependencyInjector, eventsManager, status, router, matchedRoute, handler, beforeHandlers, params, returnedValue, e, errorHandler, afterHandlers, notFoundHandler, finishHandlers, finish, before, after, response, modelBinder, bindCacheKey, routeName, realHandler, methodName, lazyReturned, afterBindingHandlers, afterBinding, _0$$5, _1$$5, _2$$4, _3$$4, _4$$7, _5$$7, _6$$8, _7$$8, _8$$9, _9$$9, *_10$$12, _11$$15, _12$$17, _13$$17, _14$$13, _15$$13, _17$$20, _19$$23, _20$$21, _22$$25, _23$$25, _25$$28, _26$$28, *_27$$30, _32$$31, _33$$31, _29$$32, _30$$34, _31$$34, _34$$37, *_35$$38, _36$$41, _37$$43, _38$$43, _39$$45, _40$$45, _41$$47, _42$$47, _43$$48, *_44$$49, _45$$52, _46$$54, _47$$54, _48$$50, _49$$58, _51$$67, _52$$67; + zval *uri = NULL, uri_sub, __$true, __$false, __$null, dependencyInjector, eventsManager, status, router, matchedRoute, handler, beforeHandlers, params, returnedValue, e, errorHandler, afterHandlers, notFoundHandler, finishHandlers, finish, before, after, response, modelBinder, bindCacheKey, routeName, realHandler, methodName, lazyReturned, afterBindingHandlers, afterBinding, _49, _0$$5, _1$$5, _2$$4, _3$$4, _4$$7, _5$$7, _6$$8, _7$$8, _8$$9, _9$$9, *_10$$12, _11$$15, _12$$17, _13$$17, _14$$13, _15$$13, _17$$20, _19$$23, _20$$21, _22$$25, _23$$25, _25$$28, _26$$28, *_27$$30, _32$$31, _33$$31, _29$$32, _30$$34, _31$$34, _34$$37, *_35$$38, _36$$41, _37$$43, _38$$43, _39$$45, _40$$45, _41$$47, _42$$47, _43$$48, *_44$$49, _45$$52, _46$$54, _47$$54, _48$$50, _50$$58, _52$$67, _53$$67; ZEPHIR_INIT_THIS(); ZVAL_UNDEF(&uri_sub); @@ -85934,6 +84450,7 @@ static PHP_METHOD(Phalcon_Mvc_Micro, handle) { ZVAL_UNDEF(&lazyReturned); ZVAL_UNDEF(&afterBindingHandlers); ZVAL_UNDEF(&afterBinding); + ZVAL_UNDEF(&_49); ZVAL_UNDEF(&_0$$5); ZVAL_UNDEF(&_1$$5); ZVAL_UNDEF(&_2$$4); @@ -85974,10 +84491,10 @@ static PHP_METHOD(Phalcon_Mvc_Micro, handle) { ZVAL_UNDEF(&_46$$54); ZVAL_UNDEF(&_47$$54); ZVAL_UNDEF(&_48$$50); - ZVAL_UNDEF(&_49$$58); - ZVAL_UNDEF(&_51$$67); + ZVAL_UNDEF(&_50$$58); ZVAL_UNDEF(&_52$$67); - ZVAL_UNDEF(&_50$$59); + ZVAL_UNDEF(&_53$$67); + ZVAL_UNDEF(&_51$$59); ZEPHIR_MM_GROW(); zephir_fetch_params(1, 0, 1, &uri); @@ -86033,7 +84550,7 @@ static PHP_METHOD(Phalcon_Mvc_Micro, handle) { object_init_ex(&_6$$8, phalcon_mvc_micro_exception_ce); ZEPHIR_INIT_VAR(&_7$$8); ZVAL_STRING(&_7$$8, "Matched route doesn't have an associated handler"); - ZEPHIR_CALL_METHOD(NULL, &_6$$8, "__construct", NULL, 9, &_7$$8); + ZEPHIR_CALL_METHOD(NULL, &_6$$8, "__construct", NULL, 4, &_7$$8); zephir_check_call_status_or_jump(try_end_1); zephir_throw_exception_debug(&_6$$8, "phalcon/mvc/micro.zep", 629 TSRMLS_CC); goto try_end_1; @@ -86081,7 +84598,7 @@ static PHP_METHOD(Phalcon_Mvc_Micro, handle) { object_init_ex(&_12$$17, phalcon_mvc_micro_exception_ce); ZEPHIR_INIT_NVAR(&_13$$17); ZVAL_STRING(&_13$$17, "'before' handler is not callable"); - ZEPHIR_CALL_METHOD(NULL, &_12$$17, "__construct", NULL, 9, &_13$$17); + ZEPHIR_CALL_METHOD(NULL, &_12$$17, "__construct", NULL, 4, &_13$$17); zephir_check_call_status_or_jump(try_end_1); zephir_throw_exception_debug(&_12$$17, "phalcon/mvc/micro.zep", 679 TSRMLS_CC); goto try_end_1; @@ -86203,7 +84720,7 @@ static PHP_METHOD(Phalcon_Mvc_Micro, handle) { object_init_ex(&_30$$34, phalcon_mvc_micro_exception_ce); ZEPHIR_INIT_NVAR(&_31$$34); ZVAL_STRING(&_31$$34, "'afterBinding' handler is not callable"); - ZEPHIR_CALL_METHOD(NULL, &_30$$34, "__construct", NULL, 9, &_31$$34); + ZEPHIR_CALL_METHOD(NULL, &_30$$34, "__construct", NULL, 4, &_31$$34); zephir_check_call_status_or_jump(try_end_1); zephir_throw_exception_debug(&_30$$34, "phalcon/mvc/micro.zep", 784 TSRMLS_CC); goto try_end_1; @@ -86258,7 +84775,7 @@ static PHP_METHOD(Phalcon_Mvc_Micro, handle) { object_init_ex(&_37$$43, phalcon_mvc_micro_exception_ce); ZEPHIR_INIT_NVAR(&_38$$43); ZVAL_STRING(&_38$$43, "One of the 'after' handlers is not callable"); - ZEPHIR_CALL_METHOD(NULL, &_37$$43, "__construct", NULL, 9, &_38$$43); + ZEPHIR_CALL_METHOD(NULL, &_37$$43, "__construct", NULL, 4, &_38$$43); zephir_check_call_status_or_jump(try_end_1); zephir_throw_exception_debug(&_37$$43, "phalcon/mvc/micro.zep", 845 TSRMLS_CC); goto try_end_1; @@ -86289,7 +84806,7 @@ static PHP_METHOD(Phalcon_Mvc_Micro, handle) { object_init_ex(&_41$$47, phalcon_mvc_micro_exception_ce); ZEPHIR_INIT_VAR(&_42$$47); ZVAL_STRING(&_42$$47, "Not-Found handler is not callable or is not defined"); - ZEPHIR_CALL_METHOD(NULL, &_41$$47, "__construct", NULL, 9, &_42$$47); + ZEPHIR_CALL_METHOD(NULL, &_41$$47, "__construct", NULL, 4, &_42$$47); zephir_check_call_status_or_jump(try_end_1); zephir_throw_exception_debug(&_41$$47, "phalcon/mvc/micro.zep", 869 TSRMLS_CC); goto try_end_1; @@ -86336,7 +84853,7 @@ static PHP_METHOD(Phalcon_Mvc_Micro, handle) { object_init_ex(&_46$$54, phalcon_mvc_micro_exception_ce); ZEPHIR_INIT_NVAR(&_47$$54); ZVAL_STRING(&_47$$54, "One of the 'finish' handlers is not callable"); - ZEPHIR_CALL_METHOD(NULL, &_46$$54, "__construct", NULL, 9, &_47$$54); + ZEPHIR_CALL_METHOD(NULL, &_46$$54, "__construct", NULL, 4, &_47$$54); zephir_check_call_status_or_jump(try_end_1); zephir_throw_exception_debug(&_46$$54, "phalcon/mvc/micro.zep", 921 TSRMLS_CC); goto try_end_1; @@ -86361,16 +84878,18 @@ static PHP_METHOD(Phalcon_Mvc_Micro, handle) { try_end_1: if (EG(exception)) { - ZVAL_OBJ(&e, EG(exception)); - Z_ADDREF_P(&e); - if (zephir_instance_of_ev(&e, zend_exception_get_default(TSRMLS_C) TSRMLS_CC)) { + ZEPHIR_INIT_VAR(&_49); + ZVAL_OBJ(&_49, EG(exception)); + Z_ADDREF_P(&_49); + if (zephir_instance_of_ev(&_49, zend_exception_get_default(TSRMLS_C) TSRMLS_CC)) { zend_clear_exception(TSRMLS_C); + ZEPHIR_CPY_WRT(&e, &_49); ZEPHIR_OBS_NVAR(&eventsManager); zephir_read_property(&eventsManager, this_ptr, SL("_eventsManager"), PH_NOISY_CC); if (Z_TYPE_P(&eventsManager) == IS_OBJECT) { - ZEPHIR_INIT_VAR(&_49$$58); - ZVAL_STRING(&_49$$58, "micro:beforeException"); - ZEPHIR_CALL_METHOD(&returnedValue, &eventsManager, "fire", NULL, 0, &_49$$58, this_ptr, &e); + ZEPHIR_INIT_VAR(&_50$$58); + ZVAL_STRING(&_50$$58, "micro:beforeException"); + ZEPHIR_CALL_METHOD(&returnedValue, &eventsManager, "fire", NULL, 0, &_50$$58, this_ptr, &e); zephir_check_call_status(); } ZEPHIR_OBS_VAR(&errorHandler); @@ -86380,11 +84899,11 @@ static PHP_METHOD(Phalcon_Mvc_Micro, handle) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_micro_exception_ce, "Error handler is not callable", "phalcon/mvc/micro.zep", 959); return; } - ZEPHIR_INIT_VAR(&_50$$59); - zephir_create_array(&_50$$59, 1, 0 TSRMLS_CC); - zephir_array_fast_append(&_50$$59, &e); + ZEPHIR_INIT_VAR(&_51$$59); + zephir_create_array(&_51$$59, 1, 0 TSRMLS_CC); + zephir_array_fast_append(&_51$$59, &e); ZEPHIR_INIT_NVAR(&returnedValue); - ZEPHIR_CALL_USER_FUNC_ARRAY(&returnedValue, &errorHandler, &_50$$59); + ZEPHIR_CALL_USER_FUNC_ARRAY(&returnedValue, &errorHandler, &_51$$59); zephir_check_call_status(); if (Z_TYPE_P(&returnedValue) == IS_OBJECT) { if (!(zephir_instance_of_ev(&returnedValue, phalcon_http_responseinterface_ce TSRMLS_CC))) { @@ -86409,11 +84928,11 @@ static PHP_METHOD(Phalcon_Mvc_Micro, handle) { } } if (Z_TYPE_P(&returnedValue) == IS_STRING) { - ZEPHIR_INIT_VAR(&_52$$67); - ZVAL_STRING(&_52$$67, "response"); - ZEPHIR_CALL_METHOD(&_51$$67, &dependencyInjector, "getshared", NULL, 0, &_52$$67); + ZEPHIR_INIT_VAR(&_53$$67); + ZVAL_STRING(&_53$$67, "response"); + ZEPHIR_CALL_METHOD(&_52$$67, &dependencyInjector, "getshared", NULL, 0, &_53$$67); zephir_check_call_status(); - ZEPHIR_CPY_WRT(&response, &_51$$67); + ZEPHIR_CPY_WRT(&response, &_52$$67); ZEPHIR_CALL_METHOD(NULL, &response, "setcontent", NULL, 0, &returnedValue); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, &response, "send", NULL, 0); @@ -86819,7 +85338,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, __construct) { if (Z_TYPE_P(dependencyInjector) != IS_OBJECT) { - ZEPHIR_CALL_CE_STATIC(dependencyInjector, phalcon_di_ce, "getdefault", &_0, 1); + ZEPHIR_CALL_CE_STATIC(dependencyInjector, phalcon_di_ce, "getdefault", &_0, 0); zephir_check_call_status(); } if (Z_TYPE_P(dependencyInjector) != IS_OBJECT) { @@ -86987,11 +85506,11 @@ static PHP_METHOD(Phalcon_Mvc_Model, setSource) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &source_param); - if (unlikely(Z_TYPE_P(source_param) != IS_STRING && Z_TYPE_P(source_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(source_param) != IS_STRING && Z_TYPE_P(source_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'source' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(source_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(source_param) == IS_STRING)) { zephir_get_strval(&source, source_param); } else { ZEPHIR_INIT_VAR(&source); @@ -87036,11 +85555,11 @@ static PHP_METHOD(Phalcon_Mvc_Model, setSchema) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &schema_param); - if (unlikely(Z_TYPE_P(schema_param) != IS_STRING && Z_TYPE_P(schema_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schema_param) != IS_STRING && Z_TYPE_P(schema_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schema' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schema_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schema_param) == IS_STRING)) { zephir_get_strval(&schema, schema_param); } else { ZEPHIR_INIT_VAR(&schema); @@ -87085,11 +85604,11 @@ static PHP_METHOD(Phalcon_Mvc_Model, setConnectionService) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &connectionService_param); - if (unlikely(Z_TYPE_P(connectionService_param) != IS_STRING && Z_TYPE_P(connectionService_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(connectionService_param) != IS_STRING && Z_TYPE_P(connectionService_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'connectionService' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(connectionService_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(connectionService_param) == IS_STRING)) { zephir_get_strval(&connectionService, connectionService_param); } else { ZEPHIR_INIT_VAR(&connectionService); @@ -87117,11 +85636,11 @@ static PHP_METHOD(Phalcon_Mvc_Model, setReadConnectionService) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &connectionService_param); - if (unlikely(Z_TYPE_P(connectionService_param) != IS_STRING && Z_TYPE_P(connectionService_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(connectionService_param) != IS_STRING && Z_TYPE_P(connectionService_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'connectionService' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(connectionService_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(connectionService_param) == IS_STRING)) { zephir_get_strval(&connectionService, connectionService_param); } else { ZEPHIR_INIT_VAR(&connectionService); @@ -87149,11 +85668,11 @@ static PHP_METHOD(Phalcon_Mvc_Model, setWriteConnectionService) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &connectionService_param); - if (unlikely(Z_TYPE_P(connectionService_param) != IS_STRING && Z_TYPE_P(connectionService_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(connectionService_param) != IS_STRING && Z_TYPE_P(connectionService_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'connectionService' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(connectionService_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(connectionService_param) == IS_STRING)) { zephir_get_strval(&connectionService, connectionService_param); } else { ZEPHIR_INIT_VAR(&connectionService); @@ -87373,7 +85892,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, assign) { object_init_ex(&_5$$13, phalcon_mvc_model_exception_ce); ZEPHIR_INIT_LNVAR(_6$$13); ZEPHIR_CONCAT_SVS(&_6$$13, "Column '", &attribute, "' doesn\\'t make part of the column map"); - ZEPHIR_CALL_METHOD(NULL, &_5$$13, "__construct", &_7, 9, &_6$$13); + ZEPHIR_CALL_METHOD(NULL, &_5$$13, "__construct", &_7, 4, &_6$$13); zephir_check_call_status(); zephir_throw_exception_debug(&_5$$13, "phalcon/mvc/model.zep", 487 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -87392,7 +85911,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, assign) { continue; } } - ZEPHIR_CALL_METHOD(&_8$$16, this_ptr, "_possiblesetter", &_9, 315, &attributeField, &value); + ZEPHIR_CALL_METHOD(&_8$$16, this_ptr, "_possiblesetter", &_9, 284, &attributeField, &value); zephir_check_call_status(); if (!(zephir_is_true(&_8$$16))) { zephir_update_property_zval_zval(this_ptr, &attributeField, &value TSRMLS_CC); @@ -87478,7 +85997,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, cloneResultMap) { object_init_ex(&_4$$7, phalcon_mvc_model_exception_ce); ZEPHIR_INIT_LNVAR(_5$$7); ZEPHIR_CONCAT_SVS(&_5$$7, "Column '", &key, "' doesn't make part of the column map"); - ZEPHIR_CALL_METHOD(NULL, &_4$$7, "__construct", &_6, 9, &_5$$7); + ZEPHIR_CALL_METHOD(NULL, &_4$$7, "__construct", &_6, 4, &_5$$7); zephir_check_call_status(); zephir_throw_exception_debug(&_4$$7, "phalcon/mvc/model.zep", 559 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -87500,7 +86019,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, cloneResultMap) { do { if (ZEPHIR_IS_LONG(&_8$$10, 0)) { ZVAL_LONG(&_9$$11, 10); - ZEPHIR_CALL_FUNCTION(&castValue, "intval", &_10, 36, &value, &_9$$11); + ZEPHIR_CALL_FUNCTION(&castValue, "intval", &_10, 30, &value, &_9$$11); zephir_check_call_status(); break; } @@ -87614,7 +86133,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, cloneResultMapHydrate) { object_init_ex(&_3$$11, phalcon_mvc_model_exception_ce); ZEPHIR_INIT_LNVAR(_4$$11); ZEPHIR_CONCAT_SVS(&_4$$11, "Column '", &key, "' doesn't make part of the column map"); - ZEPHIR_CALL_METHOD(NULL, &_3$$11, "__construct", &_5, 9, &_4$$11); + ZEPHIR_CALL_METHOD(NULL, &_3$$11, "__construct", &_5, 4, &_4$$11); zephir_check_call_status(); zephir_throw_exception_debug(&_3$$11, "phalcon/mvc/model.zep", 672 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -87746,7 +86265,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, find) { } - ZEPHIR_CALL_CE_STATIC(&dependencyInjector, phalcon_di_ce, "getdefault", &_0, 1); + ZEPHIR_CALL_CE_STATIC(&dependencyInjector, phalcon_di_ce, "getdefault", &_0, 0); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_2); ZVAL_STRING(&_2, "modelsManager"); @@ -87836,7 +86355,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, findFirst) { } - ZEPHIR_CALL_CE_STATIC(&dependencyInjector, phalcon_di_ce, "getdefault", &_0, 1); + ZEPHIR_CALL_CE_STATIC(&dependencyInjector, phalcon_di_ce, "getdefault", &_0, 0); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_2); ZVAL_STRING(&_2, "modelsManager"); @@ -87919,7 +86438,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, query) { if (Z_TYPE_P(dependencyInjector) != IS_OBJECT) { - ZEPHIR_CALL_CE_STATIC(dependencyInjector, phalcon_di_ce, "getdefault", &_0, 1); + ZEPHIR_CALL_CE_STATIC(dependencyInjector, phalcon_di_ce, "getdefault", &_0, 0); zephir_check_call_status(); } ZEPHIR_INIT_VAR(&criteria); @@ -87935,12 +86454,12 @@ static PHP_METHOD(Phalcon_Mvc_Model, query) { ZEPHIR_CALL_METHOD(NULL, &criteria, "__construct", NULL, 0); zephir_check_call_status(); } - ZEPHIR_CALL_METHOD(NULL, &criteria, "setdi", NULL, 316, dependencyInjector); + ZEPHIR_CALL_METHOD(NULL, &criteria, "setdi", NULL, 285, dependencyInjector); zephir_check_call_status(); } ZEPHIR_INIT_VAR(&_3); zephir_get_called_class(&_3 TSRMLS_CC); - ZEPHIR_CALL_METHOD(NULL, &criteria, "setmodelname", NULL, 317, &_3); + ZEPHIR_CALL_METHOD(NULL, &criteria, "setmodelname", NULL, 286, &_3); zephir_check_call_status(); RETURN_CCTOR(criteria); @@ -88039,7 +86558,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _exists) { object_init_ex(&_1$$9, phalcon_mvc_model_exception_ce); ZEPHIR_INIT_LNVAR(_2$$9); ZEPHIR_CONCAT_SVS(&_2$$9, "Column '", &field, "' isn't part of the column map"); - ZEPHIR_CALL_METHOD(NULL, &_1$$9, "__construct", &_3, 9, &_2$$9); + ZEPHIR_CALL_METHOD(NULL, &_1$$9, "__construct", &_3, 4, &_2$$9); zephir_check_call_status(); zephir_throw_exception_debug(&_1$$9, "phalcon/mvc/model.zep", 1038 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -88070,7 +86589,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _exists) { object_init_ex(&_5$$14, phalcon_mvc_model_exception_ce); ZEPHIR_INIT_LNVAR(_6$$14); ZEPHIR_CONCAT_SVS(&_6$$14, "Column '", &field, "' isn't part of the table columns"); - ZEPHIR_CALL_METHOD(NULL, &_5$$14, "__construct", &_3, 9, &_6$$14); + ZEPHIR_CALL_METHOD(NULL, &_5$$14, "__construct", &_3, 4, &_6$$14); zephir_check_call_status(); zephir_throw_exception_debug(&_5$$14, "phalcon/mvc/model.zep", 1064 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -88176,21 +86695,21 @@ static PHP_METHOD(Phalcon_Mvc_Model, _groupResult) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &functionName_param, &alias_param, ¶meters); - if (unlikely(Z_TYPE_P(functionName_param) != IS_STRING && Z_TYPE_P(functionName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(functionName_param) != IS_STRING && Z_TYPE_P(functionName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'functionName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(functionName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(functionName_param) == IS_STRING)) { zephir_get_strval(&functionName, functionName_param); } else { ZEPHIR_INIT_VAR(&functionName); ZVAL_EMPTY_STRING(&functionName); } - if (unlikely(Z_TYPE_P(alias_param) != IS_STRING && Z_TYPE_P(alias_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(alias_param) != IS_STRING && Z_TYPE_P(alias_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'alias' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(alias_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(alias_param) == IS_STRING)) { zephir_get_strval(&alias, alias_param); } else { ZEPHIR_INIT_VAR(&alias); @@ -88198,7 +86717,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _groupResult) { } - ZEPHIR_CALL_CE_STATIC(&dependencyInjector, phalcon_di_ce, "getdefault", &_0, 1); + ZEPHIR_CALL_CE_STATIC(&dependencyInjector, phalcon_di_ce, "getdefault", &_0, 0); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_2); ZVAL_STRING(&_2, "modelsManager"); @@ -88436,11 +86955,11 @@ static PHP_METHOD(Phalcon_Mvc_Model, fireEvent) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &eventName_param); - if (unlikely(Z_TYPE_P(eventName_param) != IS_STRING && Z_TYPE_P(eventName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(eventName_param) != IS_STRING && Z_TYPE_P(eventName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'eventName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(eventName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(eventName_param) == IS_STRING)) { zephir_get_strval(&eventName, eventName_param); } else { ZEPHIR_INIT_VAR(&eventName); @@ -88474,11 +86993,11 @@ static PHP_METHOD(Phalcon_Mvc_Model, fireEventCancel) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &eventName_param); - if (unlikely(Z_TYPE_P(eventName_param) != IS_STRING && Z_TYPE_P(eventName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(eventName_param) != IS_STRING && Z_TYPE_P(eventName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'eventName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(eventName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(eventName_param) == IS_STRING)) { zephir_get_strval(&eventName, eventName_param); } else { ZEPHIR_INIT_VAR(&eventName); @@ -88595,7 +87114,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, validate) { ZEPHIR_CALL_METHOD(&_6$$4, &message, "getcode", NULL, 0); zephir_check_call_status(); ZVAL_NULL(&_7$$4); - ZEPHIR_CALL_METHOD(NULL, &_2$$4, "__construct", &_8, 8, &_3$$4, &_4$$4, &_5$$4, &_7$$4, &_6$$4); + ZEPHIR_CALL_METHOD(NULL, &_2$$4, "__construct", &_8, 3, &_3$$4, &_4$$4, &_5$$4, &_7$$4, &_6$$4); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, this_ptr, "appendmessage", &_9, 0, &_2$$4); zephir_check_call_status(); @@ -88831,7 +87350,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysRestrict) { object_init_ex(&_16$$17, phalcon_mvc_model_message_ce); ZEPHIR_INIT_NVAR(&_17$$17); ZVAL_STRING(&_17$$17, "ConstraintViolation"); - ZEPHIR_CALL_METHOD(NULL, &_16$$17, "__construct", &_18, 8, &message, &fields, &_17$$17); + ZEPHIR_CALL_METHOD(NULL, &_16$$17, "__construct", &_18, 3, &message, &fields, &_17$$17); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, this_ptr, "appendmessage", &_19, 0, &_16$$17); zephir_check_call_status(); @@ -89111,7 +87630,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysReverseRestrict) { object_init_ex(&_13$$12, phalcon_mvc_model_message_ce); ZEPHIR_INIT_NVAR(&_14$$12); ZVAL_STRING(&_14$$12, "ConstraintViolation"); - ZEPHIR_CALL_METHOD(NULL, &_13$$12, "__construct", &_15, 8, &message, &fields, &_14$$12); + ZEPHIR_CALL_METHOD(NULL, &_13$$12, "__construct", &_15, 3, &message, &fields, &_14$$12); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, this_ptr, "appendmessage", &_16, 0, &_13$$12); zephir_check_call_status(); @@ -89219,7 +87738,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _preSave) { } } if (ZEPHIR_GLOBAL(orm).virtual_foreign_keys) { - ZEPHIR_CALL_METHOD(&_7$$9, this_ptr, "_checkforeignkeysrestrict", NULL, 318); + ZEPHIR_CALL_METHOD(&_7$$9, this_ptr, "_checkforeignkeysrestrict", NULL, 287); zephir_check_call_status(); if (ZEPHIR_IS_FALSE_IDENTICAL(&_7$$9)) { RETURN_MM_BOOL(0); @@ -89264,7 +87783,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _preSave) { object_init_ex(&_9$$20, phalcon_mvc_model_exception_ce); ZEPHIR_INIT_LNVAR(_10$$20); ZEPHIR_CONCAT_SVS(&_10$$20, "Column '", &field, "' isn't part of the column map"); - ZEPHIR_CALL_METHOD(NULL, &_9$$20, "__construct", &_11, 9, &_10$$20); + ZEPHIR_CALL_METHOD(NULL, &_9$$20, "__construct", &_11, 4, &_10$$20); zephir_check_call_status(); zephir_throw_exception_debug(&_9$$20, "phalcon/mvc/model.zep", 2071 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -89323,7 +87842,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _preSave) { ZEPHIR_CONCAT_VS(&_17$$32, &attributeField, " is required"); ZEPHIR_INIT_NVAR(&_18$$32); ZVAL_STRING(&_18$$32, "PresenceOf"); - ZEPHIR_CALL_METHOD(NULL, &_16$$32, "__construct", &_19, 8, &_17$$32, &attributeField, &_18$$32); + ZEPHIR_CALL_METHOD(NULL, &_16$$32, "__construct", &_19, 3, &_17$$32, &attributeField, &_18$$32); zephir_check_call_status(); zephir_update_property_array_append(this_ptr, SL("_errorMessages"), &_16$$32 TSRMLS_CC); error = 1; @@ -89457,10 +87976,10 @@ static PHP_METHOD(Phalcon_Mvc_Model, _postSave) { static PHP_METHOD(Phalcon_Mvc_Model, _doLowInsert) { - zend_bool useExplicitIdentity = 0, _17, _5$$11, _14$$22; + zend_bool useExplicitIdentity = 0, _17, _5$$11, _14$$23; zephir_fcall_cache_entry *_4 = NULL, *_6 = NULL, *_10 = NULL; int ZEPHIR_LAST_CALL_STATUS; - zval *metaData, metaData_sub, *connection, connection_sub, *table, table_sub, *identityField, identityField_sub, __$null, bindSkip, fields, values, bindTypes, attributes, bindDataTypes, automaticAttributes, field, columnMap, value, attributeField, success, bindType, defaultValue, sequenceName, defaultValues, source, schema, snapshot, lastInsertedId, manager, _0, *_1, _2$$8, _3$$8, _7$$13, _8$$13, _9$$15, _11$$17, _12$$20, _13$$20, _15$$27, _16$$27, _18$$30, _19$$30; + zval *metaData, metaData_sub, *connection, connection_sub, *table, table_sub, *identityField, identityField_sub, __$null, bindSkip, fields, values, bindTypes, attributes, bindDataTypes, automaticAttributes, field, columnMap, value, attributeField, success, bindType, defaultValue, sequenceName, defaultValues, source, schema, snapshot, lastInsertedId, manager, _0, *_1, _2$$8, _3$$8, _7$$14, _8$$14, _9$$16, _11$$18, _12$$21, _13$$21, _15$$28, _16$$28, _18$$31, _19$$31; ZEPHIR_INIT_THIS(); ZVAL_UNDEF(&metaData_sub); @@ -89492,16 +88011,16 @@ static PHP_METHOD(Phalcon_Mvc_Model, _doLowInsert) { ZVAL_UNDEF(&_0); ZVAL_UNDEF(&_2$$8); ZVAL_UNDEF(&_3$$8); - ZVAL_UNDEF(&_7$$13); - ZVAL_UNDEF(&_8$$13); - ZVAL_UNDEF(&_9$$15); - ZVAL_UNDEF(&_11$$17); - ZVAL_UNDEF(&_12$$20); - ZVAL_UNDEF(&_13$$20); - ZVAL_UNDEF(&_15$$27); - ZVAL_UNDEF(&_16$$27); - ZVAL_UNDEF(&_18$$30); - ZVAL_UNDEF(&_19$$30); + ZVAL_UNDEF(&_7$$14); + ZVAL_UNDEF(&_8$$14); + ZVAL_UNDEF(&_9$$16); + ZVAL_UNDEF(&_11$$18); + ZVAL_UNDEF(&_12$$21); + ZVAL_UNDEF(&_13$$21); + ZVAL_UNDEF(&_15$$28); + ZVAL_UNDEF(&_16$$28); + ZVAL_UNDEF(&_18$$31); + ZVAL_UNDEF(&_19$$31); ZEPHIR_MM_GROW(); zephir_fetch_params(1, 4, 0, &metaData, &connection, &table, &identityField); @@ -89535,7 +88054,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _doLowInsert) { ZEPHIR_INIT_NVAR(&columnMap); ZVAL_NULL(&columnMap); } - zephir_is_iterable(&attributes, 0, "phalcon/mvc/model.zep", 2327); + zephir_is_iterable(&attributes, 0, "phalcon/mvc/model.zep", 2329); ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&attributes), _1) { ZEPHIR_INIT_NVAR(&field); @@ -89548,7 +88067,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _doLowInsert) { object_init_ex(&_2$$8, phalcon_mvc_model_exception_ce); ZEPHIR_INIT_LNVAR(_3$$8); ZEPHIR_CONCAT_SVS(&_3$$8, "Column '", &field, "' isn't part of the column map"); - ZEPHIR_CALL_METHOD(NULL, &_2$$8, "__construct", &_4, 9, &_3$$8); + ZEPHIR_CALL_METHOD(NULL, &_2$$8, "__construct", &_4, 4, &_3$$8); zephir_check_call_status(); zephir_throw_exception_debug(&_2$$8, "phalcon/mvc/model.zep", 2276 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -89565,37 +88084,39 @@ static PHP_METHOD(Phalcon_Mvc_Model, _doLowInsert) { _5$$11 = zephir_array_isset(&defaultValues, &field); } if (_5$$11) { + zephir_array_update_zval(&snapshot, &attributeField, &__$null, PH_COPY | PH_SEPARATE); ZEPHIR_CALL_METHOD(&value, connection, "getdefaultvalue", &_6, 0); zephir_check_call_status(); + } else { + zephir_array_update_zval(&snapshot, &attributeField, &value, PH_COPY | PH_SEPARATE); } ZEPHIR_OBS_NVAR(&bindType); if (!(zephir_array_isset_fetch(&bindType, &bindDataTypes, &field, 0 TSRMLS_CC))) { - ZEPHIR_INIT_NVAR(&_7$$13); - object_init_ex(&_7$$13, phalcon_mvc_model_exception_ce); - ZEPHIR_INIT_LNVAR(_8$$13); - ZEPHIR_CONCAT_SVS(&_8$$13, "Column '", &field, "' have not defined a bind data type"); - ZEPHIR_CALL_METHOD(NULL, &_7$$13, "__construct", &_4, 9, &_8$$13); + ZEPHIR_INIT_NVAR(&_7$$14); + object_init_ex(&_7$$14, phalcon_mvc_model_exception_ce); + ZEPHIR_INIT_LNVAR(_8$$14); + ZEPHIR_CONCAT_SVS(&_8$$14, "Column '", &field, "' have not defined a bind data type"); + ZEPHIR_CALL_METHOD(NULL, &_7$$14, "__construct", &_4, 4, &_8$$14); zephir_check_call_status(); - zephir_throw_exception_debug(&_7$$13, "phalcon/mvc/model.zep", 2300 TSRMLS_CC); + zephir_throw_exception_debug(&_7$$14, "phalcon/mvc/model.zep", 2303 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } - zephir_array_append(&fields, &field, PH_SEPARATE, "phalcon/mvc/model.zep", 2303); - zephir_array_append(&values, &value, PH_SEPARATE, "phalcon/mvc/model.zep", 2303); - zephir_array_append(&bindTypes, &bindType, PH_SEPARATE, "phalcon/mvc/model.zep", 2303); - zephir_array_update_zval(&snapshot, &attributeField, &value, PH_COPY | PH_SEPARATE); + zephir_array_append(&fields, &field, PH_SEPARATE, "phalcon/mvc/model.zep", 2306); + zephir_array_append(&values, &value, PH_SEPARATE, "phalcon/mvc/model.zep", 2306); + zephir_array_append(&bindTypes, &bindType, PH_SEPARATE, "phalcon/mvc/model.zep", 2306); } else { if (zephir_array_isset(&defaultValues, &field)) { - ZEPHIR_CALL_METHOD(&_9$$15, connection, "getdefaultvalue", &_10, 0); + ZEPHIR_CALL_METHOD(&_9$$16, connection, "getdefaultvalue", &_10, 0); zephir_check_call_status(); - zephir_array_append(&values, &_9$$15, PH_SEPARATE, "phalcon/mvc/model.zep", 2308); + zephir_array_append(&values, &_9$$16, PH_SEPARATE, "phalcon/mvc/model.zep", 2310); zephir_array_update_zval(&snapshot, &attributeField, &__$null, PH_COPY | PH_SEPARATE); } else { - zephir_array_append(&values, &value, PH_SEPARATE, "phalcon/mvc/model.zep", 2314); + zephir_array_append(&values, &value, PH_SEPARATE, "phalcon/mvc/model.zep", 2316); zephir_array_update_zval(&snapshot, &attributeField, &value, PH_COPY | PH_SEPARATE); } - zephir_array_append(&fields, &field, PH_SEPARATE, "phalcon/mvc/model.zep", 2318); - zephir_array_append(&bindTypes, &bindSkip, PH_SEPARATE, "phalcon/mvc/model.zep", 2318); + zephir_array_append(&fields, &field, PH_SEPARATE, "phalcon/mvc/model.zep", 2320); + zephir_array_append(&bindTypes, &bindSkip, PH_SEPARATE, "phalcon/mvc/model.zep", 2320); } } } @@ -89604,22 +88125,22 @@ static PHP_METHOD(Phalcon_Mvc_Model, _doLowInsert) { if (!ZEPHIR_IS_FALSE_IDENTICAL(identityField)) { ZEPHIR_CALL_METHOD(&defaultValue, connection, "getdefaultidvalue", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_11$$17, connection, "useexplicitidvalue", NULL, 0); + ZEPHIR_CALL_METHOD(&_11$$18, connection, "useexplicitidvalue", NULL, 0); zephir_check_call_status(); - useExplicitIdentity = zephir_get_boolval(&_11$$17); + useExplicitIdentity = zephir_get_boolval(&_11$$18); if (useExplicitIdentity) { - zephir_array_append(&fields, identityField, PH_SEPARATE, "phalcon/mvc/model.zep", 2336); + zephir_array_append(&fields, identityField, PH_SEPARATE, "phalcon/mvc/model.zep", 2338); } if (Z_TYPE_P(&columnMap) == IS_ARRAY) { ZEPHIR_OBS_NVAR(&attributeField); if (!(zephir_array_isset_fetch(&attributeField, &columnMap, identityField, 0 TSRMLS_CC))) { - ZEPHIR_INIT_VAR(&_12$$20); - object_init_ex(&_12$$20, phalcon_mvc_model_exception_ce); - ZEPHIR_INIT_VAR(&_13$$20); - ZEPHIR_CONCAT_SVS(&_13$$20, "Identity column '", identityField, "' isn't part of the column map"); - ZEPHIR_CALL_METHOD(NULL, &_12$$20, "__construct", &_4, 9, &_13$$20); + ZEPHIR_INIT_VAR(&_12$$21); + object_init_ex(&_12$$21, phalcon_mvc_model_exception_ce); + ZEPHIR_INIT_VAR(&_13$$21); + ZEPHIR_CONCAT_SVS(&_13$$21, "Identity column '", identityField, "' isn't part of the column map"); + ZEPHIR_CALL_METHOD(NULL, &_12$$21, "__construct", &_4, 4, &_13$$21); zephir_check_call_status(); - zephir_throw_exception_debug(&_12$$20, "phalcon/mvc/model.zep", 2344 TSRMLS_CC); + zephir_throw_exception_debug(&_12$$21, "phalcon/mvc/model.zep", 2346 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -89628,38 +88149,38 @@ static PHP_METHOD(Phalcon_Mvc_Model, _doLowInsert) { } ZEPHIR_OBS_NVAR(&value); if (zephir_fetch_property_zval(&value, this_ptr, &attributeField, PH_SILENT_CC)) { - _14$$22 = Z_TYPE_P(&value) == IS_NULL; - if (!(_14$$22)) { - _14$$22 = ZEPHIR_IS_STRING_IDENTICAL(&value, ""); + _14$$23 = Z_TYPE_P(&value) == IS_NULL; + if (!(_14$$23)) { + _14$$23 = ZEPHIR_IS_STRING_IDENTICAL(&value, ""); } - if (_14$$22) { + if (_14$$23) { if (useExplicitIdentity) { - zephir_array_append(&values, &defaultValue, PH_SEPARATE, "phalcon/mvc/model.zep", 2357); - zephir_array_append(&bindTypes, &bindSkip, PH_SEPARATE, "phalcon/mvc/model.zep", 2357); + zephir_array_append(&values, &defaultValue, PH_SEPARATE, "phalcon/mvc/model.zep", 2359); + zephir_array_append(&bindTypes, &bindSkip, PH_SEPARATE, "phalcon/mvc/model.zep", 2359); } } else { if (!(useExplicitIdentity)) { - zephir_array_append(&fields, identityField, PH_SEPARATE, "phalcon/mvc/model.zep", 2365); + zephir_array_append(&fields, identityField, PH_SEPARATE, "phalcon/mvc/model.zep", 2367); } ZEPHIR_OBS_NVAR(&bindType); if (!(zephir_array_isset_fetch(&bindType, &bindDataTypes, identityField, 0 TSRMLS_CC))) { - ZEPHIR_INIT_VAR(&_15$$27); - object_init_ex(&_15$$27, phalcon_mvc_model_exception_ce); - ZEPHIR_INIT_VAR(&_16$$27); - ZEPHIR_CONCAT_SVS(&_16$$27, "Identity column '", identityField, "' isn\\'t part of the table columns"); - ZEPHIR_CALL_METHOD(NULL, &_15$$27, "__construct", &_4, 9, &_16$$27); + ZEPHIR_INIT_VAR(&_15$$28); + object_init_ex(&_15$$28, phalcon_mvc_model_exception_ce); + ZEPHIR_INIT_VAR(&_16$$28); + ZEPHIR_CONCAT_SVS(&_16$$28, "Identity column '", identityField, "' isn\\'t part of the table columns"); + ZEPHIR_CALL_METHOD(NULL, &_15$$28, "__construct", &_4, 4, &_16$$28); zephir_check_call_status(); - zephir_throw_exception_debug(&_15$$27, "phalcon/mvc/model.zep", 2372 TSRMLS_CC); + zephir_throw_exception_debug(&_15$$28, "phalcon/mvc/model.zep", 2374 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } - zephir_array_append(&values, &value, PH_SEPARATE, "phalcon/mvc/model.zep", 2375); - zephir_array_append(&bindTypes, &bindType, PH_SEPARATE, "phalcon/mvc/model.zep", 2375); + zephir_array_append(&values, &value, PH_SEPARATE, "phalcon/mvc/model.zep", 2377); + zephir_array_append(&bindTypes, &bindType, PH_SEPARATE, "phalcon/mvc/model.zep", 2377); } } else { if (useExplicitIdentity) { - zephir_array_append(&values, &defaultValue, PH_SEPARATE, "phalcon/mvc/model.zep", 2379); - zephir_array_append(&bindTypes, &bindSkip, PH_SEPARATE, "phalcon/mvc/model.zep", 2379); + zephir_array_append(&values, &defaultValue, PH_SEPARATE, "phalcon/mvc/model.zep", 2381); + zephir_array_append(&bindTypes, &bindSkip, PH_SEPARATE, "phalcon/mvc/model.zep", 2381); } } } @@ -89672,9 +88193,9 @@ static PHP_METHOD(Phalcon_Mvc_Model, _doLowInsert) { if (_17) { ZEPHIR_INIT_VAR(&sequenceName); ZVAL_NULL(&sequenceName); - ZEPHIR_CALL_METHOD(&_18$$30, connection, "supportsequences", NULL, 0); + ZEPHIR_CALL_METHOD(&_18$$31, connection, "supportsequences", NULL, 0); zephir_check_call_status(); - if (ZEPHIR_IS_TRUE_IDENTICAL(&_18$$30)) { + if (ZEPHIR_IS_TRUE_IDENTICAL(&_18$$31)) { if ((zephir_method_exists_ex(this_ptr, SL("getsequencename") TSRMLS_CC) == SUCCESS)) { ZEPHIR_CALL_METHOD(&sequenceName, this_ptr, "getsequencename", NULL, 0); zephir_check_call_status(); @@ -89695,9 +88216,9 @@ static PHP_METHOD(Phalcon_Mvc_Model, _doLowInsert) { zephir_check_call_status(); zephir_update_property_zval_zval(this_ptr, &attributeField, &lastInsertedId TSRMLS_CC); zephir_array_update_zval(&snapshot, &attributeField, &lastInsertedId, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(&_19$$30, &manager, "iskeepingsnapshots", NULL, 0, this_ptr); + ZEPHIR_CALL_METHOD(&_19$$31, &manager, "iskeepingsnapshots", NULL, 0, this_ptr); zephir_check_call_status(); - if (zephir_is_true(&_19$$30)) { + if (zephir_is_true(&_19$$31)) { zephir_update_property_zval(this_ptr, SL("_snapshot"), &snapshot); } zephir_update_property_zval(this_ptr, SL("_uniqueParams"), &__$null); @@ -89804,7 +88325,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _doLowUpdate) { ZEPHIR_INIT_NVAR(&columnMap); ZVAL_NULL(&columnMap); } - zephir_is_iterable(&nonPrimary, 0, "phalcon/mvc/model.zep", 2596); + zephir_is_iterable(&nonPrimary, 0, "phalcon/mvc/model.zep", 2598); ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&nonPrimary), _2) { ZEPHIR_INIT_NVAR(&field); @@ -89816,9 +88337,9 @@ static PHP_METHOD(Phalcon_Mvc_Model, _doLowUpdate) { object_init_ex(&_3$$9, phalcon_mvc_model_exception_ce); ZEPHIR_INIT_LNVAR(_4$$9); ZEPHIR_CONCAT_SVS(&_4$$9, "Column '", &field, "' have not defined a bind data type"); - ZEPHIR_CALL_METHOD(NULL, &_3$$9, "__construct", &_5, 9, &_4$$9); + ZEPHIR_CALL_METHOD(NULL, &_3$$9, "__construct", &_5, 4, &_4$$9); zephir_check_call_status(); - zephir_throw_exception_debug(&_3$$9, "phalcon/mvc/model.zep", 2488 TSRMLS_CC); + zephir_throw_exception_debug(&_3$$9, "phalcon/mvc/model.zep", 2490 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -89829,9 +88350,9 @@ static PHP_METHOD(Phalcon_Mvc_Model, _doLowUpdate) { object_init_ex(&_6$$11, phalcon_mvc_model_exception_ce); ZEPHIR_INIT_LNVAR(_7$$11); ZEPHIR_CONCAT_SVS(&_7$$11, "Column '", &field, "' isn't part of the column map"); - ZEPHIR_CALL_METHOD(NULL, &_6$$11, "__construct", &_5, 9, &_7$$11); + ZEPHIR_CALL_METHOD(NULL, &_6$$11, "__construct", &_5, 4, &_7$$11); zephir_check_call_status(); - zephir_throw_exception_debug(&_6$$11, "phalcon/mvc/model.zep", 2496 TSRMLS_CC); + zephir_throw_exception_debug(&_6$$11, "phalcon/mvc/model.zep", 2498 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -89841,9 +88362,9 @@ static PHP_METHOD(Phalcon_Mvc_Model, _doLowUpdate) { ZEPHIR_OBS_NVAR(&value); if (zephir_fetch_property_zval(&value, this_ptr, &attributeField, PH_SILENT_CC)) { if (!(useDynamicUpdate)) { - zephir_array_append(&fields, &field, PH_SEPARATE, "phalcon/mvc/model.zep", 2512); - zephir_array_append(&values, &value, PH_SEPARATE, "phalcon/mvc/model.zep", 2512); - zephir_array_append(&bindTypes, &bindType, PH_SEPARATE, "phalcon/mvc/model.zep", 2513); + zephir_array_append(&fields, &field, PH_SEPARATE, "phalcon/mvc/model.zep", 2514); + zephir_array_append(&values, &value, PH_SEPARATE, "phalcon/mvc/model.zep", 2514); + zephir_array_append(&bindTypes, &bindType, PH_SEPARATE, "phalcon/mvc/model.zep", 2515); } else { ZEPHIR_OBS_NVAR(&snapshotValue); if (!(zephir_array_isset_fetch(&snapshotValue, &snapshot, &attributeField, 0 TSRMLS_CC))) { @@ -89861,9 +88382,9 @@ static PHP_METHOD(Phalcon_Mvc_Model, _doLowUpdate) { object_init_ex(&_8$$22, phalcon_mvc_model_exception_ce); ZEPHIR_INIT_LNVAR(_9$$22); ZEPHIR_CONCAT_SVS(&_9$$22, "Column '", &field, "' have not defined a data type"); - ZEPHIR_CALL_METHOD(NULL, &_8$$22, "__construct", &_5, 9, &_9$$22); + ZEPHIR_CALL_METHOD(NULL, &_8$$22, "__construct", &_5, 4, &_9$$22); zephir_check_call_status(); - zephir_throw_exception_debug(&_8$$22, "phalcon/mvc/model.zep", 2538 TSRMLS_CC); + zephir_throw_exception_debug(&_8$$22, "phalcon/mvc/model.zep", 2540 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -89877,9 +88398,9 @@ static PHP_METHOD(Phalcon_Mvc_Model, _doLowUpdate) { break; } if (ZEPHIR_IS_LONG(&dataType, 3) || ZEPHIR_IS_LONG(&dataType, 7)) { - ZEPHIR_CALL_FUNCTION(&_10$$25, "floatval", &_11, 319, &snapshotValue); + ZEPHIR_CALL_FUNCTION(&_10$$25, "floatval", &_11, 288, &snapshotValue); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_12$$25, "floatval", &_11, 319, &value); + ZEPHIR_CALL_FUNCTION(&_12$$25, "floatval", &_11, 288, &value); zephir_check_call_status(); changed = !ZEPHIR_IS_IDENTICAL(&_10$$25, &_12$$25); break; @@ -89897,17 +88418,17 @@ static PHP_METHOD(Phalcon_Mvc_Model, _doLowUpdate) { } } if (changed) { - zephir_array_append(&fields, &field, PH_SEPARATE, "phalcon/mvc/model.zep", 2580); - zephir_array_append(&values, &value, PH_SEPARATE, "phalcon/mvc/model.zep", 2580); - zephir_array_append(&bindTypes, &bindType, PH_SEPARATE, "phalcon/mvc/model.zep", 2581); + zephir_array_append(&fields, &field, PH_SEPARATE, "phalcon/mvc/model.zep", 2582); + zephir_array_append(&values, &value, PH_SEPARATE, "phalcon/mvc/model.zep", 2582); + zephir_array_append(&bindTypes, &bindType, PH_SEPARATE, "phalcon/mvc/model.zep", 2583); } } zephir_array_update_zval(&newSnapshot, &attributeField, &value, PH_COPY | PH_SEPARATE); } else { zephir_array_update_zval(&newSnapshot, &attributeField, &__$null, PH_COPY | PH_SEPARATE); - zephir_array_append(&fields, &field, PH_SEPARATE, "phalcon/mvc/model.zep", 2588); - zephir_array_append(&values, &__$null, PH_SEPARATE, "phalcon/mvc/model.zep", 2588); - zephir_array_append(&bindTypes, &bindSkip, PH_SEPARATE, "phalcon/mvc/model.zep", 2588); + zephir_array_append(&fields, &field, PH_SEPARATE, "phalcon/mvc/model.zep", 2590); + zephir_array_append(&values, &__$null, PH_SEPARATE, "phalcon/mvc/model.zep", 2590); + zephir_array_append(&bindTypes, &bindSkip, PH_SEPARATE, "phalcon/mvc/model.zep", 2590); } } } ZEND_HASH_FOREACH_END(); @@ -89925,12 +88446,12 @@ static PHP_METHOD(Phalcon_Mvc_Model, _doLowUpdate) { ZEPHIR_CALL_METHOD(&primaryKeys, metaData, "getprimarykeyattributes", NULL, 0, this_ptr); zephir_check_call_status(); if (!(zephir_fast_count_int(&primaryKeys TSRMLS_CC))) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "A primary key must be defined in the model in order to perform the operation", "phalcon/mvc/model.zep", 2615); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "A primary key must be defined in the model in order to perform the operation", "phalcon/mvc/model.zep", 2617); return; } ZEPHIR_INIT_NVAR(&uniqueParams); array_init(&uniqueParams); - zephir_is_iterable(&primaryKeys, 0, "phalcon/mvc/model.zep", 2640); + zephir_is_iterable(&primaryKeys, 0, "phalcon/mvc/model.zep", 2642); ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&primaryKeys), _15$$31) { ZEPHIR_INIT_NVAR(&field); @@ -89942,9 +88463,9 @@ static PHP_METHOD(Phalcon_Mvc_Model, _doLowUpdate) { object_init_ex(&_16$$35, phalcon_mvc_model_exception_ce); ZEPHIR_INIT_LNVAR(_17$$35); ZEPHIR_CONCAT_SVS(&_17$$35, "Column '", &field, "' isn't part of the column map"); - ZEPHIR_CALL_METHOD(NULL, &_16$$35, "__construct", &_5, 9, &_17$$35); + ZEPHIR_CALL_METHOD(NULL, &_16$$35, "__construct", &_5, 4, &_17$$35); zephir_check_call_status(); - zephir_throw_exception_debug(&_16$$35, "phalcon/mvc/model.zep", 2626 TSRMLS_CC); + zephir_throw_exception_debug(&_16$$35, "phalcon/mvc/model.zep", 2628 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -89954,10 +88475,10 @@ static PHP_METHOD(Phalcon_Mvc_Model, _doLowUpdate) { ZEPHIR_OBS_NVAR(&value); if (zephir_fetch_property_zval(&value, this_ptr, &attributeField, PH_SILENT_CC)) { zephir_array_update_zval(&newSnapshot, &attributeField, &value, PH_COPY | PH_SEPARATE); - zephir_array_append(&uniqueParams, &value, PH_SEPARATE, "phalcon/mvc/model.zep", 2634); + zephir_array_append(&uniqueParams, &value, PH_SEPARATE, "phalcon/mvc/model.zep", 2636); } else { zephir_array_update_zval(&newSnapshot, &attributeField, &__$null, PH_COPY | PH_SEPARATE); - zephir_array_append(&uniqueParams, &__$null, PH_SEPARATE, "phalcon/mvc/model.zep", 2637); + zephir_array_append(&uniqueParams, &__$null, PH_SEPARATE, "phalcon/mvc/model.zep", 2639); } } ZEND_HASH_FOREACH_END(); ZEPHIR_INIT_NVAR(&field); @@ -90041,7 +88562,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _preSaveRelatedRecords) { ZEPHIR_CALL_METHOD(&_1, this_ptr, "getmodelsmanager", NULL, 0); zephir_check_call_status(); ZEPHIR_CPY_WRT(&manager, &_1); - zephir_is_iterable(related, 0, "phalcon/mvc/model.zep", 2756); + zephir_is_iterable(related, 0, "phalcon/mvc/model.zep", 2758); ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(related), _3, _4, _2) { ZEPHIR_INIT_NVAR(&name); @@ -90067,7 +88588,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _preSaveRelatedRecords) { } ZEPHIR_CALL_METHOD(NULL, connection, "rollback", &_8, 0, &_7$$6); zephir_check_call_status(); - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Only objects can be stored as part of belongs-to relations", "phalcon/mvc/model.zep", 2705); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Only objects can be stored as part of belongs-to relations", "phalcon/mvc/model.zep", 2707); return; } ZEPHIR_CALL_METHOD(&columns, &relation, "getfields", NULL, 0); @@ -90084,7 +88605,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _preSaveRelatedRecords) { } ZEPHIR_CALL_METHOD(NULL, connection, "rollback", &_10, 0, &_9$$7); zephir_check_call_status(); - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Not implemented", "phalcon/mvc/model.zep", 2714); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Not implemented", "phalcon/mvc/model.zep", 2716); return; } ZEPHIR_CALL_METHOD(&_11$$5, &record, "save", NULL, 0); @@ -90092,7 +88613,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _preSaveRelatedRecords) { if (!(zephir_is_true(&_11$$5))) { ZEPHIR_CALL_METHOD(&_12$$8, &record, "getmessages", NULL, 0); zephir_check_call_status(); - zephir_is_iterable(&_12$$8, 0, "phalcon/mvc/model.zep", 2743); + zephir_is_iterable(&_12$$8, 0, "phalcon/mvc/model.zep", 2745); ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&_12$$8), _13$$8) { ZEPHIR_INIT_NVAR(&message); @@ -90187,7 +88708,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _postSaveRelatedRecords) { ZEPHIR_CALL_METHOD(&_0, this_ptr, "getmodelsmanager", NULL, 0); zephir_check_call_status(); ZEPHIR_CPY_WRT(&manager, &_0); - zephir_is_iterable(related, 0, "phalcon/mvc/model.zep", 2947); + zephir_is_iterable(related, 0, "phalcon/mvc/model.zep", 2949); ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(related), _2, _3, _1) { ZEPHIR_INIT_NVAR(&name); @@ -90219,7 +88740,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _postSaveRelatedRecords) { } ZEPHIR_CALL_METHOD(NULL, connection, "rollback", &_9, 0, &_8$$6); zephir_check_call_status(); - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Only objects/arrays can be stored as part of has-many/has-one/has-many-to-many relations", "phalcon/mvc/model.zep", 2795); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Only objects/arrays can be stored as part of has-many/has-one/has-many-to-many relations", "phalcon/mvc/model.zep", 2797); return; } ZEPHIR_CALL_METHOD(&columns, &relation, "getfields", NULL, 0); @@ -90236,7 +88757,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _postSaveRelatedRecords) { } ZEPHIR_CALL_METHOD(NULL, connection, "rollback", &_11, 0, &_10$$7); zephir_check_call_status(); - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Not implemented", "phalcon/mvc/model.zep", 2804); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Not implemented", "phalcon/mvc/model.zep", 2806); return; } if (Z_TYPE_P(&record) == IS_OBJECT) { @@ -90259,9 +88780,9 @@ static PHP_METHOD(Phalcon_Mvc_Model, _postSaveRelatedRecords) { object_init_ex(&_14$$10, phalcon_mvc_model_exception_ce); ZEPHIR_INIT_LNVAR(_15$$10); ZEPHIR_CONCAT_SVS(&_15$$10, "The column '", &columns, "' needs to be present in the model"); - ZEPHIR_CALL_METHOD(NULL, &_14$$10, "__construct", &_16, 9, &_15$$10); + ZEPHIR_CALL_METHOD(NULL, &_14$$10, "__construct", &_16, 4, &_15$$10); zephir_check_call_status(); - zephir_throw_exception_debug(&_14$$10, "phalcon/mvc/model.zep", 2818 TSRMLS_CC); + zephir_throw_exception_debug(&_14$$10, "phalcon/mvc/model.zep", 2820 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -90276,7 +88797,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _postSaveRelatedRecords) { ZEPHIR_CALL_METHOD(&intermediateReferencedFields, &relation, "getintermediatereferencedfields", NULL, 0); zephir_check_call_status(); } - zephir_is_iterable(&relatedRecords, 0, "phalcon/mvc/model.zep", 2933); + zephir_is_iterable(&relatedRecords, 0, "phalcon/mvc/model.zep", 2935); ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&relatedRecords), _18$$4) { ZEPHIR_INIT_NVAR(&recordAfter); @@ -90290,7 +88811,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _postSaveRelatedRecords) { if (!(zephir_is_true(&_19$$12))) { ZEPHIR_CALL_METHOD(&_20$$14, &recordAfter, "getmessages", NULL, 0); zephir_check_call_status(); - zephir_is_iterable(&_20$$14, 0, "phalcon/mvc/model.zep", 2875); + zephir_is_iterable(&_20$$14, 0, "phalcon/mvc/model.zep", 2877); ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&_20$$14), _21$$14) { ZEPHIR_INIT_NVAR(&message); @@ -90327,7 +88848,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _postSaveRelatedRecords) { if (!(zephir_is_true(&_27$$17))) { ZEPHIR_CALL_METHOD(&_28$$18, &intermediateModel, "getmessages", NULL, 0); zephir_check_call_status(); - zephir_is_iterable(&_28$$18, 0, "phalcon/mvc/model.zep", 2927); + zephir_is_iterable(&_28$$18, 0, "phalcon/mvc/model.zep", 2929); ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&_28$$18), _29$$18) { ZEPHIR_INIT_NVAR(&message); @@ -90365,9 +88886,9 @@ static PHP_METHOD(Phalcon_Mvc_Model, _postSaveRelatedRecords) { object_init_ex(&_34$$22, phalcon_mvc_model_exception_ce); ZEPHIR_INIT_LNVAR(_35$$22); ZEPHIR_CONCAT_SVSVS(&_35$$22, "There are no defined relations for the model '", &className, "' using alias '", &name, "'"); - ZEPHIR_CALL_METHOD(NULL, &_34$$22, "__construct", &_16, 9, &_35$$22); + ZEPHIR_CALL_METHOD(NULL, &_34$$22, "__construct", &_16, 4, &_35$$22); zephir_check_call_status(); - zephir_throw_exception_debug(&_34$$22, "phalcon/mvc/model.zep", 2939 TSRMLS_CC); + zephir_throw_exception_debug(&_34$$22, "phalcon/mvc/model.zep", 2941 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -90503,9 +89024,9 @@ static PHP_METHOD(Phalcon_Mvc_Model, save) { object_init_ex(&_9$$12, phalcon_mvc_model_validationfailed_ce); ZEPHIR_CALL_METHOD(&_10$$12, this_ptr, "getmessages", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, &_9$$12, "__construct", NULL, 320, this_ptr, &_10$$12); + ZEPHIR_CALL_METHOD(NULL, &_9$$12, "__construct", NULL, 289, this_ptr, &_10$$12); zephir_check_call_status(); - zephir_throw_exception_debug(&_9$$12, "phalcon/mvc/model.zep", 3061 TSRMLS_CC); + zephir_throw_exception_debug(&_9$$12, "phalcon/mvc/model.zep", 3063 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -90599,7 +89120,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, create) { ZVAL_NULL(&_5$$3); ZEPHIR_INIT_VAR(&_6$$3); ZVAL_STRING(&_6$$3, "InvalidCreateAttempt"); - ZEPHIR_CALL_METHOD(NULL, &_3$$3, "__construct", NULL, 8, &_4$$3, &_5$$3, &_6$$3); + ZEPHIR_CALL_METHOD(NULL, &_3$$3, "__construct", NULL, 3, &_4$$3, &_5$$3, &_6$$3); zephir_check_call_status(); zephir_array_fast_append(&_2$$3, &_3$$3); zephir_update_property_zval(this_ptr, SL("_errorMessages"), &_2$$3); @@ -90662,7 +89183,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, update) { ZVAL_NULL(&_6$$4); ZEPHIR_INIT_VAR(&_7$$4); ZVAL_STRING(&_7$$4, "InvalidUpdateAttempt"); - ZEPHIR_CALL_METHOD(NULL, &_4$$4, "__construct", NULL, 8, &_5$$4, &_6$$4, &_7$$4); + ZEPHIR_CALL_METHOD(NULL, &_4$$4, "__construct", NULL, 3, &_5$$4, &_6$$4, &_7$$4); zephir_check_call_status(); zephir_array_fast_append(&_3$$4, &_4$$4); zephir_update_property_zval(this_ptr, SL("_errorMessages"), &_3$$4); @@ -90731,7 +89252,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, delete) { array_init(&_1); zephir_update_property_zval(this_ptr, SL("_errorMessages"), &_1); if (ZEPHIR_GLOBAL(orm).virtual_foreign_keys) { - ZEPHIR_CALL_METHOD(&_2$$3, this_ptr, "_checkforeignkeysreverserestrict", NULL, 321); + ZEPHIR_CALL_METHOD(&_2$$3, this_ptr, "_checkforeignkeysreverserestrict", NULL, 290); zephir_check_call_status(); if (ZEPHIR_IS_FALSE_IDENTICAL(&_2$$3)) { RETURN_MM_BOOL(0); @@ -90755,10 +89276,10 @@ static PHP_METHOD(Phalcon_Mvc_Model, delete) { ZVAL_NULL(&columnMap); } if (!(zephir_fast_count_int(&primaryKeys TSRMLS_CC))) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "A primary key must be defined in the model in order to perform the operation", "phalcon/mvc/model.zep", 3262); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "A primary key must be defined in the model in order to perform the operation", "phalcon/mvc/model.zep", 3264); return; } - zephir_is_iterable(&primaryKeys, 0, "phalcon/mvc/model.zep", 3305); + zephir_is_iterable(&primaryKeys, 0, "phalcon/mvc/model.zep", 3307); ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&primaryKeys), _3) { ZEPHIR_INIT_NVAR(&primaryKey); @@ -90769,9 +89290,9 @@ static PHP_METHOD(Phalcon_Mvc_Model, delete) { object_init_ex(&_4$$9, phalcon_mvc_model_exception_ce); ZEPHIR_INIT_LNVAR(_5$$9); ZEPHIR_CONCAT_SVS(&_5$$9, "Column '", &primaryKey, "' have not defined a bind data type"); - ZEPHIR_CALL_METHOD(NULL, &_4$$9, "__construct", &_6, 9, &_5$$9); + ZEPHIR_CALL_METHOD(NULL, &_4$$9, "__construct", &_6, 4, &_5$$9); zephir_check_call_status(); - zephir_throw_exception_debug(&_4$$9, "phalcon/mvc/model.zep", 3274 TSRMLS_CC); + zephir_throw_exception_debug(&_4$$9, "phalcon/mvc/model.zep", 3276 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -90782,9 +89303,9 @@ static PHP_METHOD(Phalcon_Mvc_Model, delete) { object_init_ex(&_7$$11, phalcon_mvc_model_exception_ce); ZEPHIR_INIT_LNVAR(_8$$11); ZEPHIR_CONCAT_SVS(&_8$$11, "Column '", &primaryKey, "' isn't part of the column map"); - ZEPHIR_CALL_METHOD(NULL, &_7$$11, "__construct", &_6, 9, &_8$$11); + ZEPHIR_CALL_METHOD(NULL, &_7$$11, "__construct", &_6, 4, &_8$$11); zephir_check_call_status(); - zephir_throw_exception_debug(&_7$$11, "phalcon/mvc/model.zep", 3282 TSRMLS_CC); + zephir_throw_exception_debug(&_7$$11, "phalcon/mvc/model.zep", 3284 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -90797,19 +89318,19 @@ static PHP_METHOD(Phalcon_Mvc_Model, delete) { object_init_ex(&_9$$13, phalcon_mvc_model_exception_ce); ZEPHIR_INIT_LNVAR(_10$$13); ZEPHIR_CONCAT_SVS(&_10$$13, "Cannot delete the record because the primary key attribute: '", &attributeField, "' wasn't set"); - ZEPHIR_CALL_METHOD(NULL, &_9$$13, "__construct", &_6, 9, &_10$$13); + ZEPHIR_CALL_METHOD(NULL, &_9$$13, "__construct", &_6, 4, &_10$$13); zephir_check_call_status(); - zephir_throw_exception_debug(&_9$$13, "phalcon/mvc/model.zep", 3294 TSRMLS_CC); + zephir_throw_exception_debug(&_9$$13, "phalcon/mvc/model.zep", 3296 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } - zephir_array_append(&values, &value, PH_SEPARATE, "phalcon/mvc/model.zep", 3300); + zephir_array_append(&values, &value, PH_SEPARATE, "phalcon/mvc/model.zep", 3302); ZEPHIR_CALL_METHOD(&_11$$8, &writeConnection, "escapeidentifier", &_12, 0, &primaryKey); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_13$$8); ZEPHIR_CONCAT_VS(&_13$$8, &_11$$8, " = ?"); - zephir_array_append(&conditions, &_13$$8, PH_SEPARATE, "phalcon/mvc/model.zep", 3301); - zephir_array_append(&bindTypes, &bindType, PH_SEPARATE, "phalcon/mvc/model.zep", 3302); + zephir_array_append(&conditions, &_13$$8, PH_SEPARATE, "phalcon/mvc/model.zep", 3303); + zephir_array_append(&bindTypes, &bindType, PH_SEPARATE, "phalcon/mvc/model.zep", 3304); } ZEND_HASH_FOREACH_END(); ZEPHIR_INIT_NVAR(&primaryKey); if (ZEPHIR_GLOBAL(orm).events) { @@ -90848,7 +89369,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, delete) { ZEPHIR_CALL_METHOD(&success, &writeConnection, "delete", NULL, 0, &table, &_17, &values, &bindTypes); zephir_check_call_status(); if (ZEPHIR_GLOBAL(orm).virtual_foreign_keys) { - ZEPHIR_CALL_METHOD(&_18$$20, this_ptr, "_checkforeignkeysreversecascade", NULL, 322); + ZEPHIR_CALL_METHOD(&_18$$20, this_ptr, "_checkforeignkeysreversecascade", NULL, 291); zephir_check_call_status(); if (ZEPHIR_IS_FALSE_IDENTICAL(&_18$$20)) { RETURN_MM_BOOL(0); @@ -90913,7 +89434,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, refresh) { zephir_read_property(&_0, this_ptr, SL("_dirtyState"), PH_NOISY_CC | PH_READONLY); if (!ZEPHIR_IS_LONG(&_0, 0)) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The record cannot be refreshed because it does not exist or is deleted", "phalcon/mvc/model.zep", 3380); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The record cannot be refreshed because it does not exist or is deleted", "phalcon/mvc/model.zep", 3382); return; } ZEPHIR_CALL_METHOD(&metaData, this_ptr, "getmodelsmetadata", NULL, 0); @@ -90940,7 +89461,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, refresh) { ZEPHIR_CALL_METHOD(&_2$$6, this_ptr, "_exists", NULL, 0, &metaData, &readConnection, &table); zephir_check_call_status(); if (!(zephir_is_true(&_2$$6))) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The record cannot be refreshed because it does not exist or is deleted", "phalcon/mvc/model.zep", 3403); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The record cannot be refreshed because it does not exist or is deleted", "phalcon/mvc/model.zep", 3405); return; } ZEPHIR_OBS_NVAR(&uniqueKey); @@ -90949,14 +89470,14 @@ static PHP_METHOD(Phalcon_Mvc_Model, refresh) { ZEPHIR_OBS_VAR(&uniqueParams); zephir_read_property(&uniqueParams, this_ptr, SL("_uniqueParams"), PH_NOISY_CC); if (Z_TYPE_P(&uniqueParams) != IS_ARRAY) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The record cannot be refreshed because it does not exist or is deleted", "phalcon/mvc/model.zep", 3411); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The record cannot be refreshed because it does not exist or is deleted", "phalcon/mvc/model.zep", 3413); return; } ZEPHIR_INIT_VAR(&fields); array_init(&fields); ZEPHIR_CALL_METHOD(&_3, &metaData, "getattributes", NULL, 0, this_ptr); zephir_check_call_status(); - zephir_is_iterable(&_3, 0, "phalcon/mvc/model.zep", 3425); + zephir_is_iterable(&_3, 0, "phalcon/mvc/model.zep", 3427); ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&_3), _4) { ZEPHIR_INIT_NVAR(&attribute); @@ -90964,7 +89485,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, refresh) { ZEPHIR_INIT_NVAR(&_5$$9); zephir_create_array(&_5$$9, 1, 0 TSRMLS_CC); zephir_array_fast_append(&_5$$9, &attribute); - zephir_array_append(&fields, &_5$$9, PH_SEPARATE, "phalcon/mvc/model.zep", 3419); + zephir_array_append(&fields, &_5$$9, PH_SEPARATE, "phalcon/mvc/model.zep", 3421); } ZEND_HASH_FOREACH_END(); ZEPHIR_INIT_NVAR(&attribute); ZEPHIR_CALL_METHOD(&dialect, &readConnection, "getdialect", NULL, 0); @@ -91032,11 +89553,11 @@ static PHP_METHOD(Phalcon_Mvc_Model, readAttribute) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &attribute_param); - if (unlikely(Z_TYPE_P(attribute_param) != IS_STRING && Z_TYPE_P(attribute_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(attribute_param) != IS_STRING && Z_TYPE_P(attribute_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'attribute' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(attribute_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(attribute_param) == IS_STRING)) { zephir_get_strval(&attribute, attribute_param); } else { ZEPHIR_INIT_VAR(&attribute); @@ -91065,11 +89586,11 @@ static PHP_METHOD(Phalcon_Mvc_Model, writeAttribute) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &attribute_param, &value); - if (unlikely(Z_TYPE_P(attribute_param) != IS_STRING && Z_TYPE_P(attribute_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(attribute_param) != IS_STRING && Z_TYPE_P(attribute_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'attribute' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(attribute_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(attribute_param) == IS_STRING)) { zephir_get_strval(&attribute, attribute_param); } else { ZEPHIR_INIT_VAR(&attribute); @@ -91126,7 +89647,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, skipAttributesOnCreate) { ZEPHIR_INIT_VAR(&keysAttributes); array_init(&keysAttributes); - zephir_is_iterable(&attributes, 0, "phalcon/mvc/model.zep", 3539); + zephir_is_iterable(&attributes, 0, "phalcon/mvc/model.zep", 3541); ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&attributes), _0) { ZEPHIR_INIT_NVAR(&attribute); @@ -91163,7 +89684,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, skipAttributesOnUpdate) { ZEPHIR_INIT_VAR(&keysAttributes); array_init(&keysAttributes); - zephir_is_iterable(&attributes, 0, "phalcon/mvc/model.zep", 3571); + zephir_is_iterable(&attributes, 0, "phalcon/mvc/model.zep", 3573); ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&attributes), _0) { ZEPHIR_INIT_NVAR(&attribute); @@ -91200,7 +89721,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, allowEmptyStringValues) { ZEPHIR_INIT_VAR(&keysAttributes); array_init(&keysAttributes); - zephir_is_iterable(&attributes, 0, "phalcon/mvc/model.zep", 3603); + zephir_is_iterable(&attributes, 0, "phalcon/mvc/model.zep", 3605); ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&attributes), _0) { ZEPHIR_INIT_NVAR(&attribute); @@ -91233,11 +89754,11 @@ static PHP_METHOD(Phalcon_Mvc_Model, hasOne) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 1, &fields, &referenceModel_param, &referencedFields, &options); - if (unlikely(Z_TYPE_P(referenceModel_param) != IS_STRING && Z_TYPE_P(referenceModel_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(referenceModel_param) != IS_STRING && Z_TYPE_P(referenceModel_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'referenceModel' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(referenceModel_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(referenceModel_param) == IS_STRING)) { zephir_get_strval(&referenceModel, referenceModel_param); } else { ZEPHIR_INIT_VAR(&referenceModel); @@ -91273,11 +89794,11 @@ static PHP_METHOD(Phalcon_Mvc_Model, belongsTo) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 1, &fields, &referenceModel_param, &referencedFields, &options); - if (unlikely(Z_TYPE_P(referenceModel_param) != IS_STRING && Z_TYPE_P(referenceModel_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(referenceModel_param) != IS_STRING && Z_TYPE_P(referenceModel_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'referenceModel' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(referenceModel_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(referenceModel_param) == IS_STRING)) { zephir_get_strval(&referenceModel, referenceModel_param); } else { ZEPHIR_INIT_VAR(&referenceModel); @@ -91313,11 +89834,11 @@ static PHP_METHOD(Phalcon_Mvc_Model, hasMany) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 1, &fields, &referenceModel_param, &referencedFields, &options); - if (unlikely(Z_TYPE_P(referenceModel_param) != IS_STRING && Z_TYPE_P(referenceModel_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(referenceModel_param) != IS_STRING && Z_TYPE_P(referenceModel_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'referenceModel' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(referenceModel_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(referenceModel_param) == IS_STRING)) { zephir_get_strval(&referenceModel, referenceModel_param); } else { ZEPHIR_INIT_VAR(&referenceModel); @@ -91356,21 +89877,21 @@ static PHP_METHOD(Phalcon_Mvc_Model, hasManyToMany) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 6, 1, &fields, &intermediateModel_param, &intermediateFields, &intermediateReferencedFields, &referenceModel_param, &referencedFields, &options); - if (unlikely(Z_TYPE_P(intermediateModel_param) != IS_STRING && Z_TYPE_P(intermediateModel_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(intermediateModel_param) != IS_STRING && Z_TYPE_P(intermediateModel_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'intermediateModel' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(intermediateModel_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(intermediateModel_param) == IS_STRING)) { zephir_get_strval(&intermediateModel, intermediateModel_param); } else { ZEPHIR_INIT_VAR(&intermediateModel); ZVAL_EMPTY_STRING(&intermediateModel); } - if (unlikely(Z_TYPE_P(referenceModel_param) != IS_STRING && Z_TYPE_P(referenceModel_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(referenceModel_param) != IS_STRING && Z_TYPE_P(referenceModel_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'referenceModel' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(referenceModel_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(referenceModel_param) == IS_STRING)) { zephir_get_strval(&referenceModel, referenceModel_param); } else { ZEPHIR_INIT_VAR(&referenceModel); @@ -91473,7 +89994,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, setSnapshotData) { if (Z_TYPE_P(columnMap) == IS_ARRAY) { ZEPHIR_INIT_VAR(&snapshot); array_init(&snapshot); - zephir_is_iterable(&data, 0, "phalcon/mvc/model.zep", 3828); + zephir_is_iterable(&data, 0, "phalcon/mvc/model.zep", 3830); ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&data), _1$$3, _2$$3, _0$$3) { ZEPHIR_INIT_NVAR(&key); @@ -91494,9 +90015,9 @@ static PHP_METHOD(Phalcon_Mvc_Model, setSnapshotData) { object_init_ex(&_3$$7, phalcon_mvc_model_exception_ce); ZEPHIR_INIT_LNVAR(_4$$7); ZEPHIR_CONCAT_SVS(&_4$$7, "Column '", &key, "' doesn't make part of the column map"); - ZEPHIR_CALL_METHOD(NULL, &_3$$7, "__construct", &_5, 9, &_4$$7); + ZEPHIR_CALL_METHOD(NULL, &_3$$7, "__construct", &_5, 4, &_4$$7); zephir_check_call_status(); - zephir_throw_exception_debug(&_3$$7, "phalcon/mvc/model.zep", 3810 TSRMLS_CC); + zephir_throw_exception_debug(&_3$$7, "phalcon/mvc/model.zep", 3812 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } else { @@ -91511,9 +90032,9 @@ static PHP_METHOD(Phalcon_Mvc_Model, setSnapshotData) { object_init_ex(&_6$$11, phalcon_mvc_model_exception_ce); ZEPHIR_INIT_LNVAR(_7$$11); ZEPHIR_CONCAT_SVS(&_7$$11, "Column '", &key, "' doesn't make part of the column map"); - ZEPHIR_CALL_METHOD(NULL, &_6$$11, "__construct", &_5, 9, &_7$$11); + ZEPHIR_CALL_METHOD(NULL, &_6$$11, "__construct", &_5, 4, &_7$$11); zephir_check_call_status(); - zephir_throw_exception_debug(&_6$$11, "phalcon/mvc/model.zep", 3819 TSRMLS_CC); + zephir_throw_exception_debug(&_6$$11, "phalcon/mvc/model.zep", 3821 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } else { @@ -91607,12 +90128,12 @@ static PHP_METHOD(Phalcon_Mvc_Model, getChangedFields) { ZEPHIR_OBS_VAR(&snapshot); zephir_read_property(&snapshot, this_ptr, SL("_snapshot"), PH_NOISY_CC); if (Z_TYPE_P(&snapshot) != IS_ARRAY) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The record doesn't have a valid data snapshot", "phalcon/mvc/model.zep", 3896); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The record doesn't have a valid data snapshot", "phalcon/mvc/model.zep", 3898); return; } zephir_read_property(&_0, this_ptr, SL("_dirtyState"), PH_NOISY_CC | PH_READONLY); if (!ZEPHIR_IS_LONG(&_0, 0)) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Change checking cannot be performed because the object has not been persisted or is deleted", "phalcon/mvc/model.zep", 3903); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Change checking cannot be performed because the object has not been persisted or is deleted", "phalcon/mvc/model.zep", 3905); return; } ZEPHIR_CALL_METHOD(&metaData, this_ptr, "getmodelsmetadata", NULL, 0); @@ -91628,7 +90149,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, getChangedFields) { ZEPHIR_INIT_VAR(&changed); array_init(&changed); ZEPHIR_INIT_VAR(&_1); - zephir_is_iterable(&allAttributes, 0, "phalcon/mvc/model.zep", 3956); + zephir_is_iterable(&allAttributes, 0, "phalcon/mvc/model.zep", 3958); ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&allAttributes), _3, _4, _2) { ZEPHIR_INIT_NVAR(&name); @@ -91640,17 +90161,17 @@ static PHP_METHOD(Phalcon_Mvc_Model, getChangedFields) { ZEPHIR_INIT_NVAR(&_1); ZVAL_COPY(&_1, _2); if (!(zephir_array_isset(&snapshot, &name))) { - zephir_array_append(&changed, &name, PH_SEPARATE, "phalcon/mvc/model.zep", 3935); + zephir_array_append(&changed, &name, PH_SEPARATE, "phalcon/mvc/model.zep", 3937); continue; } ZEPHIR_OBS_NVAR(&value); if (!(zephir_fetch_property_zval(&value, this_ptr, &name, PH_SILENT_CC))) { - zephir_array_append(&changed, &name, PH_SEPARATE, "phalcon/mvc/model.zep", 3943); + zephir_array_append(&changed, &name, PH_SEPARATE, "phalcon/mvc/model.zep", 3945); continue; } - zephir_array_fetch(&_5$$7, &snapshot, &name, PH_NOISY | PH_READONLY, "phalcon/mvc/model.zep", 3950 TSRMLS_CC); + zephir_array_fetch(&_5$$7, &snapshot, &name, PH_NOISY | PH_READONLY, "phalcon/mvc/model.zep", 3952 TSRMLS_CC); if (!ZEPHIR_IS_IDENTICAL(&value, &_5$$7)) { - zephir_array_append(&changed, &name, PH_SEPARATE, "phalcon/mvc/model.zep", 3951); + zephir_array_append(&changed, &name, PH_SEPARATE, "phalcon/mvc/model.zep", 3953); continue; } } ZEND_HASH_FOREACH_END(); @@ -91728,9 +90249,9 @@ static PHP_METHOD(Phalcon_Mvc_Model, getRelated) { object_init_ex(&_2$$3, phalcon_mvc_model_exception_ce); ZEPHIR_INIT_VAR(&_3$$3); ZEPHIR_CONCAT_SVSVS(&_3$$3, "There is no defined relations for the model '", &className, "' using alias '", &alias, "'"); - ZEPHIR_CALL_METHOD(NULL, &_2$$3, "__construct", NULL, 9, &_3$$3); + ZEPHIR_CALL_METHOD(NULL, &_2$$3, "__construct", NULL, 4, &_3$$3); zephir_check_call_status(); - zephir_throw_exception_debug(&_2$$3, "phalcon/mvc/model.zep", 3999 TSRMLS_CC); + zephir_throw_exception_debug(&_2$$3, "phalcon/mvc/model.zep", 4001 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -91766,21 +90287,21 @@ static PHP_METHOD(Phalcon_Mvc_Model, _getRelatedRecords) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &modelName_param, &method_param, &arguments); - if (unlikely(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'modelName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(modelName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(modelName_param) == IS_STRING)) { zephir_get_strval(&modelName, modelName_param); } else { ZEPHIR_INIT_VAR(&modelName); ZVAL_EMPTY_STRING(&modelName); } - if (unlikely(Z_TYPE_P(method_param) != IS_STRING && Z_TYPE_P(method_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(method_param) != IS_STRING && Z_TYPE_P(method_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'method' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(method_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(method_param) == IS_STRING)) { zephir_get_strval(&method, method_param); } else { ZEPHIR_INIT_VAR(&method); @@ -91890,9 +90411,9 @@ static PHP_METHOD(Phalcon_Mvc_Model, _invokeFinder) { object_init_ex(&_3$$7, phalcon_mvc_model_exception_ce); ZEPHIR_INIT_VAR(&_4$$7); ZEPHIR_CONCAT_SVS(&_4$$7, "The static method '", method, "' requires one argument"); - ZEPHIR_CALL_METHOD(NULL, &_3$$7, "__construct", NULL, 9, &_4$$7); + ZEPHIR_CALL_METHOD(NULL, &_3$$7, "__construct", NULL, 4, &_4$$7); zephir_check_call_status(); - zephir_throw_exception_debug(&_3$$7, "phalcon/mvc/model.zep", 4105 TSRMLS_CC); + zephir_throw_exception_debug(&_3$$7, "phalcon/mvc/model.zep", 4107 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -91915,7 +90436,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _invokeFinder) { if (zephir_array_isset(&attributes, &extraMethod)) { ZEPHIR_CPY_WRT(&field, &extraMethod); } else { - ZEPHIR_CALL_FUNCTION(&extraMethodFirst, "lcfirst", NULL, 68, &extraMethod); + ZEPHIR_CALL_FUNCTION(&extraMethodFirst, "lcfirst", NULL, 62, &extraMethod); zephir_check_call_status(); if (zephir_array_isset(&attributes, &extraMethodFirst)) { ZEPHIR_CPY_WRT(&field, &extraMethodFirst); @@ -91927,9 +90448,9 @@ static PHP_METHOD(Phalcon_Mvc_Model, _invokeFinder) { object_init_ex(&_7$$13, phalcon_mvc_model_exception_ce); ZEPHIR_INIT_VAR(&_8$$13); ZEPHIR_CONCAT_SVS(&_8$$13, "Cannot resolve attribute '", &extraMethod, "' in the model"); - ZEPHIR_CALL_METHOD(NULL, &_7$$13, "__construct", NULL, 9, &_8$$13); + ZEPHIR_CALL_METHOD(NULL, &_7$$13, "__construct", NULL, 4, &_8$$13); zephir_check_call_status(); - zephir_throw_exception_debug(&_7$$13, "phalcon/mvc/model.zep", 4139 TSRMLS_CC); + zephir_throw_exception_debug(&_7$$13, "phalcon/mvc/model.zep", 4141 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -91974,7 +90495,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, __call) { zephir_get_strval(&method, method_param); - ZEPHIR_CALL_SELF(&records, "_invokefinder", &_0, 323, &method, arguments); + ZEPHIR_CALL_SELF(&records, "_invokefinder", &_0, 292, &method, arguments); zephir_check_call_status(); if (Z_TYPE_P(&records) != IS_NULL) { RETURN_CCTOR(records); @@ -91996,9 +90517,9 @@ static PHP_METHOD(Phalcon_Mvc_Model, __call) { object_init_ex(&_2, phalcon_mvc_model_exception_ce); ZEPHIR_INIT_VAR(&_3); ZEPHIR_CONCAT_SVSVS(&_3, "The method '", &method, "' doesn't exist on model '", &modelName, "'"); - ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", NULL, 9, &_3); + ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", NULL, 4, &_3); zephir_check_call_status(); - zephir_throw_exception_debug(&_2, "phalcon/mvc/model.zep", 4190 TSRMLS_CC); + zephir_throw_exception_debug(&_2, "phalcon/mvc/model.zep", 4192 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; @@ -92024,16 +90545,16 @@ static PHP_METHOD(Phalcon_Mvc_Model, __callStatic) { zephir_get_strval(&method, method_param); - ZEPHIR_CALL_SELF(&records, "_invokefinder", &_0, 323, &method, arguments); + ZEPHIR_CALL_SELF(&records, "_invokefinder", &_0, 292, &method, arguments); zephir_check_call_status(); if (Z_TYPE_P(&records) == IS_NULL) { ZEPHIR_INIT_VAR(&_1$$3); object_init_ex(&_1$$3, phalcon_mvc_model_exception_ce); ZEPHIR_INIT_VAR(&_2$$3); ZEPHIR_CONCAT_SVS(&_2$$3, "The static method '", &method, "' doesn't exist"); - ZEPHIR_CALL_METHOD(NULL, &_1$$3, "__construct", NULL, 9, &_2$$3); + ZEPHIR_CALL_METHOD(NULL, &_1$$3, "__construct", NULL, 4, &_2$$3); zephir_check_call_status(); - zephir_throw_exception_debug(&_1$$3, "phalcon/mvc/model.zep", 4206 TSRMLS_CC); + zephir_throw_exception_debug(&_1$$3, "phalcon/mvc/model.zep", 4208 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -92107,7 +90628,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, __set) { zephir_check_call_status(); ZEPHIR_INIT_VAR(&related); array_init(&related); - zephir_is_iterable(value, 0, "phalcon/mvc/model.zep", 4266); + zephir_is_iterable(value, 0, "phalcon/mvc/model.zep", 4268); ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(value), _3$$6, _4$$6, _2$$6) { ZEPHIR_INIT_NVAR(&key); @@ -92120,7 +90641,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, __set) { ZVAL_COPY(&item, _2$$6); if (Z_TYPE_P(&item) == IS_OBJECT) { if (zephir_instance_of_ev(&item, phalcon_mvc_modelinterface_ce TSRMLS_CC)) { - zephir_array_append(&related, &item, PH_SEPARATE, "phalcon/mvc/model.zep", 4253); + zephir_array_append(&related, &item, PH_SEPARATE, "phalcon/mvc/model.zep", 4255); } } else { ZEPHIR_INIT_NVAR(&lowerKey); @@ -92150,13 +90671,13 @@ static PHP_METHOD(Phalcon_Mvc_Model, __set) { RETVAL_ZVAL(value, 1, 0); RETURN_MM(); } - ZEPHIR_CALL_METHOD(&_10, this_ptr, "_possiblesetter", NULL, 315, &property, value); + ZEPHIR_CALL_METHOD(&_10, this_ptr, "_possiblesetter", NULL, 284, &property, value); zephir_check_call_status(); if (zephir_is_true(&_10)) { RETVAL_ZVAL(value, 1, 0); RETURN_MM(); } - ZEPHIR_CALL_FUNCTION(&_11, "property_exists", NULL, 324, this_ptr, &property); + ZEPHIR_CALL_FUNCTION(&_11, "property_exists", NULL, 293, this_ptr, &property); zephir_check_call_status(); if (zephir_is_true(&_11)) { ZEPHIR_CALL_METHOD(&manager, this_ptr, "getmodelsmanager", &_1, 0); @@ -92168,9 +90689,9 @@ static PHP_METHOD(Phalcon_Mvc_Model, __set) { object_init_ex(&_13$$15, phalcon_mvc_model_exception_ce); ZEPHIR_INIT_VAR(&_14$$15); ZEPHIR_CONCAT_SVS(&_14$$15, "Property '", &property, "' does not have a setter."); - ZEPHIR_CALL_METHOD(NULL, &_13$$15, "__construct", NULL, 9, &_14$$15); + ZEPHIR_CALL_METHOD(NULL, &_13$$15, "__construct", NULL, 4, &_14$$15); zephir_check_call_status(); - zephir_throw_exception_debug(&_13$$15, "phalcon/mvc/model.zep", 4283 TSRMLS_CC); + zephir_throw_exception_debug(&_13$$15, "phalcon/mvc/model.zep", 4285 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -92238,11 +90759,11 @@ static PHP_METHOD(Phalcon_Mvc_Model, __get) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &property_param); - if (unlikely(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'property' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(property_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(property_param) == IS_STRING)) { zephir_get_strval(&property, property_param); } else { ZEPHIR_INIT_VAR(&property); @@ -92294,7 +90815,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, __get) { } ZEPHIR_INIT_VAR(&_7); ZEPHIR_CONCAT_SVSV(&_7, "Access to undefined property ", &modelName, "::", &property); - ZEPHIR_CALL_FUNCTION(NULL, "trigger_error", NULL, 2, &_7); + ZEPHIR_CALL_FUNCTION(NULL, "trigger_error", NULL, 1, &_7); zephir_check_call_status(); RETURN_MM_NULL(); @@ -92316,11 +90837,11 @@ static PHP_METHOD(Phalcon_Mvc_Model, __isset) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &property_param); - if (unlikely(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'property' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(property_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(property_param) == IS_STRING)) { zephir_get_strval(&property, property_param); } else { ZEPHIR_INIT_VAR(&property); @@ -92376,12 +90897,12 @@ static PHP_METHOD(Phalcon_Mvc_Model, serialize) { zephir_create_array(&_2$$4, 2, 0 TSRMLS_CC); zephir_array_update_string(&_2$$4, SL("_attributes"), &attributes, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_2$$4, SL("_snapshot"), &snapshot, PH_COPY | PH_SEPARATE); - ZEPHIR_RETURN_CALL_FUNCTION("serialize", &_3, 65, &_2$$4); + ZEPHIR_RETURN_CALL_FUNCTION("serialize", &_3, 59, &_2$$4); zephir_check_call_status(); RETURN_MM(); } } - ZEPHIR_RETURN_CALL_FUNCTION("serialize", &_3, 65, &attributes); + ZEPHIR_RETURN_CALL_FUNCTION("serialize", &_3, 59, &attributes); zephir_check_call_status(); RETURN_MM(); @@ -92411,11 +90932,11 @@ static PHP_METHOD(Phalcon_Mvc_Model, unserialize) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &data_param); - if (unlikely(Z_TYPE_P(data_param) != IS_STRING && Z_TYPE_P(data_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(data_param) != IS_STRING && Z_TYPE_P(data_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'data' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(data_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(data_param) == IS_STRING)) { zephir_get_strval(&data, data_param); } else { ZEPHIR_INIT_VAR(&data); @@ -92423,13 +90944,13 @@ static PHP_METHOD(Phalcon_Mvc_Model, unserialize) { } - ZEPHIR_CALL_FUNCTION(&attributes, "unserialize", NULL, 66, &data); + ZEPHIR_CALL_FUNCTION(&attributes, "unserialize", NULL, 60, &data); zephir_check_call_status(); if (Z_TYPE_P(&attributes) == IS_ARRAY) { - ZEPHIR_CALL_CE_STATIC(&dependencyInjector, phalcon_di_ce, "getdefault", &_0, 1); + ZEPHIR_CALL_CE_STATIC(&dependencyInjector, phalcon_di_ce, "getdefault", &_0, 0); zephir_check_call_status(); if (Z_TYPE_P(&dependencyInjector) != IS_OBJECT) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "A dependency injector container is required to obtain the services related to the ORM", "phalcon/mvc/model.zep", 4437); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "A dependency injector container is required to obtain the services related to the ORM", "phalcon/mvc/model.zep", 4439); return; } zephir_update_property_zval(this_ptr, SL("_dependencyInjector"), &dependencyInjector); @@ -92439,7 +90960,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, unserialize) { zephir_check_call_status(); ZEPHIR_CPY_WRT(&manager, &_1$$3); if (Z_TYPE_P(&manager) != IS_OBJECT) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The injected service 'modelsManager' is not valid", "phalcon/mvc/model.zep", 4450); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The injected service 'modelsManager' is not valid", "phalcon/mvc/model.zep", 4452); return; } zephir_update_property_zval(this_ptr, SL("_modelsManager"), &manager); @@ -92450,13 +90971,13 @@ static PHP_METHOD(Phalcon_Mvc_Model, unserialize) { if (zephir_is_true(&_1$$3)) { if (zephir_array_isset_string_fetch(&snapshot, &attributes, SL("_snapshot"), 1)) { zephir_update_property_zval(this_ptr, SL("_snapshot"), &snapshot); - zephir_array_fetch_string(&_3$$7, &attributes, SL("_attributes"), PH_NOISY | PH_READONLY, "phalcon/mvc/model.zep", 4465 TSRMLS_CC); + zephir_array_fetch_string(&_3$$7, &attributes, SL("_attributes"), PH_NOISY | PH_READONLY, "phalcon/mvc/model.zep", 4467 TSRMLS_CC); ZEPHIR_CPY_WRT(&attributes, &_3$$7); } else { zephir_update_property_zval(this_ptr, SL("_snapshot"), &attributes); } } - zephir_is_iterable(&attributes, 0, "phalcon/mvc/model.zep", 4478); + zephir_is_iterable(&attributes, 0, "phalcon/mvc/model.zep", 4480); ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&attributes), _5$$3, _6$$3, _4$$3) { ZEPHIR_INIT_NVAR(&key); @@ -92484,7 +91005,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, dump) { ZEPHIR_MM_GROW(); - ZEPHIR_RETURN_CALL_FUNCTION("get_object_vars", NULL, 21, this_ptr); + ZEPHIR_RETURN_CALL_FUNCTION("get_object_vars", NULL, 16, this_ptr); zephir_check_call_status(); RETURN_MM(); @@ -92526,7 +91047,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, toArray) { zephir_check_call_status(); ZEPHIR_CALL_METHOD(&_0, &metaData, "getattributes", NULL, 0, this_ptr); zephir_check_call_status(); - zephir_is_iterable(&_0, 0, "phalcon/mvc/model.zep", 4546); + zephir_is_iterable(&_0, 0, "phalcon/mvc/model.zep", 4548); ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&_0), _1) { ZEPHIR_INIT_NVAR(&attribute); @@ -92539,9 +91060,9 @@ static PHP_METHOD(Phalcon_Mvc_Model, toArray) { object_init_ex(&_2$$6, phalcon_mvc_model_exception_ce); ZEPHIR_INIT_LNVAR(_3$$6); ZEPHIR_CONCAT_SVS(&_3$$6, "Column '", &attribute, "' doesn't make part of the column map"); - ZEPHIR_CALL_METHOD(NULL, &_2$$6, "__construct", &_4, 9, &_3$$6); + ZEPHIR_CALL_METHOD(NULL, &_2$$6, "__construct", &_4, 4, &_3$$6); zephir_check_call_status(); - zephir_throw_exception_debug(&_2$$6, "phalcon/mvc/model.zep", 4524 TSRMLS_CC); + zephir_throw_exception_debug(&_2$$6, "phalcon/mvc/model.zep", 4526 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } else { @@ -92866,7 +91387,7 @@ static PHP_METHOD(Phalcon_Mvc_Router, __construct) { if (!defaultRoutes_param) { defaultRoutes = 1; } else { - if (unlikely(Z_TYPE_P(defaultRoutes_param) != IS_TRUE && Z_TYPE_P(defaultRoutes_param) != IS_FALSE)) { + if (UNEXPECTED(Z_TYPE_P(defaultRoutes_param) != IS_TRUE && Z_TYPE_P(defaultRoutes_param) != IS_FALSE)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'defaultRoutes' must be a bool") TSRMLS_CC); RETURN_MM_NULL(); } @@ -92884,7 +91405,7 @@ static PHP_METHOD(Phalcon_Mvc_Router, __construct) { add_assoc_long_ex(&_1$$3, SL("controller"), 1); ZEPHIR_INIT_VAR(&_2$$3); ZVAL_STRING(&_2$$3, "#^/([\\w0-9\\_\\-]+)[/]{0,1}$#u"); - ZEPHIR_CALL_METHOD(NULL, &_0$$3, "__construct", &_3, 77, &_2$$3, &_1$$3); + ZEPHIR_CALL_METHOD(NULL, &_0$$3, "__construct", &_3, 70, &_2$$3, &_1$$3); zephir_check_call_status(); zephir_array_append(&routes, &_0$$3, PH_SEPARATE, "phalcon/mvc/router.zep", 120); ZEPHIR_INIT_NVAR(&_2$$3); @@ -92896,7 +91417,7 @@ static PHP_METHOD(Phalcon_Mvc_Router, __construct) { add_assoc_long_ex(&_4$$3, SL("params"), 3); ZEPHIR_INIT_VAR(&_5$$3); ZVAL_STRING(&_5$$3, "#^/([\\w0-9\\_\\-]+)/([\\w0-9\\.\\_]+)(/.*)*$#u"); - ZEPHIR_CALL_METHOD(NULL, &_2$$3, "__construct", &_3, 77, &_5$$3, &_4$$3); + ZEPHIR_CALL_METHOD(NULL, &_2$$3, "__construct", &_3, 70, &_5$$3, &_4$$3); zephir_check_call_status(); zephir_array_append(&routes, &_2$$3, PH_SEPARATE, "phalcon/mvc/router.zep", 126); } @@ -93019,7 +91540,7 @@ static PHP_METHOD(Phalcon_Mvc_Router, removeExtraSlashes) { zephir_fetch_params(0, 1, 0, &remove_param); - if (unlikely(Z_TYPE_P(remove_param) != IS_TRUE && Z_TYPE_P(remove_param) != IS_FALSE)) { + if (UNEXPECTED(Z_TYPE_P(remove_param) != IS_TRUE && Z_TYPE_P(remove_param) != IS_FALSE)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'remove' must be a bool") TSRMLS_CC); RETURN_NULL(); } @@ -93046,11 +91567,11 @@ static PHP_METHOD(Phalcon_Mvc_Router, setDefaultNamespace) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &namespaceName_param); - if (unlikely(Z_TYPE_P(namespaceName_param) != IS_STRING && Z_TYPE_P(namespaceName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(namespaceName_param) != IS_STRING && Z_TYPE_P(namespaceName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'namespaceName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(namespaceName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(namespaceName_param) == IS_STRING)) { zephir_get_strval(&namespaceName, namespaceName_param); } else { ZEPHIR_INIT_VAR(&namespaceName); @@ -93074,11 +91595,11 @@ static PHP_METHOD(Phalcon_Mvc_Router, setDefaultModule) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &moduleName_param); - if (unlikely(Z_TYPE_P(moduleName_param) != IS_STRING && Z_TYPE_P(moduleName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(moduleName_param) != IS_STRING && Z_TYPE_P(moduleName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'moduleName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(moduleName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(moduleName_param) == IS_STRING)) { zephir_get_strval(&moduleName, moduleName_param); } else { ZEPHIR_INIT_VAR(&moduleName); @@ -93102,11 +91623,11 @@ static PHP_METHOD(Phalcon_Mvc_Router, setDefaultController) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &controllerName_param); - if (unlikely(Z_TYPE_P(controllerName_param) != IS_STRING && Z_TYPE_P(controllerName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(controllerName_param) != IS_STRING && Z_TYPE_P(controllerName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'controllerName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(controllerName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(controllerName_param) == IS_STRING)) { zephir_get_strval(&controllerName, controllerName_param); } else { ZEPHIR_INIT_VAR(&controllerName); @@ -93130,11 +91651,11 @@ static PHP_METHOD(Phalcon_Mvc_Router, setDefaultAction) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &actionName_param); - if (unlikely(Z_TYPE_P(actionName_param) != IS_STRING && Z_TYPE_P(actionName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(actionName_param) != IS_STRING && Z_TYPE_P(actionName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'actionName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(actionName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(actionName_param) == IS_STRING)) { zephir_get_strval(&actionName, actionName_param); } else { ZEPHIR_INIT_VAR(&actionName); @@ -93495,7 +92016,7 @@ static PHP_METHOD(Phalcon_Mvc_Router, handle) { object_init_ex(&_25$$36, phalcon_mvc_router_exception_ce); ZEPHIR_INIT_LNVAR(_26$$36); ZEPHIR_CONCAT_SV(&_26$$36, "Wrong key in paths: ", &part); - ZEPHIR_CALL_METHOD(NULL, &_25$$36, "__construct", &_27, 9, &_26$$36); + ZEPHIR_CALL_METHOD(NULL, &_25$$36, "__construct", &_27, 4, &_26$$36); zephir_check_call_status(); zephir_throw_exception_debug(&_25$$36, "phalcon/mvc/router.zep", 524 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -93569,7 +92090,7 @@ static PHP_METHOD(Phalcon_Mvc_Router, handle) { ZEPHIR_OBS_VAR(¬FoundPaths); zephir_read_property(¬FoundPaths, this_ptr, SL("_notFoundPaths"), PH_NOISY_CC); if (Z_TYPE_P(¬FoundPaths) != IS_NULL) { - ZEPHIR_CALL_CE_STATIC(&parts, phalcon_mvc_router_route_ce, "getroutepaths", &_33, 78, ¬FoundPaths); + ZEPHIR_CALL_CE_STATIC(&parts, phalcon_mvc_router_route_ce, "getroutepaths", &_33, 0, ¬FoundPaths); zephir_check_call_status(); ZEPHIR_INIT_NVAR(&routeFound); ZVAL_BOOL(&routeFound, 1); @@ -93667,11 +92188,11 @@ static PHP_METHOD(Phalcon_Mvc_Router, add) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 3, &pattern_param, &paths, &httpMethods, &position); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(&pattern, pattern_param); } else { ZEPHIR_INIT_VAR(&pattern); @@ -93694,7 +92215,7 @@ static PHP_METHOD(Phalcon_Mvc_Router, add) { ZEPHIR_INIT_VAR(&route); object_init_ex(&route, phalcon_mvc_router_route_ce); - ZEPHIR_CALL_METHOD(NULL, &route, "__construct", NULL, 77, &pattern, paths, httpMethods); + ZEPHIR_CALL_METHOD(NULL, &route, "__construct", NULL, 70, &pattern, paths, httpMethods); zephir_check_call_status(); do { if (ZEPHIR_IS_LONG(position, 1)) { @@ -93735,11 +92256,11 @@ static PHP_METHOD(Phalcon_Mvc_Router, addGet) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &pattern_param, &paths, &position); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(&pattern, pattern_param); } else { ZEPHIR_INIT_VAR(&pattern); @@ -93780,11 +92301,11 @@ static PHP_METHOD(Phalcon_Mvc_Router, addPost) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &pattern_param, &paths, &position); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(&pattern, pattern_param); } else { ZEPHIR_INIT_VAR(&pattern); @@ -93825,11 +92346,11 @@ static PHP_METHOD(Phalcon_Mvc_Router, addPut) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &pattern_param, &paths, &position); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(&pattern, pattern_param); } else { ZEPHIR_INIT_VAR(&pattern); @@ -93870,11 +92391,11 @@ static PHP_METHOD(Phalcon_Mvc_Router, addPatch) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &pattern_param, &paths, &position); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(&pattern, pattern_param); } else { ZEPHIR_INIT_VAR(&pattern); @@ -93915,11 +92436,11 @@ static PHP_METHOD(Phalcon_Mvc_Router, addDelete) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &pattern_param, &paths, &position); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(&pattern, pattern_param); } else { ZEPHIR_INIT_VAR(&pattern); @@ -93960,11 +92481,11 @@ static PHP_METHOD(Phalcon_Mvc_Router, addOptions) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &pattern_param, &paths, &position); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(&pattern, pattern_param); } else { ZEPHIR_INIT_VAR(&pattern); @@ -94005,11 +92526,11 @@ static PHP_METHOD(Phalcon_Mvc_Router, addHead) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &pattern_param, &paths, &position); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(&pattern, pattern_param); } else { ZEPHIR_INIT_VAR(&pattern); @@ -94050,11 +92571,11 @@ static PHP_METHOD(Phalcon_Mvc_Router, addPurge) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &pattern_param, &paths, &position); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(&pattern, pattern_param); } else { ZEPHIR_INIT_VAR(&pattern); @@ -94095,11 +92616,11 @@ static PHP_METHOD(Phalcon_Mvc_Router, addTrace) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &pattern_param, &paths, &position); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(&pattern, pattern_param); } else { ZEPHIR_INIT_VAR(&pattern); @@ -94140,11 +92661,11 @@ static PHP_METHOD(Phalcon_Mvc_Router, addConnect) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &pattern_param, &paths, &position); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(&pattern, pattern_param); } else { ZEPHIR_INIT_VAR(&pattern); @@ -94403,11 +92924,11 @@ static PHP_METHOD(Phalcon_Mvc_Router, getRouteByName) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(&name, name_param); } else { ZEPHIR_INIT_VAR(&name); @@ -94614,11 +93135,11 @@ static PHP_METHOD(Phalcon_Mvc_Url, setBaseUri) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &baseUri_param); - if (unlikely(Z_TYPE_P(baseUri_param) != IS_STRING && Z_TYPE_P(baseUri_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(baseUri_param) != IS_STRING && Z_TYPE_P(baseUri_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'baseUri' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(baseUri_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(baseUri_param) == IS_STRING)) { zephir_get_strval(&baseUri, baseUri_param); } else { ZEPHIR_INIT_VAR(&baseUri); @@ -94646,11 +93167,11 @@ static PHP_METHOD(Phalcon_Mvc_Url, setStaticBaseUri) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &staticBaseUri_param); - if (unlikely(Z_TYPE_P(staticBaseUri_param) != IS_STRING && Z_TYPE_P(staticBaseUri_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(staticBaseUri_param) != IS_STRING && Z_TYPE_P(staticBaseUri_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'staticBaseUri' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(staticBaseUri_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(staticBaseUri_param) == IS_STRING)) { zephir_get_strval(&staticBaseUri, staticBaseUri_param); } else { ZEPHIR_INIT_VAR(&staticBaseUri); @@ -94731,11 +93252,11 @@ static PHP_METHOD(Phalcon_Mvc_Url, setBasePath) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &basePath_param); - if (unlikely(Z_TYPE_P(basePath_param) != IS_STRING && Z_TYPE_P(basePath_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(basePath_param) != IS_STRING && Z_TYPE_P(basePath_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'basePath' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(basePath_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(basePath_param) == IS_STRING)) { zephir_get_strval(&basePath, basePath_param); } else { ZEPHIR_INIT_VAR(&basePath); @@ -94884,7 +93405,7 @@ static PHP_METHOD(Phalcon_Mvc_Url, get) { object_init_ex(&_10$$13, phalcon_mvc_url_exception_ce); ZEPHIR_INIT_VAR(&_11$$13); ZEPHIR_CONCAT_SVS(&_11$$13, "Cannot obtain a route using the name '", &routeName, "'"); - ZEPHIR_CALL_METHOD(NULL, &_10$$13, "__construct", NULL, 9, &_11$$13); + ZEPHIR_CALL_METHOD(NULL, &_10$$13, "__construct", NULL, 4, &_11$$13); zephir_check_call_status(); zephir_throw_exception_debug(&_10$$13, "phalcon/mvc/url.zep", 250 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -94940,7 +93461,7 @@ static PHP_METHOD(Phalcon_Mvc_Url, get) { } } if (zephir_is_true(args)) { - ZEPHIR_CALL_FUNCTION(&queryString, "http_build_query", NULL, 385, args); + ZEPHIR_CALL_FUNCTION(&queryString, "http_build_query", NULL, 348, args); zephir_check_call_status(); _25$$19 = Z_TYPE_P(&queryString) == IS_STRING; if (_25$$19) { @@ -95599,11 +94120,11 @@ static PHP_METHOD(Phalcon_Mvc_View, setParamToView) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &key_param, &value); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(&key, key_param); } else { ZEPHIR_INIT_VAR(&key); @@ -95662,11 +94183,11 @@ static PHP_METHOD(Phalcon_Mvc_View, setVar) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &key_param, &value); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(&key, key_param); } else { ZEPHIR_INIT_VAR(&key); @@ -95692,11 +94213,11 @@ static PHP_METHOD(Phalcon_Mvc_View, getVar) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &key_param); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(&key, key_param); } else { ZEPHIR_INIT_VAR(&key); @@ -95758,7 +94279,7 @@ static PHP_METHOD(Phalcon_Mvc_View, start) { ZEPHIR_MM_GROW(); - ZEPHIR_CALL_FUNCTION(NULL, "ob_start", NULL, 126); + ZEPHIR_CALL_FUNCTION(NULL, "ob_start", NULL, 115); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_content"), &__$null); RETURN_THIS(); @@ -95801,7 +94322,7 @@ static PHP_METHOD(Phalcon_Mvc_View, _loadTemplateEngines) { if (Z_TYPE_P(®isteredEngines) != IS_ARRAY) { ZEPHIR_INIT_VAR(&_1$$4); object_init_ex(&_1$$4, phalcon_mvc_view_engine_php_ce); - ZEPHIR_CALL_METHOD(NULL, &_1$$4, "__construct", NULL, 386, this_ptr, &dependencyInjector); + ZEPHIR_CALL_METHOD(NULL, &_1$$4, "__construct", NULL, 349, this_ptr, &dependencyInjector); zephir_check_call_status(); zephir_array_update_string(&engines, SL(".phtml"), &_1$$4, PH_COPY | PH_SEPARATE); } else { @@ -95839,7 +94360,7 @@ static PHP_METHOD(Phalcon_Mvc_View, _loadTemplateEngines) { object_init_ex(&_6$$12, phalcon_mvc_view_exception_ce); ZEPHIR_INIT_LNVAR(_7$$12); ZEPHIR_CONCAT_SV(&_7$$12, "Invalid template engine registration for extension: ", &extension); - ZEPHIR_CALL_METHOD(NULL, &_6$$12, "__construct", &_8, 9, &_7$$12); + ZEPHIR_CALL_METHOD(NULL, &_6$$12, "__construct", &_8, 4, &_7$$12); zephir_check_call_status(); zephir_throw_exception_debug(&_6$$12, "phalcon/mvc/view.zep", 563 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -95933,7 +94454,7 @@ static PHP_METHOD(Phalcon_Mvc_View, _engineRender) { { ZEPHIR_INIT_NVAR(&viewsDir); ZVAL_COPY(&viewsDir, _2); - ZEPHIR_CALL_METHOD(&_3$$3, this_ptr, "_isabsolutepath", &_4, 387, &viewPath); + ZEPHIR_CALL_METHOD(&_3$$3, this_ptr, "_isabsolutepath", &_4, 350, &viewPath); zephir_check_call_status(); if (!(zephir_is_true(&_3$$3))) { ZEPHIR_INIT_NVAR(&viewsDirPath); @@ -96047,7 +94568,7 @@ static PHP_METHOD(Phalcon_Mvc_View, _engineRender) { object_init_ex(&_23$$21, phalcon_mvc_view_exception_ce); ZEPHIR_INIT_VAR(&_24$$21); ZEPHIR_CONCAT_SVS(&_24$$21, "View '", &viewPath, "' was not found in any of the views directory"); - ZEPHIR_CALL_METHOD(NULL, &_23$$21, "__construct", NULL, 9, &_24$$21); + ZEPHIR_CALL_METHOD(NULL, &_23$$21, "__construct", NULL, 4, &_24$$21); zephir_check_call_status(); zephir_throw_exception_debug(&_23$$21, "phalcon/mvc/view.zep", 706 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -96098,11 +94619,11 @@ static PHP_METHOD(Phalcon_Mvc_View, exists) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &view_param); - if (unlikely(Z_TYPE_P(view_param) != IS_STRING && Z_TYPE_P(view_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(view_param) != IS_STRING && Z_TYPE_P(view_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'view' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(view_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(view_param) == IS_STRING)) { zephir_get_strval(&view, view_param); } else { ZEPHIR_INIT_VAR(&view); @@ -96215,21 +94736,21 @@ static PHP_METHOD(Phalcon_Mvc_View, render) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 1, &controllerName_param, &actionName_param, ¶ms); - if (unlikely(Z_TYPE_P(controllerName_param) != IS_STRING && Z_TYPE_P(controllerName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(controllerName_param) != IS_STRING && Z_TYPE_P(controllerName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'controllerName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(controllerName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(controllerName_param) == IS_STRING)) { zephir_get_strval(&controllerName, controllerName_param); } else { ZEPHIR_INIT_VAR(&controllerName); ZVAL_EMPTY_STRING(&controllerName); } - if (unlikely(Z_TYPE_P(actionName_param) != IS_STRING && Z_TYPE_P(actionName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(actionName_param) != IS_STRING && Z_TYPE_P(actionName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'actionName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(actionName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(actionName_param) == IS_STRING)) { zephir_get_strval(&actionName, actionName_param); } else { ZEPHIR_INIT_VAR(&actionName); @@ -96246,7 +94767,7 @@ static PHP_METHOD(Phalcon_Mvc_View, render) { zephir_update_property_zval(this_ptr, SL("_currentRenderLevel"), &_0); zephir_read_property(&_0, this_ptr, SL("_disabled"), PH_NOISY_CC | PH_READONLY); if (!ZEPHIR_IS_FALSE_IDENTICAL(&_0)) { - ZEPHIR_CALL_FUNCTION(&_1$$3, "ob_get_contents", &_2, 127); + ZEPHIR_CALL_FUNCTION(&_1$$3, "ob_get_contents", &_2, 116); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_content"), &_1$$3); RETURN_MM_BOOL(0); @@ -96311,7 +94832,7 @@ static PHP_METHOD(Phalcon_Mvc_View, render) { RETURN_MM_BOOL(0); } } - ZEPHIR_CALL_FUNCTION(&_10, "ob_get_contents", &_2, 127); + ZEPHIR_CALL_FUNCTION(&_10, "ob_get_contents", &_2, 116); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_content"), &_10); mustClean = 1; @@ -96529,11 +95050,11 @@ static PHP_METHOD(Phalcon_Mvc_View, getPartial) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &partialPath_param, ¶ms); - if (unlikely(Z_TYPE_P(partialPath_param) != IS_STRING && Z_TYPE_P(partialPath_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(partialPath_param) != IS_STRING && Z_TYPE_P(partialPath_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'partialPath' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(partialPath_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(partialPath_param) == IS_STRING)) { zephir_get_strval(&partialPath, partialPath_param); } else { ZEPHIR_INIT_VAR(&partialPath); @@ -96545,11 +95066,11 @@ static PHP_METHOD(Phalcon_Mvc_View, getPartial) { } - ZEPHIR_CALL_FUNCTION(NULL, "ob_start", NULL, 126); + ZEPHIR_CALL_FUNCTION(NULL, "ob_start", NULL, 115); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, this_ptr, "partial", NULL, 0, &partialPath, params); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_FUNCTION("ob_get_clean", NULL, 294); + ZEPHIR_RETURN_CALL_FUNCTION("ob_get_clean", NULL, 262); zephir_check_call_status(); RETURN_MM(); @@ -96577,11 +95098,11 @@ static PHP_METHOD(Phalcon_Mvc_View, partial) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &partialPath_param, ¶ms); - if (unlikely(Z_TYPE_P(partialPath_param) != IS_STRING && Z_TYPE_P(partialPath_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(partialPath_param) != IS_STRING && Z_TYPE_P(partialPath_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'partialPath' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(partialPath_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(partialPath_param) == IS_STRING)) { zephir_get_strval(&partialPath, partialPath_param); } else { ZEPHIR_INIT_VAR(&partialPath); @@ -96639,21 +95160,21 @@ static PHP_METHOD(Phalcon_Mvc_View, getRender) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 2, &controllerName_param, &actionName_param, ¶ms, &configCallback); - if (unlikely(Z_TYPE_P(controllerName_param) != IS_STRING && Z_TYPE_P(controllerName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(controllerName_param) != IS_STRING && Z_TYPE_P(controllerName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'controllerName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(controllerName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(controllerName_param) == IS_STRING)) { zephir_get_strval(&controllerName, controllerName_param); } else { ZEPHIR_INIT_VAR(&controllerName); ZVAL_EMPTY_STRING(&controllerName); } - if (unlikely(Z_TYPE_P(actionName_param) != IS_STRING && Z_TYPE_P(actionName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(actionName_param) != IS_STRING && Z_TYPE_P(actionName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'actionName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(actionName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(actionName_param) == IS_STRING)) { zephir_get_strval(&actionName, actionName_param); } else { ZEPHIR_INIT_VAR(&actionName); @@ -96691,7 +95212,7 @@ static PHP_METHOD(Phalcon_Mvc_View, getRender) { zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, &view, "render", NULL, 0, &controllerName, &actionName); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(NULL, "ob_end_clean", NULL, 128); + ZEPHIR_CALL_FUNCTION(NULL, "ob_end_clean", NULL, 117); zephir_check_call_status(); ZEPHIR_RETURN_CALL_METHOD(&view, "getcontent", NULL, 0); zephir_check_call_status(); @@ -96707,7 +95228,7 @@ static PHP_METHOD(Phalcon_Mvc_View, finish) { ZEPHIR_MM_GROW(); - ZEPHIR_CALL_FUNCTION(NULL, "ob_end_clean", NULL, 128); + ZEPHIR_CALL_FUNCTION(NULL, "ob_end_clean", NULL, 117); zephir_check_call_status(); RETURN_THIS(); @@ -97028,11 +95549,11 @@ static PHP_METHOD(Phalcon_Mvc_View, __set) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &key_param, &value); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(&key, key_param); } else { ZEPHIR_INIT_VAR(&key); @@ -97058,11 +95579,11 @@ static PHP_METHOD(Phalcon_Mvc_View, __get) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &key_param); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(&key, key_param); } else { ZEPHIR_INIT_VAR(&key); @@ -97099,11 +95620,11 @@ static PHP_METHOD(Phalcon_Mvc_View, __isset) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &key_param); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(&key, key_param); } else { ZEPHIR_INIT_VAR(&key); @@ -97370,11 +95891,11 @@ static PHP_METHOD(Phalcon_Mvc_Collection_Behavior, mustTakeAction) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &eventName_param); - if (unlikely(Z_TYPE_P(eventName_param) != IS_STRING && Z_TYPE_P(eventName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(eventName_param) != IS_STRING && Z_TYPE_P(eventName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'eventName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(eventName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(eventName_param) == IS_STRING)) { zephir_get_strval(&eventName, eventName_param); } else { ZEPHIR_INIT_VAR(&eventName); @@ -97404,11 +95925,11 @@ static PHP_METHOD(Phalcon_Mvc_Collection_Behavior, getOptions) { ZEPHIR_INIT_VAR(&eventName); ZVAL_STRING(&eventName, ""); } else { - if (unlikely(Z_TYPE_P(eventName_param) != IS_STRING && Z_TYPE_P(eventName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(eventName_param) != IS_STRING && Z_TYPE_P(eventName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'eventName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(eventName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(eventName_param) == IS_STRING)) { zephir_get_strval(&eventName, eventName_param); } else { ZEPHIR_INIT_VAR(&eventName); @@ -97525,11 +96046,11 @@ static PHP_METHOD(Phalcon_Mvc_Collection_Document, offsetExists) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &index_param); - if (unlikely(Z_TYPE_P(index_param) != IS_STRING && Z_TYPE_P(index_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(index_param) != IS_STRING && Z_TYPE_P(index_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'index' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(index_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(index_param) == IS_STRING)) { zephir_get_strval(&index, index_param); } else { ZEPHIR_INIT_VAR(&index); @@ -97553,11 +96074,11 @@ static PHP_METHOD(Phalcon_Mvc_Collection_Document, offsetGet) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &index_param); - if (unlikely(Z_TYPE_P(index_param) != IS_STRING && Z_TYPE_P(index_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(index_param) != IS_STRING && Z_TYPE_P(index_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'index' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(index_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(index_param) == IS_STRING)) { zephir_get_strval(&index, index_param); } else { ZEPHIR_INIT_VAR(&index); @@ -97586,11 +96107,11 @@ static PHP_METHOD(Phalcon_Mvc_Collection_Document, offsetSet) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &index_param, &value); - if (unlikely(Z_TYPE_P(index_param) != IS_STRING && Z_TYPE_P(index_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(index_param) != IS_STRING && Z_TYPE_P(index_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'index' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(index_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(index_param) == IS_STRING)) { zephir_get_strval(&index, index_param); } else { ZEPHIR_INIT_VAR(&index); @@ -97652,11 +96173,11 @@ static PHP_METHOD(Phalcon_Mvc_Collection_Document, writeAttribute) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &attribute_param, &value); - if (unlikely(Z_TYPE_P(attribute_param) != IS_STRING && Z_TYPE_P(attribute_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(attribute_param) != IS_STRING && Z_TYPE_P(attribute_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'attribute' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(attribute_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(attribute_param) == IS_STRING)) { zephir_get_strval(&attribute, attribute_param); } else { ZEPHIR_INIT_VAR(&attribute); @@ -97677,7 +96198,7 @@ static PHP_METHOD(Phalcon_Mvc_Collection_Document, toArray) { ZEPHIR_MM_GROW(); - ZEPHIR_RETURN_CALL_FUNCTION("get_object_vars", NULL, 21, this_ptr); + ZEPHIR_RETURN_CALL_FUNCTION("get_object_vars", NULL, 16, this_ptr); zephir_check_call_status(); RETURN_MM(); @@ -97915,11 +96436,11 @@ static PHP_METHOD(Phalcon_Mvc_Collection_Manager, isInitialized) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &modelName_param); - if (unlikely(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'modelName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(modelName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(modelName_param) == IS_STRING)) { zephir_get_strval(&modelName, modelName_param); } else { ZEPHIR_INIT_VAR(&modelName); @@ -97956,11 +96477,11 @@ static PHP_METHOD(Phalcon_Mvc_Collection_Manager, setConnectionService) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &model, &connectionService_param); - if (unlikely(Z_TYPE_P(connectionService_param) != IS_STRING && Z_TYPE_P(connectionService_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(connectionService_param) != IS_STRING && Z_TYPE_P(connectionService_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'connectionService' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(connectionService_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(connectionService_param) == IS_STRING)) { zephir_get_strval(&connectionService, connectionService_param); } else { ZEPHIR_INIT_VAR(&connectionService); @@ -98124,11 +96645,11 @@ static PHP_METHOD(Phalcon_Mvc_Collection_Manager, notifyEvent) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &eventName_param, &model); - if (unlikely(Z_TYPE_P(eventName_param) != IS_STRING && Z_TYPE_P(eventName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(eventName_param) != IS_STRING && Z_TYPE_P(eventName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'eventName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(eventName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(eventName_param) == IS_STRING)) { zephir_get_strval(&eventName, eventName_param); } else { ZEPHIR_INIT_VAR(&eventName); @@ -98210,11 +96731,11 @@ static PHP_METHOD(Phalcon_Mvc_Collection_Manager, missingMethod) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &model, &eventName_param, &data); - if (unlikely(Z_TYPE_P(eventName_param) != IS_STRING && Z_TYPE_P(eventName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(eventName_param) != IS_STRING && Z_TYPE_P(eventName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'eventName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(eventName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(eventName_param) == IS_STRING)) { zephir_get_strval(&eventName, eventName_param); } else { ZEPHIR_INIT_VAR(&eventName); @@ -98367,11 +96888,11 @@ static PHP_METHOD(Phalcon_Mvc_Collection_Behavior_SoftDelete, notify) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &type_param, &model); - if (unlikely(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'type' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(type_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(type_param) == IS_STRING)) { zephir_get_strval(&type, type_param); } else { ZEPHIR_INIT_VAR(&type); @@ -98467,11 +96988,11 @@ static PHP_METHOD(Phalcon_Mvc_Collection_Behavior_Timestampable, notify) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &type_param, &model); - if (unlikely(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'type' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(type_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(type_param) == IS_STRING)) { zephir_get_strval(&type, type_param); } else { ZEPHIR_INIT_VAR(&type); @@ -98496,7 +97017,7 @@ static PHP_METHOD(Phalcon_Mvc_Collection_Behavior_Timestampable, notify) { ZVAL_NULL(×tamp); ZEPHIR_OBS_VAR(&format); if (zephir_array_isset_string_fetch(&format, &options, SL("format"), 0)) { - ZEPHIR_CALL_FUNCTION(×tamp, "date", NULL, 303, &format); + ZEPHIR_CALL_FUNCTION(×tamp, "date", NULL, 271, &format); zephir_check_call_status(); } else { ZEPHIR_OBS_VAR(&generator); @@ -98614,11 +97135,11 @@ static PHP_METHOD(Phalcon_Mvc_Micro_Collection, _addMap) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 4, 0, &method_param, &routePattern, &handler, &name); - if (unlikely(Z_TYPE_P(method_param) != IS_STRING && Z_TYPE_P(method_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(method_param) != IS_STRING && Z_TYPE_P(method_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'method' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(method_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(method_param) == IS_STRING)) { zephir_get_strval(&method, method_param); } else { ZEPHIR_INIT_VAR(&method); @@ -98648,11 +97169,11 @@ static PHP_METHOD(Phalcon_Mvc_Micro_Collection, setPrefix) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &prefix_param); - if (unlikely(Z_TYPE_P(prefix_param) != IS_STRING && Z_TYPE_P(prefix_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(prefix_param) != IS_STRING && Z_TYPE_P(prefix_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'prefix' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(prefix_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(prefix_param) == IS_STRING)) { zephir_get_strval(&prefix, prefix_param); } else { ZEPHIR_INIT_VAR(&prefix); @@ -98723,7 +97244,7 @@ static PHP_METHOD(Phalcon_Mvc_Micro_Collection, setLazy) { zephir_fetch_params(0, 1, 0, &lazy_param); - if (unlikely(Z_TYPE_P(lazy_param) != IS_TRUE && Z_TYPE_P(lazy_param) != IS_FALSE)) { + if (UNEXPECTED(Z_TYPE_P(lazy_param) != IS_TRUE && Z_TYPE_P(lazy_param) != IS_FALSE)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'lazy' must be a bool") TSRMLS_CC); RETURN_NULL(); } @@ -98773,11 +97294,11 @@ static PHP_METHOD(Phalcon_Mvc_Micro_Collection, map) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 1, &routePattern_param, &handler, &name); - if (unlikely(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'routePattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(routePattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(routePattern_param) == IS_STRING)) { zephir_get_strval(&routePattern, routePattern_param); } else { ZEPHIR_INIT_VAR(&routePattern); @@ -98812,11 +97333,11 @@ static PHP_METHOD(Phalcon_Mvc_Micro_Collection, get) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 1, &routePattern_param, &handler, &name); - if (unlikely(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'routePattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(routePattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(routePattern_param) == IS_STRING)) { zephir_get_strval(&routePattern, routePattern_param); } else { ZEPHIR_INIT_VAR(&routePattern); @@ -98852,11 +97373,11 @@ static PHP_METHOD(Phalcon_Mvc_Micro_Collection, post) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 1, &routePattern_param, &handler, &name); - if (unlikely(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'routePattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(routePattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(routePattern_param) == IS_STRING)) { zephir_get_strval(&routePattern, routePattern_param); } else { ZEPHIR_INIT_VAR(&routePattern); @@ -98892,11 +97413,11 @@ static PHP_METHOD(Phalcon_Mvc_Micro_Collection, put) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 1, &routePattern_param, &handler, &name); - if (unlikely(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'routePattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(routePattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(routePattern_param) == IS_STRING)) { zephir_get_strval(&routePattern, routePattern_param); } else { ZEPHIR_INIT_VAR(&routePattern); @@ -98932,11 +97453,11 @@ static PHP_METHOD(Phalcon_Mvc_Micro_Collection, patch) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 1, &routePattern_param, &handler, &name); - if (unlikely(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'routePattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(routePattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(routePattern_param) == IS_STRING)) { zephir_get_strval(&routePattern, routePattern_param); } else { ZEPHIR_INIT_VAR(&routePattern); @@ -98972,11 +97493,11 @@ static PHP_METHOD(Phalcon_Mvc_Micro_Collection, head) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 1, &routePattern_param, &handler, &name); - if (unlikely(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'routePattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(routePattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(routePattern_param) == IS_STRING)) { zephir_get_strval(&routePattern, routePattern_param); } else { ZEPHIR_INIT_VAR(&routePattern); @@ -99012,11 +97533,11 @@ static PHP_METHOD(Phalcon_Mvc_Micro_Collection, delete) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 1, &routePattern_param, &handler, &name); - if (unlikely(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'routePattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(routePattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(routePattern_param) == IS_STRING)) { zephir_get_strval(&routePattern, routePattern_param); } else { ZEPHIR_INIT_VAR(&routePattern); @@ -99052,11 +97573,11 @@ static PHP_METHOD(Phalcon_Mvc_Micro_Collection, options) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 1, &routePattern_param, &handler, &name); - if (unlikely(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'routePattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(routePattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(routePattern_param) == IS_STRING)) { zephir_get_strval(&routePattern, routePattern_param); } else { ZEPHIR_INIT_VAR(&routePattern); @@ -99186,11 +97707,11 @@ static PHP_METHOD(Phalcon_Mvc_Micro_LazyLoader, __construct) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &definition_param); - if (unlikely(Z_TYPE_P(definition_param) != IS_STRING && Z_TYPE_P(definition_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(definition_param) != IS_STRING && Z_TYPE_P(definition_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'definition' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(definition_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(definition_param) == IS_STRING)) { zephir_get_strval(&definition, definition_param); } else { ZEPHIR_INIT_VAR(&definition); @@ -99225,11 +97746,11 @@ static PHP_METHOD(Phalcon_Mvc_Micro_LazyLoader, __call) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &method_param, &arguments); - if (unlikely(Z_TYPE_P(method_param) != IS_STRING && Z_TYPE_P(method_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(method_param) != IS_STRING && Z_TYPE_P(method_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'method' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(method_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(method_param) == IS_STRING)) { zephir_get_strval(&method, method_param); } else { ZEPHIR_INIT_VAR(&method); @@ -99287,11 +97808,11 @@ static PHP_METHOD(Phalcon_Mvc_Micro_LazyLoader, callMethod) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 1, &method_param, &arguments, &modelBinder); - if (unlikely(Z_TYPE_P(method_param) != IS_STRING && Z_TYPE_P(method_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(method_param) != IS_STRING && Z_TYPE_P(method_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'method' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(method_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(method_param) == IS_STRING)) { zephir_get_strval(&method, method_param); } else { ZEPHIR_INIT_VAR(&method); @@ -99383,11 +97904,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Behavior, mustTakeAction) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &eventName_param); - if (unlikely(Z_TYPE_P(eventName_param) != IS_STRING && Z_TYPE_P(eventName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(eventName_param) != IS_STRING && Z_TYPE_P(eventName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'eventName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(eventName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(eventName_param) == IS_STRING)) { zephir_get_strval(&eventName, eventName_param); } else { ZEPHIR_INIT_VAR(&eventName); @@ -99417,11 +97938,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Behavior, getOptions) { ZEPHIR_INIT_VAR(&eventName); ZVAL_STRING(&eventName, ""); } else { - if (unlikely(Z_TYPE_P(eventName_param) != IS_STRING && Z_TYPE_P(eventName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(eventName_param) != IS_STRING && Z_TYPE_P(eventName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'eventName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(eventName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(eventName_param) == IS_STRING)) { zephir_get_strval(&eventName, eventName_param); } else { ZEPHIR_INIT_VAR(&eventName); @@ -99775,16 +98296,16 @@ static PHP_METHOD(Phalcon_Mvc_Model_Binder, getParamsFromReflection) { ZEPHIR_INIT_VAR(&reflection); if (Z_TYPE_P(methodName) != IS_NULL) { object_init_ex(&reflection, zephir_get_internal_ce(SL("reflectionmethod"))); - ZEPHIR_CALL_METHOD(NULL, &reflection, "__construct", NULL, 325, handler, methodName); + ZEPHIR_CALL_METHOD(NULL, &reflection, "__construct", NULL, 294, handler, methodName); zephir_check_call_status(); } else { object_init_ex(&reflection, zephir_get_internal_ce(SL("reflectionfunction"))); - ZEPHIR_CALL_METHOD(NULL, &reflection, "__construct", NULL, 82, handler); + ZEPHIR_CALL_METHOD(NULL, &reflection, "__construct", NULL, 74, handler); zephir_check_call_status(); } zephir_read_property(&_0, this_ptr, SL("cache"), PH_NOISY_CC | PH_READONLY); ZEPHIR_CPY_WRT(&cache, &_0); - ZEPHIR_CALL_METHOD(&methodParams, &reflection, "getparameters", NULL, 83); + ZEPHIR_CALL_METHOD(&methodParams, &reflection, "getparameters", NULL, 75); zephir_check_call_status(); ZEPHIR_INIT_VAR(¶msKeys); zephir_array_keys(¶msKeys, ¶ms TSRMLS_CC); @@ -99816,7 +98337,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Binder, getParamsFromReflection) { zephir_array_fetch(¶mValue, ¶ms, ¶mKey, PH_NOISY, "phalcon/mvc/model/binder.zep", 160 TSRMLS_CC); ZEPHIR_INIT_NVAR(&_5$$5); ZVAL_STRING(&_5$$5, "Phalcon\\Mvc\\Model"); - ZEPHIR_CALL_FUNCTION(&_6$$5, "is_subclass_of", &_7, 326, &className, &_5$$5); + ZEPHIR_CALL_FUNCTION(&_6$$5, "is_subclass_of", &_7, 295, &className, &_5$$5); zephir_check_call_status(); if (ZEPHIR_IS_STRING(&className, "Phalcon\\Mvc\\Model")) { if (Z_TYPE_P(&realClasses) == IS_NULL) { @@ -99845,7 +98366,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Binder, getParamsFromReflection) { object_init_ex(&_10$$15, phalcon_mvc_model_exception_ce); ZEPHIR_INIT_LNVAR(_11$$15); ZEPHIR_CONCAT_SVS(&_11$$15, "You should provide model class name for ", ¶mKey, " parameter"); - ZEPHIR_CALL_METHOD(NULL, &_10$$15, "__construct", &_12, 9, &_11$$15); + ZEPHIR_CALL_METHOD(NULL, &_10$$15, "__construct", &_12, 4, &_11$$15); zephir_check_call_status(); zephir_throw_exception_debug(&_10$$15, "phalcon/mvc/model/binder.zep", 177 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -100026,11 +98547,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, setModelName) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &modelName_param); - if (unlikely(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'modelName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(modelName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(modelName_param) == IS_STRING)) { zephir_get_strval(&modelName, modelName_param); } else { ZEPHIR_INIT_VAR(&modelName); @@ -100193,11 +98714,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, join) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 3, &model_param, &conditions, &alias, &type); - if (unlikely(Z_TYPE_P(model_param) != IS_STRING && Z_TYPE_P(model_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(model_param) != IS_STRING && Z_TYPE_P(model_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'model' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(model_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(model_param) == IS_STRING)) { zephir_get_strval(&model, model_param); } else { ZEPHIR_INIT_VAR(&model); @@ -100265,11 +98786,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, innerJoin) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &model_param, &conditions, &alias); - if (unlikely(Z_TYPE_P(model_param) != IS_STRING && Z_TYPE_P(model_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(model_param) != IS_STRING && Z_TYPE_P(model_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'model' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(model_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(model_param) == IS_STRING)) { zephir_get_strval(&model, model_param); } else { ZEPHIR_INIT_VAR(&model); @@ -100309,11 +98830,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, leftJoin) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &model_param, &conditions, &alias); - if (unlikely(Z_TYPE_P(model_param) != IS_STRING && Z_TYPE_P(model_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(model_param) != IS_STRING && Z_TYPE_P(model_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'model' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(model_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(model_param) == IS_STRING)) { zephir_get_strval(&model, model_param); } else { ZEPHIR_INIT_VAR(&model); @@ -100353,11 +98874,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, rightJoin) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &model_param, &conditions, &alias); - if (unlikely(Z_TYPE_P(model_param) != IS_STRING && Z_TYPE_P(model_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(model_param) != IS_STRING && Z_TYPE_P(model_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'model' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(model_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(model_param) == IS_STRING)) { zephir_get_strval(&model, model_param); } else { ZEPHIR_INIT_VAR(&model); @@ -100406,11 +98927,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, where) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &conditions_param, &bindParams, &bindTypes); - if (unlikely(Z_TYPE_P(conditions_param) != IS_STRING && Z_TYPE_P(conditions_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(conditions_param) != IS_STRING && Z_TYPE_P(conditions_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'conditions' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(conditions_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(conditions_param) == IS_STRING)) { zephir_get_strval(&conditions, conditions_param); } else { ZEPHIR_INIT_VAR(&conditions); @@ -100478,11 +98999,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, addWhere) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &conditions_param, &bindParams, &bindTypes); - if (unlikely(Z_TYPE_P(conditions_param) != IS_STRING && Z_TYPE_P(conditions_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(conditions_param) != IS_STRING && Z_TYPE_P(conditions_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'conditions' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(conditions_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(conditions_param) == IS_STRING)) { zephir_get_strval(&conditions, conditions_param); } else { ZEPHIR_INIT_VAR(&conditions); @@ -100522,11 +99043,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, andWhere) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &conditions_param, &bindParams, &bindTypes); - if (unlikely(Z_TYPE_P(conditions_param) != IS_STRING && Z_TYPE_P(conditions_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(conditions_param) != IS_STRING && Z_TYPE_P(conditions_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'conditions' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(conditions_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(conditions_param) == IS_STRING)) { zephir_get_strval(&conditions, conditions_param); } else { ZEPHIR_INIT_VAR(&conditions); @@ -100573,11 +99094,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, orWhere) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &conditions_param, &bindParams, &bindTypes); - if (unlikely(Z_TYPE_P(conditions_param) != IS_STRING && Z_TYPE_P(conditions_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(conditions_param) != IS_STRING && Z_TYPE_P(conditions_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'conditions' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(conditions_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(conditions_param) == IS_STRING)) { zephir_get_strval(&conditions, conditions_param); } else { ZEPHIR_INIT_VAR(&conditions); @@ -100627,11 +99148,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, betweenWhere) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &expr_param, &minimum, &maximum); - if (unlikely(Z_TYPE_P(expr_param) != IS_STRING && Z_TYPE_P(expr_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(expr_param) != IS_STRING && Z_TYPE_P(expr_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'expr' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(expr_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(expr_param) == IS_STRING)) { zephir_get_strval(&expr, expr_param); } else { ZEPHIR_INIT_VAR(&expr); @@ -100683,11 +99204,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, notBetweenWhere) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &expr_param, &minimum, &maximum); - if (unlikely(Z_TYPE_P(expr_param) != IS_STRING && Z_TYPE_P(expr_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(expr_param) != IS_STRING && Z_TYPE_P(expr_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'expr' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(expr_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(expr_param) == IS_STRING)) { zephir_get_strval(&expr, expr_param); } else { ZEPHIR_INIT_VAR(&expr); @@ -100742,11 +99263,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, inWhere) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &expr_param, &values_param); - if (unlikely(Z_TYPE_P(expr_param) != IS_STRING && Z_TYPE_P(expr_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(expr_param) != IS_STRING && Z_TYPE_P(expr_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'expr' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(expr_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(expr_param) == IS_STRING)) { zephir_get_strval(&expr, expr_param); } else { ZEPHIR_INIT_VAR(&expr); @@ -100816,11 +99337,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, notInWhere) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &expr_param, &values_param); - if (unlikely(Z_TYPE_P(expr_param) != IS_STRING && Z_TYPE_P(expr_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(expr_param) != IS_STRING && Z_TYPE_P(expr_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'expr' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(expr_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(expr_param) == IS_STRING)) { zephir_get_strval(&expr, expr_param); } else { ZEPHIR_INIT_VAR(&expr); @@ -100873,11 +99394,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, conditions) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &conditions_param); - if (unlikely(Z_TYPE_P(conditions_param) != IS_STRING && Z_TYPE_P(conditions_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(conditions_param) != IS_STRING && Z_TYPE_P(conditions_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'conditions' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(conditions_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(conditions_param) == IS_STRING)) { zephir_get_strval(&conditions, conditions_param); } else { ZEPHIR_INIT_VAR(&conditions); @@ -100904,11 +99425,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, order) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &orderColumns_param); - if (unlikely(Z_TYPE_P(orderColumns_param) != IS_STRING && Z_TYPE_P(orderColumns_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(orderColumns_param) != IS_STRING && Z_TYPE_P(orderColumns_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'orderColumns' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(orderColumns_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(orderColumns_param) == IS_STRING)) { zephir_get_strval(&orderColumns, orderColumns_param); } else { ZEPHIR_INIT_VAR(&orderColumns); @@ -100935,11 +99456,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, orderBy) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &orderColumns_param); - if (unlikely(Z_TYPE_P(orderColumns_param) != IS_STRING && Z_TYPE_P(orderColumns_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(orderColumns_param) != IS_STRING && Z_TYPE_P(orderColumns_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'orderColumns' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(orderColumns_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(orderColumns_param) == IS_STRING)) { zephir_get_strval(&orderColumns, orderColumns_param); } else { ZEPHIR_INIT_VAR(&orderColumns); @@ -101025,15 +99546,15 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, limit) { ZVAL_LONG(&_0, limit); - ZEPHIR_CALL_FUNCTION(&_1, "abs", &_2, 199, &_0); + ZEPHIR_CALL_FUNCTION(&_1, "abs", &_2, 181, &_0); zephir_check_call_status(); limit = zephir_get_numberval(&_1); - if (unlikely(limit == 0)) { + if (UNEXPECTED(limit == 0)) { RETURN_THIS(); } if (zephir_is_numeric(offset)) { ZVAL_LONG(&_3$$4, zephir_get_intval(offset)); - ZEPHIR_CALL_FUNCTION(offset, "abs", &_2, 199, &_3$$4); + ZEPHIR_CALL_FUNCTION(offset, "abs", &_2, 181, &_3$$4); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_4$$4); zephir_create_array(&_4$$4, 2, 0 TSRMLS_CC); @@ -101300,11 +99821,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, fromInput) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 1, &dependencyInjector, &modelName_param, &data_param, &operator_param); - if (unlikely(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'modelName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(modelName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(modelName_param) == IS_STRING)) { zephir_get_strval(&modelName, modelName_param); } else { ZEPHIR_INIT_VAR(&modelName); @@ -101315,11 +99836,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, fromInput) { ZEPHIR_INIT_VAR(&operator); ZVAL_STRING(&operator, "AND"); } else { - if (unlikely(Z_TYPE_P(operator_param) != IS_STRING && Z_TYPE_P(operator_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(operator_param) != IS_STRING && Z_TYPE_P(operator_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'operator' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(operator_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(operator_param) == IS_STRING)) { zephir_get_strval(&operator, operator_param); } else { ZEPHIR_INIT_VAR(&operator); @@ -101408,12 +99929,12 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, fromInput) { ZEPHIR_INIT_VAR(&_13$$10); ZEPHIR_CONCAT_SVS(&_13$$10, " ", &operator, " "); zephir_fast_join(&_12$$10, &_13$$10, &conditions TSRMLS_CC); - ZEPHIR_CALL_METHOD(NULL, &criteria, "where", NULL, 327, &_12$$10); + ZEPHIR_CALL_METHOD(NULL, &criteria, "where", NULL, 296, &_12$$10); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, &criteria, "bind", NULL, 328, &bind); + ZEPHIR_CALL_METHOD(NULL, &criteria, "bind", NULL, 297, &bind); zephir_check_call_status(); } - ZEPHIR_CALL_METHOD(NULL, &criteria, "setmodelname", NULL, 317, &modelName); + ZEPHIR_CALL_METHOD(NULL, &criteria, "setmodelname", NULL, 286, &modelName); zephir_check_call_status(); RETURN_CCTOR(criteria); @@ -101749,11 +100270,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, isInitialized) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &modelName_param); - if (unlikely(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'modelName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(modelName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(modelName_param) == IS_STRING)) { zephir_get_strval(&modelName, modelName_param); } else { ZEPHIR_INIT_VAR(&modelName); @@ -101807,11 +100328,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, load) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &modelName_param, &newInstance_param); - if (unlikely(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'modelName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(modelName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(modelName_param) == IS_STRING)) { zephir_get_strval(&modelName, modelName_param); } else { ZEPHIR_INIT_VAR(&modelName); @@ -101846,7 +100367,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, load) { object_init_ex(&_4$$4, phalcon_mvc_model_exception_ce); ZEPHIR_INIT_VAR(&_5$$4); ZEPHIR_CONCAT_SVS(&_5$$4, "Model '", &modelName, "' could not be loaded"); - ZEPHIR_CALL_METHOD(NULL, &_4$$4, "__construct", NULL, 9, &_5$$4); + ZEPHIR_CALL_METHOD(NULL, &_4$$4, "__construct", NULL, 4, &_5$$4); zephir_check_call_status(); zephir_throw_exception_debug(&_4$$4, "phalcon/mvc/model/manager.zep", 296 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -101889,11 +100410,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, setModelSource) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &model, &source_param); - if (unlikely(Z_TYPE_P(source_param) != IS_STRING && Z_TYPE_P(source_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(source_param) != IS_STRING && Z_TYPE_P(source_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'source' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(source_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(source_param) == IS_STRING)) { zephir_get_strval(&source, source_param); } else { ZEPHIR_INIT_VAR(&source); @@ -101933,7 +100454,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, isVisibleModelProperty) { zephir_get_class(&className, model, 0 TSRMLS_CC); zephir_read_property(&_0, this_ptr, SL("_modelVisibility"), PH_NOISY_CC | PH_READONLY); if (!(zephir_array_isset(&_0, &className))) { - ZEPHIR_CALL_FUNCTION(&_1$$3, "get_object_vars", NULL, 21, model); + ZEPHIR_CALL_FUNCTION(&_1$$3, "get_object_vars", NULL, 16, model); zephir_check_call_status(); zephir_update_property_array(this_ptr, SL("_modelVisibility"), &className, &_1$$3 TSRMLS_CC); } @@ -101991,11 +100512,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, setModelSchema) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &model, &schema_param); - if (unlikely(Z_TYPE_P(schema_param) != IS_STRING && Z_TYPE_P(schema_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schema_param) != IS_STRING && Z_TYPE_P(schema_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schema' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schema_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schema_param) == IS_STRING)) { zephir_get_strval(&schema, schema_param); } else { ZEPHIR_INIT_VAR(&schema); @@ -102048,11 +100569,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, setConnectionService) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &model, &connectionService_param); - if (unlikely(Z_TYPE_P(connectionService_param) != IS_STRING && Z_TYPE_P(connectionService_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(connectionService_param) != IS_STRING && Z_TYPE_P(connectionService_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'connectionService' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(connectionService_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(connectionService_param) == IS_STRING)) { zephir_get_strval(&connectionService, connectionService_param); } else { ZEPHIR_INIT_VAR(&connectionService); @@ -102081,11 +100602,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, setWriteConnectionService) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &model, &connectionService_param); - if (unlikely(Z_TYPE_P(connectionService_param) != IS_STRING && Z_TYPE_P(connectionService_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(connectionService_param) != IS_STRING && Z_TYPE_P(connectionService_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'connectionService' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(connectionService_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(connectionService_param) == IS_STRING)) { zephir_get_strval(&connectionService, connectionService_param); } else { ZEPHIR_INIT_VAR(&connectionService); @@ -102113,11 +100634,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, setReadConnectionService) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &model, &connectionService_param); - if (unlikely(Z_TYPE_P(connectionService_param) != IS_STRING && Z_TYPE_P(connectionService_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(connectionService_param) != IS_STRING && Z_TYPE_P(connectionService_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'connectionService' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(connectionService_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(connectionService_param) == IS_STRING)) { zephir_get_strval(&connectionService, connectionService_param); } else { ZEPHIR_INIT_VAR(&connectionService); @@ -102302,11 +100823,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, notifyEvent) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &eventName_param, &model); - if (unlikely(Z_TYPE_P(eventName_param) != IS_STRING && Z_TYPE_P(eventName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(eventName_param) != IS_STRING && Z_TYPE_P(eventName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'eventName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(eventName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(eventName_param) == IS_STRING)) { zephir_get_strval(&eventName, eventName_param); } else { ZEPHIR_INIT_VAR(&eventName); @@ -102383,11 +100904,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, missingMethod) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &model, &eventName_param, &data); - if (unlikely(Z_TYPE_P(eventName_param) != IS_STRING && Z_TYPE_P(eventName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(eventName_param) != IS_STRING && Z_TYPE_P(eventName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'eventName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(eventName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(eventName_param) == IS_STRING)) { zephir_get_strval(&eventName, eventName_param); } else { ZEPHIR_INIT_VAR(&eventName); @@ -102592,11 +101113,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, addHasOne) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 4, 1, &model, &fields, &referencedModel_param, &referencedFields, &options); - if (unlikely(Z_TYPE_P(referencedModel_param) != IS_STRING && Z_TYPE_P(referencedModel_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(referencedModel_param) != IS_STRING && Z_TYPE_P(referencedModel_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'referencedModel' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(referencedModel_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(referencedModel_param) == IS_STRING)) { zephir_get_strval(&referencedModel, referencedModel_param); } else { ZEPHIR_INIT_VAR(&referencedModel); @@ -102629,7 +101150,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, addHasOne) { ZEPHIR_INIT_VAR(&relation); object_init_ex(&relation, phalcon_mvc_model_relation_ce); ZVAL_LONG(&_1, 1); - ZEPHIR_CALL_METHOD(NULL, &relation, "__construct", NULL, 329, &_1, &referencedModel, fields, referencedFields, options); + ZEPHIR_CALL_METHOD(NULL, &relation, "__construct", NULL, 298, &_1, &referencedModel, fields, referencedFields, options); zephir_check_call_status(); ZEPHIR_OBS_VAR(&alias); if (zephir_array_isset_string_fetch(&alias, options, SL("alias"), 0)) { @@ -102687,11 +101208,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, addBelongsTo) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 4, 1, &model, &fields, &referencedModel_param, &referencedFields, &options); - if (unlikely(Z_TYPE_P(referencedModel_param) != IS_STRING && Z_TYPE_P(referencedModel_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(referencedModel_param) != IS_STRING && Z_TYPE_P(referencedModel_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'referencedModel' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(referencedModel_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(referencedModel_param) == IS_STRING)) { zephir_get_strval(&referencedModel, referencedModel_param); } else { ZEPHIR_INIT_VAR(&referencedModel); @@ -102724,7 +101245,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, addBelongsTo) { ZEPHIR_INIT_VAR(&relation); object_init_ex(&relation, phalcon_mvc_model_relation_ce); ZVAL_LONG(&_1, 0); - ZEPHIR_CALL_METHOD(NULL, &relation, "__construct", NULL, 329, &_1, &referencedModel, fields, referencedFields, options); + ZEPHIR_CALL_METHOD(NULL, &relation, "__construct", NULL, 298, &_1, &referencedModel, fields, referencedFields, options); zephir_check_call_status(); ZEPHIR_OBS_VAR(&alias); if (zephir_array_isset_string_fetch(&alias, options, SL("alias"), 0)) { @@ -102782,11 +101303,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, addHasMany) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 4, 1, &model, &fields, &referencedModel_param, &referencedFields, &options); - if (unlikely(Z_TYPE_P(referencedModel_param) != IS_STRING && Z_TYPE_P(referencedModel_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(referencedModel_param) != IS_STRING && Z_TYPE_P(referencedModel_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'referencedModel' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(referencedModel_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(referencedModel_param) == IS_STRING)) { zephir_get_strval(&referencedModel, referencedModel_param); } else { ZEPHIR_INIT_VAR(&referencedModel); @@ -102820,7 +101341,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, addHasMany) { ZEPHIR_INIT_VAR(&relation); object_init_ex(&relation, phalcon_mvc_model_relation_ce); ZVAL_LONG(&_0, 2); - ZEPHIR_CALL_METHOD(NULL, &relation, "__construct", NULL, 329, &_0, &referencedModel, fields, referencedFields, options); + ZEPHIR_CALL_METHOD(NULL, &relation, "__construct", NULL, 298, &_0, &referencedModel, fields, referencedFields, options); zephir_check_call_status(); ZEPHIR_OBS_VAR(&alias); if (zephir_array_isset_string_fetch(&alias, options, SL("alias"), 0)) { @@ -102882,21 +101403,21 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, addHasManyToMany) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 7, 1, &model, &fields, &intermediateModel_param, &intermediateFields, &intermediateReferencedFields, &referencedModel_param, &referencedFields, &options); - if (unlikely(Z_TYPE_P(intermediateModel_param) != IS_STRING && Z_TYPE_P(intermediateModel_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(intermediateModel_param) != IS_STRING && Z_TYPE_P(intermediateModel_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'intermediateModel' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(intermediateModel_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(intermediateModel_param) == IS_STRING)) { zephir_get_strval(&intermediateModel, intermediateModel_param); } else { ZEPHIR_INIT_VAR(&intermediateModel); ZVAL_EMPTY_STRING(&intermediateModel); } - if (unlikely(Z_TYPE_P(referencedModel_param) != IS_STRING && Z_TYPE_P(referencedModel_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(referencedModel_param) != IS_STRING && Z_TYPE_P(referencedModel_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'referencedModel' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(referencedModel_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(referencedModel_param) == IS_STRING)) { zephir_get_strval(&referencedModel, referencedModel_param); } else { ZEPHIR_INIT_VAR(&referencedModel); @@ -102938,9 +101459,9 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, addHasManyToMany) { ZEPHIR_INIT_VAR(&relation); object_init_ex(&relation, phalcon_mvc_model_relation_ce); ZVAL_LONG(&_0, 4); - ZEPHIR_CALL_METHOD(NULL, &relation, "__construct", NULL, 329, &_0, &referencedModel, fields, referencedFields, options); + ZEPHIR_CALL_METHOD(NULL, &relation, "__construct", NULL, 298, &_0, &referencedModel, fields, referencedFields, options); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, &relation, "setintermediaterelation", NULL, 330, intermediateFields, &intermediateModel, intermediateReferencedFields); + ZEPHIR_CALL_METHOD(NULL, &relation, "setintermediaterelation", NULL, 299, intermediateFields, &intermediateModel, intermediateReferencedFields); zephir_check_call_status(); ZEPHIR_OBS_VAR(&alias); if (zephir_array_isset_string_fetch(&alias, options, SL("alias"), 0)) { @@ -102988,21 +101509,21 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, existsBelongsTo) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &modelName_param, &modelRelation_param); - if (unlikely(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'modelName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(modelName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(modelName_param) == IS_STRING)) { zephir_get_strval(&modelName, modelName_param); } else { ZEPHIR_INIT_VAR(&modelName); ZVAL_EMPTY_STRING(&modelName); } - if (unlikely(Z_TYPE_P(modelRelation_param) != IS_STRING && Z_TYPE_P(modelRelation_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(modelRelation_param) != IS_STRING && Z_TYPE_P(modelRelation_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'modelRelation' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(modelRelation_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(modelRelation_param) == IS_STRING)) { zephir_get_strval(&modelRelation, modelRelation_param); } else { ZEPHIR_INIT_VAR(&modelRelation); @@ -103044,21 +101565,21 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, existsHasMany) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &modelName_param, &modelRelation_param); - if (unlikely(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'modelName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(modelName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(modelName_param) == IS_STRING)) { zephir_get_strval(&modelName, modelName_param); } else { ZEPHIR_INIT_VAR(&modelName); ZVAL_EMPTY_STRING(&modelName); } - if (unlikely(Z_TYPE_P(modelRelation_param) != IS_STRING && Z_TYPE_P(modelRelation_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(modelRelation_param) != IS_STRING && Z_TYPE_P(modelRelation_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'modelRelation' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(modelRelation_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(modelRelation_param) == IS_STRING)) { zephir_get_strval(&modelRelation, modelRelation_param); } else { ZEPHIR_INIT_VAR(&modelRelation); @@ -103100,21 +101621,21 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, existsHasOne) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &modelName_param, &modelRelation_param); - if (unlikely(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'modelName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(modelName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(modelName_param) == IS_STRING)) { zephir_get_strval(&modelName, modelName_param); } else { ZEPHIR_INIT_VAR(&modelName); ZVAL_EMPTY_STRING(&modelName); } - if (unlikely(Z_TYPE_P(modelRelation_param) != IS_STRING && Z_TYPE_P(modelRelation_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(modelRelation_param) != IS_STRING && Z_TYPE_P(modelRelation_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'modelRelation' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(modelRelation_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(modelRelation_param) == IS_STRING)) { zephir_get_strval(&modelRelation, modelRelation_param); } else { ZEPHIR_INIT_VAR(&modelRelation); @@ -103156,21 +101677,21 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, existsHasManyToMany) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &modelName_param, &modelRelation_param); - if (unlikely(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'modelName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(modelName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(modelName_param) == IS_STRING)) { zephir_get_strval(&modelName, modelName_param); } else { ZEPHIR_INIT_VAR(&modelName); ZVAL_EMPTY_STRING(&modelName); } - if (unlikely(Z_TYPE_P(modelRelation_param) != IS_STRING && Z_TYPE_P(modelRelation_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(modelRelation_param) != IS_STRING && Z_TYPE_P(modelRelation_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'modelRelation' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(modelRelation_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(modelRelation_param) == IS_STRING)) { zephir_get_strval(&modelRelation, modelRelation_param); } else { ZEPHIR_INIT_VAR(&modelRelation); @@ -103210,21 +101731,21 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, getRelationByAlias) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &modelName_param, &alias_param); - if (unlikely(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'modelName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(modelName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(modelName_param) == IS_STRING)) { zephir_get_strval(&modelName, modelName_param); } else { ZEPHIR_INIT_VAR(&modelName); ZVAL_EMPTY_STRING(&modelName); } - if (unlikely(Z_TYPE_P(alias_param) != IS_STRING && Z_TYPE_P(alias_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(alias_param) != IS_STRING && Z_TYPE_P(alias_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'alias' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(alias_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(alias_param) == IS_STRING)) { zephir_get_strval(&alias, alias_param); } else { ZEPHIR_INIT_VAR(&alias); @@ -103454,11 +101975,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, getRelationRecords) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 1, &relation, &method_param, &record, ¶meters); - if (unlikely(Z_TYPE_P(method_param) != IS_STRING && Z_TYPE_P(method_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(method_param) != IS_STRING && Z_TYPE_P(method_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'method' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(method_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(method_param) == IS_STRING)) { zephir_get_strval(&method, method_param); } else { ZEPHIR_INIT_VAR(&method); @@ -103512,7 +102033,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, getRelationRecords) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Not supported", "phalcon/mvc/model/manager.zep", 1254); return; } - ZEPHIR_CALL_METHOD(&_5$$3, this_ptr, "_mergefindparameters", &_6, 331, &extraParameters, parameters); + ZEPHIR_CALL_METHOD(&_5$$3, this_ptr, "_mergefindparameters", &_6, 300, &extraParameters, parameters); zephir_check_call_status(); ZEPHIR_CALL_METHOD(&builder, this_ptr, "createbuilder", NULL, 0, &_5$$3); zephir_check_call_status(); @@ -103600,10 +102121,10 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, getRelationRecords) { ZEPHIR_CALL_METHOD(&_26, record, "getdi", NULL, 0); zephir_check_call_status(); zephir_array_update_string(&findParams, SL("di"), &_26, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(&findArguments, this_ptr, "_mergefindparameters", &_6, 331, &findParams, parameters); + ZEPHIR_CALL_METHOD(&findArguments, this_ptr, "_mergefindparameters", &_6, 300, &findParams, parameters); zephir_check_call_status(); if (Z_TYPE_P(&extraParameters) == IS_ARRAY) { - ZEPHIR_CALL_METHOD(&findParams, this_ptr, "_mergefindparameters", &_6, 331, &findArguments, &extraParameters); + ZEPHIR_CALL_METHOD(&findParams, this_ptr, "_mergefindparameters", &_6, 300, &findArguments, &extraParameters); zephir_check_call_status(); } else { ZEPHIR_CPY_WRT(&findParams, &findArguments); @@ -103679,21 +102200,21 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, getReusableRecords) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &modelName_param, &key_param); - if (unlikely(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'modelName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(modelName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(modelName_param) == IS_STRING)) { zephir_get_strval(&modelName, modelName_param); } else { ZEPHIR_INIT_VAR(&modelName); ZVAL_EMPTY_STRING(&modelName); } - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(&key, key_param); } else { ZEPHIR_INIT_VAR(&key); @@ -103722,21 +102243,21 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, setReusableRecords) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &modelName_param, &key_param, &records); - if (unlikely(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'modelName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(modelName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(modelName_param) == IS_STRING)) { zephir_get_strval(&modelName, modelName_param); } else { ZEPHIR_INIT_VAR(&modelName); ZVAL_EMPTY_STRING(&modelName); } - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(&key, key_param); } else { ZEPHIR_INIT_VAR(&key); @@ -103784,21 +102305,21 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, getBelongsToRecords) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 4, 1, &method_param, &modelName_param, &modelRelation, &record, ¶meters); - if (unlikely(Z_TYPE_P(method_param) != IS_STRING && Z_TYPE_P(method_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(method_param) != IS_STRING && Z_TYPE_P(method_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'method' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(method_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(method_param) == IS_STRING)) { zephir_get_strval(&method, method_param); } else { ZEPHIR_INIT_VAR(&method); ZVAL_EMPTY_STRING(&method); } - if (unlikely(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'modelName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(modelName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(modelName_param) == IS_STRING)) { zephir_get_strval(&modelName, modelName_param); } else { ZEPHIR_INIT_VAR(&modelName); @@ -103851,21 +102372,21 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, getHasManyRecords) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 4, 1, &method_param, &modelName_param, &modelRelation, &record, ¶meters); - if (unlikely(Z_TYPE_P(method_param) != IS_STRING && Z_TYPE_P(method_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(method_param) != IS_STRING && Z_TYPE_P(method_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'method' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(method_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(method_param) == IS_STRING)) { zephir_get_strval(&method, method_param); } else { ZEPHIR_INIT_VAR(&method); ZVAL_EMPTY_STRING(&method); } - if (unlikely(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'modelName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(modelName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(modelName_param) == IS_STRING)) { zephir_get_strval(&modelName, modelName_param); } else { ZEPHIR_INIT_VAR(&modelName); @@ -103918,21 +102439,21 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, getHasOneRecords) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 4, 1, &method_param, &modelName_param, &modelRelation, &record, ¶meters); - if (unlikely(Z_TYPE_P(method_param) != IS_STRING && Z_TYPE_P(method_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(method_param) != IS_STRING && Z_TYPE_P(method_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'method' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(method_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(method_param) == IS_STRING)) { zephir_get_strval(&method, method_param); } else { ZEPHIR_INIT_VAR(&method); ZVAL_EMPTY_STRING(&method); } - if (unlikely(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'modelName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(modelName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(modelName_param) == IS_STRING)) { zephir_get_strval(&modelName, modelName_param); } else { ZEPHIR_INIT_VAR(&modelName); @@ -104108,11 +102629,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, getRelations) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &modelName_param); - if (unlikely(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'modelName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(modelName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(modelName_param) == IS_STRING)) { zephir_get_strval(&modelName, modelName_param); } else { ZEPHIR_INIT_VAR(&modelName); @@ -104183,21 +102704,21 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, getRelationsBetween) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &first_param, &second_param); - if (unlikely(Z_TYPE_P(first_param) != IS_STRING && Z_TYPE_P(first_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(first_param) != IS_STRING && Z_TYPE_P(first_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'first' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(first_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(first_param) == IS_STRING)) { zephir_get_strval(&first, first_param); } else { ZEPHIR_INIT_VAR(&first); ZVAL_EMPTY_STRING(&first); } - if (unlikely(Z_TYPE_P(second_param) != IS_STRING && Z_TYPE_P(second_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(second_param) != IS_STRING && Z_TYPE_P(second_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'second' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(second_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(second_param) == IS_STRING)) { zephir_get_strval(&second, second_param); } else { ZEPHIR_INIT_VAR(&second); @@ -104248,11 +102769,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, createQuery) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &phql_param); - if (unlikely(Z_TYPE_P(phql_param) != IS_STRING && Z_TYPE_P(phql_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(phql_param) != IS_STRING && Z_TYPE_P(phql_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'phql' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(phql_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(phql_param) == IS_STRING)) { zephir_get_strval(&phql, phql_param); } else { ZEPHIR_INIT_VAR(&phql); @@ -104296,11 +102817,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, executeQuery) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &phql_param, &placeholders, &types); - if (unlikely(Z_TYPE_P(phql_param) != IS_STRING && Z_TYPE_P(phql_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(phql_param) != IS_STRING && Z_TYPE_P(phql_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'phql' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(phql_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(phql_param) == IS_STRING)) { zephir_get_strval(&phql, phql_param); } else { ZEPHIR_INIT_VAR(&phql); @@ -104420,11 +102941,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, getNamespaceAlias) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &alias_param); - if (unlikely(Z_TYPE_P(alias_param) != IS_STRING && Z_TYPE_P(alias_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(alias_param) != IS_STRING && Z_TYPE_P(alias_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'alias' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(alias_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(alias_param) == IS_STRING)) { zephir_get_strval(&alias, alias_param); } else { ZEPHIR_INIT_VAR(&alias); @@ -104441,7 +102962,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, getNamespaceAlias) { object_init_ex(&_1, phalcon_mvc_model_exception_ce); ZEPHIR_INIT_VAR(&_2); ZEPHIR_CONCAT_SVS(&_2, "Namespace alias '", &alias, "' is not registered"); - ZEPHIR_CALL_METHOD(NULL, &_1, "__construct", NULL, 9, &_2); + ZEPHIR_CALL_METHOD(NULL, &_1, "__construct", NULL, 4, &_2); zephir_check_call_status(); zephir_throw_exception_debug(&_1, "phalcon/mvc/model/manager.zep", 1708 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -104468,7 +102989,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, __destruct) { ZEPHIR_MM_GROW(); phalcon_orm_destroy_cache(TSRMLS_C); - ZEPHIR_CALL_CE_STATIC(NULL, phalcon_mvc_model_query_ce, "clean", &_0, 332); + ZEPHIR_CALL_CE_STATIC(NULL, phalcon_mvc_model_query_ce, "clean", &_0, 0); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -104637,11 +103158,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Message, __construct) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 4, &message_param, &field, &type, &model, &code_param); - if (unlikely(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'message' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(message_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(message_param) == IS_STRING)) { zephir_get_strval(&message, message_param); } else { ZEPHIR_INIT_VAR(&message); @@ -104690,11 +103211,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Message, setType) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &type_param); - if (unlikely(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'type' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(type_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(type_param) == IS_STRING)) { zephir_get_strval(&type, type_param); } else { ZEPHIR_INIT_VAR(&type); @@ -104727,11 +103248,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Message, setMessage) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &message_param); - if (unlikely(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'message' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(message_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(message_param) == IS_STRING)) { zephir_get_strval(&message, message_param); } else { ZEPHIR_INIT_VAR(&message); @@ -104865,7 +103386,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Message, __set_state) { zephir_array_fetch_string(&_1, &message, SL("_field"), PH_NOISY | PH_READONLY, "phalcon/mvc/model/message.zep", 182 TSRMLS_CC); zephir_array_fetch_string(&_2, &message, SL("_type"), PH_NOISY | PH_READONLY, "phalcon/mvc/model/message.zep", 182 TSRMLS_CC); zephir_array_fetch_string(&_3, &message, SL("_code"), PH_NOISY | PH_READONLY, "phalcon/mvc/model/message.zep", 182 TSRMLS_CC); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 8, &_0, &_1, &_2, &_3); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 3, &_0, &_1, &_2, &_3); zephir_check_call_status(); RETURN_MM(); @@ -105017,7 +103538,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData, _initialize) { object_init_ex(&_0$$8, phalcon_mvc_model_exception_ce); ZEPHIR_INIT_VAR(&_1$$8); ZEPHIR_CONCAT_SV(&_1$$8, "Invalid meta-data for model ", &className); - ZEPHIR_CALL_METHOD(NULL, &_0$$8, "__construct", NULL, 9, &_1$$8); + ZEPHIR_CALL_METHOD(NULL, &_0$$8, "__construct", NULL, 4, &_1$$8); zephir_check_call_status(); zephir_throw_exception_debug(&_0$$8, "phalcon/mvc/model/metadata.zep", 122 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -105164,7 +103685,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData, readMetaData) { ZEPHIR_CONCAT_VSVV(&key, &_0, "-", &schema, &source); zephir_read_property(&_1, this_ptr, SL("_metaData"), PH_NOISY_CC | PH_READONLY); if (!(zephir_array_isset(&_1, &key))) { - ZEPHIR_CALL_METHOD(NULL, this_ptr, "_initialize", NULL, 10, model, &key, &source, &schema); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "_initialize", NULL, 5, model, &key, &source, &schema); zephir_check_call_status(); } zephir_read_property(&_2, this_ptr, SL("_metaData"), PH_NOISY_CC | PH_READONLY); @@ -105207,7 +103728,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData, readMetaDataIndex) { zephir_read_property(&_1, this_ptr, SL("_metaData"), PH_NOISY_CC | PH_READONLY); zephir_array_fetch(&_2, &_1, &key, PH_READONLY, "phalcon/mvc/model/metadata.zep", 281 TSRMLS_CC); if (!(zephir_array_isset_long(&_2, index))) { - ZEPHIR_CALL_METHOD(NULL, this_ptr, "_initialize", NULL, 10, model, &key, &source, &schema); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "_initialize", NULL, 5, model, &key, &source, &schema); zephir_check_call_status(); } zephir_read_property(&_3, this_ptr, SL("_metaData"), PH_NOISY_CC | PH_READONLY); @@ -105260,7 +103781,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData, writeMetaDataIndex) { ZEPHIR_CONCAT_VSVV(&key, &_2, "-", &schema, &source); zephir_read_property(&_3, this_ptr, SL("_metaData"), PH_NOISY_CC | PH_READONLY); if (!(zephir_array_isset(&_3, &key))) { - ZEPHIR_CALL_METHOD(NULL, this_ptr, "_initialize", NULL, 10, model, &key, &source, &schema); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "_initialize", NULL, 5, model, &key, &source, &schema); zephir_check_call_status(); } zephir_update_property_array_multi(this_ptr, SL("_metaData"), data TSRMLS_CC, SL("zl"), 2, &key, index); @@ -105298,7 +103819,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData, readColumnMap) { ZVAL_NULL(&_1$$4); ZVAL_NULL(&_2$$4); ZVAL_NULL(&_3$$4); - ZEPHIR_CALL_METHOD(NULL, this_ptr, "_initialize", NULL, 10, model, &_1$$4, &_2$$4, &_3$$4); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "_initialize", NULL, 5, model, &_1$$4, &_2$$4, &_3$$4); zephir_check_call_status(); zephir_read_property(&_1$$4, this_ptr, SL("_columnMap"), PH_NOISY_CC | PH_READONLY); ZEPHIR_OBS_NVAR(&data); @@ -105340,7 +103861,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData, readColumnMapIndex) { ZVAL_NULL(&_1$$4); ZVAL_NULL(&_2$$4); ZVAL_NULL(&_3$$4); - ZEPHIR_CALL_METHOD(NULL, this_ptr, "_initialize", NULL, 10, model, &_1$$4, &_2$$4, &_3$$4); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "_initialize", NULL, 5, model, &_1$$4, &_2$$4, &_3$$4); zephir_check_call_status(); zephir_read_property(&_1$$4, this_ptr, SL("_columnMap"), PH_NOISY_CC | PH_READONLY); ZEPHIR_OBS_NVAR(&columnMapModel); @@ -105367,7 +103888,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData, getAttributes) { ZVAL_LONG(&_0, 0); - ZEPHIR_CALL_METHOD(&data, this_ptr, "readmetadataindex", NULL, 11, model, &_0); + ZEPHIR_CALL_METHOD(&data, this_ptr, "readmetadataindex", NULL, 6, model, &_0); zephir_check_call_status(); if (Z_TYPE_P(&data) != IS_ARRAY) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The meta-data is invalid or is corrupt", "phalcon/mvc/model/metadata.zep", 402); @@ -105393,7 +103914,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData, getPrimaryKeyAttributes) { ZVAL_LONG(&_0, 1); - ZEPHIR_CALL_METHOD(&data, this_ptr, "readmetadataindex", NULL, 11, model, &_0); + ZEPHIR_CALL_METHOD(&data, this_ptr, "readmetadataindex", NULL, 6, model, &_0); zephir_check_call_status(); if (Z_TYPE_P(&data) != IS_ARRAY) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The meta-data is invalid or is corrupt", "phalcon/mvc/model/metadata.zep", 423); @@ -105419,7 +103940,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData, getNonPrimaryKeyAttributes) { ZVAL_LONG(&_0, 2); - ZEPHIR_CALL_METHOD(&data, this_ptr, "readmetadataindex", NULL, 11, model, &_0); + ZEPHIR_CALL_METHOD(&data, this_ptr, "readmetadataindex", NULL, 6, model, &_0); zephir_check_call_status(); if (Z_TYPE_P(&data) != IS_ARRAY) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The meta-data is invalid or is corrupt", "phalcon/mvc/model/metadata.zep", 444); @@ -105445,7 +103966,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData, getNotNullAttributes) { ZVAL_LONG(&_0, 3); - ZEPHIR_CALL_METHOD(&data, this_ptr, "readmetadataindex", NULL, 11, model, &_0); + ZEPHIR_CALL_METHOD(&data, this_ptr, "readmetadataindex", NULL, 6, model, &_0); zephir_check_call_status(); if (Z_TYPE_P(&data) != IS_ARRAY) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The meta-data is invalid or is corrupt", "phalcon/mvc/model/metadata.zep", 465); @@ -105471,7 +103992,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData, getDataTypes) { ZVAL_LONG(&_0, 4); - ZEPHIR_CALL_METHOD(&data, this_ptr, "readmetadataindex", NULL, 11, model, &_0); + ZEPHIR_CALL_METHOD(&data, this_ptr, "readmetadataindex", NULL, 6, model, &_0); zephir_check_call_status(); if (Z_TYPE_P(&data) != IS_ARRAY) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The meta-data is invalid or is corrupt", "phalcon/mvc/model/metadata.zep", 486); @@ -105497,7 +104018,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData, getDataTypesNumeric) { ZVAL_LONG(&_0, 5); - ZEPHIR_CALL_METHOD(&data, this_ptr, "readmetadataindex", NULL, 11, model, &_0); + ZEPHIR_CALL_METHOD(&data, this_ptr, "readmetadataindex", NULL, 6, model, &_0); zephir_check_call_status(); if (Z_TYPE_P(&data) != IS_ARRAY) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The meta-data is invalid or is corrupt", "phalcon/mvc/model/metadata.zep", 507); @@ -105522,7 +104043,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData, getIdentityField) { ZVAL_LONG(&_0, 8); - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "readmetadataindex", NULL, 11, model, &_0); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "readmetadataindex", NULL, 6, model, &_0); zephir_check_call_status(); RETURN_MM(); @@ -105544,7 +104065,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData, getBindTypes) { ZVAL_LONG(&_0, 9); - ZEPHIR_CALL_METHOD(&data, this_ptr, "readmetadataindex", NULL, 11, model, &_0); + ZEPHIR_CALL_METHOD(&data, this_ptr, "readmetadataindex", NULL, 6, model, &_0); zephir_check_call_status(); if (Z_TYPE_P(&data) != IS_ARRAY) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The meta-data is invalid or is corrupt", "phalcon/mvc/model/metadata.zep", 547); @@ -105570,7 +104091,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData, getAutomaticCreateAttributes) { ZVAL_LONG(&_0, 10); - ZEPHIR_CALL_METHOD(&data, this_ptr, "readmetadataindex", NULL, 11, model, &_0); + ZEPHIR_CALL_METHOD(&data, this_ptr, "readmetadataindex", NULL, 6, model, &_0); zephir_check_call_status(); if (Z_TYPE_P(&data) != IS_ARRAY) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The meta-data is invalid or is corrupt", "phalcon/mvc/model/metadata.zep", 568); @@ -105596,7 +104117,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData, getAutomaticUpdateAttributes) { ZVAL_LONG(&_0, 11); - ZEPHIR_CALL_METHOD(&data, this_ptr, "readmetadataindex", NULL, 11, model, &_0); + ZEPHIR_CALL_METHOD(&data, this_ptr, "readmetadataindex", NULL, 6, model, &_0); zephir_check_call_status(); if (Z_TYPE_P(&data) != IS_ARRAY) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The meta-data is invalid or is corrupt", "phalcon/mvc/model/metadata.zep", 589); @@ -105624,7 +104145,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData, setAutomaticCreateAttributes) { ZVAL_LONG(&_0, 10); - ZEPHIR_CALL_METHOD(NULL, this_ptr, "writemetadataindex", NULL, 12, model, &_0, &attributes); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "writemetadataindex", NULL, 7, model, &_0, &attributes); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -105648,7 +104169,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData, setAutomaticUpdateAttributes) { ZVAL_LONG(&_0, 11); - ZEPHIR_CALL_METHOD(NULL, this_ptr, "writemetadataindex", NULL, 12, model, &_0, &attributes); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "writemetadataindex", NULL, 7, model, &_0, &attributes); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -105672,7 +104193,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData, setEmptyStringAttributes) { ZVAL_LONG(&_0, 13); - ZEPHIR_CALL_METHOD(NULL, this_ptr, "writemetadataindex", NULL, 12, model, &_0, &attributes); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "writemetadataindex", NULL, 7, model, &_0, &attributes); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -105694,7 +104215,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData, getEmptyStringAttributes) { ZVAL_LONG(&_0, 13); - ZEPHIR_CALL_METHOD(&data, this_ptr, "readmetadataindex", NULL, 11, model, &_0); + ZEPHIR_CALL_METHOD(&data, this_ptr, "readmetadataindex", NULL, 6, model, &_0); zephir_check_call_status(); if (Z_TYPE_P(&data) != IS_ARRAY) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The meta-data is invalid or is corrupt", "phalcon/mvc/model/metadata.zep", 661); @@ -105720,7 +104241,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData, getDefaultValues) { ZVAL_LONG(&_0, 12); - ZEPHIR_CALL_METHOD(&data, this_ptr, "readmetadataindex", NULL, 11, model, &_0); + ZEPHIR_CALL_METHOD(&data, this_ptr, "readmetadataindex", NULL, 6, model, &_0); zephir_check_call_status(); if (Z_TYPE_P(&data) != IS_ARRAY) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The meta-data is invalid or is corrupt", "phalcon/mvc/model/metadata.zep", 682); @@ -105747,7 +104268,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData, getColumnMap) { ZVAL_LONG(&_0, 0); - ZEPHIR_CALL_METHOD(&data, this_ptr, "readcolumnmapindex", NULL, 13, model, &_0); + ZEPHIR_CALL_METHOD(&data, this_ptr, "readcolumnmapindex", NULL, 8, model, &_0); zephir_check_call_status(); _1 = Z_TYPE_P(&data) != IS_NULL; if (_1) { @@ -105778,7 +104299,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData, getReverseColumnMap) { ZVAL_LONG(&_0, 1); - ZEPHIR_CALL_METHOD(&data, this_ptr, "readcolumnmapindex", NULL, 13, model, &_0); + ZEPHIR_CALL_METHOD(&data, this_ptr, "readcolumnmapindex", NULL, 8, model, &_0); zephir_check_call_status(); _1 = Z_TYPE_P(&data) != IS_NULL; if (_1) { @@ -105816,7 +104337,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData, hasAttribute) { if (Z_TYPE_P(&columnMap) == IS_ARRAY) { RETURN_MM_BOOL(zephir_array_isset(&columnMap, &attribute)); } else { - ZEPHIR_CALL_METHOD(&_0$$4, this_ptr, "readmetadata", NULL, 14, model); + ZEPHIR_CALL_METHOD(&_0$$4, this_ptr, "readmetadata", NULL, 9, model); zephir_check_call_status(); zephir_array_fetch_long(&_1$$4, &_0$$4, 4, PH_READONLY, "phalcon/mvc/model/metadata.zep", 751 TSRMLS_CC); RETURN_MM_BOOL(zephir_array_isset(&_1$$4, &attribute)); @@ -106294,7 +104815,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getQualified) { zephir_read_property(&_1$$5, this_ptr, SL("_phql"), PH_NOISY_CC | PH_READONLY); ZEPHIR_INIT_VAR(&_2$$5); ZEPHIR_CONCAT_SVSV(&_2$$5, "Unknown model or alias '", &columnDomain, "' (11), when preparing: ", &_1$$5); - ZEPHIR_CALL_METHOD(NULL, &_0$$5, "__construct", NULL, 9, &_2$$5); + ZEPHIR_CALL_METHOD(NULL, &_0$$5, "__construct", NULL, 4, &_2$$5); zephir_check_call_status(); zephir_throw_exception_debug(&_0$$5, "phalcon/mvc/model/query.zep", 227 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -106310,7 +104831,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getQualified) { zephir_read_property(&_4$$7, this_ptr, SL("_phql"), PH_NOISY_CC | PH_READONLY); ZEPHIR_INIT_VAR(&_5$$7); ZEPHIR_CONCAT_SVSV(&_5$$7, "There is no model related to model or alias '", &columnDomain, "', when executing: ", &_4$$7); - ZEPHIR_CALL_METHOD(NULL, &_3$$7, "__construct", NULL, 9, &_5$$7); + ZEPHIR_CALL_METHOD(NULL, &_3$$7, "__construct", NULL, 4, &_5$$7); zephir_check_call_status(); zephir_throw_exception_debug(&_3$$7, "phalcon/mvc/model/query.zep", 246 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -106330,7 +104851,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getQualified) { zephir_read_property(&_7$$10, this_ptr, SL("_phql"), PH_NOISY_CC | PH_READONLY); ZEPHIR_INIT_VAR(&_8$$10); ZEPHIR_CONCAT_SVSVSV(&_8$$10, "Column '", &columnName, "' doesn't belong to the model or alias '", &columnDomain, "', when executing: ", &_7$$10); - ZEPHIR_CALL_METHOD(NULL, &_6$$10, "__construct", NULL, 9, &_8$$10); + ZEPHIR_CALL_METHOD(NULL, &_6$$10, "__construct", NULL, 4, &_8$$10); zephir_check_call_status(); zephir_throw_exception_debug(&_6$$10, "phalcon/mvc/model/query.zep", 258 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -106359,7 +104880,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getQualified) { zephir_read_property(&_14$$15, this_ptr, SL("_phql"), PH_NOISY_CC | PH_READONLY); ZEPHIR_INIT_LNVAR(_15$$15); ZEPHIR_CONCAT_SVSV(&_15$$15, "The column '", &columnName, "' is ambiguous, when preparing: ", &_14$$15); - ZEPHIR_CALL_METHOD(NULL, &_13$$15, "__construct", NULL, 9, &_15$$15); + ZEPHIR_CALL_METHOD(NULL, &_13$$15, "__construct", NULL, 4, &_15$$15); zephir_check_call_status(); zephir_throw_exception_debug(&_13$$15, "phalcon/mvc/model/query.zep", 279 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -106375,7 +104896,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getQualified) { zephir_read_property(&_17$$16, this_ptr, SL("_phql"), PH_NOISY_CC | PH_READONLY); ZEPHIR_INIT_VAR(&_18$$16); ZEPHIR_CONCAT_SVSV(&_18$$16, "Column '", &columnName, "' doesn't belong to any of the selected models (1), when preparing: ", &_17$$16); - ZEPHIR_CALL_METHOD(NULL, &_16$$16, "__construct", NULL, 9, &_18$$16); + ZEPHIR_CALL_METHOD(NULL, &_16$$16, "__construct", NULL, 4, &_18$$16); zephir_check_call_status(); zephir_throw_exception_debug(&_16$$16, "phalcon/mvc/model/query.zep", 291 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -106396,7 +104917,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getQualified) { zephir_read_property(&_20$$18, this_ptr, SL("_phql"), PH_NOISY_CC | PH_READONLY); ZEPHIR_INIT_VAR(&_21$$18); ZEPHIR_CONCAT_SVSV(&_21$$18, "Can't obtain model's source from models list: '", &className, "', when preparing: ", &_20$$18); - ZEPHIR_CALL_METHOD(NULL, &_19$$18, "__construct", NULL, 9, &_21$$18); + ZEPHIR_CALL_METHOD(NULL, &_19$$18, "__construct", NULL, 4, &_21$$18); zephir_check_call_status(); zephir_throw_exception_debug(&_19$$18, "phalcon/mvc/model/query.zep", 309 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -106417,7 +104938,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getQualified) { zephir_read_property(&_23$$22, this_ptr, SL("_phql"), PH_NOISY_CC | PH_READONLY); ZEPHIR_INIT_VAR(&_24$$22); ZEPHIR_CONCAT_SVSV(&_24$$22, "Column '", &columnName, "' doesn't belong to any of the selected models (3), when preparing: ", &_23$$22); - ZEPHIR_CALL_METHOD(NULL, &_22$$22, "__construct", NULL, 9, &_24$$22); + ZEPHIR_CALL_METHOD(NULL, &_22$$22, "__construct", NULL, 4, &_24$$22); zephir_check_call_status(); zephir_throw_exception_debug(&_22$$22, "phalcon/mvc/model/query.zep", 328 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -106458,7 +104979,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getCallArgument) { add_assoc_stringl_ex(return_value, SL("type"), SL("all")); RETURN_MM(); } - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_getexpression", NULL, 338, &argument); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_getexpression", NULL, 305, &argument); zephir_check_call_status(); RETURN_MM(); @@ -106505,11 +105026,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getCaseExpression) { zephir_create_array(&_2$$4, 3, 0 TSRMLS_CC); add_assoc_stringl_ex(&_2$$4, SL("type"), SL("when")); zephir_array_fetch_string(&_4$$4, &whenExpr, SL("left"), PH_NOISY | PH_READONLY, "phalcon/mvc/model/query.zep", 369 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_3$$4, this_ptr, "_getexpression", &_5, 338, &_4$$4); + ZEPHIR_CALL_METHOD(&_3$$4, this_ptr, "_getexpression", &_5, 305, &_4$$4); zephir_check_call_status(); zephir_array_update_string(&_2$$4, SL("expr"), &_3$$4, PH_COPY | PH_SEPARATE); zephir_array_fetch_string(&_6$$4, &whenExpr, SL("right"), PH_NOISY | PH_READONLY, "phalcon/mvc/model/query.zep", 370 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_3$$4, this_ptr, "_getexpression", &_5, 338, &_6$$4); + ZEPHIR_CALL_METHOD(&_3$$4, this_ptr, "_getexpression", &_5, 305, &_6$$4); zephir_check_call_status(); zephir_array_update_string(&_2$$4, SL("then"), &_3$$4, PH_COPY | PH_SEPARATE); zephir_array_append(&whenClauses, &_2$$4, PH_SEPARATE, "phalcon/mvc/model/query.zep", 371); @@ -106518,7 +105039,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getCaseExpression) { zephir_create_array(&_7$$5, 2, 0 TSRMLS_CC); add_assoc_stringl_ex(&_7$$5, SL("type"), SL("else")); zephir_array_fetch_string(&_9$$5, &whenExpr, SL("left"), PH_NOISY | PH_READONLY, "phalcon/mvc/model/query.zep", 375 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_8$$5, this_ptr, "_getexpression", &_5, 338, &_9$$5); + ZEPHIR_CALL_METHOD(&_8$$5, this_ptr, "_getexpression", &_5, 305, &_9$$5); zephir_check_call_status(); zephir_array_update_string(&_7$$5, SL("expr"), &_8$$5, PH_COPY | PH_SEPARATE); zephir_array_append(&whenClauses, &_7$$5, PH_SEPARATE, "phalcon/mvc/model/query.zep", 376); @@ -106528,7 +105049,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getCaseExpression) { zephir_create_array(return_value, 3, 0 TSRMLS_CC); add_assoc_stringl_ex(return_value, SL("type"), SL("case")); zephir_array_fetch_string(&_11, &expr, SL("left"), PH_NOISY | PH_READONLY, "phalcon/mvc/model/query.zep", 382 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_10, this_ptr, "_getexpression", &_5, 338, &_11); + ZEPHIR_CALL_METHOD(&_10, this_ptr, "_getexpression", &_5, 305, &_11); zephir_check_call_status(); zephir_array_update_string(return_value, SL("expr"), &_10, PH_COPY | PH_SEPARATE); zephir_array_update_string(return_value, SL("when-clauses"), &whenClauses, PH_COPY | PH_SEPARATE); @@ -106576,14 +105097,14 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getFunctionCall) { { ZEPHIR_INIT_NVAR(&argument); ZVAL_COPY(&argument, _0$$6); - ZEPHIR_CALL_METHOD(&_1$$7, this_ptr, "_getcallargument", &_2, 339, &argument); + ZEPHIR_CALL_METHOD(&_1$$7, this_ptr, "_getcallargument", &_2, 306, &argument); zephir_check_call_status(); zephir_array_append(&functionArgs, &_1$$7, PH_SEPARATE, "phalcon/mvc/model/query.zep", 406); } ZEND_HASH_FOREACH_END(); ZEPHIR_INIT_NVAR(&argument); } else { zephir_create_array(&functionArgs, 1, 0 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_3$$8, this_ptr, "_getcallargument", &_2, 339, &arguments); + ZEPHIR_CALL_METHOD(&_3$$8, this_ptr, "_getcallargument", &_2, 306, &arguments); zephir_check_call_status(); zephir_array_fast_append(&functionArgs, &_3$$8); } @@ -106705,7 +105226,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getExpression) { } else { ZVAL_BOOL(&_0$$5, 0); } - ZEPHIR_CALL_METHOD(&left, this_ptr, "_getexpression", &_1, 338, &exprLeft, &_0$$5); + ZEPHIR_CALL_METHOD(&left, this_ptr, "_getexpression", &_1, 305, &exprLeft, &_0$$5); zephir_check_call_status(); } ZEPHIR_OBS_VAR(&exprRight); @@ -106715,7 +105236,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getExpression) { } else { ZVAL_BOOL(&_2$$6, 0); } - ZEPHIR_CALL_METHOD(&right, this_ptr, "_getexpression", &_1, 338, &exprRight, &_2$$6); + ZEPHIR_CALL_METHOD(&right, this_ptr, "_getexpression", &_1, 305, &exprRight, &_2$$6); zephir_check_call_status(); } } @@ -106793,7 +105314,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getExpression) { break; } if (ZEPHIR_IS_LONG(&exprType, 355)) { - ZEPHIR_CALL_METHOD(&exprReturn, this_ptr, "_getqualified", &_3, 340, expr); + ZEPHIR_CALL_METHOD(&exprReturn, this_ptr, "_getqualified", &_3, 307, expr); zephir_check_call_status(); break; } @@ -107034,7 +105555,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getExpression) { object_init_ex(&_24$$44, phalcon_mvc_model_exception_ce); ZEPHIR_INIT_VAR(&_25$$44); ZEPHIR_CONCAT_SV(&_25$$44, "Bind value is required for array type placeholder: ", &name); - ZEPHIR_CALL_METHOD(NULL, &_24$$44, "__construct", NULL, 9, &_25$$44); + ZEPHIR_CALL_METHOD(NULL, &_24$$44, "__construct", NULL, 4, &_25$$44); zephir_check_call_status(); zephir_throw_exception_debug(&_24$$44, "phalcon/mvc/model/query.zep", 632 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -107045,7 +105566,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getExpression) { object_init_ex(&_26$$45, phalcon_mvc_model_exception_ce); ZEPHIR_INIT_VAR(&_27$$45); ZEPHIR_CONCAT_SV(&_27$$45, "Bind type requires an array in placeholder: ", &name); - ZEPHIR_CALL_METHOD(NULL, &_26$$45, "__construct", NULL, 9, &_27$$45); + ZEPHIR_CALL_METHOD(NULL, &_26$$45, "__construct", NULL, 4, &_27$$45); zephir_check_call_status(); zephir_throw_exception_debug(&_26$$45, "phalcon/mvc/model/query.zep", 636 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -107056,7 +105577,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getExpression) { object_init_ex(&_28$$46, phalcon_mvc_model_exception_ce); ZEPHIR_INIT_VAR(&_29$$46); ZEPHIR_CONCAT_SV(&_29$$46, "At least one value must be bound in placeholder: ", &name); - ZEPHIR_CALL_METHOD(NULL, &_28$$46, "__construct", NULL, 9, &_29$$46); + ZEPHIR_CALL_METHOD(NULL, &_28$$46, "__construct", NULL, 4, &_29$$46); zephir_check_call_status(); zephir_throw_exception_debug(&_28$$46, "phalcon/mvc/model/query.zep", 640 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -107076,7 +105597,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getExpression) { object_init_ex(&_31$$47, phalcon_mvc_model_exception_ce); ZEPHIR_INIT_VAR(&_32$$47); ZEPHIR_CONCAT_SV(&_32$$47, "Unknown bind type: ", &bindType); - ZEPHIR_CALL_METHOD(NULL, &_31$$47, "__construct", NULL, 9, &_32$$47); + ZEPHIR_CALL_METHOD(NULL, &_31$$47, "__construct", NULL, 4, &_32$$47); zephir_check_call_status(); zephir_throw_exception_debug(&_31$$47, "phalcon/mvc/model/query.zep", 652 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -107238,12 +105759,12 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getExpression) { break; } if (ZEPHIR_IS_LONG(&exprType, 350)) { - ZEPHIR_CALL_METHOD(&exprReturn, this_ptr, "_getfunctioncall", NULL, 341, expr); + ZEPHIR_CALL_METHOD(&exprReturn, this_ptr, "_getfunctioncall", NULL, 308, expr); zephir_check_call_status(); break; } if (ZEPHIR_IS_LONG(&exprType, 409)) { - ZEPHIR_CALL_METHOD(&exprReturn, this_ptr, "_getcaseexpression", NULL, 342, expr); + ZEPHIR_CALL_METHOD(&exprReturn, this_ptr, "_getcaseexpression", NULL, 309, expr); zephir_check_call_status(); break; } @@ -107252,7 +105773,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getExpression) { zephir_create_array(&exprReturn, 2, 0 TSRMLS_CC); add_assoc_stringl_ex(&exprReturn, SL("type"), SL("select")); ZVAL_BOOL(&_36$$68, 1); - ZEPHIR_CALL_METHOD(&_35$$68, this_ptr, "_prepareselect", NULL, 343, expr, &_36$$68); + ZEPHIR_CALL_METHOD(&_35$$68, this_ptr, "_prepareselect", NULL, 310, expr, &_36$$68); zephir_check_call_status(); zephir_array_update_string(&exprReturn, SL("value"), &_35$$68, PH_COPY | PH_SEPARATE); break; @@ -107261,7 +105782,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getExpression) { object_init_ex(&_37$$69, phalcon_mvc_model_exception_ce); ZEPHIR_INIT_VAR(&_38$$69); ZEPHIR_CONCAT_SV(&_38$$69, "Unknown expression type ", &exprType); - ZEPHIR_CALL_METHOD(NULL, &_37$$69, "__construct", NULL, 9, &_38$$69); + ZEPHIR_CALL_METHOD(NULL, &_37$$69, "__construct", NULL, 4, &_38$$69); zephir_check_call_status(); zephir_throw_exception_debug(&_37$$69, "phalcon/mvc/model/query.zep", 741 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -107271,7 +105792,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getExpression) { RETURN_CCTOR(exprReturn); } if (zephir_array_isset_string(expr, SL("domain"))) { - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_getqualified", &_3, 340, expr); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_getqualified", &_3, 307, expr); zephir_check_call_status(); RETURN_MM(); } @@ -107283,7 +105804,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getExpression) { { ZEPHIR_INIT_NVAR(&exprListItem); ZVAL_COPY(&exprListItem, _39$$71); - ZEPHIR_CALL_METHOD(&_40$$72, this_ptr, "_getexpression", &_1, 338, &exprListItem); + ZEPHIR_CALL_METHOD(&_40$$72, this_ptr, "_getexpression", &_1, 305, &exprListItem); zephir_check_call_status(); zephir_array_append(&listItems, &_40$$72, PH_SEPARATE, "phalcon/mvc/model/query.zep", 760); } ZEND_HASH_FOREACH_END(); @@ -107367,7 +105888,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getSelectColumn) { add_assoc_stringl_ex(&sqlColumn, SL("type"), SL("object")); zephir_array_update_string(&sqlColumn, SL("model"), &modelName, PH_COPY | PH_SEPARATE); zephir_array_update_string(&sqlColumn, SL("column"), &source, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_FUNCTION(&_4$$5, "lcfirst", &_5, 68, &modelName); + ZEPHIR_CALL_FUNCTION(&_4$$5, "lcfirst", &_5, 62, &modelName); zephir_check_call_status(); zephir_array_update_string(&sqlColumn, SL("balias"), &_4$$5, PH_COPY | PH_SEPARATE); if (Z_TYPE_P(&eager) != IS_NULL) { @@ -107397,7 +105918,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getSelectColumn) { zephir_read_property(&_8$$9, this_ptr, SL("_phql"), PH_NOISY_CC | PH_READONLY); ZEPHIR_INIT_VAR(&_9$$9); ZEPHIR_CONCAT_SVSV(&_9$$9, "Unknown model or alias '", &columnDomain, "' (2), when preparing: ", &_8$$9); - ZEPHIR_CALL_METHOD(NULL, &_7$$9, "__construct", NULL, 9, &_9$$9); + ZEPHIR_CALL_METHOD(NULL, &_7$$9, "__construct", NULL, 4, &_9$$9); zephir_check_call_status(); zephir_throw_exception_debug(&_7$$9, "phalcon/mvc/model/query.zep", 829 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -107412,7 +105933,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getSelectColumn) { zephir_array_fetch(&modelName, &sqlAliasesModels, &columnDomain, PH_NOISY, "phalcon/mvc/model/query.zep", 843 TSRMLS_CC); if (Z_TYPE_P(&preparedAlias) != IS_STRING) { if (ZEPHIR_IS_EQUAL(&columnDomain, &modelName)) { - ZEPHIR_CALL_FUNCTION(&preparedAlias, "lcfirst", &_5, 68, &modelName); + ZEPHIR_CALL_FUNCTION(&preparedAlias, "lcfirst", &_5, 62, &modelName); zephir_check_call_status(); } else { ZEPHIR_CPY_WRT(&preparedAlias, &columnDomain); @@ -107438,7 +105959,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getSelectColumn) { add_assoc_stringl_ex(&sqlColumn, SL("type"), SL("scalar")); ZEPHIR_OBS_VAR(&columnData); zephir_array_fetch_string(&columnData, &column, SL("column"), PH_NOISY, "phalcon/mvc/model/query.zep", 886 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&sqlExprColumn, this_ptr, "_getexpression", NULL, 338, &columnData); + ZEPHIR_CALL_METHOD(&sqlExprColumn, this_ptr, "_getexpression", NULL, 305, &columnData); zephir_check_call_status(); ZEPHIR_OBS_VAR(&balias); if (zephir_array_isset_string_fetch(&balias, &sqlExprColumn, SL("balias"), 0)) { @@ -107458,7 +105979,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getSelectColumn) { object_init_ex(&_12, phalcon_mvc_model_exception_ce); ZEPHIR_INIT_VAR(&_13); ZEPHIR_CONCAT_SV(&_13, "Unknown type of column ", &columnType); - ZEPHIR_CALL_METHOD(NULL, &_12, "__construct", NULL, 9, &_13); + ZEPHIR_CALL_METHOD(NULL, &_12, "__construct", NULL, 4, &_13); zephir_check_call_status(); zephir_throw_exception_debug(&_12, "phalcon/mvc/model/query.zep", 908 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -107614,7 +106135,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getJoinType) { zephir_read_property(&_1, this_ptr, SL("_phql"), PH_NOISY_CC | PH_READONLY); ZEPHIR_INIT_VAR(&_2); ZEPHIR_CONCAT_SVSV(&_2, "Unknown join type ", &type, ", when preparing: ", &_1); - ZEPHIR_CALL_METHOD(NULL, &_0, "__construct", NULL, 9, &_2); + ZEPHIR_CALL_METHOD(NULL, &_0, "__construct", NULL, 4, &_2); zephir_check_call_status(); zephir_throw_exception_debug(&_0, "phalcon/mvc/model/query.zep", 1006 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -107660,11 +106181,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getSingleJoin) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 5, 0, &joinType_param, &joinSource, &modelAlias, &joinAlias, &relation); - if (unlikely(Z_TYPE_P(joinType_param) != IS_STRING && Z_TYPE_P(joinType_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(joinType_param) != IS_STRING && Z_TYPE_P(joinType_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'joinType' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(joinType_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(joinType_param) == IS_STRING)) { zephir_get_strval(&joinType, joinType_param); } else { ZEPHIR_INIT_VAR(&joinType); @@ -107690,7 +106211,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getSingleJoin) { add_assoc_long_ex(&_2$$3, SL("type"), 355); zephir_array_update_string(&_2$$3, SL("domain"), modelAlias, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_2$$3, SL("name"), &fields, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(&_1$$3, this_ptr, "_getqualified", &_3, 340, &_2$$3); + ZEPHIR_CALL_METHOD(&_1$$3, this_ptr, "_getqualified", &_3, 307, &_2$$3); zephir_check_call_status(); zephir_array_update_string(&_0$$3, SL("left"), &_1$$3, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_VAR(&_4$$3); @@ -107698,7 +106219,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getSingleJoin) { add_assoc_stringl_ex(&_4$$3, SL("type"), SL("qualified")); zephir_array_update_string(&_4$$3, SL("domain"), joinAlias, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_4$$3, SL("name"), &referencedFields, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(&_1$$3, this_ptr, "_getqualified", &_3, 340, &_4$$3); + ZEPHIR_CALL_METHOD(&_1$$3, this_ptr, "_getqualified", &_3, 307, &_4$$3); zephir_check_call_status(); zephir_array_update_string(&_0$$3, SL("right"), &_1$$3, PH_COPY | PH_SEPARATE); zephir_array_fast_append(&sqlJoinConditions, &_0$$3); @@ -107723,7 +106244,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getSingleJoin) { zephir_read_property(&_9$$6, this_ptr, SL("_phql"), PH_NOISY_CC | PH_READONLY); ZEPHIR_INIT_LNVAR(_10$$6); ZEPHIR_CONCAT_SVSVSV(&_10$$6, "The number of fields must be equal to the number of referenced fields in join ", modelAlias, "-", joinAlias, ", when preparing: ", &_9$$6); - ZEPHIR_CALL_METHOD(NULL, &_8$$6, "__construct", &_11, 9, &_10$$6); + ZEPHIR_CALL_METHOD(NULL, &_8$$6, "__construct", &_11, 4, &_10$$6); zephir_check_call_status(); zephir_throw_exception_debug(&_8$$6, "phalcon/mvc/model/query.zep", 1072 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -107738,7 +106259,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getSingleJoin) { add_assoc_long_ex(&_14$$5, SL("type"), 355); zephir_array_update_string(&_14$$5, SL("domain"), modelAlias, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_14$$5, SL("name"), &field, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(&_13$$5, this_ptr, "_getqualified", &_3, 340, &_14$$5); + ZEPHIR_CALL_METHOD(&_13$$5, this_ptr, "_getqualified", &_3, 307, &_14$$5); zephir_check_call_status(); zephir_array_update_string(&_12$$5, SL("left"), &_13$$5, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_NVAR(&_15$$5); @@ -107746,7 +106267,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getSingleJoin) { add_assoc_stringl_ex(&_15$$5, SL("type"), SL("qualified")); zephir_array_update_string(&_15$$5, SL("domain"), joinAlias, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_15$$5, SL("name"), &referencedField, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(&_13$$5, this_ptr, "_getqualified", &_3, 340, &_15$$5); + ZEPHIR_CALL_METHOD(&_13$$5, this_ptr, "_getqualified", &_3, 307, &_15$$5); zephir_check_call_status(); zephir_array_update_string(&_12$$5, SL("right"), &_13$$5, PH_COPY | PH_SEPARATE); zephir_array_append(&sqlJoinPartialConditions, &_12$$5, PH_SEPARATE, "phalcon/mvc/model/query.zep", 1093); @@ -107854,7 +106375,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getMultiJoin) { zephir_read_property(&_4$$5, this_ptr, SL("_phql"), PH_NOISY_CC | PH_READONLY); ZEPHIR_INIT_LNVAR(_5$$5); ZEPHIR_CONCAT_SVSVSV(&_5$$5, "The number of fields must be equal to the number of referenced fields in join ", modelAlias, "-", joinAlias, ", when preparing: ", &_4$$5); - ZEPHIR_CALL_METHOD(NULL, &_3$$5, "__construct", &_6, 9, &_5$$5); + ZEPHIR_CALL_METHOD(NULL, &_3$$5, "__construct", &_6, 4, &_5$$5); zephir_check_call_status(); zephir_throw_exception_debug(&_3$$5, "phalcon/mvc/model/query.zep", 1194 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -107871,7 +106392,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getMultiJoin) { add_assoc_long_ex(&_8$$4, SL("type"), 355); zephir_array_update_string(&_8$$4, SL("domain"), modelAlias, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_8$$4, SL("name"), &field, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(&_7$$4, this_ptr, "_getqualified", &_9, 340, &_8$$4); + ZEPHIR_CALL_METHOD(&_7$$4, this_ptr, "_getqualified", &_9, 307, &_8$$4); zephir_check_call_status(); zephir_array_update_string(&sqlEqualsJoinCondition, SL("left"), &_7$$4, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_NVAR(&_10$$4); @@ -107879,7 +106400,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getMultiJoin) { add_assoc_stringl_ex(&_10$$4, SL("type"), SL("qualified")); zephir_array_update_string(&_10$$4, SL("domain"), joinAlias, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_10$$4, SL("name"), &referencedFields, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(&_7$$4, this_ptr, "_getqualified", &_9, 340, &_10$$4); + ZEPHIR_CALL_METHOD(&_7$$4, this_ptr, "_getqualified", &_9, 307, &_10$$4); zephir_check_call_status(); zephir_array_update_string(&sqlEqualsJoinCondition, SL("right"), &_7$$4, PH_COPY | PH_SEPARATE); } ZEND_HASH_FOREACH_END(); @@ -107903,7 +106424,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getMultiJoin) { add_assoc_long_ex(&_15$$6, SL("type"), 355); zephir_array_update_string(&_15$$6, SL("domain"), modelAlias, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_15$$6, SL("name"), &fields, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(&_14$$6, this_ptr, "_getqualified", &_9, 340, &_15$$6); + ZEPHIR_CALL_METHOD(&_14$$6, this_ptr, "_getqualified", &_9, 307, &_15$$6); zephir_check_call_status(); zephir_array_update_string(&_13$$6, SL("left"), &_14$$6, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_VAR(&_16$$6); @@ -107911,7 +106432,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getMultiJoin) { add_assoc_stringl_ex(&_16$$6, SL("type"), SL("qualified")); zephir_array_update_string(&_16$$6, SL("domain"), &intermediateModelName, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_16$$6, SL("name"), &intermediateFields, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(&_14$$6, this_ptr, "_getqualified", &_9, 340, &_16$$6); + ZEPHIR_CALL_METHOD(&_14$$6, this_ptr, "_getqualified", &_9, 307, &_16$$6); zephir_check_call_status(); zephir_array_update_string(&_13$$6, SL("right"), &_14$$6, PH_COPY | PH_SEPARATE); zephir_array_fast_append(&_12$$6, &_13$$6); @@ -107932,7 +106453,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getMultiJoin) { add_assoc_long_ex(&_17$$6, SL("type"), 355); zephir_array_update_string(&_17$$6, SL("domain"), &intermediateModelName, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_17$$6, SL("name"), &intermediateReferencedFields, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(&_14$$6, this_ptr, "_getqualified", &_9, 340, &_17$$6); + ZEPHIR_CALL_METHOD(&_14$$6, this_ptr, "_getqualified", &_9, 307, &_17$$6); zephir_check_call_status(); zephir_array_update_string(&_13$$6, SL("left"), &_14$$6, PH_COPY | PH_SEPARATE); ZEPHIR_INIT_VAR(&_18$$6); @@ -107940,7 +106461,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getMultiJoin) { add_assoc_stringl_ex(&_18$$6, SL("type"), SL("qualified")); zephir_array_update_string(&_18$$6, SL("domain"), &referencedModelName, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_18$$6, SL("name"), &referencedFields, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(&_14$$6, this_ptr, "_getqualified", &_9, 340, &_18$$6); + ZEPHIR_CALL_METHOD(&_14$$6, this_ptr, "_getqualified", &_9, 307, &_18$$6); zephir_check_call_status(); zephir_array_update_string(&_13$$6, SL("right"), &_14$$6, PH_COPY | PH_SEPARATE); zephir_array_fast_append(&_12$$6, &_13$$6); @@ -108083,7 +106604,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getJoins) { { ZEPHIR_INIT_NVAR(&joinItem); ZVAL_COPY(&joinItem, _0); - ZEPHIR_CALL_METHOD(&joinData, this_ptr, "_getjoin", &_1, 344, &manager, &joinItem); + ZEPHIR_CALL_METHOD(&joinData, this_ptr, "_getjoin", &_1, 311, &manager, &joinItem); zephir_check_call_status(); ZEPHIR_OBS_NVAR(&source); zephir_array_fetch_string(&source, &joinData, SL("source"), PH_NOISY, "phalcon/mvc/model/query.zep", 1334 TSRMLS_CC); @@ -108097,7 +106618,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getJoins) { zephir_create_array(&completeSource, 2, 0 TSRMLS_CC); zephir_array_fast_append(&completeSource, &source); zephir_array_fast_append(&completeSource, &schema); - ZEPHIR_CALL_METHOD(&joinType, this_ptr, "_getjointype", &_2, 345, &joinItem); + ZEPHIR_CALL_METHOD(&joinType, this_ptr, "_getjointype", &_2, 312, &joinItem); zephir_check_call_status(); ZEPHIR_OBS_NVAR(&aliasExpr); if (zephir_array_isset_string_fetch(&aliasExpr, &joinItem, SL("alias"), 0)) { @@ -108109,7 +106630,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getJoins) { zephir_read_property(&_4$$9, this_ptr, SL("_phql"), PH_NOISY_CC | PH_READONLY); ZEPHIR_INIT_LNVAR(_5$$9); ZEPHIR_CONCAT_SVSV(&_5$$9, "Cannot use '", &alias, "' as join alias because it was already used, when preparing: ", &_4$$9); - ZEPHIR_CALL_METHOD(NULL, &_3$$9, "__construct", &_6, 9, &_5$$9); + ZEPHIR_CALL_METHOD(NULL, &_3$$9, "__construct", &_6, 4, &_5$$9); zephir_check_call_status(); zephir_throw_exception_debug(&_3$$9, "phalcon/mvc/model/query.zep", 1358 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -108132,7 +106653,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getJoins) { zephir_read_property(&_8$$11, this_ptr, SL("_phql"), PH_NOISY_CC | PH_READONLY); ZEPHIR_INIT_LNVAR(_9$$11); ZEPHIR_CONCAT_SVSV(&_9$$11, "Cannot use '", &realModelName, "' as join alias because it was already used, when preparing: ", &_8$$11); - ZEPHIR_CALL_METHOD(NULL, &_7$$11, "__construct", &_6, 9, &_9$$11); + ZEPHIR_CALL_METHOD(NULL, &_7$$11, "__construct", &_6, 4, &_9$$11); zephir_check_call_status(); zephir_throw_exception_debug(&_7$$11, "phalcon/mvc/model/query.zep", 1419 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -108170,7 +106691,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getJoins) { ZVAL_COPY(&joinItem, _10); ZEPHIR_OBS_NVAR(&joinExpr); if (zephir_array_isset_string_fetch(&joinExpr, &joinItem, SL("conditions"), 0)) { - ZEPHIR_CALL_METHOD(&_13$$13, this_ptr, "_getexpression", &_14, 338, &joinExpr); + ZEPHIR_CALL_METHOD(&_13$$13, this_ptr, "_getexpression", &_14, 305, &joinExpr); zephir_check_call_status(); zephir_array_update_zval(&joinPreCondition, &joinAliasName, &_13$$13, PH_COPY | PH_SEPARATE); } @@ -108267,7 +106788,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getJoins) { zephir_read_property(&_35$$22, this_ptr, SL("_phql"), PH_NOISY_CC | PH_READONLY); ZEPHIR_INIT_LNVAR(_36$$22); ZEPHIR_CONCAT_SVSVSV(&_36$$22, "There is more than one relation between models '", &fromModelName, "' and '", &joinModel, "', the join must be done using an alias, when preparing: ", &_35$$22); - ZEPHIR_CALL_METHOD(NULL, &_34$$22, "__construct", &_6, 9, &_36$$22); + ZEPHIR_CALL_METHOD(NULL, &_34$$22, "__construct", &_6, 4, &_36$$22); zephir_check_call_status(); zephir_throw_exception_debug(&_34$$22, "phalcon/mvc/model/query.zep", 1561 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -108283,10 +106804,10 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getJoins) { ZEPHIR_CALL_METHOD(&_37$$23, &relation, "isthrough", NULL, 0); zephir_check_call_status(); if (!(zephir_is_true(&_37$$23))) { - ZEPHIR_CALL_METHOD(&sqlJoin, this_ptr, "_getsinglejoin", &_38, 346, &joinType, &joinSource, &modelAlias, &joinAlias, &relation); + ZEPHIR_CALL_METHOD(&sqlJoin, this_ptr, "_getsinglejoin", &_38, 313, &joinType, &joinSource, &modelAlias, &joinAlias, &relation); zephir_check_call_status(); } else { - ZEPHIR_CALL_METHOD(&sqlJoin, this_ptr, "_getmultijoin", &_39, 347, &joinType, &joinSource, &modelAlias, &joinAlias, &relation); + ZEPHIR_CALL_METHOD(&sqlJoin, this_ptr, "_getmultijoin", &_39, 314, &joinType, &joinSource, &modelAlias, &joinAlias, &relation); zephir_check_call_status(); } if (zephir_array_isset_long(&sqlJoin, 0)) { @@ -108370,7 +106891,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getOrderClause) { ZEPHIR_INIT_NVAR(&orderItem); ZVAL_COPY(&orderItem, _0); zephir_array_fetch_string(&_1$$5, &orderItem, SL("column"), PH_NOISY | PH_READONLY, "phalcon/mvc/model/query.zep", 1650 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&orderPartExpr, this_ptr, "_getexpression", &_2, 338, &_1$$5); + ZEPHIR_CALL_METHOD(&orderPartExpr, this_ptr, "_getexpression", &_2, 305, &_1$$5); zephir_check_call_status(); if (zephir_array_isset_string_fetch(&orderSort, &orderItem, SL("sort"), 1)) { ZEPHIR_INIT_NVAR(&orderPartSort); @@ -108427,14 +106948,14 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getGroupClause) { { ZEPHIR_INIT_NVAR(&groupItem); ZVAL_COPY(&groupItem, _0$$3); - ZEPHIR_CALL_METHOD(&_1$$4, this_ptr, "_getexpression", &_2, 338, &groupItem); + ZEPHIR_CALL_METHOD(&_1$$4, this_ptr, "_getexpression", &_2, 305, &groupItem); zephir_check_call_status(); zephir_array_append(&groupParts, &_1$$4, PH_SEPARATE, "phalcon/mvc/model/query.zep", 1684); } ZEND_HASH_FOREACH_END(); ZEPHIR_INIT_NVAR(&groupItem); } else { zephir_create_array(&groupParts, 1, 0 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_3$$5, this_ptr, "_getexpression", &_2, 338, &group); + ZEPHIR_CALL_METHOD(&_3$$5, this_ptr, "_getexpression", &_2, 305, &group); zephir_check_call_status(); zephir_array_fast_append(&groupParts, &_3$$5); } @@ -108467,13 +106988,13 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getLimitClause) { array_init(&limit); ZEPHIR_OBS_VAR(&number); if (zephir_array_isset_string_fetch(&number, &limitClause, SL("number"), 0)) { - ZEPHIR_CALL_METHOD(&_0$$3, this_ptr, "_getexpression", &_1, 338, &number); + ZEPHIR_CALL_METHOD(&_0$$3, this_ptr, "_getexpression", &_1, 305, &number); zephir_check_call_status(); zephir_array_update_string(&limit, SL("number"), &_0$$3, PH_COPY | PH_SEPARATE); } ZEPHIR_OBS_VAR(&offset); if (zephir_array_isset_string_fetch(&offset, &limitClause, SL("offset"), 0)) { - ZEPHIR_CALL_METHOD(&_2$$4, this_ptr, "_getexpression", &_1, 338, &offset); + ZEPHIR_CALL_METHOD(&_2$$4, this_ptr, "_getexpression", &_1, 305, &offset); zephir_check_call_status(); zephir_array_update_string(&limit, SL("offset"), &_2$$4, PH_COPY | PH_SEPARATE); } @@ -108717,7 +107238,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _prepareSelect) { zephir_read_property(&_8$$20, this_ptr, SL("_phql"), PH_NOISY_CC | PH_READONLY); ZEPHIR_INIT_LNVAR(_9$$20); ZEPHIR_CONCAT_SVSV(&_9$$20, "Alias '", &alias, "' is used more than once, when preparing: ", &_8$$20); - ZEPHIR_CALL_METHOD(NULL, &_7$$20, "__construct", &_10, 9, &_9$$20); + ZEPHIR_CALL_METHOD(NULL, &_7$$20, "__construct", &_10, 4, &_9$$20); zephir_check_call_status(); zephir_throw_exception_debug(&_7$$20, "phalcon/mvc/model/query.zep", 1850 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -108795,7 +107316,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _prepareSelect) { zephir_read_property(&_19$$31, this_ptr, SL("_phql"), PH_NOISY_CC | PH_READONLY); ZEPHIR_INIT_LNVAR(_20$$31); ZEPHIR_CONCAT_SVSVSV(&_20$$31, "Can't find a relationship between '", &realModelName, "' and '", &relationModel, "' when preparing: ", &_19$$31); - ZEPHIR_CALL_METHOD(NULL, &_18$$31, "__construct", &_10, 9, &_20$$31); + ZEPHIR_CALL_METHOD(NULL, &_18$$31, "__construct", &_10, 4, &_20$$31); zephir_check_call_status(); zephir_throw_exception_debug(&_18$$31, "phalcon/mvc/model/query.zep", 1906 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -108891,12 +107412,12 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _prepareSelect) { zephir_array_update_string(&select, SL("joins"), &automaticJoins, PH_COPY | PH_SEPARATE); } } - ZEPHIR_CALL_METHOD(&sqlJoins, this_ptr, "_getjoins", &_37, 348, &select); + ZEPHIR_CALL_METHOD(&sqlJoins, this_ptr, "_getjoins", &_37, 315, &select); zephir_check_call_status(); } else { if (zephir_fast_count_int(&automaticJoins TSRMLS_CC)) { zephir_array_update_string(&select, SL("joins"), &automaticJoins, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(&sqlJoins, this_ptr, "_getjoins", &_37, 348, &select); + ZEPHIR_CALL_METHOD(&sqlJoins, this_ptr, "_getjoins", &_37, 315, &select); zephir_check_call_status(); } else { ZEPHIR_INIT_NVAR(&sqlJoins); @@ -108911,7 +107432,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _prepareSelect) { { ZEPHIR_INIT_NVAR(&column); ZVAL_COPY(&column, _38); - ZEPHIR_CALL_METHOD(&_39$$41, this_ptr, "_getselectcolumn", &_40, 349, &column); + ZEPHIR_CALL_METHOD(&_39$$41, this_ptr, "_getselectcolumn", &_40, 316, &column); zephir_check_call_status(); zephir_is_iterable(&_39$$41, 0, "phalcon/mvc/model/query.zep", 2024); ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&_39$$41), _41$$41) @@ -108961,31 +107482,31 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _prepareSelect) { } ZEPHIR_OBS_VAR(&where); if (zephir_array_isset_string_fetch(&where, ast, SL("where"), 0)) { - ZEPHIR_CALL_METHOD(&_45$$51, this_ptr, "_getexpression", &_46, 338, &where); + ZEPHIR_CALL_METHOD(&_45$$51, this_ptr, "_getexpression", &_46, 305, &where); zephir_check_call_status(); zephir_array_update_string(&sqlSelect, SL("where"), &_45$$51, PH_COPY | PH_SEPARATE); } ZEPHIR_OBS_VAR(&groupBy); if (zephir_array_isset_string_fetch(&groupBy, ast, SL("groupBy"), 0)) { - ZEPHIR_CALL_METHOD(&_47$$52, this_ptr, "_getgroupclause", NULL, 350, &groupBy); + ZEPHIR_CALL_METHOD(&_47$$52, this_ptr, "_getgroupclause", NULL, 317, &groupBy); zephir_check_call_status(); zephir_array_update_string(&sqlSelect, SL("group"), &_47$$52, PH_COPY | PH_SEPARATE); } ZEPHIR_OBS_VAR(&having); if (zephir_array_isset_string_fetch(&having, ast, SL("having"), 0)) { - ZEPHIR_CALL_METHOD(&_48$$53, this_ptr, "_getexpression", &_46, 338, &having); + ZEPHIR_CALL_METHOD(&_48$$53, this_ptr, "_getexpression", &_46, 305, &having); zephir_check_call_status(); zephir_array_update_string(&sqlSelect, SL("having"), &_48$$53, PH_COPY | PH_SEPARATE); } ZEPHIR_OBS_VAR(&order); if (zephir_array_isset_string_fetch(&order, ast, SL("orderBy"), 0)) { - ZEPHIR_CALL_METHOD(&_49$$54, this_ptr, "_getorderclause", NULL, 351, &order); + ZEPHIR_CALL_METHOD(&_49$$54, this_ptr, "_getorderclause", NULL, 318, &order); zephir_check_call_status(); zephir_array_update_string(&sqlSelect, SL("order"), &_49$$54, PH_COPY | PH_SEPARATE); } ZEPHIR_OBS_VAR(&limit); if (zephir_array_isset_string_fetch(&limit, ast, SL("limit"), 0)) { - ZEPHIR_CALL_METHOD(&_50$$55, this_ptr, "_getlimitclause", NULL, 352, &limit); + ZEPHIR_CALL_METHOD(&_50$$55, this_ptr, "_getlimitclause", NULL, 319, &limit); zephir_check_call_status(); zephir_array_update_string(&sqlSelect, SL("limit"), &_50$$55, PH_COPY | PH_SEPARATE); } @@ -109110,7 +107631,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _prepareInsert) { } else { ZVAL_BOOL(&_9$$9, 0); } - ZEPHIR_CALL_METHOD(&_8$$9, this_ptr, "_getexpression", &_10, 338, &exprValue, &_9$$9); + ZEPHIR_CALL_METHOD(&_8$$9, this_ptr, "_getexpression", &_10, 305, &exprValue, &_9$$9); zephir_check_call_status(); zephir_array_update_string(&_6$$9, SL("value"), &_8$$9, PH_COPY | PH_SEPARATE); zephir_array_append(&exprValues, &_6$$9, PH_SEPARATE, "phalcon/mvc/model/query.zep", 2139); @@ -109141,7 +107662,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _prepareInsert) { zephir_read_property(&_15$$12, this_ptr, SL("_phql"), PH_NOISY_CC | PH_READONLY); ZEPHIR_INIT_LNVAR(_16$$12); ZEPHIR_CONCAT_SVSVSV(&_16$$12, "The model '", &modelName, "' doesn't have the attribute '", &name, "', when preparing: ", &_15$$12); - ZEPHIR_CALL_METHOD(NULL, &_14$$12, "__construct", &_17, 9, &_16$$12); + ZEPHIR_CALL_METHOD(NULL, &_14$$12, "__construct", &_17, 4, &_16$$12); zephir_check_call_status(); zephir_throw_exception_debug(&_14$$12, "phalcon/mvc/model/query.zep", 2159 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -109334,7 +107855,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _prepareUpdate) { } else { ZVAL_BOOL(&_10$$17, 0); } - ZEPHIR_CALL_METHOD(&_8$$17, this_ptr, "_getexpression", &_11, 338, &_9$$17, &_10$$17); + ZEPHIR_CALL_METHOD(&_8$$17, this_ptr, "_getexpression", &_11, 305, &_9$$17, &_10$$17); zephir_check_call_status(); zephir_array_append(&sqlFields, &_8$$17, PH_SEPARATE, "phalcon/mvc/model/query.zep", 2289); ZEPHIR_OBS_NVAR(&exprColumn); @@ -109349,7 +107870,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _prepareUpdate) { } else { ZVAL_BOOL(&_15$$17, 0); } - ZEPHIR_CALL_METHOD(&_14$$17, this_ptr, "_getexpression", &_11, 338, &exprColumn, &_15$$17); + ZEPHIR_CALL_METHOD(&_14$$17, this_ptr, "_getexpression", &_11, 305, &exprColumn, &_15$$17); zephir_check_call_status(); zephir_array_update_string(&_12$$17, SL("value"), &_14$$17, PH_COPY | PH_SEPARATE); zephir_array_append(&sqlValues, &_12$$17, PH_SEPARATE, "phalcon/mvc/model/query.zep", 2294); @@ -109364,13 +107885,13 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _prepareUpdate) { ZEPHIR_OBS_VAR(&where); if (zephir_array_isset_string_fetch(&where, &ast, SL("where"), 0)) { ZVAL_BOOL(&_17$$18, 1); - ZEPHIR_CALL_METHOD(&_16$$18, this_ptr, "_getexpression", &_11, 338, &where, &_17$$18); + ZEPHIR_CALL_METHOD(&_16$$18, this_ptr, "_getexpression", &_11, 305, &where, &_17$$18); zephir_check_call_status(); zephir_array_update_string(&sqlUpdate, SL("where"), &_16$$18, PH_COPY | PH_SEPARATE); } ZEPHIR_OBS_VAR(&limit); if (zephir_array_isset_string_fetch(&limit, &ast, SL("limit"), 0)) { - ZEPHIR_CALL_METHOD(&_18$$19, this_ptr, "_getlimitclause", NULL, 352, &limit); + ZEPHIR_CALL_METHOD(&_18$$19, this_ptr, "_getlimitclause", NULL, 319, &limit); zephir_check_call_status(); zephir_array_update_string(&sqlUpdate, SL("limit"), &_18$$19, PH_COPY | PH_SEPARATE); } @@ -109519,13 +108040,13 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _prepareDelete) { ZEPHIR_OBS_VAR(&where); if (zephir_array_isset_string_fetch(&where, &ast, SL("where"), 0)) { ZVAL_BOOL(&_8$$14, 1); - ZEPHIR_CALL_METHOD(&_7$$14, this_ptr, "_getexpression", NULL, 338, &where, &_8$$14); + ZEPHIR_CALL_METHOD(&_7$$14, this_ptr, "_getexpression", NULL, 305, &where, &_8$$14); zephir_check_call_status(); zephir_array_update_string(&sqlDelete, SL("where"), &_7$$14, PH_COPY | PH_SEPARATE); } ZEPHIR_OBS_VAR(&limit); if (zephir_array_isset_string_fetch(&limit, &ast, SL("limit"), 0)) { - ZEPHIR_CALL_METHOD(&_9$$15, this_ptr, "_getlimitclause", NULL, 352, &limit); + ZEPHIR_CALL_METHOD(&_9$$15, this_ptr, "_getlimitclause", NULL, 319, &limit); zephir_check_call_status(); zephir_array_update_string(&sqlDelete, SL("limit"), &_9$$15, PH_COPY | PH_SEPARATE); } @@ -109585,22 +108106,22 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, parse) { zephir_update_property_zval(this_ptr, SL("_type"), &type); do { if (ZEPHIR_IS_LONG(&type, 309)) { - ZEPHIR_CALL_METHOD(&irPhql, this_ptr, "_prepareselect", NULL, 343); + ZEPHIR_CALL_METHOD(&irPhql, this_ptr, "_prepareselect", NULL, 310); zephir_check_call_status(); break; } if (ZEPHIR_IS_LONG(&type, 306)) { - ZEPHIR_CALL_METHOD(&irPhql, this_ptr, "_prepareinsert", NULL, 353); + ZEPHIR_CALL_METHOD(&irPhql, this_ptr, "_prepareinsert", NULL, 320); zephir_check_call_status(); break; } if (ZEPHIR_IS_LONG(&type, 300)) { - ZEPHIR_CALL_METHOD(&irPhql, this_ptr, "_prepareupdate", NULL, 354); + ZEPHIR_CALL_METHOD(&irPhql, this_ptr, "_prepareupdate", NULL, 321); zephir_check_call_status(); break; } if (ZEPHIR_IS_LONG(&type, 303)) { - ZEPHIR_CALL_METHOD(&irPhql, this_ptr, "_preparedelete", NULL, 355); + ZEPHIR_CALL_METHOD(&irPhql, this_ptr, "_preparedelete", NULL, 322); zephir_check_call_status(); break; } @@ -109608,7 +108129,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, parse) { object_init_ex(&_2$$13, phalcon_mvc_model_exception_ce); ZEPHIR_INIT_VAR(&_3$$13); ZEPHIR_CONCAT_SVSV(&_3$$13, "Unknown statement ", &type, ", when preparing: ", &phql); - ZEPHIR_CALL_METHOD(NULL, &_2$$13, "__construct", NULL, 9, &_3$$13); + ZEPHIR_CALL_METHOD(NULL, &_2$$13, "__construct", NULL, 4, &_3$$13); zephir_check_call_status(); zephir_throw_exception_debug(&_2$$13, "phalcon/mvc/model/query.zep", 2487 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -110104,13 +108625,13 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _executeSelect) { object_init_ex(&_46$$66, phalcon_mvc_model_exception_ce); ZEPHIR_INIT_VAR(&_47$$66); ZEPHIR_CONCAT_SVS(&_47$$66, "Resultset class \"", &resultsetClassName, "\" not found"); - ZEPHIR_CALL_METHOD(NULL, &_46$$66, "__construct", NULL, 9, &_47$$66); + ZEPHIR_CALL_METHOD(NULL, &_46$$66, "__construct", NULL, 4, &_47$$66); zephir_check_call_status(); zephir_throw_exception_debug(&_46$$66, "phalcon/mvc/model/query.zep", 2832 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } - ZEPHIR_CALL_FUNCTION(&_48$$65, "class_implements", NULL, 356, &resultsetClassName); + ZEPHIR_CALL_FUNCTION(&_48$$65, "class_implements", NULL, 323, &resultsetClassName); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_49$$65); ZVAL_STRING(&_49$$65, "Phalcon\\Mvc\\Model\\ResultsetInterface"); @@ -110119,7 +108640,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _executeSelect) { object_init_ex(&_50$$67, phalcon_mvc_model_exception_ce); ZEPHIR_INIT_VAR(&_51$$67); ZEPHIR_CONCAT_SVS(&_51$$67, "Resultset class \"", &resultsetClassName, "\" must be an implementation of Phalcon\\Mvc\\Model\\ResultsetInterface"); - ZEPHIR_CALL_METHOD(NULL, &_50$$67, "__construct", NULL, 9, &_51$$67); + ZEPHIR_CALL_METHOD(NULL, &_50$$67, "__construct", NULL, 4, &_51$$67); zephir_check_call_status(); zephir_throw_exception_debug(&_50$$67, "phalcon/mvc/model/query.zep", 2836 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -110146,12 +108667,12 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _executeSelect) { } else { ZVAL_BOOL(&_55$$53, 0); } - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 357, &simpleColumnMap, &resultObject, &resultData, &cache, &_55$$53); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 324, &simpleColumnMap, &resultObject, &resultData, &cache, &_55$$53); zephir_check_call_status(); RETURN_MM(); } object_init_ex(return_value, phalcon_mvc_model_resultset_complex_ce); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 358, &columns1, &resultData, &cache); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 325, &columns1, &resultData, &cache); zephir_check_call_status(); RETURN_MM(); @@ -110301,7 +108822,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _executeInsert) { object_init_ex(&_11$$16, phalcon_mvc_model_exception_ce); ZEPHIR_INIT_LNVAR(_12$$16); ZEPHIR_CONCAT_SVS(&_12$$16, "Bound parameter '", &wildcard, "' cannot be replaced because it isn't in the placeholders list"); - ZEPHIR_CALL_METHOD(NULL, &_11$$16, "__construct", &_13, 9, &_12$$16); + ZEPHIR_CALL_METHOD(NULL, &_11$$16, "__construct", &_13, 4, &_12$$16); zephir_check_call_status(); zephir_throw_exception_debug(&_11$$16, "phalcon/mvc/model/query.zep", 2949 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -110313,7 +108834,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _executeInsert) { object_init_ex(&insertValue, phalcon_db_rawvalue_ce); ZEPHIR_CALL_METHOD(&_14$$17, &dialect, "getsqlexpression", &_15, 0, &exprValue); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, &insertValue, "__construct", &_16, 24, &_14$$17); + ZEPHIR_CALL_METHOD(NULL, &insertValue, "__construct", &_16, 19, &_14$$17); zephir_check_call_status(); break; } while(0); @@ -110328,7 +108849,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _executeInsert) { object_init_ex(&_17$$20, phalcon_mvc_model_exception_ce); ZEPHIR_INIT_LNVAR(_18$$20); ZEPHIR_CONCAT_SVS(&_18$$20, "Column '", &fieldName, "' isn't part of the column map"); - ZEPHIR_CALL_METHOD(NULL, &_17$$20, "__construct", &_13, 9, &_18$$20); + ZEPHIR_CALL_METHOD(NULL, &_17$$20, "__construct", &_13, 4, &_18$$20); zephir_check_call_status(); zephir_throw_exception_debug(&_17$$20, "phalcon/mvc/model/query.zep", 2967 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -110353,7 +108874,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _executeInsert) { object_init_ex(return_value, phalcon_mvc_model_query_status_ce); ZEPHIR_CALL_METHOD(&_20, &insertModel, "create", NULL, 0, &insertValues); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 359, &_20, &insertModel); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 326, &_20, &insertModel); zephir_check_call_status(); RETURN_MM(); @@ -110502,7 +109023,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _executeUpdate) { object_init_ex(&_11$$16, phalcon_mvc_model_exception_ce); ZEPHIR_INIT_LNVAR(_12$$16); ZEPHIR_CONCAT_SVS(&_12$$16, "Bound parameter '", &wildcard, "' cannot be replaced because it's not in the placeholders list"); - ZEPHIR_CALL_METHOD(NULL, &_11$$16, "__construct", &_13, 9, &_12$$16); + ZEPHIR_CALL_METHOD(NULL, &_11$$16, "__construct", &_13, 4, &_12$$16); zephir_check_call_status(); zephir_throw_exception_debug(&_11$$16, "phalcon/mvc/model/query.zep", 3085 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -110518,7 +109039,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _executeUpdate) { object_init_ex(&updateValue, phalcon_db_rawvalue_ce); ZEPHIR_CALL_METHOD(&_14$$18, &dialect, "getsqlexpression", &_15, 0, &exprValue); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, &updateValue, "__construct", &_16, 24, &_14$$18); + ZEPHIR_CALL_METHOD(NULL, &updateValue, "__construct", &_16, 19, &_14$$18); zephir_check_call_status(); break; } while(0); @@ -110527,12 +109048,12 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _executeUpdate) { } ZEND_HASH_FOREACH_END(); ZEPHIR_INIT_NVAR(&field); ZEPHIR_INIT_NVAR(&number); - ZEPHIR_CALL_METHOD(&records, this_ptr, "_getrelatedrecords", NULL, 360, &model, intermediate, &selectBindParams, &selectBindTypes); + ZEPHIR_CALL_METHOD(&records, this_ptr, "_getrelatedrecords", NULL, 327, &model, intermediate, &selectBindParams, &selectBindTypes); zephir_check_call_status(); if (!(zephir_fast_count_int(&records TSRMLS_CC))) { object_init_ex(return_value, phalcon_mvc_model_query_status_ce); ZVAL_BOOL(&_17$$19, 1); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", &_18, 359, &_17$$19); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", &_18, 326, &_17$$19); zephir_check_call_status(); RETURN_MM(); } @@ -110566,7 +109087,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _executeUpdate) { zephir_check_call_status(); object_init_ex(return_value, phalcon_mvc_model_query_status_ce); ZVAL_BOOL(&_23$$24, 0); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", &_18, 359, &_23$$24, &record); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", &_18, 326, &_23$$24, &record); zephir_check_call_status(); RETURN_MM(); } @@ -110577,7 +109098,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _executeUpdate) { zephir_check_call_status(); object_init_ex(return_value, phalcon_mvc_model_query_status_ce); ZVAL_BOOL(&_25, 1); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", &_18, 359, &_25); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", &_18, 326, &_25); zephir_check_call_status(); RETURN_MM(); @@ -110627,12 +109148,12 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _executeDelete) { ZEPHIR_CALL_METHOD(&model, &_1$$4, "load", NULL, 0, &modelName); zephir_check_call_status(); } - ZEPHIR_CALL_METHOD(&records, this_ptr, "_getrelatedrecords", NULL, 360, &model, intermediate, bindParams, bindTypes); + ZEPHIR_CALL_METHOD(&records, this_ptr, "_getrelatedrecords", NULL, 327, &model, intermediate, bindParams, bindTypes); zephir_check_call_status(); if (!(zephir_fast_count_int(&records TSRMLS_CC))) { object_init_ex(return_value, phalcon_mvc_model_query_status_ce); ZVAL_BOOL(&_2$$5, 1); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", &_3, 359, &_2$$5); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", &_3, 326, &_2$$5); zephir_check_call_status(); RETURN_MM(); } @@ -110666,7 +109187,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _executeDelete) { zephir_check_call_status(); object_init_ex(return_value, phalcon_mvc_model_query_status_ce); ZVAL_BOOL(&_8$$10, 0); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", &_3, 359, &_8$$10, &record); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", &_3, 326, &_8$$10, &record); zephir_check_call_status(); RETURN_MM(); } @@ -110677,7 +109198,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _executeDelete) { zephir_check_call_status(); object_init_ex(return_value, phalcon_mvc_model_query_status_ce); ZVAL_BOOL(&_10, 1); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", &_3, 359, &_10); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", &_3, 326, &_10); zephir_check_call_status(); RETURN_MM(); @@ -110742,17 +109263,17 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getRelatedRecords) { } ZEPHIR_INIT_VAR(&query); object_init_ex(&query, phalcon_mvc_model_query_ce); - ZEPHIR_CALL_METHOD(NULL, &query, "__construct", NULL, 361); + ZEPHIR_CALL_METHOD(NULL, &query, "__construct", NULL, 328); zephir_check_call_status(); zephir_read_property(&_5, this_ptr, SL("_dependencyInjector"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_METHOD(NULL, &query, "setdi", NULL, 362, &_5); + ZEPHIR_CALL_METHOD(NULL, &query, "setdi", NULL, 329, &_5); zephir_check_call_status(); ZVAL_LONG(&_6, 309); - ZEPHIR_CALL_METHOD(NULL, &query, "settype", NULL, 363, &_6); + ZEPHIR_CALL_METHOD(NULL, &query, "settype", NULL, 330, &_6); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, &query, "setintermediate", NULL, 364, &selectIr); + ZEPHIR_CALL_METHOD(NULL, &query, "setintermediate", NULL, 331, &selectIr); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_METHOD(&query, "execute", NULL, 365, bindParams, bindTypes); + ZEPHIR_RETURN_CALL_METHOD(&query, "execute", NULL, 332, bindParams, bindTypes); zephir_check_call_status(); RETURN_MM(); @@ -110897,22 +109418,22 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, execute) { zephir_read_property(&type, this_ptr, SL("_type"), PH_NOISY_CC); do { if (ZEPHIR_IS_LONG(&type, 309)) { - ZEPHIR_CALL_METHOD(&result, this_ptr, "_executeselect", NULL, 366, &intermediate, &mergedParams, &mergedTypes); + ZEPHIR_CALL_METHOD(&result, this_ptr, "_executeselect", NULL, 333, &intermediate, &mergedParams, &mergedTypes); zephir_check_call_status(); break; } if (ZEPHIR_IS_LONG(&type, 306)) { - ZEPHIR_CALL_METHOD(&result, this_ptr, "_executeinsert", NULL, 367, &intermediate, &mergedParams, &mergedTypes); + ZEPHIR_CALL_METHOD(&result, this_ptr, "_executeinsert", NULL, 334, &intermediate, &mergedParams, &mergedTypes); zephir_check_call_status(); break; } if (ZEPHIR_IS_LONG(&type, 300)) { - ZEPHIR_CALL_METHOD(&result, this_ptr, "_executeupdate", NULL, 368, &intermediate, &mergedParams, &mergedTypes); + ZEPHIR_CALL_METHOD(&result, this_ptr, "_executeupdate", NULL, 335, &intermediate, &mergedParams, &mergedTypes); zephir_check_call_status(); break; } if (ZEPHIR_IS_LONG(&type, 303)) { - ZEPHIR_CALL_METHOD(&result, this_ptr, "_executedelete", NULL, 369, &intermediate, &mergedParams, &mergedTypes); + ZEPHIR_CALL_METHOD(&result, this_ptr, "_executedelete", NULL, 336, &intermediate, &mergedParams, &mergedTypes); zephir_check_call_status(); break; } @@ -110920,7 +109441,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, execute) { object_init_ex(&_4$$27, phalcon_mvc_model_exception_ce); ZEPHIR_INIT_VAR(&_5$$27); ZEPHIR_CONCAT_SV(&_5$$27, "Unknown statement ", &type); - ZEPHIR_CALL_METHOD(NULL, &_4$$27, "__construct", NULL, 9, &_5$$27); + ZEPHIR_CALL_METHOD(NULL, &_4$$27, "__construct", NULL, 4, &_5$$27); zephir_check_call_status(); zephir_throw_exception_debug(&_4$$27, "phalcon/mvc/model/query.zep", 3431 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -110976,7 +109497,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, getSingleResult) { zephir_check_call_status(); RETURN_MM(); } - ZEPHIR_CALL_METHOD(&_1, this_ptr, "execute", NULL, 365, bindParams, bindTypes); + ZEPHIR_CALL_METHOD(&_1, this_ptr, "execute", NULL, 332, bindParams, bindTypes); zephir_check_call_status(); ZEPHIR_RETURN_CALL_METHOD(&_1, "getfirst", NULL, 0); zephir_check_call_status(); @@ -111208,7 +109729,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, getSql) { zephir_read_property(&_1$$3, this_ptr, SL("_bindParams"), PH_NOISY_CC | PH_READONLY); zephir_read_property(&_2$$3, this_ptr, SL("_bindTypes"), PH_NOISY_CC | PH_READONLY); ZVAL_BOOL(&_3$$3, 1); - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_executeselect", NULL, 366, &intermediate, &_1$$3, &_2$$3, &_3$$3); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_executeselect", NULL, 333, &intermediate, &_1$$3, &_2$$3, &_3$$3); zephir_check_call_status(); RETURN_MM(); } @@ -111330,11 +109851,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Relation, __construct) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 4, 1, &type, &referencedModel_param, &fields, &referencedFields, &options); - if (unlikely(Z_TYPE_P(referencedModel_param) != IS_STRING && Z_TYPE_P(referencedModel_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(referencedModel_param) != IS_STRING && Z_TYPE_P(referencedModel_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'referencedModel' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(referencedModel_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(referencedModel_param) == IS_STRING)) { zephir_get_strval(&referencedModel, referencedModel_param); } else { ZEPHIR_INIT_VAR(&referencedModel); @@ -111368,11 +109889,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Relation, setIntermediateRelation) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &intermediateFields, &intermediateModel_param, &intermediateReferencedFields); - if (unlikely(Z_TYPE_P(intermediateModel_param) != IS_STRING && Z_TYPE_P(intermediateModel_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(intermediateModel_param) != IS_STRING && Z_TYPE_P(intermediateModel_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'intermediateModel' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(intermediateModel_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(intermediateModel_param) == IS_STRING)) { zephir_get_strval(&intermediateModel, intermediateModel_param); } else { ZEPHIR_INIT_VAR(&intermediateModel); @@ -111445,11 +109966,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Relation, getOption) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(&name, name_param); } else { ZEPHIR_INIT_VAR(&name); @@ -111784,7 +110305,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Resultset, next) { zephir_read_property(&_0, this_ptr, SL("_pointer"), PH_NOISY_CC | PH_READONLY); ZVAL_LONG(&_1, (zephir_get_numberval(&_0) + 1)); - ZEPHIR_CALL_METHOD(NULL, this_ptr, "seek", NULL, 74, &_1); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "seek", NULL, 68, &_1); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -111834,7 +110355,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Resultset, rewind) { ZEPHIR_MM_GROW(); ZVAL_LONG(&_0, 0); - ZEPHIR_CALL_METHOD(NULL, this_ptr, "seek", NULL, 74, &_0); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "seek", NULL, 68, &_0); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -111976,7 +110497,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Resultset, offsetGet) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &index_param); - if (unlikely(Z_TYPE_P(index_param) != IS_LONG)) { + if (UNEXPECTED(Z_TYPE_P(index_param) != IS_LONG)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'index' must be a int") TSRMLS_CC); RETURN_MM_NULL(); } @@ -111986,7 +110507,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Resultset, offsetGet) { zephir_read_property(&_0, this_ptr, SL("_count"), PH_NOISY_CC | PH_READONLY); if (ZEPHIR_GT_LONG(&_0, index)) { ZVAL_LONG(&_1$$3, index); - ZEPHIR_CALL_METHOD(NULL, this_ptr, "seek", NULL, 74, &_1$$3); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "seek", NULL, 68, &_1$$3); zephir_check_call_status(); ZEPHIR_RETURN_CALL_METHOD(this_ptr, "current", NULL, 0); zephir_check_call_status(); @@ -112069,7 +110590,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Resultset, getFirst) { RETURN_MM_BOOL(0); } ZVAL_LONG(&_1, 0); - ZEPHIR_CALL_METHOD(NULL, this_ptr, "seek", NULL, 74, &_1); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "seek", NULL, 68, &_1); zephir_check_call_status(); ZEPHIR_RETURN_CALL_METHOD(this_ptr, "current", NULL, 0); zephir_check_call_status(); @@ -112094,7 +110615,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Resultset, getLast) { RETURN_MM_BOOL(0); } ZVAL_LONG(&_0, (zephir_get_numberval(&count) - 1)); - ZEPHIR_CALL_METHOD(NULL, this_ptr, "seek", NULL, 74, &_0); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "seek", NULL, 68, &_0); zephir_check_call_status(); ZEPHIR_RETURN_CALL_METHOD(this_ptr, "current", NULL, 0); zephir_check_call_status(); @@ -112213,7 +110734,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Resultset, update) { ZEPHIR_INIT_VAR(&connection); ZVAL_NULL(&connection); transaction = 0; - ZEPHIR_CALL_METHOD(NULL, this_ptr, "rewind", NULL, 75); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "rewind", NULL, 69); zephir_check_call_status(); while (1) { ZEPHIR_CALL_METHOD(&_0, this_ptr, "valid", &_1, 0); @@ -112300,7 +110821,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Resultset, delete) { ZEPHIR_INIT_VAR(&connection); ZVAL_NULL(&connection); transaction = 0; - ZEPHIR_CALL_METHOD(NULL, this_ptr, "rewind", NULL, 75); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "rewind", NULL, 69); zephir_check_call_status(); while (1) { ZEPHIR_CALL_METHOD(&_0, this_ptr, "valid", &_1, 0); @@ -112380,7 +110901,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Resultset, filter) { array_init(&records); ZEPHIR_INIT_VAR(¶meters); array_init(¶meters); - ZEPHIR_CALL_METHOD(NULL, this_ptr, "rewind", NULL, 75); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "rewind", NULL, 69); zephir_check_call_status(); while (1) { ZEPHIR_CALL_METHOD(&_0, this_ptr, "valid", &_1, 0); @@ -112428,7 +110949,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Resultset, jsonSerialize) { ZEPHIR_INIT_VAR(&records); array_init(&records); - ZEPHIR_CALL_METHOD(NULL, this_ptr, "rewind", NULL, 75); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "rewind", NULL, 69); zephir_check_call_status(); while (1) { ZEPHIR_CALL_METHOD(&_0, this_ptr, "valid", &_1, 0); @@ -112630,11 +111151,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Row, writeAttribute) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &attribute_param, &value); - if (unlikely(Z_TYPE_P(attribute_param) != IS_STRING && Z_TYPE_P(attribute_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(attribute_param) != IS_STRING && Z_TYPE_P(attribute_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'attribute' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(attribute_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(attribute_param) == IS_STRING)) { zephir_get_strval(&attribute, attribute_param); } else { ZEPHIR_INIT_VAR(&attribute); @@ -112655,7 +111176,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Row, toArray) { ZEPHIR_MM_GROW(); - ZEPHIR_RETURN_CALL_FUNCTION("get_object_vars", NULL, 21, this_ptr); + ZEPHIR_RETURN_CALL_FUNCTION("get_object_vars", NULL, 16, this_ptr); zephir_check_call_status(); RETURN_MM(); @@ -112860,7 +111381,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Transaction, rollback) { ZEPHIR_INIT_VAR(&_1$$4); object_init_ex(&_1$$4, phalcon_mvc_model_transaction_failed_ce); zephir_read_property(&_2$$4, this_ptr, SL("_rollbackRecord"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_METHOD(NULL, &_1$$4, "__construct", NULL, 376, rollbackMessage, &_2$$4); + ZEPHIR_CALL_METHOD(NULL, &_1$$4, "__construct", NULL, 340, rollbackMessage, &_2$$4); zephir_check_call_status(); zephir_throw_exception_debug(&_1$$4, "phalcon/mvc/model/transaction.zep", 163 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -112884,7 +111405,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Transaction, getConnection) { zephir_read_property(&_0, this_ptr, SL("_rollbackOnAbort"), PH_NOISY_CC | PH_READONLY); if (zephir_is_true(&_0)) { - ZEPHIR_CALL_FUNCTION(&_1$$3, "connection_aborted", NULL, 377); + ZEPHIR_CALL_FUNCTION(&_1$$3, "connection_aborted", NULL, 341); zephir_check_call_status(); if (zephir_is_true(&_1$$3)) { ZEPHIR_INIT_VAR(&_2$$4); @@ -113175,11 +111696,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Validator, appendMessage) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &message_param, &field, &type); - if (unlikely(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'message' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(message_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(message_param) == IS_STRING)) { zephir_get_strval(&message, message_param); } else { ZEPHIR_INIT_VAR(&message); @@ -113209,7 +111730,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Validator, appendMessage) { } ZEPHIR_INIT_VAR(&_3); object_init_ex(&_3, phalcon_mvc_model_message_ce); - ZEPHIR_CALL_METHOD(NULL, &_3, "__construct", NULL, 8, &message, field, type); + ZEPHIR_CALL_METHOD(NULL, &_3, "__construct", NULL, 3, &message, field, type); zephir_check_call_status(); zephir_update_property_array_append(this_ptr, SL("_messages"), &_3 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -113248,11 +111769,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Validator, getOption) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &option_param, &defaultValue); - if (unlikely(Z_TYPE_P(option_param) != IS_STRING && Z_TYPE_P(option_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(option_param) != IS_STRING && Z_TYPE_P(option_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'option' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(option_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(option_param) == IS_STRING)) { zephir_get_strval(&option, option_param); } else { ZEPHIR_INIT_VAR(&option); @@ -113286,11 +111807,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Validator, isSetOption) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &option_param); - if (unlikely(Z_TYPE_P(option_param) != IS_STRING && Z_TYPE_P(option_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(option_param) != IS_STRING && Z_TYPE_P(option_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'option' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(option_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(option_param) == IS_STRING)) { zephir_get_strval(&option, option_param); } else { ZEPHIR_INIT_VAR(&option); @@ -113389,11 +111910,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Behavior_SoftDelete, notify) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &type_param, &model); - if (unlikely(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'type' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(type_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(type_param) == IS_STRING)) { zephir_get_strval(&type, type_param); } else { ZEPHIR_INIT_VAR(&type); @@ -113489,11 +112010,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Behavior_Timestampable, notify) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &type_param, &model); - if (unlikely(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'type' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(type_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(type_param) == IS_STRING)) { zephir_get_strval(&type, type_param); } else { ZEPHIR_INIT_VAR(&type); @@ -113518,7 +112039,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Behavior_Timestampable, notify) { ZVAL_NULL(×tamp); ZEPHIR_OBS_VAR(&format); if (zephir_array_isset_string_fetch(&format, &options, SL("format"), 0)) { - ZEPHIR_CALL_FUNCTION(×tamp, "date", NULL, 303, &format); + ZEPHIR_CALL_FUNCTION(×tamp, "date", NULL, 271, &format); zephir_check_call_status(); } else { ZEPHIR_OBS_VAR(&generator); @@ -113644,11 +112165,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Apc, read) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &key_param); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(&key, key_param); } else { ZEPHIR_INIT_VAR(&key); @@ -113659,7 +112180,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Apc, read) { zephir_read_property(&_0, this_ptr, SL("_prefix"), PH_NOISY_CC | PH_READONLY); ZEPHIR_INIT_VAR(&_1); ZEPHIR_CONCAT_SVV(&_1, "$PMM$", &_0, &key); - ZEPHIR_CALL_FUNCTION(&data, "apc_fetch", NULL, 85, &_1); + ZEPHIR_CALL_FUNCTION(&data, "apc_fetch", NULL, 77, &_1); zephir_check_call_status(); if (Z_TYPE_P(&data) == IS_ARRAY) { RETURN_CCTOR(data); @@ -113684,11 +112205,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Apc, write) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &key_param, &data); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(&key, key_param); } else { ZEPHIR_INIT_VAR(&key); @@ -113700,7 +112221,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Apc, write) { ZEPHIR_INIT_VAR(&_1); ZEPHIR_CONCAT_SVV(&_1, "$PMM$", &_0, &key); zephir_read_property(&_2, this_ptr, SL("_ttl"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(NULL, "apc_store", NULL, 86, &_1, data, &_2); + ZEPHIR_CALL_FUNCTION(NULL, "apc_store", NULL, 78, &_1, data, &_2); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -113793,11 +112314,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Files, read) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &key_param); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(&key, key_param); } else { ZEPHIR_INIT_VAR(&key); @@ -113842,11 +112363,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Files, write) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &key_param, &data); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(&key, key_param); } else { ZEPHIR_INIT_VAR(&key); @@ -113976,9 +112497,9 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Libmemcached, __construct) { ZEPHIR_OBS_VAR(&_4); zephir_read_property(&_4, this_ptr, SL("_ttl"), PH_NOISY_CC); zephir_array_update_string(&_3, SL("lifetime"), &_4, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", NULL, 333, &_3); + ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", NULL, 301, &_3); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, &_1, "__construct", NULL, 334, &_2, options); + ZEPHIR_CALL_METHOD(NULL, &_1, "__construct", NULL, 302, &_2, options); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_memcache"), &_1); ZEPHIR_MM_RESTORE(); @@ -113999,11 +112520,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Libmemcached, read) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &key_param); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(&key, key_param); } else { ZEPHIR_INIT_VAR(&key); @@ -114035,11 +112556,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Libmemcached, write) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &key_param, &data); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(&key, key_param); } else { ZEPHIR_INIT_VAR(&key); @@ -114095,7 +112616,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Libmemcached, reset) { ZEPHIR_INIT_NVAR(&_0$$3); ZEPHIR_INIT_NVAR(&key); } - ZEPHIR_CALL_PARENT(NULL, phalcon_mvc_model_metadata_libmemcached_ce, this_ptr, "reset", &_5, 335); + ZEPHIR_CALL_PARENT(NULL, phalcon_mvc_model_metadata_libmemcached_ce, this_ptr, "reset", &_5, 0); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -114215,9 +112736,9 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Memcache, __construct) { ZEPHIR_OBS_VAR(&_7); zephir_read_property(&_7, this_ptr, SL("_ttl"), PH_NOISY_CC); zephir_array_update_string(&_6, SL("lifetime"), &_7, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(NULL, &_5, "__construct", NULL, 333, &_6); + ZEPHIR_CALL_METHOD(NULL, &_5, "__construct", NULL, 301, &_6); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, &_4, "__construct", NULL, 336, &_5, options); + ZEPHIR_CALL_METHOD(NULL, &_4, "__construct", NULL, 303, &_5, options); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_memcache"), &_4); ZEPHIR_MM_RESTORE(); @@ -114238,11 +112759,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Memcache, read) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &key_param); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(&key, key_param); } else { ZEPHIR_INIT_VAR(&key); @@ -114274,11 +112795,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Memcache, write) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &key_param, &data); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(&key, key_param); } else { ZEPHIR_INIT_VAR(&key); @@ -114334,7 +112855,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Memcache, reset) { ZEPHIR_INIT_NVAR(&_0$$3); ZEPHIR_INIT_NVAR(&key); } - ZEPHIR_CALL_PARENT(NULL, phalcon_mvc_model_metadata_memcache_ce, this_ptr, "reset", &_5, 335); + ZEPHIR_CALL_PARENT(NULL, phalcon_mvc_model_metadata_memcache_ce, this_ptr, "reset", &_5, 0); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -114414,11 +112935,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Memory, read) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &key_param); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(&key, key_param); } else { ZEPHIR_INIT_VAR(&key); @@ -114442,11 +112963,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Memory, write) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &key_param, &data); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(&key, key_param); } else { ZEPHIR_INIT_VAR(&key); @@ -114572,9 +113093,9 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Redis, __construct) { ZEPHIR_OBS_VAR(&_7); zephir_read_property(&_7, this_ptr, SL("_ttl"), PH_NOISY_CC); zephir_array_update_string(&_6, SL("lifetime"), &_7, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(NULL, &_5, "__construct", NULL, 333, &_6); + ZEPHIR_CALL_METHOD(NULL, &_5, "__construct", NULL, 301, &_6); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, &_4, "__construct", NULL, 337, &_5, options); + ZEPHIR_CALL_METHOD(NULL, &_4, "__construct", NULL, 304, &_5, options); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_redis"), &_4); ZEPHIR_MM_RESTORE(); @@ -114595,11 +113116,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Redis, read) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &key_param); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(&key, key_param); } else { ZEPHIR_INIT_VAR(&key); @@ -114631,11 +113152,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Redis, write) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &key_param, &data); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(&key, key_param); } else { ZEPHIR_INIT_VAR(&key); @@ -114691,7 +113212,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Redis, reset) { ZEPHIR_INIT_NVAR(&_0$$3); ZEPHIR_INIT_NVAR(&key); } - ZEPHIR_CALL_PARENT(NULL, phalcon_mvc_model_metadata_redis_ce, this_ptr, "reset", &_5, 335); + ZEPHIR_CALL_PARENT(NULL, phalcon_mvc_model_metadata_redis_ce, this_ptr, "reset", &_5, 0); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -114782,11 +113303,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Session, read) { zephir_get_global(&_SESSION, SL("_SESSION")); zephir_fetch_params(1, 1, 0, &key_param); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(&key, key_param); } else { ZEPHIR_INIT_VAR(&key); @@ -114821,11 +113342,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Session, write) { zephir_get_global(&_SESSION, SL("_SESSION")); zephir_fetch_params(1, 2, 0, &key_param, &data); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(&key, key_param); } else { ZEPHIR_INIT_VAR(&key); @@ -114932,11 +113453,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Xcache, read) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &key_param); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(&key, key_param); } else { ZEPHIR_INIT_VAR(&key); @@ -114947,7 +113468,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Xcache, read) { zephir_read_property(&_0, this_ptr, SL("_prefix"), PH_NOISY_CC | PH_READONLY); ZEPHIR_INIT_VAR(&_1); ZEPHIR_CONCAT_SVV(&_1, "$PMM$", &_0, &key); - ZEPHIR_CALL_FUNCTION(&data, "xcache_get", NULL, 87, &_1); + ZEPHIR_CALL_FUNCTION(&data, "xcache_get", NULL, 79, &_1); zephir_check_call_status(); if (Z_TYPE_P(&data) == IS_ARRAY) { RETURN_CCTOR(data); @@ -114972,11 +113493,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Xcache, write) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &key_param, &data); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(&key, key_param); } else { ZEPHIR_INIT_VAR(&key); @@ -114988,7 +113509,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Xcache, write) { ZEPHIR_INIT_VAR(&_1); ZEPHIR_CONCAT_SVV(&_1, "$PMM$", &_0, &key); zephir_read_property(&_2, this_ptr, SL("_ttl"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(NULL, "xcache_set", NULL, 88, &_1, data, &_2); + ZEPHIR_CALL_FUNCTION(NULL, "xcache_set", NULL, 80, &_1, data, &_2); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -115117,7 +113638,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Strategy_Annotations, getMetaData) object_init_ex(&_1$$4, phalcon_mvc_model_exception_ce); ZEPHIR_INIT_VAR(&_2$$4); ZEPHIR_CONCAT_SV(&_2$$4, "No annotations were found in class ", &className); - ZEPHIR_CALL_METHOD(NULL, &_1$$4, "__construct", NULL, 9, &_2$$4); + ZEPHIR_CALL_METHOD(NULL, &_1$$4, "__construct", NULL, 4, &_2$$4); zephir_check_call_status(); zephir_throw_exception_debug(&_1$$4, "phalcon/mvc/model/metadata/strategy/annotations.zep", 51 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -115130,7 +113651,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Strategy_Annotations, getMetaData) object_init_ex(&_3$$5, phalcon_mvc_model_exception_ce); ZEPHIR_INIT_VAR(&_4$$5); ZEPHIR_CONCAT_SV(&_4$$5, "No properties with annotations were found in class ", &className); - ZEPHIR_CALL_METHOD(NULL, &_3$$5, "__construct", NULL, 9, &_4$$5); + ZEPHIR_CALL_METHOD(NULL, &_3$$5, "__construct", NULL, 4, &_4$$5); zephir_check_call_status(); zephir_throw_exception_debug(&_3$$5, "phalcon/mvc/model/metadata/strategy/annotations.zep", 60 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -115365,7 +113886,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Strategy_Annotations, getColumnMaps object_init_ex(&_1$$4, phalcon_mvc_model_exception_ce); ZEPHIR_INIT_VAR(&_2$$4); ZEPHIR_CONCAT_SV(&_2$$4, "No annotations were found in class ", &className); - ZEPHIR_CALL_METHOD(NULL, &_1$$4, "__construct", NULL, 9, &_2$$4); + ZEPHIR_CALL_METHOD(NULL, &_1$$4, "__construct", NULL, 4, &_2$$4); zephir_check_call_status(); zephir_throw_exception_debug(&_1$$4, "phalcon/mvc/model/metadata/strategy/annotations.zep", 217 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -115378,7 +113899,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Strategy_Annotations, getColumnMaps object_init_ex(&_3$$5, phalcon_mvc_model_exception_ce); ZEPHIR_INIT_VAR(&_4$$5); ZEPHIR_CONCAT_SV(&_4$$5, "No properties with annotations were found in class ", &className); - ZEPHIR_CALL_METHOD(NULL, &_3$$5, "__construct", NULL, 9, &_4$$5); + ZEPHIR_CALL_METHOD(NULL, &_3$$5, "__construct", NULL, 4, &_4$$5); zephir_check_call_status(); zephir_throw_exception_debug(&_3$$5, "phalcon/mvc/model/metadata/strategy/annotations.zep", 225 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -115524,7 +114045,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Strategy_Introspection, getMetaData zephir_get_class(&_2$$3, model, 0 TSRMLS_CC); ZEPHIR_INIT_VAR(&_3$$3); ZEPHIR_CONCAT_SVSV(&_3$$3, "Table '", &completeTable, "' doesn't exist in database when dumping meta-data for ", &_2$$3); - ZEPHIR_CALL_METHOD(NULL, &_1$$3, "__construct", NULL, 9, &_3$$3); + ZEPHIR_CALL_METHOD(NULL, &_1$$3, "__construct", NULL, 4, &_3$$3); zephir_check_call_status(); zephir_throw_exception_debug(&_1$$3, "phalcon/mvc/model/metadata/strategy/introspection.zep", 68 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -115545,7 +114066,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Strategy_Introspection, getMetaData zephir_get_class(&_5$$6, model, 0 TSRMLS_CC); ZEPHIR_INIT_VAR(&_6$$6); ZEPHIR_CONCAT_SVSV(&_6$$6, "Cannot obtain table columns for the mapped source '", &completeTable, "' used in model ", &_5$$6); - ZEPHIR_CALL_METHOD(NULL, &_4$$6, "__construct", NULL, 9, &_6$$6); + ZEPHIR_CALL_METHOD(NULL, &_4$$6, "__construct", NULL, 4, &_6$$6); zephir_check_call_status(); zephir_throw_exception_debug(&_4$$6, "phalcon/mvc/model/metadata/strategy/introspection.zep", 88 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -116111,11 +114632,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, join) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 3, &model_param, &conditions, &alias, &type); - if (unlikely(Z_TYPE_P(model_param) != IS_STRING && Z_TYPE_P(model_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(model_param) != IS_STRING && Z_TYPE_P(model_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'model' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(model_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(model_param) == IS_STRING)) { zephir_get_strval(&model, model_param); } else { ZEPHIR_INIT_VAR(&model); @@ -116163,11 +114684,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, innerJoin) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &model_param, &conditions, &alias); - if (unlikely(Z_TYPE_P(model_param) != IS_STRING && Z_TYPE_P(model_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(model_param) != IS_STRING && Z_TYPE_P(model_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'model' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(model_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(model_param) == IS_STRING)) { zephir_get_strval(&model, model_param); } else { ZEPHIR_INIT_VAR(&model); @@ -116213,11 +114734,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, leftJoin) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &model_param, &conditions, &alias); - if (unlikely(Z_TYPE_P(model_param) != IS_STRING && Z_TYPE_P(model_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(model_param) != IS_STRING && Z_TYPE_P(model_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'model' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(model_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(model_param) == IS_STRING)) { zephir_get_strval(&model, model_param); } else { ZEPHIR_INIT_VAR(&model); @@ -116263,11 +114784,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, rightJoin) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &model_param, &conditions, &alias); - if (unlikely(Z_TYPE_P(model_param) != IS_STRING && Z_TYPE_P(model_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(model_param) != IS_STRING && Z_TYPE_P(model_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'model' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(model_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(model_param) == IS_STRING)) { zephir_get_strval(&model, model_param); } else { ZEPHIR_INIT_VAR(&model); @@ -116374,11 +114895,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, andWhere) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &conditions_param, &bindParams, &bindTypes); - if (unlikely(Z_TYPE_P(conditions_param) != IS_STRING && Z_TYPE_P(conditions_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(conditions_param) != IS_STRING && Z_TYPE_P(conditions_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'conditions' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(conditions_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(conditions_param) == IS_STRING)) { zephir_get_strval(&conditions, conditions_param); } else { ZEPHIR_INIT_VAR(&conditions); @@ -116424,11 +114945,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, orWhere) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &conditions_param, &bindParams, &bindTypes); - if (unlikely(Z_TYPE_P(conditions_param) != IS_STRING && Z_TYPE_P(conditions_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(conditions_param) != IS_STRING && Z_TYPE_P(conditions_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'conditions' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(conditions_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(conditions_param) == IS_STRING)) { zephir_get_strval(&conditions, conditions_param); } else { ZEPHIR_INIT_VAR(&conditions); @@ -116485,11 +115006,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, betweenWhere) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 1, &expr_param, &minimum, &maximum, &operator_param); - if (unlikely(Z_TYPE_P(expr_param) != IS_STRING && Z_TYPE_P(expr_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(expr_param) != IS_STRING && Z_TYPE_P(expr_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'expr' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(expr_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(expr_param) == IS_STRING)) { zephir_get_strval(&expr, expr_param); } else { ZEPHIR_INIT_VAR(&expr); @@ -116499,11 +115020,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, betweenWhere) { ZEPHIR_INIT_VAR(&operator); ZVAL_STRING(&operator, "and"); } else { - if (unlikely(Z_TYPE_P(operator_param) != IS_STRING && Z_TYPE_P(operator_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(operator_param) != IS_STRING && Z_TYPE_P(operator_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'operator' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(operator_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(operator_param) == IS_STRING)) { zephir_get_strval(&operator, operator_param); } else { ZEPHIR_INIT_VAR(&operator); @@ -116521,9 +115042,9 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, betweenWhere) { object_init_ex(&_1$$3, phalcon_mvc_model_exception_ce); ZEPHIR_INIT_VAR(&_2$$3); ZVAL_STRING(&_2$$3, "Operator % is not available."); - ZEPHIR_CALL_FUNCTION(&_3$$3, "sprintf", NULL, 194, &_2$$3, &operator); + ZEPHIR_CALL_FUNCTION(&_3$$3, "sprintf", NULL, 176, &_2$$3, &operator); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, &_1$$3, "__construct", NULL, 9, &_3$$3); + ZEPHIR_CALL_METHOD(NULL, &_1$$3, "__construct", NULL, 4, &_3$$3); zephir_check_call_status(); zephir_throw_exception_debug(&_1$$3, "phalcon/mvc/model/query/builder.zep", 689 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -116583,11 +115104,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, notBetweenWhere) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 1, &expr_param, &minimum, &maximum, &operator_param); - if (unlikely(Z_TYPE_P(expr_param) != IS_STRING && Z_TYPE_P(expr_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(expr_param) != IS_STRING && Z_TYPE_P(expr_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'expr' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(expr_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(expr_param) == IS_STRING)) { zephir_get_strval(&expr, expr_param); } else { ZEPHIR_INIT_VAR(&expr); @@ -116597,11 +115118,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, notBetweenWhere) { ZEPHIR_INIT_VAR(&operator); ZVAL_STRING(&operator, "and"); } else { - if (unlikely(Z_TYPE_P(operator_param) != IS_STRING && Z_TYPE_P(operator_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(operator_param) != IS_STRING && Z_TYPE_P(operator_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'operator' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(operator_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(operator_param) == IS_STRING)) { zephir_get_strval(&operator, operator_param); } else { ZEPHIR_INIT_VAR(&operator); @@ -116619,9 +115140,9 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, notBetweenWhere) { object_init_ex(&_1$$3, phalcon_mvc_model_exception_ce); ZEPHIR_INIT_VAR(&_2$$3); ZVAL_STRING(&_2$$3, "Operator % is not available."); - ZEPHIR_CALL_FUNCTION(&_3$$3, "sprintf", NULL, 194, &_2$$3, &operator); + ZEPHIR_CALL_FUNCTION(&_3$$3, "sprintf", NULL, 176, &_2$$3, &operator); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, &_1$$3, "__construct", NULL, 9, &_3$$3); + ZEPHIR_CALL_METHOD(NULL, &_1$$3, "__construct", NULL, 4, &_3$$3); zephir_check_call_status(); zephir_throw_exception_debug(&_1$$3, "phalcon/mvc/model/query/builder.zep", 732 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -116686,11 +115207,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, inWhere) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 1, &expr_param, &values_param, &operator_param); - if (unlikely(Z_TYPE_P(expr_param) != IS_STRING && Z_TYPE_P(expr_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(expr_param) != IS_STRING && Z_TYPE_P(expr_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'expr' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(expr_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(expr_param) == IS_STRING)) { zephir_get_strval(&expr, expr_param); } else { ZEPHIR_INIT_VAR(&expr); @@ -116701,11 +115222,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, inWhere) { ZEPHIR_INIT_VAR(&operator); ZVAL_STRING(&operator, "and"); } else { - if (unlikely(Z_TYPE_P(operator_param) != IS_STRING && Z_TYPE_P(operator_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(operator_param) != IS_STRING && Z_TYPE_P(operator_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'operator' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(operator_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(operator_param) == IS_STRING)) { zephir_get_strval(&operator, operator_param); } else { ZEPHIR_INIT_VAR(&operator); @@ -116723,9 +115244,9 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, inWhere) { object_init_ex(&_1$$3, phalcon_mvc_model_exception_ce); ZEPHIR_INIT_VAR(&_2$$3); ZVAL_STRING(&_2$$3, "Operator % is not available."); - ZEPHIR_CALL_FUNCTION(&_3$$3, "sprintf", NULL, 194, &_2$$3, &operator); + ZEPHIR_CALL_FUNCTION(&_3$$3, "sprintf", NULL, 176, &_2$$3, &operator); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, &_1$$3, "__construct", NULL, 9, &_3$$3); + ZEPHIR_CALL_METHOD(NULL, &_1$$3, "__construct", NULL, 4, &_3$$3); zephir_check_call_status(); zephir_throw_exception_debug(&_1$$3, "phalcon/mvc/model/query/builder.zep", 775 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -116811,11 +115332,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, notInWhere) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 1, &expr_param, &values_param, &operator_param); - if (unlikely(Z_TYPE_P(expr_param) != IS_STRING && Z_TYPE_P(expr_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(expr_param) != IS_STRING && Z_TYPE_P(expr_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'expr' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(expr_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(expr_param) == IS_STRING)) { zephir_get_strval(&expr, expr_param); } else { ZEPHIR_INIT_VAR(&expr); @@ -116826,11 +115347,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, notInWhere) { ZEPHIR_INIT_VAR(&operator); ZVAL_STRING(&operator, "and"); } else { - if (unlikely(Z_TYPE_P(operator_param) != IS_STRING && Z_TYPE_P(operator_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(operator_param) != IS_STRING && Z_TYPE_P(operator_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'operator' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(operator_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(operator_param) == IS_STRING)) { zephir_get_strval(&operator, operator_param); } else { ZEPHIR_INIT_VAR(&operator); @@ -116848,9 +115369,9 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, notInWhere) { object_init_ex(&_1$$3, phalcon_mvc_model_exception_ce); ZEPHIR_INIT_VAR(&_2$$3); ZVAL_STRING(&_2$$3, "Operator % is not available."); - ZEPHIR_CALL_FUNCTION(&_3$$3, "sprintf", NULL, 194, &_2$$3, &operator); + ZEPHIR_CALL_FUNCTION(&_3$$3, "sprintf", NULL, 176, &_2$$3, &operator); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, &_1$$3, "__construct", NULL, 9, &_3$$3); + ZEPHIR_CALL_METHOD(NULL, &_1$$3, "__construct", NULL, 4, &_3$$3); zephir_check_call_status(); zephir_throw_exception_debug(&_1$$3, "phalcon/mvc/model/query/builder.zep", 824 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -116948,11 +115469,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, having) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &having_param); - if (unlikely(Z_TYPE_P(having_param) != IS_STRING && Z_TYPE_P(having_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(having_param) != IS_STRING && Z_TYPE_P(having_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'having' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(having_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(having_param) == IS_STRING)) { zephir_get_strval(&having, having_param); } else { ZEPHIR_INIT_VAR(&having); @@ -117022,10 +115543,10 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, limit) { ZVAL_LONG(&_0, limit); - ZEPHIR_CALL_FUNCTION(&_1, "abs", &_2, 199, &_0); + ZEPHIR_CALL_FUNCTION(&_1, "abs", &_2, 181, &_0); zephir_check_call_status(); limit = zephir_get_numberval(&_1); - if (unlikely(limit == 0)) { + if (UNEXPECTED(limit == 0)) { RETURN_THIS(); } ZEPHIR_INIT_ZVAL_NREF(_0); @@ -117033,7 +115554,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, limit) { zephir_update_property_zval(this_ptr, SL("_limit"), &_0); if (zephir_is_numeric(offset)) { ZVAL_LONG(&_3$$4, zephir_get_intval(offset)); - ZEPHIR_CALL_FUNCTION(&_4$$4, "abs", &_2, 199, &_3$$4); + ZEPHIR_CALL_FUNCTION(&_4$$4, "abs", &_2, 181, &_3$$4); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_offset"), &_4$$4); } @@ -117211,7 +115732,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, getPhql) { ZEPHIR_OBS_VAR(&dependencyInjector); zephir_read_property(&dependencyInjector, this_ptr, SL("_dependencyInjector"), PH_NOISY_CC); if (Z_TYPE_P(&dependencyInjector) != IS_OBJECT) { - ZEPHIR_CALL_CE_STATIC(&dependencyInjector, phalcon_di_ce, "getdefault", &_0, 1); + ZEPHIR_CALL_CE_STATIC(&dependencyInjector, phalcon_di_ce, "getdefault", &_0, 0); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_dependencyInjector"), &dependencyInjector); } @@ -117274,7 +115795,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, getPhql) { object_init_ex(&_5$$17, phalcon_mvc_model_exception_ce); ZEPHIR_INIT_VAR(&_6$$17); ZEPHIR_CONCAT_SVS(&_6$$17, "Column '", &firstPrimaryKey, "' isn't part of the column map"); - ZEPHIR_CALL_METHOD(NULL, &_5$$17, "__construct", NULL, 9, &_6$$17); + ZEPHIR_CALL_METHOD(NULL, &_5$$17, "__construct", NULL, 4, &_6$$17); zephir_check_call_status(); zephir_throw_exception_debug(&_5$$17, "phalcon/mvc/model/query/builder.zep", 1094 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -117283,9 +115804,9 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, getPhql) { } else { ZEPHIR_CPY_WRT(&attributeField, &firstPrimaryKey); } - ZEPHIR_CALL_METHOD(&_7$$13, this_ptr, "autoescape", &_8, 370, &model); + ZEPHIR_CALL_METHOD(&_7$$13, this_ptr, "autoescape", &_8, 337, &model); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_9$$13, this_ptr, "autoescape", &_8, 370, &attributeField); + ZEPHIR_CALL_METHOD(&_9$$13, this_ptr, "autoescape", &_8, 337, &attributeField); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_10$$13); ZEPHIR_CONCAT_VSVSV(&_10$$13, &_7$$13, ".", &_9$$13, " = ", &conditions); @@ -117335,7 +115856,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, getPhql) { if (Z_TYPE_P(&columnAlias) == IS_LONG) { zephir_array_append(&selectedColumns, &column, PH_SEPARATE, "phalcon/mvc/model/query/builder.zep", 1135); } else { - ZEPHIR_CALL_METHOD(&_15$$28, this_ptr, "autoescape", &_8, 370, &columnAlias); + ZEPHIR_CALL_METHOD(&_15$$28, this_ptr, "autoescape", &_8, 337, &columnAlias); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_16$$28); ZEPHIR_CONCAT_VSV(&_16$$28, &column, " AS ", &_15$$28); @@ -117367,11 +115888,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, getPhql) { ZVAL_COPY(&model, _18$$31); ZEPHIR_INIT_NVAR(&selectedColumn); if (Z_TYPE_P(&modelColumnAlias) == IS_LONG) { - ZEPHIR_CALL_METHOD(&_21$$33, this_ptr, "autoescape", &_8, 370, &model); + ZEPHIR_CALL_METHOD(&_21$$33, this_ptr, "autoescape", &_8, 337, &model); zephir_check_call_status(); ZEPHIR_CONCAT_VS(&selectedColumn, &_21$$33, ".*"); } else { - ZEPHIR_CALL_METHOD(&_22$$34, this_ptr, "autoescape", &_8, 370, &modelColumnAlias); + ZEPHIR_CALL_METHOD(&_22$$34, this_ptr, "autoescape", &_8, 337, &modelColumnAlias); zephir_check_call_status(); ZEPHIR_CONCAT_VS(&selectedColumn, &_22$$34, ".*"); } @@ -117383,7 +115904,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, getPhql) { zephir_fast_join_str(&_23$$31, SL(", "), &selectedColumns TSRMLS_CC); zephir_concat_self(&phql, &_23$$31 TSRMLS_CC); } else { - ZEPHIR_CALL_METHOD(&_24$$35, this_ptr, "autoescape", &_8, 370, &models); + ZEPHIR_CALL_METHOD(&_24$$35, this_ptr, "autoescape", &_8, 337, &models); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_25$$35); ZEPHIR_CONCAT_VS(&_25$$35, &_24$$35, ".*"); @@ -117405,14 +115926,14 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, getPhql) { ZEPHIR_INIT_NVAR(&model); ZVAL_COPY(&model, _26$$36); if (Z_TYPE_P(&modelAlias) == IS_STRING) { - ZEPHIR_CALL_METHOD(&_29$$38, this_ptr, "autoescape", &_8, 370, &model); + ZEPHIR_CALL_METHOD(&_29$$38, this_ptr, "autoescape", &_8, 337, &model); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_30$$38, this_ptr, "autoescape", &_8, 370, &modelAlias); + ZEPHIR_CALL_METHOD(&_30$$38, this_ptr, "autoescape", &_8, 337, &modelAlias); zephir_check_call_status(); ZEPHIR_INIT_NVAR(&selectedModel); ZEPHIR_CONCAT_VSV(&selectedModel, &_29$$38, " AS ", &_30$$38); } else { - ZEPHIR_CALL_METHOD(&selectedModel, this_ptr, "autoescape", &_8, 370, &model); + ZEPHIR_CALL_METHOD(&selectedModel, this_ptr, "autoescape", &_8, 337, &model); zephir_check_call_status(); } zephir_array_append(&selectedModels, &selectedModel, PH_SEPARATE, "phalcon/mvc/model/query/builder.zep", 1184); @@ -117425,7 +115946,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, getPhql) { ZEPHIR_CONCAT_SV(&_32$$36, " FROM ", &_31$$36); zephir_concat_self(&phql, &_32$$36 TSRMLS_CC); } else { - ZEPHIR_CALL_METHOD(&_33$$40, this_ptr, "autoescape", &_8, 370, &models); + ZEPHIR_CALL_METHOD(&_33$$40, this_ptr, "autoescape", &_8, 337, &models); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_34$$40); ZEPHIR_CONCAT_SV(&_34$$40, " FROM ", &_33$$40); @@ -117448,20 +115969,20 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, getPhql) { ZEPHIR_OBS_NVAR(&joinType); zephir_array_fetch_long(&joinType, &join, 3, PH_NOISY, "phalcon/mvc/model/query/builder.zep", 1219 TSRMLS_CC); if (zephir_is_true(&joinType)) { - ZEPHIR_CALL_METHOD(&_36$$43, this_ptr, "autoescape", &_8, 370, &joinModel); + ZEPHIR_CALL_METHOD(&_36$$43, this_ptr, "autoescape", &_8, 337, &joinModel); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_37$$43); ZEPHIR_CONCAT_SVSV(&_37$$43, " ", &joinType, " JOIN ", &_36$$43); zephir_concat_self(&phql, &_37$$43 TSRMLS_CC); } else { - ZEPHIR_CALL_METHOD(&_38$$44, this_ptr, "autoescape", &_8, 370, &joinModel); + ZEPHIR_CALL_METHOD(&_38$$44, this_ptr, "autoescape", &_8, 337, &joinModel); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_39$$44); ZEPHIR_CONCAT_SV(&_39$$44, " JOIN ", &_38$$44); zephir_concat_self(&phql, &_39$$44 TSRMLS_CC); } if (zephir_is_true(&joinAlias)) { - ZEPHIR_CALL_METHOD(&_40$$45, this_ptr, "autoescape", &_8, 370, &joinAlias); + ZEPHIR_CALL_METHOD(&_40$$45, this_ptr, "autoescape", &_8, 337, &joinAlias); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_41$$45); ZEPHIR_CONCAT_SV(&_41$$45, " AS ", &_40$$45); @@ -117506,7 +116027,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, getPhql) { { ZEPHIR_INIT_NVAR(&groupItem); ZVAL_COPY(&groupItem, _48$$49); - ZEPHIR_CALL_METHOD(&_49$$52, this_ptr, "autoescape", &_8, 370, &groupItem); + ZEPHIR_CALL_METHOD(&_49$$52, this_ptr, "autoescape", &_8, 337, &groupItem); zephir_check_call_status(); zephir_array_append(&groupItems, &_49$$52, PH_SEPARATE, "phalcon/mvc/model/query/builder.zep", 1268); } ZEND_HASH_FOREACH_END(); @@ -117537,7 +116058,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, getPhql) { { ZEPHIR_INIT_NVAR(&orderItem); ZVAL_COPY(&orderItem, _53$$56); - ZEPHIR_CALL_METHOD(&_54$$57, this_ptr, "autoescape", &_8, 370, &orderItem); + ZEPHIR_CALL_METHOD(&_54$$57, this_ptr, "autoescape", &_8, 337, &orderItem); zephir_check_call_status(); zephir_array_append(&orderItems, &_54$$57, PH_SEPARATE, "phalcon/mvc/model/query/builder.zep", 1289); } ZEND_HASH_FOREACH_END(); @@ -117584,7 +116105,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, getPhql) { if (zephir_is_numeric(&number)) { zephir_concat_self_str(&phql, SL(" LIMIT :APL0:") TSRMLS_CC); ZVAL_LONG(&_58$$67, 10); - ZEPHIR_CALL_FUNCTION(&_59$$67, "intval", &_60, 36, &number, &_58$$67); + ZEPHIR_CALL_FUNCTION(&_59$$67, "intval", &_60, 30, &number, &_58$$67); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_61$$67); ZVAL_STRING(&_61$$67, "APL0"); @@ -117597,7 +116118,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, getPhql) { if (zephir_is_numeric(&offset)) { zephir_concat_self_str(&phql, SL(" OFFSET :APL1:") TSRMLS_CC); ZVAL_LONG(&_64$$68, 10); - ZEPHIR_CALL_FUNCTION(&_65$$68, "intval", &_60, 36, &offset, &_64$$68); + ZEPHIR_CALL_FUNCTION(&_65$$68, "intval", &_60, 30, &offset, &_64$$68); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_66$$68); ZVAL_STRING(&_66$$68, "APL1"); @@ -117641,7 +116162,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, getQuery) { ZEPHIR_MM_GROW(); - ZEPHIR_CALL_METHOD(&phql, this_ptr, "getphql", NULL, 371); + ZEPHIR_CALL_METHOD(&phql, this_ptr, "getphql", NULL, 338); zephir_check_call_status(); zephir_read_property(&_0, this_ptr, SL("_dependencyInjector"), PH_NOISY_CC | PH_READONLY); ZEPHIR_CPY_WRT(&dependencyInjector, &_0); @@ -117820,11 +116341,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Lang, parsePHQL) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &phql_param); - if (unlikely(Z_TYPE_P(phql_param) != IS_STRING && Z_TYPE_P(phql_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(phql_param) != IS_STRING && Z_TYPE_P(phql_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'phql' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(phql_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(phql_param) == IS_STRING)) { zephir_get_strval(&phql, phql_param); } else { ZEPHIR_INIT_VAR(&phql); @@ -129729,7 +128250,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Resultset_Complex, __construct) { zephir_update_property_zval(this_ptr, SL("_columnTypes"), columnTypes); - ZEPHIR_CALL_PARENT(NULL, phalcon_mvc_model_resultset_complex_ce, this_ptr, "__construct", &_0, 372, result, cache); + ZEPHIR_CALL_PARENT(NULL, phalcon_mvc_model_resultset_complex_ce, this_ptr, "__construct", &_0, 0, result, cache); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -129952,7 +128473,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Resultset_Complex, toArray) { ZEPHIR_INIT_VAR(&records); array_init(&records); - ZEPHIR_CALL_METHOD(NULL, this_ptr, "rewind", NULL, 75); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "rewind", NULL, 69); zephir_check_call_status(); while (1) { ZEPHIR_CALL_METHOD(&_0, this_ptr, "valid", &_1, 0); @@ -129960,7 +128481,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Resultset_Complex, toArray) { if (!(zephir_is_true(&_0))) { break; } - ZEPHIR_CALL_METHOD(¤t, this_ptr, "current", &_2, 373); + ZEPHIR_CALL_METHOD(¤t, this_ptr, "current", &_2, 339); zephir_check_call_status(); zephir_array_append(&records, ¤t, PH_SEPARATE, "phalcon/mvc/model/resultset/complex.zep", 263); ZEPHIR_CALL_METHOD(NULL, this_ptr, "next", &_3, 0); @@ -130000,7 +128521,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Resultset_Complex, serialize) { zephir_array_update_string(&_0, SL("rows"), &records, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_0, SL("columnTypes"), &columnTypes, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_0, SL("hydrateMode"), &hydrateMode, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_FUNCTION(&serialized, "serialize", NULL, 65, &_0); + ZEPHIR_CALL_FUNCTION(&serialized, "serialize", NULL, 59, &_0); zephir_check_call_status(); RETURN_CCTOR(serialized); @@ -130027,11 +128548,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Resultset_Complex, unserialize) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &data_param); - if (unlikely(Z_TYPE_P(data_param) != IS_STRING && Z_TYPE_P(data_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(data_param) != IS_STRING && Z_TYPE_P(data_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'data' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(data_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(data_param) == IS_STRING)) { zephir_get_strval(&data, data_param); } else { ZEPHIR_INIT_VAR(&data); @@ -130044,7 +128565,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Resultset_Complex, unserialize) { } else { zephir_update_property_zval(this_ptr, SL("_disableHydration"), &__$false); } - ZEPHIR_CALL_FUNCTION(&resultset, "unserialize", NULL, 66, &data); + ZEPHIR_CALL_FUNCTION(&resultset, "unserialize", NULL, 60, &data); zephir_check_call_status(); if (Z_TYPE_P(&resultset) != IS_ARRAY) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Invalid serialization data", "phalcon/mvc/model/resultset/complex.zep", 310); @@ -130120,7 +128641,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Resultset_Simple, __construct) { zephir_update_property_zval(this_ptr, SL("_model"), model); zephir_update_property_zval(this_ptr, SL("_columnMap"), columnMap); zephir_update_property_zval(this_ptr, SL("_keepSnapshots"), keepSnapshots); - ZEPHIR_CALL_PARENT(NULL, phalcon_mvc_model_resultset_simple_ce, this_ptr, "__construct", &_0, 372, result, cache); + ZEPHIR_CALL_PARENT(NULL, phalcon_mvc_model_resultset_simple_ce, this_ptr, "__construct", &_0, 0, result, cache); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -130194,12 +128715,12 @@ static PHP_METHOD(Phalcon_Mvc_Model_Resultset_Simple, current) { zephir_read_property(&_7$$9, this_ptr, SL("_model"), PH_NOISY_CC | PH_READONLY); zephir_read_property(&_8$$9, this_ptr, SL("_keepSnapshots"), PH_NOISY_CC | PH_READONLY); ZVAL_LONG(&_9$$9, 0); - ZEPHIR_CALL_CE_STATIC(&activeRow, phalcon_mvc_model_ce, "cloneresultmap", &_6, 374, &_7$$9, &row, &columnMap, &_9$$9, &_8$$9); + ZEPHIR_CALL_CE_STATIC(&activeRow, phalcon_mvc_model_ce, "cloneresultmap", &_6, 0, &_7$$9, &row, &columnMap, &_9$$9, &_8$$9); zephir_check_call_status(); } break; } - ZEPHIR_CALL_CE_STATIC(&activeRow, phalcon_mvc_model_ce, "cloneresultmaphydrate", &_10, 375, &row, &columnMap, &hydrateMode); + ZEPHIR_CALL_CE_STATIC(&activeRow, phalcon_mvc_model_ce, "cloneresultmaphydrate", &_10, 0, &row, &columnMap, &hydrateMode); zephir_check_call_status(); break; } while(0); @@ -130293,7 +128814,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Resultset_Simple, toArray) { object_init_ex(&_5$$10, phalcon_mvc_model_exception_ce); ZEPHIR_INIT_LNVAR(_6$$10); ZEPHIR_CONCAT_SVS(&_6$$10, "Column '", &key, "' is not part of the column map"); - ZEPHIR_CALL_METHOD(NULL, &_5$$10, "__construct", &_7, 9, &_6$$10); + ZEPHIR_CALL_METHOD(NULL, &_5$$10, "__construct", &_7, 4, &_6$$10); zephir_check_call_status(); zephir_throw_exception_debug(&_5$$10, "phalcon/mvc/model/resultset/simple.zep", 199 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -130306,7 +128827,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Resultset_Simple, toArray) { object_init_ex(&_8$$12, phalcon_mvc_model_exception_ce); ZEPHIR_INIT_LNVAR(_9$$12); ZEPHIR_CONCAT_SVS(&_9$$12, "Column '", &key, "' is not part of the column map"); - ZEPHIR_CALL_METHOD(NULL, &_8$$12, "__construct", &_7, 9, &_9$$12); + ZEPHIR_CALL_METHOD(NULL, &_8$$12, "__construct", &_7, 4, &_9$$12); zephir_check_call_status(); zephir_throw_exception_debug(&_8$$12, "phalcon/mvc/model/resultset/simple.zep", 205 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -130362,7 +128883,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Resultset_Simple, serialize) { ZEPHIR_OBS_NVAR(&_1); zephir_read_property(&_1, this_ptr, SL("_keepSnapshots"), PH_NOISY_CC); zephir_array_update_string(&_0, SL("keepSnapshots"), &_1, PH_COPY | PH_SEPARATE); - ZEPHIR_RETURN_CALL_FUNCTION("serialize", NULL, 65, &_0); + ZEPHIR_RETURN_CALL_FUNCTION("serialize", NULL, 59, &_0); zephir_check_call_status(); RETURN_MM(); @@ -130389,11 +128910,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Resultset_Simple, unserialize) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &data_param); - if (unlikely(Z_TYPE_P(data_param) != IS_STRING && Z_TYPE_P(data_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(data_param) != IS_STRING && Z_TYPE_P(data_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'data' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(data_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(data_param) == IS_STRING)) { zephir_get_strval(&data, data_param); } else { ZEPHIR_INIT_VAR(&data); @@ -130401,7 +128922,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Resultset_Simple, unserialize) { } - ZEPHIR_CALL_FUNCTION(&resultset, "unserialize", NULL, 66, &data); + ZEPHIR_CALL_FUNCTION(&resultset, "unserialize", NULL, 60, &data); zephir_check_call_status(); if (Z_TYPE_P(&resultset) != IS_ARRAY) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Invalid serialization data", "phalcon/mvc/model/resultset/simple.zep", 252); @@ -130480,11 +129001,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Transaction_Failed, __construct) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &message_param, &record); - if (unlikely(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'message' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(message_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(message_param) == IS_STRING)) { zephir_get_strval(&message, message_param); } else { ZEPHIR_INIT_VAR(&message); @@ -130589,7 +129110,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Transaction_Manager, __construct) { if (!(zephir_is_true(dependencyInjector))) { - ZEPHIR_CALL_CE_STATIC(dependencyInjector, phalcon_di_ce, "getdefault", &_0, 1); + ZEPHIR_CALL_CE_STATIC(dependencyInjector, phalcon_di_ce, "getdefault", &_0, 0); zephir_check_call_status(); } zephir_update_property_zval(this_ptr, SL("_dependencyInjector"), dependencyInjector); @@ -130636,11 +129157,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Transaction_Manager, setDbService) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &service_param); - if (unlikely(Z_TYPE_P(service_param) != IS_STRING && Z_TYPE_P(service_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(service_param) != IS_STRING && Z_TYPE_P(service_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'service' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(service_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(service_param) == IS_STRING)) { zephir_get_strval(&service, service_param); } else { ZEPHIR_INIT_VAR(&service); @@ -130743,7 +129264,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Transaction_Manager, get) { ZEPHIR_INIT_VAR(&_3$$4); ZVAL_STRING(&_3$$4, "rollbackPendent"); zephir_array_fast_append(&_2$$4, &_3$$4); - ZEPHIR_CALL_FUNCTION(NULL, "register_shutdown_function", NULL, 378, &_2$$4); + ZEPHIR_CALL_FUNCTION(NULL, "register_shutdown_function", NULL, 342, &_2$$4); zephir_check_call_status(); } if (1) { @@ -130822,9 +129343,9 @@ static PHP_METHOD(Phalcon_Mvc_Model_Transaction_Manager, getOrCreateTransaction) } else { ZVAL_BOOL(&_4, 0); } - ZEPHIR_CALL_METHOD(NULL, &transaction, "__construct", NULL, 379, &dependencyInjector, &_4, &_3); + ZEPHIR_CALL_METHOD(NULL, &transaction, "__construct", NULL, 343, &dependencyInjector, &_4, &_3); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, &transaction, "settransactionmanager", NULL, 380, this_ptr); + ZEPHIR_CALL_METHOD(NULL, &transaction, "settransactionmanager", NULL, 344, this_ptr); zephir_check_call_status(); zephir_update_property_array_append(this_ptr, SL("_transactions"), &transaction TSRMLS_CC); RETURN_ON_FAILURE(zephir_property_incr(this_ptr, SL("_number") TSRMLS_CC)); @@ -131138,7 +129659,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Validator_Email, validate) { RETURN_MM_BOOL(1); } ZVAL_LONG(&_3, 274); - ZEPHIR_CALL_FUNCTION(&_4, "filter_var", NULL, 198, &value, &_3); + ZEPHIR_CALL_FUNCTION(&_4, "filter_var", NULL, 180, &value, &_3); zephir_check_call_status(); if (!(zephir_is_true(&_4))) { ZEPHIR_INIT_VAR(&_5$$5); @@ -131152,7 +129673,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Validator_Email, validate) { ZEPHIR_INIT_VAR(&_6$$5); zephir_create_array(&_6$$5, 1, 0 TSRMLS_CC); zephir_array_update_string(&_6$$5, SL(":field"), &field, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_FUNCTION(&_7$$5, "strtr", NULL, 26, &message, &_6$$5); + ZEPHIR_CALL_FUNCTION(&_7$$5, "strtr", NULL, 21, &message, &_6$$5); zephir_check_call_status(); ZEPHIR_INIT_NVAR(&_5$$5); ZVAL_STRING(&_5$$5, "Email"); @@ -131259,7 +129780,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Validator_Exclusionin, validate) { ZEPHIR_INIT_NVAR(&_4$$7); zephir_fast_join_str(&_4$$7, SL(", "), &domain TSRMLS_CC); zephir_array_update_string(&_5$$7, SL(":domain"), &_4$$7, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_FUNCTION(&_6$$7, "strtr", NULL, 26, &message, &_5$$7); + ZEPHIR_CALL_FUNCTION(&_6$$7, "strtr", NULL, 21, &message, &_5$$7); zephir_check_call_status(); ZEPHIR_INIT_NVAR(&_4$$7); ZVAL_STRING(&_4$$7, "Exclusion"); @@ -131371,7 +129892,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Validator_Inclusionin, validate) { ZEPHIR_CALL_METHOD(&strict, this_ptr, "getoption", NULL, 0, &_5$$7); zephir_check_call_status(); } - ZEPHIR_CALL_FUNCTION(&_6, "in_array", NULL, 381, &value, &domain, &strict); + ZEPHIR_CALL_FUNCTION(&_6, "in_array", NULL, 345, &value, &domain, &strict); zephir_check_call_status(); if (!(zephir_is_true(&_6))) { ZEPHIR_INIT_VAR(&_7$$9); @@ -131388,7 +129909,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Validator_Inclusionin, validate) { ZEPHIR_INIT_NVAR(&_7$$9); zephir_fast_join_str(&_7$$9, SL(", "), &domain TSRMLS_CC); zephir_array_update_string(&_8$$9, SL(":domain"), &_7$$9, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_FUNCTION(&_9$$9, "strtr", NULL, 26, &message, &_8$$9); + ZEPHIR_CALL_FUNCTION(&_9$$9, "strtr", NULL, 21, &message, &_8$$9); zephir_check_call_status(); ZEPHIR_INIT_NVAR(&_7$$9); ZVAL_STRING(&_7$$9, "Inclusion"); @@ -131519,7 +130040,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Validator_Ip, validate) { zephir_bitwise_or_function(&_8, &_7, &allowReserved TSRMLS_CC); zephir_array_update_string(&options, SL("flags"), &_8, PH_COPY | PH_SEPARATE); ZVAL_LONG(&_1, 275); - ZEPHIR_CALL_FUNCTION(&_9, "filter_var", NULL, 198, &value, &_1, &options); + ZEPHIR_CALL_FUNCTION(&_9, "filter_var", NULL, 180, &value, &_1, &options); zephir_check_call_status(); if (!(zephir_is_true(&_9))) { ZEPHIR_INIT_VAR(&_10$$5); @@ -131531,7 +130052,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Validator_Ip, validate) { ZEPHIR_INIT_VAR(&_12$$5); zephir_create_array(&_12$$5, 1, 0 TSRMLS_CC); zephir_array_update_string(&_12$$5, SL(":field"), &field, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_FUNCTION(&_13$$5, "strtr", NULL, 26, &message, &_12$$5); + ZEPHIR_CALL_FUNCTION(&_13$$5, "strtr", NULL, 21, &message, &_12$$5); zephir_check_call_status(); ZEPHIR_INIT_NVAR(&_10$$5); ZVAL_STRING(&_10$$5, "IP"); @@ -131617,7 +130138,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Validator_Numericality, validate) { ZEPHIR_INIT_VAR(&_4$$5); zephir_create_array(&_4$$5, 1, 0 TSRMLS_CC); zephir_array_update_string(&_4$$5, SL(":field"), &field, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_FUNCTION(&_5$$5, "strtr", NULL, 26, &message, &_4$$5); + ZEPHIR_CALL_FUNCTION(&_5$$5, "strtr", NULL, 21, &message, &_4$$5); zephir_check_call_status(); ZEPHIR_INIT_NVAR(&_3$$5); ZVAL_STRING(&_3$$5, "Numericality"); @@ -131699,7 +130220,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Validator_PresenceOf, validate) { ZEPHIR_INIT_VAR(&_4$$4); zephir_create_array(&_4$$4, 1, 0 TSRMLS_CC); zephir_array_update_string(&_4$$4, SL(":field"), &field, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_FUNCTION(&_5$$4, "strtr", NULL, 26, &message, &_4$$4); + ZEPHIR_CALL_FUNCTION(&_5$$4, "strtr", NULL, 21, &message, &_4$$4); zephir_check_call_status(); ZEPHIR_INIT_NVAR(&_3$$4); ZVAL_STRING(&_3$$4, "PresenceOf"); @@ -131812,7 +130333,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Validator_Regex, validate) { ZEPHIR_INIT_VAR(&_6$$8); zephir_create_array(&_6$$8, 1, 0 TSRMLS_CC); zephir_array_update_string(&_6$$8, SL(":field"), &field, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_FUNCTION(&_7$$8, "strtr", NULL, 26, &message, &_6$$8); + ZEPHIR_CALL_FUNCTION(&_7$$8, "strtr", NULL, 21, &message, &_6$$8); zephir_check_call_status(); ZEPHIR_INIT_NVAR(&_5$$8); ZVAL_STRING(&_5$$8, "Regex"); @@ -131914,7 +130435,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Validator_StringLength, validate) { RETURN_MM_BOOL(1); } if ((zephir_function_exists_ex(SL("mb_strlen") TSRMLS_CC) == SUCCESS)) { - ZEPHIR_CALL_FUNCTION(&length, "mb_strlen", NULL, 382, &value); + ZEPHIR_CALL_FUNCTION(&length, "mb_strlen", NULL, 346, &value); zephir_check_call_status(); } else { ZEPHIR_INIT_NVAR(&length); @@ -131938,7 +130459,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Validator_StringLength, validate) { zephir_create_array(&_6$$9, 2, 0 TSRMLS_CC); zephir_array_update_string(&_6$$9, SL(":field"), &field, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_6$$9, SL(":max"), &maximum, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_FUNCTION(&_7$$9, "strtr", &_8, 26, &message, &_6$$9); + ZEPHIR_CALL_FUNCTION(&_7$$9, "strtr", &_8, 21, &message, &_6$$9); zephir_check_call_status(); ZEPHIR_INIT_NVAR(&_5$$9); ZVAL_STRING(&_5$$9, "TooLong"); @@ -131965,7 +130486,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Validator_StringLength, validate) { zephir_create_array(&_11$$12, 2, 0 TSRMLS_CC); zephir_array_update_string(&_11$$12, SL(":field"), &field, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_11$$12, SL(":min"), &minimum, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_FUNCTION(&_12$$12, "strtr", &_8, 26, &message, &_11$$12); + ZEPHIR_CALL_FUNCTION(&_12$$12, "strtr", &_8, 21, &message, &_11$$12); zephir_check_call_status(); ZEPHIR_INIT_NVAR(&_10$$12); ZVAL_STRING(&_10$$12, "TooShort"); @@ -132094,7 +130615,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Validator_Uniqueness, validate) { object_init_ex(&_2$$8, phalcon_mvc_model_exception_ce); ZEPHIR_INIT_LNVAR(_3$$8); ZEPHIR_CONCAT_SVS(&_3$$8, "Column '", &composeField, "' isn't part of the column map"); - ZEPHIR_CALL_METHOD(NULL, &_2$$8, "__construct", &_4, 9, &_3$$8); + ZEPHIR_CALL_METHOD(NULL, &_2$$8, "__construct", &_4, 4, &_3$$8); zephir_check_call_status(); zephir_throw_exception_debug(&_2$$8, "phalcon/mvc/model/validator/uniqueness.zep", 107 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -132109,7 +130630,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Validator_Uniqueness, validate) { object_init_ex(&_5$$10, phalcon_mvc_model_exception_ce); ZEPHIR_INIT_LNVAR(_6$$10); ZEPHIR_CONCAT_SVS(&_6$$10, "Column '", &columnField, "' isn't part of the table columns"); - ZEPHIR_CALL_METHOD(NULL, &_5$$10, "__construct", &_4, 9, &_6$$10); + ZEPHIR_CALL_METHOD(NULL, &_5$$10, "__construct", &_4, 4, &_6$$10); zephir_check_call_status(); zephir_throw_exception_debug(&_5$$10, "phalcon/mvc/model/validator/uniqueness.zep", 117 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -132135,7 +130656,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Validator_Uniqueness, validate) { object_init_ex(&_11$$13, phalcon_mvc_model_exception_ce); ZEPHIR_INIT_VAR(&_12$$13); ZEPHIR_CONCAT_SVS(&_12$$13, "Column '", &field, "' isn't part of the column map"); - ZEPHIR_CALL_METHOD(NULL, &_11$$13, "__construct", &_4, 9, &_12$$13); + ZEPHIR_CALL_METHOD(NULL, &_11$$13, "__construct", &_4, 4, &_12$$13); zephir_check_call_status(); zephir_throw_exception_debug(&_11$$13, "phalcon/mvc/model/validator/uniqueness.zep", 137 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -132150,7 +130671,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Validator_Uniqueness, validate) { object_init_ex(&_13$$15, phalcon_mvc_model_exception_ce); ZEPHIR_INIT_VAR(&_14$$15); ZEPHIR_CONCAT_SVS(&_14$$15, "Column '", &columnField, "' isn't part of the table columns"); - ZEPHIR_CALL_METHOD(NULL, &_13$$15, "__construct", &_4, 9, &_14$$15); + ZEPHIR_CALL_METHOD(NULL, &_13$$15, "__construct", &_4, 4, &_14$$15); zephir_check_call_status(); zephir_throw_exception_debug(&_13$$15, "phalcon/mvc/model/validator/uniqueness.zep", 147 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -132188,7 +130709,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Validator_Uniqueness, validate) { object_init_ex(&_20$$20, phalcon_mvc_model_exception_ce); ZEPHIR_INIT_LNVAR(_21$$20); ZEPHIR_CONCAT_SVS(&_21$$20, "Column '", &primaryField, "' isn't part of the table columns"); - ZEPHIR_CALL_METHOD(NULL, &_20$$20, "__construct", &_4, 9, &_21$$20); + ZEPHIR_CALL_METHOD(NULL, &_20$$20, "__construct", &_4, 4, &_21$$20); zephir_check_call_status(); zephir_throw_exception_debug(&_20$$20, "phalcon/mvc/model/validator/uniqueness.zep", 177 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -132201,7 +130722,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Validator_Uniqueness, validate) { object_init_ex(&_22$$22, phalcon_mvc_model_exception_ce); ZEPHIR_INIT_LNVAR(_23$$22); ZEPHIR_CONCAT_SVS(&_23$$22, "Column '", &primaryField, "' isn't part of the column map"); - ZEPHIR_CALL_METHOD(NULL, &_22$$22, "__construct", &_4, 9, &_23$$22); + ZEPHIR_CALL_METHOD(NULL, &_22$$22, "__construct", &_4, 4, &_23$$22); zephir_check_call_status(); zephir_throw_exception_debug(&_22$$22, "phalcon/mvc/model/validator/uniqueness.zep", 185 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -132259,7 +130780,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Validator_Uniqueness, validate) { ZVAL_STRING(&message, "Value of field: ':field' is already present in another record"); } } - ZEPHIR_CALL_FUNCTION(&_32$$24, "strtr", NULL, 26, &message, &replacePairs); + ZEPHIR_CALL_FUNCTION(&_32$$24, "strtr", NULL, 21, &message, &replacePairs); zephir_check_call_status(); ZEPHIR_INIT_NVAR(&_30$$24); ZVAL_STRING(&_30$$24, "Unique"); @@ -132336,7 +130857,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Validator_Url, validate) { RETURN_MM_BOOL(1); } ZVAL_LONG(&_3, 273); - ZEPHIR_CALL_FUNCTION(&_4, "filter_var", NULL, 198, &value, &_3); + ZEPHIR_CALL_FUNCTION(&_4, "filter_var", NULL, 180, &value, &_3); zephir_check_call_status(); if (!(zephir_is_true(&_4))) { ZEPHIR_INIT_VAR(&_5$$5); @@ -132350,7 +130871,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Validator_Url, validate) { ZEPHIR_INIT_VAR(&_6$$5); zephir_create_array(&_6$$5, 1, 0 TSRMLS_CC); zephir_array_update_string(&_6$$5, SL(":field"), &field, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_FUNCTION(&_7$$5, "strtr", NULL, 26, &message, &_6$$5); + ZEPHIR_CALL_FUNCTION(&_7$$5, "strtr", NULL, 21, &message, &_6$$5); zephir_check_call_status(); ZEPHIR_INIT_NVAR(&_5$$5); ZVAL_STRING(&_5$$5, "Url"); @@ -132403,11 +130924,11 @@ static PHP_METHOD(Phalcon_Mvc_Router_Annotations, addResource) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &handler_param, &prefix_param); - if (unlikely(Z_TYPE_P(handler_param) != IS_STRING && Z_TYPE_P(handler_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(handler_param) != IS_STRING && Z_TYPE_P(handler_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'handler' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(handler_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(handler_param) == IS_STRING)) { zephir_get_strval(&handler, handler_param); } else { ZEPHIR_INIT_VAR(&handler); @@ -132417,11 +130938,11 @@ static PHP_METHOD(Phalcon_Mvc_Router_Annotations, addResource) { ZEPHIR_INIT_VAR(&prefix); ZVAL_STRING(&prefix, ""); } else { - if (unlikely(Z_TYPE_P(prefix_param) != IS_STRING && Z_TYPE_P(prefix_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(prefix_param) != IS_STRING && Z_TYPE_P(prefix_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'prefix' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(prefix_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(prefix_param) == IS_STRING)) { zephir_get_strval(&prefix, prefix_param); } else { ZEPHIR_INIT_VAR(&prefix); @@ -132454,21 +130975,21 @@ static PHP_METHOD(Phalcon_Mvc_Router_Annotations, addModuleResource) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 1, &module_param, &handler_param, &prefix_param); - if (unlikely(Z_TYPE_P(module_param) != IS_STRING && Z_TYPE_P(module_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(module_param) != IS_STRING && Z_TYPE_P(module_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'module' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(module_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(module_param) == IS_STRING)) { zephir_get_strval(&module, module_param); } else { ZEPHIR_INIT_VAR(&module); ZVAL_EMPTY_STRING(&module); } - if (unlikely(Z_TYPE_P(handler_param) != IS_STRING && Z_TYPE_P(handler_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(handler_param) != IS_STRING && Z_TYPE_P(handler_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'handler' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(handler_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(handler_param) == IS_STRING)) { zephir_get_strval(&handler, handler_param); } else { ZEPHIR_INIT_VAR(&handler); @@ -132478,11 +130999,11 @@ static PHP_METHOD(Phalcon_Mvc_Router_Annotations, addModuleResource) { ZEPHIR_INIT_VAR(&prefix); ZVAL_STRING(&prefix, ""); } else { - if (unlikely(Z_TYPE_P(prefix_param) != IS_STRING && Z_TYPE_P(prefix_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(prefix_param) != IS_STRING && Z_TYPE_P(prefix_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'prefix' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(prefix_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(prefix_param) == IS_STRING)) { zephir_get_strval(&prefix, prefix_param); } else { ZEPHIR_INIT_VAR(&prefix); @@ -132546,11 +131067,11 @@ static PHP_METHOD(Phalcon_Mvc_Router_Annotations, handle) { ZEPHIR_INIT_VAR(&uri); ZVAL_STRING(&uri, ""); } else { - if (unlikely(Z_TYPE_P(uri_param) != IS_STRING && Z_TYPE_P(uri_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(uri_param) != IS_STRING && Z_TYPE_P(uri_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'uri' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(uri_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(uri_param) == IS_STRING)) { zephir_get_strval(&uri, uri_param); } else { ZEPHIR_INIT_VAR(&uri); @@ -132675,7 +131196,7 @@ static PHP_METHOD(Phalcon_Mvc_Router_Annotations, handle) { } } ZEND_HASH_FOREACH_END(); ZEPHIR_INIT_NVAR(&scope); - ZEPHIR_CALL_PARENT(NULL, phalcon_mvc_router_annotations_ce, this_ptr, "handle", &_14, 383, &realUri); + ZEPHIR_CALL_PARENT(NULL, phalcon_mvc_router_annotations_ce, this_ptr, "handle", &_14, 0, &realUri); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -132697,11 +131218,11 @@ static PHP_METHOD(Phalcon_Mvc_Router_Annotations, processControllerAnnotation) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &handler_param, &annotation); - if (unlikely(Z_TYPE_P(handler_param) != IS_STRING && Z_TYPE_P(handler_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(handler_param) != IS_STRING && Z_TYPE_P(handler_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'handler' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(handler_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(handler_param) == IS_STRING)) { zephir_get_strval(&handler, handler_param); } else { ZEPHIR_INIT_VAR(&handler); @@ -132761,41 +131282,41 @@ static PHP_METHOD(Phalcon_Mvc_Router_Annotations, processActionAnnotation) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 5, 0, &module_param, &namespaceName_param, &controller_param, &action_param, &annotation); - if (unlikely(Z_TYPE_P(module_param) != IS_STRING && Z_TYPE_P(module_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(module_param) != IS_STRING && Z_TYPE_P(module_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'module' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(module_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(module_param) == IS_STRING)) { zephir_get_strval(&module, module_param); } else { ZEPHIR_INIT_VAR(&module); ZVAL_EMPTY_STRING(&module); } - if (unlikely(Z_TYPE_P(namespaceName_param) != IS_STRING && Z_TYPE_P(namespaceName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(namespaceName_param) != IS_STRING && Z_TYPE_P(namespaceName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'namespaceName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(namespaceName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(namespaceName_param) == IS_STRING)) { zephir_get_strval(&namespaceName, namespaceName_param); } else { ZEPHIR_INIT_VAR(&namespaceName); ZVAL_EMPTY_STRING(&namespaceName); } - if (unlikely(Z_TYPE_P(controller_param) != IS_STRING && Z_TYPE_P(controller_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(controller_param) != IS_STRING && Z_TYPE_P(controller_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'controller' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(controller_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(controller_param) == IS_STRING)) { zephir_get_strval(&controller, controller_param); } else { ZEPHIR_INIT_VAR(&controller); ZVAL_EMPTY_STRING(&controller); } - if (unlikely(Z_TYPE_P(action_param) != IS_STRING && Z_TYPE_P(action_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(action_param) != IS_STRING && Z_TYPE_P(action_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'action' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(action_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(action_param) == IS_STRING)) { zephir_get_strval(&action, action_param); } else { ZEPHIR_INIT_VAR(&action); @@ -132989,11 +131510,11 @@ static PHP_METHOD(Phalcon_Mvc_Router_Annotations, setControllerSuffix) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &controllerSuffix_param); - if (unlikely(Z_TYPE_P(controllerSuffix_param) != IS_STRING && Z_TYPE_P(controllerSuffix_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(controllerSuffix_param) != IS_STRING && Z_TYPE_P(controllerSuffix_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'controllerSuffix' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(controllerSuffix_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(controllerSuffix_param) == IS_STRING)) { zephir_get_strval(&controllerSuffix, controllerSuffix_param); } else { ZEPHIR_INIT_VAR(&controllerSuffix); @@ -133017,11 +131538,11 @@ static PHP_METHOD(Phalcon_Mvc_Router_Annotations, setActionSuffix) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &actionSuffix_param); - if (unlikely(Z_TYPE_P(actionSuffix_param) != IS_STRING && Z_TYPE_P(actionSuffix_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(actionSuffix_param) != IS_STRING && Z_TYPE_P(actionSuffix_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'actionSuffix' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(actionSuffix_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(actionSuffix_param) == IS_STRING)) { zephir_get_strval(&actionSuffix, actionSuffix_param); } else { ZEPHIR_INIT_VAR(&actionSuffix); @@ -133293,11 +131814,11 @@ static PHP_METHOD(Phalcon_Mvc_Router_Group, add) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &pattern_param, &paths, &httpMethods); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(&pattern, pattern_param); } else { ZEPHIR_INIT_VAR(&pattern); @@ -133334,11 +131855,11 @@ static PHP_METHOD(Phalcon_Mvc_Router_Group, addGet) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &pattern_param, &paths); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(&pattern, pattern_param); } else { ZEPHIR_INIT_VAR(&pattern); @@ -133373,11 +131894,11 @@ static PHP_METHOD(Phalcon_Mvc_Router_Group, addPost) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &pattern_param, &paths); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(&pattern, pattern_param); } else { ZEPHIR_INIT_VAR(&pattern); @@ -133412,11 +131933,11 @@ static PHP_METHOD(Phalcon_Mvc_Router_Group, addPut) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &pattern_param, &paths); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(&pattern, pattern_param); } else { ZEPHIR_INIT_VAR(&pattern); @@ -133451,11 +131972,11 @@ static PHP_METHOD(Phalcon_Mvc_Router_Group, addPatch) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &pattern_param, &paths); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(&pattern, pattern_param); } else { ZEPHIR_INIT_VAR(&pattern); @@ -133490,11 +132011,11 @@ static PHP_METHOD(Phalcon_Mvc_Router_Group, addDelete) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &pattern_param, &paths); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(&pattern, pattern_param); } else { ZEPHIR_INIT_VAR(&pattern); @@ -133529,11 +132050,11 @@ static PHP_METHOD(Phalcon_Mvc_Router_Group, addOptions) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &pattern_param, &paths); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(&pattern, pattern_param); } else { ZEPHIR_INIT_VAR(&pattern); @@ -133568,11 +132089,11 @@ static PHP_METHOD(Phalcon_Mvc_Router_Group, addHead) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &pattern_param, &paths); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(&pattern, pattern_param); } else { ZEPHIR_INIT_VAR(&pattern); @@ -133630,11 +132151,11 @@ static PHP_METHOD(Phalcon_Mvc_Router_Group, _addRoute) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &pattern_param, &paths, &httpMethods); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(&pattern, pattern_param); } else { ZEPHIR_INIT_VAR(&pattern); @@ -133654,7 +132175,7 @@ static PHP_METHOD(Phalcon_Mvc_Router_Group, _addRoute) { zephir_read_property(&defaultPaths, this_ptr, SL("_paths"), PH_NOISY_CC); if (Z_TYPE_P(&defaultPaths) == IS_ARRAY) { if (Z_TYPE_P(paths) == IS_STRING) { - ZEPHIR_CALL_CE_STATIC(&processedPaths, phalcon_mvc_router_route_ce, "getroutepaths", &_0, 78, paths); + ZEPHIR_CALL_CE_STATIC(&processedPaths, phalcon_mvc_router_route_ce, "getroutepaths", &_0, 0, paths); zephir_check_call_status(); } else { ZEPHIR_CPY_WRT(&processedPaths, paths); @@ -133673,10 +132194,10 @@ static PHP_METHOD(Phalcon_Mvc_Router_Group, _addRoute) { zephir_read_property(&_1, this_ptr, SL("_prefix"), PH_NOISY_CC | PH_READONLY); ZEPHIR_INIT_VAR(&_2); ZEPHIR_CONCAT_VV(&_2, &_1, &pattern); - ZEPHIR_CALL_METHOD(NULL, &route, "__construct", NULL, 77, &_2, &mergedPaths, httpMethods); + ZEPHIR_CALL_METHOD(NULL, &route, "__construct", NULL, 70, &_2, &mergedPaths, httpMethods); zephir_check_call_status(); zephir_update_property_array_append(this_ptr, SL("_routes"), &route TSRMLS_CC); - ZEPHIR_CALL_METHOD(NULL, &route, "setgroup", NULL, 384, this_ptr); + ZEPHIR_CALL_METHOD(NULL, &route, "setgroup", NULL, 347, this_ptr); zephir_check_call_status(); RETURN_CCTOR(route); @@ -133797,11 +132318,11 @@ static PHP_METHOD(Phalcon_Mvc_Router_Route, __construct) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &pattern_param, &paths, &httpMethods); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(&pattern, pattern_param); } else { ZEPHIR_INIT_VAR(&pattern); @@ -133861,11 +132382,11 @@ static PHP_METHOD(Phalcon_Mvc_Router_Route, compilePattern) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &pattern_param); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(&pattern, pattern_param); } else { ZEPHIR_INIT_VAR(&pattern); @@ -133986,11 +132507,11 @@ static PHP_METHOD(Phalcon_Mvc_Router_Route, extractNamedParams) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &pattern_param); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(&pattern, pattern_param); } else { ZEPHIR_INIT_VAR(&pattern); @@ -134234,11 +132755,11 @@ static PHP_METHOD(Phalcon_Mvc_Router_Route, reConfigure) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &pattern_param, &paths); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(&pattern, pattern_param); } else { ZEPHIR_INIT_VAR(&pattern); @@ -134563,11 +133084,11 @@ static PHP_METHOD(Phalcon_Mvc_Router_Route, setHostname) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &hostname_param); - if (unlikely(Z_TYPE_P(hostname_param) != IS_STRING && Z_TYPE_P(hostname_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(hostname_param) != IS_STRING && Z_TYPE_P(hostname_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'hostname' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(hostname_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(hostname_param) == IS_STRING)) { zephir_get_strval(&hostname, hostname_param); } else { ZEPHIR_INIT_VAR(&hostname); @@ -134626,11 +133147,11 @@ static PHP_METHOD(Phalcon_Mvc_Router_Route, convert) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &name_param, &converter); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(&name, name_param); } else { ZEPHIR_INIT_VAR(&name); @@ -135198,11 +133719,11 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine, partial) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &partialPath_param, ¶ms); - if (unlikely(Z_TYPE_P(partialPath_param) != IS_STRING && Z_TYPE_P(partialPath_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(partialPath_param) != IS_STRING && Z_TYPE_P(partialPath_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'partialPath' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(partialPath_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(partialPath_param) == IS_STRING)) { zephir_get_strval(&partialPath, partialPath_param); } else { ZEPHIR_INIT_VAR(&partialPath); @@ -135355,11 +133876,11 @@ static PHP_METHOD(Phalcon_Mvc_View_Simple, setViewsDir) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &viewsDir_param); - if (unlikely(Z_TYPE_P(viewsDir_param) != IS_STRING && Z_TYPE_P(viewsDir_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(viewsDir_param) != IS_STRING && Z_TYPE_P(viewsDir_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'viewsDir' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(viewsDir_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(viewsDir_param) == IS_STRING)) { zephir_get_strval(&viewsDir, viewsDir_param); } else { ZEPHIR_INIT_VAR(&viewsDir); @@ -135434,7 +133955,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Simple, _loadTemplateEngines) { if (Z_TYPE_P(®isteredEngines) != IS_ARRAY) { ZEPHIR_INIT_VAR(&_0$$4); object_init_ex(&_0$$4, phalcon_mvc_view_engine_php_ce); - ZEPHIR_CALL_METHOD(NULL, &_0$$4, "__construct", NULL, 386, this_ptr, &dependencyInjector); + ZEPHIR_CALL_METHOD(NULL, &_0$$4, "__construct", NULL, 349, this_ptr, &dependencyInjector); zephir_check_call_status(); zephir_array_update_string(&engines, SL(".phtml"), &_0$$4, PH_COPY | PH_SEPARATE); } else { @@ -135474,7 +133995,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Simple, _loadTemplateEngines) { object_init_ex(&_5$$13, phalcon_mvc_view_exception_ce); ZEPHIR_INIT_LNVAR(_6$$13); ZEPHIR_CONCAT_SV(&_6$$13, "Invalid template engine registration for extension: ", &extension); - ZEPHIR_CALL_METHOD(NULL, &_5$$13, "__construct", &_7, 9, &_6$$13); + ZEPHIR_CALL_METHOD(NULL, &_5$$13, "__construct", &_7, 4, &_6$$13); zephir_check_call_status(); zephir_throw_exception_debug(&_5$$13, "phalcon/mvc/view/simple.zep", 185 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -135531,11 +134052,11 @@ static PHP_METHOD(Phalcon_Mvc_View_Simple, _internalRender) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &path_param, ¶ms); - if (unlikely(Z_TYPE_P(path_param) != IS_STRING && Z_TYPE_P(path_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(path_param) != IS_STRING && Z_TYPE_P(path_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'path' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(path_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(path_param) == IS_STRING)) { zephir_get_strval(&path, path_param); } else { ZEPHIR_INIT_VAR(&path); @@ -135633,7 +134154,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Simple, _internalRender) { object_init_ex(&_17$$15, phalcon_mvc_view_exception_ce); ZEPHIR_INIT_VAR(&_18$$15); ZEPHIR_CONCAT_SVS(&_18$$15, "View '", &viewsDirPath, "' was not found in the views directory"); - ZEPHIR_CALL_METHOD(NULL, &_17$$15, "__construct", NULL, 9, &_18$$15); + ZEPHIR_CALL_METHOD(NULL, &_17$$15, "__construct", NULL, 4, &_18$$15); zephir_check_call_status(); zephir_throw_exception_debug(&_17$$15, "phalcon/mvc/view/simple.zep", 283 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -135675,11 +134196,11 @@ static PHP_METHOD(Phalcon_Mvc_View_Simple, render) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &path_param, ¶ms); - if (unlikely(Z_TYPE_P(path_param) != IS_STRING && Z_TYPE_P(path_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(path_param) != IS_STRING && Z_TYPE_P(path_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'path' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(path_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(path_param) == IS_STRING)) { zephir_get_strval(&path, path_param); } else { ZEPHIR_INIT_VAR(&path); @@ -135724,7 +134245,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Simple, render) { ZEPHIR_INIT_VAR(&_1); zephir_create_symbol_table(TSRMLS_C); - ZEPHIR_CALL_FUNCTION(NULL, "ob_start", NULL, 126); + ZEPHIR_CALL_FUNCTION(NULL, "ob_start", NULL, 115); zephir_check_call_status(); ZEPHIR_OBS_VAR(&viewParams); zephir_read_property(&viewParams, this_ptr, SL("_viewParams"), PH_NOISY_CC); @@ -135738,7 +134259,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Simple, render) { } else { ZEPHIR_CPY_WRT(&mergedParams, &viewParams); } - ZEPHIR_CALL_METHOD(NULL, this_ptr, "_internalrender", NULL, 406, &path, &mergedParams); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "_internalrender", NULL, 369, &path, &mergedParams); zephir_check_call_status(); if (Z_TYPE_P(&cache) == IS_OBJECT) { ZEPHIR_CALL_METHOD(&_2$$12, &cache, "isstarted", NULL, 0); @@ -135757,7 +134278,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Simple, render) { zephir_check_call_status(); } } - ZEPHIR_CALL_FUNCTION(NULL, "ob_end_clean", NULL, 128); + ZEPHIR_CALL_FUNCTION(NULL, "ob_end_clean", NULL, 117); zephir_check_call_status(); RETURN_MM_MEMBER(this_ptr, "_content"); @@ -135781,11 +134302,11 @@ static PHP_METHOD(Phalcon_Mvc_View_Simple, partial) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &partialPath_param, ¶ms); - if (unlikely(Z_TYPE_P(partialPath_param) != IS_STRING && Z_TYPE_P(partialPath_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(partialPath_param) != IS_STRING && Z_TYPE_P(partialPath_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'partialPath' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(partialPath_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(partialPath_param) == IS_STRING)) { zephir_get_strval(&partialPath, partialPath_param); } else { ZEPHIR_INIT_VAR(&partialPath); @@ -135797,7 +134318,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Simple, partial) { } - ZEPHIR_CALL_FUNCTION(NULL, "ob_start", NULL, 126); + ZEPHIR_CALL_FUNCTION(NULL, "ob_start", NULL, 115); zephir_check_call_status(); if (Z_TYPE_P(params) == IS_ARRAY) { ZEPHIR_OBS_VAR(&viewParams); @@ -135814,12 +134335,12 @@ static PHP_METHOD(Phalcon_Mvc_View_Simple, partial) { } else { ZEPHIR_CPY_WRT(&mergedParams, params); } - ZEPHIR_CALL_METHOD(NULL, this_ptr, "_internalrender", NULL, 406, &partialPath, &mergedParams); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "_internalrender", NULL, 369, &partialPath, &mergedParams); zephir_check_call_status(); if (Z_TYPE_P(params) == IS_ARRAY) { zephir_update_property_zval(this_ptr, SL("_viewParams"), &viewParams); } - ZEPHIR_CALL_FUNCTION(NULL, "ob_end_clean", NULL, 128); + ZEPHIR_CALL_FUNCTION(NULL, "ob_end_clean", NULL, 117); zephir_check_call_status(); zephir_read_property(&_1, this_ptr, SL("_content"), PH_NOISY_CC | PH_READONLY); zend_print_zval(&_1, 0); @@ -135980,11 +134501,11 @@ static PHP_METHOD(Phalcon_Mvc_View_Simple, setParamToView) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &key_param, &value); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(&key, key_param); } else { ZEPHIR_INIT_VAR(&key); @@ -136050,11 +134571,11 @@ static PHP_METHOD(Phalcon_Mvc_View_Simple, setVar) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &key_param, &value); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(&key, key_param); } else { ZEPHIR_INIT_VAR(&key); @@ -136080,11 +134601,11 @@ static PHP_METHOD(Phalcon_Mvc_View_Simple, getVar) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &key_param); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(&key, key_param); } else { ZEPHIR_INIT_VAR(&key); @@ -136120,11 +134641,11 @@ static PHP_METHOD(Phalcon_Mvc_View_Simple, setContent) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &content_param); - if (unlikely(Z_TYPE_P(content_param) != IS_STRING && Z_TYPE_P(content_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(content_param) != IS_STRING && Z_TYPE_P(content_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'content' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(content_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(content_param) == IS_STRING)) { zephir_get_strval(&content, content_param); } else { ZEPHIR_INIT_VAR(&content); @@ -136167,11 +134688,11 @@ static PHP_METHOD(Phalcon_Mvc_View_Simple, __set) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &key_param, &value); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(&key, key_param); } else { ZEPHIR_INIT_VAR(&key); @@ -136197,11 +134718,11 @@ static PHP_METHOD(Phalcon_Mvc_View_Simple, __get) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &key_param); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(&key, key_param); } else { ZEPHIR_INIT_VAR(&key); @@ -136256,11 +134777,11 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Php, render) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 1, &path_param, ¶ms, &mustClean_param); - if (unlikely(Z_TYPE_P(path_param) != IS_STRING && Z_TYPE_P(path_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(path_param) != IS_STRING && Z_TYPE_P(path_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'path' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(path_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(path_param) == IS_STRING)) { zephir_get_strval(&path, path_param); } else { ZEPHIR_INIT_VAR(&path); @@ -136274,7 +134795,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Php, render) { if (mustClean == 1) { - ZEPHIR_CALL_FUNCTION(NULL, "ob_clean", NULL, 388); + ZEPHIR_CALL_FUNCTION(NULL, "ob_clean", NULL, 351); zephir_check_call_status(); } if (Z_TYPE_P(params) == IS_ARRAY) { @@ -136302,7 +134823,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Php, render) { } if (mustClean == 1) { zephir_read_property(&_4$$6, this_ptr, SL("_view"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(&_5$$6, "ob_get_contents", NULL, 127); + ZEPHIR_CALL_FUNCTION(&_5$$6, "ob_get_contents", NULL, 116); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, &_4$$6, "setcontent", NULL, 0, &_5$$6); zephir_check_call_status(); @@ -136383,18 +134904,18 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt, getCompiler) { ZEPHIR_INIT_NVAR(&compiler); object_init_ex(&compiler, phalcon_mvc_view_engine_volt_compiler_ce); zephir_read_property(&_0$$3, this_ptr, SL("_view"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_METHOD(NULL, &compiler, "__construct", NULL, 389, &_0$$3); + ZEPHIR_CALL_METHOD(NULL, &compiler, "__construct", NULL, 352, &_0$$3); zephir_check_call_status(); zephir_read_property(&_1$$3, this_ptr, SL("_dependencyInjector"), PH_NOISY_CC | PH_READONLY); ZEPHIR_CPY_WRT(&dependencyInjector, &_1$$3); if (Z_TYPE_P(&dependencyInjector) == IS_OBJECT) { - ZEPHIR_CALL_METHOD(NULL, &compiler, "setdi", NULL, 390, &dependencyInjector); + ZEPHIR_CALL_METHOD(NULL, &compiler, "setdi", NULL, 353, &dependencyInjector); zephir_check_call_status(); } ZEPHIR_OBS_VAR(&options); zephir_read_property(&options, this_ptr, SL("_options"), PH_NOISY_CC); if (Z_TYPE_P(&options) == IS_ARRAY) { - ZEPHIR_CALL_METHOD(NULL, &compiler, "setoptions", NULL, 391, &options); + ZEPHIR_CALL_METHOD(NULL, &compiler, "setoptions", NULL, 354, &options); zephir_check_call_status(); } zephir_update_property_zval(this_ptr, SL("_compiler"), &compiler); @@ -136426,11 +134947,11 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt, render) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 1, &templatePath_param, ¶ms, &mustClean_param); - if (unlikely(Z_TYPE_P(templatePath_param) != IS_STRING && Z_TYPE_P(templatePath_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(templatePath_param) != IS_STRING && Z_TYPE_P(templatePath_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'templatePath' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(templatePath_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(templatePath_param) == IS_STRING)) { zephir_get_strval(&templatePath, templatePath_param); } else { ZEPHIR_INIT_VAR(&templatePath); @@ -136444,7 +134965,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt, render) { if (mustClean) { - ZEPHIR_CALL_FUNCTION(NULL, "ob_clean", NULL, 388); + ZEPHIR_CALL_FUNCTION(NULL, "ob_clean", NULL, 351); zephir_check_call_status(); } ZEPHIR_CALL_METHOD(&compiler, this_ptr, "getcompiler", NULL, 0); @@ -136478,7 +134999,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt, render) { } if (mustClean) { zephir_read_property(&_4$$6, this_ptr, SL("_view"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_FUNCTION(&_5$$6, "ob_get_contents", NULL, 127); + ZEPHIR_CALL_FUNCTION(&_5$$6, "ob_get_contents", NULL, 116); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, &_4$$6, "setcontent", NULL, 0, &_5$$6); zephir_check_call_status(); @@ -136509,7 +135030,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt, length) { RETURN_MM_LONG(zephir_fast_count_int(item TSRMLS_CC)); } if ((zephir_function_exists_ex(SL("mb_strlen") TSRMLS_CC) == SUCCESS)) { - ZEPHIR_RETURN_CALL_FUNCTION("mb_strlen", NULL, 382, item); + ZEPHIR_RETURN_CALL_FUNCTION("mb_strlen", NULL, 346, item); zephir_check_call_status(); RETURN_MM(); } @@ -136538,7 +135059,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt, isIncluded) { } if (Z_TYPE_P(haystack) == IS_STRING) { if ((zephir_function_exists_ex(SL("mb_strpos") TSRMLS_CC) == SUCCESS)) { - ZEPHIR_CALL_FUNCTION(&_0$$5, "mb_strpos", NULL, 392, haystack, needle); + ZEPHIR_CALL_FUNCTION(&_0$$5, "mb_strpos", NULL, 355, haystack, needle); zephir_check_call_status(); RETURN_MM_BOOL(!ZEPHIR_IS_FALSE_IDENTICAL(&_0$$5)); } @@ -136567,21 +135088,21 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt, convertEncoding) { zephir_fetch_params(1, 3, 0, &text_param, &from_param, &to_param); zephir_get_strval(&text, text_param); - if (unlikely(Z_TYPE_P(from_param) != IS_STRING && Z_TYPE_P(from_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(from_param) != IS_STRING && Z_TYPE_P(from_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'from' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(from_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(from_param) == IS_STRING)) { zephir_get_strval(&from, from_param); } else { ZEPHIR_INIT_VAR(&from); ZVAL_EMPTY_STRING(&from); } - if (unlikely(Z_TYPE_P(to_param) != IS_STRING && Z_TYPE_P(to_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(to_param) != IS_STRING && Z_TYPE_P(to_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'to' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(to_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(to_param) == IS_STRING)) { zephir_get_strval(&to, to_param); } else { ZEPHIR_INIT_VAR(&to); @@ -136594,7 +135115,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt, convertEncoding) { _0 = ZEPHIR_IS_STRING(&to, "utf8"); } if (_0) { - ZEPHIR_RETURN_CALL_FUNCTION("utf8_encode", NULL, 393, &text); + ZEPHIR_RETURN_CALL_FUNCTION("utf8_encode", NULL, 356, &text); zephir_check_call_status(); RETURN_MM(); } @@ -136603,17 +135124,17 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt, convertEncoding) { _1 = ZEPHIR_IS_STRING(&from, "utf8"); } if (_1) { - ZEPHIR_RETURN_CALL_FUNCTION("utf8_decode", NULL, 394, &text); + ZEPHIR_RETURN_CALL_FUNCTION("utf8_decode", NULL, 357, &text); zephir_check_call_status(); RETURN_MM(); } if ((zephir_function_exists_ex(SL("mb_convert_encoding") TSRMLS_CC) == SUCCESS)) { - ZEPHIR_RETURN_CALL_FUNCTION("mb_convert_encoding", NULL, 187, &text, &from, &to); + ZEPHIR_RETURN_CALL_FUNCTION("mb_convert_encoding", NULL, 169, &text, &from, &to); zephir_check_call_status(); RETURN_MM(); } if ((zephir_function_exists_ex(SL("iconv") TSRMLS_CC) == SUCCESS)) { - ZEPHIR_RETURN_CALL_FUNCTION("iconv", NULL, 395, &from, &to, &text); + ZEPHIR_RETURN_CALL_FUNCTION("iconv", NULL, 358, &from, &to, &text); zephir_check_call_status(); RETURN_MM(); } @@ -136698,19 +135219,19 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt, slice) { } if (Z_TYPE_P(value) == IS_ARRAY) { ZVAL_LONG(&_5$$9, start); - ZEPHIR_RETURN_CALL_FUNCTION("array_slice", NULL, 396, value, &_5$$9, &length); + ZEPHIR_RETURN_CALL_FUNCTION("array_slice", NULL, 359, value, &_5$$9, &length); zephir_check_call_status(); RETURN_MM(); } if ((zephir_function_exists_ex(SL("mb_substr") TSRMLS_CC) == SUCCESS)) { if (Z_TYPE_P(&length) != IS_NULL) { ZVAL_LONG(&_6$$11, start); - ZEPHIR_RETURN_CALL_FUNCTION("mb_substr", &_7, 397, value, &_6$$11, &length); + ZEPHIR_RETURN_CALL_FUNCTION("mb_substr", &_7, 360, value, &_6$$11, &length); zephir_check_call_status(); RETURN_MM(); } ZVAL_LONG(&_8$$10, start); - ZEPHIR_RETURN_CALL_FUNCTION("mb_substr", &_7, 397, value, &_8$$10); + ZEPHIR_RETURN_CALL_FUNCTION("mb_substr", &_7, 360, value, &_8$$10); zephir_check_call_status(); RETURN_MM(); } @@ -136741,7 +135262,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt, sort) { ZEPHIR_MAKE_REF(&value); - ZEPHIR_CALL_FUNCTION(NULL, "asort", NULL, 398, &value); + ZEPHIR_CALL_FUNCTION(NULL, "asort", NULL, 361, &value); ZEPHIR_UNREF(&value); zephir_check_call_status(); RETURN_CTOR(value); @@ -136766,11 +135287,11 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt, callMacro) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &name_param, &arguments_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(&name, name_param); } else { ZEPHIR_INIT_VAR(&name); @@ -136791,13 +135312,13 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt, callMacro) { object_init_ex(&_1$$3, phalcon_mvc_view_exception_ce); ZEPHIR_INIT_VAR(&_2$$3); ZEPHIR_CONCAT_SVS(&_2$$3, "Macro '", &name, "' does not exist"); - ZEPHIR_CALL_METHOD(NULL, &_1$$3, "__construct", NULL, 9, &_2$$3); + ZEPHIR_CALL_METHOD(NULL, &_1$$3, "__construct", NULL, 4, &_2$$3); zephir_check_call_status(); zephir_throw_exception_debug(&_1$$3, "phalcon/mvc/view/engine/volt.zep", 287 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } - ZEPHIR_RETURN_CALL_FUNCTION("call_user_func", NULL, 399, ¯o, &arguments); + ZEPHIR_RETURN_CALL_FUNCTION("call_user_func", NULL, 362, ¯o, &arguments); zephir_check_call_status(); RETURN_MM(); @@ -136943,11 +135464,11 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, setOption) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &option_param, &value); - if (unlikely(Z_TYPE_P(option_param) != IS_STRING && Z_TYPE_P(option_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(option_param) != IS_STRING && Z_TYPE_P(option_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'option' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(option_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(option_param) == IS_STRING)) { zephir_get_strval(&option, option_param); } else { ZEPHIR_INIT_VAR(&option); @@ -136973,11 +135494,11 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, getOption) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &option_param); - if (unlikely(Z_TYPE_P(option_param) != IS_STRING && Z_TYPE_P(option_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(option_param) != IS_STRING && Z_TYPE_P(option_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'option' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(option_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(option_param) == IS_STRING)) { zephir_get_strval(&option, option_param); } else { ZEPHIR_INIT_VAR(&option); @@ -137022,11 +135543,11 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, fireExtensionEvent) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &name_param, &arguments); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(&name, name_param); } else { ZEPHIR_INIT_VAR(&name); @@ -137122,11 +135643,11 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, addFunction) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &name_param, &definition); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(&name, name_param); } else { ZEPHIR_INIT_VAR(&name); @@ -137160,11 +135681,11 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, addFilter) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &name_param, &definition); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(&name, name_param); } else { ZEPHIR_INIT_VAR(&name); @@ -137197,11 +135718,11 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, setUniquePrefix) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &prefix_param); - if (unlikely(Z_TYPE_P(prefix_param) != IS_STRING && Z_TYPE_P(prefix_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(prefix_param) != IS_STRING && Z_TYPE_P(prefix_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'prefix' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(prefix_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(prefix_param) == IS_STRING)) { zephir_get_strval(&prefix, prefix_param); } else { ZEPHIR_INIT_VAR(&prefix); @@ -137337,7 +135858,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, attributeReader) { } } } else { - ZEPHIR_CALL_METHOD(&leftCode, this_ptr, "expression", &_7, 400, &left); + ZEPHIR_CALL_METHOD(&leftCode, this_ptr, "expression", &_7, 363, &left); zephir_check_call_status(); ZEPHIR_OBS_VAR(&leftType); zephir_array_fetch_string(&leftType, &left, SL("type"), PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 328 TSRMLS_CC); @@ -137359,7 +135880,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, attributeReader) { zephir_array_fetch_string(&_10$$11, &right, SL("value"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 341 TSRMLS_CC); zephir_concat_self(&exprCode, &_10$$11 TSRMLS_CC); } else { - ZEPHIR_CALL_METHOD(&_11$$12, this_ptr, "expression", &_7, 400, &right); + ZEPHIR_CALL_METHOD(&_11$$12, this_ptr, "expression", &_7, 363, &right); zephir_check_call_status(); zephir_concat_self(&exprCode, &_11$$12 TSRMLS_CC); } @@ -137417,7 +135938,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, functionCall) { ZVAL_NULL(&funcArguments); ZEPHIR_OBS_NVAR(&funcArguments); if (zephir_array_isset_string_fetch(&funcArguments, &expr, SL("arguments"), 0)) { - ZEPHIR_CALL_METHOD(&arguments, this_ptr, "expression", &_0, 400, &funcArguments); + ZEPHIR_CALL_METHOD(&arguments, this_ptr, "expression", &_0, 363, &funcArguments); zephir_check_call_status(); } else { ZEPHIR_INIT_NVAR(&arguments); @@ -137440,7 +135961,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, functionCall) { zephir_array_fast_append(&_1$$6, &funcArguments); ZEPHIR_INIT_VAR(&_2$$6); ZVAL_STRING(&_2$$6, "compileFunction"); - ZEPHIR_CALL_METHOD(&code, this_ptr, "fireextensionevent", NULL, 401, &_2$$6, &_1$$6); + ZEPHIR_CALL_METHOD(&code, this_ptr, "fireextensionevent", NULL, 364, &_2$$6, &_1$$6); zephir_check_call_status(); if (Z_TYPE_P(&code) == IS_STRING) { RETURN_CCTOR(code); @@ -137472,7 +135993,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, functionCall) { zephir_array_fetch_string(&_6$$9, &expr, SL("line"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 418 TSRMLS_CC); ZEPHIR_INIT_VAR(&_7$$9); ZEPHIR_CONCAT_SVSVSV(&_7$$9, "Invalid definition for user function '", &name, "' in ", &_5$$9, " on line ", &_6$$9); - ZEPHIR_CALL_METHOD(NULL, &_4$$9, "__construct", NULL, 9, &_7$$9); + ZEPHIR_CALL_METHOD(NULL, &_4$$9, "__construct", NULL, 4, &_7$$9); zephir_check_call_status(); zephir_throw_exception_debug(&_4$$9, "phalcon/mvc/view/engine/volt/compiler.zep", 418 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -137501,7 +136022,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, functionCall) { ZEPHIR_OBS_VAR(&exprLevel); zephir_read_property(&exprLevel, this_ptr, SL("_exprLevel"), PH_NOISY_CC); if (Z_TYPE_P(&block) == IS_ARRAY) { - ZEPHIR_CALL_METHOD(&code, this_ptr, "_statementlistorextends", NULL, 402, &block); + ZEPHIR_CALL_METHOD(&code, this_ptr, "_statementlistorextends", NULL, 365, &block); zephir_check_call_status(); if (ZEPHIR_IS_LONG(&exprLevel, 1)) { ZEPHIR_CPY_WRT(&escapedCode, &code); @@ -137528,7 +136049,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, functionCall) { } ZEPHIR_INIT_VAR(&_9$$5); zephir_camelize(&_9$$5, &name, NULL ); - ZEPHIR_CALL_FUNCTION(&method, "lcfirst", NULL, 68, &_9$$5); + ZEPHIR_CALL_FUNCTION(&method, "lcfirst", NULL, 62, &_9$$5); zephir_check_call_status(); ZEPHIR_INIT_VAR(&className); ZVAL_STRING(&className, "Phalcon\\Tag"); @@ -137597,7 +136118,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, functionCall) { ZEPHIR_CONCAT_SVSVS(return_value, "$this->callMacro('", &name, "', [", &arguments, "])"); RETURN_MM(); } - ZEPHIR_CALL_METHOD(&_10, this_ptr, "expression", &_0, 400, &nameExpr); + ZEPHIR_CALL_METHOD(&_10, this_ptr, "expression", &_0, 363, &nameExpr); zephir_check_call_status(); ZEPHIR_CONCAT_VSVS(return_value, &_10, "(", &arguments, ")"); RETURN_MM(); @@ -137670,28 +136191,28 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, resolveTest) { if (zephir_array_isset_string_fetch(&name, &testName, SL("value"), 0)) { if (ZEPHIR_IS_STRING(&name, "divisibleby")) { zephir_array_fetch_string(&_1$$12, &test, SL("arguments"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 632 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_0$$12, this_ptr, "expression", &_2, 400, &_1$$12); + ZEPHIR_CALL_METHOD(&_0$$12, this_ptr, "expression", &_2, 363, &_1$$12); zephir_check_call_status(); ZEPHIR_CONCAT_SVSVS(return_value, "(((", &left, ") % (", &_0$$12, ")) == 0)"); RETURN_MM(); } if (ZEPHIR_IS_STRING(&name, "sameas")) { zephir_array_fetch_string(&_4$$13, &test, SL("arguments"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 639 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_3$$13, this_ptr, "expression", &_2, 400, &_4$$13); + ZEPHIR_CALL_METHOD(&_3$$13, this_ptr, "expression", &_2, 363, &_4$$13); zephir_check_call_status(); ZEPHIR_CONCAT_SVSVS(return_value, "(", &left, ") === (", &_3$$13, ")"); RETURN_MM(); } if (ZEPHIR_IS_STRING(&name, "type")) { zephir_array_fetch_string(&_6$$14, &test, SL("arguments"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 646 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_5$$14, this_ptr, "expression", &_2, 400, &_6$$14); + ZEPHIR_CALL_METHOD(&_5$$14, this_ptr, "expression", &_2, 363, &_6$$14); zephir_check_call_status(); ZEPHIR_CONCAT_SVSVS(return_value, "gettype(", &left, ") === (", &_5$$14, ")"); RETURN_MM(); } } } - ZEPHIR_CALL_METHOD(&_7, this_ptr, "expression", &_2, 400, &test); + ZEPHIR_CALL_METHOD(&_7, this_ptr, "expression", &_2, 363, &test); zephir_check_call_status(); ZEPHIR_CONCAT_VSV(return_value, &left, " == ", &_7); RETURN_MM(); @@ -137760,7 +136281,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, resolveFilter) { zephir_array_fetch_string(&_2$$5, &filter, SL("line"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 679 TSRMLS_CC); ZEPHIR_INIT_VAR(&_3$$5); ZEPHIR_CONCAT_SVSV(&_3$$5, "Unknown filter type in ", &_1$$5, " on line ", &_2$$5); - ZEPHIR_CALL_METHOD(NULL, &_0$$5, "__construct", NULL, 9, &_3$$5); + ZEPHIR_CALL_METHOD(NULL, &_0$$5, "__construct", NULL, 4, &_3$$5); zephir_check_call_status(); zephir_throw_exception_debug(&_0$$5, "phalcon/mvc/view/engine/volt/compiler.zep", 679 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -137794,11 +136315,11 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, resolveFilter) { zephir_array_update_string(&_4$$7, SL("file"), &file, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_4$$7, SL("line"), &line, PH_COPY | PH_SEPARATE); ZEPHIR_MAKE_REF(&funcArguments); - ZEPHIR_CALL_FUNCTION(NULL, "array_unshift", NULL, 403, &funcArguments, &_4$$7); + ZEPHIR_CALL_FUNCTION(NULL, "array_unshift", NULL, 366, &funcArguments, &_4$$7); ZEPHIR_UNREF(&funcArguments); zephir_check_call_status(); } - ZEPHIR_CALL_METHOD(&arguments, this_ptr, "expression", NULL, 400, &funcArguments); + ZEPHIR_CALL_METHOD(&arguments, this_ptr, "expression", NULL, 363, &funcArguments); zephir_check_call_status(); } else { ZEPHIR_CPY_WRT(&arguments, &left); @@ -137813,7 +136334,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, resolveFilter) { zephir_array_fast_append(&_6$$9, &funcArguments); ZEPHIR_INIT_VAR(&_7$$9); ZVAL_STRING(&_7$$9, "compileFilter"); - ZEPHIR_CALL_METHOD(&code, this_ptr, "fireextensionevent", NULL, 401, &_7$$9, &_6$$9); + ZEPHIR_CALL_METHOD(&code, this_ptr, "fireextensionevent", NULL, 364, &_7$$9, &_6$$9); zephir_check_call_status(); if (Z_TYPE_P(&code) == IS_STRING) { RETURN_CCTOR(code); @@ -137845,7 +136366,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, resolveFilter) { zephir_array_fetch_string(&_11$$12, &filter, SL("line"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 763 TSRMLS_CC); ZEPHIR_INIT_VAR(&_12$$12); ZEPHIR_CONCAT_SVSVSV(&_12$$12, "Invalid definition for user filter '", &name, "' in ", &_10$$12, " on line ", &_11$$12); - ZEPHIR_CALL_METHOD(NULL, &_9$$12, "__construct", NULL, 9, &_12$$12); + ZEPHIR_CALL_METHOD(NULL, &_9$$12, "__construct", NULL, 4, &_12$$12); zephir_check_call_status(); zephir_throw_exception_debug(&_9$$12, "phalcon/mvc/view/engine/volt/compiler.zep", 763 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -137974,7 +136495,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, resolveFilter) { zephir_array_fetch_string(&_18, &filter, SL("line"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 952 TSRMLS_CC); ZEPHIR_INIT_VAR(&_19); ZEPHIR_CONCAT_SVSVSV(&_19, "Unknown filter \"", &name, "\" in ", &_17, " on line ", &_18); - ZEPHIR_CALL_METHOD(NULL, &_16, "__construct", NULL, 9, &_19); + ZEPHIR_CALL_METHOD(NULL, &_16, "__construct", NULL, 4, &_19); zephir_check_call_status(); zephir_throw_exception_debug(&_16, "phalcon/mvc/view/engine/volt/compiler.zep", 952 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -138042,7 +136563,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, expression) { zephir_array_fast_append(&_0$$4, &expr); ZEPHIR_INIT_NVAR(&_1$$4); ZVAL_STRING(&_1$$4, "resolveExpression"); - ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "fireextensionevent", &_2, 401, &_1$$4, &_0$$4); + ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "fireextensionevent", &_2, 364, &_1$$4, &_0$$4); zephir_check_call_status(); if (Z_TYPE_P(&exprCode) == IS_STRING) { break; @@ -138058,7 +136579,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, expression) { ZEPHIR_INIT_NVAR(&singleExpr); ZVAL_COPY(&singleExpr, _3$$6); zephir_array_fetch_string(&_4$$7, &singleExpr, SL("expr"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 986 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&singleExprCode, this_ptr, "expression", &_5, 400, &_4$$7); + ZEPHIR_CALL_METHOD(&singleExprCode, this_ptr, "expression", &_5, 363, &_4$$7); zephir_check_call_status(); ZEPHIR_OBS_NVAR(&name); if (zephir_array_isset_string_fetch(&name, &singleExpr, SL("name"), 0)) { @@ -138081,7 +136602,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, expression) { } ZEPHIR_OBS_NVAR(&left); if (zephir_array_isset_string_fetch(&left, &expr, SL("left"), 0)) { - ZEPHIR_CALL_METHOD(&leftCode, this_ptr, "expression", &_5, 400, &left); + ZEPHIR_CALL_METHOD(&leftCode, this_ptr, "expression", &_5, 363, &left); zephir_check_call_status(); } if (ZEPHIR_IS_LONG(&type, 311)) { @@ -138092,13 +136613,13 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, expression) { } if (ZEPHIR_IS_LONG(&type, 124)) { zephir_array_fetch_string(&_10$$13, &expr, SL("right"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 1024 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "resolvefilter", &_11, 404, &_10$$13, &leftCode); + ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "resolvefilter", &_11, 367, &_10$$13, &leftCode); zephir_check_call_status(); break; } ZEPHIR_OBS_NVAR(&right); if (zephir_array_isset_string_fetch(&right, &expr, SL("right"), 0)) { - ZEPHIR_CALL_METHOD(&rightCode, this_ptr, "expression", &_5, 400, &right); + ZEPHIR_CALL_METHOD(&rightCode, this_ptr, "expression", &_5, 363, &right); zephir_check_call_status(); } ZEPHIR_INIT_NVAR(&exprCode); @@ -138274,7 +136795,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, expression) { if (ZEPHIR_IS_LONG(&type, 365)) { ZEPHIR_OBS_NVAR(&start); if (zephir_array_isset_string_fetch(&start, &expr, SL("start"), 0)) { - ZEPHIR_CALL_METHOD(&startCode, this_ptr, "expression", &_5, 400, &start); + ZEPHIR_CALL_METHOD(&startCode, this_ptr, "expression", &_5, 363, &start); zephir_check_call_status(); } else { ZEPHIR_INIT_NVAR(&startCode); @@ -138282,7 +136803,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, expression) { } ZEPHIR_OBS_NVAR(&end); if (zephir_array_isset_string_fetch(&end, &expr, SL("end"), 0)) { - ZEPHIR_CALL_METHOD(&endCode, this_ptr, "expression", &_5, 400, &end); + ZEPHIR_CALL_METHOD(&endCode, this_ptr, "expression", &_5, 363, &end); zephir_check_call_status(); } else { ZEPHIR_INIT_NVAR(&endCode); @@ -138374,7 +136895,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, expression) { } if (ZEPHIR_IS_LONG(&type, 366)) { zephir_array_fetch_string(&_19$$69, &expr, SL("ternary"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 1254 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&_18$$69, this_ptr, "expression", &_5, 400, &_19$$69); + ZEPHIR_CALL_METHOD(&_18$$69, this_ptr, "expression", &_5, 363, &_19$$69); zephir_check_call_status(); ZEPHIR_INIT_NVAR(&exprCode); ZEPHIR_CONCAT_SVSVSVS(&exprCode, "(", &_18$$69, " ? ", &leftCode, " : ", &rightCode, ")"); @@ -138401,7 +136922,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, expression) { zephir_array_fetch_string(&_22$$73, &expr, SL("line"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 1270 TSRMLS_CC); ZEPHIR_INIT_LNVAR(_23$$73); ZEPHIR_CONCAT_SVSVSV(&_23$$73, "Unknown expression ", &type, " in ", &_21$$73, " on line ", &_22$$73); - ZEPHIR_CALL_METHOD(NULL, &_20$$73, "__construct", &_24, 9, &_23$$73); + ZEPHIR_CALL_METHOD(NULL, &_20$$73, "__construct", &_24, 4, &_23$$73); zephir_check_call_status(); zephir_throw_exception_debug(&_20$$73, "phalcon/mvc/view/engine/volt/compiler.zep", 1270 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -138449,7 +136970,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, _statementListOrExtends ZEPHIR_INIT_NVAR(&statement); } if (isStatementList == 1) { - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_statementlist", NULL, 405, statements); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "_statementlist", NULL, 368, statements); zephir_check_call_status(); RETURN_MM(); } @@ -138536,7 +137057,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileForeach) { ZEPHIR_CONCAT_VV(&prefixLevel, &prefix, &level); ZEPHIR_OBS_VAR(&expr); zephir_array_fetch_string(&expr, &statement, SL("expr"), PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 1356 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "expression", &_0, 400, &expr); + ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "expression", &_0, 363, &expr); zephir_check_call_status(); ZEPHIR_OBS_VAR(&blockStatements); zephir_array_fetch_string(&blockStatements, &statement, SL("block_statements"), PH_NOISY, "phalcon/mvc/view/engine/volt/compiler.zep", 1362 TSRMLS_CC); @@ -138571,7 +137092,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileForeach) { } else { ZVAL_BOOL(&_3, 0); } - ZEPHIR_CALL_METHOD(&code, this_ptr, "_statementlist", NULL, 405, &blockStatements, &_3); + ZEPHIR_CALL_METHOD(&code, this_ptr, "_statementlist", NULL, 368, &blockStatements, &_3); zephir_check_call_status(); ZEPHIR_OBS_VAR(&loopContext); zephir_read_property(&loopContext, this_ptr, SL("_loopPointers"), PH_NOISY_CC); @@ -138622,7 +137143,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileForeach) { } ZEPHIR_OBS_VAR(&ifExpr); if (zephir_array_isset_string_fetch(&ifExpr, &statement, SL("if_expr"), 0)) { - ZEPHIR_CALL_METHOD(&_15$$13, this_ptr, "expression", &_0, 400, &ifExpr); + ZEPHIR_CALL_METHOD(&_15$$13, this_ptr, "expression", &_0, 363, &ifExpr); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_16$$13); ZEPHIR_CONCAT_SVS(&_16$$13, "if (", &_15$$13, ") { ?>"); @@ -138738,7 +137259,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileIf) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "Corrupt statement", "phalcon/mvc/view/engine/volt/compiler.zep", 1509); return; } - ZEPHIR_CALL_METHOD(&_0, this_ptr, "expression", NULL, 400, &expr); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "expression", NULL, 363, &expr); zephir_check_call_status(); zephir_array_fetch_string(&_2, &statement, SL("true_statements"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 1515 TSRMLS_CC); if (extendsMode) { @@ -138746,7 +137267,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileIf) { } else { ZVAL_BOOL(&_3, 0); } - ZEPHIR_CALL_METHOD(&_1, this_ptr, "_statementlist", &_4, 405, &_2, &_3); + ZEPHIR_CALL_METHOD(&_1, this_ptr, "_statementlist", &_4, 368, &_2, &_3); zephir_check_call_status(); ZEPHIR_INIT_VAR(&compilation); ZEPHIR_CONCAT_SVSV(&compilation, "", &_1); @@ -138757,7 +137278,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileIf) { } else { ZVAL_BOOL(&_6$$4, 0); } - ZEPHIR_CALL_METHOD(&_5$$4, this_ptr, "_statementlist", &_4, 405, &blockStatements, &_6$$4); + ZEPHIR_CALL_METHOD(&_5$$4, this_ptr, "_statementlist", &_4, 368, &blockStatements, &_6$$4); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_7$$4); ZEPHIR_CONCAT_SV(&_7$$4, "", &_5$$4); @@ -138790,7 +137311,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileElseIf) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "Corrupt statement", "phalcon/mvc/view/engine/volt/compiler.zep", 1544); return; } - ZEPHIR_CALL_METHOD(&_0, this_ptr, "expression", NULL, 400, &expr); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "expression", NULL, 363, &expr); zephir_check_call_status(); ZEPHIR_CONCAT_SVS(return_value, ""); RETURN_MM(); @@ -138847,9 +137368,9 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileCache) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "Corrupt statement", "phalcon/mvc/view/engine/volt/compiler.zep", 1564); return; } - ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "expression", &_0, 400, &expr); + ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "expression", &_0, 363, &expr); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_1, this_ptr, "expression", &_0, 400, &expr); + ZEPHIR_CALL_METHOD(&_1, this_ptr, "expression", &_0, 363, &expr); zephir_check_call_status(); ZEPHIR_INIT_VAR(&compilation); ZEPHIR_CONCAT_SVS(&compilation, "di->get('viewCache'); "); @@ -138884,7 +137405,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileCache) { } else { ZVAL_BOOL(&_12, 0); } - ZEPHIR_CALL_METHOD(&_10, this_ptr, "_statementlist", NULL, 405, &_11, &_12); + ZEPHIR_CALL_METHOD(&_10, this_ptr, "_statementlist", NULL, 368, &_11, &_12); zephir_check_call_status(); zephir_concat_self(&compilation, &_10 TSRMLS_CC); ZEPHIR_OBS_NVAR(&lifetime); @@ -138955,10 +137476,10 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileSet) { ZEPHIR_INIT_NVAR(&assignment); ZVAL_COPY(&assignment, _0); zephir_array_fetch_string(&_1$$4, &assignment, SL("expr"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 1627 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "expression", &_2, 400, &_1$$4); + ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "expression", &_2, 363, &_1$$4); zephir_check_call_status(); zephir_array_fetch_string(&_3$$4, &assignment, SL("variable"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 1632 TSRMLS_CC); - ZEPHIR_CALL_METHOD(&target, this_ptr, "expression", &_2, 400, &_3$$4); + ZEPHIR_CALL_METHOD(&target, this_ptr, "expression", &_2, 363, &_3$$4); zephir_check_call_status(); zephir_array_fetch_string(&_4$$4, &assignment, SL("op"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 1638 TSRMLS_CC); do { @@ -139021,7 +137542,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileDo) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "Corrupted statement", "phalcon/mvc/view/engine/volt/compiler.zep", 1678); return; } - ZEPHIR_CALL_METHOD(&_0, this_ptr, "expression", NULL, 400, &expr); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "expression", NULL, 363, &expr); zephir_check_call_status(); ZEPHIR_CONCAT_SVS(return_value, ""); RETURN_MM(); @@ -139050,7 +137571,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileReturn) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "Corrupted statement", "phalcon/mvc/view/engine/volt/compiler.zep", 1698); return; } - ZEPHIR_CALL_METHOD(&_0, this_ptr, "expression", NULL, 400, &expr); + ZEPHIR_CALL_METHOD(&_0, this_ptr, "expression", NULL, 363, &expr); zephir_check_call_status(); ZEPHIR_CONCAT_SVS(return_value, ""); RETURN_MM(); @@ -139093,7 +137614,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileAutoEscape) { } else { ZVAL_BOOL(&_1, 0); } - ZEPHIR_CALL_METHOD(&compilation, this_ptr, "_statementlist", NULL, 405, &_0, &_1); + ZEPHIR_CALL_METHOD(&compilation, this_ptr, "_statementlist", NULL, 368, &_0, &_1); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_autoescape"), &oldAutoescape); RETURN_CCTOR(compilation); @@ -139127,7 +137648,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileEcho) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_view_engine_volt_exception_ce, "Corrupt statement", "phalcon/mvc/view/engine/volt/compiler.zep", 1748); return; } - ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "expression", NULL, 400, &expr); + ZEPHIR_CALL_METHOD(&exprCode, this_ptr, "expression", NULL, 363, &expr); zephir_check_call_status(); zephir_array_fetch_string(&_0, &expr, SL("type"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 1756 TSRMLS_CC); if (ZEPHIR_IS_LONG(&_0, 350)) { @@ -139204,14 +137725,14 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileInclude) { RETURN_CCTOR(compilation); } } - ZEPHIR_CALL_METHOD(&path, this_ptr, "expression", &_3, 400, &pathExpr); + ZEPHIR_CALL_METHOD(&path, this_ptr, "expression", &_3, 363, &pathExpr); zephir_check_call_status(); ZEPHIR_OBS_VAR(¶ms); if (!(zephir_array_isset_string_fetch(¶ms, &statement, SL("params"), 0))) { ZEPHIR_CONCAT_SVS(return_value, "partial(", &path, "); ?>"); RETURN_MM(); } - ZEPHIR_CALL_METHOD(&_4, this_ptr, "expression", &_3, 400, ¶ms); + ZEPHIR_CALL_METHOD(&_4, this_ptr, "expression", &_3, 363, ¶ms); zephir_check_call_status(); ZEPHIR_CONCAT_SVSVS(return_value, "partial(", &path, ", ", &_4, "); ?>"); RETURN_MM(); @@ -139274,7 +137795,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileMacro) { object_init_ex(&_1$$4, phalcon_mvc_view_engine_volt_exception_ce); ZEPHIR_INIT_VAR(&_2$$4); ZEPHIR_CONCAT_SVS(&_2$$4, "Macro '", &name, "' is already defined"); - ZEPHIR_CALL_METHOD(NULL, &_1$$4, "__construct", NULL, 9, &_2$$4); + ZEPHIR_CALL_METHOD(NULL, &_1$$4, "__construct", NULL, 4, &_2$$4); zephir_check_call_status(); zephir_throw_exception_debug(&_1$$4, "phalcon/mvc/view/engine/volt/compiler.zep", 1867 TSRMLS_CC); ZEPHIR_MM_RESTORE(); @@ -139323,7 +137844,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileMacro) { zephir_concat_self_str(&code, SL(" } else { ") TSRMLS_CC); ZEPHIR_OBS_NVAR(&defaultValue); if (zephir_array_isset_string_fetch(&defaultValue, ¶meter, SL("default"), 0)) { - ZEPHIR_CALL_METHOD(&_12$$8, this_ptr, "expression", &_13, 400, &defaultValue); + ZEPHIR_CALL_METHOD(&_12$$8, this_ptr, "expression", &_13, 363, &defaultValue); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_14$$8); ZEPHIR_CONCAT_SVSVS(&_14$$8, "$", &variableName, " = ", &_12$$8, ";"); @@ -139346,7 +137867,7 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileMacro) { } else { ZVAL_BOOL(&_17$$10, 0); } - ZEPHIR_CALL_METHOD(&_16$$10, this_ptr, "_statementlist", NULL, 405, &blockStatements, &_17$$10); + ZEPHIR_CALL_METHOD(&_16$$10, this_ptr, "_statementlist", NULL, 368, &blockStatements, &_17$$10); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_18$$10); ZEPHIR_CONCAT_VS(&_18$$10, &_16$$10, "> 1))); ZEPHIR_INIT_NVAR(&mask); @@ -154638,27 +153160,27 @@ static PHP_METHOD(Phalcon_Security_Random, number) { ZVAL_LONG(&_15$$7, 1); ZEPHIR_INIT_NVAR(&_16$$7); zephir_substr(&_16$$7, &rnd, 0 , 1 , 0); - ZEPHIR_CALL_FUNCTION(&_17$$7, "ord", &_9, 140, &_16$$7); + ZEPHIR_CALL_FUNCTION(&_17$$7, "ord", &_9, 128, &_16$$7); zephir_check_call_status(); ZEPHIR_SINIT_NVAR(_18$$7); zephir_bitwise_and_function(&_18$$7, &_17$$7, &mask TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_17$$7, "chr", &_19, 138, &_18$$7); + ZEPHIR_CALL_FUNCTION(&_17$$7, "chr", &_19, 126, &_18$$7); zephir_check_call_status(); ZVAL_LONG(&_20$$7, 0); ZVAL_LONG(&_21$$7, 1); - ZEPHIR_CALL_FUNCTION(&_22$$7, "substr_replace", &_23, 434, &rnd, &_17$$7, &_20$$7, &_21$$7); + ZEPHIR_CALL_FUNCTION(&_22$$7, "substr_replace", &_23, 397, &rnd, &_17$$7, &_20$$7, &_21$$7); zephir_check_call_status(); ZEPHIR_CPY_WRT(&rnd, &_22$$7); } while (ZEPHIR_LT(&bin, &rnd)); ZEPHIR_INIT_NVAR(&_6); ZVAL_STRING(&_6, "H*"); - ZEPHIR_CALL_FUNCTION(&ret, "unpack", NULL, 430, &_6, &rnd); + ZEPHIR_CALL_FUNCTION(&ret, "unpack", NULL, 393, &_6, &rnd); zephir_check_call_status(); ZEPHIR_MAKE_REF(&ret); - ZEPHIR_CALL_FUNCTION(&_24, "array_shift", NULL, 129, &ret); + ZEPHIR_CALL_FUNCTION(&_24, "array_shift", NULL, 118, &ret); ZEPHIR_UNREF(&ret); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_FUNCTION("hexdec", NULL, 435, &_24); + ZEPHIR_RETURN_CALL_FUNCTION("hexdec", NULL, 398, &_24); zephir_check_call_status(); RETURN_MM(); @@ -154736,7 +153258,7 @@ static PHP_METHOD(Phalcon_Session_Adapter, start) { ZEPHIR_MM_GROW(); - ZEPHIR_CALL_FUNCTION(&_0, "headers_sent", NULL, 27); + ZEPHIR_CALL_FUNCTION(&_0, "headers_sent", NULL, 22); zephir_check_call_status(); if (!(zephir_is_true(&_0))) { zephir_read_property(&_1$$3, this_ptr, SL("_started"), PH_NOISY_CC | PH_READONLY); @@ -154747,7 +153269,7 @@ static PHP_METHOD(Phalcon_Session_Adapter, start) { _2$$3 = !ZEPHIR_IS_LONG_IDENTICAL(&_3$$3, 2); } if (_2$$3) { - ZEPHIR_CALL_FUNCTION(NULL, "session_start", NULL, 28); + ZEPHIR_CALL_FUNCTION(NULL, "session_start", NULL, 23); zephir_check_call_status(); if (1) { zephir_update_property_zval(this_ptr, SL("_started"), &__$true); @@ -154808,7 +153330,7 @@ static PHP_METHOD(Phalcon_Session_Adapter, setName) { zephir_get_strval(&name, name_param); - ZEPHIR_CALL_FUNCTION(NULL, "session_name", NULL, 29, &name); + ZEPHIR_CALL_FUNCTION(NULL, "session_name", NULL, 24, &name); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -154822,7 +153344,7 @@ static PHP_METHOD(Phalcon_Session_Adapter, getName) { ZEPHIR_MM_GROW(); - ZEPHIR_RETURN_CALL_FUNCTION("session_name", NULL, 29); + ZEPHIR_RETURN_CALL_FUNCTION("session_name", NULL, 24); zephir_check_call_status(); RETURN_MM(); @@ -154848,7 +153370,7 @@ static PHP_METHOD(Phalcon_Session_Adapter, regenerateId) { ZVAL_BOOL(&_0, (deleteOldSession ? 1 : 0)); - ZEPHIR_CALL_FUNCTION(NULL, "session_regenerate_id", NULL, 30, &_0); + ZEPHIR_CALL_FUNCTION(NULL, "session_regenerate_id", NULL, 25, &_0); zephir_check_call_status(); RETURN_THIS(); @@ -154906,7 +153428,6 @@ static PHP_METHOD(Phalcon_Session_Adapter, get) { static PHP_METHOD(Phalcon_Session_Adapter, set) { - int _2, _1$$3; zval *index_param = NULL, *value, value_sub, _SESSION, uniqueId, _0$$3; zval index; ZEPHIR_INIT_THIS(); @@ -154928,18 +153449,10 @@ static PHP_METHOD(Phalcon_Session_Adapter, set) { if (!(ZEPHIR_IS_EMPTY(&uniqueId))) { ZEPHIR_INIT_VAR(&_0$$3); ZEPHIR_CONCAT_VSV(&_0$$3, &uniqueId, "#", &index); - _1$$3 = zephir_maybe_separate_zval(&_SESSION); - zephir_array_update_zval(&_SESSION, &_0$$3, value, PH_COPY | PH_SEPARATE); - if (_1$$3) { - ZEPHIR_SET_SYMBOL(&EG(symbol_table), "_SESSION", &_SESSION); - } + zephir_array_update_zval(&_SESSION, &_0$$3, value, PH_COPY); RETURN_MM_NULL(); } - _2 = zephir_maybe_separate_zval(&_SESSION); - zephir_array_update_zval(&_SESSION, &index, value, PH_COPY | PH_SEPARATE); - if (_2) { - ZEPHIR_SET_SYMBOL(&EG(symbol_table), "_SESSION", &_SESSION); - } + zephir_array_update_zval(&_SESSION, &index, value, PH_COPY); ZEPHIR_MM_RESTORE(); } @@ -155010,7 +153523,7 @@ static PHP_METHOD(Phalcon_Session_Adapter, getId) { ZEPHIR_MM_GROW(); - ZEPHIR_RETURN_CALL_FUNCTION("session_id", NULL, 31); + ZEPHIR_RETURN_CALL_FUNCTION("session_id", NULL, 26); zephir_check_call_status(); RETURN_MM(); @@ -155031,7 +153544,7 @@ static PHP_METHOD(Phalcon_Session_Adapter, setId) { zephir_get_strval(&id, id_param); - ZEPHIR_CALL_FUNCTION(NULL, "session_id", NULL, 31, &id); + ZEPHIR_CALL_FUNCTION(NULL, "session_id", NULL, 26, &id); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -155108,7 +153621,7 @@ static PHP_METHOD(Phalcon_Session_Adapter, destroy) { } else { zephir_update_property_zval(this_ptr, SL("_started"), &__$false); } - ZEPHIR_RETURN_CALL_FUNCTION("session_destroy", NULL, 32); + ZEPHIR_RETURN_CALL_FUNCTION("session_destroy", NULL, 27); zephir_check_call_status(); RETURN_MM(); @@ -155124,7 +153637,7 @@ static PHP_METHOD(Phalcon_Session_Adapter, status) { ZEPHIR_MM_GROW(); - ZEPHIR_CALL_FUNCTION(&status, "session_status", NULL, 33); + ZEPHIR_CALL_FUNCTION(&status, "session_status", NULL, 28); zephir_check_call_status(); do { if (ZEPHIR_IS_LONG(&status, 0)) { @@ -155238,7 +153751,7 @@ static PHP_METHOD(Phalcon_Session_Adapter, __destruct) { zephir_read_property(&_0, this_ptr, SL("_started"), PH_NOISY_CC | PH_READONLY); if (zephir_is_true(&_0)) { - ZEPHIR_CALL_FUNCTION(NULL, "session_write_close", NULL, 34); + ZEPHIR_CALL_FUNCTION(NULL, "session_write_close", NULL, 29); zephir_check_call_status(); if (0) { zephir_update_property_zval(this_ptr, SL("_started"), &__$true); @@ -155338,11 +153851,11 @@ static PHP_METHOD(Phalcon_Session_Bag, __construct) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(&name, name_param); } else { ZEPHIR_INIT_VAR(&name); @@ -155402,7 +153915,7 @@ static PHP_METHOD(Phalcon_Session_Bag, initialize) { ZEPHIR_OBS_VAR(&dependencyInjector); zephir_read_property(&dependencyInjector, this_ptr, SL("_dependencyInjector"), PH_NOISY_CC); if (Z_TYPE_P(&dependencyInjector) != IS_OBJECT) { - ZEPHIR_CALL_CE_STATIC(&dependencyInjector, phalcon_di_ce, "getdefault", &_0, 1); + ZEPHIR_CALL_CE_STATIC(&dependencyInjector, phalcon_di_ce, "getdefault", &_0, 0); zephir_check_call_status(); if (Z_TYPE_P(&dependencyInjector) != IS_OBJECT) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_session_exception_ce, "A dependency injection object is required to access the 'session' service", "phalcon/session/bag.zep", 91); @@ -155478,11 +153991,11 @@ static PHP_METHOD(Phalcon_Session_Bag, set) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &property_param, &value); - if (unlikely(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'property' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(property_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(property_param) == IS_STRING)) { zephir_get_strval(&property, property_param); } else { ZEPHIR_INIT_VAR(&property); @@ -155518,11 +154031,11 @@ static PHP_METHOD(Phalcon_Session_Bag, __set) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &property_param, &value); - if (unlikely(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'property' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(property_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(property_param) == IS_STRING)) { zephir_get_strval(&property, property_param); } else { ZEPHIR_INIT_VAR(&property); @@ -155553,11 +154066,11 @@ static PHP_METHOD(Phalcon_Session_Bag, get) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &property_param, &defaultValue); - if (unlikely(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'property' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(property_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(property_param) == IS_STRING)) { zephir_get_strval(&property, property_param); } else { ZEPHIR_INIT_VAR(&property); @@ -155595,11 +154108,11 @@ static PHP_METHOD(Phalcon_Session_Bag, __get) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &property_param); - if (unlikely(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'property' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(property_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(property_param) == IS_STRING)) { zephir_get_strval(&property, property_param); } else { ZEPHIR_INIT_VAR(&property); @@ -155627,11 +154140,11 @@ static PHP_METHOD(Phalcon_Session_Bag, has) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &property_param); - if (unlikely(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'property' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(property_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(property_param) == IS_STRING)) { zephir_get_strval(&property, property_param); } else { ZEPHIR_INIT_VAR(&property); @@ -155661,11 +154174,11 @@ static PHP_METHOD(Phalcon_Session_Bag, __isset) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &property_param); - if (unlikely(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'property' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(property_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(property_param) == IS_STRING)) { zephir_get_strval(&property, property_param); } else { ZEPHIR_INIT_VAR(&property); @@ -155695,11 +154208,11 @@ static PHP_METHOD(Phalcon_Session_Bag, remove) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &property_param); - if (unlikely(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'property' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(property_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(property_param) == IS_STRING)) { zephir_get_strval(&property, property_param); } else { ZEPHIR_INIT_VAR(&property); @@ -155739,11 +154252,11 @@ static PHP_METHOD(Phalcon_Session_Bag, __unset) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &property_param); - if (unlikely(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'property' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(property_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(property_param) == IS_STRING)) { zephir_get_strval(&property, property_param); } else { ZEPHIR_INIT_VAR(&property); @@ -155796,7 +154309,7 @@ static PHP_METHOD(Phalcon_Session_Bag, getIterator) { } object_init_ex(return_value, zephir_get_internal_ce(SL("arrayiterator"))); zephir_read_property(&_1, this_ptr, SL("_data"), PH_NOISY_CC | PH_READONLY); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 439, &_1); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 401, &_1); zephir_check_call_status(); RETURN_MM(); @@ -155815,11 +154328,11 @@ static PHP_METHOD(Phalcon_Session_Bag, offsetSet) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &property_param, &value); - if (unlikely(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'property' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(property_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(property_param) == IS_STRING)) { zephir_get_strval(&property, property_param); } else { ZEPHIR_INIT_VAR(&property); @@ -155845,11 +154358,11 @@ static PHP_METHOD(Phalcon_Session_Bag, offsetExists) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &property_param); - if (unlikely(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'property' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(property_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(property_param) == IS_STRING)) { zephir_get_strval(&property, property_param); } else { ZEPHIR_INIT_VAR(&property); @@ -155875,11 +154388,11 @@ static PHP_METHOD(Phalcon_Session_Bag, offsetUnset) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &property_param); - if (unlikely(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'property' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(property_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(property_param) == IS_STRING)) { zephir_get_strval(&property, property_param); } else { ZEPHIR_INIT_VAR(&property); @@ -155905,11 +154418,11 @@ static PHP_METHOD(Phalcon_Session_Bag, offsetGet) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &property_param); - if (unlikely(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'property' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(property_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(property_param) == IS_STRING)) { zephir_get_strval(&property, property_param); } else { ZEPHIR_INIT_VAR(&property); @@ -156085,7 +154598,7 @@ static PHP_METHOD(Phalcon_Session_Adapter_Libmemcached, __construct) { ZVAL_LONG(&lifetime, 8600); } ZVAL_LONG(&_0, 2592000); - ZEPHIR_CALL_FUNCTION(&_1, "min", NULL, 436, &lifetime, &_0); + ZEPHIR_CALL_FUNCTION(&_1, "min", NULL, 399, &lifetime, &_0); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_lifetime"), &_1); ZEPHIR_OBS_VAR(&prefix); @@ -156112,7 +154625,7 @@ static PHP_METHOD(Phalcon_Session_Adapter_Libmemcached, __construct) { ZEPHIR_OBS_VAR(&_5); zephir_read_property(&_5, this_ptr, SL("_lifetime"), PH_NOISY_CC); zephir_array_update_string(&_4, SL("lifetime"), &_5, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(NULL, &_3, "__construct", NULL, 333, &_4); + ZEPHIR_CALL_METHOD(NULL, &_3, "__construct", NULL, 301, &_4); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_6); zephir_create_array(&_6, 5, 0 TSRMLS_CC); @@ -156121,7 +154634,7 @@ static PHP_METHOD(Phalcon_Session_Adapter_Libmemcached, __construct) { zephir_array_update_string(&_6, SL("prefix"), &prefix, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_6, SL("statsKey"), &statsKey, PH_COPY | PH_SEPARATE); zephir_array_update_string(&_6, SL("persistent_id"), &persistentId, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", NULL, 334, &_3, &_6); + ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", NULL, 302, &_3, &_6); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_libmemcached"), &_2); ZEPHIR_INIT_VAR(&_7); @@ -156160,9 +154673,9 @@ static PHP_METHOD(Phalcon_Session_Adapter_Libmemcached, __construct) { ZEPHIR_INIT_NVAR(&_8); ZVAL_STRING(&_8, "gc"); zephir_array_fast_append(&_13, &_8); - ZEPHIR_CALL_FUNCTION(NULL, "session_set_save_handler", NULL, 437, &_7, &_9, &_10, &_11, &_12, &_13); + ZEPHIR_CALL_FUNCTION(NULL, "session_set_save_handler", NULL, 400, &_7, &_9, &_10, &_11, &_12, &_13); zephir_check_call_status(); - ZEPHIR_CALL_PARENT(NULL, phalcon_session_adapter_libmemcached_ce, this_ptr, "__construct", &_14, 438, &options); + ZEPHIR_CALL_PARENT(NULL, phalcon_session_adapter_libmemcached_ce, this_ptr, "__construct", &_14, 0, &options); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -156422,9 +154935,9 @@ static PHP_METHOD(Phalcon_Session_Adapter_Memcache, __construct) { ZEPHIR_OBS_VAR(&_6); zephir_read_property(&_6, this_ptr, SL("_lifetime"), PH_NOISY_CC); zephir_array_update_string(&_5, SL("lifetime"), &_6, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(NULL, &_4, "__construct", NULL, 333, &_5); + ZEPHIR_CALL_METHOD(NULL, &_4, "__construct", NULL, 301, &_5); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, &_3, "__construct", NULL, 336, &_4, &options); + ZEPHIR_CALL_METHOD(NULL, &_3, "__construct", NULL, 303, &_4, &options); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_memcache"), &_3); ZEPHIR_INIT_VAR(&_7); @@ -156463,9 +154976,9 @@ static PHP_METHOD(Phalcon_Session_Adapter_Memcache, __construct) { ZEPHIR_INIT_NVAR(&_8); ZVAL_STRING(&_8, "gc"); zephir_array_fast_append(&_13, &_8); - ZEPHIR_CALL_FUNCTION(NULL, "session_set_save_handler", NULL, 437, &_7, &_9, &_10, &_11, &_12, &_13); + ZEPHIR_CALL_FUNCTION(NULL, "session_set_save_handler", NULL, 400, &_7, &_9, &_10, &_11, &_12, &_13); zephir_check_call_status(); - ZEPHIR_CALL_PARENT(NULL, phalcon_session_adapter_memcache_ce, this_ptr, "__construct", &_14, 438, &options); + ZEPHIR_CALL_PARENT(NULL, phalcon_session_adapter_memcache_ce, this_ptr, "__construct", &_14, 0, &options); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -156705,7 +155218,7 @@ static PHP_METHOD(Phalcon_Session_Adapter_Redis, __construct) { ZEPHIR_CALL_METHOD(NULL, &_3, "__construct", NULL, 0, &_4); zephir_check_call_status(); } - ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", NULL, 337, &_3, &options); + ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", NULL, 304, &_3, &options); zephir_check_call_status(); zephir_update_property_zval(this_ptr, SL("_redis"), &_2); ZEPHIR_INIT_VAR(&_6); @@ -156744,9 +155257,9 @@ static PHP_METHOD(Phalcon_Session_Adapter_Redis, __construct) { ZEPHIR_INIT_NVAR(&_7); ZVAL_STRING(&_7, "gc"); zephir_array_fast_append(&_12, &_7); - ZEPHIR_CALL_FUNCTION(NULL, "session_set_save_handler", NULL, 437, &_6, &_8, &_9, &_10, &_11, &_12); + ZEPHIR_CALL_FUNCTION(NULL, "session_set_save_handler", NULL, 400, &_6, &_8, &_9, &_10, &_11, &_12); zephir_check_call_status(); - ZEPHIR_CALL_PARENT(NULL, phalcon_session_adapter_redis_ce, this_ptr, "__construct", &_13, 438, &options); + ZEPHIR_CALL_PARENT(NULL, phalcon_session_adapter_redis_ce, this_ptr, "__construct", &_13, 0, &options); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -156985,7 +155498,7 @@ static PHP_METHOD(Phalcon_Tag_Select, selectField) { } ZEPHIR_OBS_VAR(&value); if (!(zephir_array_isset_string_fetch(&value, ¶ms, SL("value"), 0))) { - ZEPHIR_CALL_CE_STATIC(&value, phalcon_tag_ce, "getvalue", &_1, 6, &id, ¶ms); + ZEPHIR_CALL_CE_STATIC(&value, phalcon_tag_ce, "getvalue", &_1, 0, &id, ¶ms); zephir_check_call_status(); } else { zephir_array_unset_string(¶ms, SL("value"), PH_SEPARATE); @@ -157031,7 +155544,7 @@ static PHP_METHOD(Phalcon_Tag_Select, selectField) { zephir_array_unset_string(¶ms, SL("using"), PH_SEPARATE); ZEPHIR_INIT_VAR(&_5); ZVAL_STRING(&_5, "", &_10$$24); - ZEPHIR_CALL_SELF(&_8$$24, "_optionsfromresultset", &_9, 444, &options, &using, &value, &_11$$24); + ZEPHIR_CALL_SELF(&_8$$24, "_optionsfromresultset", &_9, 406, &options, &using, &value, &_11$$24); zephir_check_call_status(); zephir_concat_self(&code, &_8$$24 TSRMLS_CC); } else { @@ -157058,7 +155571,7 @@ static PHP_METHOD(Phalcon_Tag_Select, selectField) { ZEPHIR_GET_CONSTANT(&_14$$26, "PHP_EOL"); ZEPHIR_INIT_VAR(&_15$$26); ZEPHIR_CONCAT_SV(&_15$$26, "", &_14$$26); - ZEPHIR_CALL_SELF(&_12$$26, "_optionsfromarray", &_13, 445, &options, &value, &_15$$26); + ZEPHIR_CALL_SELF(&_12$$26, "_optionsfromarray", &_13, 407, &options, &value, &_15$$26); zephir_check_call_status(); zephir_concat_self(&code, &_12$$26 TSRMLS_CC); } else { @@ -157123,7 +155636,7 @@ static PHP_METHOD(Phalcon_Tag_Select, _optionsFromResultset) { ZEPHIR_OBS_VAR(&usingOne); zephir_array_fetch_long(&usingOne, using, 1, PH_NOISY, "phalcon/tag/select.zep", 168 TSRMLS_CC); } - ZEPHIR_CALL_CE_STATIC(&_0, phalcon_tag_ce, "getescaperservice", &_1, 446); + ZEPHIR_CALL_CE_STATIC(&_0, phalcon_tag_ce, "getescaperservice", &_1, 0); zephir_check_call_status(); ZEPHIR_CPY_WRT(&escaper, &_0); _2 = zephir_get_iterator(resultset TSRMLS_CC); @@ -157254,12 +155767,12 @@ static PHP_METHOD(Phalcon_Tag_Select, _optionsFromArray) { } ZEPHIR_INIT_NVAR(&optionText); ZVAL_COPY(&optionText, _0); - ZEPHIR_CALL_FUNCTION(&escaped, "htmlspecialchars", &_3, 188, &optionValue); + ZEPHIR_CALL_FUNCTION(&escaped, "htmlspecialchars", &_3, 170, &optionValue); zephir_check_call_status(); if (Z_TYPE_P(&optionText) == IS_ARRAY) { ZEPHIR_INIT_NVAR(&_4$$4); ZEPHIR_GET_CONSTANT(&_4$$4, "PHP_EOL"); - ZEPHIR_CALL_SELF(&_5$$4, "_optionsfromarray", &_6, 445, &optionText, value, closeOption); + ZEPHIR_CALL_SELF(&_5$$4, "_optionsfromarray", &_6, 407, &optionText, value, closeOption); zephir_check_call_status(); ZEPHIR_INIT_NVAR(&_7$$4); ZEPHIR_GET_CONSTANT(&_7$$4, "PHP_EOL"); @@ -157382,11 +155895,11 @@ static PHP_METHOD(Phalcon_Translate_Adapter, t) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &translateKey_param, &placeholders); - if (unlikely(Z_TYPE_P(translateKey_param) != IS_STRING && Z_TYPE_P(translateKey_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(translateKey_param) != IS_STRING && Z_TYPE_P(translateKey_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'translateKey' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(translateKey_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(translateKey_param) == IS_STRING)) { zephir_get_strval(&translateKey, translateKey_param); } else { ZEPHIR_INIT_VAR(&translateKey); @@ -157418,11 +155931,11 @@ static PHP_METHOD(Phalcon_Translate_Adapter, _) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &translateKey_param, &placeholders); - if (unlikely(Z_TYPE_P(translateKey_param) != IS_STRING && Z_TYPE_P(translateKey_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(translateKey_param) != IS_STRING && Z_TYPE_P(translateKey_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'translateKey' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(translateKey_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(translateKey_param) == IS_STRING)) { zephir_get_strval(&translateKey, translateKey_param); } else { ZEPHIR_INIT_VAR(&translateKey); @@ -157469,11 +155982,11 @@ static PHP_METHOD(Phalcon_Translate_Adapter, offsetExists) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &translateKey_param); - if (unlikely(Z_TYPE_P(translateKey_param) != IS_STRING && Z_TYPE_P(translateKey_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(translateKey_param) != IS_STRING && Z_TYPE_P(translateKey_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'translateKey' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(translateKey_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(translateKey_param) == IS_STRING)) { zephir_get_strval(&translateKey, translateKey_param); } else { ZEPHIR_INIT_VAR(&translateKey); @@ -157516,11 +156029,11 @@ static PHP_METHOD(Phalcon_Translate_Adapter, offsetGet) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &translateKey_param); - if (unlikely(Z_TYPE_P(translateKey_param) != IS_STRING && Z_TYPE_P(translateKey_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(translateKey_param) != IS_STRING && Z_TYPE_P(translateKey_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'translateKey' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(translateKey_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(translateKey_param) == IS_STRING)) { zephir_get_strval(&translateKey, translateKey_param); } else { ZEPHIR_INIT_VAR(&translateKey); @@ -157550,11 +156063,11 @@ static PHP_METHOD(Phalcon_Translate_Adapter, replacePlaceholders) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &translation_param, &placeholders); - if (unlikely(Z_TYPE_P(translation_param) != IS_STRING && Z_TYPE_P(translation_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(translation_param) != IS_STRING && Z_TYPE_P(translation_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'translation' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(translation_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(translation_param) == IS_STRING)) { zephir_get_strval(&translation, translation_param); } else { ZEPHIR_INIT_VAR(&translation); @@ -157678,7 +156191,7 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Csv, __construct) { ZEPHIR_OBS_COPY_OR_DUP(&options, options_param); - ZEPHIR_CALL_PARENT(NULL, phalcon_translate_adapter_csv_ce, this_ptr, "__construct", &_0, 455, &options); + ZEPHIR_CALL_PARENT(NULL, phalcon_translate_adapter_csv_ce, this_ptr, "__construct", &_0, 0, &options); zephir_check_call_status(); if (!(zephir_array_isset_string(&options, SL("content")))) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_translate_exception_ce, "Parameter 'content' is required", "phalcon/translate/adapter/csv.zep", 42); @@ -157690,7 +156203,7 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Csv, __construct) { ZVAL_STRING(&_3, ";"); ZEPHIR_INIT_VAR(&_4); ZVAL_STRING(&_4, "\""); - ZEPHIR_CALL_METHOD(NULL, this_ptr, "_load", NULL, 456, &_1, &_2, &_3, &_4); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "_load", NULL, 414, &_1, &_2, &_3, &_4); zephir_check_call_status(); ZEPHIR_MM_RESTORE(); @@ -157727,21 +156240,21 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Csv, _load) { ZEPHIR_INIT_VAR(&_0); ZVAL_STRING(&_0, "rb"); - ZEPHIR_CALL_FUNCTION(&fileHandler, "fopen", NULL, 295, file, &_0); + ZEPHIR_CALL_FUNCTION(&fileHandler, "fopen", NULL, 263, file, &_0); zephir_check_call_status(); if (Z_TYPE_P(&fileHandler) != IS_RESOURCE) { ZEPHIR_INIT_VAR(&_1$$3); object_init_ex(&_1$$3, phalcon_translate_exception_ce); ZEPHIR_INIT_VAR(&_2$$3); ZEPHIR_CONCAT_SVS(&_2$$3, "Error opening translation file '", file, "'"); - ZEPHIR_CALL_METHOD(NULL, &_1$$3, "__construct", NULL, 9, &_2$$3); + ZEPHIR_CALL_METHOD(NULL, &_1$$3, "__construct", NULL, 4, &_2$$3); zephir_check_call_status(); zephir_throw_exception_debug(&_1$$3, "phalcon/translate/adapter/csv.zep", 63 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } while (1) { - ZEPHIR_CALL_FUNCTION(&data, "fgetcsv", &_3, 457, &fileHandler, length, delimiter, enclosure); + ZEPHIR_CALL_FUNCTION(&data, "fgetcsv", &_3, 415, &fileHandler, length, delimiter, enclosure); zephir_check_call_status(); if (ZEPHIR_IS_FALSE_IDENTICAL(&data)) { break; @@ -157784,11 +156297,11 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Csv, query) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &index_param, &placeholders); - if (unlikely(Z_TYPE_P(index_param) != IS_STRING && Z_TYPE_P(index_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(index_param) != IS_STRING && Z_TYPE_P(index_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'index' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(index_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(index_param) == IS_STRING)) { zephir_get_strval(&index, index_param); } else { ZEPHIR_INIT_VAR(&index); @@ -157823,11 +156336,11 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Csv, exists) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &index_param); - if (unlikely(Z_TYPE_P(index_param) != IS_STRING && Z_TYPE_P(index_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(index_param) != IS_STRING && Z_TYPE_P(index_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'index' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(index_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(index_param) == IS_STRING)) { zephir_get_strval(&index, index_param); } else { ZEPHIR_INIT_VAR(&index); @@ -157946,7 +156459,7 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, __construct) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_translate_exception_ce, "This class requires the gettext extension for PHP", "phalcon/translate/adapter/gettext.zep", 72); return; } - ZEPHIR_CALL_PARENT(NULL, phalcon_translate_adapter_gettext_ce, this_ptr, "__construct", &_0, 455, &options); + ZEPHIR_CALL_PARENT(NULL, phalcon_translate_adapter_gettext_ce, this_ptr, "__construct", &_0, 0, &options); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, this_ptr, "prepareoptions", NULL, 0, &options); zephir_check_call_status(); @@ -157969,11 +156482,11 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, query) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &index_param, &placeholders); - if (unlikely(Z_TYPE_P(index_param) != IS_STRING && Z_TYPE_P(index_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(index_param) != IS_STRING && Z_TYPE_P(index_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'index' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(index_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(index_param) == IS_STRING)) { zephir_get_strval(&index, index_param); } else { ZEPHIR_INIT_VAR(&index); @@ -157985,7 +156498,7 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, query) { } - ZEPHIR_CALL_FUNCTION(&translation, "gettext", NULL, 458, &index); + ZEPHIR_CALL_FUNCTION(&translation, "gettext", NULL, 416, &index); zephir_check_call_status(); ZEPHIR_RETURN_CALL_METHOD(this_ptr, "replaceplaceholders", NULL, 0, &translation, placeholders); zephir_check_call_status(); @@ -158006,11 +156519,11 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, exists) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &index_param); - if (unlikely(Z_TYPE_P(index_param) != IS_STRING && Z_TYPE_P(index_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(index_param) != IS_STRING && Z_TYPE_P(index_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'index' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(index_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(index_param) == IS_STRING)) { zephir_get_strval(&index, index_param); } else { ZEPHIR_INIT_VAR(&index); @@ -158043,27 +156556,27 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, nquery) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 2, &msgid1_param, &msgid2_param, &count_param, &placeholders, &domain_param); - if (unlikely(Z_TYPE_P(msgid1_param) != IS_STRING && Z_TYPE_P(msgid1_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(msgid1_param) != IS_STRING && Z_TYPE_P(msgid1_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'msgid1' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(msgid1_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(msgid1_param) == IS_STRING)) { zephir_get_strval(&msgid1, msgid1_param); } else { ZEPHIR_INIT_VAR(&msgid1); ZVAL_EMPTY_STRING(&msgid1); } - if (unlikely(Z_TYPE_P(msgid2_param) != IS_STRING && Z_TYPE_P(msgid2_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(msgid2_param) != IS_STRING && Z_TYPE_P(msgid2_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'msgid2' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(msgid2_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(msgid2_param) == IS_STRING)) { zephir_get_strval(&msgid2, msgid2_param); } else { ZEPHIR_INIT_VAR(&msgid2); ZVAL_EMPTY_STRING(&msgid2); } - if (unlikely(Z_TYPE_P(count_param) != IS_LONG)) { + if (UNEXPECTED(Z_TYPE_P(count_param) != IS_LONG)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'count' must be a int") TSRMLS_CC); RETURN_MM_NULL(); } @@ -158076,11 +156589,11 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, nquery) { ZEPHIR_INIT_VAR(&domain); ZVAL_STRING(&domain, ""); } else { - if (unlikely(Z_TYPE_P(domain_param) != IS_STRING && Z_TYPE_P(domain_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(domain_param) != IS_STRING && Z_TYPE_P(domain_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'domain' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(domain_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(domain_param) == IS_STRING)) { zephir_get_strval(&domain, domain_param); } else { ZEPHIR_INIT_VAR(&domain); @@ -158091,11 +156604,11 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, nquery) { if (!(!(Z_TYPE_P(&domain) == IS_UNDEF) && Z_STRLEN_P(&domain))) { ZVAL_LONG(&_0$$3, count); - ZEPHIR_CALL_FUNCTION(&translation, "ngettext", NULL, 459, &msgid1, &msgid2, &_0$$3); + ZEPHIR_CALL_FUNCTION(&translation, "ngettext", NULL, 417, &msgid1, &msgid2, &_0$$3); zephir_check_call_status(); } else { ZVAL_LONG(&_1$$4, count); - ZEPHIR_CALL_FUNCTION(&translation, "dngettext", NULL, 460, &domain, &msgid1, &msgid2, &_1$$4); + ZEPHIR_CALL_FUNCTION(&translation, "dngettext", NULL, 418, &domain, &msgid1, &msgid2, &_1$$4); zephir_check_call_status(); } ZEPHIR_RETURN_CALL_METHOD(this_ptr, "replaceplaceholders", NULL, 0, &translation, placeholders); @@ -158117,7 +156630,7 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, setDomain) { - ZEPHIR_RETURN_CALL_FUNCTION("textdomain", NULL, 461, domain); + ZEPHIR_RETURN_CALL_FUNCTION("textdomain", NULL, 419, domain); zephir_check_call_status(); RETURN_MM(); @@ -158135,7 +156648,7 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, resetDomain) { ZEPHIR_CALL_METHOD(&_0, this_ptr, "getdefaultdomain", NULL, 0); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_FUNCTION("textdomain", NULL, 461, &_0); + ZEPHIR_RETURN_CALL_FUNCTION("textdomain", NULL, 419, &_0); zephir_check_call_status(); RETURN_MM(); @@ -158152,11 +156665,11 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, setDefaultDomain) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &domain_param); - if (unlikely(Z_TYPE_P(domain_param) != IS_STRING && Z_TYPE_P(domain_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(domain_param) != IS_STRING && Z_TYPE_P(domain_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'domain' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(domain_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(domain_param) == IS_STRING)) { zephir_get_strval(&domain, domain_param); } else { ZEPHIR_INIT_VAR(&domain); @@ -158204,7 +156717,7 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, setDirectory) { } ZEPHIR_INIT_NVAR(&value); ZVAL_COPY(&value, _0$$4); - ZEPHIR_CALL_FUNCTION(NULL, "bindtextdomain", &_3, 462, &key, &value); + ZEPHIR_CALL_FUNCTION(NULL, "bindtextdomain", &_3, 420, &key, &value); zephir_check_call_status(); } ZEND_HASH_FOREACH_END(); ZEPHIR_INIT_NVAR(&value); @@ -158212,7 +156725,7 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, setDirectory) { } else { ZEPHIR_CALL_METHOD(&_4$$6, this_ptr, "getdefaultdomain", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(NULL, "bindtextdomain", &_3, 462, &_4$$6, directory); + ZEPHIR_CALL_FUNCTION(NULL, "bindtextdomain", &_3, 420, &_4$$6, directory); zephir_check_call_status(); } ZEPHIR_MM_RESTORE(); @@ -158243,16 +156756,16 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, setLocale) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &category_param, &locale_param); - if (unlikely(Z_TYPE_P(category_param) != IS_LONG)) { + if (UNEXPECTED(Z_TYPE_P(category_param) != IS_LONG)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'category' must be a int") TSRMLS_CC); RETURN_MM_NULL(); } category = Z_LVAL_P(category_param); - if (unlikely(Z_TYPE_P(locale_param) != IS_STRING && Z_TYPE_P(locale_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(locale_param) != IS_STRING && Z_TYPE_P(locale_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'locale' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(locale_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(locale_param) == IS_STRING)) { zephir_get_strval(&locale, locale_param); } else { ZEPHIR_INIT_VAR(&locale); @@ -158261,8 +156774,8 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, setLocale) { ZEPHIR_INIT_VAR(&_0); - ZEPHIR_CALL_FUNCTION(&_1, "func_get_args", NULL, 173); - zephir_check_call_status(); + ZEPHIR_INIT_VAR(&_1); + zephir_get_args(&_1); ZEPHIR_INIT_VAR(&_2); ZVAL_STRING(&_2, "setlocale"); ZEPHIR_CALL_USER_FUNC_ARRAY(&_0, &_2, &_1); @@ -158274,21 +156787,21 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, setLocale) { zephir_read_property(&_3, this_ptr, SL("_locale"), PH_NOISY_CC | PH_READONLY); ZEPHIR_INIT_VAR(&_4); ZEPHIR_CONCAT_SV(&_4, "LC_ALL=", &_3); - ZEPHIR_CALL_FUNCTION(NULL, "putenv", &_5, 463, &_4); + ZEPHIR_CALL_FUNCTION(NULL, "putenv", &_5, 421, &_4); zephir_check_call_status(); zephir_read_property(&_6, this_ptr, SL("_locale"), PH_NOISY_CC | PH_READONLY); ZEPHIR_INIT_VAR(&_7); ZEPHIR_CONCAT_SV(&_7, "LANG=", &_6); - ZEPHIR_CALL_FUNCTION(NULL, "putenv", &_5, 463, &_7); + ZEPHIR_CALL_FUNCTION(NULL, "putenv", &_5, 421, &_7); zephir_check_call_status(); zephir_read_property(&_8, this_ptr, SL("_locale"), PH_NOISY_CC | PH_READONLY); ZEPHIR_INIT_VAR(&_9); ZEPHIR_CONCAT_SV(&_9, "LANGUAGE=", &_8); - ZEPHIR_CALL_FUNCTION(NULL, "putenv", &_5, 463, &_9); + ZEPHIR_CALL_FUNCTION(NULL, "putenv", &_5, 421, &_9); zephir_check_call_status(); zephir_read_property(&_10, this_ptr, SL("_locale"), PH_NOISY_CC | PH_READONLY); ZVAL_LONG(&_11, 6); - ZEPHIR_CALL_FUNCTION(NULL, "setlocale", NULL, 443, &_11, &_10); + ZEPHIR_CALL_FUNCTION(NULL, "setlocale", NULL, 405, &_11, &_10); zephir_check_call_status(); RETURN_MM_MEMBER(this_ptr, "_locale"); @@ -158396,7 +156909,7 @@ static PHP_METHOD(Phalcon_Translate_Adapter_NativeArray, __construct) { ZEPHIR_OBS_COPY_OR_DUP(&options, options_param); - ZEPHIR_CALL_PARENT(NULL, phalcon_translate_adapter_nativearray_ce, this_ptr, "__construct", &_0, 455, &options); + ZEPHIR_CALL_PARENT(NULL, phalcon_translate_adapter_nativearray_ce, this_ptr, "__construct", &_0, 0, &options); zephir_check_call_status(); ZEPHIR_OBS_VAR(&data); if (!(zephir_array_isset_string_fetch(&data, &options, SL("content"), 0))) { @@ -158428,11 +156941,11 @@ static PHP_METHOD(Phalcon_Translate_Adapter_NativeArray, query) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &index_param, &placeholders); - if (unlikely(Z_TYPE_P(index_param) != IS_STRING && Z_TYPE_P(index_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(index_param) != IS_STRING && Z_TYPE_P(index_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'index' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(index_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(index_param) == IS_STRING)) { zephir_get_strval(&index, index_param); } else { ZEPHIR_INIT_VAR(&index); @@ -158467,11 +156980,11 @@ static PHP_METHOD(Phalcon_Translate_Adapter_NativeArray, exists) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &index_param); - if (unlikely(Z_TYPE_P(index_param) != IS_STRING && Z_TYPE_P(index_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(index_param) != IS_STRING && Z_TYPE_P(index_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'index' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(index_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(index_param) == IS_STRING)) { zephir_get_strval(&index, index_param); } else { ZEPHIR_INIT_VAR(&index); @@ -158523,11 +157036,11 @@ static PHP_METHOD(Phalcon_Translate_Interpolator_AssociativeArray, replacePlaceh ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &translation_param, &placeholders); - if (unlikely(Z_TYPE_P(translation_param) != IS_STRING && Z_TYPE_P(translation_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(translation_param) != IS_STRING && Z_TYPE_P(translation_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'translation' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(translation_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(translation_param) == IS_STRING)) { zephir_get_strval(&translation, translation_param); } else { ZEPHIR_INIT_VAR(&translation); @@ -158603,11 +157116,11 @@ static PHP_METHOD(Phalcon_Translate_Interpolator_IndexedArray, replacePlaceholde ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &translation_param, &placeholders); - if (unlikely(Z_TYPE_P(translation_param) != IS_STRING && Z_TYPE_P(translation_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(translation_param) != IS_STRING && Z_TYPE_P(translation_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'translation' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(translation_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(translation_param) == IS_STRING)) { zephir_get_strval(&translation, translation_param); } else { ZEPHIR_INIT_VAR(&translation); @@ -158625,7 +157138,7 @@ static PHP_METHOD(Phalcon_Translate_Interpolator_IndexedArray, replacePlaceholde } if (_0) { ZEPHIR_MAKE_REF(placeholders); - ZEPHIR_CALL_FUNCTION(NULL, "array_unshift", NULL, 403, placeholders, &translation); + ZEPHIR_CALL_FUNCTION(NULL, "array_unshift", NULL, 366, placeholders, &translation); ZEPHIR_UNREF(placeholders); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_1$$3); @@ -158717,11 +157230,11 @@ static PHP_METHOD(Phalcon_Validation_Message, __construct) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 3, &message_param, &field, &type_param, &code_param); - if (unlikely(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'message' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(message_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(message_param) == IS_STRING)) { zephir_get_strval(&message, message_param); } else { ZEPHIR_INIT_VAR(&message); @@ -158765,11 +157278,11 @@ static PHP_METHOD(Phalcon_Validation_Message, setType) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &type_param); - if (unlikely(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'type' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(type_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(type_param) == IS_STRING)) { zephir_get_strval(&type, type_param); } else { ZEPHIR_INIT_VAR(&type); @@ -158802,11 +157315,11 @@ static PHP_METHOD(Phalcon_Validation_Message, setMessage) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &message_param); - if (unlikely(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'message' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(message_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(message_param) == IS_STRING)) { zephir_get_strval(&message, message_param); } else { ZEPHIR_INIT_VAR(&message); @@ -158913,7 +157426,7 @@ static PHP_METHOD(Phalcon_Validation_Message, __set_state) { zephir_array_fetch_string(&_0, &message, SL("_message"), PH_NOISY | PH_READONLY, "phalcon/validation/message.zep", 134 TSRMLS_CC); zephir_array_fetch_string(&_1, &message, SL("_field"), PH_NOISY | PH_READONLY, "phalcon/validation/message.zep", 134 TSRMLS_CC); zephir_array_fetch_string(&_2, &message, SL("_type"), PH_NOISY | PH_READONLY, "phalcon/validation/message.zep", 134 TSRMLS_CC); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 467, &_0, &_1, &_2); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 425, &_0, &_1, &_2); zephir_check_call_status(); RETURN_MM(); @@ -159010,11 +157523,11 @@ static PHP_METHOD(Phalcon_Validation_Validator, isSetOption) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &key_param); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(&key, key_param); } else { ZEPHIR_INIT_VAR(&key); @@ -159039,11 +157552,11 @@ static PHP_METHOD(Phalcon_Validation_Validator, hasOption) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &key_param); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(&key, key_param); } else { ZEPHIR_INIT_VAR(&key); @@ -159073,11 +157586,11 @@ static PHP_METHOD(Phalcon_Validation_Validator, getOption) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &key_param, &defaultValue); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(&key, key_param); } else { ZEPHIR_INIT_VAR(&key); @@ -159121,11 +157634,11 @@ static PHP_METHOD(Phalcon_Validation_Validator, setOption) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &key_param, &value); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(&key, key_param); } else { ZEPHIR_INIT_VAR(&key); @@ -159226,7 +157739,7 @@ static PHP_METHOD(Phalcon_Validation_Message_Group, offsetGet) { zephir_fetch_params(0, 1, 0, &index_param); - if (unlikely(Z_TYPE_P(index_param) != IS_LONG)) { + if (UNEXPECTED(Z_TYPE_P(index_param) != IS_LONG)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'index' must be a int") TSRMLS_CC); RETURN_NULL(); } @@ -159253,7 +157766,7 @@ static PHP_METHOD(Phalcon_Validation_Message_Group, offsetSet) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &index_param, &message); - if (unlikely(Z_TYPE_P(index_param) != IS_LONG)) { + if (UNEXPECTED(Z_TYPE_P(index_param) != IS_LONG)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'index' must be a int") TSRMLS_CC); RETURN_MM_NULL(); } @@ -159312,7 +157825,7 @@ static PHP_METHOD(Phalcon_Validation_Message_Group, offsetUnset) { zephir_read_property(&_1$$3, this_ptr, SL("_messages"), PH_NOISY_CC | PH_READONLY); ZVAL_LONG(&_2$$3, 1); ZEPHIR_MAKE_REF(&_1$$3); - ZEPHIR_CALL_FUNCTION(NULL, "array_splice", NULL, 468, &_1$$3, index, &_2$$3); + ZEPHIR_CALL_FUNCTION(NULL, "array_splice", NULL, 426, &_1$$3, index, &_2$$3); ZEPHIR_UNREF(&_1$$3); zephir_check_call_status(); } @@ -159409,11 +157922,11 @@ static PHP_METHOD(Phalcon_Validation_Message_Group, filter) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &fieldName_param); - if (unlikely(Z_TYPE_P(fieldName_param) != IS_STRING && Z_TYPE_P(fieldName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(fieldName_param) != IS_STRING && Z_TYPE_P(fieldName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'fieldName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(fieldName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(fieldName_param) == IS_STRING)) { zephir_get_strval(&fieldName, fieldName_param); } else { ZEPHIR_INIT_VAR(&fieldName); @@ -159540,7 +158053,7 @@ static PHP_METHOD(Phalcon_Validation_Message_Group, __set_state) { object_init_ex(return_value, phalcon_validation_message_group_ce); zephir_array_fetch_string(&_0, group, SL("_messages"), PH_NOISY | PH_READONLY, "phalcon/validation/message/group.zep", 271 TSRMLS_CC); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 3, &_0); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 2, &_0); zephir_check_call_status(); RETURN_MM(); @@ -159613,11 +158126,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_Alnum, validate) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &validation, &field_param); - if (unlikely(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'field' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(field_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(field_param) == IS_STRING)) { zephir_get_strval(&field, field_param); } else { ZEPHIR_INIT_VAR(&field); @@ -159627,7 +158140,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Alnum, validate) { ZEPHIR_CALL_METHOD(&value, validation, "getvalue", NULL, 0, &field); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_0, "ctype_alnum", NULL, 469, &value); + ZEPHIR_CALL_FUNCTION(&_0, "ctype_alnum", NULL, 427, &value); zephir_check_call_status(); if (!(zephir_is_true(&_0))) { ZEPHIR_INIT_VAR(&_1$$3); @@ -159669,11 +158182,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_Alnum, validate) { } ZEPHIR_INIT_NVAR(&_1$$3); object_init_ex(&_1$$3, phalcon_validation_message_ce); - ZEPHIR_CALL_FUNCTION(&_6$$3, "strtr", NULL, 26, &message, &replacePairs); + ZEPHIR_CALL_FUNCTION(&_6$$3, "strtr", NULL, 21, &message, &replacePairs); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_7$$3); ZVAL_STRING(&_7$$3, "Alnum"); - ZEPHIR_CALL_METHOD(NULL, &_1$$3, "__construct", NULL, 467, &_6$$3, &field, &_7$$3, &code); + ZEPHIR_CALL_METHOD(NULL, &_1$$3, "__construct", NULL, 425, &_6$$3, &field, &_7$$3, &code); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, &_1$$3); zephir_check_call_status(); @@ -159729,11 +158242,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_Alpha, validate) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &validation, &field_param); - if (unlikely(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'field' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(field_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(field_param) == IS_STRING)) { zephir_get_strval(&field, field_param); } else { ZEPHIR_INIT_VAR(&field); @@ -159788,11 +158301,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_Alpha, validate) { } ZEPHIR_INIT_NVAR(&_3$$3); object_init_ex(&_3$$3, phalcon_validation_message_ce); - ZEPHIR_CALL_FUNCTION(&_8$$3, "strtr", NULL, 26, &message, &replacePairs); + ZEPHIR_CALL_FUNCTION(&_8$$3, "strtr", NULL, 21, &message, &replacePairs); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_9$$3); ZVAL_STRING(&_9$$3, "Alpha"); - ZEPHIR_CALL_METHOD(NULL, &_3$$3, "__construct", NULL, 467, &_8$$3, &field, &_9$$3, &code); + ZEPHIR_CALL_METHOD(NULL, &_3$$3, "__construct", NULL, 425, &_8$$3, &field, &_9$$3, &code); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, &_3$$3); zephir_check_call_status(); @@ -159851,11 +158364,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_Between, validate) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &validation, &field_param); - if (unlikely(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'field' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(field_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(field_param) == IS_STRING)) { zephir_get_strval(&field, field_param); } else { ZEPHIR_INIT_VAR(&field); @@ -159927,11 +158440,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_Between, validate) { } ZEPHIR_INIT_NVAR(&_4$$5); object_init_ex(&_4$$5, phalcon_validation_message_ce); - ZEPHIR_CALL_FUNCTION(&_9$$5, "strtr", NULL, 26, &message, &replacePairs); + ZEPHIR_CALL_FUNCTION(&_9$$5, "strtr", NULL, 21, &message, &replacePairs); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_10$$5); ZVAL_STRING(&_10$$5, "Between"); - ZEPHIR_CALL_METHOD(NULL, &_4$$5, "__construct", NULL, 467, &_9$$5, &field, &_10$$5, &code); + ZEPHIR_CALL_METHOD(NULL, &_4$$5, "__construct", NULL, 425, &_9$$5, &field, &_10$$5, &code); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, &_4$$5); zephir_check_call_status(); @@ -159988,11 +158501,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_Callback, validate) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &validation, &field_param); - if (unlikely(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'field' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(field_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(field_param) == IS_STRING)) { zephir_get_strval(&field, field_param); } else { ZEPHIR_INIT_VAR(&field); @@ -160011,7 +158524,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Callback, validate) { ZEPHIR_CALL_METHOD(&data, validation, "getdata", NULL, 0); zephir_check_call_status(); } - ZEPHIR_CALL_FUNCTION(&returnedValue, "call_user_func", NULL, 399, &callback, &data); + ZEPHIR_CALL_FUNCTION(&returnedValue, "call_user_func", NULL, 362, &callback, &data); zephir_check_call_status(); _1$$3 = Z_TYPE_P(&returnedValue) == IS_OBJECT; if (_1$$3) { @@ -160058,11 +158571,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_Callback, validate) { } ZEPHIR_INIT_NVAR(&_2$$6); object_init_ex(&_2$$6, phalcon_validation_message_ce); - ZEPHIR_CALL_FUNCTION(&_7$$6, "strtr", NULL, 26, &message, &replacePairs); + ZEPHIR_CALL_FUNCTION(&_7$$6, "strtr", NULL, 21, &message, &replacePairs); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_8$$6); ZVAL_STRING(&_8$$6, "Callback"); - ZEPHIR_CALL_METHOD(NULL, &_2$$6, "__construct", NULL, 467, &_7$$6, &field, &_8$$6, &code); + ZEPHIR_CALL_METHOD(NULL, &_2$$6, "__construct", NULL, 425, &_7$$6, &field, &_8$$6, &code); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, &_2$$6); zephir_check_call_status(); @@ -160131,11 +158644,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_Confirmation, validate) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &validation, &field_param); - if (unlikely(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'field' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(field_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(field_param) == IS_STRING)) { zephir_get_strval(&field, field_param); } else { ZEPHIR_INIT_VAR(&field); @@ -160155,7 +158668,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Confirmation, validate) { zephir_check_call_status(); ZEPHIR_CALL_METHOD(&valueWith, validation, "getvalue", NULL, 0, &fieldWith); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_2, this_ptr, "compare", NULL, 470, &value, &valueWith); + ZEPHIR_CALL_METHOD(&_2, this_ptr, "compare", NULL, 428, &value, &valueWith); zephir_check_call_status(); if (!(zephir_is_true(&_2))) { ZEPHIR_INIT_VAR(&_3$$4); @@ -160210,11 +158723,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_Confirmation, validate) { } ZEPHIR_INIT_NVAR(&_3$$4); object_init_ex(&_3$$4, phalcon_validation_message_ce); - ZEPHIR_CALL_FUNCTION(&_9$$4, "strtr", NULL, 26, &message, &replacePairs); + ZEPHIR_CALL_FUNCTION(&_9$$4, "strtr", NULL, 21, &message, &replacePairs); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_10$$4); ZVAL_STRING(&_10$$4, "Confirmation"); - ZEPHIR_CALL_METHOD(NULL, &_3$$4, "__construct", NULL, 467, &_9$$4, &field, &_10$$4, &code); + ZEPHIR_CALL_METHOD(NULL, &_3$$4, "__construct", NULL, 425, &_9$$4, &field, &_10$$4, &code); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, &_3$$4); zephir_check_call_status(); @@ -160260,12 +158773,12 @@ static PHP_METHOD(Phalcon_Validation_Validator_Confirmation, compare) { } ZEPHIR_INIT_VAR(&_3$$3); ZVAL_STRING(&_3$$3, "utf-8"); - ZEPHIR_CALL_FUNCTION(&_4$$3, "mb_strtolower", &_5, 201, &a, &_3$$3); + ZEPHIR_CALL_FUNCTION(&_4$$3, "mb_strtolower", &_5, 183, &a, &_3$$3); zephir_check_call_status(); zephir_get_strval(&a, &_4$$3); ZEPHIR_INIT_NVAR(&_3$$3); ZVAL_STRING(&_3$$3, "utf-8"); - ZEPHIR_CALL_FUNCTION(&_6$$3, "mb_strtolower", &_5, 201, &b, &_3$$3); + ZEPHIR_CALL_FUNCTION(&_6$$3, "mb_strtolower", &_5, 183, &b, &_3$$3); zephir_check_call_status(); zephir_get_strval(&b, &_6$$3); } @@ -160317,11 +158830,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_CreditCard, validate) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &validation, &field_param); - if (unlikely(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'field' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(field_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(field_param) == IS_STRING)) { zephir_get_strval(&field, field_param); } else { ZEPHIR_INIT_VAR(&field); @@ -160331,7 +158844,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_CreditCard, validate) { ZEPHIR_CALL_METHOD(&value, validation, "getvalue", NULL, 0, &field); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&valid, this_ptr, "verifybyluhnalgorithm", NULL, 471, &value); + ZEPHIR_CALL_METHOD(&valid, this_ptr, "verifybyluhnalgorithm", NULL, 429, &value); zephir_check_call_status(); if (!(zephir_is_true(&valid))) { ZEPHIR_INIT_VAR(&_0$$3); @@ -160373,11 +158886,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_CreditCard, validate) { } ZEPHIR_INIT_NVAR(&_0$$3); object_init_ex(&_0$$3, phalcon_validation_message_ce); - ZEPHIR_CALL_FUNCTION(&_5$$3, "strtr", NULL, 26, &message, &replacePairs); + ZEPHIR_CALL_FUNCTION(&_5$$3, "strtr", NULL, 21, &message, &replacePairs); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_6$$3); ZVAL_STRING(&_6$$3, "CreditCard"); - ZEPHIR_CALL_METHOD(NULL, &_0$$3, "__construct", NULL, 467, &_5$$3, &field, &_6$$3, &code); + ZEPHIR_CALL_METHOD(NULL, &_0$$3, "__construct", NULL, 425, &_5$$3, &field, &_6$$3, &code); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, &_0$$3); zephir_check_call_status(); @@ -160415,13 +158928,13 @@ static PHP_METHOD(Phalcon_Validation_Validator_CreditCard, verifyByLuhnAlgorithm - ZEPHIR_CALL_FUNCTION(&_0, "str_split", &_1, 71, number); + ZEPHIR_CALL_FUNCTION(&_0, "str_split", &_1, 65, number); zephir_check_call_status(); zephir_get_arrval(&_2, &_0); ZEPHIR_CPY_WRT(&digits, &_2); ZEPHIR_INIT_VAR(&hash); ZVAL_STRING(&hash, ""); - ZEPHIR_CALL_FUNCTION(&_4, "array_reverse", NULL, 442, &digits); + ZEPHIR_CALL_FUNCTION(&_4, "array_reverse", NULL, 404, &digits); zephir_check_call_status(); zephir_is_iterable(&_4, 0, "phalcon/validation/validator/creditcard.zep", 118); ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&_4), _6, _7, _5) @@ -160445,9 +158958,9 @@ static PHP_METHOD(Phalcon_Validation_Validator_CreditCard, verifyByLuhnAlgorithm } ZEND_HASH_FOREACH_END(); ZEPHIR_INIT_NVAR(&digit); ZEPHIR_INIT_NVAR(&position); - ZEPHIR_CALL_FUNCTION(&_9, "str_split", &_1, 71, &hash); + ZEPHIR_CALL_FUNCTION(&_9, "str_split", &_1, 65, &hash); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&result, "array_sum", NULL, 472, &_9); + ZEPHIR_CALL_FUNCTION(&result, "array_sum", NULL, 430, &_9); zephir_check_call_status(); RETURN_MM_BOOL((zephir_safe_mod_zval_long(&result, 10 TSRMLS_CC) == 0)); @@ -160498,11 +159011,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_Date, validate) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &validation, &field_param); - if (unlikely(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'field' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(field_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(field_param) == IS_STRING)) { zephir_get_strval(&field, field_param); } else { ZEPHIR_INIT_VAR(&field); @@ -160524,7 +159037,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Date, validate) { ZEPHIR_INIT_NVAR(&format); ZVAL_STRING(&format, "Y-m-d"); } - ZEPHIR_CALL_METHOD(&_2, this_ptr, "checkdate", NULL, 473, &value, &format); + ZEPHIR_CALL_METHOD(&_2, this_ptr, "checkdate", NULL, 431, &value, &format); zephir_check_call_status(); if (!(zephir_is_true(&_2))) { ZEPHIR_INIT_VAR(&_3$$5); @@ -160558,11 +159071,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_Date, validate) { } ZEPHIR_INIT_NVAR(&_3$$5); object_init_ex(&_3$$5, phalcon_validation_message_ce); - ZEPHIR_CALL_FUNCTION(&_7$$5, "strtr", NULL, 26, &message, &replacePairs); + ZEPHIR_CALL_FUNCTION(&_7$$5, "strtr", NULL, 21, &message, &replacePairs); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_8$$5); ZVAL_STRING(&_8$$5, "Date"); - ZEPHIR_CALL_METHOD(NULL, &_3$$5, "__construct", NULL, 467, &_7$$5, &field, &_8$$5); + ZEPHIR_CALL_METHOD(NULL, &_3$$5, "__construct", NULL, 425, &_7$$5, &field, &_8$$5); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, &_3$$5); zephir_check_call_status(); @@ -160659,11 +159172,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_Digit, validate) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &validation, &field_param); - if (unlikely(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'field' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(field_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(field_param) == IS_STRING)) { zephir_get_strval(&field, field_param); } else { ZEPHIR_INIT_VAR(&field); @@ -160675,7 +159188,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Digit, validate) { zephir_check_call_status(); _0 = Z_TYPE_P(&value) == IS_LONG; if (!(_0)) { - ZEPHIR_CALL_FUNCTION(&_1, "ctype_digit", NULL, 474, &value); + ZEPHIR_CALL_FUNCTION(&_1, "ctype_digit", NULL, 432, &value); zephir_check_call_status(); _0 = zephir_is_true(&_1); } @@ -160721,11 +159234,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_Digit, validate) { } ZEPHIR_INIT_NVAR(&_2); object_init_ex(&_2, phalcon_validation_message_ce); - ZEPHIR_CALL_FUNCTION(&_7, "strtr", NULL, 26, &message, &replacePairs); + ZEPHIR_CALL_FUNCTION(&_7, "strtr", NULL, 21, &message, &replacePairs); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_8); ZVAL_STRING(&_8, "Digit"); - ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", NULL, 467, &_7, &field, &_8, &code); + ZEPHIR_CALL_METHOD(NULL, &_2, "__construct", NULL, 425, &_7, &field, &_8, &code); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, &_2); zephir_check_call_status(); @@ -160778,11 +159291,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_Email, validate) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &validation, &field_param); - if (unlikely(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'field' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(field_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(field_param) == IS_STRING)) { zephir_get_strval(&field, field_param); } else { ZEPHIR_INIT_VAR(&field); @@ -160793,7 +159306,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Email, validate) { ZEPHIR_CALL_METHOD(&value, validation, "getvalue", NULL, 0, &field); zephir_check_call_status(); ZVAL_LONG(&_0, 274); - ZEPHIR_CALL_FUNCTION(&_1, "filter_var", NULL, 198, &value, &_0); + ZEPHIR_CALL_FUNCTION(&_1, "filter_var", NULL, 180, &value, &_0); zephir_check_call_status(); if (!(zephir_is_true(&_1))) { ZEPHIR_INIT_VAR(&_2$$3); @@ -160835,11 +159348,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_Email, validate) { } ZEPHIR_INIT_NVAR(&_2$$3); object_init_ex(&_2$$3, phalcon_validation_message_ce); - ZEPHIR_CALL_FUNCTION(&_7$$3, "strtr", NULL, 26, &message, &replacePairs); + ZEPHIR_CALL_FUNCTION(&_7$$3, "strtr", NULL, 21, &message, &replacePairs); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_8$$3); ZVAL_STRING(&_8$$3, "Email"); - ZEPHIR_CALL_METHOD(NULL, &_2$$3, "__construct", NULL, 467, &_7$$3, &field, &_8$$3, &code); + ZEPHIR_CALL_METHOD(NULL, &_2$$3, "__construct", NULL, 425, &_7$$3, &field, &_8$$3, &code); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, &_2$$3); zephir_check_call_status(); @@ -160918,11 +159431,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_ExclusionIn, validate) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &validation, &field_param); - if (unlikely(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'field' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(field_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(field_param) == IS_STRING)) { zephir_get_strval(&field, field_param); } else { ZEPHIR_INIT_VAR(&field); @@ -160966,7 +159479,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_ExclusionIn, validate) { return; } } - ZEPHIR_CALL_FUNCTION(&_4, "in_array", NULL, 381, &value, &domain, &strict); + ZEPHIR_CALL_FUNCTION(&_4, "in_array", NULL, 345, &value, &domain, &strict); zephir_check_call_status(); if (zephir_is_true(&_4)) { ZEPHIR_INIT_VAR(&_5$$9); @@ -161011,11 +159524,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_ExclusionIn, validate) { } ZEPHIR_INIT_NVAR(&_5$$9); object_init_ex(&_5$$9, phalcon_validation_message_ce); - ZEPHIR_CALL_FUNCTION(&_10$$9, "strtr", NULL, 26, &message, &replacePairs); + ZEPHIR_CALL_FUNCTION(&_10$$9, "strtr", NULL, 21, &message, &replacePairs); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_11$$9); ZVAL_STRING(&_11$$9, "ExclusionIn"); - ZEPHIR_CALL_METHOD(NULL, &_5$$9, "__construct", NULL, 467, &_10$$9, &field, &_11$$9, &code); + ZEPHIR_CALL_METHOD(NULL, &_5$$9, "__construct", NULL, 425, &_10$$9, &field, &_11$$9, &code); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, &_5$$9); zephir_check_call_status(); @@ -161159,11 +159672,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, validate) { zephir_get_global(&_SERVER, SL("_SERVER")); zephir_fetch_params(1, 2, 0, &validation, &field_param); - if (unlikely(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'field' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(field_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(field_param) == IS_STRING)) { zephir_get_strval(&field, field_param); } else { ZEPHIR_INIT_VAR(&field); @@ -161236,11 +159749,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, validate) { } ZEPHIR_INIT_NVAR(&_11$$6); object_init_ex(&_11$$6, phalcon_validation_message_ce); - ZEPHIR_CALL_FUNCTION(&_14$$6, "strtr", &_15, 26, &message, &replacePairs); + ZEPHIR_CALL_FUNCTION(&_14$$6, "strtr", &_15, 21, &message, &replacePairs); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_16$$6); ZVAL_STRING(&_16$$6, "FileIniSize"); - ZEPHIR_CALL_METHOD(NULL, &_11$$6, "__construct", &_17, 467, &_14$$6, &field, &_16$$6, &code); + ZEPHIR_CALL_METHOD(NULL, &_11$$6, "__construct", &_17, 425, &_14$$6, &field, &_16$$6, &code); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, &_11$$6); zephir_check_call_status(); @@ -161258,7 +159771,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, validate) { _21 = _19; if (!(_21)) { zephir_array_fetch_string(&_22, &value, SL("tmp_name"), PH_NOISY | PH_READONLY, "phalcon/validation/validator/file.zep", 138 TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_23, "is_uploaded_file", NULL, 243, &_22); + ZEPHIR_CALL_FUNCTION(&_23, "is_uploaded_file", NULL, 211, &_22); zephir_check_call_status(); _21 = !zephir_is_true(&_23); } @@ -161282,11 +159795,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, validate) { } ZEPHIR_INIT_NVAR(&_24$$9); object_init_ex(&_24$$9, phalcon_validation_message_ce); - ZEPHIR_CALL_FUNCTION(&_27$$9, "strtr", &_15, 26, &message, &replacePairs); + ZEPHIR_CALL_FUNCTION(&_27$$9, "strtr", &_15, 21, &message, &replacePairs); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_28$$9); ZVAL_STRING(&_28$$9, "FileEmpty"); - ZEPHIR_CALL_METHOD(NULL, &_24$$9, "__construct", &_17, 467, &_27$$9, &field, &_28$$9, &code); + ZEPHIR_CALL_METHOD(NULL, &_24$$9, "__construct", &_17, 425, &_27$$9, &field, &_28$$9, &code); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, &_24$$9); zephir_check_call_status(); @@ -161320,11 +159833,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, validate) { } ZEPHIR_INIT_NVAR(&_31$$12); object_init_ex(&_31$$12, phalcon_validation_message_ce); - ZEPHIR_CALL_FUNCTION(&_34$$12, "strtr", &_15, 26, &message, &replacePairs); + ZEPHIR_CALL_FUNCTION(&_34$$12, "strtr", &_15, 21, &message, &replacePairs); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_35$$12); ZVAL_STRING(&_35$$12, "FileValid"); - ZEPHIR_CALL_METHOD(NULL, &_31$$12, "__construct", &_17, 467, &_34$$12, &field, &_35$$12, &code); + ZEPHIR_CALL_METHOD(NULL, &_31$$12, "__construct", &_17, 425, &_34$$12, &field, &_35$$12, &code); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, &_31$$12); zephir_check_call_status(); @@ -161371,7 +159884,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, validate) { zephir_array_fetch_long(&unit, &matches, 2, PH_NOISY, "phalcon/validation/validator/file.zep", 186 TSRMLS_CC); } zephir_array_fetch_long(&_42$$15, &matches, 1, PH_NOISY | PH_READONLY, "phalcon/validation/validator/file.zep", 189 TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_43$$15, "floatval", &_44, 319, &_42$$15); + ZEPHIR_CALL_FUNCTION(&_43$$15, "floatval", &_44, 288, &_42$$15); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_45$$15); zephir_array_fetch(&_46$$15, &byteUnits, &unit, PH_NOISY | PH_READONLY, "phalcon/validation/validator/file.zep", 189 TSRMLS_CC); @@ -161380,9 +159893,9 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, validate) { ZEPHIR_INIT_VAR(&bytes); mul_function(&bytes, &_43$$15, &_45$$15 TSRMLS_CC); zephir_array_fetch_string(&_48$$15, &value, SL("size"), PH_NOISY | PH_READONLY, "phalcon/validation/validator/file.zep", 191 TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_43$$15, "floatval", &_44, 319, &_48$$15); + ZEPHIR_CALL_FUNCTION(&_43$$15, "floatval", &_44, 288, &_48$$15); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_49$$15, "floatval", &_44, 319, &bytes); + ZEPHIR_CALL_FUNCTION(&_49$$15, "floatval", &_44, 288, &bytes); zephir_check_call_status(); if (ZEPHIR_GT(&_43$$15, &_49$$15)) { ZEPHIR_INIT_VAR(&_50$$18); @@ -161405,11 +159918,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, validate) { } ZEPHIR_INIT_NVAR(&_50$$18); object_init_ex(&_50$$18, phalcon_validation_message_ce); - ZEPHIR_CALL_FUNCTION(&_53$$18, "strtr", &_15, 26, &message, &replacePairs); + ZEPHIR_CALL_FUNCTION(&_53$$18, "strtr", &_15, 21, &message, &replacePairs); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_54$$18); ZVAL_STRING(&_54$$18, "FileSize"); - ZEPHIR_CALL_METHOD(NULL, &_50$$18, "__construct", &_17, 467, &_53$$18, &field, &_54$$18, &code); + ZEPHIR_CALL_METHOD(NULL, &_50$$18, "__construct", &_17, 425, &_53$$18, &field, &_54$$18, &code); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, &_50$$18); zephir_check_call_status(); @@ -161435,12 +159948,12 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, validate) { } if ((zephir_function_exists_ex(SL("finfo_open") TSRMLS_CC) == SUCCESS)) { ZVAL_LONG(&_57$$24, 16); - ZEPHIR_CALL_FUNCTION(&tmp, "finfo_open", NULL, 240, &_57$$24); + ZEPHIR_CALL_FUNCTION(&tmp, "finfo_open", NULL, 208, &_57$$24); zephir_check_call_status(); zephir_array_fetch_string(&_58$$24, &value, SL("tmp_name"), PH_NOISY | PH_READONLY, "phalcon/validation/validator/file.zep", 222 TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&mime, "finfo_file", NULL, 241, &tmp, &_58$$24); + ZEPHIR_CALL_FUNCTION(&mime, "finfo_file", NULL, 209, &tmp, &_58$$24); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(NULL, "finfo_close", NULL, 242, &tmp); + ZEPHIR_CALL_FUNCTION(NULL, "finfo_close", NULL, 210, &tmp); zephir_check_call_status(); } else { ZEPHIR_OBS_NVAR(&mime); @@ -161469,11 +159982,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, validate) { } ZEPHIR_INIT_NVAR(&_59$$26); object_init_ex(&_59$$26, phalcon_validation_message_ce); - ZEPHIR_CALL_FUNCTION(&_62$$26, "strtr", &_15, 26, &message, &replacePairs); + ZEPHIR_CALL_FUNCTION(&_62$$26, "strtr", &_15, 21, &message, &replacePairs); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_63$$26); ZVAL_STRING(&_63$$26, "FileType"); - ZEPHIR_CALL_METHOD(NULL, &_59$$26, "__construct", &_17, 467, &_62$$26, &field, &_63$$26, &code); + ZEPHIR_CALL_METHOD(NULL, &_59$$26, "__construct", &_17, 425, &_62$$26, &field, &_63$$26, &code); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, &_59$$26); zephir_check_call_status(); @@ -161494,7 +160007,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, validate) { } if (_65) { zephir_array_fetch_string(&_67$$29, &value, SL("tmp_name"), PH_NOISY | PH_READONLY, "phalcon/validation/validator/file.zep", 247 TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&tmp, "getimagesize", NULL, 251, &_67$$29); + ZEPHIR_CALL_FUNCTION(&tmp, "getimagesize", NULL, 219, &_67$$29); zephir_check_call_status(); ZEPHIR_OBS_VAR(&width); zephir_array_fetch_long(&width, &tmp, 0, PH_NOISY, "phalcon/validation/validator/file.zep", 248 TSRMLS_CC); @@ -161550,11 +160063,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, validate) { } ZEPHIR_INIT_NVAR(&_73$$33); object_init_ex(&_73$$33, phalcon_validation_message_ce); - ZEPHIR_CALL_FUNCTION(&_76$$33, "strtr", &_15, 26, &message, &replacePairs); + ZEPHIR_CALL_FUNCTION(&_76$$33, "strtr", &_15, 21, &message, &replacePairs); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_77$$33); ZVAL_STRING(&_77$$33, "FileMinResolution"); - ZEPHIR_CALL_METHOD(NULL, &_73$$33, "__construct", &_17, 467, &_76$$33, &field, &_77$$33, &code); + ZEPHIR_CALL_METHOD(NULL, &_73$$33, "__construct", &_17, 425, &_76$$33, &field, &_77$$33, &code); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, &_73$$33); zephir_check_call_status(); @@ -161604,11 +160117,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, validate) { } ZEPHIR_INIT_NVAR(&_82$$38); object_init_ex(&_82$$38, phalcon_validation_message_ce); - ZEPHIR_CALL_FUNCTION(&_85$$38, "strtr", &_15, 26, &message, &replacePairs); + ZEPHIR_CALL_FUNCTION(&_85$$38, "strtr", &_15, 21, &message, &replacePairs); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_86$$38); ZVAL_STRING(&_86$$38, "FileMaxResolution"); - ZEPHIR_CALL_METHOD(NULL, &_82$$38, "__construct", &_17, 467, &_85$$38, &field, &_86$$38, &code); + ZEPHIR_CALL_METHOD(NULL, &_82$$38, "__construct", &_17, 425, &_85$$38, &field, &_86$$38, &code); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, &_82$$38); zephir_check_call_status(); @@ -161636,11 +160149,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, isAllowEmpty) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &validation, &field_param); - if (unlikely(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'field' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(field_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(field_param) == IS_STRING)) { zephir_get_strval(&field, field_param); } else { ZEPHIR_INIT_VAR(&field); @@ -161717,11 +160230,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_Identical, validate) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &validation, &field_param); - if (unlikely(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'field' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(field_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(field_param) == IS_STRING)) { zephir_get_strval(&field, field_param); } else { ZEPHIR_INIT_VAR(&field); @@ -161802,11 +160315,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_Identical, validate) { } ZEPHIR_INIT_NVAR(&_8$$8); object_init_ex(&_8$$8, phalcon_validation_message_ce); - ZEPHIR_CALL_FUNCTION(&_13$$8, "strtr", NULL, 26, &message, &replacePairs); + ZEPHIR_CALL_FUNCTION(&_13$$8, "strtr", NULL, 21, &message, &replacePairs); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_14$$8); ZVAL_STRING(&_14$$8, "Identical"); - ZEPHIR_CALL_METHOD(NULL, &_8$$8, "__construct", NULL, 467, &_13$$8, &field, &_14$$8, &code); + ZEPHIR_CALL_METHOD(NULL, &_8$$8, "__construct", NULL, 425, &_13$$8, &field, &_14$$8, &code); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, &_8$$8); zephir_check_call_status(); @@ -161867,11 +160380,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_InclusionIn, validate) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &validation, &field_param); - if (unlikely(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'field' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(field_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(field_param) == IS_STRING)) { zephir_get_strval(&field, field_param); } else { ZEPHIR_INIT_VAR(&field); @@ -161915,7 +160428,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_InclusionIn, validate) { return; } } - ZEPHIR_CALL_FUNCTION(&_4, "in_array", NULL, 381, &value, &domain, &strict); + ZEPHIR_CALL_FUNCTION(&_4, "in_array", NULL, 345, &value, &domain, &strict); zephir_check_call_status(); if (!(zephir_is_true(&_4))) { ZEPHIR_INIT_VAR(&_5$$9); @@ -161960,11 +160473,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_InclusionIn, validate) { } ZEPHIR_INIT_NVAR(&_5$$9); object_init_ex(&_5$$9, phalcon_validation_message_ce); - ZEPHIR_CALL_FUNCTION(&_10$$9, "strtr", NULL, 26, &message, &replacePairs); + ZEPHIR_CALL_FUNCTION(&_10$$9, "strtr", NULL, 21, &message, &replacePairs); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_11$$9); ZVAL_STRING(&_11$$9, "InclusionIn"); - ZEPHIR_CALL_METHOD(NULL, &_5$$9, "__construct", NULL, 467, &_10$$9, &field, &_11$$9, &code); + ZEPHIR_CALL_METHOD(NULL, &_5$$9, "__construct", NULL, 425, &_10$$9, &field, &_11$$9, &code); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, &_5$$9); zephir_check_call_status(); @@ -162020,11 +160533,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_Numericality, validate) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &validation, &field_param); - if (unlikely(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'field' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(field_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(field_param) == IS_STRING)) { zephir_get_strval(&field, field_param); } else { ZEPHIR_INIT_VAR(&field); @@ -162079,11 +160592,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_Numericality, validate) { } ZEPHIR_INIT_NVAR(&_3$$3); object_init_ex(&_3$$3, phalcon_validation_message_ce); - ZEPHIR_CALL_FUNCTION(&_8$$3, "strtr", NULL, 26, &message, &replacePairs); + ZEPHIR_CALL_FUNCTION(&_8$$3, "strtr", NULL, 21, &message, &replacePairs); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_9$$3); ZVAL_STRING(&_9$$3, "Numericality"); - ZEPHIR_CALL_METHOD(NULL, &_3$$3, "__construct", NULL, 467, &_8$$3, &field, &_9$$3, &code); + ZEPHIR_CALL_METHOD(NULL, &_3$$3, "__construct", NULL, 425, &_8$$3, &field, &_9$$3, &code); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, &_3$$3); zephir_check_call_status(); @@ -162137,11 +160650,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_PresenceOf, validate) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &validation, &field_param); - if (unlikely(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'field' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(field_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(field_param) == IS_STRING)) { zephir_get_strval(&field, field_param); } else { ZEPHIR_INIT_VAR(&field); @@ -162195,11 +160708,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_PresenceOf, validate) { } ZEPHIR_INIT_NVAR(&_1$$3); object_init_ex(&_1$$3, phalcon_validation_message_ce); - ZEPHIR_CALL_FUNCTION(&_6$$3, "strtr", NULL, 26, &message, &replacePairs); + ZEPHIR_CALL_FUNCTION(&_6$$3, "strtr", NULL, 21, &message, &replacePairs); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_7$$3); ZVAL_STRING(&_7$$3, "PresenceOf"); - ZEPHIR_CALL_METHOD(NULL, &_1$$3, "__construct", NULL, 467, &_6$$3, &field, &_7$$3, &code); + ZEPHIR_CALL_METHOD(NULL, &_1$$3, "__construct", NULL, 425, &_6$$3, &field, &_7$$3, &code); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, &_1$$3); zephir_check_call_status(); @@ -162258,11 +160771,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_Regex, validate) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &validation, &field_param); - if (unlikely(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'field' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(field_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(field_param) == IS_STRING)) { zephir_get_strval(&field, field_param); } else { ZEPHIR_INIT_VAR(&field); @@ -162330,11 +160843,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_Regex, validate) { } ZEPHIR_INIT_NVAR(&_3$$6); object_init_ex(&_3$$6, phalcon_validation_message_ce); - ZEPHIR_CALL_FUNCTION(&_8$$6, "strtr", NULL, 26, &message, &replacePairs); + ZEPHIR_CALL_FUNCTION(&_8$$6, "strtr", NULL, 21, &message, &replacePairs); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_9$$6); ZVAL_STRING(&_9$$6, "Regex"); - ZEPHIR_CALL_METHOD(NULL, &_3$$6, "__construct", NULL, 467, &_8$$6, &field, &_9$$6, &code); + ZEPHIR_CALL_METHOD(NULL, &_3$$6, "__construct", NULL, 425, &_8$$6, &field, &_9$$6, &code); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, &_3$$6); zephir_check_call_status(); @@ -162404,11 +160917,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_StringLength, validate) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &validation, &field_param); - if (unlikely(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'field' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(field_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(field_param) == IS_STRING)) { zephir_get_strval(&field, field_param); } else { ZEPHIR_INIT_VAR(&field); @@ -162455,7 +160968,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_StringLength, validate) { ZEPHIR_CPY_WRT(&code, &_3$$6); } if ((zephir_function_exists_ex(SL("mb_strlen") TSRMLS_CC) == SUCCESS)) { - ZEPHIR_CALL_FUNCTION(&length, "mb_strlen", NULL, 382, &value); + ZEPHIR_CALL_FUNCTION(&length, "mb_strlen", NULL, 346, &value); zephir_check_call_status(); } else { ZEPHIR_INIT_NVAR(&length); @@ -162491,11 +161004,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_StringLength, validate) { } ZEPHIR_INIT_NVAR(&_6$$11); object_init_ex(&_6$$11, phalcon_validation_message_ce); - ZEPHIR_CALL_FUNCTION(&_9$$11, "strtr", &_10, 26, &message, &replacePairs); + ZEPHIR_CALL_FUNCTION(&_9$$11, "strtr", &_10, 21, &message, &replacePairs); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_11$$11); ZVAL_STRING(&_11$$11, "TooLong"); - ZEPHIR_CALL_METHOD(NULL, &_6$$11, "__construct", &_12, 467, &_9$$11, &field, &_11$$11, &code); + ZEPHIR_CALL_METHOD(NULL, &_6$$11, "__construct", &_12, 425, &_9$$11, &field, &_11$$11, &code); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, &_6$$11); zephir_check_call_status(); @@ -162532,11 +161045,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_StringLength, validate) { } ZEPHIR_INIT_NVAR(&_15$$16); object_init_ex(&_15$$16, phalcon_validation_message_ce); - ZEPHIR_CALL_FUNCTION(&_18$$16, "strtr", &_10, 26, &message, &replacePairs); + ZEPHIR_CALL_FUNCTION(&_18$$16, "strtr", &_10, 21, &message, &replacePairs); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_19$$16); ZVAL_STRING(&_19$$16, "TooShort"); - ZEPHIR_CALL_METHOD(NULL, &_15$$16, "__construct", &_12, 467, &_18$$16, &field, &_19$$16, &code); + ZEPHIR_CALL_METHOD(NULL, &_15$$16, "__construct", &_12, 425, &_18$$16, &field, &_19$$16, &code); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, &_15$$16); zephir_check_call_status(); @@ -162617,7 +161130,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Uniqueness, validate) { ZEPHIR_INIT_VAR(&_3$$3); zephir_create_array(&_3$$3, 1, 0 TSRMLS_CC); zephir_array_update_string(&_3$$3, SL(":field"), &label, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_FUNCTION(&_4$$3, "strtr", NULL, 26, &message, &_3$$3); + ZEPHIR_CALL_FUNCTION(&_4$$3, "strtr", NULL, 21, &message, &_3$$3); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_6$$3); ZVAL_STRING(&_6$$3, "code"); @@ -162625,7 +161138,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Uniqueness, validate) { zephir_check_call_status(); ZEPHIR_INIT_NVAR(&_6$$3); ZVAL_STRING(&_6$$3, "Uniqueness"); - ZEPHIR_CALL_METHOD(NULL, &_1$$3, "__construct", NULL, 467, &_4$$3, field, &_6$$3, &_5$$3); + ZEPHIR_CALL_METHOD(NULL, &_1$$3, "__construct", NULL, 425, &_4$$3, field, &_6$$3, &_5$$3); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, &_1$$3); zephir_check_call_status(); @@ -162754,11 +161267,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_Uniqueness, getColumnNameReal) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &record, &field_param); - if (unlikely(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'field' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(field_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(field_param) == IS_STRING)) { zephir_get_strval(&field, field_param); } else { ZEPHIR_INIT_VAR(&field); @@ -162931,7 +161444,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Uniqueness, isUniquenessModel) { zephir_array_keys(&_9$$6, &except TSRMLS_CC); ZVAL_LONG(&_10$$6, 0); ZVAL_LONG(&_11$$6, (zephir_fast_count_int(&except TSRMLS_CC) - 1)); - ZEPHIR_CALL_FUNCTION(&_12$$6, "range", &_13, 447, &_10$$6, &_11$$6); + ZEPHIR_CALL_FUNCTION(&_12$$6, "range", &_13, 408, &_10$$6, &_11$$6); zephir_check_call_status(); _8$$6 = !ZEPHIR_IS_IDENTICAL(&_9$$6, &_12$$6); } @@ -163302,11 +161815,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_Url, validate) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &validation, &field_param); - if (unlikely(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'field' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(field_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(field_param) == IS_STRING)) { zephir_get_strval(&field, field_param); } else { ZEPHIR_INIT_VAR(&field); @@ -163317,7 +161830,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Url, validate) { ZEPHIR_CALL_METHOD(&value, validation, "getvalue", NULL, 0, &field); zephir_check_call_status(); ZVAL_LONG(&_0, 273); - ZEPHIR_CALL_FUNCTION(&_1, "filter_var", NULL, 198, &value, &_0); + ZEPHIR_CALL_FUNCTION(&_1, "filter_var", NULL, 180, &value, &_0); zephir_check_call_status(); if (!(zephir_is_true(&_1))) { ZEPHIR_INIT_VAR(&_2$$3); @@ -163359,11 +161872,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_Url, validate) { } ZEPHIR_INIT_NVAR(&_2$$3); object_init_ex(&_2$$3, phalcon_validation_message_ce); - ZEPHIR_CALL_FUNCTION(&_7$$3, "strtr", NULL, 26, &message, &replacePairs); + ZEPHIR_CALL_FUNCTION(&_7$$3, "strtr", NULL, 21, &message, &replacePairs); zephir_check_call_status(); ZEPHIR_INIT_VAR(&_8$$3); ZVAL_STRING(&_8$$3, "Url"); - ZEPHIR_CALL_METHOD(NULL, &_2$$3, "__construct", NULL, 467, &_7$$3, &field, &_8$$3, &code); + ZEPHIR_CALL_METHOD(NULL, &_2$$3, "__construct", NULL, 425, &_7$$3, &field, &_8$$3, &code); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, &_2$$3); zephir_check_call_status(); diff --git a/build/php7/safe/phalcon.zep.h b/build/php7/safe/phalcon.zep.h index 12526b3efda..77f89ce6db7 100644 --- a/build/php7/safe/phalcon.zep.h +++ b/build/php7/safe/phalcon.zep.h @@ -17490,7 +17490,7 @@ ZEPHIR_INIT_FUNCS(phalcon_queue_beanstalk_method_entry) { PHP_ME(Phalcon_Queue_Beanstalk, readStatus, NULL, ZEND_ACC_FINAL|ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Queue_Beanstalk, readYaml, NULL, ZEND_ACC_FINAL|ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Queue_Beanstalk, read, arginfo_phalcon_queue_beanstalk_read, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Queue_Beanstalk, write, arginfo_phalcon_queue_beanstalk_write, ZEND_ACC_PROTECTED) + PHP_ME(Phalcon_Queue_Beanstalk, write, arginfo_phalcon_queue_beanstalk_write, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Queue_Beanstalk, disconnect, NULL, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Queue_Beanstalk, quit, NULL, ZEND_ACC_PUBLIC) PHP_FE_END diff --git a/build/php7/safe/php_phalcon.h b/build/php7/safe/php_phalcon.h index 2641c90e127..c1ab55cb0f0 100644 --- a/build/php7/safe/php_phalcon.h +++ b/build/php7/safe/php_phalcon.h @@ -13,7 +13,7 @@ +------------------------------------------------------------------------+ | Zephir Language | +------------------------------------------------------------------------+ - | Copyright (c) 2011-2016 Zephir Team (http://www.zephir-lang.com) | + | Copyright (c) 2011-2017 Zephir Team (http://www.zephir-lang.com) | +------------------------------------------------------------------------+ | This source file is subject to the New BSD License that is bundled | | with this package in the file docs/LICENSE.txt. | @@ -96,10 +96,6 @@ typedef zend_function zephir_fcall_cache_entry; return FAILURE; \ } -/** Macros for branch prediction */ -#define likely(x) EXPECTED(x) -#define unlikely(x) UNEXPECTED(x) - #if defined(__GNUC__) && (defined(__clang__) || ((__GNUC__ * 100 + __GNUC_MINOR__) >= 405)) # define UNREACHABLE() __builtin_unreachable() # define ASSUME(x) if (x) {} else __builtin_unreachable() @@ -130,10 +126,6 @@ typedef zend_function zephir_fcall_cache_entry; # define __builtin_constant_p(s) (0) #endif -#ifndef ZEND_MOD_END -# define ZEND_MOD_END { NULL, NULL, NULL, 0 } -#endif - #ifndef __func__ # define __func__ __FUNCTION__ #endif @@ -144,20 +136,17 @@ typedef zend_function zephir_fcall_cache_entry; # define ZEPHIR_NO_OPT #endif -#ifdef ZTS -#define zephir_nts_static -#else -#define zephir_nts_static -#endif +#define likely(x) EXPECTED(x) +#define unlikely(x) UNEXPECTED(x) #endif #define PHP_PHALCON_NAME "phalcon" -#define PHP_PHALCON_VERSION "3.1.1" +#define PHP_PHALCON_VERSION "3.1.2" #define PHP_PHALCON_EXTNAME "phalcon" #define PHP_PHALCON_AUTHOR "Phalcon Team and contributors" -#define PHP_PHALCON_ZEPVERSION "0.9.6a-dev-3a72ba9bb5" +#define PHP_PHALCON_ZEPVERSION "0.9.7-1fae5e50ac" #define PHP_PHALCON_DESCRIPTION "Web framework delivered as a C-extension for PHP" typedef struct _zephir_struct_db { From c1625c2f9e311d6ee3dbb28ee41d494d637978d6 Mon Sep 17 00:00:00 2001 From: Serghei Iakovlev Date: Sun, 2 Apr 2017 21:06:40 +0300 Subject: [PATCH 19/21] Regenerated build (PHP5) --- build/php5/32bits/config.w32 | 2 + build/php5/32bits/phalcon.zep.c | 5592 +++++++++++++++---------------- build/php5/32bits/phalcon.zep.h | 2 +- build/php5/32bits/php_phalcon.h | 23 +- build/php5/64bits/config.w32 | 2 + build/php5/64bits/phalcon.zep.c | 5592 +++++++++++++++---------------- build/php5/64bits/phalcon.zep.h | 2 +- build/php5/64bits/php_phalcon.h | 23 +- build/php5/safe/config.w32 | 2 + build/php5/safe/phalcon.zep.c | 5592 +++++++++++++++---------------- build/php5/safe/phalcon.zep.h | 2 +- build/php5/safe/php_phalcon.h | 23 +- ext/phalcon/mvc/model.zep.c | 240 +- 13 files changed, 7996 insertions(+), 9101 deletions(-) diff --git a/build/php5/32bits/config.w32 b/build/php5/32bits/config.w32 index c6b6f1514dd..b9fd9f14931 100644 --- a/build/php5/32bits/config.w32 +++ b/build/php5/32bits/config.w32 @@ -1,4 +1,6 @@ + ARG_ENABLE("phalcon", "enable phalcon", "no"); + if (PHP_PHALCON != "no") { EXTENSION("phalcon", "phalcon.zep.c", null, "-I"+configure_module_dirname); ADD_FLAG("CFLAGS", "/D ZEPHIR_RELEASE /Oi /Ot /Oy /Ob2 /Gs /GF /Gy /GL"); diff --git a/build/php5/32bits/phalcon.zep.c b/build/php5/32bits/phalcon.zep.c index 43daff7e10e..1b99940efd6 100644 --- a/build/php5/32bits/phalcon.zep.c +++ b/build/php5/32bits/phalcon.zep.c @@ -2588,6 +2588,9 @@ static inline char *_str_erealloc(char *str, size_t new_len, size_t old_len) { #define zephir_is_php_version(id) (PHP_VERSION_ID / 10 == id / 10 ? 1 : 0) +static void zephir_get_args(zval* return_value TSRMLS_DC); +static void zephir_get_arg(zval* return_value, int idx TSRMLS_DC); + #endif /* ZEPHIR_KERNEL_MAIN_H */ @@ -2902,73 +2905,6 @@ static void zephir_throw_exception_format(zend_class_entry *ce TSRMLS_DC, const -#ifndef ZEPHIR_KERNEL_HASH_H -#define ZEPHIR_KERNEL_HASH_H - - -static int zephir_hash_init(HashTable *ht, uint nSize, hash_func_t pHashFunction, dtor_func_t pDestructor, zend_bool persistent); - -static int zephir_hash_exists(const HashTable *ht, const char *arKey, uint nKeyLength); -static int zephir_hash_quick_exists(const HashTable *ht, const char *arKey, uint nKeyLength, ulong h); -static int zephir_hash_find(const HashTable *ht, const char *arKey, uint nKeyLength, void **pData); -static int zephir_hash_quick_find(const HashTable *ht, const char *arKey, uint nKeyLength, ulong h, void **pData); -static void zephir_get_current_key(zval **key, const HashTable *hash_table, HashPosition *hash_position TSRMLS_DC); -zval zephir_get_current_key_w(const HashTable *hash_table, HashPosition *hash_position); -static int zephir_has_numeric_keys(const zval *data); -static void zephir_hash_update_or_insert(HashTable *ht, zval *offset, zval *value); -zval** zephir_hash_get(HashTable *ht, zval *key, int type); -static int zephir_hash_unset(HashTable *ht, zval *offset); - -#define zephir_hash_move_forward_ex(ht, pos) *pos = (*pos ? (*pos)->pListNext : NULL) - -static zend_always_inline int zephir_hash_get_current_data_ex(HashTable *ht, void **pData, HashPosition *pos) -{ - Bucket *p; - p = pos ? (*pos) : ht->pInternalPointer; - if (p) { - *pData = p->pData; - return SUCCESS; - } else { - return FAILURE; - } -} - -static zend_always_inline int zephir_hash_move_backwards_ex(HashTable *ht, HashPosition *pos) -{ -#if PHP_VERSION_ID < 70000 - HashPosition *current = pos ? pos : &ht->pInternalPointer; - if (*current) { - *current = (*current)->pListLast; - return SUCCESS; - } else { - return FAILURE; - } -#else - uint idx = *pos; - - IS_CONSISTENT(ht); - - if (idx != INVALID_IDX) { - while (idx > 0) { - idx--; - if (Z_TYPE(ht->arData[idx].val) != IS_UNDEF) { - *pos = idx; - return SUCCESS; - } - } - *pos = INVALID_IDX; - return SUCCESS; - } else { - return FAILURE; - } -#endif -} - -#endif - - - - #ifndef ZEPHIR_KERNEL_DEBUG_H #define ZEPHIR_KERNEL_DEBUG_H @@ -3020,6 +2956,7 @@ static int zephir_debug_space(); + #ifndef ZEPHIR_KERNEL_BACKTRACE_H #define ZEPHIR_KERNEL_BACKTRACE_H @@ -3283,9 +3220,6 @@ static void ZEPHIR_FASTCALL zephir_create_array(zval *return_value, uint size, i - - - #ifndef ZEPHIR_KERNEL_FCALL_EXT_H #define ZEPHIR_KERNEL_FCALL_EXT_H @@ -3413,6 +3347,8 @@ static void zephir_stripcslashes(zval *return_value, zval *str TSRMLS_DC); static int zephir_hash_equals(const zval *known_zval, const zval *user_zval); +static void zephir_string_to_hex(zval *return_value, zval *var); + #endif /* ZEPHIR_KERNEL_STRING_H */ @@ -4715,10 +4651,13 @@ static void zephir_var_export_ex(zval *return_value, zval **var TSRMLS_DC); static void zephir_var_dump(zval **var TSRMLS_DC); +static void zephir_get_defined_vars(zval *return_value TSRMLS_DC); + #endif + #ifndef ZEPHIR_KERNEL_FILTER_H #define ZEPHIR_KERNEL_FILTER_H @@ -4740,6 +4679,7 @@ static void zephir_escape_html(zval *return_value, zval *str, zval *quote_style, + #ifndef ZEPHIR_KERNEL_ITERATOR_H #define ZEPHIR_KERNEL_ITERATOR_H @@ -5016,7 +4956,7 @@ static int zephir_is_scalar(zval *var) { static int zephir_is_iterable_ex(zval *arr, HashTable **arr_hash, HashPosition *hash_position, int duplicate, int reverse) { - if (unlikely(Z_TYPE_P(arr) != IS_ARRAY)) { + if (UNEXPECTED(Z_TYPE_P(arr) != IS_ARRAY)) { return 0; } @@ -5149,6 +5089,52 @@ zend_class_entry* zephir_get_internal_ce(const char *class_name, unsigned int cl return *temp_ce; } +static void zephir_get_args(zval *return_value TSRMLS_DC) +{ + zend_execute_data *ex = EG(current_execute_data); + void **p = ex->function_state.arguments; + int arg_count = (int)(zend_uintptr_t)*p; + int i; + + array_init_size(return_value, arg_count); + for (i=0; ifunction_state.arguments; + int arg_count = (int)(zend_uintptr_t)*p; + zval *arg; + + if (UNEXPECTED(idx < 0)) { + zend_error(E_WARNING, "zephir_get_arg(): The argument number should be >= 0"); + RETURN_FALSE; + } + + if (UNEXPECTED((zend_ulong)idx >= arg_count)) { + zend_error(E_WARNING, "zephir_get_arg(): Argument %d not passed to function", idx); + RETURN_FALSE; + } + + arg = *((zval**)(p - arg_count + idx)); + RETURN_ZVAL(arg, 1, 0); +} + @@ -6001,310 +5987,6 @@ static void zephir_throw_exception_zval(zend_class_entry *ce, zval *message TSRM -#ifdef HAVE_CONFIG_H -#endif - - - -static int zephir_hash_init(HashTable *ht, uint nSize, hash_func_t pHashFunction, dtor_func_t pDestructor, zend_bool persistent) -{ - if (nSize >= 0x80000000) { - ht->nTableSize = 0x80000000; - } else { - if (nSize > 3) { - ht->nTableSize = nSize + (nSize >> 2); - } else { - ht->nTableSize = 3; - } - } - -#if ZEND_DEBUG - ht->inconsistent = 0; -#endif - - ht->nTableMask = 0; /* 0 means that ht->arBuckets is uninitialized */ - ht->pDestructor = pDestructor; - ht->arBuckets = NULL; - ht->pListHead = NULL; - ht->pListTail = NULL; - ht->nNumOfElements = 0; - ht->nNextFreeElement = 0; - ht->pInternalPointer = NULL; - ht->persistent = persistent; - ht->nApplyCount = 0; - ht->bApplyProtection = 1; - - return SUCCESS; -} - -static int zephir_hash_exists(const HashTable *ht, const char *arKey, uint nKeyLength) -{ - ulong h; - uint nIndex; - Bucket *p; - - h = zend_inline_hash_func(arKey, nKeyLength); - nIndex = h & ht->nTableMask; - - p = ht->arBuckets[nIndex]; - while (p != NULL) { - if (p->arKey == arKey || ((p->h == h) && (p->nKeyLength == nKeyLength))) { - if (!memcmp(p->arKey, arKey, nKeyLength)) { - return 1; - } - } - p = p->pNext; - } - return 0; -} - -static int zephir_hash_quick_exists(const HashTable *ht, const char *arKey, uint nKeyLength, ulong h) -{ - uint nIndex; - Bucket *p; - - if (nKeyLength == 0) { - return zend_hash_index_exists(ht, h); - } - - nIndex = h & ht->nTableMask; - - p = ht->arBuckets[nIndex]; - while (p != NULL) { - if (p->arKey == arKey || ((p->h == h) && (p->nKeyLength == nKeyLength))) { - if (!memcmp(p->arKey, arKey, nKeyLength)) { - return 1; - } - } - p = p->pNext; - } - return 0; -} - -static int zephir_hash_find(const HashTable *ht, const char *arKey, uint nKeyLength, void **pData) -{ - ulong h; - uint nIndex; - Bucket *p; - - h = zend_inline_hash_func(arKey, nKeyLength); - nIndex = h & ht->nTableMask; - - p = ht->arBuckets[nIndex]; - while (p != NULL) { - if (p->arKey == arKey || ((p->h == h) && (p->nKeyLength == nKeyLength))) { - if (!memcmp(p->arKey, arKey, nKeyLength)) { - *pData = p->pData; - return SUCCESS; - } - } - p = p->pNext; - } - return FAILURE; -} - -static int zephir_hash_quick_find(const HashTable *ht, const char *arKey, uint nKeyLength, ulong h, void **pData) -{ - uint nIndex; - Bucket *p; - - if (nKeyLength == 0) { - return zend_hash_index_find(ht, h, pData); - } - - nIndex = h & ht->nTableMask; - - p = ht->arBuckets[nIndex]; - while (p != NULL) { - if (p->arKey == arKey || ((p->h == h) && (p->nKeyLength == nKeyLength))) { - if (!memcmp(p->arKey, arKey, nKeyLength)) { - *pData = p->pData; - return SUCCESS; - } - } - p = p->pNext; - } - return FAILURE; -} - -static void zephir_get_current_key(zval **key, const HashTable *hash_table, HashPosition *hash_position TSRMLS_DC) -{ - Bucket *p; - - ZEPHIR_INIT_NVAR_PNULL(*key); - - p = hash_position ? (*hash_position) : hash_table->pInternalPointer; - - if (p) { - if (p->nKeyLength) { - ZVAL_STRINGL(*key, (char *) p->arKey, p->nKeyLength - 1, 0); - } else { - ZVAL_LONG(*key, p->h); - } - } - -} - -zval zephir_get_current_key_w(const HashTable *hash_table, HashPosition *hash_position) -{ - Bucket *p; - zval result; - - INIT_ZVAL(result); - p = hash_position ? (*hash_position) : hash_table->pInternalPointer; - - if (p) { - if (p->nKeyLength) { - ZVAL_STRINGL(&result, (char *) p->arKey, p->nKeyLength - 1, 0); - } else { - ZVAL_LONG(&result, p->h); - } - } - - return result; -} - -static int zephir_has_numeric_keys(const zval *data) -{ - HashTable *ht; - - if (Z_TYPE_P(data) == IS_ARRAY) { - - ht = Z_ARRVAL_P(data); - - ht->pInternalPointer = ht->pListHead; - while (ht->pInternalPointer) { - if (!ht->pInternalPointer->nKeyLength) { - return 1; - } - ht->pInternalPointer = ht->pInternalPointer->pListNext; - } - - } - - return 0; -} - -static void zephir_hash_update_or_insert(HashTable *ht, zval *key, zval *value) -{ - if (!key || Z_TYPE_P(key) == IS_NULL) { - zend_hash_next_index_insert(ht, (void**)&value, sizeof(zval*), NULL); - return; - } - - switch (Z_TYPE_P(key)) { - case IS_STRING: - zend_symtable_update(ht, Z_STRVAL_P(key), Z_STRLEN_P(key)+1, (void**)&value, sizeof(zval*), NULL); - return; - - case IS_RESOURCE: - case IS_DOUBLE: - case IS_BOOL: - case IS_LONG: - zend_hash_index_update(ht, ((Z_TYPE_P(key) == IS_DOUBLE) ? (ulong)Z_DVAL_P(key) : Z_LVAL_P(key)), (void*)&value, sizeof(zval*), NULL); - return; - - default: - zend_error(E_WARNING, "Illegal offset type"); - return; - } -} - -zval** zephir_hash_get(HashTable *ht, zval *key, int type) -{ - zval **ret = NULL; - - switch (Z_TYPE_P(key)) { - case IS_RESOURCE: - zend_error(E_STRICT, "Resource ID#%ld used as offset, casting to integer (%ld)", Z_LVAL_P(key), Z_LVAL_P(key)); - /* no break */ - case IS_LONG: - case IS_DOUBLE: - case IS_BOOL: { - ulong index = (Z_TYPE_P(key) == IS_DOUBLE) ? ((long int)Z_DVAL_P(key)) : Z_LVAL_P(key); - if (FAILURE == zend_hash_index_find(ht, index, (void**)&ret)) { - switch (type) { - case BP_VAR_R: - zend_error(E_NOTICE, "Undefined offset: %ld", index); - /* no break */ - case BP_VAR_UNSET: - case BP_VAR_IS: { - TSRMLS_FETCH(); - ret = &EG(uninitialized_zval_ptr); - break; - } - - case BP_VAR_RW: - zend_error(E_NOTICE, "Undefined offset: %ld", index); - /* no break */ - case BP_VAR_W: { - zval *value; - ALLOC_INIT_ZVAL(value); - zend_hash_index_update(ht, index, (void**)&value, sizeof(void*), (void**)&ret); - break; - } - } - } - - return ret; - } - - case IS_STRING: - if (FAILURE == zend_symtable_find(ht, Z_STRVAL_P(key), Z_STRLEN_P(key)+1, (void**)&ret)) { - switch (type) { - case BP_VAR_R: - zend_error(E_NOTICE, "Undefined offset: %s", Z_STRVAL_P(key)); - /* no break */ - case BP_VAR_UNSET: - case BP_VAR_IS: { - TSRMLS_FETCH(); - ret = &EG(uninitialized_zval_ptr); - break; - } - - case BP_VAR_RW: - zend_error(E_NOTICE, "Undefined offset: %s", Z_STRVAL_P(key)); - /* no break */ - case BP_VAR_W: { - zval *value; - ALLOC_INIT_ZVAL(value); - zend_symtable_update(ht, Z_STRVAL_P(key), Z_STRLEN_P(key)+1, (void**)&value, sizeof(void*), (void**)&ret); - break; - } - } - } - - return ret; - - default: { - TSRMLS_FETCH(); - zend_error(E_WARNING, "Illegal offset type"); - return (type == BP_VAR_W || type == BP_VAR_RW) ? &EG(error_zval_ptr) : &EG(uninitialized_zval_ptr); - } - } -} - -static int zephir_hash_unset(HashTable *ht, zval *key) -{ - switch (Z_TYPE_P(key)) { - case IS_LONG: - case IS_DOUBLE: - case IS_BOOL: - case IS_RESOURCE: - return (zend_hash_index_del(ht, (Z_TYPE_P(key) == IS_DOUBLE) ? ((long int)Z_DVAL_P(key)) : Z_LVAL_P(key)) == SUCCESS); - - case IS_STRING: - return (zend_symtable_del(ht, Z_STRVAL_P(key), Z_STRLEN_P(key) + 1) == SUCCESS); - - default: - zend_error(E_WARNING, "Illegal offset type"); - return 0; - } -} - - - - #ifdef HAVE_CONFIG_H #endif @@ -6633,7 +6315,7 @@ static int zephir_get_class_constant(zval *return_value, zend_class_entry *ce, c zval **result_ptr; - if (zephir_hash_find(&ce->constants_table, constant_name, constant_length, (void **) &result_ptr) != SUCCESS) { + if (zend_hash_find(&ce->constants_table, constant_name, constant_length, (void **) &result_ptr) != SUCCESS) { php_error_docref(NULL TSRMLS_CC, E_ERROR, "Undefined class constant '%s::%s'", ce->name, constant_name); return FAILURE; } @@ -6956,10 +6638,10 @@ static int zephir_clone(zval *destination, zval *obj TSRMLS_DC) { static int zephir_isset_property_quick(zval *object, const char *property_name, unsigned int property_length, unsigned long hash TSRMLS_DC) { if (Z_TYPE_P(object) == IS_OBJECT) { - if (likely(zephir_hash_quick_exists(&Z_OBJCE_P(object)->properties_info, property_name, property_length, hash))) { + if (EXPECTED(zend_hash_quick_exists(&Z_OBJCE_P(object)->properties_info, property_name, property_length, hash))) { return 1; } else { - return zephir_hash_quick_exists(Z_OBJ_HT_P(object)->get_properties(object TSRMLS_CC), property_name, property_length, hash); + return zend_hash_quick_exists(Z_OBJ_HT_P(object)->get_properties(object TSRMLS_CC), property_name, property_length, hash); } } @@ -6980,10 +6662,10 @@ static int zephir_isset_property_zval(zval *object, const zval *property TSRMLS_ hash = zend_inline_hash_func(Z_STRVAL_P(property), Z_STRLEN_P(property) + 1); - if (likely(zephir_hash_quick_exists(&Z_OBJCE_P(object)->properties_info, Z_STRVAL_P(property), Z_STRLEN_P(property) + 1, hash))) { + if (EXPECTED(zend_hash_quick_exists(&Z_OBJCE_P(object)->properties_info, Z_STRVAL_P(property), Z_STRLEN_P(property) + 1, hash))) { return 1; } else { - return zephir_hash_quick_exists(Z_OBJ_HT_P(object)->get_properties(object TSRMLS_CC), Z_STRVAL_P(property), Z_STRLEN_P(property) + 1, hash); + return zend_hash_quick_exists(Z_OBJ_HT_P(object)->get_properties(object TSRMLS_CC), Z_STRVAL_P(property), Z_STRLEN_P(property) + 1, hash); } } } @@ -6996,7 +6678,7 @@ static inline zend_class_entry *zephir_lookup_class_ce_quick(zend_class_entry *c zend_class_entry *original_ce = ce; while (ce) { - if (zephir_hash_quick_exists(&ce->properties_info, property_name, property_length + 1, hash)) { + if (zend_hash_quick_exists(&ce->properties_info, property_name, property_length + 1, hash)) { return ce; } ce = ce->parent; @@ -7067,7 +6749,7 @@ zval* zephir_fetch_property_this_quick(zval *object, const char *property_name, zend_property_info *property_info; zend_class_entry *ce, *old_scope; - if (likely(Z_TYPE_P(object) == IS_OBJECT)) { + if (EXPECTED(Z_TYPE_P(object) == IS_OBJECT)) { ce = Z_OBJCE_P(object); if (ce->parent) { @@ -7079,7 +6761,7 @@ zval* zephir_fetch_property_this_quick(zval *object, const char *property_name, zobj = zend_objects_get_address(object TSRMLS_CC); - if (zephir_hash_quick_find(&ce->properties_info, property_name, property_length + 1, key, (void **) &property_info) == SUCCESS) { + if (zend_hash_quick_find(&ce->properties_info, property_name, property_length + 1, key, (void **) &property_info) == SUCCESS) { int flag; if (EXPECTED((property_info->flags & ZEND_ACC_STATIC) == 0) && property_info->offset >= 0) { if (zobj->properties) { @@ -7091,22 +6773,22 @@ zval* zephir_fetch_property_this_quick(zval *object, const char *property_name, } } else if (UNEXPECTED(!zobj->properties)) { flag = 1; - } else if (UNEXPECTED(zephir_hash_quick_find(zobj->properties, property_info->name, property_info->name_length+1, property_info->h, (void **) &zv) == FAILURE)) { + } else if (UNEXPECTED(zend_hash_quick_find(zobj->properties, property_info->name, property_info->name_length+1, property_info->h, (void **) &zv) == FAILURE)) { flag = 2; } else { flag = 0; } - if (unlikely(flag) && zobj->properties) { + if (UNEXPECTED(flag) && zobj->properties) { if ( - (flag == 2 || zephir_hash_quick_find(zobj->properties, property_info->name, property_info->name_length+1, property_info->h, (void **) &zv) == FAILURE) + (flag == 2 || zend_hash_quick_find(zobj->properties, property_info->name, property_info->name_length+1, property_info->h, (void **) &zv) == FAILURE) && zv && *zv ) { flag = 0; } } - if (likely(!flag)) { + if (EXPECTED(!flag)) { EG(scope) = old_scope; return *zv; } @@ -7130,7 +6812,7 @@ static int zephir_return_property_quick(zval *return_value, zval **return_value_ zend_property_info *property_info; zend_class_entry *ce, *old_scope; - if (likely(Z_TYPE_P(object) == IS_OBJECT)) { + if (EXPECTED(Z_TYPE_P(object) == IS_OBJECT)) { ce = Z_OBJCE_P(object); if (ce->parent) { @@ -7142,7 +6824,7 @@ static int zephir_return_property_quick(zval *return_value, zval **return_value_ zobj = zend_objects_get_address(object TSRMLS_CC); - if (zephir_hash_quick_find(&ce->properties_info, property_name, property_length + 1, key, (void **) &property_info) == SUCCESS) { + if (zend_hash_quick_find(&ce->properties_info, property_name, property_length + 1, key, (void **) &property_info) == SUCCESS) { int flag; if (EXPECTED((property_info->flags & ZEND_ACC_STATIC) == 0) && property_info->offset >= 0) { if (zobj->properties) { @@ -7154,22 +6836,22 @@ static int zephir_return_property_quick(zval *return_value, zval **return_value_ } } else if (UNEXPECTED(!zobj->properties)) { flag = 1; - } else if (UNEXPECTED(zephir_hash_quick_find(zobj->properties, property_info->name, property_info->name_length+1, property_info->h, (void **) &zv) == FAILURE)) { + } else if (UNEXPECTED(zend_hash_quick_find(zobj->properties, property_info->name, property_info->name_length+1, property_info->h, (void **) &zv) == FAILURE)) { flag = 2; } else { flag = 0; } - if (unlikely(flag) && zobj->properties) { + if (UNEXPECTED(flag) && zobj->properties) { if ( - (flag == 2 || zephir_hash_quick_find(zobj->properties, property_info->name, property_info->name_length+1, property_info->h, (void **) &zv) == FAILURE) + (flag == 2 || zend_hash_quick_find(zobj->properties, property_info->name, property_info->name_length+1, property_info->h, (void **) &zv) == FAILURE) && zv && *zv ) { flag = 0; } } - if (likely(!flag)) { + if (EXPECTED(!flag)) { EG(scope) = old_scope; if (return_value_ptr) { @@ -7202,7 +6884,7 @@ static int zephir_return_property(zval *return_value, zval **return_value_ptr, z static int zephir_read_property_zval(zval **result, zval *object, zval *property, int flags TSRMLS_DC) { - if (unlikely(Z_TYPE_P(property) != IS_STRING)) { + if (UNEXPECTED(Z_TYPE_P(property) != IS_STRING)) { if ((flags & PH_NOISY) == PH_NOISY) { php_error_docref(NULL TSRMLS_CC, E_NOTICE, "Cannot access empty property %d", Z_TYPE_P(property)); @@ -7301,7 +6983,7 @@ static int zephir_update_property_this_quick(zval *object, const char *property_ zend_class_entry *ce, *old_scope; - if (unlikely(Z_TYPE_P(object) != IS_OBJECT)) { + if (UNEXPECTED(Z_TYPE_P(object) != IS_OBJECT)) { php_error_docref(NULL TSRMLS_CC, E_WARNING, "Attempt to assign property of non-object"); return FAILURE; } @@ -7321,11 +7003,11 @@ static int zephir_update_property_this_quick(zval *object, const char *property_ zobj = zend_objects_get_address(object TSRMLS_CC); - if (likely(zephir_hash_quick_find(&ce->properties_info, property_name, property_length + 1, key, (void **) &property_info) == SUCCESS)) { + if (EXPECTED(zend_hash_quick_find(&ce->properties_info, property_name, property_length + 1, key, (void **) &property_info) == SUCCESS)) { assert(property_info != NULL); /** This is as zend_std_write_property, but we're not interesed in validate properties visibility */ - if (property_info->offset >= 0 ? (zobj->properties ? ((variable_ptr = (zval**) zobj->properties_table[property_info->offset]) != NULL) : (*(variable_ptr = &zobj->properties_table[property_info->offset]) != NULL)) : (EXPECTED(zobj->properties != NULL) && EXPECTED(zephir_hash_quick_find(zobj->properties, property_info->name, property_info->name_length + 1, property_info->h, (void **) &variable_ptr) == SUCCESS))) { + if (property_info->offset >= 0 ? (zobj->properties ? ((variable_ptr = (zval**) zobj->properties_table[property_info->offset]) != NULL) : (*(variable_ptr = &zobj->properties_table[property_info->offset]) != NULL)) : (EXPECTED(zobj->properties != NULL) && EXPECTED(zend_hash_quick_find(zobj->properties, property_info->name, property_info->name_length + 1, property_info->h, (void **) &variable_ptr) == SUCCESS))) { if (EXPECTED(*variable_ptr != value)) { @@ -7503,7 +7185,7 @@ static int zephir_update_property_array_string(zval *object, char *property, uns zval *tmp; int separated = 0; - if (likely(Z_TYPE_P(object) == IS_OBJECT)) { + if (EXPECTED(Z_TYPE_P(object) == IS_OBJECT)) { zephir_read_property(&tmp, object, property, property_length, PH_NOISY_CC); @@ -7692,7 +7374,7 @@ static int zephir_method_quick_exists_ex(const zval *object, const char *method_ zend_class_entry *ce; - if (likely(Z_TYPE_P(object) == IS_OBJECT)) { + if (EXPECTED(Z_TYPE_P(object) == IS_OBJECT)) { ce = Z_OBJCE_P(object); } else { if (Z_TYPE_P(object) == IS_STRING) { @@ -7703,7 +7385,7 @@ static int zephir_method_quick_exists_ex(const zval *object, const char *method_ } while (ce) { - if (zephir_hash_quick_exists(&ce->function_table, method_name, method_len, hash)) { + if (zend_hash_quick_exists(&ce->function_table, method_name, method_len, hash)) { return SUCCESS; } ce = ce->parent; @@ -7942,7 +7624,7 @@ static int zephir_read_class_property(zval **result, int type, const char *prope type &= ZEND_FETCH_CLASS_MASK; ce = zend_fetch_class(NULL, 0, type TSRMLS_CC); - if (likely(ce != NULL)) { + if (EXPECTED(ce != NULL)) { return zephir_read_static_property_ce(result, ce, property, len TSRMLS_CC); } @@ -8007,7 +7689,7 @@ static int zephir_create_instance_params(zval *return_value, const zval *class_n zval **item; int i = 0; - if (likely(param_count) <= 10) { + if (EXPECTED(param_count <= 10)) { params_ptr = static_params; } else { params_arr = emalloc(param_count * sizeof(zval*)); @@ -8027,7 +7709,7 @@ static int zephir_create_instance_params(zval *return_value, const zval *class_n outcome = zephir_call_class_method_aparams(NULL, ce, zephir_fcall_method, return_value, SL("__construct"), NULL, 0, param_count, params_ptr TSRMLS_CC); - if (unlikely(params_arr != NULL)) { + if (UNEXPECTED(params_arr != NULL)) { efree(params_arr); } } @@ -8139,7 +7821,7 @@ static int zephir_fetch_property(zval **result, zval *object, const char *proper static int zephir_fetch_property_zval(zval **result, zval *object, zval *property, int silent TSRMLS_DC) { - if (unlikely(Z_TYPE_P(property) != IS_STRING)) { + if (UNEXPECTED(Z_TYPE_P(property) != IS_STRING)) { *result = ZEPHIR_GLOBAL(global_null); Z_ADDREF_P(*result); return 0; @@ -8176,6 +7858,25 @@ static int zephir_create_closure_ex(zval *return_value, zval *this_ptr, zend_cla +static zval zephir_get_current_key_w(const HashTable *hash_table, HashPosition *hash_position) +{ + Bucket *p; + zval result; + + INIT_ZVAL(result); + p = hash_position ? (*hash_position) : hash_table->pInternalPointer; + + if (p) { + if (p->nKeyLength) { + ZVAL_STRINGL(&result, (char *) p->arKey, p->nKeyLength - 1, 0); + } else { + ZVAL_LONG(&result, p->h); + } + } + + return result; +} + static int zephir_array_isset_fetch(zval **fetched, const zval *arr, zval *index, int readonly TSRMLS_DC) { HashTable *h; @@ -8193,7 +7894,7 @@ static int zephir_array_isset_fetch(zval **fetched, const zval *arr, zval *index h = Z_ARRVAL_P(arr); switch (Z_TYPE_P(index)) { case IS_NULL: - result = zephir_hash_find(h, SS(""), (void**)&val); + result = zend_hash_find(h, SS(""), (void**)&val); break; case IS_DOUBLE: @@ -8238,8 +7939,8 @@ static int zephir_array_isset_quick_string_fetch(zval **fetched, zval *arr, char zval **zv; - if (likely(Z_TYPE_P(arr) == IS_ARRAY)) { - if (zephir_hash_quick_find(Z_ARRVAL_P(arr), index, index_length, key, (void**) &zv) == SUCCESS) { + if (EXPECTED(Z_TYPE_P(arr) == IS_ARRAY)) { + if (zend_hash_quick_find(Z_ARRVAL_P(arr), index, index_length, key, (void**) &zv) == SUCCESS) { *fetched = *zv; if (!readonly) { Z_ADDREF_P(*fetched); @@ -8264,7 +7965,7 @@ static int zephir_array_isset_long_fetch(zval **fetched, zval *arr, unsigned lon zval **zv; - if (likely(Z_TYPE_P(arr) == IS_ARRAY)) { + if (EXPECTED(Z_TYPE_P(arr) == IS_ARRAY)) { if (zend_hash_index_find(Z_ARRVAL_P(arr), index, (void**)&zv) == SUCCESS) { *fetched = *zv; if (!readonly) { @@ -8292,7 +7993,7 @@ static int ZEPHIR_FASTCALL zephir_array_isset(const zval *arr, zval *index) { h = Z_ARRVAL_P(arr); switch (Z_TYPE_P(index)) { case IS_NULL: - return zephir_hash_exists(h, SS("")); + return zend_hash_exists(h, SS("")); case IS_DOUBLE: return zend_hash_index_exists(h, (ulong)Z_DVAL_P(index)); @@ -8318,7 +8019,7 @@ static int ZEPHIR_FASTCALL zephir_array_isset_string(const zval *arr, const char static int ZEPHIR_FASTCALL zephir_array_isset_quick_string(const zval *arr, const char *index, uint index_length, unsigned long key) { - if (likely(Z_TYPE_P(arr) == IS_ARRAY)) { + if (EXPECTED(Z_TYPE_P(arr) == IS_ARRAY)) { return zend_hash_quick_exists(Z_ARRVAL_P(arr), index, index_length, key); } @@ -8327,7 +8028,7 @@ static int ZEPHIR_FASTCALL zephir_array_isset_quick_string(const zval *arr, cons static int ZEPHIR_FASTCALL zephir_array_isset_long(const zval *arr, unsigned long index) { - if (likely(Z_TYPE_P(arr) == IS_ARRAY)) { + if (EXPECTED(Z_TYPE_P(arr) == IS_ARRAY)) { return zend_hash_index_exists(Z_ARRVAL_P(arr), index); } @@ -8612,7 +8313,7 @@ static int zephir_array_fetch(zval **return_value, zval *arr, zval *index, int f ht = Z_ARRVAL_P(arr); switch (Z_TYPE_P(index)) { case IS_NULL: - result = zephir_hash_find(ht, SS(""), (void**) &zv); + result = zend_hash_find(ht, SS(""), (void**) &zv); sidx = ""; break; @@ -8669,8 +8370,8 @@ static int zephir_array_fetch_quick_string(zval **return_value, zval *arr, const zval **zv; - if (likely(Z_TYPE_P(arr) == IS_ARRAY)) { - if (zephir_hash_quick_find(Z_ARRVAL_P(arr), index, index_length, key, (void**) &zv) == SUCCESS) { + if (EXPECTED(Z_TYPE_P(arr) == IS_ARRAY)) { + if (zend_hash_quick_find(Z_ARRVAL_P(arr), index, index_length, key, (void**) &zv) == SUCCESS) { *return_value = *zv; if ((flags & PH_READONLY) != PH_READONLY) { Z_ADDREF_PP(return_value); @@ -8702,7 +8403,7 @@ static int zephir_array_fetch_long(zval **return_value, zval *arr, unsigned long zval **zv; - if (likely(Z_TYPE_P(arr) == IS_ARRAY)) { + if (EXPECTED(Z_TYPE_P(arr) == IS_ARRAY)) { if (zend_hash_index_find(Z_ARRVAL_P(arr), index, (void**)&zv) == SUCCESS) { *return_value = *zv; if ((flags & PH_READONLY) != PH_READONLY) { @@ -8865,7 +8566,7 @@ static void zephir_array_merge_recursive_n(zval **a1, zval *a2 TSRMLS_DC) static void zephir_array_unshift(zval *arr, zval *arg TSRMLS_DC) { - if (likely(Z_TYPE_P(arr) == IS_ARRAY)) { + if (EXPECTED(Z_TYPE_P(arr) == IS_ARRAY)) { zval** args[1] = { &arg }; @@ -8897,7 +8598,7 @@ static void zephir_array_keys(zval *return_value, zval *input TSRMLS_DC) ulong num_key; HashPosition pos; - if (likely(Z_TYPE_P(input) == IS_ARRAY)) { + if (EXPECTED(Z_TYPE_P(input) == IS_ARRAY)) { array_init_size(return_value, zend_hash_num_elements(Z_ARRVAL_P(input))); @@ -8927,7 +8628,7 @@ static void zephir_array_keys(zval *return_value, zval *input TSRMLS_DC) static void zephir_array_values(zval *return_value, zval *arr) { - if (likely(Z_TYPE_P(arr) == IS_ARRAY)) { + if (EXPECTED(Z_TYPE_P(arr) == IS_ARRAY)) { zval **entry; HashPosition pos; @@ -8968,7 +8669,7 @@ static int zephir_array_key_exists(zval *arr, zval *key TSRMLS_DC) static int zephir_array_is_associative(zval *arr) { - if (likely(Z_TYPE_P(arr) == IS_ARRAY)) { + if (EXPECTED(Z_TYPE_P(arr) == IS_ARRAY)) { HashPosition pos; zval **entry; char *skey; @@ -9202,7 +8903,7 @@ static void ZEPHIR_FASTCALL zephir_create_array(zval *return_value, uint size, i if (size > 0) { hashTable = (HashTable *) emalloc(sizeof(HashTable)); - zephir_hash_init(hashTable, size, NULL, ZVAL_PTR_DTOR, 0); + zend_hash_init(hashTable, size, NULL, ZVAL_PTR_DTOR, 0); if (initialize) { @@ -9229,9 +8930,6 @@ static void ZEPHIR_FASTCALL zephir_create_array(zval *return_value, uint size, i - - - #if PHP_VERSION_ID >= 50600 #if ZEND_MODULE_API_NO >= 20141001 @@ -10656,7 +10354,7 @@ static void zephir_fast_strtolower(zval *return_value, zval *str){ } static void zephir_strtolower_inplace(zval *s) { - if (likely(Z_TYPE_P(s) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(s) == IS_STRING)) { php_strtolower(Z_STRVAL_P(s), Z_STRLEN_P(s)); } } @@ -10769,7 +10467,7 @@ static void zephir_camelize(zval *return_value, const zval *str, const zval *del smart_str camelize_str = {0}; char *marker, ch, *delim; - if (unlikely(Z_TYPE_P(str) != IS_STRING)) { + if (UNEXPECTED(Z_TYPE_P(str) != IS_STRING)) { zend_error(E_WARNING, "Invalid arguments supplied for camelize()"); RETURN_EMPTY_STRING(); } @@ -10863,7 +10561,7 @@ static void zephir_uncamelize(zval *return_value, const zval *str, const zval *d static void zephir_fast_explode(zval *return_value, zval *delimiter, zval *str, long limit TSRMLS_DC) { - if (unlikely(Z_TYPE_P(str) != IS_STRING || Z_TYPE_P(delimiter) != IS_STRING)) { + if (UNEXPECTED(Z_TYPE_P(str) != IS_STRING || Z_TYPE_P(delimiter) != IS_STRING)) { zend_error(E_WARNING, "Invalid arguments supplied for explode()"); RETURN_EMPTY_STRING(); } @@ -10876,7 +10574,7 @@ static void zephir_fast_explode_str(zval *return_value, const char *delimiter, i zval delimiter_zval; - if (unlikely(Z_TYPE_P(str) != IS_STRING)) { + if (UNEXPECTED(Z_TYPE_P(str) != IS_STRING)) { zend_error(E_WARNING, "Invalid arguments supplied for explode()"); RETURN_EMPTY_STRING(); } @@ -10927,7 +10625,7 @@ static void zephir_fast_strpos(zval *return_value, const zval *haystack, const z const char *found = NULL; - if (unlikely(Z_TYPE_P(haystack) != IS_STRING || Z_TYPE_P(needle) != IS_STRING)) { + if (UNEXPECTED(Z_TYPE_P(haystack) != IS_STRING || Z_TYPE_P(needle) != IS_STRING)) { ZVAL_NULL(return_value); zend_error(E_WARNING, "Invalid arguments supplied for strpos()"); return; @@ -10959,7 +10657,7 @@ static void zephir_fast_strpos_str(zval *return_value, const zval *haystack, cha const char *found = NULL; - if (unlikely(Z_TYPE_P(haystack) != IS_STRING)) { + if (UNEXPECTED(Z_TYPE_P(haystack) != IS_STRING)) { ZVAL_NULL(return_value); zend_error(E_WARNING, "Invalid arguments supplied for strpos()"); return; @@ -10979,7 +10677,7 @@ static void zephir_fast_stripos_str(zval *return_value, zval *haystack, char *ne const char *found = NULL; char *needle_dup, *haystack_dup; - if (unlikely(Z_TYPE_P(haystack) != IS_STRING)) { + if (UNEXPECTED(Z_TYPE_P(haystack) != IS_STRING)) { ZVAL_NULL(return_value); zend_error(E_WARNING, "Invalid arguments supplied for stripos()"); return; @@ -11778,7 +11476,7 @@ static int zephir_json_decode(zval *return_value, zval **return_value_ptr, zval zval copy; int use_copy = 0; - if (unlikely(Z_TYPE_P(v) != IS_STRING)) { + if (UNEXPECTED(Z_TYPE_P(v) != IS_STRING)) { zend_make_printable_zval(v, ©, &use_copy); if (use_copy) { v = © @@ -11787,7 +11485,7 @@ static int zephir_json_decode(zval *return_value, zval **return_value_ptr, zval php_json_decode(return_value, Z_STRVAL_P(v), Z_STRLEN_P(v), assoc, 512 /* JSON_PARSER_DEFAULT_DEPTH */ TSRMLS_CC); - if (unlikely(use_copy)) { + if (UNEXPECTED(use_copy)) { zval_dtor(©); } @@ -11832,7 +11530,7 @@ static void zephir_lcfirst(zval *return_value, zval *s) { char *c; int use_copy = 0; - if (unlikely(Z_TYPE_P(s) != IS_STRING)) { + if (UNEXPECTED(Z_TYPE_P(s) != IS_STRING)) { zend_make_printable_zval(s, ©, &use_copy); if (use_copy) { s = © @@ -11848,7 +11546,7 @@ static void zephir_lcfirst(zval *return_value, zval *s) { *c = tolower((unsigned char)*c); } - if (unlikely(use_copy)) { + if (UNEXPECTED(use_copy)) { zval_dtor(©); } } @@ -11859,7 +11557,7 @@ static void zephir_ucfirst(zval *return_value, zval *s) { char *c; int use_copy = 0; - if (unlikely(Z_TYPE_P(s) != IS_STRING)) { + if (UNEXPECTED(Z_TYPE_P(s) != IS_STRING)) { zend_make_printable_zval(s, ©, &use_copy); if (use_copy) { s = © @@ -11875,7 +11573,7 @@ static void zephir_ucfirst(zval *return_value, zval *s) { *c = toupper((unsigned char)*c); } - if (unlikely(use_copy)) { + if (UNEXPECTED(use_copy)) { zval_dtor(©); } } @@ -11916,7 +11614,7 @@ static void zephir_htmlspecialchars(zval *return_value, zval *string, zval *quot int qs, use_copy = 0; size_t escaped_len; - if (unlikely(Z_TYPE_P(string) != IS_STRING)) { + if (UNEXPECTED(Z_TYPE_P(string) != IS_STRING)) { zend_make_printable_zval(string, ©, &use_copy); if (use_copy) { string = © @@ -11929,7 +11627,7 @@ static void zephir_htmlspecialchars(zval *return_value, zval *string, zval *quot escaped = php_escape_html_entities_ex((unsigned char *)(Z_STRVAL_P(string)), Z_STRLEN_P(string), &escaped_len, 0, qs, cs, 1 TSRMLS_CC); ZVAL_STRINGL(return_value, escaped, escaped_len, 0); - if (unlikely(use_copy)) { + if (UNEXPECTED(use_copy)) { zval_dtor(©); } } @@ -11941,7 +11639,7 @@ static void zephir_htmlentities(zval *return_value, zval *string, zval *quoting, int qs, use_copy = 0; size_t escaped_len; - if (unlikely(Z_TYPE_P(string) != IS_STRING)) { + if (UNEXPECTED(Z_TYPE_P(string) != IS_STRING)) { zend_make_printable_zval(string, ©, &use_copy); if (use_copy) { string = © @@ -11954,7 +11652,7 @@ static void zephir_htmlentities(zval *return_value, zval *string, zval *quoting, escaped = php_escape_html_entities_ex((unsigned char *)(Z_STRVAL_P(string)), Z_STRLEN_P(string), &escaped_len, 1, qs, cs, 1 TSRMLS_CC); ZVAL_STRINGL(return_value, escaped, escaped_len, 0); - if (unlikely(use_copy)) { + if (UNEXPECTED(use_copy)) { zval_dtor(©); } } @@ -11980,7 +11678,7 @@ static void zephir_date(zval *return_value, zval *format, zval *timestamp TSRMLS int use_copy = 0; char *formatted; - if (unlikely(Z_TYPE_P(format) != IS_STRING)) { + if (UNEXPECTED(Z_TYPE_P(format) != IS_STRING)) { zend_make_printable_zval(format, ©, &use_copy); if (use_copy) { format = © @@ -11992,7 +11690,7 @@ static void zephir_date(zval *return_value, zval *format, zval *timestamp TSRMLS formatted = php_format_date(Z_STRVAL_P(format), Z_STRLEN_P(format), ts, 1 TSRMLS_CC); ZVAL_STRING(return_value, formatted, 0); - if (unlikely(use_copy)) { + if (UNEXPECTED(use_copy)) { zval_dtor(©); } } @@ -12002,7 +11700,7 @@ static void zephir_addslashes(zval *return_value, zval *str TSRMLS_DC) zval copy; int use_copy = 0; - if (unlikely(Z_TYPE_P(str) != IS_STRING)) { + if (UNEXPECTED(Z_TYPE_P(str) != IS_STRING)) { zend_make_printable_zval(str, ©, &use_copy); if (use_copy) { str = © @@ -12011,7 +11709,7 @@ static void zephir_addslashes(zval *return_value, zval *str TSRMLS_DC) ZVAL_STRING(return_value, php_addslashes(Z_STRVAL_P(str), Z_STRLEN_P(str), &Z_STRLEN_P(return_value), 0 TSRMLS_CC), 0); - if (unlikely(use_copy)) { + if (UNEXPECTED(use_copy)) { zval_dtor(©); } } @@ -12021,7 +11719,7 @@ static void zephir_stripslashes(zval *return_value, zval *str TSRMLS_DC) zval copy; int use_copy = 0; - if (unlikely(Z_TYPE_P(str) != IS_STRING)) { + if (UNEXPECTED(Z_TYPE_P(str) != IS_STRING)) { zend_make_printable_zval(str, ©, &use_copy); if (use_copy) { str = © @@ -12031,7 +11729,7 @@ static void zephir_stripslashes(zval *return_value, zval *str TSRMLS_DC) ZVAL_STRINGL(return_value, Z_STRVAL_P(str), Z_STRLEN_P(str), 1); php_stripslashes(Z_STRVAL_P(return_value), &Z_STRLEN_P(return_value) TSRMLS_CC); - if (unlikely(use_copy)) { + if (UNEXPECTED(use_copy)) { zval_dtor(©); } } @@ -12042,7 +11740,7 @@ static void zephir_stripcslashes(zval *return_value, zval *str TSRMLS_DC) zval copy; int use_copy = 0; - if (unlikely(Z_TYPE_P(str) != IS_STRING)) { + if (UNEXPECTED(Z_TYPE_P(str) != IS_STRING)) { zend_make_printable_zval(str, ©, &use_copy); if (use_copy) { str = © @@ -12052,7 +11750,7 @@ static void zephir_stripcslashes(zval *return_value, zval *str TSRMLS_DC) ZVAL_STRINGL(return_value, Z_STRVAL_P(str), Z_STRLEN_P(str), 1); php_stripcslashes(Z_STRVAL_P(return_value), &Z_STRLEN_P(return_value)); - if (unlikely(use_copy)) { + if (UNEXPECTED(use_copy)) { zval_dtor(©); } } @@ -12081,6 +11779,35 @@ static int zephir_hash_equals(const zval *known_zval, const zval *user_zval) return (int) (result == 0); } +static void zephir_string_to_hex(zval *return_value, zval *var) +{ + int use_copy = 0; + zval copy; + size_t i; + char *s; + char *res; + + if (Z_TYPE_P(var) != IS_STRING) { + zend_make_printable_zval(var, ©, &use_copy); + if (use_copy) { + var = © + } + } + + res = emalloc(2*Z_STRLEN_P(var) + 1); + s = Z_STRVAL_P(var); + for (i=0; iname, method_name, possible_method); - } else { - zephir_throw_exception_format(spl_ce_RuntimeException TSRMLS_CC, "Call to undefined method %s::%s()", ce->name, method_name); - } + zephir_throw_exception_format(spl_ce_RuntimeException TSRMLS_CC, "Call to undefined method %s::%s()", ce->name, method_name); break; default: @@ -13064,7 +12770,7 @@ static void zephir_eval_php(zval *str, zval *retval_ptr, char *context TSRMLS_DC static int zephir_require_ret(zval **return_value_ptr, const char *require_path TSRMLS_DC) { zend_file_handle file_handle; - int ret, use_ret; + int ret; zend_op_array *new_op_array; #ifndef ZEPHIR_RELEASE @@ -13080,8 +12786,6 @@ static int zephir_require_ret(zval **return_value_ptr, const char *require_path return FAILURE; } - use_ret = !!return_value_ptr; - file_handle.filename = require_path; file_handle.free_filename = 0; file_handle.type = ZEND_HANDLE_FILENAME; @@ -13475,7 +13179,7 @@ static void zephir_file_put_contents(zval *return_value, zval *filename, zval *d static void zephir_is_dir(zval *return_value, zval *path TSRMLS_DC) { - if (likely(Z_TYPE_P(path) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(path) == IS_STRING)) { php_stat(Z_STRVAL_P(path), (php_stat_len)(Z_STRLEN_P(path)), FS_IS_DIR, return_value TSRMLS_CC); } else { ZVAL_FALSE(return_value); @@ -13484,12 +13188,12 @@ static void zephir_is_dir(zval *return_value, zval *path TSRMLS_DC) static void zephir_unlink(zval *return_value, zval *path TSRMLS_DC) { - if (likely(Z_TYPE_P(path) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(path) == IS_STRING)) { php_stream_context *context; php_stream_wrapper *wrapper; zval *zctx = NULL; - if (unlikely(strlen(Z_STRVAL_P(path)) != Z_STRLEN_P(path))) { + if (UNEXPECTED(strlen(Z_STRVAL_P(path)) != Z_STRLEN_P(path))) { ZVAL_FALSE(return_value); return; } @@ -13512,7 +13216,7 @@ static void zephir_unlink(zval *return_value, zval *path TSRMLS_DC) static void zephir_filemtime(zval *return_value, zval *path TSRMLS_DC) { - if (likely(Z_TYPE_P(path) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(path) == IS_STRING)) { php_stat(Z_STRVAL_P(path), (php_stat_len)(Z_STRLEN_P(path)), FS_MTIME, return_value TSRMLS_CC); } else { ZVAL_FALSE(return_value); @@ -13521,7 +13225,7 @@ static void zephir_filemtime(zval *return_value, zval *path TSRMLS_DC) static void zephir_basename(zval *return_value, zval *path TSRMLS_DC) { - if (likely(Z_TYPE_P(path) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(path) == IS_STRING)) { char *ret; size_t ret_len; @@ -16982,6 +16686,16 @@ static void zephir_var_dump(zval **var TSRMLS_DC) { php_var_dump(var, 1 TSRMLS_CC); } +static void zephir_get_defined_vars(zval *return_value TSRMLS_DC) +{ + if (!EG(active_symbol_table)) { + zend_rebuild_symbol_table(TSRMLS_C); + } + + array_init_size(return_value, zend_hash_num_elements(EG(active_symbol_table))); + zend_hash_copy(Z_ARRVAL_P(return_value), EG(active_symbol_table), (copy_ctor_func_t)zval_add_ref, NULL, sizeof(zval *)); +} + @@ -17377,8 +17091,8 @@ if (get_as_float && ZEPHIR_IS_TRUE(get_as_float)) { -static void zephir_exit_empty() { - TSRMLS_FETCH(); +static void zephir_exit_empty() +{ zend_bailout(); } @@ -17463,76 +17177,6 @@ static int phalcon_cssmin(zval *return_value, zval *style TSRMLS_DC); #endif /* PHALCON_ASSETS_FILTERS_CSSMINIFIER_H */ -/* jsmin.c - 2013-03-29 - -Copyright (c) 2002 Douglas Crockford (www.crockford.com) - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to deal in -the Software without restriction, including without limitation the rights to -use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies -of the Software, and to permit persons to whom the Software is furnished to do -so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -The Software shall be used for Good, not Evil. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. -*/ - -#ifndef PHALCON_ASSETS_FILTERS_CSSMINIFIER_H -#define PHALCON_ASSETS_FILTERS_CSSMINIFIER_H - - -static int phalcon_cssmin(zval *return_value, zval *style TSRMLS_DC); - -#endif /* PHALCON_ASSETS_FILTERS_CSSMINIFIER_H */ - - -/* jsmin.c - 2013-03-29 - -Copyright (c) 2002 Douglas Crockford (www.crockford.com) - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to deal in -the Software without restriction, including without limitation the rights to -use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies -of the Software, and to permit persons to whom the Software is furnished to do -so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -The Software shall be used for Good, not Evil. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. -*/ - -#ifndef PHALCON_ASSETS_FILTERS_JSMINIFIER_H -#define PHALCON_ASSETS_FILTERS_JSMINIFIER_H - - -static int phalcon_jsmin(zval *return_value, zval *script TSRMLS_DC); - -#endif /* PHALCON_ASSETS_FILTERS_JSMINIFIER_H */ - - #ifdef HAVE_CONFIG_H #endif @@ -17746,11 +17390,11 @@ static PHP_METHOD(Phalcon_Application, getModule) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -17783,11 +17427,11 @@ static PHP_METHOD(Phalcon_Application, setDefaultModule) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &defaultModule_param); - if (unlikely(Z_TYPE_P(defaultModule_param) != IS_STRING && Z_TYPE_P(defaultModule_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(defaultModule_param) != IS_STRING && Z_TYPE_P(defaultModule_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'defaultModule' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(defaultModule_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(defaultModule_param) == IS_STRING)) { zephir_get_strval(defaultModule, defaultModule_param); } else { ZEPHIR_INIT_VAR(defaultModule); @@ -17875,8 +17519,8 @@ static PHP_METHOD(Phalcon_Config, __construct) { zephir_is_iterable(arrayConfig, &_1, &_0, 0, 0, "phalcon/config.zep", 63); for ( - ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS - ; zephir_hash_move_forward_ex(_1, &_0) + ; zend_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS + ; zend_hash_move_forward_ex(_1, &_0) ) { ZEPHIR_GET_HMKEY(key, _1, _0); ZEPHIR_GET_HVALUE(value, _2); @@ -18029,8 +17673,8 @@ static PHP_METHOD(Phalcon_Config, toArray) { zephir_check_call_status(); zephir_is_iterable(_0, &_2, &_1, 0, 0, "phalcon/config.zep", 196); for ( - ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS - ; zephir_hash_move_forward_ex(_2, &_1) + ; zend_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS + ; zend_hash_move_forward_ex(_2, &_1) ) { ZEPHIR_GET_HMKEY(key, _2, _1); ZEPHIR_GET_HVALUE(value, _3); @@ -18110,8 +17754,8 @@ static PHP_METHOD(Phalcon_Config, _merge) { zephir_check_call_status(); zephir_is_iterable(_0, &_2, &_1, 0, 0, "phalcon/config.zep", 261); for ( - ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS - ; zephir_hash_move_forward_ex(_2, &_1) + ; zend_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS + ; zend_hash_move_forward_ex(_2, &_1) ) { ZEPHIR_GET_HMKEY(key, _2, _1); ZEPHIR_GET_HVALUE(value, _3); @@ -18192,7 +17836,7 @@ static PHP_METHOD(Phalcon_Crypt, setPadding) { zephir_fetch_params(0, 1, 0, &scheme_param); - if (unlikely(Z_TYPE_P(scheme_param) != IS_LONG)) { + if (UNEXPECTED(Z_TYPE_P(scheme_param) != IS_LONG)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'scheme' must be a int") TSRMLS_CC); RETURN_NULL(); } @@ -18214,11 +17858,11 @@ static PHP_METHOD(Phalcon_Crypt, setCipher) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &cipher_param); - if (unlikely(Z_TYPE_P(cipher_param) != IS_STRING && Z_TYPE_P(cipher_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(cipher_param) != IS_STRING && Z_TYPE_P(cipher_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'cipher' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(cipher_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(cipher_param) == IS_STRING)) { zephir_get_strval(cipher, cipher_param); } else { ZEPHIR_INIT_VAR(cipher); @@ -18247,11 +17891,11 @@ static PHP_METHOD(Phalcon_Crypt, setKey) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &key_param); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { ZEPHIR_INIT_VAR(key); @@ -18284,22 +17928,22 @@ static PHP_METHOD(Phalcon_Crypt, _cryptPadText) { zephir_fetch_params(1, 4, 0, &text_param, &mode_param, &blockSize_param, &paddingType_param); zephir_get_strval(text, text_param); - if (unlikely(Z_TYPE_P(mode_param) != IS_STRING && Z_TYPE_P(mode_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(mode_param) != IS_STRING && Z_TYPE_P(mode_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'mode' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(mode_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(mode_param) == IS_STRING)) { zephir_get_strval(mode, mode_param); } else { ZEPHIR_INIT_VAR(mode); ZVAL_EMPTY_STRING(mode); } - if (unlikely(Z_TYPE_P(blockSize_param) != IS_LONG)) { + if (UNEXPECTED(Z_TYPE_P(blockSize_param) != IS_LONG)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'blockSize' must be a int") TSRMLS_CC); RETURN_MM_NULL(); } blockSize = Z_LVAL_P(blockSize_param); - if (unlikely(Z_TYPE_P(paddingType_param) != IS_LONG)) { + if (UNEXPECTED(Z_TYPE_P(paddingType_param) != IS_LONG)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'paddingType' must be a int") TSRMLS_CC); RETURN_MM_NULL(); } @@ -18453,22 +18097,22 @@ static PHP_METHOD(Phalcon_Crypt, _cryptUnpadText) { zephir_fetch_params(1, 4, 0, &text_param, &mode_param, &blockSize_param, &paddingType_param); zephir_get_strval(text, text_param); - if (unlikely(Z_TYPE_P(mode_param) != IS_STRING && Z_TYPE_P(mode_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(mode_param) != IS_STRING && Z_TYPE_P(mode_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'mode' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(mode_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(mode_param) == IS_STRING)) { zephir_get_strval(mode, mode_param); } else { ZEPHIR_INIT_VAR(mode); ZVAL_EMPTY_STRING(mode); } - if (unlikely(Z_TYPE_P(blockSize_param) != IS_LONG)) { + if (UNEXPECTED(Z_TYPE_P(blockSize_param) != IS_LONG)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'blockSize' must be a int") TSRMLS_CC); RETURN_MM_NULL(); } blockSize = Z_LVAL_P(blockSize_param); - if (unlikely(Z_TYPE_P(paddingType_param) != IS_LONG)) { + if (UNEXPECTED(Z_TYPE_P(paddingType_param) != IS_LONG)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'paddingType' must be a int") TSRMLS_CC); RETURN_MM_NULL(); } @@ -18670,11 +18314,11 @@ static PHP_METHOD(Phalcon_Crypt, encrypt) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &text_param, &key_param); - if (unlikely(Z_TYPE_P(text_param) != IS_STRING && Z_TYPE_P(text_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(text_param) != IS_STRING && Z_TYPE_P(text_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'text' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(text_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(text_param) == IS_STRING)) { zephir_get_strval(text, text_param); } else { ZEPHIR_INIT_VAR(text); @@ -18684,11 +18328,11 @@ static PHP_METHOD(Phalcon_Crypt, encrypt) { ZEPHIR_INIT_VAR(key); ZVAL_EMPTY_STRING(key); } else { - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { ZEPHIR_INIT_VAR(key); @@ -18782,11 +18426,11 @@ static PHP_METHOD(Phalcon_Crypt, decrypt) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &text_param, &key); - if (unlikely(Z_TYPE_P(text_param) != IS_STRING && Z_TYPE_P(text_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(text_param) != IS_STRING && Z_TYPE_P(text_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'text' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(text_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(text_param) == IS_STRING)) { zephir_get_strval(text, text_param); } else { ZEPHIR_INIT_VAR(text); @@ -18880,11 +18524,11 @@ static PHP_METHOD(Phalcon_Crypt, encryptBase64) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &text_param, &key, &safe_param); - if (unlikely(Z_TYPE_P(text_param) != IS_STRING && Z_TYPE_P(text_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(text_param) != IS_STRING && Z_TYPE_P(text_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'text' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(text_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(text_param) == IS_STRING)) { zephir_get_strval(text, text_param); } else { ZEPHIR_INIT_VAR(text); @@ -18896,7 +18540,7 @@ static PHP_METHOD(Phalcon_Crypt, encryptBase64) { if (!safe_param) { safe = 0; } else { - if (unlikely(Z_TYPE_P(safe_param) != IS_BOOL)) { + if (UNEXPECTED(Z_TYPE_P(safe_param) != IS_BOOL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'safe' must be a bool") TSRMLS_CC); RETURN_MM_NULL(); } @@ -18936,11 +18580,11 @@ static PHP_METHOD(Phalcon_Crypt, decryptBase64) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &text_param, &key, &safe_param); - if (unlikely(Z_TYPE_P(text_param) != IS_STRING && Z_TYPE_P(text_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(text_param) != IS_STRING && Z_TYPE_P(text_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'text' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(text_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(text_param) == IS_STRING)) { zephir_get_strval(text, text_param); } else { ZEPHIR_INIT_VAR(text); @@ -18952,7 +18596,7 @@ static PHP_METHOD(Phalcon_Crypt, decryptBase64) { if (!safe_param) { safe = 0; } else { - if (unlikely(Z_TYPE_P(safe_param) != IS_BOOL)) { + if (UNEXPECTED(Z_TYPE_P(safe_param) != IS_BOOL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'safe' must be a bool") TSRMLS_CC); RETURN_MM_NULL(); } @@ -19146,11 +18790,11 @@ static PHP_METHOD(Phalcon_Debug, setUri) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &uri_param); - if (unlikely(Z_TYPE_P(uri_param) != IS_STRING && Z_TYPE_P(uri_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(uri_param) != IS_STRING && Z_TYPE_P(uri_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'uri' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(uri_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(uri_param) == IS_STRING)) { zephir_get_strval(uri, uri_param); } else { ZEPHIR_INIT_VAR(uri); @@ -19417,8 +19061,8 @@ static PHP_METHOD(Phalcon_Debug, _getArrayDump) { array_init(dump); zephir_is_iterable(argument, &_2, &_1, 0, 0, "phalcon/debug.zep", 189); for ( - ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS - ; zephir_hash_move_forward_ex(_2, &_1) + ; zend_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS + ; zend_hash_move_forward_ex(_2, &_1) ) { ZEPHIR_GET_HMKEY(k, _2, _1); ZEPHIR_GET_HVALUE(v, _3); @@ -19705,8 +19349,8 @@ static PHP_METHOD(Phalcon_Debug, showTraceItem) { array_init(arguments); zephir_is_iterable(traceArgs, &_18$$14, &_17$$14, 0, 0, "phalcon/debug.zep", 441); for ( - ; zephir_hash_get_current_data_ex(_18$$14, (void**) &_19$$14, &_17$$14) == SUCCESS - ; zephir_hash_move_forward_ex(_18$$14, &_17$$14) + ; zend_hash_get_current_data_ex(_18$$14, (void**) &_19$$14, &_17$$14) == SUCCESS + ; zend_hash_move_forward_ex(_18$$14, &_17$$14) ) { ZEPHIR_GET_HVALUE(argument, _19$$14); ZEPHIR_CALL_METHOD(&_20$$15, this_ptr, "_getvardump", &_21, 0, argument); @@ -19936,8 +19580,8 @@ static PHP_METHOD(Phalcon_Debug, onUncaughtException) { zephir_check_call_status(); zephir_is_iterable(_10$$5, &_12$$5, &_11$$5, 0, 0, "phalcon/debug.zep", 659); for ( - ; zephir_hash_get_current_data_ex(_12$$5, (void**) &_13$$5, &_11$$5) == SUCCESS - ; zephir_hash_move_forward_ex(_12$$5, &_11$$5) + ; zend_hash_get_current_data_ex(_12$$5, (void**) &_13$$5, &_11$$5) == SUCCESS + ; zend_hash_move_forward_ex(_12$$5, &_11$$5) ) { ZEPHIR_GET_HMKEY(n, _12$$5, _11$$5); ZEPHIR_GET_HVALUE(traceItem, _13$$5); @@ -19950,8 +19594,8 @@ static PHP_METHOD(Phalcon_Debug, onUncaughtException) { zephir_concat_self_str(&html, SL("") TSRMLS_CC); zephir_is_iterable(_REQUEST, &_17$$5, &_16$$5, 0, 0, "phalcon/debug.zep", 673); for ( - ; zephir_hash_get_current_data_ex(_17$$5, (void**) &_18$$5, &_16$$5) == SUCCESS - ; zephir_hash_move_forward_ex(_17$$5, &_16$$5) + ; zend_hash_get_current_data_ex(_17$$5, (void**) &_18$$5, &_16$$5) == SUCCESS + ; zend_hash_move_forward_ex(_17$$5, &_16$$5) ) { ZEPHIR_GET_HMKEY(keyRequest, _17$$5, _16$$5); ZEPHIR_GET_HVALUE(value, _18$$5); @@ -19972,8 +19616,8 @@ static PHP_METHOD(Phalcon_Debug, onUncaughtException) { zephir_concat_self_str(&html, SL("") TSRMLS_CC); zephir_is_iterable(_SERVER, &_24$$5, &_23$$5, 0, 0, "phalcon/debug.zep", 683); for ( - ; zephir_hash_get_current_data_ex(_24$$5, (void**) &_25$$5, &_23$$5) == SUCCESS - ; zephir_hash_move_forward_ex(_24$$5, &_23$$5) + ; zend_hash_get_current_data_ex(_24$$5, (void**) &_25$$5, &_23$$5) == SUCCESS + ; zend_hash_move_forward_ex(_24$$5, &_23$$5) ) { ZEPHIR_GET_HMKEY(keyServer, _24$$5, _23$$5); ZEPHIR_GET_HVALUE(value, _25$$5); @@ -19990,8 +19634,8 @@ static PHP_METHOD(Phalcon_Debug, onUncaughtException) { zephir_check_call_status(); zephir_is_iterable(_29$$5, &_31$$5, &_30$$5, 0, 0, "phalcon/debug.zep", 693); for ( - ; zephir_hash_get_current_data_ex(_31$$5, (void**) &_32$$5, &_30$$5) == SUCCESS - ; zephir_hash_move_forward_ex(_31$$5, &_30$$5) + ; zend_hash_get_current_data_ex(_31$$5, (void**) &_32$$5, &_30$$5) == SUCCESS + ; zend_hash_move_forward_ex(_31$$5, &_30$$5) ) { ZEPHIR_GET_HMKEY(keyFile, _31$$5, _30$$5); ZEPHIR_GET_HVALUE(value, _32$$5); @@ -20012,8 +19656,8 @@ static PHP_METHOD(Phalcon_Debug, onUncaughtException) { zephir_concat_self_str(&html, SL("") TSRMLS_CC); zephir_is_iterable(dataVars, &_37$$13, &_36$$13, 0, 0, "phalcon/debug.zep", 711); for ( - ; zephir_hash_get_current_data_ex(_37$$13, (void**) &_38$$13, &_36$$13) == SUCCESS - ; zephir_hash_move_forward_ex(_37$$13, &_36$$13) + ; zend_hash_get_current_data_ex(_37$$13, (void**) &_38$$13, &_36$$13) == SUCCESS + ; zend_hash_move_forward_ex(_37$$13, &_36$$13) ) { ZEPHIR_GET_HMKEY(keyVar, _37$$13, _36$$13); ZEPHIR_GET_HVALUE(dataVar, _38$$13); @@ -20113,11 +19757,11 @@ static PHP_METHOD(Phalcon_Di, set) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 1, &name_param, &definition, &shared_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -20154,11 +19798,11 @@ static PHP_METHOD(Phalcon_Di, setShared) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &name_param, &definition); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -20182,11 +19826,11 @@ static PHP_METHOD(Phalcon_Di, remove) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -20212,11 +19856,11 @@ static PHP_METHOD(Phalcon_Di, attempt) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 1, &name_param, &definition, &shared_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -20256,11 +19900,11 @@ static PHP_METHOD(Phalcon_Di, setRaw) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &name_param, &rawDefinition); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -20283,11 +19927,11 @@ static PHP_METHOD(Phalcon_Di, getRaw) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -20323,11 +19967,11 @@ static PHP_METHOD(Phalcon_Di, getService) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -20363,11 +20007,11 @@ static PHP_METHOD(Phalcon_Di, get) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &name_param, ¶meters); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -20457,11 +20101,11 @@ static PHP_METHOD(Phalcon_Di, getShared) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &name_param, ¶meters); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -20502,11 +20146,11 @@ static PHP_METHOD(Phalcon_Di, has) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -20544,11 +20188,11 @@ static PHP_METHOD(Phalcon_Di, offsetExists) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -20571,11 +20215,11 @@ static PHP_METHOD(Phalcon_Di, offsetSet) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &name_param, &definition); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -20598,11 +20242,11 @@ static PHP_METHOD(Phalcon_Di, offsetGet) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -20624,11 +20268,11 @@ static PHP_METHOD(Phalcon_Di, offsetUnset) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -20650,11 +20294,11 @@ static PHP_METHOD(Phalcon_Di, __call) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &method_param, &arguments); - if (unlikely(Z_TYPE_P(method_param) != IS_STRING && Z_TYPE_P(method_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(method_param) != IS_STRING && Z_TYPE_P(method_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'method' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(method_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(method_param) == IS_STRING)) { zephir_get_strval(method, method_param); } else { ZEPHIR_INIT_VAR(method); @@ -21275,7 +20919,7 @@ static PHP_METHOD(Phalcon_Dispatcher, getModelBinder) { static PHP_METHOD(Phalcon_Dispatcher, dispatch) { - zval *handler = NULL, *e = NULL, *_0$$4 = NULL; + zval *handler = NULL, *e = NULL, *_0, *_1$$4 = NULL; int ZEPHIR_LAST_CALL_STATUS; ZEPHIR_MM_GROW(); @@ -21289,12 +20933,14 @@ static PHP_METHOD(Phalcon_Dispatcher, dispatch) { try_end_1: if (EG(exception)) { - ZEPHIR_CPY_WRT(e, EG(exception)); - if (zephir_instance_of_ev(e, zend_exception_get_default(TSRMLS_C) TSRMLS_CC)) { + ZEPHIR_INIT_VAR(_0); + ZEPHIR_CPY_WRT(_0, EG(exception)); + if (zephir_instance_of_ev(_0, zend_exception_get_default(TSRMLS_C) TSRMLS_CC)) { zend_clear_exception(TSRMLS_C); - ZEPHIR_CALL_METHOD(&_0$$4, this_ptr, "_handleexception", NULL, 0, e); + ZEPHIR_CPY_WRT(e, _0); + ZEPHIR_CALL_METHOD(&_1$$4, this_ptr, "_handleexception", NULL, 0, e); zephir_check_call_status(); - if (ZEPHIR_IS_FALSE_IDENTICAL(_0$$4)) { + if (ZEPHIR_IS_FALSE_IDENTICAL(_1$$4)) { RETURN_MM_BOOL(0); } zephir_throw_exception_debug(e, "phalcon/dispatcher.zep", 413 TSRMLS_CC); @@ -21309,9 +20955,9 @@ static PHP_METHOD(Phalcon_Dispatcher, dispatch) { static PHP_METHOD(Phalcon_Dispatcher, _dispatch) { zval *_30$$6 = NULL; - zval *value = NULL, *handler = NULL, *dependencyInjector = NULL, *namespaceName = NULL, *handlerName = NULL, *actionName = NULL, *params = NULL, *eventsManager = NULL, *actionSuffix = NULL, *handlerClass = NULL, *status = NULL, *actionMethod = NULL, *modelBinder = NULL, *e = NULL, *bindCacheKey = NULL, *_0, *_1$$3, *_2$$3, *_3$$4 = NULL, *_4$$4, *_5$$7 = NULL, *_6$$7 = NULL, *_10$$8 = NULL, *_11$$8 = NULL, *_13$$8, *_14$$6 = NULL, *_49$$6, *_16$$12 = NULL, *_17$$12 = NULL, *_19$$13, *_22$$16 = NULL, *_23$$16 = NULL, *_25$$17, *_26$$19 = NULL, *_27$$19 = NULL, *_29$$20, *_31$$23 = NULL, *_32$$23 = NULL, *_34$$23, *_35$$22 = NULL, *_36$$22 = NULL, *_38$$26, *_39$$28 = NULL, *_40$$28 = NULL, *_42$$28, *_43$$31 = NULL, *_44$$31, *_45$$36 = NULL, *_46$$36 = NULL, *_48$$36, *_50$$39 = NULL, *_51$$40 = NULL, *_52$$40 = NULL, *_54$$40, *_55$$43 = NULL, *_56$$43, *_57$$46 = NULL, *_59$$47 = NULL, *_61$$48, *_62$$51 = NULL, *_63$$51 = NULL, *_65$$51, *_67$$54 = NULL, *_68$$54, *_69$$57; + zval *value = NULL, *handler = NULL, *dependencyInjector = NULL, *namespaceName = NULL, *handlerName = NULL, *actionName = NULL, *params = NULL, *eventsManager = NULL, *actionSuffix = NULL, *handlerClass = NULL, *status = NULL, *actionMethod = NULL, *modelBinder = NULL, *e = NULL, *bindCacheKey = NULL, *_0, *_1$$3, *_2$$3, *_3$$4 = NULL, *_4$$4, *_5$$7 = NULL, *_6$$7 = NULL, *_10$$8 = NULL, *_11$$8 = NULL, *_13$$8, *_14$$6 = NULL, *_49$$6, *_59$$6 = NULL, *_16$$12 = NULL, *_17$$12 = NULL, *_19$$13, *_22$$16 = NULL, *_23$$16 = NULL, *_25$$17, *_26$$19 = NULL, *_27$$19 = NULL, *_29$$20, *_31$$23 = NULL, *_32$$23 = NULL, *_34$$23, *_35$$22 = NULL, *_36$$22 = NULL, *_38$$26, *_39$$28 = NULL, *_40$$28 = NULL, *_42$$28, *_43$$31 = NULL, *_44$$31, *_45$$36 = NULL, *_46$$36 = NULL, *_48$$36, *_50$$39 = NULL, *_51$$40 = NULL, *_52$$40 = NULL, *_54$$40, *_55$$43 = NULL, *_56$$43, *_57$$46 = NULL, *_60$$47 = NULL, *_62$$48, *_63$$51 = NULL, *_64$$51 = NULL, *_66$$51, *_68$$54 = NULL, *_69$$54, *_70$$57; zend_bool hasService = 0, wasFresh; - zephir_fcall_cache_entry *_7 = NULL, *_8 = NULL, *_9 = NULL, *_12 = NULL, *_15 = NULL, *_18 = NULL, *_20 = NULL, *_21 = NULL, *_24 = NULL, *_28 = NULL, *_33 = NULL, *_37 = NULL, *_41 = NULL, *_47 = NULL, *_53 = NULL, *_58 = NULL, *_60 = NULL, *_64 = NULL, *_66 = NULL; + zephir_fcall_cache_entry *_7 = NULL, *_8 = NULL, *_9 = NULL, *_12 = NULL, *_15 = NULL, *_18 = NULL, *_20 = NULL, *_21 = NULL, *_24 = NULL, *_28 = NULL, *_33 = NULL, *_37 = NULL, *_41 = NULL, *_47 = NULL, *_53 = NULL, *_58 = NULL, *_61 = NULL, *_65 = NULL, *_67 = NULL; int ZEPHIR_LAST_CALL_STATUS, numberDispatches = 0; ZEPHIR_MM_GROW(); @@ -21587,14 +21233,16 @@ static PHP_METHOD(Phalcon_Dispatcher, _dispatch) { try_end_1: if (EG(exception)) { - ZEPHIR_CPY_WRT(e, EG(exception)); - if (zephir_instance_of_ev(e, zend_exception_get_default(TSRMLS_C) TSRMLS_CC)) { + ZEPHIR_INIT_NVAR(_59$$6); + ZEPHIR_CPY_WRT(_59$$6, EG(exception)); + if (zephir_instance_of_ev(_59$$6, zend_exception_get_default(TSRMLS_C) TSRMLS_CC)) { zend_clear_exception(TSRMLS_C); - ZEPHIR_CALL_METHOD(&_59$$47, this_ptr, "_handleexception", &_60, 0, e); + ZEPHIR_CPY_WRT(e, _59$$6); + ZEPHIR_CALL_METHOD(&_60$$47, this_ptr, "_handleexception", &_61, 0, e); zephir_check_call_status(); - if (ZEPHIR_IS_FALSE_IDENTICAL(_59$$47)) { - _61$$48 = zephir_fetch_nproperty_this(this_ptr, SL("_finished"), PH_NOISY_CC); - if (ZEPHIR_IS_FALSE_IDENTICAL(_61$$48)) { + if (ZEPHIR_IS_FALSE_IDENTICAL(_60$$47)) { + _62$$48 = zephir_fetch_nproperty_this(this_ptr, SL("_finished"), PH_NOISY_CC); + if (ZEPHIR_IS_FALSE_IDENTICAL(_62$$48)) { continue; } } else { @@ -21605,41 +21253,41 @@ static PHP_METHOD(Phalcon_Dispatcher, _dispatch) { } } if (Z_TYPE_P(eventsManager) == IS_OBJECT) { - ZEPHIR_INIT_NVAR(_63$$51); - ZVAL_STRING(_63$$51, "dispatch:afterExecuteRoute", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(&_62$$51, eventsManager, "fire", &_64, 0, _63$$51, this_ptr, value); - zephir_check_temp_parameter(_63$$51); + ZEPHIR_INIT_NVAR(_64$$51); + ZVAL_STRING(_64$$51, "dispatch:afterExecuteRoute", ZEPHIR_TEMP_PARAM_COPY); + ZEPHIR_CALL_METHOD(&_63$$51, eventsManager, "fire", &_65, 0, _64$$51, this_ptr, value); + zephir_check_temp_parameter(_64$$51); zephir_check_call_status(); - if (ZEPHIR_IS_FALSE_IDENTICAL(_62$$51)) { + if (ZEPHIR_IS_FALSE_IDENTICAL(_63$$51)) { continue; } - _65$$51 = zephir_fetch_nproperty_this(this_ptr, SL("_finished"), PH_NOISY_CC); - if (ZEPHIR_IS_FALSE_IDENTICAL(_65$$51)) { + _66$$51 = zephir_fetch_nproperty_this(this_ptr, SL("_finished"), PH_NOISY_CC); + if (ZEPHIR_IS_FALSE_IDENTICAL(_66$$51)) { continue; } - ZEPHIR_INIT_NVAR(_63$$51); - ZVAL_STRING(_63$$51, "dispatch:afterDispatch", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, eventsManager, "fire", &_66, 0, _63$$51, this_ptr); - zephir_check_temp_parameter(_63$$51); + ZEPHIR_INIT_NVAR(_64$$51); + ZVAL_STRING(_64$$51, "dispatch:afterDispatch", ZEPHIR_TEMP_PARAM_COPY); + ZEPHIR_CALL_METHOD(NULL, eventsManager, "fire", &_67, 0, _64$$51, this_ptr); + zephir_check_temp_parameter(_64$$51); zephir_check_call_status(); } if ((zephir_method_exists_ex(handler, SS("afterexecuteroute") TSRMLS_CC) == SUCCESS)) { - ZEPHIR_CALL_METHOD(&_67$$54, handler, "afterexecuteroute", NULL, 0, this_ptr, value); + ZEPHIR_CALL_METHOD(&_68$$54, handler, "afterexecuteroute", NULL, 0, this_ptr, value); zephir_check_call_status(); - if (ZEPHIR_IS_FALSE_IDENTICAL(_67$$54)) { + if (ZEPHIR_IS_FALSE_IDENTICAL(_68$$54)) { continue; } - _68$$54 = zephir_fetch_nproperty_this(this_ptr, SL("_finished"), PH_NOISY_CC); - if (ZEPHIR_IS_FALSE_IDENTICAL(_68$$54)) { + _69$$54 = zephir_fetch_nproperty_this(this_ptr, SL("_finished"), PH_NOISY_CC); + if (ZEPHIR_IS_FALSE_IDENTICAL(_69$$54)) { continue; } } } if (Z_TYPE_P(eventsManager) == IS_OBJECT) { - ZEPHIR_INIT_VAR(_69$$57); - ZVAL_STRING(_69$$57, "dispatch:afterDispatchLoop", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, eventsManager, "fire", NULL, 0, _69$$57, this_ptr); - zephir_check_temp_parameter(_69$$57); + ZEPHIR_INIT_VAR(_70$$57); + ZVAL_STRING(_70$$57, "dispatch:afterDispatchLoop", ZEPHIR_TEMP_PARAM_COPY); + ZEPHIR_CALL_METHOD(NULL, eventsManager, "fire", NULL, 0, _70$$57, this_ptr); + zephir_check_temp_parameter(_70$$57); zephir_check_call_status(); } RETURN_CCTOR(handler); @@ -22015,8 +21663,8 @@ static PHP_METHOD(Phalcon_Escaper, detectEncoding) { zephir_array_fast_append(_0, _1); zephir_is_iterable(_0, &_3, &_2, 0, 0, "phalcon/escaper.zep", 132); for ( - ; zephir_hash_get_current_data_ex(_3, (void**) &_4, &_2) == SUCCESS - ; zephir_hash_move_forward_ex(_3, &_2) + ; zend_hash_get_current_data_ex(_3, (void**) &_4, &_2) == SUCCESS + ; zend_hash_move_forward_ex(_3, &_2) ) { ZEPHIR_GET_HVALUE(charset, _4); ZEPHIR_CALL_FUNCTION(&_5$$5, "mb_detect_encoding", &_6, 184, str, charset, ZEPHIR_GLOBAL(global_true)); @@ -22262,11 +21910,11 @@ static PHP_METHOD(Phalcon_Filter, add) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &name_param, &handler); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -22311,8 +21959,8 @@ static PHP_METHOD(Phalcon_Filter, sanitize) { if (Z_TYPE_P(value) != IS_NULL) { zephir_is_iterable(filters, &_1$$4, &_0$$4, 0, 0, "phalcon/filter.zep", 108); for ( - ; zephir_hash_get_current_data_ex(_1$$4, (void**) &_2$$4, &_0$$4) == SUCCESS - ; zephir_hash_move_forward_ex(_1$$4, &_0$$4) + ; zend_hash_get_current_data_ex(_1$$4, (void**) &_2$$4, &_0$$4) == SUCCESS + ; zend_hash_move_forward_ex(_1$$4, &_0$$4) ) { ZEPHIR_GET_HVALUE(filter, _2$$4); _3$$5 = Z_TYPE_P(value) == IS_ARRAY; @@ -22324,8 +21972,8 @@ static PHP_METHOD(Phalcon_Filter, sanitize) { array_init(arrayValue); zephir_is_iterable(value, &_5$$6, &_4$$6, 0, 0, "phalcon/filter.zep", 103); for ( - ; zephir_hash_get_current_data_ex(_5$$6, (void**) &_6$$6, &_4$$6) == SUCCESS - ; zephir_hash_move_forward_ex(_5$$6, &_4$$6) + ; zend_hash_get_current_data_ex(_5$$6, (void**) &_6$$6, &_4$$6) == SUCCESS + ; zend_hash_move_forward_ex(_5$$6, &_4$$6) ) { ZEPHIR_GET_HMKEY(itemKey, _5$$6, _4$$6); ZEPHIR_GET_HVALUE(itemValue, _6$$6); @@ -22353,8 +22001,8 @@ static PHP_METHOD(Phalcon_Filter, sanitize) { array_init(sanitizedValue); zephir_is_iterable(value, &_12$$9, &_11$$9, 0, 0, "phalcon/filter.zep", 120); for ( - ; zephir_hash_get_current_data_ex(_12$$9, (void**) &_13$$9, &_11$$9) == SUCCESS - ; zephir_hash_move_forward_ex(_12$$9, &_11$$9) + ; zend_hash_get_current_data_ex(_12$$9, (void**) &_13$$9, &_11$$9) == SUCCESS + ; zend_hash_move_forward_ex(_12$$9, &_11$$9) ) { ZEPHIR_GET_HMKEY(itemKey, _12$$9, _11$$9); ZEPHIR_GET_HVALUE(itemValue, _13$$9); @@ -22382,11 +22030,11 @@ static PHP_METHOD(Phalcon_Filter, _sanitize) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &value, &filter_param); - if (unlikely(Z_TYPE_P(filter_param) != IS_STRING && Z_TYPE_P(filter_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(filter_param) != IS_STRING && Z_TYPE_P(filter_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'filter' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(filter_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(filter_param) == IS_STRING)) { zephir_get_strval(filter, filter_param); } else { ZEPHIR_INIT_VAR(filter); @@ -22891,8 +22539,8 @@ static PHP_METHOD(Phalcon_Flash, outputMessage) { } zephir_is_iterable(message, &_3$$9, &_2$$9, 0, 0, "phalcon/flash.zep", 288); for ( - ; zephir_hash_get_current_data_ex(_3$$9, (void**) &_4$$9, &_2$$9) == SUCCESS - ; zephir_hash_move_forward_ex(_3$$9, &_2$$9) + ; zend_hash_get_current_data_ex(_3$$9, (void**) &_4$$9, &_2$$9) == SUCCESS + ; zend_hash_move_forward_ex(_3$$9, &_2$$9) ) { ZEPHIR_GET_HVALUE(msg, _4$$9); if (autoEscape == 1) { @@ -23044,11 +22692,11 @@ static PHP_METHOD(Phalcon_Kernel, preComputeHashKey) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &key_param); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { ZEPHIR_INIT_VAR(key); @@ -23217,8 +22865,8 @@ static PHP_METHOD(Phalcon_Loader, registerNamespaces) { if (merge) { zephir_is_iterable(preparedNamespaces, &_1$$3, &_0$$3, 0, 0, "phalcon/loader.zep", 123); for ( - ; zephir_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_1$$3, &_0$$3) + ; zend_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS + ; zend_hash_move_forward_ex(_1$$3, &_0$$3) ) { ZEPHIR_GET_HMKEY(name, _1$$3, _0$$3); ZEPHIR_GET_HVALUE(paths, _2$$3); @@ -23258,8 +22906,8 @@ static PHP_METHOD(Phalcon_Loader, prepareNamespace) { array_init(prepared); zephir_is_iterable(namespace, &_1, &_0, 0, 0, "phalcon/loader.zep", 145); for ( - ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS - ; zephir_hash_move_forward_ex(_1, &_0) + ; zend_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS + ; zend_hash_move_forward_ex(_1, &_0) ) { ZEPHIR_GET_HMKEY(name, _1, _0); ZEPHIR_GET_HVALUE(paths, _2); @@ -23477,8 +23125,8 @@ static PHP_METHOD(Phalcon_Loader, loadFiles) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_files"), PH_NOISY_CC); zephir_is_iterable(_0, &_2, &_1, 0, 0, "phalcon/loader.zep", 288); for ( - ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS - ; zephir_hash_move_forward_ex(_2, &_1) + ; zend_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS + ; zend_hash_move_forward_ex(_2, &_1) ) { ZEPHIR_GET_HVALUE(filePath, _3); ZEPHIR_OBS_NVAR(_4$$3); @@ -23527,11 +23175,11 @@ static PHP_METHOD(Phalcon_Loader, autoLoad) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &className_param); - if (unlikely(Z_TYPE_P(className_param) != IS_STRING && Z_TYPE_P(className_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(className_param) != IS_STRING && Z_TYPE_P(className_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'className' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(className_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(className_param) == IS_STRING)) { zephir_get_strval(className, className_param); } else { ZEPHIR_INIT_VAR(className); @@ -23575,8 +23223,8 @@ static PHP_METHOD(Phalcon_Loader, autoLoad) { zephir_read_property_this(&namespaces, this_ptr, SL("_namespaces"), PH_NOISY_CC); zephir_is_iterable(namespaces, &_3, &_2, 0, 0, "phalcon/loader.zep", 392); for ( - ; zephir_hash_get_current_data_ex(_3, (void**) &_4, &_2) == SUCCESS - ; zephir_hash_move_forward_ex(_3, &_2) + ; zend_hash_get_current_data_ex(_3, (void**) &_4, &_2) == SUCCESS + ; zend_hash_move_forward_ex(_3, &_2) ) { ZEPHIR_GET_HMKEY(nsPrefix, _3, _2); ZEPHIR_GET_HVALUE(directories, _4); @@ -23597,8 +23245,8 @@ static PHP_METHOD(Phalcon_Loader, autoLoad) { ZEPHIR_CPY_WRT(fileName, _7$$6); zephir_is_iterable(directories, &_9$$6, &_8$$6, 0, 0, "phalcon/loader.zep", 387); for ( - ; zephir_hash_get_current_data_ex(_9$$6, (void**) &_10$$6, &_8$$6) == SUCCESS - ; zephir_hash_move_forward_ex(_9$$6, &_8$$6) + ; zend_hash_get_current_data_ex(_9$$6, (void**) &_10$$6, &_8$$6) == SUCCESS + ; zend_hash_move_forward_ex(_9$$6, &_8$$6) ) { ZEPHIR_GET_HVALUE(directory, _10$$6); ZEPHIR_INIT_NVAR(_11$$9); @@ -23607,8 +23255,8 @@ static PHP_METHOD(Phalcon_Loader, autoLoad) { ZEPHIR_CONCAT_VV(fixedDirectory, _11$$9, ds); zephir_is_iterable(extensions, &_13$$9, &_12$$9, 0, 0, "phalcon/loader.zep", 386); for ( - ; zephir_hash_get_current_data_ex(_13$$9, (void**) &_14$$9, &_12$$9) == SUCCESS - ; zephir_hash_move_forward_ex(_13$$9, &_12$$9) + ; zend_hash_get_current_data_ex(_13$$9, (void**) &_14$$9, &_12$$9) == SUCCESS + ; zend_hash_move_forward_ex(_13$$9, &_12$$9) ) { ZEPHIR_GET_HVALUE(extension, _14$$9); ZEPHIR_INIT_NVAR(filePath); @@ -23648,8 +23296,8 @@ static PHP_METHOD(Phalcon_Loader, autoLoad) { zephir_read_property_this(&directories, this_ptr, SL("_directories"), PH_NOISY_CC); zephir_is_iterable(directories, &_23, &_22, 0, 0, "phalcon/loader.zep", 447); for ( - ; zephir_hash_get_current_data_ex(_23, (void**) &_24, &_22) == SUCCESS - ; zephir_hash_move_forward_ex(_23, &_22) + ; zend_hash_get_current_data_ex(_23, (void**) &_24, &_22) == SUCCESS + ; zend_hash_move_forward_ex(_23, &_22) ) { ZEPHIR_GET_HVALUE(directory, _24); ZEPHIR_INIT_NVAR(_25$$14); @@ -23658,8 +23306,8 @@ static PHP_METHOD(Phalcon_Loader, autoLoad) { ZEPHIR_CONCAT_VV(fixedDirectory, _25$$14, ds); zephir_is_iterable(extensions, &_27$$14, &_26$$14, 0, 0, "phalcon/loader.zep", 442); for ( - ; zephir_hash_get_current_data_ex(_27$$14, (void**) &_28$$14, &_26$$14) == SUCCESS - ; zephir_hash_move_forward_ex(_27$$14, &_26$$14) + ; zend_hash_get_current_data_ex(_27$$14, (void**) &_28$$14, &_26$$14) == SUCCESS + ; zend_hash_move_forward_ex(_27$$14, &_26$$14) ) { ZEPHIR_GET_HVALUE(extension, _28$$14); ZEPHIR_INIT_NVAR(filePath); @@ -23850,11 +23498,11 @@ static PHP_METHOD(Phalcon_Registry, offsetExists) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &offset_param); - if (unlikely(Z_TYPE_P(offset_param) != IS_STRING && Z_TYPE_P(offset_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(offset_param) != IS_STRING && Z_TYPE_P(offset_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'offset' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(offset_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(offset_param) == IS_STRING)) { zephir_get_strval(offset, offset_param); } else { ZEPHIR_INIT_VAR(offset); @@ -23875,11 +23523,11 @@ static PHP_METHOD(Phalcon_Registry, offsetGet) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &offset_param); - if (unlikely(Z_TYPE_P(offset_param) != IS_STRING && Z_TYPE_P(offset_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(offset_param) != IS_STRING && Z_TYPE_P(offset_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'offset' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(offset_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(offset_param) == IS_STRING)) { zephir_get_strval(offset, offset_param); } else { ZEPHIR_INIT_VAR(offset); @@ -23901,11 +23549,11 @@ static PHP_METHOD(Phalcon_Registry, offsetSet) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &offset_param, &value); - if (unlikely(Z_TYPE_P(offset_param) != IS_STRING && Z_TYPE_P(offset_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(offset_param) != IS_STRING && Z_TYPE_P(offset_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'offset' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(offset_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(offset_param) == IS_STRING)) { zephir_get_strval(offset, offset_param); } else { ZEPHIR_INIT_VAR(offset); @@ -23926,11 +23574,11 @@ static PHP_METHOD(Phalcon_Registry, offsetUnset) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &offset_param); - if (unlikely(Z_TYPE_P(offset_param) != IS_STRING && Z_TYPE_P(offset_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(offset_param) != IS_STRING && Z_TYPE_P(offset_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'offset' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(offset_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(offset_param) == IS_STRING)) { zephir_get_strval(offset, offset_param); } else { ZEPHIR_INIT_VAR(offset); @@ -24043,11 +23691,11 @@ static PHP_METHOD(Phalcon_Registry, __set) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &key_param, &value); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { ZEPHIR_INIT_VAR(key); @@ -24070,11 +23718,11 @@ static PHP_METHOD(Phalcon_Registry, __get) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &key_param); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { ZEPHIR_INIT_VAR(key); @@ -24097,11 +23745,11 @@ static PHP_METHOD(Phalcon_Registry, __isset) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &key_param); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { ZEPHIR_INIT_VAR(key); @@ -24124,11 +23772,11 @@ static PHP_METHOD(Phalcon_Registry, __unset) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &key_param); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { ZEPHIR_INIT_VAR(key); @@ -24264,7 +23912,7 @@ static PHP_METHOD(Phalcon_Security, setRandomBytes) { zephir_fetch_params(0, 1, 0, &randomBytes_param); - if (unlikely(Z_TYPE_P(randomBytes_param) != IS_LONG)) { + if (UNEXPECTED(Z_TYPE_P(randomBytes_param) != IS_LONG)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'randomBytes' must be a long") TSRMLS_CC); RETURN_NULL(); } @@ -24954,11 +24602,11 @@ static PHP_METHOD(Phalcon_Tag, renderAttributes) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &code_param, &attributes_param); - if (unlikely(Z_TYPE_P(code_param) != IS_STRING && Z_TYPE_P(code_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(code_param) != IS_STRING && Z_TYPE_P(code_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'code' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(code_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(code_param) == IS_STRING)) { zephir_get_strval(code, code_param); } else { ZEPHIR_INIT_VAR(code); @@ -24983,8 +24631,8 @@ static PHP_METHOD(Phalcon_Tag, renderAttributes) { array_init(attrs); zephir_is_iterable(order, &_1, &_0, 0, 0, "phalcon/tag.zep", 137); for ( - ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS - ; zephir_hash_move_forward_ex(_1, &_0) + ; zend_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS + ; zend_hash_move_forward_ex(_1, &_0) ) { ZEPHIR_GET_HMKEY(key, _1, _0); ZEPHIR_GET_HVALUE(value, _2); @@ -24995,8 +24643,8 @@ static PHP_METHOD(Phalcon_Tag, renderAttributes) { } zephir_is_iterable(attributes, &_4, &_3, 0, 0, "phalcon/tag.zep", 143); for ( - ; zephir_hash_get_current_data_ex(_4, (void**) &_5, &_3) == SUCCESS - ; zephir_hash_move_forward_ex(_4, &_3) + ; zend_hash_get_current_data_ex(_4, (void**) &_5, &_3) == SUCCESS + ; zend_hash_move_forward_ex(_4, &_3) ) { ZEPHIR_GET_HMKEY(key, _4, _3); ZEPHIR_GET_HVALUE(value, _5); @@ -25011,8 +24659,8 @@ static PHP_METHOD(Phalcon_Tag, renderAttributes) { ZEPHIR_CPY_WRT(newCode, code); zephir_is_iterable(attrs, &_8, &_7, 0, 0, "phalcon/tag.zep", 162); for ( - ; zephir_hash_get_current_data_ex(_8, (void**) &_9, &_7) == SUCCESS - ; zephir_hash_move_forward_ex(_8, &_7) + ; zend_hash_get_current_data_ex(_8, (void**) &_9, &_7) == SUCCESS + ; zend_hash_move_forward_ex(_8, &_7) ) { ZEPHIR_GET_HMKEY(key, _8, _7); ZEPHIR_GET_HVALUE(value, _9); @@ -25164,11 +24812,11 @@ static PHP_METHOD(Phalcon_Tag, setDefault) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &id_param, &value); - if (unlikely(Z_TYPE_P(id_param) != IS_STRING && Z_TYPE_P(id_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(id_param) != IS_STRING && Z_TYPE_P(id_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'id' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(id_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(id_param) == IS_STRING)) { zephir_get_strval(id, id_param); } else { ZEPHIR_INIT_VAR(id); @@ -26284,8 +25932,8 @@ static PHP_METHOD(Phalcon_Tag, getTitle) { zephir_check_call_status(); zephir_is_iterable(tmp$$5, &_9$$5, &_8$$5, 0, 0, "phalcon/tag.zep", 1228); for ( - ; zephir_hash_get_current_data_ex(_9$$5, (void**) &_10$$5, &_8$$5) == SUCCESS - ; zephir_hash_move_forward_ex(_9$$5, &_8$$5) + ; zend_hash_get_current_data_ex(_9$$5, (void**) &_10$$5, &_8$$5) == SUCCESS + ; zend_hash_move_forward_ex(_9$$5, &_8$$5) ) { ZEPHIR_GET_HVALUE(title, _10$$5); ZEPHIR_CALL_METHOD(&_11$$6, escaper, "escapehtml", &_12, 0, title); @@ -26299,8 +25947,8 @@ static PHP_METHOD(Phalcon_Tag, getTitle) { if (!(ZEPHIR_IS_EMPTY(documentAppendTitle))) { zephir_is_iterable(documentAppendTitle, &_14$$8, &_13$$8, 0, 0, "phalcon/tag.zep", 1238); for ( - ; zephir_hash_get_current_data_ex(_14$$8, (void**) &_15$$8, &_13$$8) == SUCCESS - ; zephir_hash_move_forward_ex(_14$$8, &_13$$8) + ; zend_hash_get_current_data_ex(_14$$8, (void**) &_15$$8, &_13$$8) == SUCCESS + ; zend_hash_move_forward_ex(_14$$8, &_13$$8) ) { ZEPHIR_GET_HVALUE(title, _15$$8); ZEPHIR_CALL_METHOD(&_16$$9, escaper, "escapehtml", &_17, 0, title); @@ -26631,8 +26279,8 @@ static PHP_METHOD(Phalcon_Tag, friendlyTitle) { if (Z_TYPE_P(replace) == IS_ARRAY) { zephir_is_iterable(replace, &_9$$6, &_8$$6, 0, 0, "phalcon/tag.zep", 1502); for ( - ; zephir_hash_get_current_data_ex(_9$$6, (void**) &_10$$6, &_8$$6) == SUCCESS - ; zephir_hash_move_forward_ex(_9$$6, &_8$$6) + ; zend_hash_get_current_data_ex(_9$$6, (void**) &_10$$6, &_8$$6) == SUCCESS + ; zend_hash_move_forward_ex(_9$$6, &_8$$6) ) { ZEPHIR_GET_HVALUE(search, _10$$6); ZEPHIR_INIT_NVAR(_11$$7); @@ -26933,11 +26581,11 @@ static PHP_METHOD(Phalcon_Text, camelize) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &str_param, &delimiter); - if (unlikely(Z_TYPE_P(str_param) != IS_STRING && Z_TYPE_P(str_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(str_param) != IS_STRING && Z_TYPE_P(str_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'str' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(str_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(str_param) == IS_STRING)) { zephir_get_strval(str, str_param); } else { ZEPHIR_INIT_VAR(str); @@ -26962,11 +26610,11 @@ static PHP_METHOD(Phalcon_Text, uncamelize) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &str_param, &delimiter); - if (unlikely(Z_TYPE_P(str_param) != IS_STRING && Z_TYPE_P(str_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(str_param) != IS_STRING && Z_TYPE_P(str_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'str' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(str_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(str_param) == IS_STRING)) { zephir_get_strval(str, str_param); } else { ZEPHIR_INIT_VAR(str); @@ -27189,11 +26837,11 @@ static PHP_METHOD(Phalcon_Text, lower) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &str_param, &encoding_param); - if (unlikely(Z_TYPE_P(str_param) != IS_STRING && Z_TYPE_P(str_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(str_param) != IS_STRING && Z_TYPE_P(str_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'str' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(str_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(str_param) == IS_STRING)) { zephir_get_strval(str, str_param); } else { ZEPHIR_INIT_VAR(str); @@ -27203,11 +26851,11 @@ static PHP_METHOD(Phalcon_Text, lower) { ZEPHIR_INIT_VAR(encoding); ZVAL_STRING(encoding, "UTF-8", 1); } else { - if (unlikely(Z_TYPE_P(encoding_param) != IS_STRING && Z_TYPE_P(encoding_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(encoding_param) != IS_STRING && Z_TYPE_P(encoding_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'encoding' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(encoding_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(encoding_param) == IS_STRING)) { zephir_get_strval(encoding, encoding_param); } else { ZEPHIR_INIT_VAR(encoding); @@ -27235,11 +26883,11 @@ static PHP_METHOD(Phalcon_Text, upper) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &str_param, &encoding_param); - if (unlikely(Z_TYPE_P(str_param) != IS_STRING && Z_TYPE_P(str_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(str_param) != IS_STRING && Z_TYPE_P(str_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'str' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(str_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(str_param) == IS_STRING)) { zephir_get_strval(str, str_param); } else { ZEPHIR_INIT_VAR(str); @@ -27249,11 +26897,11 @@ static PHP_METHOD(Phalcon_Text, upper) { ZEPHIR_INIT_VAR(encoding); ZVAL_STRING(encoding, "UTF-8", 1); } else { - if (unlikely(Z_TYPE_P(encoding_param) != IS_STRING && Z_TYPE_P(encoding_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(encoding_param) != IS_STRING && Z_TYPE_P(encoding_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'encoding' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(encoding_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(encoding_param) == IS_STRING)) { zephir_get_strval(encoding, encoding_param); } else { ZEPHIR_INIT_VAR(encoding); @@ -27298,54 +26946,52 @@ static PHP_METHOD(Phalcon_Text, reduceSlashes) { static PHP_METHOD(Phalcon_Text, concat) { - HashTable *_6$$3; - HashPosition _5$$3; - zval *separator = NULL, *a = NULL, *b = NULL, _0 = zval_used_for_init, *c = NULL, *_11, *_12, *_2$$3, _3$$3, *_4$$3 = NULL, **_7$$3, *_8$$4 = NULL, *_9$$4 = NULL, *_10$$4 = NULL; + HashTable *_7$$3; + HashPosition _6$$3; + zval *separator = NULL, *a = NULL, *b = NULL, _0, _1, _2, *c = NULL, *_12, *_13, *_3$$3, _4$$3, *_5$$3 = NULL, **_8$$3, *_9$$4 = NULL, *_10$$4 = NULL, *_11$$4 = NULL; int ZEPHIR_LAST_CALL_STATUS; - zephir_fcall_cache_entry *_1 = NULL; ZEPHIR_MM_GROW(); + ZEPHIR_INIT_VAR(separator); ZEPHIR_SINIT_VAR(_0); ZVAL_LONG(&_0, 0); - ZEPHIR_CALL_FUNCTION(&separator, "func_get_arg", &_1, 448, &_0); - zephir_check_call_status(); - ZEPHIR_SINIT_NVAR(_0); - ZVAL_LONG(&_0, 1); - ZEPHIR_CALL_FUNCTION(&a, "func_get_arg", &_1, 448, &_0); - zephir_check_call_status(); - ZEPHIR_SINIT_NVAR(_0); - ZVAL_LONG(&_0, 2); - ZEPHIR_CALL_FUNCTION(&b, "func_get_arg", &_1, 448, &_0); - zephir_check_call_status(); + zephir_get_arg(separator, zephir_get_intval(&_0) TSRMLS_CC); + ZEPHIR_INIT_VAR(a); + ZEPHIR_SINIT_VAR(_1); + ZVAL_LONG(&_1, 1); + zephir_get_arg(a, zephir_get_intval(&_1) TSRMLS_CC); + ZEPHIR_INIT_VAR(b); + ZEPHIR_SINIT_VAR(_2); + ZVAL_LONG(&_2, 2); + zephir_get_arg(b, zephir_get_intval(&_2) TSRMLS_CC); if (ZEND_NUM_ARGS() > 3) { - ZEPHIR_INIT_VAR(_2$$3); - array_init(_2$$3); - zend_copy_parameters_array(ZEND_NUM_ARGS(), _2$$3 TSRMLS_CC); - ZEPHIR_SINIT_VAR(_3$$3); - ZVAL_LONG(&_3$$3, 3); - ZEPHIR_CALL_FUNCTION(&_4$$3, "array_slice", NULL, 395, _2$$3, &_3$$3); + ZEPHIR_INIT_VAR(_3$$3); + zephir_get_args(_3$$3 TSRMLS_CC); + ZEPHIR_SINIT_VAR(_4$$3); + ZVAL_LONG(&_4$$3, 3); + ZEPHIR_CALL_FUNCTION(&_5$$3, "array_slice", NULL, 395, _3$$3, &_4$$3); zephir_check_call_status(); - zephir_is_iterable(_4$$3, &_6$$3, &_5$$3, 0, 0, "phalcon/text.zep", 256); + zephir_is_iterable(_5$$3, &_7$$3, &_6$$3, 0, 0, "phalcon/text.zep", 256); for ( - ; zephir_hash_get_current_data_ex(_6$$3, (void**) &_7$$3, &_5$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_6$$3, &_5$$3) + ; zend_hash_get_current_data_ex(_7$$3, (void**) &_8$$3, &_6$$3) == SUCCESS + ; zend_hash_move_forward_ex(_7$$3, &_6$$3) ) { - ZEPHIR_GET_HVALUE(c, _7$$3); - ZEPHIR_INIT_NVAR(_8$$4); - zephir_fast_trim(_8$$4, b, separator, ZEPHIR_TRIM_RIGHT TSRMLS_CC); + ZEPHIR_GET_HVALUE(c, _8$$3); ZEPHIR_INIT_NVAR(_9$$4); - zephir_fast_trim(_9$$4, c, separator, ZEPHIR_TRIM_LEFT TSRMLS_CC); - ZEPHIR_INIT_LNVAR(_10$$4); - ZEPHIR_CONCAT_VVV(_10$$4, _8$$4, separator, _9$$4); - ZEPHIR_CPY_WRT(b, _10$$4); + zephir_fast_trim(_9$$4, b, separator, ZEPHIR_TRIM_RIGHT TSRMLS_CC); + ZEPHIR_INIT_NVAR(_10$$4); + zephir_fast_trim(_10$$4, c, separator, ZEPHIR_TRIM_LEFT TSRMLS_CC); + ZEPHIR_INIT_LNVAR(_11$$4); + ZEPHIR_CONCAT_VVV(_11$$4, _9$$4, separator, _10$$4); + ZEPHIR_CPY_WRT(b, _11$$4); } } - ZEPHIR_INIT_VAR(_11); - zephir_fast_trim(_11, a, separator, ZEPHIR_TRIM_RIGHT TSRMLS_CC); ZEPHIR_INIT_VAR(_12); - zephir_fast_trim(_12, b, separator, ZEPHIR_TRIM_LEFT TSRMLS_CC); - ZEPHIR_CONCAT_VVV(return_value, _11, separator, _12); + zephir_fast_trim(_12, a, separator, ZEPHIR_TRIM_RIGHT TSRMLS_CC); + ZEPHIR_INIT_VAR(_13); + zephir_fast_trim(_13, b, separator, ZEPHIR_TRIM_LEFT TSRMLS_CC); + ZEPHIR_CONCAT_VVV(return_value, _12, separator, _13); RETURN_MM(); } @@ -27363,11 +27009,11 @@ static PHP_METHOD(Phalcon_Text, dynamic) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 3, &text_param, &leftDelimiter_param, &rightDelimiter_param, &separator_param); - if (unlikely(Z_TYPE_P(text_param) != IS_STRING && Z_TYPE_P(text_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(text_param) != IS_STRING && Z_TYPE_P(text_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'text' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(text_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(text_param) == IS_STRING)) { zephir_get_strval(text, text_param); } else { ZEPHIR_INIT_VAR(text); @@ -27377,11 +27023,11 @@ static PHP_METHOD(Phalcon_Text, dynamic) { ZEPHIR_INIT_VAR(leftDelimiter); ZVAL_STRING(leftDelimiter, "{", 1); } else { - if (unlikely(Z_TYPE_P(leftDelimiter_param) != IS_STRING && Z_TYPE_P(leftDelimiter_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(leftDelimiter_param) != IS_STRING && Z_TYPE_P(leftDelimiter_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'leftDelimiter' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(leftDelimiter_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(leftDelimiter_param) == IS_STRING)) { zephir_get_strval(leftDelimiter, leftDelimiter_param); } else { ZEPHIR_INIT_VAR(leftDelimiter); @@ -27392,11 +27038,11 @@ static PHP_METHOD(Phalcon_Text, dynamic) { ZEPHIR_INIT_VAR(rightDelimiter); ZVAL_STRING(rightDelimiter, "}", 1); } else { - if (unlikely(Z_TYPE_P(rightDelimiter_param) != IS_STRING && Z_TYPE_P(rightDelimiter_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(rightDelimiter_param) != IS_STRING && Z_TYPE_P(rightDelimiter_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'rightDelimiter' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(rightDelimiter_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(rightDelimiter_param) == IS_STRING)) { zephir_get_strval(rightDelimiter, rightDelimiter_param); } else { ZEPHIR_INIT_VAR(rightDelimiter); @@ -27407,11 +27053,11 @@ static PHP_METHOD(Phalcon_Text, dynamic) { ZEPHIR_INIT_VAR(separator); ZVAL_STRING(separator, "|", 1); } else { - if (unlikely(Z_TYPE_P(separator_param) != IS_STRING && Z_TYPE_P(separator_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(separator_param) != IS_STRING && Z_TYPE_P(separator_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'separator' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(separator_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(separator_param) == IS_STRING)) { zephir_get_strval(separator, separator_param); } else { ZEPHIR_INIT_VAR(separator); @@ -27420,24 +27066,24 @@ static PHP_METHOD(Phalcon_Text, dynamic) { } - ZEPHIR_CALL_FUNCTION(&_0, "substr_count", &_1, 449, text, leftDelimiter); + ZEPHIR_CALL_FUNCTION(&_0, "substr_count", &_1, 448, text, leftDelimiter); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_2, "substr_count", &_1, 449, text, rightDelimiter); + ZEPHIR_CALL_FUNCTION(&_2, "substr_count", &_1, 448, text, rightDelimiter); zephir_check_call_status(); if (!ZEPHIR_IS_IDENTICAL(_0, _2)) { ZEPHIR_INIT_VAR(_3$$3); object_init_ex(_3$$3, spl_ce_RuntimeException); ZEPHIR_INIT_VAR(_4$$3); ZEPHIR_CONCAT_SVS(_4$$3, "Syntax error in string \"", text, "\""); - ZEPHIR_CALL_METHOD(NULL, _3$$3, "__construct", NULL, 450, _4$$3); + ZEPHIR_CALL_METHOD(NULL, _3$$3, "__construct", NULL, 449, _4$$3); zephir_check_call_status(); zephir_throw_exception_debug(_3$$3, "phalcon/text.zep", 283 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } - ZEPHIR_CALL_FUNCTION(&ldS, "preg_quote", &_5, 451, leftDelimiter); + ZEPHIR_CALL_FUNCTION(&ldS, "preg_quote", &_5, 450, leftDelimiter); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&rdS, "preg_quote", &_5, 451, rightDelimiter); + ZEPHIR_CALL_FUNCTION(&rdS, "preg_quote", &_5, 450, rightDelimiter); zephir_check_call_status(); ZEPHIR_INIT_VAR(pattern); ZEPHIR_CONCAT_SVSVVSVS(pattern, "/", ldS, "([^", ldS, rdS, "]+)", rdS, "/"); @@ -27455,8 +27101,8 @@ static PHP_METHOD(Phalcon_Text, dynamic) { if (Z_TYPE_P(matches) == IS_ARRAY) { zephir_is_iterable(matches, &_9$$5, &_8$$5, 0, 0, "phalcon/text.zep", 306); for ( - ; zephir_hash_get_current_data_ex(_9$$5, (void**) &_10$$5, &_8$$5) == SUCCESS - ; zephir_hash_move_forward_ex(_9$$5, &_8$$5) + ; zend_hash_get_current_data_ex(_9$$5, (void**) &_10$$5, &_8$$5) == SUCCESS + ; zend_hash_move_forward_ex(_9$$5, &_8$$5) ) { ZEPHIR_GET_HVALUE(match, _10$$5); _11$$6 = !(zephir_array_isset_long(match, 0)); @@ -27470,11 +27116,11 @@ static PHP_METHOD(Phalcon_Text, dynamic) { ZEPHIR_INIT_NVAR(words); zephir_fast_explode(words, separator, _12$$6, LONG_MAX TSRMLS_CC); ZEPHIR_OBS_NVAR(word); - ZEPHIR_CALL_FUNCTION(&_13$$6, "array_rand", &_14, 452, words); + ZEPHIR_CALL_FUNCTION(&_13$$6, "array_rand", &_14, 451, words); zephir_check_call_status(); zephir_array_fetch(&word, words, _13$$6, PH_NOISY, "phalcon/text.zep", 302 TSRMLS_CC); zephir_array_fetch_long(&_15$$6, match, 0, PH_NOISY | PH_READONLY, "phalcon/text.zep", 303 TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&sub, "preg_quote", &_5, 451, _15$$6, separator); + ZEPHIR_CALL_FUNCTION(&sub, "preg_quote", &_5, 450, _15$$6, separator); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_16$$6); ZEPHIR_CONCAT_SVS(_16$$6, "/", sub, "/"); @@ -27498,11 +27144,11 @@ static PHP_METHOD(Phalcon_Text, underscore) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &text_param); - if (unlikely(Z_TYPE_P(text_param) != IS_STRING && Z_TYPE_P(text_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(text_param) != IS_STRING && Z_TYPE_P(text_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'text' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(text_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(text_param) == IS_STRING)) { zephir_get_strval(text, text_param); } else { ZEPHIR_INIT_VAR(text); @@ -27533,11 +27179,11 @@ static PHP_METHOD(Phalcon_Text, humanize) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &text_param); - if (unlikely(Z_TYPE_P(text_param) != IS_STRING && Z_TYPE_P(text_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(text_param) != IS_STRING && Z_TYPE_P(text_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'text' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(text_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(text_param) == IS_STRING)) { zephir_get_strval(text, text_param); } else { ZEPHIR_INIT_VAR(text); @@ -27658,13 +27304,13 @@ static PHP_METHOD(Phalcon_Validation, __construct) { ZEPHIR_INIT_VAR(_0$$3); ZEPHIR_INIT_NVAR(_0$$3); zephir_create_closure_ex(_0$$3, NULL, phalcon_0__closure_ce, SS("__invoke") TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_1$$3, "array_filter", &_2, 462, validators, _0$$3); + ZEPHIR_CALL_FUNCTION(&_1$$3, "array_filter", &_2, 461, validators, _0$$3); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_validators"), _1$$3 TSRMLS_CC); ZEPHIR_INIT_VAR(_3$$3); ZEPHIR_INIT_NVAR(_3$$3); zephir_create_closure_ex(_3$$3, NULL, phalcon_1__closure_ce, SS("__invoke") TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_4$$3, "array_filter", &_2, 462, validators, _3$$3); + ZEPHIR_CALL_FUNCTION(&_4$$3, "array_filter", &_2, 461, validators, _3$$3); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_combinedFieldsValidators"), _4$$3 TSRMLS_CC); } @@ -27737,8 +27383,8 @@ static PHP_METHOD(Phalcon_Validation, validate) { } zephir_is_iterable(validators, &_2, &_1, 0, 0, "phalcon/validation.zep", 161); for ( - ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS - ; zephir_hash_move_forward_ex(_2, &_1) + ; zend_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS + ; zend_hash_move_forward_ex(_2, &_1) ) { ZEPHIR_GET_HVALUE(scope, _3); if (Z_TYPE_P(scope) != IS_ARRAY) { @@ -27773,8 +27419,8 @@ static PHP_METHOD(Phalcon_Validation, validate) { } zephir_is_iterable(combinedFieldsValidators, &_10, &_9, 0, 0, "phalcon/validation.zep", 193); for ( - ; zephir_hash_get_current_data_ex(_10, (void**) &_11, &_9) == SUCCESS - ; zephir_hash_move_forward_ex(_10, &_9) + ; zend_hash_get_current_data_ex(_10, (void**) &_11, &_9) == SUCCESS + ; zend_hash_move_forward_ex(_10, &_9) ) { ZEPHIR_GET_HVALUE(scope, _11); if (Z_TYPE_P(scope) != IS_ARRAY) { @@ -27838,8 +27484,8 @@ static PHP_METHOD(Phalcon_Validation, add) { } else { zephir_is_iterable(field, &_2$$5, &_1$$5, 0, 0, "phalcon/validation.zep", 215); for ( - ; zephir_hash_get_current_data_ex(_2$$5, (void**) &_3$$5, &_1$$5) == SUCCESS - ; zephir_hash_move_forward_ex(_2$$5, &_1$$5) + ; zend_hash_get_current_data_ex(_2$$5, (void**) &_3$$5, &_1$$5) == SUCCESS + ; zend_hash_move_forward_ex(_2$$5, &_1$$5) ) { ZEPHIR_GET_HVALUE(singleField, _3$$5); ZEPHIR_INIT_NVAR(_4$$6); @@ -27896,8 +27542,8 @@ static PHP_METHOD(Phalcon_Validation, rules) { zephir_is_iterable(validators, &_1, &_0, 0, 0, "phalcon/validation.zep", 247); for ( - ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS - ; zephir_hash_move_forward_ex(_1, &_0) + ; zend_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS + ; zend_hash_move_forward_ex(_1, &_0) ) { ZEPHIR_GET_HVALUE(validator, _2); if (zephir_instance_of_ev(validator, phalcon_validation_validatorinterface_ce TSRMLS_CC)) { @@ -27923,8 +27569,8 @@ static PHP_METHOD(Phalcon_Validation, setFilters) { if (Z_TYPE_P(field) == IS_ARRAY) { zephir_is_iterable(field, &_1$$3, &_0$$3, 0, 0, "phalcon/validation.zep", 264); for ( - ; zephir_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_1$$3, &_0$$3) + ; zend_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS + ; zend_hash_move_forward_ex(_1$$3, &_0$$3) ) { ZEPHIR_GET_HVALUE(singleField, _2$$3); zephir_update_property_array(this_ptr, SL("_filters"), singleField, filters TSRMLS_CC); @@ -28061,11 +27707,11 @@ static PHP_METHOD(Phalcon_Validation, getDefaultMessage) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &type_param); - if (unlikely(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'type' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(type_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(type_param) == IS_STRING)) { zephir_get_strval(type, type_param); } else { ZEPHIR_INIT_VAR(type); @@ -28144,7 +27790,7 @@ static PHP_METHOD(Phalcon_Validation, appendMessage) { ZEPHIR_CALL_METHOD(NULL, messages, "__construct", NULL, 3); zephir_check_call_status(); } - ZEPHIR_CALL_METHOD(NULL, messages, "appendmessage", NULL, 463, message); + ZEPHIR_CALL_METHOD(NULL, messages, "appendmessage", NULL, 462, message); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_messages"), messages TSRMLS_CC); RETURN_THIS(); @@ -28323,11 +27969,11 @@ static PHP_METHOD(Phalcon_Validation, preChecking) { if (Z_TYPE_P(field) == IS_ARRAY) { zephir_is_iterable(field, &_1$$3, &_0$$3, 0, 0, "phalcon/validation.zep", 590); for ( - ; zephir_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_1$$3, &_0$$3) + ; zend_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS + ; zend_hash_move_forward_ex(_1$$3, &_0$$3) ) { ZEPHIR_GET_HVALUE(singleField, _2$$3); - ZEPHIR_CALL_METHOD(&result, this_ptr, "prechecking", &_3, 464, singleField, validator); + ZEPHIR_CALL_METHOD(&result, this_ptr, "prechecking", &_3, 463, singleField, validator); zephir_check_call_status(); if (zephir_is_true(result)) { RETURN_CCTOR(result); @@ -28352,8 +27998,8 @@ static PHP_METHOD(Phalcon_Validation, preChecking) { if (Z_TYPE_P(allowEmpty) == IS_ARRAY) { zephir_is_iterable(allowEmpty, &_7$$9, &_6$$9, 0, 0, "phalcon/validation.zep", 604); for ( - ; zephir_hash_get_current_data_ex(_7$$9, (void**) &_8$$9, &_6$$9) == SUCCESS - ; zephir_hash_move_forward_ex(_7$$9, &_6$$9) + ; zend_hash_get_current_data_ex(_7$$9, (void**) &_8$$9, &_6$$9) == SUCCESS + ; zend_hash_move_forward_ex(_7$$9, &_6$$9) ) { ZEPHIR_GET_HVALUE(emptyValue, _8$$9); if (ZEPHIR_IS_IDENTICAL(emptyValue, value)) { @@ -28500,7 +28146,7 @@ static PHP_METHOD(Phalcon_Version, _getVersion) { ZVAL_LONG(_0, 1); zephir_array_fast_append(return_value, _0); ZEPHIR_INIT_NVAR(_0); - ZVAL_LONG(_0, 1); + ZVAL_LONG(_0, 2); zephir_array_fast_append(return_value, _0); ZEPHIR_INIT_NVAR(_0); ZVAL_LONG(_0, 4); @@ -28569,7 +28215,7 @@ static PHP_METHOD(Phalcon_Version, get) { zephir_array_fetch_long(&specialNumber, version, 4, PH_NOISY, "phalcon/version.zep", 143 TSRMLS_CC); ZEPHIR_INIT_VAR(result); ZEPHIR_CONCAT_VSVSVS(result, major, ".", medium, ".", minor, " "); - ZEPHIR_CALL_STATIC(&suffix, "_getspecial", &_0, 473, special); + ZEPHIR_CALL_STATIC(&suffix, "_getspecial", &_0, 472, special); zephir_check_call_status(); if (!ZEPHIR_IS_STRING(suffix, "")) { ZEPHIR_INIT_VAR(_1$$3); @@ -28636,7 +28282,7 @@ static PHP_METHOD(Phalcon_Version, getPart) { } if (part == 3) { zephir_array_fetch_long(&_1$$4, version, 3, PH_NOISY | PH_READONLY, "phalcon/version.zep", 204 TSRMLS_CC); - ZEPHIR_CALL_STATIC(&result, "_getspecial", &_0, 473, _1$$4); + ZEPHIR_CALL_STATIC(&result, "_getspecial", &_0, 472, _1$$4); zephir_check_call_status(); break; } @@ -28878,11 +28524,11 @@ static PHP_METHOD(Phalcon_Acl_Resource, __construct) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &name_param, &description_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -29007,11 +28653,11 @@ static PHP_METHOD(Phalcon_Acl_Role, __construct) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &name_param, &description_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -29227,8 +28873,8 @@ static PHP_METHOD(Phalcon_Acl_Adapter_Memory, addInherit) { zephir_array_fetch(&_5$$6, _4$$6, roleInheritName, PH_NOISY | PH_READONLY, "phalcon/acl/adapter/memory.zep", 240 TSRMLS_CC); zephir_is_iterable(_5$$6, &_7$$6, &_6$$6, 0, 0, "phalcon/acl/adapter/memory.zep", 243); for ( - ; zephir_hash_get_current_data_ex(_7$$6, (void**) &_8$$6, &_6$$6) == SUCCESS - ; zephir_hash_move_forward_ex(_7$$6, &_6$$6) + ; zend_hash_get_current_data_ex(_7$$6, (void**) &_8$$6, &_6$$6) == SUCCESS + ; zend_hash_move_forward_ex(_7$$6, &_6$$6) ) { ZEPHIR_GET_HVALUE(deepInheritName, _8$$6); ZEPHIR_CALL_METHOD(NULL, this_ptr, "addinherit", &_9, 80, roleName, deepInheritName); @@ -29366,8 +29012,8 @@ static PHP_METHOD(Phalcon_Acl_Adapter_Memory, addResourceAccess) { if (Z_TYPE_P(accessList) == IS_ARRAY) { zephir_is_iterable(accessList, &_5$$5, &_4$$5, 0, 0, "phalcon/acl/adapter/memory.zep", 363); for ( - ; zephir_hash_get_current_data_ex(_5$$5, (void**) &_6$$5, &_4$$5) == SUCCESS - ; zephir_hash_move_forward_ex(_5$$5, &_4$$5) + ; zend_hash_get_current_data_ex(_5$$5, (void**) &_6$$5, &_4$$5) == SUCCESS + ; zend_hash_move_forward_ex(_5$$5, &_4$$5) ) { ZEPHIR_GET_HVALUE(accessName, _6$$5); ZEPHIR_INIT_NVAR(accessKey); @@ -29409,8 +29055,8 @@ static PHP_METHOD(Phalcon_Acl_Adapter_Memory, dropResourceAccess) { if (Z_TYPE_P(accessList) == IS_ARRAY) { zephir_is_iterable(accessList, &_1$$3, &_0$$3, 0, 0, "phalcon/acl/adapter/memory.zep", 389); for ( - ; zephir_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_1$$3, &_0$$3) + ; zend_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS + ; zend_hash_move_forward_ex(_1$$3, &_0$$3) ) { ZEPHIR_GET_HVALUE(accessName, _2$$3); ZEPHIR_INIT_NVAR(accessKey); @@ -29483,8 +29129,8 @@ static PHP_METHOD(Phalcon_Acl_Adapter_Memory, _allowOrDeny) { if (Z_TYPE_P(access) == IS_ARRAY) { zephir_is_iterable(access, &_7$$5, &_6$$5, 0, 0, "phalcon/acl/adapter/memory.zep", 425); for ( - ; zephir_hash_get_current_data_ex(_7$$5, (void**) &_8$$5, &_6$$5) == SUCCESS - ; zephir_hash_move_forward_ex(_7$$5, &_6$$5) + ; zend_hash_get_current_data_ex(_7$$5, (void**) &_8$$5, &_6$$5) == SUCCESS + ; zend_hash_move_forward_ex(_7$$5, &_6$$5) ) { ZEPHIR_GET_HVALUE(accessName, _8$$5); ZEPHIR_INIT_NVAR(accessKey); @@ -29503,8 +29149,8 @@ static PHP_METHOD(Phalcon_Acl_Adapter_Memory, _allowOrDeny) { } zephir_is_iterable(access, &_12$$5, &_11$$5, 0, 0, "phalcon/acl/adapter/memory.zep", 434); for ( - ; zephir_hash_get_current_data_ex(_12$$5, (void**) &_13$$5, &_11$$5) == SUCCESS - ; zephir_hash_move_forward_ex(_12$$5, &_11$$5) + ; zend_hash_get_current_data_ex(_12$$5, (void**) &_13$$5, &_11$$5) == SUCCESS + ; zend_hash_move_forward_ex(_12$$5, &_11$$5) ) { ZEPHIR_GET_HVALUE(accessName, _13$$5); ZEPHIR_INIT_NVAR(accessKey); @@ -29571,8 +29217,8 @@ static PHP_METHOD(Phalcon_Acl_Adapter_Memory, allow) { ZEPHIR_INIT_VAR(_3$$4); zephir_is_iterable(_2$$4, &_5$$4, &_4$$4, 0, 0, "phalcon/acl/adapter/memory.zep", 486); for ( - ; zephir_hash_get_current_data_ex(_5$$4, (void**) &_6$$4, &_4$$4) == SUCCESS - ; zephir_hash_move_forward_ex(_5$$4, &_4$$4) + ; zend_hash_get_current_data_ex(_5$$4, (void**) &_6$$4, &_4$$4) == SUCCESS + ; zend_hash_move_forward_ex(_5$$4, &_4$$4) ) { ZEPHIR_GET_HMKEY(innerRoleName, _5$$4, _4$$4); ZEPHIR_GET_HVALUE(_3$$4, _6$$4); @@ -29615,8 +29261,8 @@ static PHP_METHOD(Phalcon_Acl_Adapter_Memory, deny) { ZEPHIR_INIT_VAR(_2$$4); zephir_is_iterable(_1$$4, &_4$$4, &_3$$4, 0, 0, "phalcon/acl/adapter/memory.zep", 519); for ( - ; zephir_hash_get_current_data_ex(_4$$4, (void**) &_5$$4, &_3$$4) == SUCCESS - ; zephir_hash_move_forward_ex(_4$$4, &_3$$4) + ; zend_hash_get_current_data_ex(_4$$4, (void**) &_5$$4, &_3$$4) == SUCCESS + ; zend_hash_move_forward_ex(_4$$4, &_3$$4) ) { ZEPHIR_GET_HMKEY(innerRoleName, _4$$4, _3$$4); ZEPHIR_GET_HVALUE(_2$$4, _5$$4); @@ -29732,8 +29378,8 @@ static PHP_METHOD(Phalcon_Acl_Adapter_Memory, isAllowed) { if (Z_TYPE_P(inheritedRoles) == IS_ARRAY) { zephir_is_iterable(inheritedRoles, &_7$$17, &_6$$17, 0, 0, "phalcon/acl/adapter/memory.zep", 619); for ( - ; zephir_hash_get_current_data_ex(_7$$17, (void**) &_8$$17, &_6$$17) == SUCCESS - ; zephir_hash_move_forward_ex(_7$$17, &_6$$17) + ; zend_hash_get_current_data_ex(_7$$17, (void**) &_8$$17, &_6$$17) == SUCCESS + ; zend_hash_move_forward_ex(_7$$17, &_6$$17) ) { ZEPHIR_GET_HVALUE(inheritedRole, _8$$17); ZEPHIR_INIT_NVAR(accessKey); @@ -29760,8 +29406,8 @@ static PHP_METHOD(Phalcon_Acl_Adapter_Memory, isAllowed) { if (Z_TYPE_P(inheritedRoles) == IS_ARRAY) { zephir_is_iterable(inheritedRoles, &_10$$23, &_9$$23, 0, 0, "phalcon/acl/adapter/memory.zep", 650); for ( - ; zephir_hash_get_current_data_ex(_10$$23, (void**) &_11$$23, &_9$$23) == SUCCESS - ; zephir_hash_move_forward_ex(_10$$23, &_9$$23) + ; zend_hash_get_current_data_ex(_10$$23, (void**) &_11$$23, &_9$$23) == SUCCESS + ; zend_hash_move_forward_ex(_10$$23, &_9$$23) ) { ZEPHIR_GET_HVALUE(inheritedRole, _11$$23); ZEPHIR_INIT_NVAR(accessKey); @@ -29789,8 +29435,8 @@ static PHP_METHOD(Phalcon_Acl_Adapter_Memory, isAllowed) { if (Z_TYPE_P(inheritedRoles) == IS_ARRAY) { zephir_is_iterable(inheritedRoles, &_13$$29, &_12$$29, 0, 0, "phalcon/acl/adapter/memory.zep", 681); for ( - ; zephir_hash_get_current_data_ex(_13$$29, (void**) &_14$$29, &_12$$29) == SUCCESS - ; zephir_hash_move_forward_ex(_13$$29, &_12$$29) + ; zend_hash_get_current_data_ex(_13$$29, (void**) &_14$$29, &_12$$29) == SUCCESS + ; zend_hash_move_forward_ex(_13$$29, &_12$$29) ) { ZEPHIR_GET_HVALUE(inheritedRole, _14$$29); ZEPHIR_INIT_NVAR(accessKey); @@ -29844,8 +29490,8 @@ static PHP_METHOD(Phalcon_Acl_Adapter_Memory, isAllowed) { ZEPHIR_CPY_WRT(userParametersSizeShouldBe, parameterNumber); zephir_is_iterable(reflectionParameters, &_20$$34, &_19$$34, 0, 0, "phalcon/acl/adapter/memory.zep", 746); for ( - ; zephir_hash_get_current_data_ex(_20$$34, (void**) &_21$$34, &_19$$34) == SUCCESS - ; zephir_hash_move_forward_ex(_20$$34, &_19$$34) + ; zend_hash_get_current_data_ex(_20$$34, (void**) &_21$$34, &_19$$34) == SUCCESS + ; zend_hash_move_forward_ex(_20$$34, &_19$$34) ) { ZEPHIR_GET_HVALUE(reflectionParameter, _21$$34); ZEPHIR_CALL_METHOD(&reflectionClass, reflectionParameter, "getclass", NULL, 0); @@ -30161,8 +29807,8 @@ static PHP_METHOD(Phalcon_Annotations_Adapter, getMethod) { if (Z_TYPE_P(methods) == IS_ARRAY) { zephir_is_iterable(methods, &_1$$4, &_0$$4, 0, 0, "phalcon/annotations/adapter.zep", 155); for ( - ; zephir_hash_get_current_data_ex(_1$$4, (void**) &_2$$4, &_0$$4) == SUCCESS - ; zephir_hash_move_forward_ex(_1$$4, &_0$$4) + ; zend_hash_get_current_data_ex(_1$$4, (void**) &_2$$4, &_0$$4) == SUCCESS + ; zend_hash_move_forward_ex(_1$$4, &_0$$4) ) { ZEPHIR_GET_HMKEY(methodKey, _1$$4, _0$$4); ZEPHIR_GET_HVALUE(method, _2$$4); @@ -30315,8 +29961,8 @@ static PHP_METHOD(Phalcon_Annotations_Annotation, __construct) { array_init(arguments); zephir_is_iterable(exprArguments, &_2$$3, &_1$$3, 0, 0, "phalcon/annotations/annotation.zep", 73); for ( - ; zephir_hash_get_current_data_ex(_2$$3, (void**) &_3$$3, &_1$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_2$$3, &_1$$3) + ; zend_hash_get_current_data_ex(_2$$3, (void**) &_3$$3, &_1$$3) == SUCCESS + ; zend_hash_move_forward_ex(_2$$3, &_1$$3) ) { ZEPHIR_GET_HVALUE(argument, _3$$3); zephir_array_fetch_string(&_4$$4, argument, SL("expr"), PH_NOISY | PH_READONLY, "phalcon/annotations/annotation.zep", 66 TSRMLS_CC); @@ -30387,8 +30033,8 @@ static PHP_METHOD(Phalcon_Annotations_Annotation, getExpression) { zephir_array_fetch_string(&_0$$7, expr, SL("items"), PH_NOISY | PH_READONLY, "phalcon/annotations/annotation.zep", 120 TSRMLS_CC); zephir_is_iterable(_0$$7, &_2$$7, &_1$$7, 0, 0, "phalcon/annotations/annotation.zep", 128); for ( - ; zephir_hash_get_current_data_ex(_2$$7, (void**) &_3$$7, &_1$$7) == SUCCESS - ; zephir_hash_move_forward_ex(_2$$7, &_1$$7) + ; zend_hash_get_current_data_ex(_2$$7, (void**) &_3$$7, &_1$$7) == SUCCESS + ; zend_hash_move_forward_ex(_2$$7, &_1$$7) ) { ZEPHIR_GET_HVALUE(item, _3$$7); zephir_array_fetch_string(&_4$$8, item, SL("expr"), PH_NOISY | PH_READONLY, "phalcon/annotations/annotation.zep", 121 TSRMLS_CC); @@ -30486,11 +30132,11 @@ static PHP_METHOD(Phalcon_Annotations_Annotation, getNamedArgument) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -30515,11 +30161,11 @@ static PHP_METHOD(Phalcon_Annotations_Annotation, getNamedParameter) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -30587,8 +30233,8 @@ static PHP_METHOD(Phalcon_Annotations_Collection, __construct) { if (Z_TYPE_P(reflectionData) == IS_ARRAY) { zephir_is_iterable(reflectionData, &_2$$4, &_1$$4, 0, 0, "phalcon/annotations/collection.zep", 68); for ( - ; zephir_hash_get_current_data_ex(_2$$4, (void**) &_3$$4, &_1$$4) == SUCCESS - ; zephir_hash_move_forward_ex(_2$$4, &_1$$4) + ; zend_hash_get_current_data_ex(_2$$4, (void**) &_3$$4, &_1$$4) == SUCCESS + ; zend_hash_move_forward_ex(_2$$4, &_1$$4) ) { ZEPHIR_GET_HVALUE(annotationData, _3$$4); ZEPHIR_INIT_NVAR(_4$$5); @@ -30692,8 +30338,8 @@ static PHP_METHOD(Phalcon_Annotations_Collection, get) { if (Z_TYPE_P(annotations) == IS_ARRAY) { zephir_is_iterable(annotations, &_1$$3, &_0$$3, 0, 0, "phalcon/annotations/collection.zep", 147); for ( - ; zephir_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_1$$3, &_0$$3) + ; zend_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS + ; zend_hash_move_forward_ex(_1$$3, &_0$$3) ) { ZEPHIR_GET_HVALUE(annotation, _2$$3); ZEPHIR_CALL_METHOD(&_3$$4, annotation, "getname", NULL, 0); @@ -30736,8 +30382,8 @@ static PHP_METHOD(Phalcon_Annotations_Collection, getAll) { if (Z_TYPE_P(annotations) == IS_ARRAY) { zephir_is_iterable(annotations, &_1$$3, &_0$$3, 0, 0, "phalcon/annotations/collection.zep", 167); for ( - ; zephir_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_1$$3, &_0$$3) + ; zend_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS + ; zend_hash_move_forward_ex(_1$$3, &_0$$3) ) { ZEPHIR_GET_HVALUE(annotation, _2$$3); ZEPHIR_CALL_METHOD(&_3$$4, annotation, "getname", NULL, 0); @@ -30770,8 +30416,8 @@ static PHP_METHOD(Phalcon_Annotations_Collection, has) { if (Z_TYPE_P(annotations) == IS_ARRAY) { zephir_is_iterable(annotations, &_1$$3, &_0$$3, 0, 0, "phalcon/annotations/collection.zep", 186); for ( - ; zephir_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_1$$3, &_0$$3) + ; zend_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS + ; zend_hash_move_forward_ex(_1$$3, &_0$$3) ) { ZEPHIR_GET_HVALUE(annotation, _2$$3); ZEPHIR_CALL_METHOD(&_3$$4, annotation, "getname", NULL, 0); @@ -33185,8 +32831,8 @@ static PHP_METHOD(Phalcon_Annotations_Reader, parse) { array_init(annotationsProperties); zephir_is_iterable(properties, &_3$$5, &_2$$5, 0, 0, "phalcon/annotations/reader.zep", 96); for ( - ; zephir_hash_get_current_data_ex(_3$$5, (void**) &_4$$5, &_2$$5) == SUCCESS - ; zephir_hash_move_forward_ex(_3$$5, &_2$$5) + ; zend_hash_get_current_data_ex(_3$$5, (void**) &_4$$5, &_2$$5) == SUCCESS + ; zend_hash_move_forward_ex(_3$$5, &_2$$5) ) { ZEPHIR_GET_HVALUE(property, _4$$5); ZEPHIR_CALL_METHOD(&comment, property, "getdoccomment", NULL, 0); @@ -33217,8 +32863,8 @@ static PHP_METHOD(Phalcon_Annotations_Reader, parse) { array_init(annotationsMethods); zephir_is_iterable(methods, &_9$$10, &_8$$10, 0, 0, "phalcon/annotations/reader.zep", 126); for ( - ; zephir_hash_get_current_data_ex(_9$$10, (void**) &_10$$10, &_8$$10) == SUCCESS - ; zephir_hash_move_forward_ex(_9$$10, &_8$$10) + ; zend_hash_get_current_data_ex(_9$$10, (void**) &_10$$10, &_8$$10) == SUCCESS + ; zend_hash_move_forward_ex(_9$$10, &_8$$10) ) { ZEPHIR_GET_HVALUE(method, _10$$10); ZEPHIR_CALL_METHOD(&comment, method, "getdoccomment", NULL, 0); @@ -33391,8 +33037,8 @@ static PHP_METHOD(Phalcon_Annotations_Reflection, getMethodsAnnotations) { array_init(collections); zephir_is_iterable(reflectionMethods, &_2$$5, &_1$$5, 0, 0, "phalcon/annotations/reflection.zep", 104); for ( - ; zephir_hash_get_current_data_ex(_2$$5, (void**) &_3$$5, &_1$$5) == SUCCESS - ; zephir_hash_move_forward_ex(_2$$5, &_1$$5) + ; zend_hash_get_current_data_ex(_2$$5, (void**) &_3$$5, &_1$$5) == SUCCESS + ; zend_hash_move_forward_ex(_2$$5, &_1$$5) ) { ZEPHIR_GET_HMKEY(methodName, _2$$5, _1$$5); ZEPHIR_GET_HVALUE(reflectionMethod, _3$$5); @@ -33438,8 +33084,8 @@ static PHP_METHOD(Phalcon_Annotations_Reflection, getPropertiesAnnotations) { array_init(collections); zephir_is_iterable(reflectionProperties, &_2$$5, &_1$$5, 0, 0, "phalcon/annotations/reflection.zep", 131); for ( - ; zephir_hash_get_current_data_ex(_2$$5, (void**) &_3$$5, &_1$$5) == SUCCESS - ; zephir_hash_move_forward_ex(_2$$5, &_1$$5) + ; zend_hash_get_current_data_ex(_2$$5, (void**) &_3$$5, &_1$$5) == SUCCESS + ; zend_hash_move_forward_ex(_2$$5, &_1$$5) ) { ZEPHIR_GET_HMKEY(property, _2$$5, _1$$5); ZEPHIR_GET_HVALUE(reflectionProperty, _3$$5); @@ -34558,11 +34204,11 @@ static PHP_METHOD(Phalcon_Annotations_Adapter_Apc, read) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &key_param); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { ZEPHIR_INIT_VAR(key); @@ -34590,11 +34236,11 @@ static PHP_METHOD(Phalcon_Annotations_Adapter_Apc, write) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &key_param, &data); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { ZEPHIR_INIT_VAR(key); @@ -34690,11 +34336,11 @@ static PHP_METHOD(Phalcon_Annotations_Adapter_Files, write) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &key_param, &data); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { ZEPHIR_INIT_VAR(key); @@ -34752,11 +34398,11 @@ static PHP_METHOD(Phalcon_Annotations_Adapter_Memory, read) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &key_param); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { ZEPHIR_INIT_VAR(key); @@ -34782,11 +34428,11 @@ static PHP_METHOD(Phalcon_Annotations_Adapter_Memory, write) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &key_param, &data); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { ZEPHIR_INIT_VAR(key); @@ -34828,11 +34474,11 @@ static PHP_METHOD(Phalcon_Annotations_Adapter_Xcache, read) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &key_param); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { ZEPHIR_INIT_VAR(key); @@ -34866,11 +34512,11 @@ static PHP_METHOD(Phalcon_Annotations_Adapter_Xcache, write) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &key_param, &data); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { ZEPHIR_INIT_VAR(key); @@ -35086,11 +34732,11 @@ static PHP_METHOD(Phalcon_Assets_Collection, addCss) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 3, &path_param, &local, &filter_param, &attributes); - if (unlikely(Z_TYPE_P(path_param) != IS_STRING && Z_TYPE_P(path_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(path_param) != IS_STRING && Z_TYPE_P(path_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'path' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(path_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(path_param) == IS_STRING)) { zephir_get_strval(path, path_param); } else { ZEPHIR_INIT_VAR(path); @@ -35188,11 +34834,11 @@ static PHP_METHOD(Phalcon_Assets_Collection, addJs) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 3, &path_param, &local, &filter_param, &attributes); - if (unlikely(Z_TYPE_P(path_param) != IS_STRING && Z_TYPE_P(path_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(path_param) != IS_STRING && Z_TYPE_P(path_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'path' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(path_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(path_param) == IS_STRING)) { zephir_get_strval(path, path_param); } else { ZEPHIR_INIT_VAR(path); @@ -35350,11 +34996,11 @@ static PHP_METHOD(Phalcon_Assets_Collection, setTargetPath) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &targetPath_param); - if (unlikely(Z_TYPE_P(targetPath_param) != IS_STRING && Z_TYPE_P(targetPath_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(targetPath_param) != IS_STRING && Z_TYPE_P(targetPath_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'targetPath' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(targetPath_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(targetPath_param) == IS_STRING)) { zephir_get_strval(targetPath, targetPath_param); } else { ZEPHIR_INIT_VAR(targetPath); @@ -35375,11 +35021,11 @@ static PHP_METHOD(Phalcon_Assets_Collection, setSourcePath) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &sourcePath_param); - if (unlikely(Z_TYPE_P(sourcePath_param) != IS_STRING && Z_TYPE_P(sourcePath_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(sourcePath_param) != IS_STRING && Z_TYPE_P(sourcePath_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'sourcePath' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(sourcePath_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(sourcePath_param) == IS_STRING)) { zephir_get_strval(sourcePath, sourcePath_param); } else { ZEPHIR_INIT_VAR(sourcePath); @@ -35400,11 +35046,11 @@ static PHP_METHOD(Phalcon_Assets_Collection, setTargetUri) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &targetUri_param); - if (unlikely(Z_TYPE_P(targetUri_param) != IS_STRING && Z_TYPE_P(targetUri_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(targetUri_param) != IS_STRING && Z_TYPE_P(targetUri_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'targetUri' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(targetUri_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(targetUri_param) == IS_STRING)) { zephir_get_strval(targetUri, targetUri_param); } else { ZEPHIR_INIT_VAR(targetUri); @@ -35425,11 +35071,11 @@ static PHP_METHOD(Phalcon_Assets_Collection, setPrefix) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &prefix_param); - if (unlikely(Z_TYPE_P(prefix_param) != IS_STRING && Z_TYPE_P(prefix_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(prefix_param) != IS_STRING && Z_TYPE_P(prefix_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'prefix' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(prefix_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(prefix_param) == IS_STRING)) { zephir_get_strval(prefix, prefix_param); } else { ZEPHIR_INIT_VAR(prefix); @@ -35449,7 +35095,7 @@ static PHP_METHOD(Phalcon_Assets_Collection, setLocal) { zephir_fetch_params(0, 1, 0, &local_param); - if (unlikely(Z_TYPE_P(local_param) != IS_BOOL)) { + if (UNEXPECTED(Z_TYPE_P(local_param) != IS_BOOL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'local' must be a bool") TSRMLS_CC); RETURN_NULL(); } @@ -35502,7 +35148,7 @@ static PHP_METHOD(Phalcon_Assets_Collection, setTargetLocal) { zephir_fetch_params(0, 1, 0, &targetLocal_param); - if (unlikely(Z_TYPE_P(targetLocal_param) != IS_BOOL)) { + if (UNEXPECTED(Z_TYPE_P(targetLocal_param) != IS_BOOL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'targetLocal' must be a bool") TSRMLS_CC); RETURN_NULL(); } @@ -35546,11 +35192,11 @@ static PHP_METHOD(Phalcon_Assets_Collection, getRealTargetPath) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &basePath_param); - if (unlikely(Z_TYPE_P(basePath_param) != IS_STRING && Z_TYPE_P(basePath_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(basePath_param) != IS_STRING && Z_TYPE_P(basePath_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'basePath' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(basePath_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(basePath_param) == IS_STRING)) { zephir_get_strval(basePath, basePath_param); } else { ZEPHIR_INIT_VAR(basePath); @@ -35897,11 +35543,11 @@ static PHP_METHOD(Phalcon_Assets_Manager, addCss) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 3, &path_param, &local, &filter, &attributes); - if (unlikely(Z_TYPE_P(path_param) != IS_STRING && Z_TYPE_P(path_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(path_param) != IS_STRING && Z_TYPE_P(path_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'path' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(path_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(path_param) == IS_STRING)) { zephir_get_strval(path, path_param); } else { ZEPHIR_INIT_VAR(path); @@ -35971,11 +35617,11 @@ static PHP_METHOD(Phalcon_Assets_Manager, addJs) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 3, &path_param, &local, &filter, &attributes); - if (unlikely(Z_TYPE_P(path_param) != IS_STRING && Z_TYPE_P(path_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(path_param) != IS_STRING && Z_TYPE_P(path_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'path' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(path_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(path_param) == IS_STRING)) { zephir_get_strval(path, path_param); } else { ZEPHIR_INIT_VAR(path); @@ -36045,11 +35691,11 @@ static PHP_METHOD(Phalcon_Assets_Manager, addResourceByType) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &type_param, &resource); - if (unlikely(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'type' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(type_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(type_param) == IS_STRING)) { zephir_get_strval(type, type_param); } else { ZEPHIR_INIT_VAR(type); @@ -36083,11 +35729,11 @@ static PHP_METHOD(Phalcon_Assets_Manager, addInlineCodeByType) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &type_param, &code); - if (unlikely(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'type' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(type_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(type_param) == IS_STRING)) { zephir_get_strval(type, type_param); } else { ZEPHIR_INIT_VAR(type); @@ -36156,11 +35802,11 @@ static PHP_METHOD(Phalcon_Assets_Manager, set) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &id_param, &collection); - if (unlikely(Z_TYPE_P(id_param) != IS_STRING && Z_TYPE_P(id_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(id_param) != IS_STRING && Z_TYPE_P(id_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'id' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(id_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(id_param) == IS_STRING)) { zephir_get_strval(id, id_param); } else { ZEPHIR_INIT_VAR(id); @@ -36181,11 +35827,11 @@ static PHP_METHOD(Phalcon_Assets_Manager, get) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &id_param); - if (unlikely(Z_TYPE_P(id_param) != IS_STRING && Z_TYPE_P(id_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(id_param) != IS_STRING && Z_TYPE_P(id_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'id' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(id_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(id_param) == IS_STRING)) { zephir_get_strval(id, id_param); } else { ZEPHIR_INIT_VAR(id); @@ -36358,8 +36004,8 @@ static PHP_METHOD(Phalcon_Assets_Manager, output) { } zephir_is_iterable(resources, &_6, &_5, 0, 0, "phalcon/assets/manager.zep", 638); for ( - ; zephir_hash_get_current_data_ex(_6, (void**) &_7, &_5) == SUCCESS - ; zephir_hash_move_forward_ex(_6, &_5) + ; zend_hash_get_current_data_ex(_6, (void**) &_7, &_5) == SUCCESS + ; zend_hash_move_forward_ex(_6, &_5) ) { ZEPHIR_GET_HVALUE(resource, _7); filterNeeded = 0; @@ -36461,8 +36107,8 @@ static PHP_METHOD(Phalcon_Assets_Manager, output) { if (ZEPHIR_IS_TRUE(mustFilter)) { zephir_is_iterable(filters, &_16$$31, &_15$$31, 0, 0, "phalcon/assets/manager.zep", 559); for ( - ; zephir_hash_get_current_data_ex(_16$$31, (void**) &_17$$31, &_15$$31) == SUCCESS - ; zephir_hash_move_forward_ex(_16$$31, &_15$$31) + ; zend_hash_get_current_data_ex(_16$$31, (void**) &_17$$31, &_15$$31) == SUCCESS + ; zend_hash_move_forward_ex(_16$$31, &_15$$31) ) { ZEPHIR_GET_HVALUE(filter, _17$$31); if (Z_TYPE_P(filter) != IS_OBJECT) { @@ -36591,8 +36237,8 @@ static PHP_METHOD(Phalcon_Assets_Manager, outputInline) { if (zephir_fast_count_int(codes TSRMLS_CC)) { zephir_is_iterable(codes, &_1$$3, &_0$$3, 0, 0, "phalcon/assets/manager.zep", 744); for ( - ; zephir_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_1$$3, &_0$$3) + ; zend_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS + ; zend_hash_move_forward_ex(_1$$3, &_0$$3) ) { ZEPHIR_GET_HVALUE(code, _2$$3); ZEPHIR_CALL_METHOD(&attributes, code, "getattributes", NULL, 0); @@ -36601,8 +36247,8 @@ static PHP_METHOD(Phalcon_Assets_Manager, outputInline) { zephir_check_call_status(); zephir_is_iterable(filters, &_4$$4, &_3$$4, 0, 0, "phalcon/assets/manager.zep", 737); for ( - ; zephir_hash_get_current_data_ex(_4$$4, (void**) &_5$$4, &_3$$4) == SUCCESS - ; zephir_hash_move_forward_ex(_4$$4, &_3$$4) + ; zend_hash_get_current_data_ex(_4$$4, (void**) &_5$$4, &_3$$4) == SUCCESS + ; zend_hash_move_forward_ex(_4$$4, &_3$$4) ) { ZEPHIR_GET_HVALUE(filter, _5$$4); if (Z_TYPE_P(filter) != IS_OBJECT) { @@ -36807,11 +36453,11 @@ static PHP_METHOD(Phalcon_Assets_Manager, exists) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &id_param); - if (unlikely(Z_TYPE_P(id_param) != IS_STRING && Z_TYPE_P(id_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(id_param) != IS_STRING && Z_TYPE_P(id_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'id' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(id_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(id_param) == IS_STRING)) { zephir_get_strval(id, id_param); } else { ZEPHIR_INIT_VAR(id); @@ -37273,11 +36919,11 @@ static PHP_METHOD(Phalcon_Assets_Filters_Cssmin, filter) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &content_param); - if (unlikely(Z_TYPE_P(content_param) != IS_STRING && Z_TYPE_P(content_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(content_param) != IS_STRING && Z_TYPE_P(content_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'content' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(content_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(content_param) == IS_STRING)) { zephir_get_strval(content, content_param); } else { ZEPHIR_INIT_VAR(content); @@ -37607,11 +37253,11 @@ static PHP_METHOD(Phalcon_Assets_Filters_Jsmin, filter) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &content_param); - if (unlikely(Z_TYPE_P(content_param) != IS_STRING && Z_TYPE_P(content_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(content_param) != IS_STRING && Z_TYPE_P(content_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'content' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(content_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(content_param) == IS_STRING)) { zephir_get_strval(content, content_param); } else { ZEPHIR_INIT_VAR(content); @@ -38062,11 +37708,11 @@ static PHP_METHOD(Phalcon_Assets_Filters_None, filter) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &content_param); - if (unlikely(Z_TYPE_P(content_param) != IS_STRING && Z_TYPE_P(content_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(content_param) != IS_STRING && Z_TYPE_P(content_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'content' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(content_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(content_param) == IS_STRING)) { zephir_get_strval(content, content_param); } else { ZEPHIR_INIT_VAR(content); @@ -38231,11 +37877,11 @@ static PHP_METHOD(Phalcon_Assets_Resource_Css, __construct) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 3, &path_param, &local_param, &filter_param, &attributes); - if (unlikely(Z_TYPE_P(path_param) != IS_STRING && Z_TYPE_P(path_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(path_param) != IS_STRING && Z_TYPE_P(path_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'path' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(path_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(path_param) == IS_STRING)) { zephir_get_strval(path, path_param); } else { ZEPHIR_INIT_VAR(path); @@ -38697,8 +38343,8 @@ static PHP_METHOD(Phalcon_Cache_Multiple, get) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_backends"), PH_NOISY_CC); zephir_is_iterable(_0, &_2, &_1, 0, 0, "phalcon/cache/multiple.zep", 133); for ( - ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS - ; zephir_hash_move_forward_ex(_2, &_1) + ; zend_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS + ; zend_hash_move_forward_ex(_2, &_1) ) { ZEPHIR_GET_HVALUE(backend, _3); ZEPHIR_CALL_METHOD(&content, backend, "get", NULL, 0, keyName, lifetime); @@ -38729,8 +38375,8 @@ static PHP_METHOD(Phalcon_Cache_Multiple, start) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_backends"), PH_NOISY_CC); zephir_is_iterable(_0, &_2, &_1, 0, 0, "phalcon/cache/multiple.zep", 149); for ( - ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS - ; zephir_hash_move_forward_ex(_2, &_1) + ; zend_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS + ; zend_hash_move_forward_ex(_2, &_1) ) { ZEPHIR_GET_HVALUE(backend, _3); ZEPHIR_CALL_METHOD(NULL, backend, "start", NULL, 0, keyName, lifetime); @@ -38767,8 +38413,8 @@ static PHP_METHOD(Phalcon_Cache_Multiple, save) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_backends"), PH_NOISY_CC); zephir_is_iterable(_0, &_2, &_1, 0, 0, "phalcon/cache/multiple.zep", 166); for ( - ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS - ; zephir_hash_move_forward_ex(_2, &_1) + ; zend_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS + ; zend_hash_move_forward_ex(_2, &_1) ) { ZEPHIR_GET_HVALUE(backend, _3); ZEPHIR_CALL_METHOD(NULL, backend, "save", NULL, 0, keyName, content, lifetime, stopBuffer); @@ -38793,8 +38439,8 @@ static PHP_METHOD(Phalcon_Cache_Multiple, delete) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_backends"), PH_NOISY_CC); zephir_is_iterable(_0, &_2, &_1, 0, 0, "phalcon/cache/multiple.zep", 182); for ( - ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS - ; zephir_hash_move_forward_ex(_2, &_1) + ; zend_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS + ; zend_hash_move_forward_ex(_2, &_1) ) { ZEPHIR_GET_HVALUE(backend, _3); ZEPHIR_CALL_METHOD(NULL, backend, "delete", NULL, 0, keyName); @@ -38825,8 +38471,8 @@ static PHP_METHOD(Phalcon_Cache_Multiple, exists) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_backends"), PH_NOISY_CC); zephir_is_iterable(_0, &_2, &_1, 0, 0, "phalcon/cache/multiple.zep", 201); for ( - ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS - ; zephir_hash_move_forward_ex(_2, &_1) + ; zend_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS + ; zend_hash_move_forward_ex(_2, &_1) ) { ZEPHIR_GET_HVALUE(backend, _3); ZEPHIR_CALL_METHOD(&_4$$3, backend, "exists", NULL, 0, keyName, lifetime); @@ -38851,8 +38497,8 @@ static PHP_METHOD(Phalcon_Cache_Multiple, flush) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_backends"), PH_NOISY_CC); zephir_is_iterable(_0, &_2, &_1, 0, 0, "phalcon/cache/multiple.zep", 215); for ( - ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS - ; zephir_hash_move_forward_ex(_2, &_1) + ; zend_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS + ; zend_hash_move_forward_ex(_2, &_1) ) { ZEPHIR_GET_HVALUE(backend, _3); ZEPHIR_CALL_METHOD(NULL, backend, "flush", NULL, 0); @@ -39098,11 +38744,11 @@ static PHP_METHOD(Phalcon_Cache_Backend_Apc, delete) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &keyName_param); - if (unlikely(Z_TYPE_P(keyName_param) != IS_STRING && Z_TYPE_P(keyName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(keyName_param) != IS_STRING && Z_TYPE_P(keyName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'keyName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(keyName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(keyName_param) == IS_STRING)) { zephir_get_strval(keyName, keyName_param); } else { ZEPHIR_INIT_VAR(keyName); @@ -39567,7 +39213,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_File, queryKeys) { } ZEPHIR_CALL_METHOD(&_5$$5, item, "isdir", NULL, 0); zephir_check_call_status(); - if (likely(ZEPHIR_IS_FALSE_IDENTICAL(_5$$5))) { + if (EXPECTED(ZEPHIR_IS_FALSE_IDENTICAL(_5$$5))) { ZEPHIR_CALL_METHOD(&key, item, "getfilename", NULL, 0); zephir_check_call_status(); if (!(ZEPHIR_IS_EMPTY(prefix))) { @@ -39828,7 +39474,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_File, flush) { } ZEPHIR_CALL_METHOD(&_3$$4, item, "isfile", NULL, 0); zephir_check_call_status(); - if (likely(ZEPHIR_IS_TRUE(_3$$4))) { + if (EXPECTED(ZEPHIR_IS_TRUE(_3$$4))) { ZEPHIR_CALL_METHOD(&key, item, "getfilename", NULL, 0); zephir_check_call_status(); ZEPHIR_CALL_METHOD(&cacheFile, item, "getpathname", NULL, 0); @@ -40262,7 +39908,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_Libmemcached, queryKeys) { } ZEPHIR_CALL_METHOD(&keys, memcache, "get", NULL, 0, specialKey); zephir_check_call_status(); - if (unlikely(Z_TYPE_P(keys) != IS_ARRAY)) { + if (UNEXPECTED(Z_TYPE_P(keys) != IS_ARRAY)) { array_init(return_value); RETURN_MM(); } @@ -40271,8 +39917,8 @@ static PHP_METHOD(Phalcon_Cache_Backend_Libmemcached, queryKeys) { ZEPHIR_CPY_WRT(keys, _0); zephir_is_iterable(keys, &_2, &_1, 1, 0, "phalcon/cache/backend/libmemcached.zep", 363); for ( - ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS - ; zephir_hash_move_forward_ex(_2, &_1) + ; zend_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS + ; zend_hash_move_forward_ex(_2, &_1) ) { ZEPHIR_GET_HMKEY(idx, _2, _1); ZEPHIR_GET_HVALUE(key, _3); @@ -40456,14 +40102,14 @@ static PHP_METHOD(Phalcon_Cache_Backend_Libmemcached, flush) { } ZEPHIR_CALL_METHOD(&keys, memcache, "get", NULL, 0, specialKey); zephir_check_call_status(); - if (unlikely(Z_TYPE_P(keys) != IS_ARRAY)) { + if (UNEXPECTED(Z_TYPE_P(keys) != IS_ARRAY)) { RETURN_MM_BOOL(1); } ZEPHIR_INIT_VAR(_0); zephir_is_iterable(keys, &_2, &_1, 0, 0, "phalcon/cache/backend/libmemcached.zep", 509); for ( - ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS - ; zephir_hash_move_forward_ex(_2, &_1) + ; zend_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS + ; zend_hash_move_forward_ex(_2, &_1) ) { ZEPHIR_GET_HMKEY(key, _2, _1); ZEPHIR_GET_HVALUE(_0, _3); @@ -40597,11 +40243,11 @@ static PHP_METHOD(Phalcon_Cache_Backend_Memcache, addServers) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 1, &host_param, &port_param, &persistent_param); - if (unlikely(Z_TYPE_P(host_param) != IS_STRING && Z_TYPE_P(host_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(host_param) != IS_STRING && Z_TYPE_P(host_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'host' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(host_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(host_param) == IS_STRING)) { zephir_get_strval(host, host_param); } else { ZEPHIR_INIT_VAR(host); @@ -40884,7 +40530,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_Memcache, queryKeys) { } ZEPHIR_CALL_METHOD(&keys, memcache, "get", NULL, 0, specialKey); zephir_check_call_status(); - if (unlikely(Z_TYPE_P(keys) != IS_ARRAY)) { + if (UNEXPECTED(Z_TYPE_P(keys) != IS_ARRAY)) { array_init(return_value); RETURN_MM(); } @@ -40893,8 +40539,8 @@ static PHP_METHOD(Phalcon_Cache_Backend_Memcache, queryKeys) { ZEPHIR_CPY_WRT(keys, _0); zephir_is_iterable(keys, &_2, &_1, 1, 0, "phalcon/cache/backend/memcache.zep", 365); for ( - ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS - ; zephir_hash_move_forward_ex(_2, &_1) + ; zend_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS + ; zend_hash_move_forward_ex(_2, &_1) ) { ZEPHIR_GET_HMKEY(idx, _2, _1); ZEPHIR_GET_HVALUE(key, _3); @@ -41076,14 +40722,14 @@ static PHP_METHOD(Phalcon_Cache_Backend_Memcache, flush) { } ZEPHIR_CALL_METHOD(&keys, memcache, "get", NULL, 0, specialKey); zephir_check_call_status(); - if (unlikely(Z_TYPE_P(keys) != IS_ARRAY)) { + if (UNEXPECTED(Z_TYPE_P(keys) != IS_ARRAY)) { RETURN_MM_BOOL(1); } ZEPHIR_INIT_VAR(_0); zephir_is_iterable(keys, &_2, &_1, 0, 0, "phalcon/cache/backend/memcache.zep", 492); for ( - ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS - ; zephir_hash_move_forward_ex(_2, &_1) + ; zend_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS + ; zend_hash_move_forward_ex(_2, &_1) ) { ZEPHIR_GET_HMKEY(key, _2, _1); ZEPHIR_GET_HVALUE(_0, _3); @@ -41281,8 +40927,8 @@ static PHP_METHOD(Phalcon_Cache_Backend_Memory, queryKeys) { zephir_array_keys(keys, data TSRMLS_CC); zephir_is_iterable(keys, &_1, &_0, 1, 0, "phalcon/cache/backend/memory.zep", 177); for ( - ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS - ; zephir_hash_move_forward_ex(_1, &_0) + ; zend_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS + ; zend_hash_move_forward_ex(_1, &_0) ) { ZEPHIR_GET_HMKEY(idx, _1, _0); ZEPHIR_GET_HVALUE(key, _2); @@ -41844,8 +41490,8 @@ static PHP_METHOD(Phalcon_Cache_Backend_Mongo, queryKeys) { } zephir_is_iterable(item, &_7$$4, &_6$$4, 0, 0, "phalcon/cache/backend/mongo.zep", 317); for ( - ; zephir_hash_get_current_data_ex(_7$$4, (void**) &_8$$4, &_6$$4) == SUCCESS - ; zephir_hash_move_forward_ex(_7$$4, &_6$$4) + ; zend_hash_get_current_data_ex(_7$$4, (void**) &_8$$4, &_6$$4) == SUCCESS + ; zend_hash_move_forward_ex(_7$$4, &_6$$4) ) { ZEPHIR_GET_HMKEY(key, _7$$4, _6$$4); ZEPHIR_GET_HVALUE(value, _8$$4); @@ -42128,8 +41774,10 @@ static PHP_METHOD(Phalcon_Cache_Backend_Redis, _connect) { zephir_read_property_this(&options, this_ptr, SL("_options"), PH_NOISY_CC); ZEPHIR_INIT_VAR(redis); object_init_ex(redis, zephir_get_internal_ce(SS("redis") TSRMLS_CC)); - ZEPHIR_CALL_METHOD(NULL, redis, "__construct", NULL, 0); - zephir_check_call_status(); + if (zephir_has_constructor(redis TSRMLS_CC)) { + ZEPHIR_CALL_METHOD(NULL, redis, "__construct", NULL, 0); + zephir_check_call_status(); + } ZEPHIR_OBS_VAR(host); _0 = !(zephir_array_isset_string_fetch(&host, options, SS("host"), 0 TSRMLS_CC)); if (!(_0)) { @@ -42441,8 +42089,8 @@ static PHP_METHOD(Phalcon_Cache_Backend_Redis, queryKeys) { } zephir_is_iterable(keys, &_1, &_0, 1, 0, "phalcon/cache/backend/redis.zep", 362); for ( - ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS - ; zephir_hash_move_forward_ex(_1, &_0) + ; zend_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS + ; zend_hash_move_forward_ex(_1, &_0) ) { ZEPHIR_GET_HMKEY(idx, _1, _0); ZEPHIR_GET_HVALUE(key, _2); @@ -42624,8 +42272,8 @@ static PHP_METHOD(Phalcon_Cache_Backend_Redis, flush) { if (Z_TYPE_P(keys) == IS_ARRAY) { zephir_is_iterable(keys, &_1$$6, &_0$$6, 0, 0, "phalcon/cache/backend/redis.zep", 480); for ( - ; zephir_hash_get_current_data_ex(_1$$6, (void**) &_2$$6, &_0$$6) == SUCCESS - ; zephir_hash_move_forward_ex(_1$$6, &_0$$6) + ; zend_hash_get_current_data_ex(_1$$6, (void**) &_2$$6, &_0$$6) == SUCCESS + ; zend_hash_move_forward_ex(_1$$6, &_0$$6) ) { ZEPHIR_GET_HVALUE(key, _2$$6); ZEPHIR_INIT_NVAR(lastKey); @@ -42921,8 +42569,8 @@ static PHP_METHOD(Phalcon_Cache_Backend_Xcache, queryKeys) { ZEPHIR_INIT_VAR(_2); zephir_is_iterable(keys, &_4, &_3, 0, 0, "phalcon/cache/backend/xcache.zep", 272); for ( - ; zephir_hash_get_current_data_ex(_4, (void**) &_5, &_3) == SUCCESS - ; zephir_hash_move_forward_ex(_4, &_3) + ; zend_hash_get_current_data_ex(_4, (void**) &_5, &_3) == SUCCESS + ; zend_hash_move_forward_ex(_4, &_3) ) { ZEPHIR_GET_HMKEY(key, _4, _3); ZEPHIR_GET_HVALUE(_2, _5); @@ -43087,8 +42735,8 @@ static PHP_METHOD(Phalcon_Cache_Backend_Xcache, flush) { ZEPHIR_INIT_VAR(_1$$5); zephir_is_iterable(keys, &_3$$5, &_2$$5, 1, 0, "phalcon/cache/backend/xcache.zep", 381); for ( - ; zephir_hash_get_current_data_ex(_3$$5, (void**) &_4$$5, &_2$$5) == SUCCESS - ; zephir_hash_move_forward_ex(_3$$5, &_2$$5) + ; zend_hash_get_current_data_ex(_3$$5, (void**) &_4$$5, &_2$$5) == SUCCESS + ; zend_hash_move_forward_ex(_3$$5, &_2$$5) ) { ZEPHIR_GET_HMKEY(key, _3$$5, _2$$5); ZEPHIR_GET_HVALUE(_1$$5, _4$$5); @@ -44148,7 +43796,7 @@ static PHP_METHOD(Phalcon_Cli_Console, setArgument) { if (!str_param) { str = 1; } else { - if (unlikely(Z_TYPE_P(str_param) != IS_BOOL)) { + if (UNEXPECTED(Z_TYPE_P(str_param) != IS_BOOL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'str' must be a bool") TSRMLS_CC); RETURN_MM_NULL(); } @@ -44157,7 +43805,7 @@ static PHP_METHOD(Phalcon_Cli_Console, setArgument) { if (!shift_param) { shift = 1; } else { - if (unlikely(Z_TYPE_P(shift_param) != IS_BOOL)) { + if (UNEXPECTED(Z_TYPE_P(shift_param) != IS_BOOL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'shift' must be a bool") TSRMLS_CC); RETURN_MM_NULL(); } @@ -44183,8 +43831,8 @@ static PHP_METHOD(Phalcon_Cli_Console, setArgument) { } zephir_is_iterable(arguments, &_3, &_2, 0, 0, "phalcon/cli/console.zep", 201); for ( - ; zephir_hash_get_current_data_ex(_3, (void**) &_4, &_2) == SUCCESS - ; zephir_hash_move_forward_ex(_3, &_2) + ; zend_hash_get_current_data_ex(_3, (void**) &_4, &_2) == SUCCESS + ; zend_hash_move_forward_ex(_3, &_2) ) { ZEPHIR_GET_HVALUE(arg, _4); if (Z_TYPE_P(arg) == IS_STRING) { @@ -44823,8 +44471,8 @@ static PHP_METHOD(Phalcon_Cli_Router, handle) { _1$$3 = zephir_fetch_nproperty_this(this_ptr, SL("_routes"), PH_NOISY_CC); zephir_is_iterable(_1$$3, &_3$$3, &_2$$3, 0, 1, "phalcon/cli/router.zep", 307); for ( - ; zephir_hash_get_current_data_ex(_3$$3, (void**) &_4$$3, &_2$$3) == SUCCESS - ; zephir_hash_move_backwards_ex(_3$$3, &_2$$3) + ; zend_hash_get_current_data_ex(_3$$3, (void**) &_4$$3, &_2$$3) == SUCCESS + ; zend_hash_move_backwards_ex(_3$$3, &_2$$3) ) { ZEPHIR_GET_HVALUE(route, _4$$3); ZEPHIR_CALL_METHOD(&pattern, route, "getcompiledpattern", NULL, 0); @@ -44863,8 +44511,8 @@ static PHP_METHOD(Phalcon_Cli_Router, handle) { zephir_check_call_status(); zephir_is_iterable(paths, &_7$$12, &_6$$12, 0, 0, "phalcon/cli/router.zep", 296); for ( - ; zephir_hash_get_current_data_ex(_7$$12, (void**) &_8$$12, &_6$$12) == SUCCESS - ; zephir_hash_move_forward_ex(_7$$12, &_6$$12) + ; zend_hash_get_current_data_ex(_7$$12, (void**) &_8$$12, &_6$$12) == SUCCESS + ; zend_hash_move_forward_ex(_7$$12, &_6$$12) ) { ZEPHIR_GET_HMKEY(part, _7$$12, _6$$12); ZEPHIR_GET_HVALUE(position, _8$$12); @@ -45001,11 +44649,11 @@ static PHP_METHOD(Phalcon_Cli_Router, add) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &pattern_param, &paths); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(pattern, pattern_param); } else { ZEPHIR_INIT_VAR(pattern); @@ -45104,8 +44752,8 @@ static PHP_METHOD(Phalcon_Cli_Router, getRouteById) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_routes"), PH_NOISY_CC); zephir_is_iterable(_0, &_2, &_1, 0, 0, "phalcon/cli/router.zep", 485); for ( - ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS - ; zephir_hash_move_forward_ex(_2, &_1) + ; zend_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS + ; zend_hash_move_forward_ex(_2, &_1) ) { ZEPHIR_GET_HVALUE(route, _3); ZEPHIR_CALL_METHOD(&_4$$3, route, "getrouteid", NULL, 0); @@ -45129,11 +44777,11 @@ static PHP_METHOD(Phalcon_Cli_Router, getRouteByName) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -45144,8 +44792,8 @@ static PHP_METHOD(Phalcon_Cli_Router, getRouteByName) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_routes"), PH_NOISY_CC); zephir_is_iterable(_0, &_2, &_1, 0, 0, "phalcon/cli/router.zep", 500); for ( - ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS - ; zephir_hash_move_forward_ex(_2, &_1) + ; zend_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS + ; zend_hash_move_forward_ex(_2, &_1) ) { ZEPHIR_GET_HVALUE(route, _3); ZEPHIR_CALL_METHOD(&_4$$3, route, "getname", NULL, 0); @@ -45389,11 +45037,11 @@ static PHP_METHOD(Phalcon_Cli_Router_Route, __construct) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &pattern_param, &paths); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(pattern, pattern_param); } else { ZEPHIR_INIT_VAR(pattern); @@ -45436,11 +45084,11 @@ static PHP_METHOD(Phalcon_Cli_Router_Route, compilePattern) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &pattern_param); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(pattern, pattern_param); } else { ZEPHIR_INIT_VAR(pattern); @@ -45539,11 +45187,11 @@ static PHP_METHOD(Phalcon_Cli_Router_Route, extractNamedParams) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &pattern_param); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(pattern, pattern_param); } else { ZEPHIR_INIT_VAR(pattern); @@ -45761,11 +45409,11 @@ static PHP_METHOD(Phalcon_Cli_Router_Route, reConfigure) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &pattern_param, &paths); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(pattern, pattern_param); } else { ZEPHIR_INIT_VAR(pattern); @@ -45895,11 +45543,11 @@ static PHP_METHOD(Phalcon_Cli_Router_Route, setName) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -45978,8 +45626,8 @@ static PHP_METHOD(Phalcon_Cli_Router_Route, getReversedPaths) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_paths"), PH_NOISY_CC); zephir_is_iterable(_0, &_2, &_1, 0, 0, "phalcon/cli/router/route.zep", 516); for ( - ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS - ; zephir_hash_move_forward_ex(_2, &_1) + ; zend_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS + ; zend_hash_move_forward_ex(_2, &_1) ) { ZEPHIR_GET_HMKEY(path, _2, _1); ZEPHIR_GET_HVALUE(position, _3); @@ -45997,11 +45645,11 @@ static PHP_METHOD(Phalcon_Cli_Router_Route, convert) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &name_param, &converter); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -46042,11 +45690,11 @@ static PHP_METHOD(Phalcon_Cli_Router_Route, delimiter) { ZEPHIR_INIT_VAR(delimiter); ZVAL_EMPTY_STRING(delimiter); } else { - if (unlikely(Z_TYPE_P(delimiter_param) != IS_STRING && Z_TYPE_P(delimiter_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(delimiter_param) != IS_STRING && Z_TYPE_P(delimiter_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'delimiter' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(delimiter_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(delimiter_param) == IS_STRING)) { zephir_get_strval(delimiter, delimiter_param); } else { ZEPHIR_INIT_VAR(delimiter); @@ -46162,11 +45810,11 @@ static PHP_METHOD(Phalcon_Config_Adapter_Ini, __construct) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &filePath_param, &mode); - if (unlikely(Z_TYPE_P(filePath_param) != IS_STRING && Z_TYPE_P(filePath_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(filePath_param) != IS_STRING && Z_TYPE_P(filePath_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'filePath' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(filePath_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(filePath_param) == IS_STRING)) { zephir_get_strval(filePath, filePath_param); } else { ZEPHIR_INIT_VAR(filePath); @@ -46202,8 +45850,8 @@ static PHP_METHOD(Phalcon_Config_Adapter_Ini, __construct) { array_init(config); zephir_is_iterable(iniConfig, &_4, &_3, 0, 0, "phalcon/config/adapter/ini.zep", 106); for ( - ; zephir_hash_get_current_data_ex(_4, (void**) &_5, &_3) == SUCCESS - ; zephir_hash_move_forward_ex(_4, &_3) + ; zend_hash_get_current_data_ex(_4, (void**) &_5, &_3) == SUCCESS + ; zend_hash_move_forward_ex(_4, &_3) ) { ZEPHIR_GET_HMKEY(section, _4, _3); ZEPHIR_GET_HVALUE(directives, _5); @@ -46212,8 +45860,8 @@ static PHP_METHOD(Phalcon_Config_Adapter_Ini, __construct) { array_init(sections); zephir_is_iterable(directives, &_7$$6, &_6$$6, 0, 0, "phalcon/config/adapter/ini.zep", 98); for ( - ; zephir_hash_get_current_data_ex(_7$$6, (void**) &_8$$6, &_6$$6) == SUCCESS - ; zephir_hash_move_forward_ex(_7$$6, &_6$$6) + ; zend_hash_get_current_data_ex(_7$$6, (void**) &_8$$6, &_6$$6) == SUCCESS + ; zend_hash_move_forward_ex(_7$$6, &_6$$6) ) { ZEPHIR_GET_HMKEY(path, _7$$6, _6$$6); ZEPHIR_GET_HVALUE(lastValue, _8$$6); @@ -46251,11 +45899,11 @@ static PHP_METHOD(Phalcon_Config_Adapter_Ini, _parseIniString) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &path_param, &value); - if (unlikely(Z_TYPE_P(path_param) != IS_STRING && Z_TYPE_P(path_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(path_param) != IS_STRING && Z_TYPE_P(path_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'path' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(path_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(path_param) == IS_STRING)) { zephir_get_strval(path, path_param); } else { ZEPHIR_INIT_VAR(path); @@ -46311,8 +45959,8 @@ static PHP_METHOD(Phalcon_Config_Adapter_Ini, _cast) { if (Z_TYPE_P(ini) == IS_ARRAY) { zephir_is_iterable(ini, &_1$$3, &_0$$3, 1, 0, "phalcon/config/adapter/ini.zep", 152); for ( - ; zephir_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_1$$3, &_0$$3) + ; zend_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS + ; zend_hash_move_forward_ex(_1$$3, &_0$$3) ) { ZEPHIR_GET_HMKEY(key, _1$$3, _0$$3); ZEPHIR_GET_HVALUE(val, _2$$3); @@ -46399,11 +46047,11 @@ static PHP_METHOD(Phalcon_Config_Adapter_Json, __construct) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &filePath_param); - if (unlikely(Z_TYPE_P(filePath_param) != IS_STRING && Z_TYPE_P(filePath_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(filePath_param) != IS_STRING && Z_TYPE_P(filePath_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'filePath' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(filePath_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(filePath_param) == IS_STRING)) { zephir_get_strval(filePath, filePath_param); } else { ZEPHIR_INIT_VAR(filePath); @@ -46449,11 +46097,11 @@ static PHP_METHOD(Phalcon_Config_Adapter_Php, __construct) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &filePath_param); - if (unlikely(Z_TYPE_P(filePath_param) != IS_STRING && Z_TYPE_P(filePath_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(filePath_param) != IS_STRING && Z_TYPE_P(filePath_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'filePath' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(filePath_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(filePath_param) == IS_STRING)) { zephir_get_strval(filePath, filePath_param); } else { ZEPHIR_INIT_VAR(filePath); @@ -46500,11 +46148,11 @@ static PHP_METHOD(Phalcon_Config_Adapter_Yaml, __construct) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &filePath_param, &callbacks_param); - if (unlikely(Z_TYPE_P(filePath_param) != IS_STRING && Z_TYPE_P(filePath_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(filePath_param) != IS_STRING && Z_TYPE_P(filePath_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'filePath' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(filePath_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(filePath_param) == IS_STRING)) { zephir_get_strval(filePath, filePath_param); } else { ZEPHIR_INIT_VAR(filePath); @@ -46741,11 +46389,11 @@ static PHP_METHOD(Phalcon_Db_Adapter, fetchOne) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 3, &sqlQuery_param, &fetchMode, &bindParams, &bindTypes); - if (unlikely(Z_TYPE_P(sqlQuery_param) != IS_STRING && Z_TYPE_P(sqlQuery_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(sqlQuery_param) != IS_STRING && Z_TYPE_P(sqlQuery_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'sqlQuery' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(sqlQuery_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(sqlQuery_param) == IS_STRING)) { zephir_get_strval(sqlQuery, sqlQuery_param); } else { ZEPHIR_INIT_VAR(sqlQuery); @@ -46898,8 +46546,8 @@ static PHP_METHOD(Phalcon_Db_Adapter, insert) { array_init(bindDataTypes); zephir_is_iterable(values, &_3, &_2, 0, 0, "phalcon/db/adapter.zep", 349); for ( - ; zephir_hash_get_current_data_ex(_3, (void**) &_4, &_2) == SUCCESS - ; zephir_hash_move_forward_ex(_3, &_2) + ; zend_hash_get_current_data_ex(_3, (void**) &_4, &_2) == SUCCESS + ; zend_hash_move_forward_ex(_3, &_2) ) { ZEPHIR_GET_HMKEY(position, _3, _2); ZEPHIR_GET_HVALUE(value, _4); @@ -46937,8 +46585,8 @@ static PHP_METHOD(Phalcon_Db_Adapter, insert) { array_init(escapedFields); zephir_is_iterable(fields, &_10$$11, &_9$$11, 0, 0, "phalcon/db/adapter.zep", 361); for ( - ; zephir_hash_get_current_data_ex(_10$$11, (void**) &_11$$11, &_9$$11) == SUCCESS - ; zephir_hash_move_forward_ex(_10$$11, &_9$$11) + ; zend_hash_get_current_data_ex(_10$$11, (void**) &_11$$11, &_9$$11) == SUCCESS + ; zend_hash_move_forward_ex(_10$$11, &_9$$11) ) { ZEPHIR_GET_HVALUE(field, _11$$11); ZEPHIR_CALL_METHOD(&_12$$12, this_ptr, "escapeidentifier", &_8, 0, field); @@ -46991,8 +46639,8 @@ static PHP_METHOD(Phalcon_Db_Adapter, insertAsDict) { } zephir_is_iterable(data, &_2, &_1, 0, 0, "phalcon/db/adapter.zep", 412); for ( - ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS - ; zephir_hash_move_forward_ex(_2, &_1) + ; zend_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS + ; zend_hash_move_forward_ex(_2, &_1) ) { ZEPHIR_GET_HMKEY(field, _2, _1); ZEPHIR_GET_HVALUE(value, _3); @@ -47032,8 +46680,8 @@ static PHP_METHOD(Phalcon_Db_Adapter, update) { array_init(bindDataTypes); zephir_is_iterable(values, &_1, &_0, 0, 0, "phalcon/db/adapter.zep", 496); for ( - ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS - ; zephir_hash_move_forward_ex(_1, &_0) + ; zend_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS + ; zend_hash_move_forward_ex(_1, &_0) ) { ZEPHIR_GET_HMKEY(position, _1, _0); ZEPHIR_GET_HVALUE(value, _2); @@ -47142,8 +46790,8 @@ static PHP_METHOD(Phalcon_Db_Adapter, updateAsDict) { } zephir_is_iterable(data, &_2, &_1, 0, 0, "phalcon/db/adapter.zep", 591); for ( - ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS - ; zephir_hash_move_forward_ex(_2, &_1) + ; zend_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS + ; zend_hash_move_forward_ex(_2, &_1) ) { ZEPHIR_GET_HMKEY(field, _2, _1); ZEPHIR_GET_HVALUE(value, _3); @@ -47244,11 +46892,11 @@ static PHP_METHOD(Phalcon_Db_Adapter, limit) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &sqlQuery_param, &number_param); - if (unlikely(Z_TYPE_P(sqlQuery_param) != IS_STRING && Z_TYPE_P(sqlQuery_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(sqlQuery_param) != IS_STRING && Z_TYPE_P(sqlQuery_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'sqlQuery' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(sqlQuery_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(sqlQuery_param) == IS_STRING)) { zephir_get_strval(sqlQuery, sqlQuery_param); } else { ZEPHIR_INIT_VAR(sqlQuery); @@ -47275,11 +46923,11 @@ static PHP_METHOD(Phalcon_Db_Adapter, tableExists) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &tableName_param, &schemaName_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { ZEPHIR_INIT_VAR(tableName); @@ -47289,11 +46937,11 @@ static PHP_METHOD(Phalcon_Db_Adapter, tableExists) { ZEPHIR_INIT_VAR(schemaName); ZVAL_EMPTY_STRING(schemaName); } else { - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(schemaName); @@ -47323,11 +46971,11 @@ static PHP_METHOD(Phalcon_Db_Adapter, viewExists) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &viewName_param, &schemaName_param); - if (unlikely(Z_TYPE_P(viewName_param) != IS_STRING && Z_TYPE_P(viewName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(viewName_param) != IS_STRING && Z_TYPE_P(viewName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'viewName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(viewName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(viewName_param) == IS_STRING)) { zephir_get_strval(viewName, viewName_param); } else { ZEPHIR_INIT_VAR(viewName); @@ -47337,11 +46985,11 @@ static PHP_METHOD(Phalcon_Db_Adapter, viewExists) { ZEPHIR_INIT_VAR(schemaName); ZVAL_EMPTY_STRING(schemaName); } else { - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(schemaName); @@ -47371,11 +47019,11 @@ static PHP_METHOD(Phalcon_Db_Adapter, forUpdate) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &sqlQuery_param); - if (unlikely(Z_TYPE_P(sqlQuery_param) != IS_STRING && Z_TYPE_P(sqlQuery_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(sqlQuery_param) != IS_STRING && Z_TYPE_P(sqlQuery_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'sqlQuery' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(sqlQuery_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(sqlQuery_param) == IS_STRING)) { zephir_get_strval(sqlQuery, sqlQuery_param); } else { ZEPHIR_INIT_VAR(sqlQuery); @@ -47399,11 +47047,11 @@ static PHP_METHOD(Phalcon_Db_Adapter, sharedLock) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &sqlQuery_param); - if (unlikely(Z_TYPE_P(sqlQuery_param) != IS_STRING && Z_TYPE_P(sqlQuery_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(sqlQuery_param) != IS_STRING && Z_TYPE_P(sqlQuery_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'sqlQuery' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(sqlQuery_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(sqlQuery_param) == IS_STRING)) { zephir_get_strval(sqlQuery, sqlQuery_param); } else { ZEPHIR_INIT_VAR(sqlQuery); @@ -47428,21 +47076,21 @@ static PHP_METHOD(Phalcon_Db_Adapter, createTable) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &definition_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { ZEPHIR_INIT_VAR(tableName); ZVAL_EMPTY_STRING(tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(schemaName); @@ -47479,11 +47127,11 @@ static PHP_METHOD(Phalcon_Db_Adapter, dropTable) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &tableName_param, &schemaName_param, &ifExists_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { ZEPHIR_INIT_VAR(tableName); @@ -47493,11 +47141,11 @@ static PHP_METHOD(Phalcon_Db_Adapter, dropTable) { ZEPHIR_INIT_VAR(schemaName); ZVAL_EMPTY_STRING(schemaName); } else { - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(schemaName); @@ -47536,11 +47184,11 @@ static PHP_METHOD(Phalcon_Db_Adapter, createView) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 1, &viewName_param, &definition_param, &schemaName); - if (unlikely(Z_TYPE_P(viewName_param) != IS_STRING && Z_TYPE_P(viewName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(viewName_param) != IS_STRING && Z_TYPE_P(viewName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'viewName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(viewName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(viewName_param) == IS_STRING)) { zephir_get_strval(viewName, viewName_param); } else { ZEPHIR_INIT_VAR(viewName); @@ -47575,11 +47223,11 @@ static PHP_METHOD(Phalcon_Db_Adapter, dropView) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &viewName_param, &schemaName_param, &ifExists_param); - if (unlikely(Z_TYPE_P(viewName_param) != IS_STRING && Z_TYPE_P(viewName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(viewName_param) != IS_STRING && Z_TYPE_P(viewName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'viewName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(viewName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(viewName_param) == IS_STRING)) { zephir_get_strval(viewName, viewName_param); } else { ZEPHIR_INIT_VAR(viewName); @@ -47589,11 +47237,11 @@ static PHP_METHOD(Phalcon_Db_Adapter, dropView) { ZEPHIR_INIT_VAR(schemaName); ZVAL_EMPTY_STRING(schemaName); } else { - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(schemaName); @@ -47631,21 +47279,21 @@ static PHP_METHOD(Phalcon_Db_Adapter, addColumn) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &column); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { ZEPHIR_INIT_VAR(tableName); ZVAL_EMPTY_STRING(tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(schemaName); @@ -47671,21 +47319,21 @@ static PHP_METHOD(Phalcon_Db_Adapter, modifyColumn) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 1, &tableName_param, &schemaName_param, &column, ¤tColumn); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { ZEPHIR_INIT_VAR(tableName); ZVAL_EMPTY_STRING(tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(schemaName); @@ -47714,21 +47362,21 @@ static PHP_METHOD(Phalcon_Db_Adapter, dropColumn) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &columnName_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { ZEPHIR_INIT_VAR(tableName); ZVAL_EMPTY_STRING(tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(schemaName); @@ -47755,21 +47403,21 @@ static PHP_METHOD(Phalcon_Db_Adapter, addIndex) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &index); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { ZEPHIR_INIT_VAR(tableName); ZVAL_EMPTY_STRING(tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(schemaName); @@ -47795,21 +47443,21 @@ static PHP_METHOD(Phalcon_Db_Adapter, dropIndex) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &indexName); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { ZEPHIR_INIT_VAR(tableName); ZVAL_EMPTY_STRING(tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(schemaName); @@ -47835,21 +47483,21 @@ static PHP_METHOD(Phalcon_Db_Adapter, addPrimaryKey) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &index); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { ZEPHIR_INIT_VAR(tableName); ZVAL_EMPTY_STRING(tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(schemaName); @@ -47875,21 +47523,21 @@ static PHP_METHOD(Phalcon_Db_Adapter, dropPrimaryKey) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &tableName_param, &schemaName_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { ZEPHIR_INIT_VAR(tableName); ZVAL_EMPTY_STRING(tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(schemaName); @@ -47915,21 +47563,21 @@ static PHP_METHOD(Phalcon_Db_Adapter, addForeignKey) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &reference); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { ZEPHIR_INIT_VAR(tableName); ZVAL_EMPTY_STRING(tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(schemaName); @@ -47955,31 +47603,31 @@ static PHP_METHOD(Phalcon_Db_Adapter, dropForeignKey) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &referenceName_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { ZEPHIR_INIT_VAR(tableName); ZVAL_EMPTY_STRING(tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(schemaName); ZVAL_EMPTY_STRING(schemaName); } - if (unlikely(Z_TYPE_P(referenceName_param) != IS_STRING && Z_TYPE_P(referenceName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(referenceName_param) != IS_STRING && Z_TYPE_P(referenceName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'referenceName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(referenceName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(referenceName_param) == IS_STRING)) { zephir_get_strval(referenceName, referenceName_param); } else { ZEPHIR_INIT_VAR(referenceName); @@ -48028,11 +47676,11 @@ static PHP_METHOD(Phalcon_Db_Adapter, listTables) { ZEPHIR_INIT_VAR(schemaName); ZVAL_EMPTY_STRING(schemaName); } else { - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(schemaName); @@ -48052,8 +47700,8 @@ static PHP_METHOD(Phalcon_Db_Adapter, listTables) { zephir_check_call_status(); zephir_is_iterable(_0, &_5, &_4, 0, 0, "phalcon/db/adapter.zep", 869); for ( - ; zephir_hash_get_current_data_ex(_5, (void**) &_6, &_4) == SUCCESS - ; zephir_hash_move_forward_ex(_5, &_4) + ; zend_hash_get_current_data_ex(_5, (void**) &_6, &_4) == SUCCESS + ; zend_hash_move_forward_ex(_5, &_4) ) { ZEPHIR_GET_HVALUE(table, _6); zephir_array_fetch_long(&_7$$3, table, 0, PH_NOISY | PH_READONLY, "phalcon/db/adapter.zep", 867 TSRMLS_CC); @@ -48078,11 +47726,11 @@ static PHP_METHOD(Phalcon_Db_Adapter, listViews) { ZEPHIR_INIT_VAR(schemaName); ZVAL_EMPTY_STRING(schemaName); } else { - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(schemaName); @@ -48102,8 +47750,8 @@ static PHP_METHOD(Phalcon_Db_Adapter, listViews) { zephir_check_call_status(); zephir_is_iterable(_0, &_5, &_4, 0, 0, "phalcon/db/adapter.zep", 889); for ( - ; zephir_hash_get_current_data_ex(_5, (void**) &_6, &_4) == SUCCESS - ; zephir_hash_move_forward_ex(_5, &_4) + ; zend_hash_get_current_data_ex(_5, (void**) &_6, &_4) == SUCCESS + ; zend_hash_move_forward_ex(_5, &_4) ) { ZEPHIR_GET_HVALUE(table, _6); zephir_array_fetch_long(&_7$$3, table, 0, PH_NOISY | PH_READONLY, "phalcon/db/adapter.zep", 887 TSRMLS_CC); @@ -48125,11 +47773,11 @@ static PHP_METHOD(Phalcon_Db_Adapter, describeIndexes) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &table_param, &schema); - if (unlikely(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'table' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(table_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(table_param) == IS_STRING)) { zephir_get_strval(table, table_param); } else { ZEPHIR_INIT_VAR(table); @@ -48151,8 +47799,8 @@ static PHP_METHOD(Phalcon_Db_Adapter, describeIndexes) { zephir_check_call_status(); zephir_is_iterable(_0, &_5, &_4, 0, 0, "phalcon/db/adapter.zep", 923); for ( - ; zephir_hash_get_current_data_ex(_5, (void**) &_6, &_4) == SUCCESS - ; zephir_hash_move_forward_ex(_5, &_4) + ; zend_hash_get_current_data_ex(_5, (void**) &_6, &_4) == SUCCESS + ; zend_hash_move_forward_ex(_5, &_4) ) { ZEPHIR_GET_HVALUE(index, _6); zephir_array_fetch_long(&keyName, index, 2, PH_NOISY | PH_READONLY, "phalcon/db/adapter.zep", 912 TSRMLS_CC); @@ -48171,8 +47819,8 @@ static PHP_METHOD(Phalcon_Db_Adapter, describeIndexes) { array_init(indexObjects); zephir_is_iterable(indexes, &_9, &_8, 0, 0, "phalcon/db/adapter.zep", 932); for ( - ; zephir_hash_get_current_data_ex(_9, (void**) &_10, &_8) == SUCCESS - ; zephir_hash_move_forward_ex(_9, &_8) + ; zend_hash_get_current_data_ex(_9, (void**) &_10, &_8) == SUCCESS + ; zend_hash_move_forward_ex(_9, &_8) ) { ZEPHIR_GET_HMKEY(name, _9, _8); ZEPHIR_GET_HVALUE(indexColumns, _10); @@ -48199,11 +47847,11 @@ static PHP_METHOD(Phalcon_Db_Adapter, describeReferences) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &table_param, &schema_param); - if (unlikely(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'table' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(table_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(table_param) == IS_STRING)) { zephir_get_strval(table, table_param); } else { ZEPHIR_INIT_VAR(table); @@ -48213,11 +47861,11 @@ static PHP_METHOD(Phalcon_Db_Adapter, describeReferences) { ZEPHIR_INIT_VAR(schema); ZVAL_EMPTY_STRING(schema); } else { - if (unlikely(Z_TYPE_P(schema_param) != IS_STRING && Z_TYPE_P(schema_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schema_param) != IS_STRING && Z_TYPE_P(schema_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schema' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schema_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schema_param) == IS_STRING)) { zephir_get_strval(schema, schema_param); } else { ZEPHIR_INIT_VAR(schema); @@ -48237,8 +47885,8 @@ static PHP_METHOD(Phalcon_Db_Adapter, describeReferences) { zephir_check_call_status(); zephir_is_iterable(_0, &_5, &_4, 0, 0, "phalcon/db/adapter.zep", 978); for ( - ; zephir_hash_get_current_data_ex(_5, (void**) &_6, &_4) == SUCCESS - ; zephir_hash_move_forward_ex(_5, &_4) + ; zend_hash_get_current_data_ex(_5, (void**) &_6, &_4) == SUCCESS + ; zend_hash_move_forward_ex(_5, &_4) ) { ZEPHIR_GET_HVALUE(reference, _6); zephir_array_fetch_long(&constraintName, reference, 2, PH_NOISY | PH_READONLY, "phalcon/db/adapter.zep", 954 TSRMLS_CC); @@ -48281,8 +47929,8 @@ static PHP_METHOD(Phalcon_Db_Adapter, describeReferences) { array_init(referenceObjects); zephir_is_iterable(references, &_15, &_14, 0, 0, "phalcon/db/adapter.zep", 988); for ( - ; zephir_hash_get_current_data_ex(_15, (void**) &_16, &_14) == SUCCESS - ; zephir_hash_move_forward_ex(_15, &_14) + ; zend_hash_get_current_data_ex(_15, (void**) &_16, &_14) == SUCCESS + ; zend_hash_move_forward_ex(_15, &_14) ) { ZEPHIR_GET_HMKEY(name, _15, _14); ZEPHIR_GET_HVALUE(arrayReference, _16); @@ -48319,11 +47967,11 @@ static PHP_METHOD(Phalcon_Db_Adapter, tableOptions) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &tableName_param, &schemaName_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { ZEPHIR_INIT_VAR(tableName); @@ -48362,11 +48010,11 @@ static PHP_METHOD(Phalcon_Db_Adapter, createSavepoint) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -48399,11 +48047,11 @@ static PHP_METHOD(Phalcon_Db_Adapter, releaseSavepoint) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -48441,11 +48089,11 @@ static PHP_METHOD(Phalcon_Db_Adapter, rollbackSavepoint) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -48948,11 +48596,11 @@ static PHP_METHOD(Phalcon_Db_Column, __construct) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &name_param, &definition_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -49322,11 +48970,11 @@ static PHP_METHOD(Phalcon_Db_Dialect, escapeSchema) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &str_param, &escapeChar_param); - if (unlikely(Z_TYPE_P(str_param) != IS_STRING && Z_TYPE_P(str_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(str_param) != IS_STRING && Z_TYPE_P(str_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'str' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(str_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(str_param) == IS_STRING)) { zephir_get_strval(str, str_param); } else { ZEPHIR_INIT_VAR(str); @@ -49368,11 +49016,11 @@ static PHP_METHOD(Phalcon_Db_Dialect, escape) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &str_param, &escapeChar_param); - if (unlikely(Z_TYPE_P(str_param) != IS_STRING && Z_TYPE_P(str_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(str_param) != IS_STRING && Z_TYPE_P(str_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'str' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(str_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(str_param) == IS_STRING)) { zephir_get_strval(str, str_param); } else { ZEPHIR_INIT_VAR(str); @@ -49419,8 +49067,8 @@ static PHP_METHOD(Phalcon_Db_Dialect, escape) { ZEPHIR_CPY_WRT(newParts, parts); zephir_is_iterable(parts, &_9, &_8, 0, 0, "phalcon/db/dialect.zep", 105); for ( - ; zephir_hash_get_current_data_ex(_9, (void**) &_10, &_8) == SUCCESS - ; zephir_hash_move_forward_ex(_9, &_8) + ; zend_hash_get_current_data_ex(_9, (void**) &_10, &_8) == SUCCESS + ; zend_hash_move_forward_ex(_9, &_8) ) { ZEPHIR_GET_HMKEY(key, _9, _8); ZEPHIR_GET_HVALUE(part, _10); @@ -49457,11 +49105,11 @@ static PHP_METHOD(Phalcon_Db_Dialect, limit) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &sqlQuery_param, &number); - if (unlikely(Z_TYPE_P(sqlQuery_param) != IS_STRING && Z_TYPE_P(sqlQuery_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(sqlQuery_param) != IS_STRING && Z_TYPE_P(sqlQuery_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'sqlQuery' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(sqlQuery_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(sqlQuery_param) == IS_STRING)) { zephir_get_strval(sqlQuery, sqlQuery_param); } else { ZEPHIR_INIT_VAR(sqlQuery); @@ -49500,11 +49148,11 @@ static PHP_METHOD(Phalcon_Db_Dialect, forUpdate) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &sqlQuery_param); - if (unlikely(Z_TYPE_P(sqlQuery_param) != IS_STRING && Z_TYPE_P(sqlQuery_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(sqlQuery_param) != IS_STRING && Z_TYPE_P(sqlQuery_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'sqlQuery' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(sqlQuery_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(sqlQuery_param) == IS_STRING)) { zephir_get_strval(sqlQuery, sqlQuery_param); } else { ZEPHIR_INIT_VAR(sqlQuery); @@ -49525,11 +49173,11 @@ static PHP_METHOD(Phalcon_Db_Dialect, sharedLock) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &sqlQuery_param); - if (unlikely(Z_TYPE_P(sqlQuery_param) != IS_STRING && Z_TYPE_P(sqlQuery_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(sqlQuery_param) != IS_STRING && Z_TYPE_P(sqlQuery_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'sqlQuery' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(sqlQuery_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(sqlQuery_param) == IS_STRING)) { zephir_get_strval(sqlQuery, sqlQuery_param); } else { ZEPHIR_INIT_VAR(sqlQuery); @@ -49571,8 +49219,8 @@ static PHP_METHOD(Phalcon_Db_Dialect, getColumnList) { array_init(columns); zephir_is_iterable(columnList, &_1, &_0, 0, 0, "phalcon/db/dialect.zep", 182); for ( - ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS - ; zephir_hash_move_forward_ex(_1, &_0) + ; zend_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS + ; zend_hash_move_forward_ex(_1, &_0) ) { ZEPHIR_GET_HVALUE(column, _2); ZEPHIR_CALL_METHOD(&_3$$3, this_ptr, "getsqlcolumn", &_4, 40, column, escapeChar, bindCounts); @@ -50024,11 +49672,11 @@ static PHP_METHOD(Phalcon_Db_Dialect, createSavepoint) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -50049,11 +49697,11 @@ static PHP_METHOD(Phalcon_Db_Dialect, releaseSavepoint) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -50074,11 +49722,11 @@ static PHP_METHOD(Phalcon_Db_Dialect, rollbackSavepoint) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -50397,8 +50045,8 @@ static PHP_METHOD(Phalcon_Db_Dialect, getSqlExpressionList) { if (_1) { zephir_is_iterable(values, &_3$$4, &_2$$4, 0, 0, "phalcon/db/dialect.zep", 684); for ( - ; zephir_hash_get_current_data_ex(_3$$4, (void**) &_4$$4, &_2$$4) == SUCCESS - ; zephir_hash_move_forward_ex(_3$$4, &_2$$4) + ; zend_hash_get_current_data_ex(_3$$4, (void**) &_4$$4, &_2$$4) == SUCCESS + ; zend_hash_move_forward_ex(_3$$4, &_2$$4) ) { ZEPHIR_GET_HVALUE(item, _4$$4); ZEPHIR_CALL_METHOD(&_5$$5, this_ptr, "getsqlexpression", &_6, 0, item, escapeChar, bindCounts); @@ -50555,8 +50203,8 @@ static PHP_METHOD(Phalcon_Db_Dialect, getSqlExpressionCase) { zephir_array_fetch_string(&_3, expression, SL("when-clauses"), PH_NOISY | PH_READONLY, "phalcon/db/dialect.zep", 741 TSRMLS_CC); zephir_is_iterable(_3, &_5, &_4, 0, 0, "phalcon/db/dialect.zep", 752); for ( - ; zephir_hash_get_current_data_ex(_5, (void**) &_6, &_4) == SUCCESS - ; zephir_hash_move_forward_ex(_5, &_4) + ; zend_hash_get_current_data_ex(_5, (void**) &_6, &_4) == SUCCESS + ; zend_hash_move_forward_ex(_5, &_4) ) { ZEPHIR_GET_HVALUE(whenClause, _6); zephir_array_fetch_string(&_7$$3, whenClause, SL("type"), PH_NOISY | PH_READONLY, "phalcon/db/dialect.zep", 742 TSRMLS_CC); @@ -50609,8 +50257,8 @@ static PHP_METHOD(Phalcon_Db_Dialect, getSqlExpressionFrom) { array_init(tables); zephir_is_iterable(expression, &_1$$3, &_0$$3, 0, 0, "phalcon/db/dialect.zep", 770); for ( - ; zephir_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_1$$3, &_0$$3) + ; zend_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS + ; zend_hash_move_forward_ex(_1$$3, &_0$$3) ) { ZEPHIR_GET_HVALUE(table, _2$$3); ZEPHIR_CALL_METHOD(&_3$$4, this_ptr, "getsqltable", &_4, 62, table, escapeChar); @@ -50658,8 +50306,8 @@ static PHP_METHOD(Phalcon_Db_Dialect, getSqlExpressionJoins) { ZVAL_STRING(joinType, "", 1); zephir_is_iterable(expression, &_1, &_0, 0, 0, "phalcon/db/dialect.zep", 818); for ( - ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS - ; zephir_hash_move_forward_ex(_1, &_0) + ; zend_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS + ; zend_hash_move_forward_ex(_1, &_0) ) { ZEPHIR_GET_HVALUE(join, _2); ZEPHIR_OBS_NVAR(joinConditionsArray); @@ -50676,8 +50324,8 @@ static PHP_METHOD(Phalcon_Db_Dialect, getSqlExpressionJoins) { array_init(joinCondition); zephir_is_iterable(joinConditionsArray, &_6$$6, &_5$$6, 0, 0, "phalcon/db/dialect.zep", 803); for ( - ; zephir_hash_get_current_data_ex(_6$$6, (void**) &_7$$6, &_5$$6) == SUCCESS - ; zephir_hash_move_forward_ex(_6$$6, &_5$$6) + ; zend_hash_get_current_data_ex(_6$$6, (void**) &_7$$6, &_5$$6) == SUCCESS + ; zend_hash_move_forward_ex(_6$$6, &_5$$6) ) { ZEPHIR_GET_HVALUE(condition, _7$$6); ZEPHIR_CALL_METHOD(&_8$$7, this_ptr, "getsqlexpression", &_4, 46, condition, escapeChar, bindCounts); @@ -50770,11 +50418,11 @@ static PHP_METHOD(Phalcon_Db_Dialect, getSqlExpressionGroupBy) { array_init(fields); zephir_is_iterable(expression, &_1$$3, &_0$$3, 0, 0, "phalcon/db/dialect.zep", 856); for ( - ; zephir_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_1$$3, &_0$$3) + ; zend_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS + ; zend_hash_move_forward_ex(_1$$3, &_0$$3) ) { ZEPHIR_GET_HVALUE(field, _2$$3); - if (unlikely(Z_TYPE_P(field) != IS_ARRAY)) { + if (UNEXPECTED(Z_TYPE_P(field) != IS_ARRAY)) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Invalid SQL-GROUP-BY expression", "phalcon/db/dialect.zep", 850); return; } @@ -50853,11 +50501,11 @@ static PHP_METHOD(Phalcon_Db_Dialect, getSqlExpressionOrderBy) { array_init(fields); zephir_is_iterable(expression, &_1$$3, &_0$$3, 0, 0, "phalcon/db/dialect.zep", 902); for ( - ; zephir_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_1$$3, &_0$$3) + ; zend_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS + ; zend_hash_move_forward_ex(_1$$3, &_0$$3) ) { ZEPHIR_GET_HVALUE(field, _2$$3); - if (unlikely(Z_TYPE_P(field) != IS_ARRAY)) { + if (UNEXPECTED(Z_TYPE_P(field) != IS_ARRAY)) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Invalid SQL-ORDER-BY expression", "phalcon/db/dialect.zep", 887); return; } @@ -50963,11 +50611,11 @@ static PHP_METHOD(Phalcon_Db_Dialect, prepareColumnAlias) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &qualified_param, &alias_param, &escapeChar_param); - if (unlikely(Z_TYPE_P(qualified_param) != IS_STRING && Z_TYPE_P(qualified_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(qualified_param) != IS_STRING && Z_TYPE_P(qualified_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'qualified' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(qualified_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(qualified_param) == IS_STRING)) { zephir_get_strval(qualified, qualified_param); } else { ZEPHIR_INIT_VAR(qualified); @@ -51007,11 +50655,11 @@ static PHP_METHOD(Phalcon_Db_Dialect, prepareTable) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 3, &table_param, &schema_param, &alias_param, &escapeChar_param); - if (unlikely(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'table' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(table_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(table_param) == IS_STRING)) { zephir_get_strval(table, table_param); } else { ZEPHIR_INIT_VAR(table); @@ -51068,11 +50716,11 @@ static PHP_METHOD(Phalcon_Db_Dialect, prepareQualified) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &column_param, &domain_param, &escapeChar_param); - if (unlikely(Z_TYPE_P(column_param) != IS_STRING && Z_TYPE_P(column_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(column_param) != IS_STRING && Z_TYPE_P(column_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'column' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(column_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(column_param) == IS_STRING)) { zephir_get_strval(column, column_param); } else { ZEPHIR_INIT_VAR(column); @@ -51261,11 +50909,11 @@ static PHP_METHOD(Phalcon_Db_Index, __construct) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 1, &name_param, &columns_param, &type); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -51668,11 +51316,11 @@ static PHP_METHOD(Phalcon_Db_Reference, __construct) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &name_param, &definition_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -51955,8 +51603,8 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo, connect) { array_init(dsnParts); zephir_is_iterable(descriptor, &_3$$13, &_2$$13, 0, 0, "phalcon/db/adapter/pdo.zep", 156); for ( - ; zephir_hash_get_current_data_ex(_3$$13, (void**) &_4$$13, &_2$$13) == SUCCESS - ; zephir_hash_move_forward_ex(_3$$13, &_2$$13) + ; zend_hash_get_current_data_ex(_3$$13, (void**) &_4$$13, &_2$$13) == SUCCESS + ; zend_hash_move_forward_ex(_3$$13, &_2$$13) ) { ZEPHIR_GET_HMKEY(key, _3$$13, _2$$13); ZEPHIR_GET_HVALUE(value, _4$$13); @@ -51991,11 +51639,11 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo, prepare) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &sqlStatement_param); - if (unlikely(Z_TYPE_P(sqlStatement_param) != IS_STRING && Z_TYPE_P(sqlStatement_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(sqlStatement_param) != IS_STRING && Z_TYPE_P(sqlStatement_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'sqlStatement' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(sqlStatement_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(sqlStatement_param) == IS_STRING)) { zephir_get_strval(sqlStatement, sqlStatement_param); } else { ZEPHIR_INIT_VAR(sqlStatement); @@ -52029,8 +51677,8 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo, executePrepared) { zephir_is_iterable(placeholders, &_1, &_0, 0, 0, "phalcon/db/adapter/pdo.zep", 306); for ( - ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS - ; zephir_hash_move_forward_ex(_1, &_0) + ; zend_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS + ; zend_hash_move_forward_ex(_1, &_0) ) { ZEPHIR_GET_HMKEY(wildcard, _1, _0); ZEPHIR_GET_HVALUE(value, _2); @@ -52102,8 +51750,8 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo, executePrepared) { } else { zephir_is_iterable(castValue, &_9$$22, &_8$$22, 0, 0, "phalcon/db/adapter/pdo.zep", 294); for ( - ; zephir_hash_get_current_data_ex(_9$$22, (void**) &_10$$22, &_8$$22) == SUCCESS - ; zephir_hash_move_forward_ex(_9$$22, &_8$$22) + ; zend_hash_get_current_data_ex(_9$$22, (void**) &_10$$22, &_8$$22) == SUCCESS + ; zend_hash_move_forward_ex(_9$$22, &_8$$22) ) { ZEPHIR_GET_HMKEY(position, _9$$22, _8$$22); ZEPHIR_GET_HVALUE(itemValue, _10$$22); @@ -52127,8 +51775,8 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo, executePrepared) { } else { zephir_is_iterable(value, &_14$$28, &_13$$28, 0, 0, "phalcon/db/adapter/pdo.zep", 302); for ( - ; zephir_hash_get_current_data_ex(_14$$28, (void**) &_15$$28, &_13$$28) == SUCCESS - ; zephir_hash_move_forward_ex(_14$$28, &_13$$28) + ; zend_hash_get_current_data_ex(_14$$28, (void**) &_15$$28, &_13$$28) == SUCCESS + ; zend_hash_move_forward_ex(_14$$28, &_13$$28) ) { ZEPHIR_GET_HMKEY(position, _14$$28, _13$$28); ZEPHIR_GET_HVALUE(itemValue, _15$$28); @@ -52156,11 +51804,11 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo, query) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &sqlStatement_param, &bindParams, &bindTypes); - if (unlikely(Z_TYPE_P(sqlStatement_param) != IS_STRING && Z_TYPE_P(sqlStatement_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(sqlStatement_param) != IS_STRING && Z_TYPE_P(sqlStatement_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'sqlStatement' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(sqlStatement_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(sqlStatement_param) == IS_STRING)) { zephir_get_strval(sqlStatement, sqlStatement_param); } else { ZEPHIR_INIT_VAR(sqlStatement); @@ -52229,11 +51877,11 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo, execute) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &sqlStatement_param, &bindParams, &bindTypes); - if (unlikely(Z_TYPE_P(sqlStatement_param) != IS_STRING && Z_TYPE_P(sqlStatement_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(sqlStatement_param) != IS_STRING && Z_TYPE_P(sqlStatement_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'sqlStatement' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(sqlStatement_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(sqlStatement_param) == IS_STRING)) { zephir_get_strval(sqlStatement, sqlStatement_param); } else { ZEPHIR_INIT_VAR(sqlStatement); @@ -52345,11 +51993,11 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo, convertBoundParams) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &sql_param, ¶ms_param); - if (unlikely(Z_TYPE_P(sql_param) != IS_STRING && Z_TYPE_P(sql_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(sql_param) != IS_STRING && Z_TYPE_P(sql_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'sql' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(sql_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(sql_param) == IS_STRING)) { zephir_get_strval(sql, sql_param); } else { ZEPHIR_INIT_VAR(sql); @@ -52379,8 +52027,8 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo, convertBoundParams) { if (zephir_is_true(_1)) { zephir_is_iterable(matches, &_3$$3, &_2$$3, 0, 0, "phalcon/db/adapter/pdo.zep", 515); for ( - ; zephir_hash_get_current_data_ex(_3$$3, (void**) &_4$$3, &_2$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_3$$3, &_2$$3) + ; zend_hash_get_current_data_ex(_3$$3, (void**) &_4$$3, &_2$$3) == SUCCESS + ; zend_hash_move_forward_ex(_3$$3, &_2$$3) ) { ZEPHIR_GET_HVALUE(placeMatch, _4$$3); ZEPHIR_OBS_NVAR(value); @@ -52771,8 +52419,8 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Mysql, describeColumns) { zephir_check_call_status(); zephir_is_iterable(_0, &_5, &_4, 0, 0, "phalcon/db/adapter/pdo/mysql.zep", 263); for ( - ; zephir_hash_get_current_data_ex(_5, (void**) &_6, &_4) == SUCCESS - ; zephir_hash_move_forward_ex(_5, &_4) + ; zend_hash_get_current_data_ex(_5, (void**) &_6, &_4) == SUCCESS + ; zend_hash_move_forward_ex(_5, &_4) ) { ZEPHIR_GET_HVALUE(field, _6); ZEPHIR_INIT_NVAR(definition); @@ -52949,11 +52597,11 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Mysql, describeIndexes) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &table_param, &schema); - if (unlikely(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'table' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(table_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(table_param) == IS_STRING)) { zephir_get_strval(table, table_param); } else { ZEPHIR_INIT_VAR(table); @@ -52975,8 +52623,8 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Mysql, describeIndexes) { zephir_check_call_status(); zephir_is_iterable(_0, &_5, &_4, 0, 0, "phalcon/db/adapter/pdo/mysql.zep", 312); for ( - ; zephir_hash_get_current_data_ex(_5, (void**) &_6, &_4) == SUCCESS - ; zephir_hash_move_forward_ex(_5, &_4) + ; zend_hash_get_current_data_ex(_5, (void**) &_6, &_4) == SUCCESS + ; zend_hash_move_forward_ex(_5, &_4) ) { ZEPHIR_GET_HVALUE(index, _6); zephir_array_fetch_string(&keyName, index, SL("Key_name"), PH_NOISY | PH_READONLY, "phalcon/db/adapter/pdo/mysql.zep", 285 TSRMLS_CC); @@ -53019,8 +52667,8 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Mysql, describeIndexes) { array_init(indexObjects); zephir_is_iterable(indexes, &_16, &_15, 0, 0, "phalcon/db/adapter/pdo/mysql.zep", 317); for ( - ; zephir_hash_get_current_data_ex(_16, (void**) &_17, &_15) == SUCCESS - ; zephir_hash_move_forward_ex(_16, &_15) + ; zend_hash_get_current_data_ex(_16, (void**) &_17, &_15) == SUCCESS + ; zend_hash_move_forward_ex(_16, &_15) ) { ZEPHIR_GET_HMKEY(name, _16, _15); ZEPHIR_GET_HVALUE(index, _17); @@ -53049,11 +52697,11 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Mysql, describeReferences) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &table_param, &schema_param); - if (unlikely(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'table' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(table_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(table_param) == IS_STRING)) { zephir_get_strval(table, table_param); } else { ZEPHIR_INIT_VAR(table); @@ -53063,11 +52711,11 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Mysql, describeReferences) { ZEPHIR_INIT_VAR(schema); ZVAL_EMPTY_STRING(schema); } else { - if (unlikely(Z_TYPE_P(schema_param) != IS_STRING && Z_TYPE_P(schema_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schema_param) != IS_STRING && Z_TYPE_P(schema_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schema' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schema_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schema_param) == IS_STRING)) { zephir_get_strval(schema, schema_param); } else { ZEPHIR_INIT_VAR(schema); @@ -53087,8 +52735,8 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Mysql, describeReferences) { zephir_check_call_status(); zephir_is_iterable(_0, &_5, &_4, 0, 0, "phalcon/db/adapter/pdo/mysql.zep", 371); for ( - ; zephir_hash_get_current_data_ex(_5, (void**) &_6, &_4) == SUCCESS - ; zephir_hash_move_forward_ex(_5, &_4) + ; zend_hash_get_current_data_ex(_5, (void**) &_6, &_4) == SUCCESS + ; zend_hash_move_forward_ex(_5, &_4) ) { ZEPHIR_GET_HVALUE(reference, _6); zephir_array_fetch_long(&constraintName, reference, 2, PH_NOISY | PH_READONLY, "phalcon/db/adapter/pdo/mysql.zep", 340 TSRMLS_CC); @@ -53143,8 +52791,8 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Mysql, describeReferences) { array_init(referenceObjects); zephir_is_iterable(references, &_17, &_16, 0, 0, "phalcon/db/adapter/pdo/mysql.zep", 383); for ( - ; zephir_hash_get_current_data_ex(_17, (void**) &_18, &_16) == SUCCESS - ; zephir_hash_move_forward_ex(_17, &_16) + ; zend_hash_get_current_data_ex(_17, (void**) &_18, &_16) == SUCCESS + ; zend_hash_move_forward_ex(_17, &_16) ) { ZEPHIR_GET_HMKEY(name, _17, _16); ZEPHIR_GET_HVALUE(arrayReference, _18); @@ -53290,8 +52938,8 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Postgresql, describeColumns) { zephir_check_call_status(); zephir_is_iterable(_0, &_5, &_4, 0, 0, "phalcon/db/adapter/pdo/postgresql.zep", 281); for ( - ; zephir_hash_get_current_data_ex(_5, (void**) &_6, &_4) == SUCCESS - ; zephir_hash_move_forward_ex(_5, &_4) + ; zend_hash_get_current_data_ex(_5, (void**) &_6, &_4) == SUCCESS + ; zend_hash_move_forward_ex(_5, &_4) ) { ZEPHIR_GET_HVALUE(field, _6); ZEPHIR_INIT_NVAR(definition); @@ -53472,27 +53120,27 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Postgresql, createTable) { zephir_fcall_cache_entry *_5 = NULL; int ZEPHIR_LAST_CALL_STATUS; zval *definition = NULL; - zval *tableName_param = NULL, *schemaName_param = NULL, *definition_param = NULL, *sql = NULL, *queries = NULL, *query = NULL, *exception = NULL, *columns = NULL, *_0, **_3$$6, *_4$$7 = NULL, *_6$$10, *_7$$10; + zval *tableName_param = NULL, *schemaName_param = NULL, *definition_param = NULL, *sql = NULL, *queries = NULL, *query = NULL, *exception = NULL, *columns = NULL, *_0, **_3$$6, *_4$$7 = NULL, *_6$$5, *_7$$10, *_8$$10; zval *tableName = NULL, *schemaName = NULL; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &definition_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { ZEPHIR_INIT_VAR(tableName); ZVAL_EMPTY_STRING(tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(schemaName); @@ -53523,8 +53171,8 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Postgresql, createTable) { zephir_check_call_status_or_jump(try_end_1); zephir_is_iterable(queries, &_2$$6, &_1$$6, 0, 0, "phalcon/db/adapter/pdo/postgresql.zep", 312); for ( - ; zephir_hash_get_current_data_ex(_2$$6, (void**) &_3$$6, &_1$$6) == SUCCESS - ; zephir_hash_move_forward_ex(_2$$6, &_1$$6) + ; zend_hash_get_current_data_ex(_2$$6, (void**) &_3$$6, &_1$$6) == SUCCESS + ; zend_hash_move_forward_ex(_2$$6, &_1$$6) ) { ZEPHIR_GET_HVALUE(query, _3$$6); if (ZEPHIR_IS_EMPTY(query)) { @@ -53542,9 +53190,11 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Postgresql, createTable) { try_end_1: if (EG(exception)) { - ZEPHIR_CPY_WRT(exception, EG(exception)); - if (zephir_instance_of_ev(exception, zend_exception_get_default(TSRMLS_C) TSRMLS_CC)) { + ZEPHIR_INIT_VAR(_6$$5); + ZEPHIR_CPY_WRT(_6$$5, EG(exception)); + if (zephir_instance_of_ev(_6$$5, zend_exception_get_default(TSRMLS_C) TSRMLS_CC)) { zend_clear_exception(TSRMLS_C); + ZEPHIR_CPY_WRT(exception, _6$$5); ZEPHIR_CALL_METHOD(NULL, this_ptr, "rollback", NULL, 0); zephir_check_call_status(); zephir_throw_exception_debug(exception, "phalcon/db/adapter/pdo/postgresql.zep", 316 TSRMLS_CC); @@ -53553,10 +53203,10 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Postgresql, createTable) { } } } else { - zephir_array_fetch_long(&_6$$10, queries, 0, PH_NOISY | PH_READONLY, "phalcon/db/adapter/pdo/postgresql.zep", 319 TSRMLS_CC); - ZEPHIR_INIT_VAR(_7$$10); - ZEPHIR_CONCAT_VS(_7$$10, _6$$10, ";"); - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "execute", NULL, 0, _7$$10); + zephir_array_fetch_long(&_7$$10, queries, 0, PH_NOISY | PH_READONLY, "phalcon/db/adapter/pdo/postgresql.zep", 319 TSRMLS_CC); + ZEPHIR_INIT_VAR(_8$$10); + ZEPHIR_CONCAT_VS(_8$$10, _7$$10, ";"); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "execute", NULL, 0, _8$$10); zephir_check_call_status(); RETURN_MM(); } @@ -53570,27 +53220,27 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Postgresql, modifyColumn) { HashPosition _1$$4; zephir_fcall_cache_entry *_5 = NULL; int ZEPHIR_LAST_CALL_STATUS; - zval *tableName_param = NULL, *schemaName_param = NULL, *column, *currentColumn = NULL, *sql = NULL, *queries = NULL, *query = NULL, *exception = NULL, *_0, **_3$$4, *_4$$5 = NULL, *_6$$8 = NULL, *_7$$8, *_8$$8; + zval *tableName_param = NULL, *schemaName_param = NULL, *column, *currentColumn = NULL, *sql = NULL, *queries = NULL, *query = NULL, *exception = NULL, *_0, **_3$$4, *_4$$5 = NULL, *_6$$3, *_7$$8 = NULL, *_8$$8, *_9$$8; zval *tableName = NULL, *schemaName = NULL; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 1, &tableName_param, &schemaName_param, &column, ¤tColumn); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { ZEPHIR_INIT_VAR(tableName); ZVAL_EMPTY_STRING(tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(schemaName); @@ -53614,8 +53264,8 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Postgresql, modifyColumn) { zephir_check_call_status_or_jump(try_end_1); zephir_is_iterable(queries, &_2$$4, &_1$$4, 0, 0, "phalcon/db/adapter/pdo/postgresql.zep", 344); for ( - ; zephir_hash_get_current_data_ex(_2$$4, (void**) &_3$$4, &_1$$4) == SUCCESS - ; zephir_hash_move_forward_ex(_2$$4, &_1$$4) + ; zend_hash_get_current_data_ex(_2$$4, (void**) &_3$$4, &_1$$4) == SUCCESS + ; zend_hash_move_forward_ex(_2$$4, &_1$$4) ) { ZEPHIR_GET_HVALUE(query, _3$$4); if (ZEPHIR_IS_EMPTY(query)) { @@ -53633,9 +53283,11 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Postgresql, modifyColumn) { try_end_1: if (EG(exception)) { - ZEPHIR_CPY_WRT(exception, EG(exception)); - if (zephir_instance_of_ev(exception, zend_exception_get_default(TSRMLS_C) TSRMLS_CC)) { + ZEPHIR_INIT_VAR(_6$$3); + ZEPHIR_CPY_WRT(_6$$3, EG(exception)); + if (zephir_instance_of_ev(_6$$3, zend_exception_get_default(TSRMLS_C) TSRMLS_CC)) { zend_clear_exception(TSRMLS_C); + ZEPHIR_CPY_WRT(exception, _6$$3); ZEPHIR_CALL_METHOD(NULL, this_ptr, "rollback", NULL, 0); zephir_check_call_status(); zephir_throw_exception_debug(exception, "phalcon/db/adapter/pdo/postgresql.zep", 349 TSRMLS_CC); @@ -53644,17 +53296,17 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Postgresql, modifyColumn) { } } } else { - ZEPHIR_INIT_VAR(_6$$8); + ZEPHIR_INIT_VAR(_7$$8); if (!(ZEPHIR_IS_EMPTY(sql))) { - zephir_array_fetch_long(&_7$$8, queries, 0, PH_NOISY | PH_READONLY, "phalcon/db/adapter/pdo/postgresql.zep", 353 TSRMLS_CC); - ZEPHIR_INIT_VAR(_8$$8); - ZEPHIR_CONCAT_VS(_8$$8, _7$$8, ";"); - ZEPHIR_CALL_METHOD(&_6$$8, this_ptr, "execute", NULL, 0, _8$$8); + zephir_array_fetch_long(&_8$$8, queries, 0, PH_NOISY | PH_READONLY, "phalcon/db/adapter/pdo/postgresql.zep", 353 TSRMLS_CC); + ZEPHIR_INIT_VAR(_9$$8); + ZEPHIR_CONCAT_VS(_9$$8, _8$$8, ";"); + ZEPHIR_CALL_METHOD(&_7$$8, this_ptr, "execute", NULL, 0, _9$$8); zephir_check_call_status(); } else { - ZVAL_BOOL(_6$$8, 1); + ZVAL_BOOL(_7$$8, 1); } - RETURN_CCTOR(_6$$8); + RETURN_CCTOR(_7$$8); } RETURN_MM_BOOL(1); @@ -53788,8 +53440,8 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Sqlite, describeColumns) { zephir_check_call_status(); zephir_is_iterable(_0, &_5, &_4, 0, 0, "phalcon/db/adapter/pdo/sqlite.zep", 252); for ( - ; zephir_hash_get_current_data_ex(_5, (void**) &_6, &_4) == SUCCESS - ; zephir_hash_move_forward_ex(_5, &_4) + ; zend_hash_get_current_data_ex(_5, (void**) &_6, &_4) == SUCCESS + ; zend_hash_move_forward_ex(_5, &_4) ) { ZEPHIR_GET_HVALUE(field, _6); ZEPHIR_INIT_NVAR(definition); @@ -53976,8 +53628,8 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Sqlite, describeIndexes) { zephir_check_call_status(); zephir_is_iterable(_0, &_5, &_4, 0, 0, "phalcon/db/adapter/pdo/sqlite.zep", 304); for ( - ; zephir_hash_get_current_data_ex(_5, (void**) &_6, &_4) == SUCCESS - ; zephir_hash_move_forward_ex(_5, &_4) + ; zend_hash_get_current_data_ex(_5, (void**) &_6, &_4) == SUCCESS + ; zend_hash_move_forward_ex(_5, &_4) ) { ZEPHIR_GET_HVALUE(index, _6); ZEPHIR_OBS_NVAR(keyName); @@ -54005,8 +53657,8 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Sqlite, describeIndexes) { zephir_check_call_status(); zephir_is_iterable(_10$$3, &_15$$3, &_14$$3, 0, 0, "phalcon/db/adapter/pdo/sqlite.zep", 290); for ( - ; zephir_hash_get_current_data_ex(_15$$3, (void**) &_16$$3, &_14$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_15$$3, &_14$$3) + ; zend_hash_get_current_data_ex(_15$$3, (void**) &_16$$3, &_14$$3) == SUCCESS + ; zend_hash_move_forward_ex(_15$$3, &_14$$3) ) { ZEPHIR_GET_HVALUE(describeIndex, _16$$3); zephir_array_fetch_string(&_17$$7, describeIndex, SL("name"), PH_NOISY | PH_READONLY, "phalcon/db/adapter/pdo/sqlite.zep", 287 TSRMLS_CC); @@ -54042,8 +53694,8 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Sqlite, describeIndexes) { array_init(indexObjects); zephir_is_iterable(indexes, &_28, &_27, 0, 0, "phalcon/db/adapter/pdo/sqlite.zep", 309); for ( - ; zephir_hash_get_current_data_ex(_28, (void**) &_29, &_27) == SUCCESS - ; zephir_hash_move_forward_ex(_28, &_27) + ; zend_hash_get_current_data_ex(_28, (void**) &_29, &_27) == SUCCESS + ; zend_hash_move_forward_ex(_28, &_27) ) { ZEPHIR_GET_HMKEY(name, _28, _27); ZEPHIR_GET_HVALUE(index, _29); @@ -54087,8 +53739,8 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Sqlite, describeReferences) { zephir_check_call_status(); zephir_is_iterable(_0, &_5, &_4, 0, 0, "phalcon/db/adapter/pdo/sqlite.zep", 354); for ( - ; zephir_hash_get_current_data_ex(_5, (void**) &_6, &_4) == SUCCESS - ; zephir_hash_move_forward_ex(_5, &_4) + ; zend_hash_get_current_data_ex(_5, (void**) &_6, &_4) == SUCCESS + ; zend_hash_move_forward_ex(_5, &_4) ) { ZEPHIR_GET_HMKEY(number, _5, _4); ZEPHIR_GET_HVALUE(reference, _6); @@ -54133,8 +53785,8 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Sqlite, describeReferences) { array_init(referenceObjects); zephir_is_iterable(references, &_15, &_14, 0, 0, "phalcon/db/adapter/pdo/sqlite.zep", 364); for ( - ; zephir_hash_get_current_data_ex(_15, (void**) &_16, &_14) == SUCCESS - ; zephir_hash_move_forward_ex(_15, &_14) + ; zend_hash_get_current_data_ex(_15, (void**) &_16, &_14) == SUCCESS + ; zend_hash_move_forward_ex(_15, &_14) ) { ZEPHIR_GET_HMKEY(name, _15, _14); ZEPHIR_GET_HVALUE(arrayReference, _16); @@ -54434,8 +54086,8 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, getColumnDefinition) { ZVAL_STRING(valueSql$$51, "", 1); zephir_is_iterable(typeValues, &_24$$51, &_23$$51, 0, 0, "phalcon/db/dialect/mysql.zep", 208); for ( - ; zephir_hash_get_current_data_ex(_24$$51, (void**) &_25$$51, &_23$$51) == SUCCESS - ; zephir_hash_move_forward_ex(_24$$51, &_23$$51) + ; zend_hash_get_current_data_ex(_24$$51, (void**) &_25$$51, &_23$$51) == SUCCESS + ; zend_hash_move_forward_ex(_24$$51, &_23$$51) ) { ZEPHIR_GET_HVALUE(value$$51, _25$$51); ZEPHIR_SINIT_NVAR(_26$$52); @@ -54480,21 +54132,21 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, addColumn) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &column); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { ZEPHIR_INIT_VAR(tableName); ZVAL_EMPTY_STRING(tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(schemaName); @@ -54565,21 +54217,21 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, modifyColumn) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 1, &tableName_param, &schemaName_param, &column, ¤tColumn); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { ZEPHIR_INIT_VAR(tableName); ZVAL_EMPTY_STRING(tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(schemaName); @@ -54653,31 +54305,31 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, dropColumn) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &columnName_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { ZEPHIR_INIT_VAR(tableName); ZVAL_EMPTY_STRING(tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(schemaName); ZVAL_EMPTY_STRING(schemaName); } - if (unlikely(Z_TYPE_P(columnName_param) != IS_STRING && Z_TYPE_P(columnName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(columnName_param) != IS_STRING && Z_TYPE_P(columnName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'columnName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(columnName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(columnName_param) == IS_STRING)) { zephir_get_strval(columnName, columnName_param); } else { ZEPHIR_INIT_VAR(columnName); @@ -54701,21 +54353,21 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, addIndex) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &index); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { ZEPHIR_INIT_VAR(tableName); ZVAL_EMPTY_STRING(tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(schemaName); @@ -54758,31 +54410,31 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, dropIndex) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &indexName_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { ZEPHIR_INIT_VAR(tableName); ZVAL_EMPTY_STRING(tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(schemaName); ZVAL_EMPTY_STRING(schemaName); } - if (unlikely(Z_TYPE_P(indexName_param) != IS_STRING && Z_TYPE_P(indexName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(indexName_param) != IS_STRING && Z_TYPE_P(indexName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'indexName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(indexName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(indexName_param) == IS_STRING)) { zephir_get_strval(indexName, indexName_param); } else { ZEPHIR_INIT_VAR(indexName); @@ -54806,21 +54458,21 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, addPrimaryKey) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &index); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { ZEPHIR_INIT_VAR(tableName); ZVAL_EMPTY_STRING(tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(schemaName); @@ -54848,21 +54500,21 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, dropPrimaryKey) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &tableName_param, &schemaName_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { ZEPHIR_INIT_VAR(tableName); ZVAL_EMPTY_STRING(tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(schemaName); @@ -54886,21 +54538,21 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, addForeignKey) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &reference); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { ZEPHIR_INIT_VAR(tableName); ZVAL_EMPTY_STRING(tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(schemaName); @@ -54955,31 +54607,31 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, dropForeignKey) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &referenceName_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { ZEPHIR_INIT_VAR(tableName); ZVAL_EMPTY_STRING(tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(schemaName); ZVAL_EMPTY_STRING(schemaName); } - if (unlikely(Z_TYPE_P(referenceName_param) != IS_STRING && Z_TYPE_P(referenceName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(referenceName_param) != IS_STRING && Z_TYPE_P(referenceName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'referenceName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(referenceName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(referenceName_param) == IS_STRING)) { zephir_get_strval(referenceName, referenceName_param); } else { ZEPHIR_INIT_VAR(referenceName); @@ -55007,21 +54659,21 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, createTable) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &definition_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { ZEPHIR_INIT_VAR(tableName); ZVAL_EMPTY_STRING(tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(schemaName); @@ -55054,8 +54706,8 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, createTable) { array_init(createLines); zephir_is_iterable(columns, &_1, &_0, 0, 0, "phalcon/db/dialect/mysql.zep", 448); for ( - ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS - ; zephir_hash_move_forward_ex(_1, &_0) + ; zend_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS + ; zend_hash_move_forward_ex(_1, &_0) ) { ZEPHIR_GET_HVALUE(column, _2); ZEPHIR_CALL_METHOD(&_3$$7, column, "getname", NULL, 0); @@ -55104,8 +54756,8 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, createTable) { if (zephir_array_isset_string_fetch(&indexes, definition, SS("indexes"), 0 TSRMLS_CC)) { zephir_is_iterable(indexes, &_16$$14, &_15$$14, 0, 0, "phalcon/db/dialect/mysql.zep", 470); for ( - ; zephir_hash_get_current_data_ex(_16$$14, (void**) &_17$$14, &_15$$14) == SUCCESS - ; zephir_hash_move_forward_ex(_16$$14, &_15$$14) + ; zend_hash_get_current_data_ex(_16$$14, (void**) &_17$$14, &_15$$14) == SUCCESS + ; zend_hash_move_forward_ex(_16$$14, &_15$$14) ) { ZEPHIR_GET_HVALUE(index, _17$$14); ZEPHIR_CALL_METHOD(&indexName, index, "getname", NULL, 0); @@ -55142,8 +54794,8 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, createTable) { if (zephir_array_isset_string_fetch(&references, definition, SS("references"), 0 TSRMLS_CC)) { zephir_is_iterable(references, &_26$$20, &_25$$20, 0, 0, "phalcon/db/dialect/mysql.zep", 492); for ( - ; zephir_hash_get_current_data_ex(_26$$20, (void**) &_27$$20, &_25$$20) == SUCCESS - ; zephir_hash_move_forward_ex(_26$$20, &_25$$20) + ; zend_hash_get_current_data_ex(_26$$20, (void**) &_27$$20, &_25$$20) == SUCCESS + ; zend_hash_move_forward_ex(_26$$20, &_25$$20) ) { ZEPHIR_GET_HVALUE(reference, _27$$20); ZEPHIR_CALL_METHOD(&_28$$21, reference, "getname", NULL, 0); @@ -55201,21 +54853,21 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, truncateTable) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &tableName_param, &schemaName_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { ZEPHIR_INIT_VAR(tableName); ZVAL_EMPTY_STRING(tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(schemaName); @@ -55249,11 +54901,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, dropTable) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &tableName_param, &schemaName_param, &ifExists_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { ZEPHIR_INIT_VAR(tableName); @@ -55268,7 +54920,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, dropTable) { if (!ifExists_param) { ifExists = 1; } else { - if (unlikely(Z_TYPE_P(ifExists_param) != IS_BOOL)) { + if (UNEXPECTED(Z_TYPE_P(ifExists_param) != IS_BOOL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'ifExists' must be a bool") TSRMLS_CC); RETURN_MM_NULL(); } @@ -55298,11 +54950,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, createView) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 1, &viewName_param, &definition_param, &schemaName_param); - if (unlikely(Z_TYPE_P(viewName_param) != IS_STRING && Z_TYPE_P(viewName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(viewName_param) != IS_STRING && Z_TYPE_P(viewName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'viewName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(viewName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(viewName_param) == IS_STRING)) { zephir_get_strval(viewName, viewName_param); } else { ZEPHIR_INIT_VAR(viewName); @@ -55339,11 +54991,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, dropView) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &viewName_param, &schemaName_param, &ifExists_param); - if (unlikely(Z_TYPE_P(viewName_param) != IS_STRING && Z_TYPE_P(viewName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(viewName_param) != IS_STRING && Z_TYPE_P(viewName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'viewName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(viewName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(viewName_param) == IS_STRING)) { zephir_get_strval(viewName, viewName_param); } else { ZEPHIR_INIT_VAR(viewName); @@ -55358,7 +55010,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, dropView) { if (!ifExists_param) { ifExists = 1; } else { - if (unlikely(Z_TYPE_P(ifExists_param) != IS_BOOL)) { + if (UNEXPECTED(Z_TYPE_P(ifExists_param) != IS_BOOL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'ifExists' must be a bool") TSRMLS_CC); RETURN_MM_NULL(); } @@ -55386,11 +55038,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, tableExists) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &tableName_param, &schemaName_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { ZEPHIR_INIT_VAR(tableName); @@ -55421,11 +55073,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, viewExists) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &viewName_param, &schemaName_param); - if (unlikely(Z_TYPE_P(viewName_param) != IS_STRING && Z_TYPE_P(viewName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(viewName_param) != IS_STRING && Z_TYPE_P(viewName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'viewName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(viewName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(viewName_param) == IS_STRING)) { zephir_get_strval(viewName, viewName_param); } else { ZEPHIR_INIT_VAR(viewName); @@ -55457,11 +55109,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, describeColumns) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &table_param, &schema_param); - if (unlikely(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'table' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(table_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(table_param) == IS_STRING)) { zephir_get_strval(table, table_param); } else { ZEPHIR_INIT_VAR(table); @@ -55518,11 +55170,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, listViews) { ZEPHIR_INIT_VAR(schemaName); ZVAL_EMPTY_STRING(schemaName); } else { - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(schemaName); @@ -55548,11 +55200,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, describeIndexes) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &table_param, &schema_param); - if (unlikely(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'table' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(table_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(table_param) == IS_STRING)) { zephir_get_strval(table, table_param); } else { ZEPHIR_INIT_VAR(table); @@ -55581,11 +55233,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, describeReferences) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &table_param, &schema_param); - if (unlikely(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'table' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(table_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(table_param) == IS_STRING)) { zephir_get_strval(table, table_param); } else { ZEPHIR_INIT_VAR(table); @@ -55622,11 +55274,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, tableOptions) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &table_param, &schema_param); - if (unlikely(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'table' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(table_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(table_param) == IS_STRING)) { zephir_get_strval(table, table_param); } else { ZEPHIR_INIT_VAR(table); @@ -55872,8 +55524,8 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, getColumnDefinition) { ZVAL_STRING(valueSql$$37, "", 1); zephir_is_iterable(typeValues, &_10$$37, &_9$$37, 0, 0, "phalcon/db/dialect/postgresql.zep", 161); for ( - ; zephir_hash_get_current_data_ex(_10$$37, (void**) &_11$$37, &_9$$37) == SUCCESS - ; zephir_hash_move_forward_ex(_10$$37, &_9$$37) + ; zend_hash_get_current_data_ex(_10$$37, (void**) &_11$$37, &_9$$37) == SUCCESS + ; zend_hash_move_forward_ex(_10$$37, &_9$$37) ) { ZEPHIR_GET_HVALUE(value$$37, _11$$37); ZEPHIR_SINIT_NVAR(_12$$38); @@ -55918,21 +55570,21 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, addColumn) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &column); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { ZEPHIR_INIT_VAR(tableName); ZVAL_EMPTY_STRING(tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(schemaName); @@ -55979,21 +55631,21 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, modifyColumn) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 1, &tableName_param, &schemaName_param, &column, ¤tColumn); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { ZEPHIR_INIT_VAR(tableName); ZVAL_EMPTY_STRING(tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(schemaName); @@ -56117,31 +55769,31 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, dropColumn) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &columnName_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { ZEPHIR_INIT_VAR(tableName); ZVAL_EMPTY_STRING(tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(schemaName); ZVAL_EMPTY_STRING(schemaName); } - if (unlikely(Z_TYPE_P(columnName_param) != IS_STRING && Z_TYPE_P(columnName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(columnName_param) != IS_STRING && Z_TYPE_P(columnName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'columnName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(columnName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(columnName_param) == IS_STRING)) { zephir_get_strval(columnName, columnName_param); } else { ZEPHIR_INIT_VAR(columnName); @@ -56165,21 +55817,21 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, addIndex) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &index); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { ZEPHIR_INIT_VAR(tableName); ZVAL_EMPTY_STRING(tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(schemaName); @@ -56229,31 +55881,31 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, dropIndex) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &indexName_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { ZEPHIR_INIT_VAR(tableName); ZVAL_EMPTY_STRING(tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(schemaName); ZVAL_EMPTY_STRING(schemaName); } - if (unlikely(Z_TYPE_P(indexName_param) != IS_STRING && Z_TYPE_P(indexName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(indexName_param) != IS_STRING && Z_TYPE_P(indexName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'indexName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(indexName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(indexName_param) == IS_STRING)) { zephir_get_strval(indexName, indexName_param); } else { ZEPHIR_INIT_VAR(indexName); @@ -56275,21 +55927,21 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, addPrimaryKey) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &index); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { ZEPHIR_INIT_VAR(tableName); ZVAL_EMPTY_STRING(tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(schemaName); @@ -56317,21 +55969,21 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, dropPrimaryKey) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &tableName_param, &schemaName_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { ZEPHIR_INIT_VAR(tableName); ZVAL_EMPTY_STRING(tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(schemaName); @@ -56355,21 +56007,21 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, addForeignKey) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &reference); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { ZEPHIR_INIT_VAR(tableName); ZVAL_EMPTY_STRING(tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(schemaName); @@ -56420,31 +56072,31 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, dropForeignKey) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &referenceName_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { ZEPHIR_INIT_VAR(tableName); ZVAL_EMPTY_STRING(tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(schemaName); ZVAL_EMPTY_STRING(schemaName); } - if (unlikely(Z_TYPE_P(referenceName_param) != IS_STRING && Z_TYPE_P(referenceName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(referenceName_param) != IS_STRING && Z_TYPE_P(referenceName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'referenceName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(referenceName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(referenceName_param) == IS_STRING)) { zephir_get_strval(referenceName, referenceName_param); } else { ZEPHIR_INIT_VAR(referenceName); @@ -56472,21 +56124,21 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, createTable) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &definition_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { ZEPHIR_INIT_VAR(tableName); ZVAL_EMPTY_STRING(tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(schemaName); @@ -56521,8 +56173,8 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, createTable) { array_init(primaryColumns); zephir_is_iterable(columns, &_1, &_0, 0, 0, "phalcon/db/dialect/postgresql.zep", 399); for ( - ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS - ; zephir_hash_move_forward_ex(_1, &_0) + ; zend_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS + ; zend_hash_move_forward_ex(_1, &_0) ) { ZEPHIR_GET_HVALUE(column, _2); ZEPHIR_CALL_METHOD(&columnDefinition, this_ptr, "getcolumndefinition", &_3, 0, column); @@ -56575,8 +56227,8 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, createTable) { if (zephir_array_isset_string_fetch(&indexes, definition, SS("indexes"), 0 TSRMLS_CC)) { zephir_is_iterable(indexes, &_16$$14, &_15$$14, 0, 0, "phalcon/db/dialect/postgresql.zep", 434); for ( - ; zephir_hash_get_current_data_ex(_16$$14, (void**) &_17$$14, &_15$$14) == SUCCESS - ; zephir_hash_move_forward_ex(_16$$14, &_15$$14) + ; zend_hash_get_current_data_ex(_16$$14, (void**) &_17$$14, &_15$$14) == SUCCESS + ; zend_hash_move_forward_ex(_16$$14, &_15$$14) ) { ZEPHIR_GET_HVALUE(index, _17$$14); ZEPHIR_CALL_METHOD(&indexName, index, "getname", NULL, 0); @@ -56626,8 +56278,8 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, createTable) { if (zephir_array_isset_string_fetch(&references, definition, SS("references"), 0 TSRMLS_CC)) { zephir_is_iterable(references, &_29$$21, &_28$$21, 0, 0, "phalcon/db/dialect/postgresql.zep", 459); for ( - ; zephir_hash_get_current_data_ex(_29$$21, (void**) &_30$$21, &_28$$21) == SUCCESS - ; zephir_hash_move_forward_ex(_29$$21, &_28$$21) + ; zend_hash_get_current_data_ex(_29$$21, (void**) &_30$$21, &_28$$21) == SUCCESS + ; zend_hash_move_forward_ex(_29$$21, &_28$$21) ) { ZEPHIR_GET_HVALUE(reference, _30$$21); ZEPHIR_CALL_METHOD(&_31$$22, reference, "getname", NULL, 0); @@ -56694,21 +56346,21 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, truncateTable) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &tableName_param, &schemaName_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { ZEPHIR_INIT_VAR(tableName); ZVAL_EMPTY_STRING(tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(schemaName); @@ -56739,11 +56391,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, dropTable) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &tableName_param, &schemaName_param, &ifExists_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { ZEPHIR_INIT_VAR(tableName); @@ -56758,7 +56410,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, dropTable) { if (!ifExists_param) { ifExists = 1; } else { - if (unlikely(Z_TYPE_P(ifExists_param) != IS_BOOL)) { + if (UNEXPECTED(Z_TYPE_P(ifExists_param) != IS_BOOL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'ifExists' must be a bool") TSRMLS_CC); RETURN_MM_NULL(); } @@ -56788,11 +56440,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, createView) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 1, &viewName_param, &definition_param, &schemaName_param); - if (unlikely(Z_TYPE_P(viewName_param) != IS_STRING && Z_TYPE_P(viewName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(viewName_param) != IS_STRING && Z_TYPE_P(viewName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'viewName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(viewName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(viewName_param) == IS_STRING)) { zephir_get_strval(viewName, viewName_param); } else { ZEPHIR_INIT_VAR(viewName); @@ -56829,11 +56481,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, dropView) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &viewName_param, &schemaName_param, &ifExists_param); - if (unlikely(Z_TYPE_P(viewName_param) != IS_STRING && Z_TYPE_P(viewName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(viewName_param) != IS_STRING && Z_TYPE_P(viewName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'viewName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(viewName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(viewName_param) == IS_STRING)) { zephir_get_strval(viewName, viewName_param); } else { ZEPHIR_INIT_VAR(viewName); @@ -56848,7 +56500,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, dropView) { if (!ifExists_param) { ifExists = 1; } else { - if (unlikely(Z_TYPE_P(ifExists_param) != IS_BOOL)) { + if (UNEXPECTED(Z_TYPE_P(ifExists_param) != IS_BOOL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'ifExists' must be a bool") TSRMLS_CC); RETURN_MM_NULL(); } @@ -56876,11 +56528,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, tableExists) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &tableName_param, &schemaName_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { ZEPHIR_INIT_VAR(tableName); @@ -56911,11 +56563,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, viewExists) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &viewName_param, &schemaName_param); - if (unlikely(Z_TYPE_P(viewName_param) != IS_STRING && Z_TYPE_P(viewName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(viewName_param) != IS_STRING && Z_TYPE_P(viewName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'viewName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(viewName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(viewName_param) == IS_STRING)) { zephir_get_strval(viewName, viewName_param); } else { ZEPHIR_INIT_VAR(viewName); @@ -56946,11 +56598,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, describeColumns) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &table_param, &schema_param); - if (unlikely(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'table' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(table_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(table_param) == IS_STRING)) { zephir_get_strval(table, table_param); } else { ZEPHIR_INIT_VAR(table); @@ -57024,11 +56676,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, describeIndexes) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &table_param, &schema_param); - if (unlikely(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'table' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(table_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(table_param) == IS_STRING)) { zephir_get_strval(table, table_param); } else { ZEPHIR_INIT_VAR(table); @@ -57055,11 +56707,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, describeReferences) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &table_param, &schema_param); - if (unlikely(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'table' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(table_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(table_param) == IS_STRING)) { zephir_get_strval(table, table_param); } else { ZEPHIR_INIT_VAR(table); @@ -57096,11 +56748,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, tableOptions) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &table_param, &schema_param); - if (unlikely(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'table' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(table_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(table_param) == IS_STRING)) { zephir_get_strval(table, table_param); } else { ZEPHIR_INIT_VAR(table); @@ -57384,8 +57036,8 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, getColumnDefinition) { ZVAL_STRING(valueSql$$41, "", 1); zephir_is_iterable(typeValues, &_13$$41, &_12$$41, 0, 0, "phalcon/db/dialect/sqlite.zep", 180); for ( - ; zephir_hash_get_current_data_ex(_13$$41, (void**) &_14$$41, &_12$$41) == SUCCESS - ; zephir_hash_move_forward_ex(_13$$41, &_12$$41) + ; zend_hash_get_current_data_ex(_13$$41, (void**) &_14$$41, &_12$$41) == SUCCESS + ; zend_hash_move_forward_ex(_13$$41, &_12$$41) ) { ZEPHIR_GET_HVALUE(value$$41, _14$$41); ZEPHIR_SINIT_NVAR(_15$$42); @@ -57430,21 +57082,21 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, addColumn) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &column); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { ZEPHIR_INIT_VAR(tableName); ZVAL_EMPTY_STRING(tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(schemaName); @@ -57504,21 +57156,21 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, modifyColumn) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 1, &tableName_param, &schemaName_param, &column, ¤tColumn); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { ZEPHIR_INIT_VAR(tableName); ZVAL_EMPTY_STRING(tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(schemaName); @@ -57542,31 +57194,31 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, dropColumn) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &columnName_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { ZEPHIR_INIT_VAR(tableName); ZVAL_EMPTY_STRING(tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(schemaName); ZVAL_EMPTY_STRING(schemaName); } - if (unlikely(Z_TYPE_P(columnName_param) != IS_STRING && Z_TYPE_P(columnName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(columnName_param) != IS_STRING && Z_TYPE_P(columnName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'columnName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(columnName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(columnName_param) == IS_STRING)) { zephir_get_strval(columnName, columnName_param); } else { ZEPHIR_INIT_VAR(columnName); @@ -57588,21 +57240,21 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, addIndex) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &index); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { ZEPHIR_INIT_VAR(tableName); ZVAL_EMPTY_STRING(tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(schemaName); @@ -57650,31 +57302,31 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, dropIndex) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &indexName_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { ZEPHIR_INIT_VAR(tableName); ZVAL_EMPTY_STRING(tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(schemaName); ZVAL_EMPTY_STRING(schemaName); } - if (unlikely(Z_TYPE_P(indexName_param) != IS_STRING && Z_TYPE_P(indexName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(indexName_param) != IS_STRING && Z_TYPE_P(indexName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'indexName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(indexName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(indexName_param) == IS_STRING)) { zephir_get_strval(indexName, indexName_param); } else { ZEPHIR_INIT_VAR(indexName); @@ -57699,21 +57351,21 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, addPrimaryKey) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &index); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { ZEPHIR_INIT_VAR(tableName); ZVAL_EMPTY_STRING(tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(schemaName); @@ -57734,21 +57386,21 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, dropPrimaryKey) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &tableName_param, &schemaName_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { ZEPHIR_INIT_VAR(tableName); ZVAL_EMPTY_STRING(tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(schemaName); @@ -57769,21 +57421,21 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, addForeignKey) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &reference); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { ZEPHIR_INIT_VAR(tableName); ZVAL_EMPTY_STRING(tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(schemaName); @@ -57804,31 +57456,31 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, dropForeignKey) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &referenceName_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { ZEPHIR_INIT_VAR(tableName); ZVAL_EMPTY_STRING(tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(schemaName); ZVAL_EMPTY_STRING(schemaName); } - if (unlikely(Z_TYPE_P(referenceName_param) != IS_STRING && Z_TYPE_P(referenceName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(referenceName_param) != IS_STRING && Z_TYPE_P(referenceName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'referenceName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(referenceName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(referenceName_param) == IS_STRING)) { zephir_get_strval(referenceName, referenceName_param); } else { ZEPHIR_INIT_VAR(referenceName); @@ -57855,21 +57507,21 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, createTable) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &definition_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { ZEPHIR_INIT_VAR(tableName); ZVAL_EMPTY_STRING(tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(schemaName); @@ -57903,8 +57555,8 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, createTable) { array_init(createLines); zephir_is_iterable(columns, &_1, &_0, 0, 0, "phalcon/db/dialect/sqlite.zep", 380); for ( - ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS - ; zephir_hash_move_forward_ex(_1, &_0) + ; zend_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS + ; zend_hash_move_forward_ex(_1, &_0) ) { ZEPHIR_GET_HVALUE(column, _2); ZEPHIR_CALL_METHOD(&_3$$7, column, "getname", NULL, 0); @@ -57962,8 +57614,8 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, createTable) { if (zephir_array_isset_string_fetch(&indexes, definition, SS("indexes"), 0 TSRMLS_CC)) { zephir_is_iterable(indexes, &_18$$14, &_17$$14, 0, 0, "phalcon/db/dialect/sqlite.zep", 396); for ( - ; zephir_hash_get_current_data_ex(_18$$14, (void**) &_19$$14, &_17$$14) == SUCCESS - ; zephir_hash_move_forward_ex(_18$$14, &_17$$14) + ; zend_hash_get_current_data_ex(_18$$14, (void**) &_19$$14, &_17$$14) == SUCCESS + ; zend_hash_move_forward_ex(_18$$14, &_17$$14) ) { ZEPHIR_GET_HVALUE(index, _19$$14); ZEPHIR_CALL_METHOD(&indexName, index, "getname", NULL, 0); @@ -58003,8 +57655,8 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, createTable) { if (zephir_array_isset_string_fetch(&references, definition, SS("references"), 0 TSRMLS_CC)) { zephir_is_iterable(references, &_31$$18, &_30$$18, 0, 0, "phalcon/db/dialect/sqlite.zep", 418); for ( - ; zephir_hash_get_current_data_ex(_31$$18, (void**) &_32$$18, &_30$$18) == SUCCESS - ; zephir_hash_move_forward_ex(_31$$18, &_30$$18) + ; zend_hash_get_current_data_ex(_31$$18, (void**) &_32$$18, &_30$$18) == SUCCESS + ; zend_hash_move_forward_ex(_31$$18, &_30$$18) ) { ZEPHIR_GET_HVALUE(reference, _32$$18); ZEPHIR_CALL_METHOD(&_33$$19, reference, "getname", NULL, 0); @@ -58055,21 +57707,21 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, truncateTable) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &tableName_param, &schemaName_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { ZEPHIR_INIT_VAR(tableName); ZVAL_EMPTY_STRING(tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(schemaName); @@ -58100,11 +57752,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, dropTable) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &tableName_param, &schemaName_param, &ifExists_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { ZEPHIR_INIT_VAR(tableName); @@ -58119,7 +57771,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, dropTable) { if (!ifExists_param) { ifExists = 1; } else { - if (unlikely(Z_TYPE_P(ifExists_param) != IS_BOOL)) { + if (UNEXPECTED(Z_TYPE_P(ifExists_param) != IS_BOOL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'ifExists' must be a bool") TSRMLS_CC); RETURN_MM_NULL(); } @@ -58149,11 +57801,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, createView) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 1, &viewName_param, &definition_param, &schemaName_param); - if (unlikely(Z_TYPE_P(viewName_param) != IS_STRING && Z_TYPE_P(viewName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(viewName_param) != IS_STRING && Z_TYPE_P(viewName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'viewName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(viewName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(viewName_param) == IS_STRING)) { zephir_get_strval(viewName, viewName_param); } else { ZEPHIR_INIT_VAR(viewName); @@ -58190,11 +57842,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, dropView) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &viewName_param, &schemaName_param, &ifExists_param); - if (unlikely(Z_TYPE_P(viewName_param) != IS_STRING && Z_TYPE_P(viewName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(viewName_param) != IS_STRING && Z_TYPE_P(viewName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'viewName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(viewName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(viewName_param) == IS_STRING)) { zephir_get_strval(viewName, viewName_param); } else { ZEPHIR_INIT_VAR(viewName); @@ -58209,7 +57861,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, dropView) { if (!ifExists_param) { ifExists = 1; } else { - if (unlikely(Z_TYPE_P(ifExists_param) != IS_BOOL)) { + if (UNEXPECTED(Z_TYPE_P(ifExists_param) != IS_BOOL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'ifExists' must be a bool") TSRMLS_CC); RETURN_MM_NULL(); } @@ -58236,11 +57888,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, tableExists) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &tableName_param, &schemaName_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { ZEPHIR_INIT_VAR(tableName); @@ -58267,11 +57919,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, viewExists) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &viewName_param, &schemaName_param); - if (unlikely(Z_TYPE_P(viewName_param) != IS_STRING && Z_TYPE_P(viewName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(viewName_param) != IS_STRING && Z_TYPE_P(viewName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'viewName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(viewName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(viewName_param) == IS_STRING)) { zephir_get_strval(viewName, viewName_param); } else { ZEPHIR_INIT_VAR(viewName); @@ -58298,11 +57950,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, describeColumns) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &table_param, &schema_param); - if (unlikely(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'table' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(table_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(table_param) == IS_STRING)) { zephir_get_strval(table, table_param); } else { ZEPHIR_INIT_VAR(table); @@ -58353,11 +58005,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, listViews) { ZEPHIR_INIT_VAR(schemaName); ZVAL_EMPTY_STRING(schemaName); } else { - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(schemaName); @@ -58379,11 +58031,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, listIndexesSql) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &table_param, &schema_param, &keyName_param); - if (unlikely(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'table' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(table_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(table_param) == IS_STRING)) { zephir_get_strval(table, table_param); } else { ZEPHIR_INIT_VAR(table); @@ -58427,11 +58079,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, describeIndexes) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &table_param, &schema_param); - if (unlikely(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'table' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(table_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(table_param) == IS_STRING)) { zephir_get_strval(table, table_param); } else { ZEPHIR_INIT_VAR(table); @@ -58458,11 +58110,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, describeIndex) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &index_param); - if (unlikely(Z_TYPE_P(index_param) != IS_STRING && Z_TYPE_P(index_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(index_param) != IS_STRING && Z_TYPE_P(index_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'index' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(index_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(index_param) == IS_STRING)) { zephir_get_strval(index, index_param); } else { ZEPHIR_INIT_VAR(index); @@ -58483,11 +58135,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, describeReferences) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &table_param, &schema_param); - if (unlikely(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'table' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(table_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(table_param) == IS_STRING)) { zephir_get_strval(table, table_param); } else { ZEPHIR_INIT_VAR(table); @@ -58514,11 +58166,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, tableOptions) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &table_param, &schema_param); - if (unlikely(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'table' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(table_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(table_param) == IS_STRING)) { zephir_get_strval(table, table_param); } else { ZEPHIR_INIT_VAR(table); @@ -59147,8 +58799,7 @@ static PHP_METHOD(Phalcon_Debug_Dump, all) { ZVAL_STRING(_1, "variables", 1); zephir_array_fast_append(_0, _1); ZEPHIR_INIT_NVAR(_1); - array_init(_1); - zend_copy_parameters_array(ZEND_NUM_ARGS(), _1 TSRMLS_CC); + zephir_get_args(_1 TSRMLS_CC); ZEPHIR_CALL_USER_FUNC_ARRAY(return_value, _0, _1); zephir_check_call_status(); RETURN_MM(); @@ -59163,11 +58814,11 @@ static PHP_METHOD(Phalcon_Debug_Dump, getStyle) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &type_param); - if (unlikely(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'type' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(type_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(type_param) == IS_STRING)) { zephir_get_strval(type, type_param); } else { ZEPHIR_INIT_VAR(type); @@ -59304,8 +58955,8 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { zephir_concat_self(&output, _2$$4 TSRMLS_CC); zephir_is_iterable(variable, &_8$$4, &_7$$4, 0, 0, "phalcon/debug/dump.zep", 161); for ( - ; zephir_hash_get_current_data_ex(_8$$4, (void**) &_9$$4, &_7$$4) == SUCCESS - ; zephir_hash_move_forward_ex(_8$$4, &_7$$4) + ; zend_hash_get_current_data_ex(_8$$4, (void**) &_9$$4, &_7$$4) == SUCCESS + ; zend_hash_move_forward_ex(_8$$4, &_7$$4) ) { ZEPHIR_GET_HMKEY(key, _8$$4, _7$$4); ZEPHIR_GET_HVALUE(value, _9$$4); @@ -59415,8 +59066,8 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { zephir_check_call_status(); zephir_is_iterable(_40$$11, &_42$$11, &_41$$11, 0, 0, "phalcon/debug/dump.zep", 194); for ( - ; zephir_hash_get_current_data_ex(_42$$11, (void**) &_43$$11, &_41$$11) == SUCCESS - ; zephir_hash_move_forward_ex(_42$$11, &_41$$11) + ; zend_hash_get_current_data_ex(_42$$11, (void**) &_43$$11, &_41$$11) == SUCCESS + ; zend_hash_move_forward_ex(_42$$11, &_41$$11) ) { ZEPHIR_GET_HMKEY(key, _42$$11, _41$$11); ZEPHIR_GET_HVALUE(value, _43$$11); @@ -59562,8 +59213,8 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { } else { zephir_is_iterable(attr, &_76$$20, &_75$$20, 0, 0, "phalcon/debug/dump.zep", 243); for ( - ; zephir_hash_get_current_data_ex(_76$$20, (void**) &_77$$20, &_75$$20) == SUCCESS - ; zephir_hash_move_forward_ex(_76$$20, &_75$$20) + ; zend_hash_get_current_data_ex(_76$$20, (void**) &_77$$20, &_75$$20) == SUCCESS + ; zend_hash_move_forward_ex(_76$$20, &_75$$20) ) { ZEPHIR_GET_HVALUE(value, _77$$20); ZEPHIR_INIT_NVAR(_78$$21); @@ -59817,12 +59468,11 @@ static PHP_METHOD(Phalcon_Debug_Dump, variables) { ZEPHIR_INIT_VAR(output); ZVAL_STRING(output, "", 1); ZEPHIR_INIT_VAR(_0); - array_init(_0); - zend_copy_parameters_array(ZEND_NUM_ARGS(), _0 TSRMLS_CC); + zephir_get_args(_0 TSRMLS_CC); zephir_is_iterable(_0, &_2, &_1, 0, 0, "phalcon/debug/dump.zep", 315); for ( - ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS - ; zephir_hash_move_forward_ex(_2, &_1) + ; zend_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS + ; zend_hash_move_forward_ex(_2, &_1) ) { ZEPHIR_GET_HMKEY(key, _2, _1); ZEPHIR_GET_HVALUE(value, _3); @@ -60300,11 +59950,11 @@ static PHP_METHOD(Phalcon_Di_Injectable, __get) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &propertyName_param); - if (unlikely(Z_TYPE_P(propertyName_param) != IS_STRING && Z_TYPE_P(propertyName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(propertyName_param) != IS_STRING && Z_TYPE_P(propertyName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'propertyName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(propertyName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(propertyName_param) == IS_STRING)) { zephir_get_strval(propertyName, propertyName_param); } else { ZEPHIR_INIT_VAR(propertyName); @@ -60417,11 +60067,11 @@ static PHP_METHOD(Phalcon_Di_Service, __construct) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 1, &name_param, &definition, &shared_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -61076,8 +60726,8 @@ static PHP_METHOD(Phalcon_Di_Service_Builder, _buildParameters) { array_init(buildArguments); zephir_is_iterable(arguments, &_1, &_0, 0, 0, "phalcon/di/service/builder.zep", 119); for ( - ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS - ; zephir_hash_move_forward_ex(_1, &_0) + ; zend_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS + ; zend_hash_move_forward_ex(_1, &_0) ) { ZEPHIR_GET_HMKEY(position, _1, _0); ZEPHIR_GET_HVALUE(argument, _2); @@ -61148,8 +60798,8 @@ static PHP_METHOD(Phalcon_Di_Service_Builder, build) { } zephir_is_iterable(paramCalls, &_3$$10, &_2$$10, 0, 0, "phalcon/di/service/builder.zep", 235); for ( - ; zephir_hash_get_current_data_ex(_3$$10, (void**) &_4$$10, &_2$$10) == SUCCESS - ; zephir_hash_move_forward_ex(_3$$10, &_2$$10) + ; zend_hash_get_current_data_ex(_3$$10, (void**) &_4$$10, &_2$$10) == SUCCESS + ; zend_hash_move_forward_ex(_3$$10, &_2$$10) ) { ZEPHIR_GET_HMKEY(methodPosition, _3$$10, _2$$10); ZEPHIR_GET_HVALUE(method, _4$$10); @@ -61219,8 +60869,8 @@ static PHP_METHOD(Phalcon_Di_Service_Builder, build) { } zephir_is_iterable(paramCalls, &_16$$19, &_15$$19, 0, 0, "phalcon/di/service/builder.zep", 283); for ( - ; zephir_hash_get_current_data_ex(_16$$19, (void**) &_17$$19, &_15$$19) == SUCCESS - ; zephir_hash_move_forward_ex(_16$$19, &_15$$19) + ; zend_hash_get_current_data_ex(_16$$19, (void**) &_17$$19, &_15$$19) == SUCCESS + ; zend_hash_move_forward_ex(_16$$19, &_15$$19) ) { ZEPHIR_GET_HMKEY(propertyPosition, _16$$19, _15$$19); ZEPHIR_GET_HVALUE(property, _17$$19); @@ -61348,11 +60998,11 @@ static PHP_METHOD(Phalcon_Events_Event, __construct) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 2, &type_param, &source, &data, &cancelable_param); - if (unlikely(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'type' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(type_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(type_param) == IS_STRING)) { zephir_get_strval(type, type_param); } else { ZEPHIR_INIT_VAR(type); @@ -61408,11 +61058,11 @@ static PHP_METHOD(Phalcon_Events_Event, setType) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &type_param); - if (unlikely(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'type' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(type_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(type_param) == IS_STRING)) { zephir_get_strval(type, type_param); } else { ZEPHIR_INIT_VAR(type); @@ -61568,11 +61218,11 @@ static PHP_METHOD(Phalcon_Events_Manager, attach) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 1, &eventType_param, &handler, &priority_param); - if (unlikely(Z_TYPE_P(eventType_param) != IS_STRING && Z_TYPE_P(eventType_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(eventType_param) != IS_STRING && Z_TYPE_P(eventType_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'eventType' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(eventType_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(eventType_param) == IS_STRING)) { zephir_get_strval(eventType, eventType_param); } else { ZEPHIR_INIT_VAR(eventType); @@ -61581,7 +61231,7 @@ static PHP_METHOD(Phalcon_Events_Manager, attach) { if (!priority_param) { priority = 100; } else { - if (unlikely(Z_TYPE_P(priority_param) != IS_LONG)) { + if (UNEXPECTED(Z_TYPE_P(priority_param) != IS_LONG)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'priority' must be a int") TSRMLS_CC); RETURN_MM_NULL(); } @@ -61636,11 +61286,11 @@ static PHP_METHOD(Phalcon_Events_Manager, detach) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &eventType_param, &handler); - if (unlikely(Z_TYPE_P(eventType_param) != IS_STRING && Z_TYPE_P(eventType_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(eventType_param) != IS_STRING && Z_TYPE_P(eventType_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'eventType' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(eventType_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(eventType_param) == IS_STRING)) { zephir_get_strval(eventType, eventType_param); } else { ZEPHIR_INIT_VAR(eventType); @@ -61776,11 +61426,11 @@ static PHP_METHOD(Phalcon_Events_Manager, detachAll) { ZEPHIR_INIT_VAR(type); ZVAL_EMPTY_STRING(type); } else { - if (unlikely(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'type' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(type_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(type_param) == IS_STRING)) { zephir_get_strval(type, type_param); } else { ZEPHIR_INIT_VAR(type); @@ -61918,8 +61568,8 @@ static PHP_METHOD(Phalcon_Events_Manager, fireQueue) { } else { zephir_is_iterable(queue, &_12$$21, &_11$$21, 0, 0, "phalcon/events/manager.zep", 358); for ( - ; zephir_hash_get_current_data_ex(_12$$21, (void**) &_13$$21, &_11$$21) == SUCCESS - ; zephir_hash_move_forward_ex(_12$$21, &_11$$21) + ; zend_hash_get_current_data_ex(_12$$21, (void**) &_13$$21, &_11$$21) == SUCCESS + ; zend_hash_move_forward_ex(_12$$21, &_11$$21) ) { ZEPHIR_GET_HVALUE(handler, _13$$21); if (Z_TYPE_P(handler) == IS_OBJECT) { @@ -61978,11 +61628,11 @@ static PHP_METHOD(Phalcon_Events_Manager, fire) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 2, &eventType_param, &source, &data, &cancelable_param); - if (unlikely(Z_TYPE_P(eventType_param) != IS_STRING && Z_TYPE_P(eventType_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(eventType_param) != IS_STRING && Z_TYPE_P(eventType_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'eventType' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(eventType_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(eventType_param) == IS_STRING)) { zephir_get_strval(eventType, eventType_param); } else { ZEPHIR_INIT_VAR(eventType); @@ -62084,11 +61734,11 @@ static PHP_METHOD(Phalcon_Events_Manager, hasListeners) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &type_param); - if (unlikely(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'type' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(type_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(type_param) == IS_STRING)) { zephir_get_strval(type, type_param); } else { ZEPHIR_INIT_VAR(type); @@ -62109,11 +61759,11 @@ static PHP_METHOD(Phalcon_Events_Manager, getListeners) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &type_param); - if (unlikely(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'type' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(type_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(type_param) == IS_STRING)) { zephir_get_strval(type, type_param); } else { ZEPHIR_INIT_VAR(type); @@ -62258,8 +61908,8 @@ static PHP_METHOD(Phalcon_Flash_Direct, output) { if (Z_TYPE_P(messages) == IS_ARRAY) { zephir_is_iterable(messages, &_1$$3, &_0$$3, 0, 0, "phalcon/flash/direct.zep", 52); for ( - ; zephir_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_1$$3, &_0$$3) + ; zend_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS + ; zend_hash_move_forward_ex(_1$$3, &_0$$3) ) { ZEPHIR_GET_HVALUE(message, _2$$3); zend_print_zval(message, 0); @@ -62516,8 +62166,8 @@ static PHP_METHOD(Phalcon_Flash_Session, output) { if (Z_TYPE_P(messages) == IS_ARRAY) { zephir_is_iterable(messages, &_2$$3, &_1$$3, 0, 0, "phalcon/flash/session.zep", 136); for ( - ; zephir_hash_get_current_data_ex(_2$$3, (void**) &_3$$3, &_1$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_2$$3, &_1$$3) + ; zend_hash_get_current_data_ex(_2$$3, (void**) &_3$$3, &_1$$3) == SUCCESS + ; zend_hash_move_forward_ex(_2$$3, &_1$$3) ) { ZEPHIR_GET_HMKEY(type, _2$$3, _1$$3); ZEPHIR_GET_HVALUE(message, _3$$3); @@ -62645,11 +62295,11 @@ static PHP_METHOD(Phalcon_Forms_Element, setName) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -63420,11 +63070,11 @@ static PHP_METHOD(Phalcon_Forms_Form, setAction) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &action_param); - if (unlikely(Z_TYPE_P(action_param) != IS_STRING && Z_TYPE_P(action_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(action_param) != IS_STRING && Z_TYPE_P(action_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'action' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(action_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(action_param) == IS_STRING)) { zephir_get_strval(action, action_param); } else { ZEPHIR_INIT_VAR(action); @@ -63558,8 +63208,8 @@ static PHP_METHOD(Phalcon_Forms_Form, bind) { ZVAL_NULL(filter); zephir_is_iterable(data, &_2, &_1, 0, 0, "phalcon/forms/form.zep", 246); for ( - ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS - ; zephir_hash_move_forward_ex(_2, &_1) + ; zend_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS + ; zend_hash_move_forward_ex(_2, &_1) ) { ZEPHIR_GET_HMKEY(key, _2, _1); ZEPHIR_GET_HVALUE(value, _3); @@ -63673,8 +63323,8 @@ static PHP_METHOD(Phalcon_Forms_Form, isValid) { _6 = zephir_fetch_nproperty_this(this_ptr, SL("_elements"), PH_NOISY_CC); zephir_is_iterable(_6, &_8, &_7, 0, 0, "phalcon/forms/form.zep", 338); for ( - ; zephir_hash_get_current_data_ex(_8, (void**) &_9, &_7) == SUCCESS - ; zephir_hash_move_forward_ex(_8, &_7) + ; zend_hash_get_current_data_ex(_8, (void**) &_9, &_7) == SUCCESS + ; zend_hash_move_forward_ex(_8, &_7) ) { ZEPHIR_GET_HVALUE(element, _9); ZEPHIR_CALL_METHOD(&validators, element, "getvalidators", NULL, 0); @@ -63690,8 +63340,8 @@ static PHP_METHOD(Phalcon_Forms_Form, isValid) { zephir_check_call_status(); zephir_is_iterable(validators, &_12$$11, &_11$$11, 0, 0, "phalcon/forms/form.zep", 325); for ( - ; zephir_hash_get_current_data_ex(_12$$11, (void**) &_13$$11, &_11$$11) == SUCCESS - ; zephir_hash_move_forward_ex(_12$$11, &_11$$11) + ; zend_hash_get_current_data_ex(_12$$11, (void**) &_13$$11, &_11$$11) == SUCCESS + ; zend_hash_move_forward_ex(_12$$11, &_11$$11) ) { ZEPHIR_GET_HVALUE(validator, _13$$11); ZEPHIR_CALL_METHOD(NULL, validation, "add", &_14, 217, name, validator); @@ -63780,11 +63430,11 @@ static PHP_METHOD(Phalcon_Forms_Form, getMessagesFor) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -63817,11 +63467,11 @@ static PHP_METHOD(Phalcon_Forms_Form, hasMessagesFor) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -63879,8 +63529,8 @@ static PHP_METHOD(Phalcon_Forms_Form, add) { _2$$4 = zephir_fetch_nproperty_this(this_ptr, SL("_elements"), PH_NOISY_CC); zephir_is_iterable(_2$$4, &_4$$4, &_3$$4, 0, 0, "phalcon/forms/form.zep", 449); for ( - ; zephir_hash_get_current_data_ex(_4$$4, (void**) &_5$$4, &_3$$4) == SUCCESS - ; zephir_hash_move_forward_ex(_4$$4, &_3$$4) + ; zend_hash_get_current_data_ex(_4$$4, (void**) &_5$$4, &_3$$4) == SUCCESS + ; zend_hash_move_forward_ex(_4$$4, &_3$$4) ) { ZEPHIR_GET_HMKEY(key, _4$$4, _3$$4); ZEPHIR_GET_HVALUE(value, _5$$4); @@ -63911,11 +63561,11 @@ static PHP_METHOD(Phalcon_Forms_Form, render) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &name_param, &attributes); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -63954,11 +63604,11 @@ static PHP_METHOD(Phalcon_Forms_Form, get) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -63993,11 +63643,11 @@ static PHP_METHOD(Phalcon_Forms_Form, label) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &name_param, &attributes_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -64039,11 +63689,11 @@ static PHP_METHOD(Phalcon_Forms_Form, getLabel) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -64082,11 +63732,11 @@ static PHP_METHOD(Phalcon_Forms_Form, getValue) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -64164,11 +63814,11 @@ static PHP_METHOD(Phalcon_Forms_Form, has) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -64189,11 +63839,11 @@ static PHP_METHOD(Phalcon_Forms_Form, remove) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -64236,8 +63886,8 @@ static PHP_METHOD(Phalcon_Forms_Form, clear) { if (Z_TYPE_P(fields) == IS_ARRAY) { zephir_is_iterable(fields, &_1$$5, &_0$$5, 0, 0, "phalcon/forms/form.zep", 652); for ( - ; zephir_hash_get_current_data_ex(_1$$5, (void**) &_2$$5, &_0$$5) == SUCCESS - ; zephir_hash_move_forward_ex(_1$$5, &_0$$5) + ; zend_hash_get_current_data_ex(_1$$5, (void**) &_2$$5, &_0$$5) == SUCCESS + ; zend_hash_move_forward_ex(_1$$5, &_0$$5) ) { ZEPHIR_GET_HVALUE(field, _2$$5); if (zephir_array_isset(data, field)) { @@ -64256,8 +63906,8 @@ static PHP_METHOD(Phalcon_Forms_Form, clear) { if (Z_TYPE_P(elements) == IS_ARRAY) { zephir_is_iterable(elements, &_4$$10, &_3$$10, 0, 0, "phalcon/forms/form.zep", 672); for ( - ; zephir_hash_get_current_data_ex(_4$$10, (void**) &_5$$10, &_3$$10) == SUCCESS - ; zephir_hash_move_forward_ex(_4$$10, &_3$$10) + ; zend_hash_get_current_data_ex(_4$$10, (void**) &_5$$10, &_3$$10) == SUCCESS + ; zend_hash_move_forward_ex(_4$$10, &_3$$10) ) { ZEPHIR_GET_HVALUE(element, _5$$10); if (Z_TYPE_P(fields) != IS_ARRAY) { @@ -64891,8 +64541,8 @@ static PHP_METHOD(Phalcon_Forms_Element_Select, addOption) { if (Z_TYPE_P(option) == IS_ARRAY) { zephir_is_iterable(option, &_1$$3, &_0$$3, 0, 0, "phalcon/forms/element/select.zep", 84); for ( - ; zephir_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_1$$3, &_0$$3) + ; zend_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS + ; zend_hash_move_forward_ex(_1$$3, &_0$$3) ) { ZEPHIR_GET_HMKEY(key, _1$$3, _0$$3); ZEPHIR_GET_HVALUE(value, _2$$3); @@ -65101,11 +64751,11 @@ static PHP_METHOD(Phalcon_Http_Cookie, __construct) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 6, &name_param, &value, &expire, &path, &secure, &domain, &httpOnly); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -65537,11 +65187,11 @@ static PHP_METHOD(Phalcon_Http_Cookie, setPath) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &path_param); - if (unlikely(Z_TYPE_P(path_param) != IS_STRING && Z_TYPE_P(path_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(path_param) != IS_STRING && Z_TYPE_P(path_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'path' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(path_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(path_param) == IS_STRING)) { zephir_get_strval(path, path_param); } else { ZEPHIR_INIT_VAR(path); @@ -65592,11 +65242,11 @@ static PHP_METHOD(Phalcon_Http_Cookie, setDomain) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &domain_param); - if (unlikely(Z_TYPE_P(domain_param) != IS_STRING && Z_TYPE_P(domain_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(domain_param) != IS_STRING && Z_TYPE_P(domain_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'domain' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(domain_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(domain_param) == IS_STRING)) { zephir_get_strval(domain, domain_param); } else { ZEPHIR_INIT_VAR(domain); @@ -65868,11 +65518,11 @@ static PHP_METHOD(Phalcon_Http_Request, get) { ZEPHIR_INIT_VAR(name); ZVAL_EMPTY_STRING(name); } else { - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -65930,11 +65580,11 @@ static PHP_METHOD(Phalcon_Http_Request, getPost) { ZEPHIR_INIT_VAR(name); ZVAL_EMPTY_STRING(name); } else { - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -65991,11 +65641,11 @@ static PHP_METHOD(Phalcon_Http_Request, getPut) { ZEPHIR_INIT_VAR(name); ZVAL_EMPTY_STRING(name); } else { - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -66066,11 +65716,11 @@ static PHP_METHOD(Phalcon_Http_Request, getQuery) { ZEPHIR_INIT_VAR(name); ZVAL_EMPTY_STRING(name); } else { - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -66129,11 +65779,11 @@ static PHP_METHOD(Phalcon_Http_Request, getHelper) { ZEPHIR_INIT_VAR(name); ZVAL_EMPTY_STRING(name); } else { - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -66215,11 +65865,11 @@ static PHP_METHOD(Phalcon_Http_Request, getServer) { zephir_get_global(&_SERVER, SS("_SERVER") TSRMLS_CC); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -66243,11 +65893,11 @@ static PHP_METHOD(Phalcon_Http_Request, has) { zephir_get_global(&_REQUEST, SS("_REQUEST") TSRMLS_CC); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -66268,11 +65918,11 @@ static PHP_METHOD(Phalcon_Http_Request, hasPost) { zephir_get_global(&_POST, SS("_POST") TSRMLS_CC); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -66293,11 +65943,11 @@ static PHP_METHOD(Phalcon_Http_Request, hasPut) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -66320,11 +65970,11 @@ static PHP_METHOD(Phalcon_Http_Request, hasQuery) { zephir_get_global(&_GET, SS("_GET") TSRMLS_CC); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -66345,11 +65995,11 @@ static PHP_METHOD(Phalcon_Http_Request, hasServer) { zephir_get_global(&_SERVER, SS("_SERVER") TSRMLS_CC); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -66371,11 +66021,11 @@ static PHP_METHOD(Phalcon_Http_Request, getHeader) { zephir_get_global(&_SERVER, SS("_SERVER") TSRMLS_CC); zephir_fetch_params(1, 1, 0, &header_param); - if (unlikely(Z_TYPE_P(header_param) != IS_STRING && Z_TYPE_P(header_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(header_param) != IS_STRING && Z_TYPE_P(header_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'header' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(header_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(header_param) == IS_STRING)) { zephir_get_strval(header, header_param); } else { ZEPHIR_INIT_VAR(header); @@ -66816,7 +66466,7 @@ static PHP_METHOD(Phalcon_Http_Request, getMethod) { ZEPHIR_INIT_VAR(returnMethod); ZVAL_EMPTY_STRING(returnMethod); ZEPHIR_OBS_VAR(requestMethod); - if (likely(zephir_array_isset_string_fetch(&requestMethod, _SERVER, SS("REQUEST_METHOD"), 0 TSRMLS_CC))) { + if (EXPECTED(zephir_array_isset_string_fetch(&requestMethod, _SERVER, SS("REQUEST_METHOD"), 0 TSRMLS_CC))) { ZEPHIR_INIT_NVAR(returnMethod); zephir_fast_strtoupper(returnMethod, requestMethod); } else { @@ -66932,8 +66582,8 @@ static PHP_METHOD(Phalcon_Http_Request, isMethod) { if (Z_TYPE_P(methods) == IS_ARRAY) { zephir_is_iterable(methods, &_5$$5, &_4$$5, 0, 0, "phalcon/http/request.zep", 680); for ( - ; zephir_hash_get_current_data_ex(_5$$5, (void**) &_6$$5, &_4$$5) == SUCCESS - ; zephir_hash_move_forward_ex(_5$$5, &_4$$5) + ; zend_hash_get_current_data_ex(_5$$5, (void**) &_6$$5, &_4$$5) == SUCCESS + ; zend_hash_move_forward_ex(_5$$5, &_4$$5) ) { ZEPHIR_GET_HVALUE(method, _6$$5); ZEPHIR_INIT_NVAR(_8$$6); @@ -67115,8 +66765,8 @@ static PHP_METHOD(Phalcon_Http_Request, hasFiles) { } zephir_is_iterable(files, &_1, &_0, 0, 0, "phalcon/http/request.zep", 799); for ( - ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS - ; zephir_hash_move_forward_ex(_1, &_0) + ; zend_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS + ; zend_hash_move_forward_ex(_1, &_0) ) { ZEPHIR_GET_HVALUE(file, _2); ZEPHIR_OBS_NVAR(error); @@ -67168,8 +66818,8 @@ static PHP_METHOD(Phalcon_Http_Request, hasFileHelper) { } zephir_is_iterable(data, &_1, &_0, 0, 0, "phalcon/http/request.zep", 826); for ( - ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS - ; zephir_hash_move_forward_ex(_1, &_0) + ; zend_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS + ; zend_hash_move_forward_ex(_1, &_0) ) { ZEPHIR_GET_HVALUE(value, _2); if (Z_TYPE_P(value) != IS_ARRAY) { @@ -67224,8 +66874,8 @@ static PHP_METHOD(Phalcon_Http_Request, getUploadedFiles) { if (zephir_fast_count_int(superFiles TSRMLS_CC) > 0) { zephir_is_iterable(superFiles, &_1$$3, &_0$$3, 0, 0, "phalcon/http/request.zep", 871); for ( - ; zephir_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_1$$3, &_0$$3) + ; zend_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS + ; zend_hash_move_forward_ex(_1$$3, &_0$$3) ) { ZEPHIR_GET_HMKEY(prefix, _1$$3, _0$$3); ZEPHIR_GET_HVALUE(input, _2$$3); @@ -67241,8 +66891,8 @@ static PHP_METHOD(Phalcon_Http_Request, getUploadedFiles) { zephir_check_call_status(); zephir_is_iterable(smoothInput, &_11$$5, &_10$$5, 0, 0, "phalcon/http/request.zep", 865); for ( - ; zephir_hash_get_current_data_ex(_11$$5, (void**) &_12$$5, &_10$$5) == SUCCESS - ; zephir_hash_move_forward_ex(_11$$5, &_10$$5) + ; zend_hash_get_current_data_ex(_11$$5, (void**) &_12$$5, &_10$$5) == SUCCESS + ; zend_hash_move_forward_ex(_11$$5, &_10$$5) ) { ZEPHIR_GET_HVALUE(file, _12$$5); _13$$6 = onlySuccessful == 0; @@ -67321,8 +66971,8 @@ static PHP_METHOD(Phalcon_Http_Request, smoothFiles) { array_init(files); zephir_is_iterable(names, &_1, &_0, 0, 0, "phalcon/http/request.zep", 916); for ( - ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS - ; zephir_hash_move_forward_ex(_1, &_0) + ; zend_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS + ; zend_hash_move_forward_ex(_1, &_0) ) { ZEPHIR_GET_HMKEY(idx, _1, _0); ZEPHIR_GET_HVALUE(name, _2); @@ -67357,8 +67007,8 @@ static PHP_METHOD(Phalcon_Http_Request, smoothFiles) { zephir_check_call_status(); zephir_is_iterable(parentFiles, &_12$$5, &_11$$5, 0, 0, "phalcon/http/request.zep", 913); for ( - ; zephir_hash_get_current_data_ex(_12$$5, (void**) &_13$$5, &_11$$5) == SUCCESS - ; zephir_hash_move_forward_ex(_12$$5, &_11$$5) + ; zend_hash_get_current_data_ex(_12$$5, (void**) &_13$$5, &_11$$5) == SUCCESS + ; zend_hash_move_forward_ex(_12$$5, &_11$$5) ) { ZEPHIR_GET_HVALUE(file, _13$$5); zephir_array_append(&files, file, PH_SEPARATE, "phalcon/http/request.zep", 911); @@ -67393,8 +67043,8 @@ static PHP_METHOD(Phalcon_Http_Request, getHeaders) { zephir_array_update_string(&contentHeaders, SL("CONTENT_MD5"), &ZEPHIR_GLOBAL(global_true), PH_COPY | PH_SEPARATE); zephir_is_iterable(_SERVER, &_1, &_0, 0, 0, "phalcon/http/request.zep", 953); for ( - ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS - ; zephir_hash_move_forward_ex(_1, &_0) + ; zend_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS + ; zend_hash_move_forward_ex(_1, &_0) ) { ZEPHIR_GET_HMKEY(name, _1, _0); ZEPHIR_GET_HVALUE(value, _2); @@ -67548,11 +67198,11 @@ static PHP_METHOD(Phalcon_Http_Request, _getBestQuality) { zephir_fetch_params(1, 2, 0, &qualityParts_param, &name_param); zephir_get_arrval(qualityParts, qualityParts_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -67566,8 +67216,8 @@ static PHP_METHOD(Phalcon_Http_Request, _getBestQuality) { ZVAL_STRING(selectedName, "", 1); zephir_is_iterable(qualityParts, &_1, &_0, 0, 0, "phalcon/http/request.zep", 1029); for ( - ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS - ; zephir_hash_move_forward_ex(_1, &_0) + ; zend_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS + ; zend_hash_move_forward_ex(_1, &_0) ) { ZEPHIR_GET_HVALUE(accept, _2); if (i == 0) { @@ -67780,8 +67430,8 @@ static PHP_METHOD(Phalcon_Http_Request, getDigestAuth) { if (Z_TYPE_P(matches) == IS_ARRAY) { zephir_is_iterable(matches, &_4$$5, &_3$$5, 0, 0, "phalcon/http/request.zep", 1136); for ( - ; zephir_hash_get_current_data_ex(_4$$5, (void**) &_5$$5, &_3$$5) == SUCCESS - ; zephir_hash_move_forward_ex(_4$$5, &_3$$5) + ; zend_hash_get_current_data_ex(_4$$5, (void**) &_5$$5, &_3$$5) == SUCCESS + ; zend_hash_move_forward_ex(_4$$5, &_3$$5) ) { ZEPHIR_GET_HVALUE(match, _5$$5); zephir_array_fetch_long(&_6$$6, match, 3, PH_NOISY | PH_READONLY, "phalcon/http/request.zep", 1134 TSRMLS_CC); @@ -67807,21 +67457,21 @@ static PHP_METHOD(Phalcon_Http_Request, _getQualityHeader) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &serverIndex_param, &name_param); - if (unlikely(Z_TYPE_P(serverIndex_param) != IS_STRING && Z_TYPE_P(serverIndex_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(serverIndex_param) != IS_STRING && Z_TYPE_P(serverIndex_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'serverIndex' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(serverIndex_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(serverIndex_param) == IS_STRING)) { zephir_get_strval(serverIndex, serverIndex_param); } else { ZEPHIR_INIT_VAR(serverIndex); ZVAL_EMPTY_STRING(serverIndex); } - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -67843,8 +67493,8 @@ static PHP_METHOD(Phalcon_Http_Request, _getQualityHeader) { zephir_check_call_status(); zephir_is_iterable(_4, &_7, &_6, 0, 0, "phalcon/http/request.zep", 1170); for ( - ; zephir_hash_get_current_data_ex(_7, (void**) &_8, &_6) == SUCCESS - ; zephir_hash_move_forward_ex(_7, &_6) + ; zend_hash_get_current_data_ex(_7, (void**) &_8, &_6) == SUCCESS + ; zend_hash_move_forward_ex(_7, &_6) ) { ZEPHIR_GET_HVALUE(part, _8); ZEPHIR_INIT_NVAR(headerParts); @@ -67861,8 +67511,8 @@ static PHP_METHOD(Phalcon_Http_Request, _getQualityHeader) { zephir_check_call_status(); zephir_is_iterable(_13$$3, &_15$$3, &_14$$3, 0, 0, "phalcon/http/request.zep", 1167); for ( - ; zephir_hash_get_current_data_ex(_15$$3, (void**) &_16$$3, &_14$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_15$$3, &_14$$3) + ; zend_hash_get_current_data_ex(_15$$3, (void**) &_16$$3, &_14$$3) == SUCCESS + ; zend_hash_move_forward_ex(_15$$3, &_14$$3) ) { ZEPHIR_GET_HVALUE(headerPart, _16$$3); ZEPHIR_SINIT_NVAR(_17$$4); @@ -68136,8 +67786,8 @@ static PHP_METHOD(Phalcon_Http_Response, setStatusCode) { ZEPHIR_INIT_VAR(_0$$3); zephir_is_iterable(currentHeadersRaw, &_2$$3, &_1$$3, 0, 0, "phalcon/http/response.zep", 132); for ( - ; zephir_hash_get_current_data_ex(_2$$3, (void**) &_3$$3, &_1$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_2$$3, &_1$$3) + ; zend_hash_get_current_data_ex(_2$$3, (void**) &_3$$3, &_1$$3) == SUCCESS + ; zend_hash_move_forward_ex(_2$$3, &_1$$3) ) { ZEPHIR_GET_HMKEY(key, _2$$3, _1$$3); ZEPHIR_GET_HVALUE(_0$$3, _3$$3); @@ -68450,7 +68100,7 @@ static PHP_METHOD(Phalcon_Http_Response, setCache) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &minutes_param); - if (unlikely(Z_TYPE_P(minutes_param) != IS_LONG)) { + if (UNEXPECTED(Z_TYPE_P(minutes_param) != IS_LONG)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'minutes' must be a int") TSRMLS_CC); RETURN_MM_NULL(); } @@ -69181,11 +68831,11 @@ static PHP_METHOD(Phalcon_Http_Request_File, moveTo) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &destination_param); - if (unlikely(Z_TYPE_P(destination_param) != IS_STRING && Z_TYPE_P(destination_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(destination_param) != IS_STRING && Z_TYPE_P(destination_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'destination' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(destination_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(destination_param) == IS_STRING)) { zephir_get_strval(destination, destination_param); } else { ZEPHIR_INIT_VAR(destination); @@ -69316,11 +68966,11 @@ static PHP_METHOD(Phalcon_Http_Response_Cookies, set) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 6, &name_param, &value, &expire_param, &path_param, &secure_param, &domain_param, &httpOnly_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -69349,11 +68999,11 @@ static PHP_METHOD(Phalcon_Http_Response_Cookies, set) { ZEPHIR_INIT_VAR(domain); ZVAL_EMPTY_STRING(domain); } else { - if (unlikely(Z_TYPE_P(domain_param) != IS_STRING && Z_TYPE_P(domain_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(domain_param) != IS_STRING && Z_TYPE_P(domain_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'domain' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(domain_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(domain_param) == IS_STRING)) { zephir_get_strval(domain, domain_param); } else { ZEPHIR_INIT_VAR(domain); @@ -69465,11 +69115,11 @@ static PHP_METHOD(Phalcon_Http_Response_Cookies, get) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -69517,11 +69167,11 @@ static PHP_METHOD(Phalcon_Http_Response_Cookies, has) { zephir_get_global(&_COOKIE, SS("_COOKIE") TSRMLS_CC); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -69549,11 +69199,11 @@ static PHP_METHOD(Phalcon_Http_Response_Cookies, delete) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -69587,8 +69237,8 @@ static PHP_METHOD(Phalcon_Http_Response_Cookies, send) { _1$$3 = zephir_fetch_nproperty_this(this_ptr, SL("_cookies"), PH_NOISY_CC); zephir_is_iterable(_1$$3, &_3$$3, &_2$$3, 0, 0, "phalcon/http/response/cookies.zep", 242); for ( - ; zephir_hash_get_current_data_ex(_3$$3, (void**) &_4$$3, &_2$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_3$$3, &_2$$3) + ; zend_hash_get_current_data_ex(_3$$3, (void**) &_4$$3, &_2$$3) == SUCCESS + ; zend_hash_move_forward_ex(_3$$3, &_2$$3) ) { ZEPHIR_GET_HVALUE(cookie, _4$$3); ZEPHIR_CALL_METHOD(NULL, cookie, "send", NULL, 0); @@ -69776,8 +69426,8 @@ static PHP_METHOD(Phalcon_Http_Response_Headers, send) { _1$$3 = zephir_fetch_nproperty_this(this_ptr, SL("_headers"), PH_NOISY_CC); zephir_is_iterable(_1$$3, &_3$$3, &_2$$3, 0, 0, "phalcon/http/response/headers.zep", 94); for ( - ; zephir_hash_get_current_data_ex(_3$$3, (void**) &_4$$3, &_2$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_3$$3, &_2$$3) + ; zend_hash_get_current_data_ex(_3$$3, (void**) &_4$$3, &_2$$3) == SUCCESS + ; zend_hash_move_forward_ex(_3$$3, &_2$$3) ) { ZEPHIR_GET_HMKEY(header, _3$$3, _2$$3); ZEPHIR_GET_HVALUE(value, _4$$3); @@ -69860,8 +69510,8 @@ static PHP_METHOD(Phalcon_Http_Response_Headers, __set_state) { if (zephir_array_isset_string_fetch(&dataHeaders, data, SS("_headers"), 0 TSRMLS_CC)) { zephir_is_iterable(dataHeaders, &_1$$3, &_0$$3, 0, 0, "phalcon/http/response/headers.zep", 126); for ( - ; zephir_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_1$$3, &_0$$3) + ; zend_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS + ; zend_hash_move_forward_ex(_1$$3, &_0$$3) ) { ZEPHIR_GET_HMKEY(key, _1$$3, _0$$3); ZEPHIR_GET_HVALUE(value, _2$$3); @@ -70958,11 +70608,11 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, __construct) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &file_param, &width_param, &height_param); - if (unlikely(Z_TYPE_P(file_param) != IS_STRING && Z_TYPE_P(file_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(file_param) != IS_STRING && Z_TYPE_P(file_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'file' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(file_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(file_param) == IS_STRING)) { zephir_get_strval(file, file_param); } else { ZEPHIR_INIT_VAR(file); @@ -72580,11 +72230,11 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, __construct) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &file_param, &width_param, &height_param); - if (unlikely(Z_TYPE_P(file_param) != IS_STRING && Z_TYPE_P(file_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(file_param) != IS_STRING && Z_TYPE_P(file_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'file' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(file_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(file_param) == IS_STRING)) { zephir_get_strval(file, file_param); } else { ZEPHIR_INIT_VAR(file); @@ -73254,10 +72904,9 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _reflection) { static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _watermark) { - zend_class_entry *_0$$3; - zephir_fcall_cache_entry *_8 = NULL; + zephir_fcall_cache_entry *_7 = NULL; int offsetX, offsetY, opacity, ZEPHIR_LAST_CALL_STATUS; - zval *image, *offsetX_param = NULL, *offsetY_param = NULL, *opacity_param = NULL, *watermark = NULL, *ret = NULL, *version = NULL, *method = NULL, *_2 = NULL, *_3 = NULL, *_4, *_1$$3, *_5$$5, _6$$5 = zval_used_for_init, *_7$$5 = NULL, *_9$$5 = NULL, *_10$$5 = NULL, *_11$$5, *_12$$5 = NULL; + zval *image, *offsetX_param = NULL, *offsetY_param = NULL, *opacity_param = NULL, *watermark = NULL, *ret = NULL, *version = NULL, *method = NULL, *_1 = NULL, *_2 = NULL, *_3, *_0$$3, *_4$$5, _5$$5 = zval_used_for_init, *_6$$5 = NULL, *_8$$5 = NULL, *_9$$5 = NULL, *_10$$5, *_11$$5 = NULL; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 4, 0, &image, &offsetX_param, &offsetY_param, &opacity_param); @@ -73274,49 +72923,48 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _watermark) { zephir_check_call_status(); ZEPHIR_INIT_VAR(method); ZVAL_STRING(method, "setImageOpacity", 1); - if (likely((zephir_method_exists_ex(watermark, SS("getversion") TSRMLS_CC) == SUCCESS))) { - _0$$3 = zend_fetch_class(SL("Imagick"), ZEND_FETCH_CLASS_AUTO TSRMLS_CC); - ZEPHIR_CALL_CE_STATIC(&version, _0$$3, "getversion", NULL, 0); + if (EXPECTED((zephir_method_exists_ex(watermark, SS("getversion") TSRMLS_CC) == SUCCESS))) { + ZEPHIR_CALL_METHOD(&version, watermark, "getversion", NULL, 0); zephir_check_call_status(); - zephir_array_fetch_string(&_1$$3, version, SL("versionNumber"), PH_NOISY | PH_READONLY, "phalcon/image/adapter/imagick.zep", 365 TSRMLS_CC); - if (ZEPHIR_GE_LONG(_1$$3, 0x700)) { + zephir_array_fetch_string(&_0$$3, version, SL("versionNumber"), PH_NOISY | PH_READONLY, "phalcon/image/adapter/imagick.zep", 365 TSRMLS_CC); + if (ZEPHIR_GE_LONG(_0$$3, 0x700)) { ZEPHIR_INIT_NVAR(method); ZVAL_STRING(method, "setImageAlpha", 1); } } - ZEPHIR_CALL_METHOD(&_2, image, "render", NULL, 0); + ZEPHIR_CALL_METHOD(&_1, image, "render", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, watermark, "readimageblob", NULL, 0, _2); + ZEPHIR_CALL_METHOD(NULL, watermark, "readimageblob", NULL, 0, _1); zephir_check_call_status(); - ZEPHIR_INIT_VAR(_3); - ZVAL_LONG(_3, opacity); - ZEPHIR_CALL_METHOD_ZVAL(NULL, watermark, method, NULL, 0, _3); + ZEPHIR_INIT_VAR(_2); + ZVAL_LONG(_2, opacity); + ZEPHIR_CALL_METHOD_ZVAL(NULL, watermark, method, NULL, 0, _2); zephir_check_call_status(); - _4 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_INIT_NVAR(_3); - ZVAL_LONG(_3, 0); - ZEPHIR_CALL_METHOD(NULL, _4, "setiteratorindex", NULL, 0, _3); + _3 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); + ZEPHIR_INIT_NVAR(_2); + ZVAL_LONG(_2, 0); + ZEPHIR_CALL_METHOD(NULL, _3, "setiteratorindex", NULL, 0, _2); zephir_check_call_status(); while (1) { - _5$$5 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_SINIT_NVAR(_6$$5); - ZVAL_STRING(&_6$$5, "Imagick::COMPOSITE_OVER", 0); - ZEPHIR_CALL_FUNCTION(&_7$$5, "constant", &_8, 196, &_6$$5); + _4$$5 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); + ZEPHIR_SINIT_NVAR(_5$$5); + ZVAL_STRING(&_5$$5, "Imagick::COMPOSITE_OVER", 0); + ZEPHIR_CALL_FUNCTION(&_6$$5, "constant", &_7, 196, &_5$$5); zephir_check_call_status(); + ZEPHIR_INIT_NVAR(_8$$5); + ZVAL_LONG(_8$$5, offsetX); ZEPHIR_INIT_NVAR(_9$$5); - ZVAL_LONG(_9$$5, offsetX); - ZEPHIR_INIT_NVAR(_10$$5); - ZVAL_LONG(_10$$5, offsetY); - ZEPHIR_CALL_METHOD(&ret, _5$$5, "compositeimage", NULL, 0, watermark, _7$$5, _9$$5, _10$$5); + ZVAL_LONG(_9$$5, offsetY); + ZEPHIR_CALL_METHOD(&ret, _4$$5, "compositeimage", NULL, 0, watermark, _6$$5, _8$$5, _9$$5); zephir_check_call_status(); if (!ZEPHIR_IS_TRUE_IDENTICAL(ret)) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_image_exception_ce, "Imagick::compositeImage failed", "phalcon/image/adapter/imagick.zep", 379); return; } - _11$$5 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_METHOD(&_12$$5, _11$$5, "nextimage", NULL, 0); + _10$$5 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); + ZEPHIR_CALL_METHOD(&_11$$5, _10$$5, "nextimage", NULL, 0); zephir_check_call_status(); - if (ZEPHIR_IS_FALSE_IDENTICAL(_12$$5)) { + if (ZEPHIR_IS_FALSE_IDENTICAL(_11$$5)) { break; } } @@ -74163,8 +73811,8 @@ static PHP_METHOD(Phalcon_Logger_Adapter, commit) { _1 = zephir_fetch_nproperty_this(this_ptr, SL("_queue"), PH_NOISY_CC); zephir_is_iterable(_1, &_3, &_2, 0, 0, "phalcon/logger/adapter.zep", 125); for ( - ; zephir_hash_get_current_data_ex(_3, (void**) &_4, &_2) == SUCCESS - ; zephir_hash_move_forward_ex(_3, &_2) + ; zend_hash_get_current_data_ex(_3, (void**) &_4, &_2) == SUCCESS + ; zend_hash_move_forward_ex(_3, &_2) ) { ZEPHIR_GET_HVALUE(message, _4); ZEPHIR_CALL_METHOD(&_5$$4, message, "getmessage", NULL, 0); @@ -74227,11 +73875,11 @@ static PHP_METHOD(Phalcon_Logger_Adapter, critical) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &message_param, &context_param); - if (unlikely(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'message' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(message_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(message_param) == IS_STRING)) { zephir_get_strval(message, message_param); } else { ZEPHIR_INIT_VAR(message); @@ -74263,11 +73911,11 @@ static PHP_METHOD(Phalcon_Logger_Adapter, emergency) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &message_param, &context_param); - if (unlikely(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'message' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(message_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(message_param) == IS_STRING)) { zephir_get_strval(message, message_param); } else { ZEPHIR_INIT_VAR(message); @@ -74299,11 +73947,11 @@ static PHP_METHOD(Phalcon_Logger_Adapter, debug) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &message_param, &context_param); - if (unlikely(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'message' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(message_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(message_param) == IS_STRING)) { zephir_get_strval(message, message_param); } else { ZEPHIR_INIT_VAR(message); @@ -74335,11 +73983,11 @@ static PHP_METHOD(Phalcon_Logger_Adapter, error) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &message_param, &context_param); - if (unlikely(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'message' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(message_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(message_param) == IS_STRING)) { zephir_get_strval(message, message_param); } else { ZEPHIR_INIT_VAR(message); @@ -74371,11 +74019,11 @@ static PHP_METHOD(Phalcon_Logger_Adapter, info) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &message_param, &context_param); - if (unlikely(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'message' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(message_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(message_param) == IS_STRING)) { zephir_get_strval(message, message_param); } else { ZEPHIR_INIT_VAR(message); @@ -74407,11 +74055,11 @@ static PHP_METHOD(Phalcon_Logger_Adapter, notice) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &message_param, &context_param); - if (unlikely(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'message' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(message_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(message_param) == IS_STRING)) { zephir_get_strval(message, message_param); } else { ZEPHIR_INIT_VAR(message); @@ -74443,11 +74091,11 @@ static PHP_METHOD(Phalcon_Logger_Adapter, warning) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &message_param, &context_param); - if (unlikely(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'message' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(message_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(message_param) == IS_STRING)) { zephir_get_strval(message, message_param); } else { ZEPHIR_INIT_VAR(message); @@ -74479,11 +74127,11 @@ static PHP_METHOD(Phalcon_Logger_Adapter, alert) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &message_param, &context_param); - if (unlikely(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'message' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(message_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(message_param) == IS_STRING)) { zephir_get_strval(message, message_param); } else { ZEPHIR_INIT_VAR(message); @@ -74752,8 +74400,8 @@ static PHP_METHOD(Phalcon_Logger_Formatter, interpolate) { array_init(replace); zephir_is_iterable(context, &_2$$3, &_1$$3, 0, 0, "phalcon/logger/formatter.zep", 89); for ( - ; zephir_hash_get_current_data_ex(_2$$3, (void**) &_3$$3, &_1$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_2$$3, &_1$$3) + ; zend_hash_get_current_data_ex(_2$$3, (void**) &_3$$3, &_1$$3) == SUCCESS + ; zend_hash_move_forward_ex(_2$$3, &_1$$3) ) { ZEPHIR_GET_HMKEY(key, _2$$3, _1$$3); ZEPHIR_GET_HVALUE(value, _3$$3); @@ -74959,8 +74607,8 @@ static PHP_METHOD(Phalcon_Logger_Multiple, setFormatter) { if (Z_TYPE_P(loggers) == IS_ARRAY) { zephir_is_iterable(loggers, &_1$$3, &_0$$3, 0, 0, "phalcon/logger/multiple.zep", 61); for ( - ; zephir_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_1$$3, &_0$$3) + ; zend_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS + ; zend_hash_move_forward_ex(_1$$3, &_0$$3) ) { ZEPHIR_GET_HVALUE(logger, _2$$3); ZEPHIR_CALL_METHOD(NULL, logger, "setformatter", NULL, 0, formatter); @@ -74990,8 +74638,8 @@ static PHP_METHOD(Phalcon_Logger_Multiple, setLogLevel) { if (Z_TYPE_P(loggers) == IS_ARRAY) { zephir_is_iterable(loggers, &_1$$3, &_0$$3, 0, 0, "phalcon/logger/multiple.zep", 77); for ( - ; zephir_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_1$$3, &_0$$3) + ; zend_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS + ; zend_hash_move_forward_ex(_1$$3, &_0$$3) ) { ZEPHIR_GET_HVALUE(logger, _2$$3); ZEPHIR_INIT_NVAR(_3$$4); @@ -75034,8 +74682,8 @@ static PHP_METHOD(Phalcon_Logger_Multiple, log) { if (Z_TYPE_P(loggers) == IS_ARRAY) { zephir_is_iterable(loggers, &_1$$3, &_0$$3, 0, 0, "phalcon/logger/multiple.zep", 93); for ( - ; zephir_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_1$$3, &_0$$3) + ; zend_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS + ; zend_hash_move_forward_ex(_1$$3, &_0$$3) ) { ZEPHIR_GET_HVALUE(logger, _2$$3); ZEPHIR_CALL_METHOD(NULL, logger, "log", NULL, 0, type, message, context); @@ -75056,11 +74704,11 @@ static PHP_METHOD(Phalcon_Logger_Multiple, critical) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &message_param, &context_param); - if (unlikely(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'message' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(message_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(message_param) == IS_STRING)) { zephir_get_strval(message, message_param); } else { ZEPHIR_INIT_VAR(message); @@ -75092,11 +74740,11 @@ static PHP_METHOD(Phalcon_Logger_Multiple, emergency) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &message_param, &context_param); - if (unlikely(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'message' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(message_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(message_param) == IS_STRING)) { zephir_get_strval(message, message_param); } else { ZEPHIR_INIT_VAR(message); @@ -75128,11 +74776,11 @@ static PHP_METHOD(Phalcon_Logger_Multiple, debug) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &message_param, &context_param); - if (unlikely(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'message' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(message_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(message_param) == IS_STRING)) { zephir_get_strval(message, message_param); } else { ZEPHIR_INIT_VAR(message); @@ -75164,11 +74812,11 @@ static PHP_METHOD(Phalcon_Logger_Multiple, error) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &message_param, &context_param); - if (unlikely(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'message' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(message_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(message_param) == IS_STRING)) { zephir_get_strval(message, message_param); } else { ZEPHIR_INIT_VAR(message); @@ -75200,11 +74848,11 @@ static PHP_METHOD(Phalcon_Logger_Multiple, info) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &message_param, &context_param); - if (unlikely(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'message' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(message_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(message_param) == IS_STRING)) { zephir_get_strval(message, message_param); } else { ZEPHIR_INIT_VAR(message); @@ -75236,11 +74884,11 @@ static PHP_METHOD(Phalcon_Logger_Multiple, notice) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &message_param, &context_param); - if (unlikely(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'message' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(message_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(message_param) == IS_STRING)) { zephir_get_strval(message, message_param); } else { ZEPHIR_INIT_VAR(message); @@ -75272,11 +74920,11 @@ static PHP_METHOD(Phalcon_Logger_Multiple, warning) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &message_param, &context_param); - if (unlikely(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'message' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(message_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(message_param) == IS_STRING)) { zephir_get_strval(message, message_param); } else { ZEPHIR_INIT_VAR(message); @@ -75308,11 +74956,11 @@ static PHP_METHOD(Phalcon_Logger_Multiple, alert) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &message_param, &context_param); - if (unlikely(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'message' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(message_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(message_param) == IS_STRING)) { zephir_get_strval(message, message_param); } else { ZEPHIR_INIT_VAR(message); @@ -75375,11 +75023,11 @@ static PHP_METHOD(Phalcon_Logger_Adapter_File, __construct) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &name_param, &options); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -75623,8 +75271,8 @@ static PHP_METHOD(Phalcon_Logger_Adapter_Firephp, logInternal) { zephir_read_property_this(&index, this_ptr, SL("_index"), PH_NOISY_CC); zephir_is_iterable(chunk, &_8, &_7, 0, 0, "phalcon/logger/adapter/firephp.zep", 92); for ( - ; zephir_hash_get_current_data_ex(_8, (void**) &_9, &_7) == SUCCESS - ; zephir_hash_move_forward_ex(_8, &_7) + ; zend_hash_get_current_data_ex(_8, (void**) &_9, &_7) == SUCCESS + ; zend_hash_move_forward_ex(_8, &_7) ) { ZEPHIR_GET_HMKEY(key, _8, _7); ZEPHIR_GET_HVALUE(chString, _9); @@ -75681,11 +75329,11 @@ static PHP_METHOD(Phalcon_Logger_Adapter_Stream, __construct) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &name_param, &options); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -76086,8 +75734,8 @@ static PHP_METHOD(Phalcon_Logger_Formatter_Firephp, format) { } zephir_is_iterable(backtrace, &_7$$4, &_6$$4, 1, 0, "phalcon/logger/formatter/firephp.zep", 141); for ( - ; zephir_hash_get_current_data_ex(_7$$4, (void**) &_8$$4, &_6$$4) == SUCCESS - ; zephir_hash_move_forward_ex(_7$$4, &_6$$4) + ; zend_hash_get_current_data_ex(_7$$4, (void**) &_8$$4, &_6$$4) == SUCCESS + ; zend_hash_move_forward_ex(_7$$4, &_6$$4) ) { ZEPHIR_GET_HMKEY(key$$4, _7$$4, _6$$4); ZEPHIR_GET_HVALUE(backtraceItem$$4, _8$$4); @@ -77027,11 +76675,11 @@ static PHP_METHOD(Phalcon_Mvc_Collection, setSource) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &source_param); - if (unlikely(Z_TYPE_P(source_param) != IS_STRING && Z_TYPE_P(source_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(source_param) != IS_STRING && Z_TYPE_P(source_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'source' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(source_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(source_param) == IS_STRING)) { zephir_get_strval(source, source_param); } else { ZEPHIR_INIT_VAR(source); @@ -77072,11 +76720,11 @@ static PHP_METHOD(Phalcon_Mvc_Collection, setConnectionService) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &connectionService_param); - if (unlikely(Z_TYPE_P(connectionService_param) != IS_STRING && Z_TYPE_P(connectionService_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(connectionService_param) != IS_STRING && Z_TYPE_P(connectionService_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'connectionService' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(connectionService_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(connectionService_param) == IS_STRING)) { zephir_get_strval(connectionService, connectionService_param); } else { ZEPHIR_INIT_VAR(connectionService); @@ -77132,11 +76780,11 @@ static PHP_METHOD(Phalcon_Mvc_Collection, readAttribute) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &attribute_param); - if (unlikely(Z_TYPE_P(attribute_param) != IS_STRING && Z_TYPE_P(attribute_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(attribute_param) != IS_STRING && Z_TYPE_P(attribute_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'attribute' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(attribute_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(attribute_param) == IS_STRING)) { zephir_get_strval(attribute, attribute_param); } else { ZEPHIR_INIT_VAR(attribute); @@ -77190,8 +76838,8 @@ static PHP_METHOD(Phalcon_Mvc_Collection, cloneResult) { } zephir_is_iterable(document, &_1, &_0, 0, 0, "phalcon/mvc/collection.zep", 332); for ( - ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS - ; zephir_hash_move_forward_ex(_1, &_0) + ; zend_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS + ; zend_hash_move_forward_ex(_1, &_0) ) { ZEPHIR_GET_HMKEY(key, _1, _0); ZEPHIR_GET_HVALUE(value, _2); @@ -77321,8 +76969,8 @@ static PHP_METHOD(Phalcon_Mvc_Collection, _getResultset) { zephir_check_call_status(); zephir_is_iterable(_6, &_8, &_7, 0, 0, "phalcon/mvc/collection.zep", 457); for ( - ; zephir_hash_get_current_data_ex(_8, (void**) &_9, &_7) == SUCCESS - ; zephir_hash_move_forward_ex(_8, &_7) + ; zend_hash_get_current_data_ex(_8, (void**) &_9, &_7) == SUCCESS + ; zend_hash_move_forward_ex(_8, &_7) ) { ZEPHIR_GET_HVALUE(document, _9); ZEPHIR_CALL_STATIC(&_10$$19, "cloneresult", &_11, 0, base, document); @@ -77561,8 +77209,8 @@ static PHP_METHOD(Phalcon_Mvc_Collection, validate) { zephir_check_call_status(); zephir_is_iterable(_1$$4, &_3$$4, &_2$$4, 0, 0, "phalcon/mvc/collection.zep", 698); for ( - ; zephir_hash_get_current_data_ex(_3$$4, (void**) &_4$$4, &_2$$4) == SUCCESS - ; zephir_hash_move_forward_ex(_3$$4, &_2$$4) + ; zend_hash_get_current_data_ex(_3$$4, (void**) &_4$$4, &_2$$4) == SUCCESS + ; zend_hash_move_forward_ex(_3$$4, &_2$$4) ) { ZEPHIR_GET_HVALUE(message, _4$$4); zephir_update_property_array_append(this_ptr, SL("_errorMessages"), message TSRMLS_CC); @@ -77629,11 +77277,11 @@ static PHP_METHOD(Phalcon_Mvc_Collection, fireEvent) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &eventName_param); - if (unlikely(Z_TYPE_P(eventName_param) != IS_STRING && Z_TYPE_P(eventName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(eventName_param) != IS_STRING && Z_TYPE_P(eventName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'eventName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(eventName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(eventName_param) == IS_STRING)) { zephir_get_strval(eventName, eventName_param); } else { ZEPHIR_INIT_VAR(eventName); @@ -77661,11 +77309,11 @@ static PHP_METHOD(Phalcon_Mvc_Collection, fireEventCancel) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &eventName_param); - if (unlikely(Z_TYPE_P(eventName_param) != IS_STRING && Z_TYPE_P(eventName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(eventName_param) != IS_STRING && Z_TYPE_P(eventName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'eventName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(eventName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(eventName_param) == IS_STRING)) { zephir_get_strval(eventName, eventName_param); } else { ZEPHIR_INIT_VAR(eventName); @@ -78358,11 +78006,11 @@ static PHP_METHOD(Phalcon_Mvc_Collection, summatory) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &field_param, &conditions, &finalize); - if (unlikely(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'field' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(field_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(field_param) == IS_STRING)) { zephir_get_strval(field, field_param); } else { ZEPHIR_INIT_VAR(field); @@ -78589,8 +78237,8 @@ static PHP_METHOD(Phalcon_Mvc_Collection, toArray) { zephir_check_call_status(); zephir_is_iterable(_0, &_2, &_1, 0, 0, "phalcon/mvc/collection.zep", 1633); for ( - ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS - ; zephir_hash_move_forward_ex(_2, &_1) + ; zend_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS + ; zend_hash_move_forward_ex(_2, &_1) ) { ZEPHIR_GET_HMKEY(key, _2, _1); ZEPHIR_GET_HVALUE(value, _3); @@ -78635,11 +78283,11 @@ static PHP_METHOD(Phalcon_Mvc_Collection, unserialize) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &data_param); - if (unlikely(Z_TYPE_P(data_param) != IS_STRING && Z_TYPE_P(data_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(data_param) != IS_STRING && Z_TYPE_P(data_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'data' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(data_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(data_param) == IS_STRING)) { zephir_get_strval(data, data_param); } else { ZEPHIR_INIT_VAR(data); @@ -78669,8 +78317,8 @@ static PHP_METHOD(Phalcon_Mvc_Collection, unserialize) { zephir_update_property_this(this_ptr, SL("_modelsManager"), manager TSRMLS_CC); zephir_is_iterable(attributes, &_3$$3, &_2$$3, 0, 0, "phalcon/mvc/collection.zep", 1689); for ( - ; zephir_hash_get_current_data_ex(_3$$3, (void**) &_4$$3, &_2$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_3$$3, &_2$$3) + ; zend_hash_get_current_data_ex(_3$$3, (void**) &_4$$3, &_2$$3) == SUCCESS + ; zend_hash_move_forward_ex(_3$$3, &_2$$3) ) { ZEPHIR_GET_HMKEY(key, _3$$3, _2$$3); ZEPHIR_GET_HVALUE(value, _4$$3); @@ -78844,11 +78492,11 @@ static PHP_METHOD(Phalcon_Mvc_Dispatcher, setControllerSuffix) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &controllerSuffix_param); - if (unlikely(Z_TYPE_P(controllerSuffix_param) != IS_STRING && Z_TYPE_P(controllerSuffix_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(controllerSuffix_param) != IS_STRING && Z_TYPE_P(controllerSuffix_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'controllerSuffix' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(controllerSuffix_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(controllerSuffix_param) == IS_STRING)) { zephir_get_strval(controllerSuffix, controllerSuffix_param); } else { ZEPHIR_INIT_VAR(controllerSuffix); @@ -78869,11 +78517,11 @@ static PHP_METHOD(Phalcon_Mvc_Dispatcher, setDefaultController) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &controllerName_param); - if (unlikely(Z_TYPE_P(controllerName_param) != IS_STRING && Z_TYPE_P(controllerName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(controllerName_param) != IS_STRING && Z_TYPE_P(controllerName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'controllerName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(controllerName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(controllerName_param) == IS_STRING)) { zephir_get_strval(controllerName, controllerName_param); } else { ZEPHIR_INIT_VAR(controllerName); @@ -78894,11 +78542,11 @@ static PHP_METHOD(Phalcon_Mvc_Dispatcher, setControllerName) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &controllerName_param); - if (unlikely(Z_TYPE_P(controllerName_param) != IS_STRING && Z_TYPE_P(controllerName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(controllerName_param) != IS_STRING && Z_TYPE_P(controllerName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'controllerName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(controllerName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(controllerName_param) == IS_STRING)) { zephir_get_strval(controllerName, controllerName_param); } else { ZEPHIR_INIT_VAR(controllerName); @@ -78952,11 +78600,11 @@ static PHP_METHOD(Phalcon_Mvc_Dispatcher, _throwDispatchException) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &message_param, &exceptionCode_param); - if (unlikely(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'message' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(message_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(message_param) == IS_STRING)) { zephir_get_strval(message, message_param); } else { ZEPHIR_INIT_VAR(message); @@ -79228,11 +78876,11 @@ static PHP_METHOD(Phalcon_Mvc_Micro, map) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &routePattern_param, &handler); - if (unlikely(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'routePattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(routePattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(routePattern_param) == IS_STRING)) { zephir_get_strval(routePattern, routePattern_param); } else { ZEPHIR_INIT_VAR(routePattern); @@ -79260,11 +78908,11 @@ static PHP_METHOD(Phalcon_Mvc_Micro, get) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &routePattern_param, &handler); - if (unlikely(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'routePattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(routePattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(routePattern_param) == IS_STRING)) { zephir_get_strval(routePattern, routePattern_param); } else { ZEPHIR_INIT_VAR(routePattern); @@ -79292,11 +78940,11 @@ static PHP_METHOD(Phalcon_Mvc_Micro, post) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &routePattern_param, &handler); - if (unlikely(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'routePattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(routePattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(routePattern_param) == IS_STRING)) { zephir_get_strval(routePattern, routePattern_param); } else { ZEPHIR_INIT_VAR(routePattern); @@ -79324,11 +78972,11 @@ static PHP_METHOD(Phalcon_Mvc_Micro, put) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &routePattern_param, &handler); - if (unlikely(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'routePattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(routePattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(routePattern_param) == IS_STRING)) { zephir_get_strval(routePattern, routePattern_param); } else { ZEPHIR_INIT_VAR(routePattern); @@ -79356,11 +79004,11 @@ static PHP_METHOD(Phalcon_Mvc_Micro, patch) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &routePattern_param, &handler); - if (unlikely(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'routePattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(routePattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(routePattern_param) == IS_STRING)) { zephir_get_strval(routePattern, routePattern_param); } else { ZEPHIR_INIT_VAR(routePattern); @@ -79388,11 +79036,11 @@ static PHP_METHOD(Phalcon_Mvc_Micro, head) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &routePattern_param, &handler); - if (unlikely(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'routePattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(routePattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(routePattern_param) == IS_STRING)) { zephir_get_strval(routePattern, routePattern_param); } else { ZEPHIR_INIT_VAR(routePattern); @@ -79420,11 +79068,11 @@ static PHP_METHOD(Phalcon_Mvc_Micro, delete) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &routePattern_param, &handler); - if (unlikely(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'routePattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(routePattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(routePattern_param) == IS_STRING)) { zephir_get_strval(routePattern, routePattern_param); } else { ZEPHIR_INIT_VAR(routePattern); @@ -79452,11 +79100,11 @@ static PHP_METHOD(Phalcon_Mvc_Micro, options) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &routePattern_param, &handler); - if (unlikely(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'routePattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(routePattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(routePattern_param) == IS_STRING)) { zephir_get_strval(routePattern, routePattern_param); } else { ZEPHIR_INIT_VAR(routePattern); @@ -79516,8 +79164,8 @@ static PHP_METHOD(Phalcon_Mvc_Micro, mount) { zephir_check_call_status(); zephir_is_iterable(handlers, &_2$$5, &_1$$5, 0, 0, "phalcon/mvc/micro.zep", 444); for ( - ; zephir_hash_get_current_data_ex(_2$$5, (void**) &_3$$5, &_1$$5) == SUCCESS - ; zephir_hash_move_forward_ex(_2$$5, &_1$$5) + ; zend_hash_get_current_data_ex(_2$$5, (void**) &_3$$5, &_1$$5) == SUCCESS + ; zend_hash_move_forward_ex(_2$$5, &_1$$5) ) { ZEPHIR_GET_HVALUE(handler, _3$$5); if (Z_TYPE_P(handler) != IS_ARRAY) { @@ -79633,11 +79281,11 @@ static PHP_METHOD(Phalcon_Mvc_Micro, setService) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 1, &serviceName_param, &definition, &shared_param); - if (unlikely(Z_TYPE_P(serviceName_param) != IS_STRING && Z_TYPE_P(serviceName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(serviceName_param) != IS_STRING && Z_TYPE_P(serviceName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'serviceName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(serviceName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(serviceName_param) == IS_STRING)) { zephir_get_strval(serviceName, serviceName_param); } else { ZEPHIR_INIT_VAR(serviceName); @@ -79680,11 +79328,11 @@ static PHP_METHOD(Phalcon_Mvc_Micro, hasService) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &serviceName_param); - if (unlikely(Z_TYPE_P(serviceName_param) != IS_STRING && Z_TYPE_P(serviceName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(serviceName_param) != IS_STRING && Z_TYPE_P(serviceName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'serviceName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(serviceName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(serviceName_param) == IS_STRING)) { zephir_get_strval(serviceName, serviceName_param); } else { ZEPHIR_INIT_VAR(serviceName); @@ -79716,11 +79364,11 @@ static PHP_METHOD(Phalcon_Mvc_Micro, getService) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &serviceName_param); - if (unlikely(Z_TYPE_P(serviceName_param) != IS_STRING && Z_TYPE_P(serviceName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(serviceName_param) != IS_STRING && Z_TYPE_P(serviceName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'serviceName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(serviceName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(serviceName_param) == IS_STRING)) { zephir_get_strval(serviceName, serviceName_param); } else { ZEPHIR_INIT_VAR(serviceName); @@ -79770,13 +79418,13 @@ static PHP_METHOD(Phalcon_Mvc_Micro, getSharedService) { static PHP_METHOD(Phalcon_Mvc_Micro, handle) { - zval *_58$$59; + zval *_59$$59; zend_class_entry *_20$$20; HashTable *_11$$12, *_30$$30, *_40$$38, *_51$$49; HashPosition _10$$12, _29$$30, _39$$38, _50$$49; zend_bool _18$$7, _26$$7, _23$$24, _32$$31; int ZEPHIR_LAST_CALL_STATUS; - zval *uri = NULL, *dependencyInjector = NULL, *eventsManager = NULL, *status = NULL, *router = NULL, *matchedRoute = NULL, *handler = NULL, *beforeHandlers = NULL, *params = NULL, *returnedValue = NULL, *e = NULL, *errorHandler = NULL, *afterHandlers = NULL, *notFoundHandler = NULL, *finishHandlers = NULL, *finish = NULL, *before = NULL, *after = NULL, *response = NULL, *modelBinder = NULL, *bindCacheKey = NULL, *routeName = NULL, *realHandler = NULL, *methodName = NULL, *lazyReturned = NULL, *afterBindingHandlers = NULL, *afterBinding = NULL, *_0$$5 = NULL, *_1$$5, *_2$$4 = NULL, *_3$$4, *_4$$7, *_5$$7 = NULL, *_6$$8, *_7$$8, *_8$$9 = NULL, *_9$$9, **_12$$12, *_13$$15, *_14$$17 = NULL, *_15$$17 = NULL, *_16$$13 = NULL, *_17$$13, *_19$$20 = NULL, *_21$$23 = NULL, *_22$$21 = NULL, *_24$$25, *_25$$25 = NULL, *_27$$28 = NULL, *_28$$28, **_31$$30, *_36$$31 = NULL, *_37$$31, *_33$$32, *_34$$34 = NULL, *_35$$34 = NULL, *_38$$37, **_41$$38, *_42$$41, *_43$$43 = NULL, *_44$$43 = NULL, *_45$$45 = NULL, *_46$$45, *_47$$47, *_48$$47, *_49$$48, **_52$$49, *_53$$52, *_54$$54 = NULL, *_55$$54 = NULL, *_56$$50, *_57$$58, *_59$$67 = NULL, *_60$$67; + zval *uri = NULL, *dependencyInjector = NULL, *eventsManager = NULL, *status = NULL, *router = NULL, *matchedRoute = NULL, *handler = NULL, *beforeHandlers = NULL, *params = NULL, *returnedValue = NULL, *e = NULL, *errorHandler = NULL, *afterHandlers = NULL, *notFoundHandler = NULL, *finishHandlers = NULL, *finish = NULL, *before = NULL, *after = NULL, *response = NULL, *modelBinder = NULL, *bindCacheKey = NULL, *routeName = NULL, *realHandler = NULL, *methodName = NULL, *lazyReturned = NULL, *afterBindingHandlers = NULL, *afterBinding = NULL, *_57, *_0$$5 = NULL, *_1$$5, *_2$$4 = NULL, *_3$$4, *_4$$7, *_5$$7 = NULL, *_6$$8, *_7$$8, *_8$$9 = NULL, *_9$$9, **_12$$12, *_13$$15, *_14$$17 = NULL, *_15$$17 = NULL, *_16$$13 = NULL, *_17$$13, *_19$$20 = NULL, *_21$$23 = NULL, *_22$$21 = NULL, *_24$$25, *_25$$25 = NULL, *_27$$28 = NULL, *_28$$28, **_31$$30, *_36$$31 = NULL, *_37$$31, *_33$$32, *_34$$34 = NULL, *_35$$34 = NULL, *_38$$37, **_41$$38, *_42$$41, *_43$$43 = NULL, *_44$$43 = NULL, *_45$$45 = NULL, *_46$$45, *_47$$47, *_48$$47, *_49$$48, **_52$$49, *_53$$52, *_54$$54 = NULL, *_55$$54 = NULL, *_56$$50, *_58$$58, *_60$$67 = NULL, *_61$$67; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 0, 1, &uri); @@ -79864,8 +79512,8 @@ static PHP_METHOD(Phalcon_Mvc_Micro, handle) { } zephir_is_iterable(beforeHandlers, &_11$$12, &_10$$12, 0, 0, "phalcon/mvc/micro.zep", 696); for ( - ; zephir_hash_get_current_data_ex(_11$$12, (void**) &_12$$12, &_10$$12) == SUCCESS - ; zephir_hash_move_forward_ex(_11$$12, &_10$$12) + ; zend_hash_get_current_data_ex(_11$$12, (void**) &_12$$12, &_10$$12) == SUCCESS + ; zend_hash_move_forward_ex(_11$$12, &_10$$12) ) { ZEPHIR_GET_HVALUE(before, _12$$12); if (Z_TYPE_P(before) == IS_OBJECT) { @@ -79986,8 +79634,8 @@ static PHP_METHOD(Phalcon_Mvc_Micro, handle) { } zephir_is_iterable(afterBindingHandlers, &_30$$30, &_29$$30, 0, 0, "phalcon/mvc/micro.zep", 801); for ( - ; zephir_hash_get_current_data_ex(_30$$30, (void**) &_31$$30, &_29$$30) == SUCCESS - ; zephir_hash_move_forward_ex(_30$$30, &_29$$30) + ; zend_hash_get_current_data_ex(_30$$30, (void**) &_31$$30, &_29$$30) == SUCCESS + ; zend_hash_move_forward_ex(_30$$30, &_29$$30) ) { ZEPHIR_GET_HVALUE(afterBinding, _31$$30); _32$$31 = Z_TYPE_P(afterBinding) == IS_OBJECT; @@ -80045,8 +79693,8 @@ static PHP_METHOD(Phalcon_Mvc_Micro, handle) { } zephir_is_iterable(afterHandlers, &_40$$38, &_39$$38, 0, 0, "phalcon/mvc/micro.zep", 850); for ( - ; zephir_hash_get_current_data_ex(_40$$38, (void**) &_41$$38, &_39$$38) == SUCCESS - ; zephir_hash_move_forward_ex(_40$$38, &_39$$38) + ; zend_hash_get_current_data_ex(_40$$38, (void**) &_41$$38, &_39$$38) == SUCCESS + ; zend_hash_move_forward_ex(_40$$38, &_39$$38) ) { ZEPHIR_GET_HVALUE(after, _41$$38); if (Z_TYPE_P(after) == IS_OBJECT) { @@ -80127,8 +79775,8 @@ static PHP_METHOD(Phalcon_Mvc_Micro, handle) { ZVAL_NULL(params); zephir_is_iterable(finishHandlers, &_51$$49, &_50$$49, 0, 0, "phalcon/mvc/micro.zep", 940); for ( - ; zephir_hash_get_current_data_ex(_51$$49, (void**) &_52$$49, &_50$$49) == SUCCESS - ; zephir_hash_move_forward_ex(_51$$49, &_50$$49) + ; zend_hash_get_current_data_ex(_51$$49, (void**) &_52$$49, &_50$$49) == SUCCESS + ; zend_hash_move_forward_ex(_51$$49, &_50$$49) ) { ZEPHIR_GET_HVALUE(finish, _52$$49); if (Z_TYPE_P(finish) == IS_OBJECT) { @@ -80172,16 +79820,18 @@ static PHP_METHOD(Phalcon_Mvc_Micro, handle) { try_end_1: if (EG(exception)) { - ZEPHIR_CPY_WRT(e, EG(exception)); - if (zephir_instance_of_ev(e, zend_exception_get_default(TSRMLS_C) TSRMLS_CC)) { + ZEPHIR_INIT_VAR(_57); + ZEPHIR_CPY_WRT(_57, EG(exception)); + if (zephir_instance_of_ev(_57, zend_exception_get_default(TSRMLS_C) TSRMLS_CC)) { zend_clear_exception(TSRMLS_C); + ZEPHIR_CPY_WRT(e, _57); ZEPHIR_OBS_NVAR(eventsManager); zephir_read_property_this(&eventsManager, this_ptr, SL("_eventsManager"), PH_NOISY_CC); if (Z_TYPE_P(eventsManager) == IS_OBJECT) { - ZEPHIR_INIT_VAR(_57$$58); - ZVAL_STRING(_57$$58, "micro:beforeException", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(&returnedValue, eventsManager, "fire", NULL, 0, _57$$58, this_ptr, e); - zephir_check_temp_parameter(_57$$58); + ZEPHIR_INIT_VAR(_58$$58); + ZVAL_STRING(_58$$58, "micro:beforeException", ZEPHIR_TEMP_PARAM_COPY); + ZEPHIR_CALL_METHOD(&returnedValue, eventsManager, "fire", NULL, 0, _58$$58, this_ptr, e); + zephir_check_temp_parameter(_58$$58); zephir_check_call_status(); } ZEPHIR_OBS_VAR(errorHandler); @@ -80191,11 +79841,11 @@ static PHP_METHOD(Phalcon_Mvc_Micro, handle) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_micro_exception_ce, "Error handler is not callable", "phalcon/mvc/micro.zep", 959); return; } - ZEPHIR_INIT_VAR(_58$$59); - zephir_create_array(_58$$59, 1, 0 TSRMLS_CC); - zephir_array_fast_append(_58$$59, e); + ZEPHIR_INIT_VAR(_59$$59); + zephir_create_array(_59$$59, 1, 0 TSRMLS_CC); + zephir_array_fast_append(_59$$59, e); ZEPHIR_INIT_NVAR(returnedValue); - ZEPHIR_CALL_USER_FUNC_ARRAY(returnedValue, errorHandler, _58$$59); + ZEPHIR_CALL_USER_FUNC_ARRAY(returnedValue, errorHandler, _59$$59); zephir_check_call_status(); if (Z_TYPE_P(returnedValue) == IS_OBJECT) { if (!(zephir_instance_of_ev(returnedValue, phalcon_http_responseinterface_ce TSRMLS_CC))) { @@ -80220,12 +79870,12 @@ static PHP_METHOD(Phalcon_Mvc_Micro, handle) { } } if (Z_TYPE_P(returnedValue) == IS_STRING) { - ZEPHIR_INIT_VAR(_60$$67); - ZVAL_STRING(_60$$67, "response", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(&_59$$67, dependencyInjector, "getshared", NULL, 0, _60$$67); - zephir_check_temp_parameter(_60$$67); + ZEPHIR_INIT_VAR(_61$$67); + ZVAL_STRING(_61$$67, "response", ZEPHIR_TEMP_PARAM_COPY); + ZEPHIR_CALL_METHOD(&_60$$67, dependencyInjector, "getshared", NULL, 0, _61$$67); + zephir_check_temp_parameter(_61$$67); zephir_check_call_status(); - ZEPHIR_CPY_WRT(response, _59$$67); + ZEPHIR_CPY_WRT(response, _60$$67); ZEPHIR_CALL_METHOD(NULL, response, "setcontent", NULL, 0, returnedValue); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, response, "send", NULL, 0); @@ -80714,11 +80364,11 @@ static PHP_METHOD(Phalcon_Mvc_Model, setSource) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &source_param); - if (unlikely(Z_TYPE_P(source_param) != IS_STRING && Z_TYPE_P(source_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(source_param) != IS_STRING && Z_TYPE_P(source_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'source' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(source_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(source_param) == IS_STRING)) { zephir_get_strval(source, source_param); } else { ZEPHIR_INIT_VAR(source); @@ -80756,11 +80406,11 @@ static PHP_METHOD(Phalcon_Mvc_Model, setSchema) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &schema_param); - if (unlikely(Z_TYPE_P(schema_param) != IS_STRING && Z_TYPE_P(schema_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schema_param) != IS_STRING && Z_TYPE_P(schema_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schema' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schema_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schema_param) == IS_STRING)) { zephir_get_strval(schema, schema_param); } else { ZEPHIR_INIT_VAR(schema); @@ -80798,11 +80448,11 @@ static PHP_METHOD(Phalcon_Mvc_Model, setConnectionService) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &connectionService_param); - if (unlikely(Z_TYPE_P(connectionService_param) != IS_STRING && Z_TYPE_P(connectionService_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(connectionService_param) != IS_STRING && Z_TYPE_P(connectionService_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'connectionService' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(connectionService_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(connectionService_param) == IS_STRING)) { zephir_get_strval(connectionService, connectionService_param); } else { ZEPHIR_INIT_VAR(connectionService); @@ -80826,11 +80476,11 @@ static PHP_METHOD(Phalcon_Mvc_Model, setReadConnectionService) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &connectionService_param); - if (unlikely(Z_TYPE_P(connectionService_param) != IS_STRING && Z_TYPE_P(connectionService_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(connectionService_param) != IS_STRING && Z_TYPE_P(connectionService_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'connectionService' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(connectionService_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(connectionService_param) == IS_STRING)) { zephir_get_strval(connectionService, connectionService_param); } else { ZEPHIR_INIT_VAR(connectionService); @@ -80854,11 +80504,11 @@ static PHP_METHOD(Phalcon_Mvc_Model, setWriteConnectionService) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &connectionService_param); - if (unlikely(Z_TYPE_P(connectionService_param) != IS_STRING && Z_TYPE_P(connectionService_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(connectionService_param) != IS_STRING && Z_TYPE_P(connectionService_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'connectionService' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(connectionService_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(connectionService_param) == IS_STRING)) { zephir_get_strval(connectionService, connectionService_param); } else { ZEPHIR_INIT_VAR(connectionService); @@ -80994,8 +80644,8 @@ static PHP_METHOD(Phalcon_Mvc_Model, assign) { array_init(dataMapped); zephir_is_iterable(data, &_1$$3, &_0$$3, 0, 0, "phalcon/mvc/model.zep", 465); for ( - ; zephir_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_1$$3, &_0$$3) + ; zend_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS + ; zend_hash_move_forward_ex(_1$$3, &_0$$3) ) { ZEPHIR_GET_HMKEY(key, _1$$3, _0$$3); ZEPHIR_GET_HVALUE(value, _2$$3); @@ -81023,8 +80673,8 @@ static PHP_METHOD(Phalcon_Mvc_Model, assign) { zephir_check_call_status(); zephir_is_iterable(_3, &_5, &_4, 0, 0, "phalcon/mvc/model.zep", 514); for ( - ; zephir_hash_get_current_data_ex(_5, (void**) &_6, &_4) == SUCCESS - ; zephir_hash_move_forward_ex(_5, &_4) + ; zend_hash_get_current_data_ex(_5, (void**) &_6, &_4) == SUCCESS + ; zend_hash_move_forward_ex(_5, &_4) ) { ZEPHIR_GET_HVALUE(attribute, _6); if (Z_TYPE_P(columnMap) == IS_ARRAY) { @@ -81101,8 +80751,8 @@ static PHP_METHOD(Phalcon_Mvc_Model, cloneResultMap) { zephir_check_call_status(); zephir_is_iterable(data, &_2, &_1, 0, 0, "phalcon/mvc/model.zep", 616); for ( - ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS - ; zephir_hash_move_forward_ex(_2, &_1) + ; zend_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS + ; zend_hash_move_forward_ex(_2, &_1) ) { ZEPHIR_GET_HMKEY(key, _2, _1); ZEPHIR_GET_HVALUE(value, _3); @@ -81222,8 +80872,8 @@ static PHP_METHOD(Phalcon_Mvc_Model, cloneResultMapHydrate) { } zephir_is_iterable(data, &_1, &_0, 0, 0, "phalcon/mvc/model.zep", 701); for ( - ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS - ; zephir_hash_move_forward_ex(_1, &_0) + ; zend_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS + ; zend_hash_move_forward_ex(_1, &_0) ) { ZEPHIR_GET_HMKEY(key, _1, _0); ZEPHIR_GET_HVALUE(value, _2); @@ -81302,8 +80952,8 @@ static PHP_METHOD(Phalcon_Mvc_Model, cloneResult) { zephir_check_call_status(); zephir_is_iterable(data, &_2, &_1, 0, 0, "phalcon/mvc/model.zep", 751); for ( - ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS - ; zephir_hash_move_forward_ex(_2, &_1) + ; zend_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS + ; zend_hash_move_forward_ex(_2, &_1) ) { ZEPHIR_GET_HMKEY(key, _2, _1); ZEPHIR_GET_HVALUE(value, _3); @@ -81568,8 +81218,8 @@ static PHP_METHOD(Phalcon_Mvc_Model, _exists) { array_init(uniqueTypes); zephir_is_iterable(primaryKeys, &_1$$3, &_0$$3, 0, 0, "phalcon/mvc/model.zep", 1074); for ( - ; zephir_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_1$$3, &_0$$3) + ; zend_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS + ; zend_hash_move_forward_ex(_1$$3, &_0$$3) ) { ZEPHIR_GET_HVALUE(field, _2$$3); if (Z_TYPE_P(columnMap) == IS_ARRAY) { @@ -81694,21 +81344,21 @@ static PHP_METHOD(Phalcon_Mvc_Model, _groupResult) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &functionName_param, &alias_param, ¶meters); - if (unlikely(Z_TYPE_P(functionName_param) != IS_STRING && Z_TYPE_P(functionName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(functionName_param) != IS_STRING && Z_TYPE_P(functionName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'functionName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(functionName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(functionName_param) == IS_STRING)) { zephir_get_strval(functionName, functionName_param); } else { ZEPHIR_INIT_VAR(functionName); ZVAL_EMPTY_STRING(functionName); } - if (unlikely(Z_TYPE_P(alias_param) != IS_STRING && Z_TYPE_P(alias_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(alias_param) != IS_STRING && Z_TYPE_P(alias_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'alias' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(alias_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(alias_param) == IS_STRING)) { zephir_get_strval(alias, alias_param); } else { ZEPHIR_INIT_VAR(alias); @@ -81925,11 +81575,11 @@ static PHP_METHOD(Phalcon_Mvc_Model, fireEvent) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &eventName_param); - if (unlikely(Z_TYPE_P(eventName_param) != IS_STRING && Z_TYPE_P(eventName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(eventName_param) != IS_STRING && Z_TYPE_P(eventName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'eventName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(eventName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(eventName_param) == IS_STRING)) { zephir_get_strval(eventName, eventName_param); } else { ZEPHIR_INIT_VAR(eventName); @@ -81957,11 +81607,11 @@ static PHP_METHOD(Phalcon_Mvc_Model, fireEventCancel) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &eventName_param); - if (unlikely(Z_TYPE_P(eventName_param) != IS_STRING && Z_TYPE_P(eventName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(eventName_param) != IS_STRING && Z_TYPE_P(eventName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'eventName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(eventName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(eventName_param) == IS_STRING)) { zephir_get_strval(eventName, eventName_param); } else { ZEPHIR_INIT_VAR(eventName); @@ -82115,8 +81765,8 @@ static PHP_METHOD(Phalcon_Mvc_Model, getMessages) { _1$$3 = zephir_fetch_nproperty_this(this_ptr, SL("_errorMessages"), PH_NOISY_CC); zephir_is_iterable(_1$$3, &_3$$3, &_2$$3, 0, 0, "phalcon/mvc/model.zep", 1594); for ( - ; zephir_hash_get_current_data_ex(_3$$3, (void**) &_4$$3, &_2$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_3$$3, &_2$$3) + ; zend_hash_get_current_data_ex(_3$$3, (void**) &_4$$3, &_2$$3) == SUCCESS + ; zend_hash_move_forward_ex(_3$$3, &_2$$3) ) { ZEPHIR_GET_HVALUE(message, _4$$3); ZEPHIR_CALL_METHOD(&_5$$4, message, "getfield", NULL, 0); @@ -82150,8 +81800,8 @@ static PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysRestrict) { error = 0; zephir_is_iterable(belongsTo, &_2, &_1, 0, 0, "phalcon/mvc/model.zep", 1739); for ( - ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS - ; zephir_hash_move_forward_ex(_2, &_1) + ; zend_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS + ; zend_hash_move_forward_ex(_2, &_1) ) { ZEPHIR_GET_HVALUE(relation, _3); validateWithNulls = 0; @@ -82187,8 +81837,8 @@ static PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysRestrict) { if (Z_TYPE_P(fields) == IS_ARRAY) { zephir_is_iterable(fields, &_8$$8, &_7$$8, 0, 0, "phalcon/mvc/model.zep", 1679); for ( - ; zephir_hash_get_current_data_ex(_8$$8, (void**) &_9$$8, &_7$$8) == SUCCESS - ; zephir_hash_move_forward_ex(_8$$8, &_7$$8) + ; zend_hash_get_current_data_ex(_8$$8, (void**) &_9$$8, &_7$$8) == SUCCESS + ; zend_hash_move_forward_ex(_8$$8, &_7$$8) ) { ZEPHIR_GET_HMKEY(position, _8$$8, _7$$8); ZEPHIR_GET_HVALUE(field, _9$$8); @@ -82297,8 +81947,8 @@ static PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysReverseCascade) { zephir_check_call_status(); zephir_is_iterable(relations, &_2, &_1, 0, 0, "phalcon/mvc/model.zep", 1852); for ( - ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS - ; zephir_hash_move_forward_ex(_2, &_1) + ; zend_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS + ; zend_hash_move_forward_ex(_2, &_1) ) { ZEPHIR_GET_HVALUE(relation, _3); ZEPHIR_CALL_METHOD(&foreignKey, relation, "getforeignkey", NULL, 0); @@ -82332,8 +81982,8 @@ static PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysReverseCascade) { if (Z_TYPE_P(fields) == IS_ARRAY) { zephir_is_iterable(fields, &_8$$8, &_7$$8, 0, 0, "phalcon/mvc/model.zep", 1821); for ( - ; zephir_hash_get_current_data_ex(_8$$8, (void**) &_9$$8, &_7$$8) == SUCCESS - ; zephir_hash_move_forward_ex(_8$$8, &_7$$8) + ; zend_hash_get_current_data_ex(_8$$8, (void**) &_9$$8, &_7$$8) == SUCCESS + ; zend_hash_move_forward_ex(_8$$8, &_7$$8) ) { ZEPHIR_GET_HMKEY(position, _8$$8, _7$$8); ZEPHIR_GET_HVALUE(field, _9$$8); @@ -82394,8 +82044,8 @@ static PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysReverseRestrict) { error = 0; zephir_is_iterable(relations, &_2, &_1, 0, 0, "phalcon/mvc/model.zep", 1970); for ( - ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS - ; zephir_hash_move_forward_ex(_2, &_1) + ; zend_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS + ; zend_hash_move_forward_ex(_2, &_1) ) { ZEPHIR_GET_HVALUE(relation, _3); ZEPHIR_CALL_METHOD(&foreignKey, relation, "getforeignkey", NULL, 0); @@ -82429,8 +82079,8 @@ static PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysReverseRestrict) { if (Z_TYPE_P(fields) == IS_ARRAY) { zephir_is_iterable(fields, &_7$$8, &_6$$8, 0, 0, "phalcon/mvc/model.zep", 1932); for ( - ; zephir_hash_get_current_data_ex(_7$$8, (void**) &_8$$8, &_6$$8) == SUCCESS - ; zephir_hash_move_forward_ex(_7$$8, &_6$$8) + ; zend_hash_get_current_data_ex(_7$$8, (void**) &_8$$8, &_6$$8) == SUCCESS + ; zend_hash_move_forward_ex(_7$$8, &_6$$8) ) { ZEPHIR_GET_HMKEY(position, _7$$8, _6$$8); ZEPHIR_GET_HVALUE(field, _8$$8); @@ -82575,8 +82225,8 @@ static PHP_METHOD(Phalcon_Mvc_Model, _preSave) { error = 0; zephir_is_iterable(notNull, &_9$$12, &_8$$12, 0, 0, "phalcon/mvc/model.zep", 2136); for ( - ; zephir_hash_get_current_data_ex(_9$$12, (void**) &_10$$12, &_8$$12) == SUCCESS - ; zephir_hash_move_forward_ex(_9$$12, &_8$$12) + ; zend_hash_get_current_data_ex(_9$$12, (void**) &_10$$12, &_8$$12) == SUCCESS + ; zend_hash_move_forward_ex(_9$$12, &_8$$12) ) { ZEPHIR_GET_HVALUE(field, _10$$12); if (!(zephir_array_isset(automaticAttributes, field))) { @@ -82790,10 +82440,10 @@ static PHP_METHOD(Phalcon_Mvc_Model, _doLowInsert) { HashTable *_2; HashPosition _1; - zend_bool useExplicitIdentity = 0, _19, _7$$11, _16$$22; + zend_bool useExplicitIdentity = 0, _19, _7$$11, _16$$23; zephir_fcall_cache_entry *_6 = NULL, *_8 = NULL, *_12 = NULL; int ZEPHIR_LAST_CALL_STATUS; - zval *metaData, *connection, *table, *identityField, *bindSkip = NULL, *fields = NULL, *values = NULL, *bindTypes = NULL, *attributes = NULL, *bindDataTypes = NULL, *automaticAttributes = NULL, *field = NULL, *columnMap = NULL, *value = NULL, *attributeField = NULL, *success = NULL, *bindType = NULL, *defaultValue = NULL, *sequenceName = NULL, *defaultValues = NULL, *source = NULL, *schema = NULL, *snapshot = NULL, *lastInsertedId = NULL, *manager = NULL, *_0, **_3, *_4$$8 = NULL, *_5$$8 = NULL, *_9$$13 = NULL, *_10$$13 = NULL, *_11$$15 = NULL, *_13$$17 = NULL, *_14$$20, *_15$$20, *_17$$27, *_18$$27, *_20$$30 = NULL, *_21$$30 = NULL; + zval *metaData, *connection, *table, *identityField, *bindSkip = NULL, *fields = NULL, *values = NULL, *bindTypes = NULL, *attributes = NULL, *bindDataTypes = NULL, *automaticAttributes = NULL, *field = NULL, *columnMap = NULL, *value = NULL, *attributeField = NULL, *success = NULL, *bindType = NULL, *defaultValue = NULL, *sequenceName = NULL, *defaultValues = NULL, *source = NULL, *schema = NULL, *snapshot = NULL, *lastInsertedId = NULL, *manager = NULL, *_0, **_3, *_4$$8 = NULL, *_5$$8 = NULL, *_9$$14 = NULL, *_10$$14 = NULL, *_11$$16 = NULL, *_13$$18 = NULL, *_14$$21, *_15$$21, *_17$$28, *_18$$28, *_20$$31 = NULL, *_21$$31 = NULL; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 4, 0, &metaData, &connection, &table, &identityField); @@ -82827,10 +82477,10 @@ static PHP_METHOD(Phalcon_Mvc_Model, _doLowInsert) { ZEPHIR_INIT_NVAR(columnMap); ZVAL_NULL(columnMap); } - zephir_is_iterable(attributes, &_2, &_1, 0, 0, "phalcon/mvc/model.zep", 2327); + zephir_is_iterable(attributes, &_2, &_1, 0, 0, "phalcon/mvc/model.zep", 2329); for ( - ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS - ; zephir_hash_move_forward_ex(_2, &_1) + ; zend_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS + ; zend_hash_move_forward_ex(_2, &_1) ) { ZEPHIR_GET_HVALUE(field, _3); if (!(zephir_array_isset(automaticAttributes, field))) { @@ -82858,37 +82508,39 @@ static PHP_METHOD(Phalcon_Mvc_Model, _doLowInsert) { _7$$11 = zephir_array_isset(defaultValues, field); } if (_7$$11) { + zephir_array_update_zval(&snapshot, attributeField, &ZEPHIR_GLOBAL(global_null), PH_COPY | PH_SEPARATE); ZEPHIR_CALL_METHOD(&value, connection, "getdefaultvalue", &_8, 0); zephir_check_call_status(); + } else { + zephir_array_update_zval(&snapshot, attributeField, &value, PH_COPY | PH_SEPARATE); } ZEPHIR_OBS_NVAR(bindType); if (!(zephir_array_isset_fetch(&bindType, bindDataTypes, field, 0 TSRMLS_CC))) { - ZEPHIR_INIT_NVAR(_9$$13); - object_init_ex(_9$$13, phalcon_mvc_model_exception_ce); - ZEPHIR_INIT_LNVAR(_10$$13); - ZEPHIR_CONCAT_SVS(_10$$13, "Column '", field, "' have not defined a bind data type"); - ZEPHIR_CALL_METHOD(NULL, _9$$13, "__construct", &_6, 9, _10$$13); + ZEPHIR_INIT_NVAR(_9$$14); + object_init_ex(_9$$14, phalcon_mvc_model_exception_ce); + ZEPHIR_INIT_LNVAR(_10$$14); + ZEPHIR_CONCAT_SVS(_10$$14, "Column '", field, "' have not defined a bind data type"); + ZEPHIR_CALL_METHOD(NULL, _9$$14, "__construct", &_6, 9, _10$$14); zephir_check_call_status(); - zephir_throw_exception_debug(_9$$13, "phalcon/mvc/model.zep", 2300 TSRMLS_CC); + zephir_throw_exception_debug(_9$$14, "phalcon/mvc/model.zep", 2303 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } - zephir_array_append(&fields, field, PH_SEPARATE, "phalcon/mvc/model.zep", 2303); - zephir_array_append(&values, value, PH_SEPARATE, "phalcon/mvc/model.zep", 2303); - zephir_array_append(&bindTypes, bindType, PH_SEPARATE, "phalcon/mvc/model.zep", 2303); - zephir_array_update_zval(&snapshot, attributeField, &value, PH_COPY | PH_SEPARATE); + zephir_array_append(&fields, field, PH_SEPARATE, "phalcon/mvc/model.zep", 2306); + zephir_array_append(&values, value, PH_SEPARATE, "phalcon/mvc/model.zep", 2306); + zephir_array_append(&bindTypes, bindType, PH_SEPARATE, "phalcon/mvc/model.zep", 2306); } else { if (zephir_array_isset(defaultValues, field)) { - ZEPHIR_CALL_METHOD(&_11$$15, connection, "getdefaultvalue", &_12, 0); + ZEPHIR_CALL_METHOD(&_11$$16, connection, "getdefaultvalue", &_12, 0); zephir_check_call_status(); - zephir_array_append(&values, _11$$15, PH_SEPARATE, "phalcon/mvc/model.zep", 2308); + zephir_array_append(&values, _11$$16, PH_SEPARATE, "phalcon/mvc/model.zep", 2310); zephir_array_update_zval(&snapshot, attributeField, &ZEPHIR_GLOBAL(global_null), PH_COPY | PH_SEPARATE); } else { - zephir_array_append(&values, value, PH_SEPARATE, "phalcon/mvc/model.zep", 2314); + zephir_array_append(&values, value, PH_SEPARATE, "phalcon/mvc/model.zep", 2316); zephir_array_update_zval(&snapshot, attributeField, &value, PH_COPY | PH_SEPARATE); } - zephir_array_append(&fields, field, PH_SEPARATE, "phalcon/mvc/model.zep", 2318); - zephir_array_append(&bindTypes, bindSkip, PH_SEPARATE, "phalcon/mvc/model.zep", 2318); + zephir_array_append(&fields, field, PH_SEPARATE, "phalcon/mvc/model.zep", 2320); + zephir_array_append(&bindTypes, bindSkip, PH_SEPARATE, "phalcon/mvc/model.zep", 2320); } } } @@ -82896,22 +82548,22 @@ static PHP_METHOD(Phalcon_Mvc_Model, _doLowInsert) { if (!ZEPHIR_IS_FALSE_IDENTICAL(identityField)) { ZEPHIR_CALL_METHOD(&defaultValue, connection, "getdefaultidvalue", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_13$$17, connection, "useexplicitidvalue", NULL, 0); + ZEPHIR_CALL_METHOD(&_13$$18, connection, "useexplicitidvalue", NULL, 0); zephir_check_call_status(); - useExplicitIdentity = zephir_get_boolval(_13$$17); + useExplicitIdentity = zephir_get_boolval(_13$$18); if (useExplicitIdentity) { - zephir_array_append(&fields, identityField, PH_SEPARATE, "phalcon/mvc/model.zep", 2336); + zephir_array_append(&fields, identityField, PH_SEPARATE, "phalcon/mvc/model.zep", 2338); } if (Z_TYPE_P(columnMap) == IS_ARRAY) { ZEPHIR_OBS_NVAR(attributeField); if (!(zephir_array_isset_fetch(&attributeField, columnMap, identityField, 0 TSRMLS_CC))) { - ZEPHIR_INIT_VAR(_14$$20); - object_init_ex(_14$$20, phalcon_mvc_model_exception_ce); - ZEPHIR_INIT_VAR(_15$$20); - ZEPHIR_CONCAT_SVS(_15$$20, "Identity column '", identityField, "' isn't part of the column map"); - ZEPHIR_CALL_METHOD(NULL, _14$$20, "__construct", &_6, 9, _15$$20); + ZEPHIR_INIT_VAR(_14$$21); + object_init_ex(_14$$21, phalcon_mvc_model_exception_ce); + ZEPHIR_INIT_VAR(_15$$21); + ZEPHIR_CONCAT_SVS(_15$$21, "Identity column '", identityField, "' isn't part of the column map"); + ZEPHIR_CALL_METHOD(NULL, _14$$21, "__construct", &_6, 9, _15$$21); zephir_check_call_status(); - zephir_throw_exception_debug(_14$$20, "phalcon/mvc/model.zep", 2344 TSRMLS_CC); + zephir_throw_exception_debug(_14$$21, "phalcon/mvc/model.zep", 2346 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -82920,38 +82572,38 @@ static PHP_METHOD(Phalcon_Mvc_Model, _doLowInsert) { } ZEPHIR_OBS_NVAR(value); if (zephir_fetch_property_zval(&value, this_ptr, attributeField, PH_SILENT_CC)) { - _16$$22 = Z_TYPE_P(value) == IS_NULL; - if (!(_16$$22)) { - _16$$22 = ZEPHIR_IS_STRING_IDENTICAL(value, ""); + _16$$23 = Z_TYPE_P(value) == IS_NULL; + if (!(_16$$23)) { + _16$$23 = ZEPHIR_IS_STRING_IDENTICAL(value, ""); } - if (_16$$22) { + if (_16$$23) { if (useExplicitIdentity) { - zephir_array_append(&values, defaultValue, PH_SEPARATE, "phalcon/mvc/model.zep", 2357); - zephir_array_append(&bindTypes, bindSkip, PH_SEPARATE, "phalcon/mvc/model.zep", 2357); + zephir_array_append(&values, defaultValue, PH_SEPARATE, "phalcon/mvc/model.zep", 2359); + zephir_array_append(&bindTypes, bindSkip, PH_SEPARATE, "phalcon/mvc/model.zep", 2359); } } else { if (!(useExplicitIdentity)) { - zephir_array_append(&fields, identityField, PH_SEPARATE, "phalcon/mvc/model.zep", 2365); + zephir_array_append(&fields, identityField, PH_SEPARATE, "phalcon/mvc/model.zep", 2367); } ZEPHIR_OBS_NVAR(bindType); if (!(zephir_array_isset_fetch(&bindType, bindDataTypes, identityField, 0 TSRMLS_CC))) { - ZEPHIR_INIT_VAR(_17$$27); - object_init_ex(_17$$27, phalcon_mvc_model_exception_ce); - ZEPHIR_INIT_VAR(_18$$27); - ZEPHIR_CONCAT_SVS(_18$$27, "Identity column '", identityField, "' isn\\'t part of the table columns"); - ZEPHIR_CALL_METHOD(NULL, _17$$27, "__construct", &_6, 9, _18$$27); + ZEPHIR_INIT_VAR(_17$$28); + object_init_ex(_17$$28, phalcon_mvc_model_exception_ce); + ZEPHIR_INIT_VAR(_18$$28); + ZEPHIR_CONCAT_SVS(_18$$28, "Identity column '", identityField, "' isn\\'t part of the table columns"); + ZEPHIR_CALL_METHOD(NULL, _17$$28, "__construct", &_6, 9, _18$$28); zephir_check_call_status(); - zephir_throw_exception_debug(_17$$27, "phalcon/mvc/model.zep", 2372 TSRMLS_CC); + zephir_throw_exception_debug(_17$$28, "phalcon/mvc/model.zep", 2374 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } - zephir_array_append(&values, value, PH_SEPARATE, "phalcon/mvc/model.zep", 2375); - zephir_array_append(&bindTypes, bindType, PH_SEPARATE, "phalcon/mvc/model.zep", 2375); + zephir_array_append(&values, value, PH_SEPARATE, "phalcon/mvc/model.zep", 2377); + zephir_array_append(&bindTypes, bindType, PH_SEPARATE, "phalcon/mvc/model.zep", 2377); } } else { if (useExplicitIdentity) { - zephir_array_append(&values, defaultValue, PH_SEPARATE, "phalcon/mvc/model.zep", 2379); - zephir_array_append(&bindTypes, bindSkip, PH_SEPARATE, "phalcon/mvc/model.zep", 2379); + zephir_array_append(&values, defaultValue, PH_SEPARATE, "phalcon/mvc/model.zep", 2381); + zephir_array_append(&bindTypes, bindSkip, PH_SEPARATE, "phalcon/mvc/model.zep", 2381); } } } @@ -82964,9 +82616,9 @@ static PHP_METHOD(Phalcon_Mvc_Model, _doLowInsert) { if (_19) { ZEPHIR_INIT_VAR(sequenceName); ZVAL_NULL(sequenceName); - ZEPHIR_CALL_METHOD(&_20$$30, connection, "supportsequences", NULL, 0); + ZEPHIR_CALL_METHOD(&_20$$31, connection, "supportsequences", NULL, 0); zephir_check_call_status(); - if (ZEPHIR_IS_TRUE_IDENTICAL(_20$$30)) { + if (ZEPHIR_IS_TRUE_IDENTICAL(_20$$31)) { if ((zephir_method_exists_ex(this_ptr, SS("getsequencename") TSRMLS_CC) == SUCCESS)) { ZEPHIR_CALL_METHOD(&sequenceName, this_ptr, "getsequencename", NULL, 0); zephir_check_call_status(); @@ -82987,9 +82639,9 @@ static PHP_METHOD(Phalcon_Mvc_Model, _doLowInsert) { zephir_check_call_status(); zephir_update_property_zval_zval(this_ptr, attributeField, lastInsertedId TSRMLS_CC); zephir_array_update_zval(&snapshot, attributeField, &lastInsertedId, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(&_21$$30, manager, "iskeepingsnapshots", NULL, 0, this_ptr); + ZEPHIR_CALL_METHOD(&_21$$31, manager, "iskeepingsnapshots", NULL, 0, this_ptr); zephir_check_call_status(); - if (zephir_is_true(_21$$30)) { + if (zephir_is_true(_21$$31)) { zephir_update_property_this(this_ptr, SL("_snapshot"), snapshot TSRMLS_CC); } zephir_update_property_this(this_ptr, SL("_uniqueParams"), ZEPHIR_GLOBAL(global_null) TSRMLS_CC); @@ -83051,10 +82703,10 @@ static PHP_METHOD(Phalcon_Mvc_Model, _doLowUpdate) { ZEPHIR_INIT_NVAR(columnMap); ZVAL_NULL(columnMap); } - zephir_is_iterable(nonPrimary, &_3, &_2, 0, 0, "phalcon/mvc/model.zep", 2596); + zephir_is_iterable(nonPrimary, &_3, &_2, 0, 0, "phalcon/mvc/model.zep", 2598); for ( - ; zephir_hash_get_current_data_ex(_3, (void**) &_4, &_2) == SUCCESS - ; zephir_hash_move_forward_ex(_3, &_2) + ; zend_hash_get_current_data_ex(_3, (void**) &_4, &_2) == SUCCESS + ; zend_hash_move_forward_ex(_3, &_2) ) { ZEPHIR_GET_HVALUE(field, _4); if (!(zephir_array_isset(automaticAttributes, field))) { @@ -83066,7 +82718,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _doLowUpdate) { ZEPHIR_CONCAT_SVS(_6$$9, "Column '", field, "' have not defined a bind data type"); ZEPHIR_CALL_METHOD(NULL, _5$$9, "__construct", &_7, 9, _6$$9); zephir_check_call_status(); - zephir_throw_exception_debug(_5$$9, "phalcon/mvc/model.zep", 2488 TSRMLS_CC); + zephir_throw_exception_debug(_5$$9, "phalcon/mvc/model.zep", 2490 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -83079,7 +82731,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _doLowUpdate) { ZEPHIR_CONCAT_SVS(_9$$11, "Column '", field, "' isn't part of the column map"); ZEPHIR_CALL_METHOD(NULL, _8$$11, "__construct", &_7, 9, _9$$11); zephir_check_call_status(); - zephir_throw_exception_debug(_8$$11, "phalcon/mvc/model.zep", 2496 TSRMLS_CC); + zephir_throw_exception_debug(_8$$11, "phalcon/mvc/model.zep", 2498 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -83089,9 +82741,9 @@ static PHP_METHOD(Phalcon_Mvc_Model, _doLowUpdate) { ZEPHIR_OBS_NVAR(value); if (zephir_fetch_property_zval(&value, this_ptr, attributeField, PH_SILENT_CC)) { if (!(useDynamicUpdate)) { - zephir_array_append(&fields, field, PH_SEPARATE, "phalcon/mvc/model.zep", 2512); - zephir_array_append(&values, value, PH_SEPARATE, "phalcon/mvc/model.zep", 2512); - zephir_array_append(&bindTypes, bindType, PH_SEPARATE, "phalcon/mvc/model.zep", 2513); + zephir_array_append(&fields, field, PH_SEPARATE, "phalcon/mvc/model.zep", 2514); + zephir_array_append(&values, value, PH_SEPARATE, "phalcon/mvc/model.zep", 2514); + zephir_array_append(&bindTypes, bindType, PH_SEPARATE, "phalcon/mvc/model.zep", 2515); } else { ZEPHIR_OBS_NVAR(snapshotValue); if (!(zephir_array_isset_fetch(&snapshotValue, snapshot, attributeField, 0 TSRMLS_CC))) { @@ -83111,7 +82763,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _doLowUpdate) { ZEPHIR_CONCAT_SVS(_11$$22, "Column '", field, "' have not defined a data type"); ZEPHIR_CALL_METHOD(NULL, _10$$22, "__construct", &_7, 9, _11$$22); zephir_check_call_status(); - zephir_throw_exception_debug(_10$$22, "phalcon/mvc/model.zep", 2538 TSRMLS_CC); + zephir_throw_exception_debug(_10$$22, "phalcon/mvc/model.zep", 2540 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -83145,17 +82797,17 @@ static PHP_METHOD(Phalcon_Mvc_Model, _doLowUpdate) { } } if (changed) { - zephir_array_append(&fields, field, PH_SEPARATE, "phalcon/mvc/model.zep", 2580); - zephir_array_append(&values, value, PH_SEPARATE, "phalcon/mvc/model.zep", 2580); - zephir_array_append(&bindTypes, bindType, PH_SEPARATE, "phalcon/mvc/model.zep", 2581); + zephir_array_append(&fields, field, PH_SEPARATE, "phalcon/mvc/model.zep", 2582); + zephir_array_append(&values, value, PH_SEPARATE, "phalcon/mvc/model.zep", 2582); + zephir_array_append(&bindTypes, bindType, PH_SEPARATE, "phalcon/mvc/model.zep", 2583); } } zephir_array_update_zval(&newSnapshot, attributeField, &value, PH_COPY | PH_SEPARATE); } else { zephir_array_update_zval(&newSnapshot, attributeField, &ZEPHIR_GLOBAL(global_null), PH_COPY | PH_SEPARATE); - zephir_array_append(&fields, field, PH_SEPARATE, "phalcon/mvc/model.zep", 2588); - zephir_array_append(&values, ZEPHIR_GLOBAL(global_null), PH_SEPARATE, "phalcon/mvc/model.zep", 2588); - zephir_array_append(&bindTypes, bindSkip, PH_SEPARATE, "phalcon/mvc/model.zep", 2588); + zephir_array_append(&fields, field, PH_SEPARATE, "phalcon/mvc/model.zep", 2590); + zephir_array_append(&values, ZEPHIR_GLOBAL(global_null), PH_SEPARATE, "phalcon/mvc/model.zep", 2590); + zephir_array_append(&bindTypes, bindSkip, PH_SEPARATE, "phalcon/mvc/model.zep", 2590); } } } @@ -83172,15 +82824,15 @@ static PHP_METHOD(Phalcon_Mvc_Model, _doLowUpdate) { ZEPHIR_CALL_METHOD(&primaryKeys, metaData, "getprimarykeyattributes", NULL, 0, this_ptr); zephir_check_call_status(); if (!(zephir_fast_count_int(primaryKeys TSRMLS_CC))) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "A primary key must be defined in the model in order to perform the operation", "phalcon/mvc/model.zep", 2615); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "A primary key must be defined in the model in order to perform the operation", "phalcon/mvc/model.zep", 2617); return; } ZEPHIR_INIT_NVAR(uniqueParams); array_init(uniqueParams); - zephir_is_iterable(primaryKeys, &_18$$31, &_17$$31, 0, 0, "phalcon/mvc/model.zep", 2640); + zephir_is_iterable(primaryKeys, &_18$$31, &_17$$31, 0, 0, "phalcon/mvc/model.zep", 2642); for ( - ; zephir_hash_get_current_data_ex(_18$$31, (void**) &_19$$31, &_17$$31) == SUCCESS - ; zephir_hash_move_forward_ex(_18$$31, &_17$$31) + ; zend_hash_get_current_data_ex(_18$$31, (void**) &_19$$31, &_17$$31) == SUCCESS + ; zend_hash_move_forward_ex(_18$$31, &_17$$31) ) { ZEPHIR_GET_HVALUE(field, _19$$31); if (Z_TYPE_P(columnMap) == IS_ARRAY) { @@ -83192,7 +82844,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _doLowUpdate) { ZEPHIR_CONCAT_SVS(_21$$35, "Column '", field, "' isn't part of the column map"); ZEPHIR_CALL_METHOD(NULL, _20$$35, "__construct", &_7, 9, _21$$35); zephir_check_call_status(); - zephir_throw_exception_debug(_20$$35, "phalcon/mvc/model.zep", 2626 TSRMLS_CC); + zephir_throw_exception_debug(_20$$35, "phalcon/mvc/model.zep", 2628 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -83202,10 +82854,10 @@ static PHP_METHOD(Phalcon_Mvc_Model, _doLowUpdate) { ZEPHIR_OBS_NVAR(value); if (zephir_fetch_property_zval(&value, this_ptr, attributeField, PH_SILENT_CC)) { zephir_array_update_zval(&newSnapshot, attributeField, &value, PH_COPY | PH_SEPARATE); - zephir_array_append(&uniqueParams, value, PH_SEPARATE, "phalcon/mvc/model.zep", 2634); + zephir_array_append(&uniqueParams, value, PH_SEPARATE, "phalcon/mvc/model.zep", 2636); } else { zephir_array_update_zval(&newSnapshot, attributeField, &ZEPHIR_GLOBAL(global_null), PH_COPY | PH_SEPARATE); - zephir_array_append(&uniqueParams, ZEPHIR_GLOBAL(global_null), PH_SEPARATE, "phalcon/mvc/model.zep", 2637); + zephir_array_append(&uniqueParams, ZEPHIR_GLOBAL(global_null), PH_SEPARATE, "phalcon/mvc/model.zep", 2639); } } } @@ -83266,10 +82918,10 @@ static PHP_METHOD(Phalcon_Mvc_Model, _preSaveRelatedRecords) { ZEPHIR_CALL_METHOD(&_1, this_ptr, "getmodelsmanager", NULL, 0); zephir_check_call_status(); ZEPHIR_CPY_WRT(manager, _1); - zephir_is_iterable(related, &_3, &_2, 0, 0, "phalcon/mvc/model.zep", 2756); + zephir_is_iterable(related, &_3, &_2, 0, 0, "phalcon/mvc/model.zep", 2758); for ( - ; zephir_hash_get_current_data_ex(_3, (void**) &_4, &_2) == SUCCESS - ; zephir_hash_move_forward_ex(_3, &_2) + ; zend_hash_get_current_data_ex(_3, (void**) &_4, &_2) == SUCCESS + ; zend_hash_move_forward_ex(_3, &_2) ) { ZEPHIR_GET_HMKEY(name, _3, _2); ZEPHIR_GET_HVALUE(record, _4); @@ -83289,7 +82941,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _preSaveRelatedRecords) { } ZEPHIR_CALL_METHOD(NULL, connection, "rollback", &_8, 0, _7$$6); zephir_check_call_status(); - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Only objects can be stored as part of belongs-to relations", "phalcon/mvc/model.zep", 2705); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Only objects can be stored as part of belongs-to relations", "phalcon/mvc/model.zep", 2707); return; } ZEPHIR_CALL_METHOD(&columns, relation, "getfields", NULL, 0); @@ -83307,7 +82959,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _preSaveRelatedRecords) { } ZEPHIR_CALL_METHOD(NULL, connection, "rollback", &_10, 0, _9$$7); zephir_check_call_status(); - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Not implemented", "phalcon/mvc/model.zep", 2714); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Not implemented", "phalcon/mvc/model.zep", 2716); return; } ZEPHIR_CALL_METHOD(&_11$$5, record, "save", NULL, 0); @@ -83315,10 +82967,10 @@ static PHP_METHOD(Phalcon_Mvc_Model, _preSaveRelatedRecords) { if (!(zephir_is_true(_11$$5))) { ZEPHIR_CALL_METHOD(&_12$$8, record, "getmessages", NULL, 0); zephir_check_call_status(); - zephir_is_iterable(_12$$8, &_14$$8, &_13$$8, 0, 0, "phalcon/mvc/model.zep", 2743); + zephir_is_iterable(_12$$8, &_14$$8, &_13$$8, 0, 0, "phalcon/mvc/model.zep", 2745); for ( - ; zephir_hash_get_current_data_ex(_14$$8, (void**) &_15$$8, &_13$$8) == SUCCESS - ; zephir_hash_move_forward_ex(_14$$8, &_13$$8) + ; zend_hash_get_current_data_ex(_14$$8, (void**) &_15$$8, &_13$$8) == SUCCESS + ; zend_hash_move_forward_ex(_14$$8, &_13$$8) ) { ZEPHIR_GET_HVALUE(message, _15$$8); if (Z_TYPE_P(message) == IS_OBJECT) { @@ -83368,10 +83020,10 @@ static PHP_METHOD(Phalcon_Mvc_Model, _postSaveRelatedRecords) { ZEPHIR_CALL_METHOD(&_0, this_ptr, "getmodelsmanager", NULL, 0); zephir_check_call_status(); ZEPHIR_CPY_WRT(manager, _0); - zephir_is_iterable(related, &_2, &_1, 0, 0, "phalcon/mvc/model.zep", 2947); + zephir_is_iterable(related, &_2, &_1, 0, 0, "phalcon/mvc/model.zep", 2949); for ( - ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS - ; zephir_hash_move_forward_ex(_2, &_1) + ; zend_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS + ; zend_hash_move_forward_ex(_2, &_1) ) { ZEPHIR_GET_HMKEY(name, _2, _1); ZEPHIR_GET_HVALUE(record, _3); @@ -83397,7 +83049,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _postSaveRelatedRecords) { } ZEPHIR_CALL_METHOD(NULL, connection, "rollback", &_9, 0, _8$$6); zephir_check_call_status(); - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Only objects/arrays can be stored as part of has-many/has-one/has-many-to-many relations", "phalcon/mvc/model.zep", 2795); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Only objects/arrays can be stored as part of has-many/has-one/has-many-to-many relations", "phalcon/mvc/model.zep", 2797); return; } ZEPHIR_CALL_METHOD(&columns, relation, "getfields", NULL, 0); @@ -83415,7 +83067,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _postSaveRelatedRecords) { } ZEPHIR_CALL_METHOD(NULL, connection, "rollback", &_11, 0, _10$$7); zephir_check_call_status(); - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Not implemented", "phalcon/mvc/model.zep", 2804); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Not implemented", "phalcon/mvc/model.zep", 2806); return; } if (Z_TYPE_P(record) == IS_OBJECT) { @@ -83441,7 +83093,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _postSaveRelatedRecords) { ZEPHIR_CONCAT_SVS(_15$$10, "The column '", columns, "' needs to be present in the model"); ZEPHIR_CALL_METHOD(NULL, _14$$10, "__construct", &_16, 9, _15$$10); zephir_check_call_status(); - zephir_throw_exception_debug(_14$$10, "phalcon/mvc/model.zep", 2818 TSRMLS_CC); + zephir_throw_exception_debug(_14$$10, "phalcon/mvc/model.zep", 2820 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -83456,10 +83108,10 @@ static PHP_METHOD(Phalcon_Mvc_Model, _postSaveRelatedRecords) { ZEPHIR_CALL_METHOD(&intermediateReferencedFields, relation, "getintermediatereferencedfields", NULL, 0); zephir_check_call_status(); } - zephir_is_iterable(relatedRecords, &_19$$4, &_18$$4, 0, 0, "phalcon/mvc/model.zep", 2933); + zephir_is_iterable(relatedRecords, &_19$$4, &_18$$4, 0, 0, "phalcon/mvc/model.zep", 2935); for ( - ; zephir_hash_get_current_data_ex(_19$$4, (void**) &_20$$4, &_18$$4) == SUCCESS - ; zephir_hash_move_forward_ex(_19$$4, &_18$$4) + ; zend_hash_get_current_data_ex(_19$$4, (void**) &_20$$4, &_18$$4) == SUCCESS + ; zend_hash_move_forward_ex(_19$$4, &_18$$4) ) { ZEPHIR_GET_HVALUE(recordAfter, _20$$4); if (!(isThrough)) { @@ -83471,10 +83123,10 @@ static PHP_METHOD(Phalcon_Mvc_Model, _postSaveRelatedRecords) { if (!(zephir_is_true(_21$$12))) { ZEPHIR_CALL_METHOD(&_22$$14, recordAfter, "getmessages", NULL, 0); zephir_check_call_status(); - zephir_is_iterable(_22$$14, &_24$$14, &_23$$14, 0, 0, "phalcon/mvc/model.zep", 2875); + zephir_is_iterable(_22$$14, &_24$$14, &_23$$14, 0, 0, "phalcon/mvc/model.zep", 2877); for ( - ; zephir_hash_get_current_data_ex(_24$$14, (void**) &_25$$14, &_23$$14) == SUCCESS - ; zephir_hash_move_forward_ex(_24$$14, &_23$$14) + ; zend_hash_get_current_data_ex(_24$$14, (void**) &_25$$14, &_23$$14) == SUCCESS + ; zend_hash_move_forward_ex(_24$$14, &_23$$14) ) { ZEPHIR_GET_HVALUE(message, _25$$14); if (Z_TYPE_P(message) == IS_OBJECT) { @@ -83510,10 +83162,10 @@ static PHP_METHOD(Phalcon_Mvc_Model, _postSaveRelatedRecords) { if (!(zephir_is_true(_31$$17))) { ZEPHIR_CALL_METHOD(&_32$$18, intermediateModel, "getmessages", NULL, 0); zephir_check_call_status(); - zephir_is_iterable(_32$$18, &_34$$18, &_33$$18, 0, 0, "phalcon/mvc/model.zep", 2927); + zephir_is_iterable(_32$$18, &_34$$18, &_33$$18, 0, 0, "phalcon/mvc/model.zep", 2929); for ( - ; zephir_hash_get_current_data_ex(_34$$18, (void**) &_35$$18, &_33$$18) == SUCCESS - ; zephir_hash_move_forward_ex(_34$$18, &_33$$18) + ; zend_hash_get_current_data_ex(_34$$18, (void**) &_35$$18, &_33$$18) == SUCCESS + ; zend_hash_move_forward_ex(_34$$18, &_33$$18) ) { ZEPHIR_GET_HVALUE(message, _35$$18); if (Z_TYPE_P(message) == IS_OBJECT) { @@ -83551,7 +83203,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _postSaveRelatedRecords) { ZEPHIR_CONCAT_SVSVS(_41$$22, "There are no defined relations for the model '", className, "' using alias '", name, "'"); ZEPHIR_CALL_METHOD(NULL, _40$$22, "__construct", &_16, 9, _41$$22); zephir_check_call_status(); - zephir_throw_exception_debug(_40$$22, "phalcon/mvc/model.zep", 2939 TSRMLS_CC); + zephir_throw_exception_debug(_40$$22, "phalcon/mvc/model.zep", 2941 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -83661,7 +83313,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, save) { zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, _9$$12, "__construct", NULL, 319, this_ptr, _10$$12); zephir_check_call_status(); - zephir_throw_exception_debug(_9$$12, "phalcon/mvc/model.zep", 3061 TSRMLS_CC); + zephir_throw_exception_debug(_9$$12, "phalcon/mvc/model.zep", 3063 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -83853,13 +83505,13 @@ static PHP_METHOD(Phalcon_Mvc_Model, delete) { ZVAL_NULL(columnMap); } if (!(zephir_fast_count_int(primaryKeys TSRMLS_CC))) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "A primary key must be defined in the model in order to perform the operation", "phalcon/mvc/model.zep", 3262); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "A primary key must be defined in the model in order to perform the operation", "phalcon/mvc/model.zep", 3264); return; } - zephir_is_iterable(primaryKeys, &_4, &_3, 0, 0, "phalcon/mvc/model.zep", 3305); + zephir_is_iterable(primaryKeys, &_4, &_3, 0, 0, "phalcon/mvc/model.zep", 3307); for ( - ; zephir_hash_get_current_data_ex(_4, (void**) &_5, &_3) == SUCCESS - ; zephir_hash_move_forward_ex(_4, &_3) + ; zend_hash_get_current_data_ex(_4, (void**) &_5, &_3) == SUCCESS + ; zend_hash_move_forward_ex(_4, &_3) ) { ZEPHIR_GET_HVALUE(primaryKey, _5); ZEPHIR_OBS_NVAR(bindType); @@ -83870,7 +83522,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, delete) { ZEPHIR_CONCAT_SVS(_7$$9, "Column '", primaryKey, "' have not defined a bind data type"); ZEPHIR_CALL_METHOD(NULL, _6$$9, "__construct", &_8, 9, _7$$9); zephir_check_call_status(); - zephir_throw_exception_debug(_6$$9, "phalcon/mvc/model.zep", 3274 TSRMLS_CC); + zephir_throw_exception_debug(_6$$9, "phalcon/mvc/model.zep", 3276 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -83883,7 +83535,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, delete) { ZEPHIR_CONCAT_SVS(_10$$11, "Column '", primaryKey, "' isn't part of the column map"); ZEPHIR_CALL_METHOD(NULL, _9$$11, "__construct", &_8, 9, _10$$11); zephir_check_call_status(); - zephir_throw_exception_debug(_9$$11, "phalcon/mvc/model.zep", 3282 TSRMLS_CC); + zephir_throw_exception_debug(_9$$11, "phalcon/mvc/model.zep", 3284 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -83898,17 +83550,17 @@ static PHP_METHOD(Phalcon_Mvc_Model, delete) { ZEPHIR_CONCAT_SVS(_12$$13, "Cannot delete the record because the primary key attribute: '", attributeField, "' wasn't set"); ZEPHIR_CALL_METHOD(NULL, _11$$13, "__construct", &_8, 9, _12$$13); zephir_check_call_status(); - zephir_throw_exception_debug(_11$$13, "phalcon/mvc/model.zep", 3294 TSRMLS_CC); + zephir_throw_exception_debug(_11$$13, "phalcon/mvc/model.zep", 3296 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } - zephir_array_append(&values, value, PH_SEPARATE, "phalcon/mvc/model.zep", 3300); + zephir_array_append(&values, value, PH_SEPARATE, "phalcon/mvc/model.zep", 3302); ZEPHIR_CALL_METHOD(&_13$$8, writeConnection, "escapeidentifier", &_14, 0, primaryKey); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_15$$8); ZEPHIR_CONCAT_VS(_15$$8, _13$$8, " = ?"); - zephir_array_append(&conditions, _15$$8, PH_SEPARATE, "phalcon/mvc/model.zep", 3301); - zephir_array_append(&bindTypes, bindType, PH_SEPARATE, "phalcon/mvc/model.zep", 3302); + zephir_array_append(&conditions, _15$$8, PH_SEPARATE, "phalcon/mvc/model.zep", 3303); + zephir_array_append(&bindTypes, bindType, PH_SEPARATE, "phalcon/mvc/model.zep", 3304); } if (ZEPHIR_GLOBAL(orm).events) { if (0) { @@ -83989,7 +83641,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, refresh) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_dirtyState"), PH_NOISY_CC); if (!ZEPHIR_IS_LONG(_0, 0)) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The record cannot be refreshed because it does not exist or is deleted", "phalcon/mvc/model.zep", 3380); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The record cannot be refreshed because it does not exist or is deleted", "phalcon/mvc/model.zep", 3382); return; } ZEPHIR_CALL_METHOD(&metaData, this_ptr, "getmodelsmetadata", NULL, 0); @@ -84016,7 +83668,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, refresh) { ZEPHIR_CALL_METHOD(&_2$$6, this_ptr, "_exists", NULL, 0, metaData, readConnection, table); zephir_check_call_status(); if (!(zephir_is_true(_2$$6))) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The record cannot be refreshed because it does not exist or is deleted", "phalcon/mvc/model.zep", 3403); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The record cannot be refreshed because it does not exist or is deleted", "phalcon/mvc/model.zep", 3405); return; } ZEPHIR_OBS_NVAR(uniqueKey); @@ -84025,23 +83677,23 @@ static PHP_METHOD(Phalcon_Mvc_Model, refresh) { ZEPHIR_OBS_VAR(uniqueParams); zephir_read_property_this(&uniqueParams, this_ptr, SL("_uniqueParams"), PH_NOISY_CC); if (Z_TYPE_P(uniqueParams) != IS_ARRAY) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The record cannot be refreshed because it does not exist or is deleted", "phalcon/mvc/model.zep", 3411); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The record cannot be refreshed because it does not exist or is deleted", "phalcon/mvc/model.zep", 3413); return; } ZEPHIR_INIT_VAR(fields); array_init(fields); ZEPHIR_CALL_METHOD(&_3, metaData, "getattributes", NULL, 0, this_ptr); zephir_check_call_status(); - zephir_is_iterable(_3, &_5, &_4, 0, 0, "phalcon/mvc/model.zep", 3425); + zephir_is_iterable(_3, &_5, &_4, 0, 0, "phalcon/mvc/model.zep", 3427); for ( - ; zephir_hash_get_current_data_ex(_5, (void**) &_6, &_4) == SUCCESS - ; zephir_hash_move_forward_ex(_5, &_4) + ; zend_hash_get_current_data_ex(_5, (void**) &_6, &_4) == SUCCESS + ; zend_hash_move_forward_ex(_5, &_4) ) { ZEPHIR_GET_HVALUE(attribute, _6); ZEPHIR_INIT_NVAR(_7$$9); zephir_create_array(_7$$9, 1, 0 TSRMLS_CC); zephir_array_fast_append(_7$$9, attribute); - zephir_array_append(&fields, _7$$9, PH_SEPARATE, "phalcon/mvc/model.zep", 3419); + zephir_array_append(&fields, _7$$9, PH_SEPARATE, "phalcon/mvc/model.zep", 3421); } ZEPHIR_CALL_METHOD(&dialect, readConnection, "getdialect", NULL, 0); zephir_check_call_status(); @@ -84101,11 +83753,11 @@ static PHP_METHOD(Phalcon_Mvc_Model, readAttribute) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &attribute_param); - if (unlikely(Z_TYPE_P(attribute_param) != IS_STRING && Z_TYPE_P(attribute_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(attribute_param) != IS_STRING && Z_TYPE_P(attribute_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'attribute' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(attribute_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(attribute_param) == IS_STRING)) { zephir_get_strval(attribute, attribute_param); } else { ZEPHIR_INIT_VAR(attribute); @@ -84130,11 +83782,11 @@ static PHP_METHOD(Phalcon_Mvc_Model, writeAttribute) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &attribute_param, &value); - if (unlikely(Z_TYPE_P(attribute_param) != IS_STRING && Z_TYPE_P(attribute_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(attribute_param) != IS_STRING && Z_TYPE_P(attribute_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'attribute' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(attribute_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(attribute_param) == IS_STRING)) { zephir_get_strval(attribute, attribute_param); } else { ZEPHIR_INIT_VAR(attribute); @@ -84183,10 +83835,10 @@ static PHP_METHOD(Phalcon_Mvc_Model, skipAttributesOnCreate) { ZEPHIR_INIT_VAR(keysAttributes); array_init(keysAttributes); - zephir_is_iterable(attributes, &_1, &_0, 0, 0, "phalcon/mvc/model.zep", 3539); + zephir_is_iterable(attributes, &_1, &_0, 0, 0, "phalcon/mvc/model.zep", 3541); for ( - ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS - ; zephir_hash_move_forward_ex(_1, &_0) + ; zend_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS + ; zend_hash_move_forward_ex(_1, &_0) ) { ZEPHIR_GET_HVALUE(attribute, _2); zephir_array_update_zval(&keysAttributes, attribute, &ZEPHIR_GLOBAL(global_null), PH_COPY | PH_SEPARATE); @@ -84215,10 +83867,10 @@ static PHP_METHOD(Phalcon_Mvc_Model, skipAttributesOnUpdate) { ZEPHIR_INIT_VAR(keysAttributes); array_init(keysAttributes); - zephir_is_iterable(attributes, &_1, &_0, 0, 0, "phalcon/mvc/model.zep", 3571); + zephir_is_iterable(attributes, &_1, &_0, 0, 0, "phalcon/mvc/model.zep", 3573); for ( - ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS - ; zephir_hash_move_forward_ex(_1, &_0) + ; zend_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS + ; zend_hash_move_forward_ex(_1, &_0) ) { ZEPHIR_GET_HVALUE(attribute, _2); zephir_array_update_zval(&keysAttributes, attribute, &ZEPHIR_GLOBAL(global_null), PH_COPY | PH_SEPARATE); @@ -84247,10 +83899,10 @@ static PHP_METHOD(Phalcon_Mvc_Model, allowEmptyStringValues) { ZEPHIR_INIT_VAR(keysAttributes); array_init(keysAttributes); - zephir_is_iterable(attributes, &_1, &_0, 0, 0, "phalcon/mvc/model.zep", 3603); + zephir_is_iterable(attributes, &_1, &_0, 0, 0, "phalcon/mvc/model.zep", 3605); for ( - ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS - ; zephir_hash_move_forward_ex(_1, &_0) + ; zend_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS + ; zend_hash_move_forward_ex(_1, &_0) ) { ZEPHIR_GET_HVALUE(attribute, _2); zephir_array_update_zval(&keysAttributes, attribute, &ZEPHIR_GLOBAL(global_null), PH_COPY | PH_SEPARATE); @@ -84272,11 +83924,11 @@ static PHP_METHOD(Phalcon_Mvc_Model, hasOne) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 1, &fields, &referenceModel_param, &referencedFields, &options); - if (unlikely(Z_TYPE_P(referenceModel_param) != IS_STRING && Z_TYPE_P(referenceModel_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(referenceModel_param) != IS_STRING && Z_TYPE_P(referenceModel_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'referenceModel' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(referenceModel_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(referenceModel_param) == IS_STRING)) { zephir_get_strval(referenceModel, referenceModel_param); } else { ZEPHIR_INIT_VAR(referenceModel); @@ -84303,11 +83955,11 @@ static PHP_METHOD(Phalcon_Mvc_Model, belongsTo) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 1, &fields, &referenceModel_param, &referencedFields, &options); - if (unlikely(Z_TYPE_P(referenceModel_param) != IS_STRING && Z_TYPE_P(referenceModel_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(referenceModel_param) != IS_STRING && Z_TYPE_P(referenceModel_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'referenceModel' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(referenceModel_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(referenceModel_param) == IS_STRING)) { zephir_get_strval(referenceModel, referenceModel_param); } else { ZEPHIR_INIT_VAR(referenceModel); @@ -84334,11 +83986,11 @@ static PHP_METHOD(Phalcon_Mvc_Model, hasMany) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 1, &fields, &referenceModel_param, &referencedFields, &options); - if (unlikely(Z_TYPE_P(referenceModel_param) != IS_STRING && Z_TYPE_P(referenceModel_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(referenceModel_param) != IS_STRING && Z_TYPE_P(referenceModel_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'referenceModel' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(referenceModel_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(referenceModel_param) == IS_STRING)) { zephir_get_strval(referenceModel, referenceModel_param); } else { ZEPHIR_INIT_VAR(referenceModel); @@ -84365,21 +84017,21 @@ static PHP_METHOD(Phalcon_Mvc_Model, hasManyToMany) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 6, 1, &fields, &intermediateModel_param, &intermediateFields, &intermediateReferencedFields, &referenceModel_param, &referencedFields, &options); - if (unlikely(Z_TYPE_P(intermediateModel_param) != IS_STRING && Z_TYPE_P(intermediateModel_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(intermediateModel_param) != IS_STRING && Z_TYPE_P(intermediateModel_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'intermediateModel' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(intermediateModel_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(intermediateModel_param) == IS_STRING)) { zephir_get_strval(intermediateModel, intermediateModel_param); } else { ZEPHIR_INIT_VAR(intermediateModel); ZVAL_EMPTY_STRING(intermediateModel); } - if (unlikely(Z_TYPE_P(referenceModel_param) != IS_STRING && Z_TYPE_P(referenceModel_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(referenceModel_param) != IS_STRING && Z_TYPE_P(referenceModel_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'referenceModel' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(referenceModel_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(referenceModel_param) == IS_STRING)) { zephir_get_strval(referenceModel, referenceModel_param); } else { ZEPHIR_INIT_VAR(referenceModel); @@ -84460,10 +84112,10 @@ static PHP_METHOD(Phalcon_Mvc_Model, setSnapshotData) { if (Z_TYPE_P(columnMap) == IS_ARRAY) { ZEPHIR_INIT_VAR(snapshot); array_init(snapshot); - zephir_is_iterable(data, &_1$$3, &_0$$3, 0, 0, "phalcon/mvc/model.zep", 3828); + zephir_is_iterable(data, &_1$$3, &_0$$3, 0, 0, "phalcon/mvc/model.zep", 3830); for ( - ; zephir_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_1$$3, &_0$$3) + ; zend_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS + ; zend_hash_move_forward_ex(_1$$3, &_0$$3) ) { ZEPHIR_GET_HMKEY(key, _1$$3, _0$$3); ZEPHIR_GET_HVALUE(value, _2$$3); @@ -84479,7 +84131,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, setSnapshotData) { ZEPHIR_CONCAT_SVS(_4$$7, "Column '", key, "' doesn't make part of the column map"); ZEPHIR_CALL_METHOD(NULL, _3$$7, "__construct", &_5, 9, _4$$7); zephir_check_call_status(); - zephir_throw_exception_debug(_3$$7, "phalcon/mvc/model.zep", 3810 TSRMLS_CC); + zephir_throw_exception_debug(_3$$7, "phalcon/mvc/model.zep", 3812 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } else { @@ -84496,7 +84148,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, setSnapshotData) { ZEPHIR_CONCAT_SVS(_7$$11, "Column '", key, "' doesn't make part of the column map"); ZEPHIR_CALL_METHOD(NULL, _6$$11, "__construct", &_5, 9, _7$$11); zephir_check_call_status(); - zephir_throw_exception_debug(_6$$11, "phalcon/mvc/model.zep", 3819 TSRMLS_CC); + zephir_throw_exception_debug(_6$$11, "phalcon/mvc/model.zep", 3821 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } else { @@ -84566,12 +84218,12 @@ static PHP_METHOD(Phalcon_Mvc_Model, getChangedFields) { ZEPHIR_OBS_VAR(snapshot); zephir_read_property_this(&snapshot, this_ptr, SL("_snapshot"), PH_NOISY_CC); if (Z_TYPE_P(snapshot) != IS_ARRAY) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The record doesn't have a valid data snapshot", "phalcon/mvc/model.zep", 3896); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The record doesn't have a valid data snapshot", "phalcon/mvc/model.zep", 3898); return; } _0 = zephir_fetch_nproperty_this(this_ptr, SL("_dirtyState"), PH_NOISY_CC); if (!ZEPHIR_IS_LONG(_0, 0)) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Change checking cannot be performed because the object has not been persisted or is deleted", "phalcon/mvc/model.zep", 3903); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Change checking cannot be performed because the object has not been persisted or is deleted", "phalcon/mvc/model.zep", 3905); return; } ZEPHIR_CALL_METHOD(&metaData, this_ptr, "getmodelsmetadata", NULL, 0); @@ -84587,25 +84239,25 @@ static PHP_METHOD(Phalcon_Mvc_Model, getChangedFields) { ZEPHIR_INIT_VAR(changed); array_init(changed); ZEPHIR_INIT_VAR(_1); - zephir_is_iterable(allAttributes, &_3, &_2, 0, 0, "phalcon/mvc/model.zep", 3956); + zephir_is_iterable(allAttributes, &_3, &_2, 0, 0, "phalcon/mvc/model.zep", 3958); for ( - ; zephir_hash_get_current_data_ex(_3, (void**) &_4, &_2) == SUCCESS - ; zephir_hash_move_forward_ex(_3, &_2) + ; zend_hash_get_current_data_ex(_3, (void**) &_4, &_2) == SUCCESS + ; zend_hash_move_forward_ex(_3, &_2) ) { ZEPHIR_GET_HMKEY(name, _3, _2); ZEPHIR_GET_HVALUE(_1, _4); if (!(zephir_array_isset(snapshot, name))) { - zephir_array_append(&changed, name, PH_SEPARATE, "phalcon/mvc/model.zep", 3935); + zephir_array_append(&changed, name, PH_SEPARATE, "phalcon/mvc/model.zep", 3937); continue; } ZEPHIR_OBS_NVAR(value); if (!(zephir_fetch_property_zval(&value, this_ptr, name, PH_SILENT_CC))) { - zephir_array_append(&changed, name, PH_SEPARATE, "phalcon/mvc/model.zep", 3943); + zephir_array_append(&changed, name, PH_SEPARATE, "phalcon/mvc/model.zep", 3945); continue; } - zephir_array_fetch(&_5$$7, snapshot, name, PH_NOISY | PH_READONLY, "phalcon/mvc/model.zep", 3950 TSRMLS_CC); + zephir_array_fetch(&_5$$7, snapshot, name, PH_NOISY | PH_READONLY, "phalcon/mvc/model.zep", 3952 TSRMLS_CC); if (!ZEPHIR_IS_IDENTICAL(value, _5$$7)) { - zephir_array_append(&changed, name, PH_SEPARATE, "phalcon/mvc/model.zep", 3951); + zephir_array_append(&changed, name, PH_SEPARATE, "phalcon/mvc/model.zep", 3953); continue; } } @@ -84667,7 +84319,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, getRelated) { ZEPHIR_CONCAT_SVSVS(_3$$3, "There is no defined relations for the model '", className, "' using alias '", alias, "'"); ZEPHIR_CALL_METHOD(NULL, _2$$3, "__construct", NULL, 9, _3$$3); zephir_check_call_status(); - zephir_throw_exception_debug(_2$$3, "phalcon/mvc/model.zep", 3999 TSRMLS_CC); + zephir_throw_exception_debug(_2$$3, "phalcon/mvc/model.zep", 4001 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -84688,21 +84340,21 @@ static PHP_METHOD(Phalcon_Mvc_Model, _getRelatedRecords) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &modelName_param, &method_param, &arguments); - if (unlikely(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'modelName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(modelName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(modelName_param) == IS_STRING)) { zephir_get_strval(modelName, modelName_param); } else { ZEPHIR_INIT_VAR(modelName); ZVAL_EMPTY_STRING(modelName); } - if (unlikely(Z_TYPE_P(method_param) != IS_STRING && Z_TYPE_P(method_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(method_param) != IS_STRING && Z_TYPE_P(method_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'method' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(method_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(method_param) == IS_STRING)) { zephir_get_strval(method, method_param); } else { ZEPHIR_INIT_VAR(method); @@ -84795,7 +84447,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _invokeFinder) { ZEPHIR_CONCAT_SVS(_4$$7, "The static method '", method, "' requires one argument"); ZEPHIR_CALL_METHOD(NULL, _3$$7, "__construct", NULL, 9, _4$$7); zephir_check_call_status(); - zephir_throw_exception_debug(_3$$7, "phalcon/mvc/model.zep", 4105 TSRMLS_CC); + zephir_throw_exception_debug(_3$$7, "phalcon/mvc/model.zep", 4107 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -84832,7 +84484,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _invokeFinder) { ZEPHIR_CONCAT_SVS(_8$$13, "Cannot resolve attribute '", extraMethod, "' in the model"); ZEPHIR_CALL_METHOD(NULL, _7$$13, "__construct", NULL, 9, _8$$13); zephir_check_call_status(); - zephir_throw_exception_debug(_7$$13, "phalcon/mvc/model.zep", 4139 TSRMLS_CC); + zephir_throw_exception_debug(_7$$13, "phalcon/mvc/model.zep", 4141 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -84891,7 +84543,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, __call) { ZEPHIR_CONCAT_SVSVS(_3, "The method '", method, "' doesn't exist on model '", modelName, "'"); ZEPHIR_CALL_METHOD(NULL, _2, "__construct", NULL, 9, _3); zephir_check_call_status(); - zephir_throw_exception_debug(_2, "phalcon/mvc/model.zep", 4190 TSRMLS_CC); + zephir_throw_exception_debug(_2, "phalcon/mvc/model.zep", 4192 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; @@ -84919,7 +84571,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, __callStatic) { ZEPHIR_CONCAT_SVS(_2$$3, "The static method '", method, "' doesn't exist"); ZEPHIR_CALL_METHOD(NULL, _1$$3, "__construct", NULL, 9, _2$$3); zephir_check_call_status(); - zephir_throw_exception_debug(_1$$3, "phalcon/mvc/model.zep", 4206 TSRMLS_CC); + zephir_throw_exception_debug(_1$$3, "phalcon/mvc/model.zep", 4208 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -84970,16 +84622,16 @@ static PHP_METHOD(Phalcon_Mvc_Model, __set) { zephir_check_call_status(); ZEPHIR_INIT_VAR(related); array_init(related); - zephir_is_iterable(value, &_3$$6, &_2$$6, 0, 0, "phalcon/mvc/model.zep", 4266); + zephir_is_iterable(value, &_3$$6, &_2$$6, 0, 0, "phalcon/mvc/model.zep", 4268); for ( - ; zephir_hash_get_current_data_ex(_3$$6, (void**) &_4$$6, &_2$$6) == SUCCESS - ; zephir_hash_move_forward_ex(_3$$6, &_2$$6) + ; zend_hash_get_current_data_ex(_3$$6, (void**) &_4$$6, &_2$$6) == SUCCESS + ; zend_hash_move_forward_ex(_3$$6, &_2$$6) ) { ZEPHIR_GET_HMKEY(key, _3$$6, _2$$6); ZEPHIR_GET_HVALUE(item, _4$$6); if (Z_TYPE_P(item) == IS_OBJECT) { if (zephir_instance_of_ev(item, phalcon_mvc_modelinterface_ce TSRMLS_CC)) { - zephir_array_append(&related, item, PH_SEPARATE, "phalcon/mvc/model.zep", 4253); + zephir_array_append(&related, item, PH_SEPARATE, "phalcon/mvc/model.zep", 4255); } } else { ZEPHIR_INIT_NVAR(lowerKey); @@ -85027,7 +84679,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, __set) { ZEPHIR_CONCAT_SVS(_14$$15, "Property '", property, "' does not have a setter."); ZEPHIR_CALL_METHOD(NULL, _13$$15, "__construct", NULL, 9, _14$$15); zephir_check_call_status(); - zephir_throw_exception_debug(_13$$15, "phalcon/mvc/model.zep", 4283 TSRMLS_CC); + zephir_throw_exception_debug(_13$$15, "phalcon/mvc/model.zep", 4285 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -85073,11 +84725,11 @@ static PHP_METHOD(Phalcon_Mvc_Model, __get) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &property_param); - if (unlikely(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'property' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(property_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(property_param) == IS_STRING)) { zephir_get_strval(property, property_param); } else { ZEPHIR_INIT_VAR(property); @@ -85146,11 +84798,11 @@ static PHP_METHOD(Phalcon_Mvc_Model, __isset) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &property_param); - if (unlikely(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'property' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(property_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(property_param) == IS_STRING)) { zephir_get_strval(property, property_param); } else { ZEPHIR_INIT_VAR(property); @@ -85222,11 +84874,11 @@ static PHP_METHOD(Phalcon_Mvc_Model, unserialize) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &data_param); - if (unlikely(Z_TYPE_P(data_param) != IS_STRING && Z_TYPE_P(data_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(data_param) != IS_STRING && Z_TYPE_P(data_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'data' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(data_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(data_param) == IS_STRING)) { zephir_get_strval(data, data_param); } else { ZEPHIR_INIT_VAR(data); @@ -85240,7 +84892,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, unserialize) { ZEPHIR_CALL_CE_STATIC(&dependencyInjector, phalcon_di_ce, "getdefault", &_0, 1); zephir_check_call_status(); if (Z_TYPE_P(dependencyInjector) != IS_OBJECT) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "A dependency injector container is required to obtain the services related to the ORM", "phalcon/mvc/model.zep", 4437); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "A dependency injector container is required to obtain the services related to the ORM", "phalcon/mvc/model.zep", 4439); return; } zephir_update_property_this(this_ptr, SL("_dependencyInjector"), dependencyInjector TSRMLS_CC); @@ -85251,7 +84903,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, unserialize) { zephir_check_call_status(); ZEPHIR_CPY_WRT(manager, _1$$3); if (Z_TYPE_P(manager) != IS_OBJECT) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The injected service 'modelsManager' is not valid", "phalcon/mvc/model.zep", 4450); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The injected service 'modelsManager' is not valid", "phalcon/mvc/model.zep", 4452); return; } zephir_update_property_this(this_ptr, SL("_modelsManager"), manager TSRMLS_CC); @@ -85262,16 +84914,16 @@ static PHP_METHOD(Phalcon_Mvc_Model, unserialize) { if (zephir_is_true(_1$$3)) { if (zephir_array_isset_string_fetch(&snapshot, attributes, SS("_snapshot"), 1 TSRMLS_CC)) { zephir_update_property_this(this_ptr, SL("_snapshot"), snapshot TSRMLS_CC); - zephir_array_fetch_string(&_3$$7, attributes, SL("_attributes"), PH_NOISY | PH_READONLY, "phalcon/mvc/model.zep", 4465 TSRMLS_CC); + zephir_array_fetch_string(&_3$$7, attributes, SL("_attributes"), PH_NOISY | PH_READONLY, "phalcon/mvc/model.zep", 4467 TSRMLS_CC); ZEPHIR_CPY_WRT(attributes, _3$$7); } else { zephir_update_property_this(this_ptr, SL("_snapshot"), attributes TSRMLS_CC); } } - zephir_is_iterable(attributes, &_5$$3, &_4$$3, 0, 0, "phalcon/mvc/model.zep", 4478); + zephir_is_iterable(attributes, &_5$$3, &_4$$3, 0, 0, "phalcon/mvc/model.zep", 4480); for ( - ; zephir_hash_get_current_data_ex(_5$$3, (void**) &_6$$3, &_4$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_5$$3, &_4$$3) + ; zend_hash_get_current_data_ex(_5$$3, (void**) &_6$$3, &_4$$3) == SUCCESS + ; zend_hash_move_forward_ex(_5$$3, &_4$$3) ) { ZEPHIR_GET_HMKEY(key, _5$$3, _4$$3); ZEPHIR_GET_HVALUE(value, _6$$3); @@ -85318,10 +84970,10 @@ static PHP_METHOD(Phalcon_Mvc_Model, toArray) { zephir_check_call_status(); ZEPHIR_CALL_METHOD(&_0, metaData, "getattributes", NULL, 0, this_ptr); zephir_check_call_status(); - zephir_is_iterable(_0, &_2, &_1, 0, 0, "phalcon/mvc/model.zep", 4546); + zephir_is_iterable(_0, &_2, &_1, 0, 0, "phalcon/mvc/model.zep", 4548); for ( - ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS - ; zephir_hash_move_forward_ex(_2, &_1) + ; zend_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS + ; zend_hash_move_forward_ex(_2, &_1) ) { ZEPHIR_GET_HVALUE(attribute, _3); if (Z_TYPE_P(columnMap) == IS_ARRAY) { @@ -85334,7 +84986,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, toArray) { ZEPHIR_CONCAT_SVS(_5$$6, "Column '", attribute, "' doesn't make part of the column map"); ZEPHIR_CALL_METHOD(NULL, _4$$6, "__construct", &_6, 9, _5$$6); zephir_check_call_status(); - zephir_throw_exception_debug(_4$$6, "phalcon/mvc/model.zep", 4524 TSRMLS_CC); + zephir_throw_exception_debug(_4$$6, "phalcon/mvc/model.zep", 4526 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } else { @@ -85632,7 +85284,7 @@ static PHP_METHOD(Phalcon_Mvc_Router, __construct) { if (!defaultRoutes_param) { defaultRoutes = 1; } else { - if (unlikely(Z_TYPE_P(defaultRoutes_param) != IS_BOOL)) { + if (UNEXPECTED(Z_TYPE_P(defaultRoutes_param) != IS_BOOL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'defaultRoutes' must be a bool") TSRMLS_CC); RETURN_MM_NULL(); } @@ -85764,7 +85416,7 @@ static PHP_METHOD(Phalcon_Mvc_Router, removeExtraSlashes) { zephir_fetch_params(0, 1, 0, &remove_param); - if (unlikely(Z_TYPE_P(remove_param) != IS_BOOL)) { + if (UNEXPECTED(Z_TYPE_P(remove_param) != IS_BOOL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'remove' must be a bool") TSRMLS_CC); RETURN_NULL(); } @@ -85788,11 +85440,11 @@ static PHP_METHOD(Phalcon_Mvc_Router, setDefaultNamespace) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &namespaceName_param); - if (unlikely(Z_TYPE_P(namespaceName_param) != IS_STRING && Z_TYPE_P(namespaceName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(namespaceName_param) != IS_STRING && Z_TYPE_P(namespaceName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'namespaceName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(namespaceName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(namespaceName_param) == IS_STRING)) { zephir_get_strval(namespaceName, namespaceName_param); } else { ZEPHIR_INIT_VAR(namespaceName); @@ -85813,11 +85465,11 @@ static PHP_METHOD(Phalcon_Mvc_Router, setDefaultModule) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &moduleName_param); - if (unlikely(Z_TYPE_P(moduleName_param) != IS_STRING && Z_TYPE_P(moduleName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(moduleName_param) != IS_STRING && Z_TYPE_P(moduleName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'moduleName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(moduleName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(moduleName_param) == IS_STRING)) { zephir_get_strval(moduleName, moduleName_param); } else { ZEPHIR_INIT_VAR(moduleName); @@ -85838,11 +85490,11 @@ static PHP_METHOD(Phalcon_Mvc_Router, setDefaultController) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &controllerName_param); - if (unlikely(Z_TYPE_P(controllerName_param) != IS_STRING && Z_TYPE_P(controllerName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(controllerName_param) != IS_STRING && Z_TYPE_P(controllerName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'controllerName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(controllerName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(controllerName_param) == IS_STRING)) { zephir_get_strval(controllerName, controllerName_param); } else { ZEPHIR_INIT_VAR(controllerName); @@ -85863,11 +85515,11 @@ static PHP_METHOD(Phalcon_Mvc_Router, setDefaultAction) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &actionName_param); - if (unlikely(Z_TYPE_P(actionName_param) != IS_STRING && Z_TYPE_P(actionName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(actionName_param) != IS_STRING && Z_TYPE_P(actionName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'actionName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(actionName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(actionName_param) == IS_STRING)) { zephir_get_strval(actionName, actionName_param); } else { ZEPHIR_INIT_VAR(actionName); @@ -86006,8 +85658,8 @@ static PHP_METHOD(Phalcon_Mvc_Router, handle) { _4 = zephir_fetch_nproperty_this(this_ptr, SL("_routes"), PH_NOISY_CC); zephir_is_iterable(_4, &_6, &_5, 0, 1, "phalcon/mvc/router.zep", 582); for ( - ; zephir_hash_get_current_data_ex(_6, (void**) &_7, &_5) == SUCCESS - ; zephir_hash_move_backwards_ex(_6, &_5) + ; zend_hash_get_current_data_ex(_6, (void**) &_7, &_5) == SUCCESS + ; zend_hash_move_backwards_ex(_6, &_5) ) { ZEPHIR_GET_HVALUE(route, _7); ZEPHIR_INIT_NVAR(params); @@ -86143,8 +85795,8 @@ static PHP_METHOD(Phalcon_Mvc_Router, handle) { zephir_check_call_status(); zephir_is_iterable(paths, &_25$$34, &_24$$34, 0, 0, "phalcon/mvc/router.zep", 571); for ( - ; zephir_hash_get_current_data_ex(_25$$34, (void**) &_26$$34, &_24$$34) == SUCCESS - ; zephir_hash_move_forward_ex(_25$$34, &_24$$34) + ; zend_hash_get_current_data_ex(_25$$34, (void**) &_26$$34, &_24$$34) == SUCCESS + ; zend_hash_move_forward_ex(_25$$34, &_24$$34) ) { ZEPHIR_GET_HMKEY(part, _25$$34, _24$$34); ZEPHIR_GET_HVALUE(position, _26$$34); @@ -86312,11 +85964,11 @@ static PHP_METHOD(Phalcon_Mvc_Router, add) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 3, &pattern_param, &paths, &httpMethods, &position); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(pattern, pattern_param); } else { ZEPHIR_INIT_VAR(pattern); @@ -86370,11 +86022,11 @@ static PHP_METHOD(Phalcon_Mvc_Router, addGet) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &pattern_param, &paths, &position); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(pattern, pattern_param); } else { ZEPHIR_INIT_VAR(pattern); @@ -86407,11 +86059,11 @@ static PHP_METHOD(Phalcon_Mvc_Router, addPost) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &pattern_param, &paths, &position); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(pattern, pattern_param); } else { ZEPHIR_INIT_VAR(pattern); @@ -86444,11 +86096,11 @@ static PHP_METHOD(Phalcon_Mvc_Router, addPut) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &pattern_param, &paths, &position); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(pattern, pattern_param); } else { ZEPHIR_INIT_VAR(pattern); @@ -86481,11 +86133,11 @@ static PHP_METHOD(Phalcon_Mvc_Router, addPatch) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &pattern_param, &paths, &position); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(pattern, pattern_param); } else { ZEPHIR_INIT_VAR(pattern); @@ -86518,11 +86170,11 @@ static PHP_METHOD(Phalcon_Mvc_Router, addDelete) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &pattern_param, &paths, &position); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(pattern, pattern_param); } else { ZEPHIR_INIT_VAR(pattern); @@ -86555,11 +86207,11 @@ static PHP_METHOD(Phalcon_Mvc_Router, addOptions) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &pattern_param, &paths, &position); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(pattern, pattern_param); } else { ZEPHIR_INIT_VAR(pattern); @@ -86592,11 +86244,11 @@ static PHP_METHOD(Phalcon_Mvc_Router, addHead) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &pattern_param, &paths, &position); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(pattern, pattern_param); } else { ZEPHIR_INIT_VAR(pattern); @@ -86629,11 +86281,11 @@ static PHP_METHOD(Phalcon_Mvc_Router, addPurge) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &pattern_param, &paths, &position); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(pattern, pattern_param); } else { ZEPHIR_INIT_VAR(pattern); @@ -86666,11 +86318,11 @@ static PHP_METHOD(Phalcon_Mvc_Router, addTrace) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &pattern_param, &paths, &position); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(pattern, pattern_param); } else { ZEPHIR_INIT_VAR(pattern); @@ -86703,11 +86355,11 @@ static PHP_METHOD(Phalcon_Mvc_Router, addConnect) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &pattern_param, &paths, &position); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(pattern, pattern_param); } else { ZEPHIR_INIT_VAR(pattern); @@ -86754,8 +86406,8 @@ static PHP_METHOD(Phalcon_Mvc_Router, mount) { if (Z_TYPE_P(beforeMatch) != IS_NULL) { zephir_is_iterable(groupRoutes, &_1$$4, &_0$$4, 0, 0, "phalcon/mvc/router.zep", 814); for ( - ; zephir_hash_get_current_data_ex(_1$$4, (void**) &_2$$4, &_0$$4) == SUCCESS - ; zephir_hash_move_forward_ex(_1$$4, &_0$$4) + ; zend_hash_get_current_data_ex(_1$$4, (void**) &_2$$4, &_0$$4) == SUCCESS + ; zend_hash_move_forward_ex(_1$$4, &_0$$4) ) { ZEPHIR_GET_HVALUE(route, _2$$4); ZEPHIR_CALL_METHOD(NULL, route, "beforematch", NULL, 0, beforeMatch); @@ -86767,8 +86419,8 @@ static PHP_METHOD(Phalcon_Mvc_Router, mount) { if (Z_TYPE_P(hostname) != IS_NULL) { zephir_is_iterable(groupRoutes, &_4$$6, &_3$$6, 0, 0, "phalcon/mvc/router.zep", 823); for ( - ; zephir_hash_get_current_data_ex(_4$$6, (void**) &_5$$6, &_3$$6) == SUCCESS - ; zephir_hash_move_forward_ex(_4$$6, &_3$$6) + ; zend_hash_get_current_data_ex(_4$$6, (void**) &_5$$6, &_3$$6) == SUCCESS + ; zend_hash_move_forward_ex(_4$$6, &_3$$6) ) { ZEPHIR_GET_HVALUE(route, _5$$6); ZEPHIR_CALL_METHOD(NULL, route, "sethostname", NULL, 0, hostname); @@ -86910,8 +86562,8 @@ static PHP_METHOD(Phalcon_Mvc_Router, getRouteById) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_routes"), PH_NOISY_CC); zephir_is_iterable(_0, &_2, &_1, 0, 0, "phalcon/mvc/router.zep", 941); for ( - ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS - ; zephir_hash_move_forward_ex(_2, &_1) + ; zend_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS + ; zend_hash_move_forward_ex(_2, &_1) ) { ZEPHIR_GET_HVALUE(route, _3); ZEPHIR_CALL_METHOD(&_4$$3, route, "getrouteid", NULL, 0); @@ -86935,11 +86587,11 @@ static PHP_METHOD(Phalcon_Mvc_Router, getRouteByName) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -86950,8 +86602,8 @@ static PHP_METHOD(Phalcon_Mvc_Router, getRouteByName) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_routes"), PH_NOISY_CC); zephir_is_iterable(_0, &_2, &_1, 0, 0, "phalcon/mvc/router.zep", 956); for ( - ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS - ; zephir_hash_move_forward_ex(_2, &_1) + ; zend_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS + ; zend_hash_move_forward_ex(_2, &_1) ) { ZEPHIR_GET_HVALUE(route, _3); ZEPHIR_CALL_METHOD(&_4$$3, route, "getname", NULL, 0); @@ -87133,11 +86785,11 @@ static PHP_METHOD(Phalcon_Mvc_Url, setBaseUri) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &baseUri_param); - if (unlikely(Z_TYPE_P(baseUri_param) != IS_STRING && Z_TYPE_P(baseUri_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(baseUri_param) != IS_STRING && Z_TYPE_P(baseUri_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'baseUri' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(baseUri_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(baseUri_param) == IS_STRING)) { zephir_get_strval(baseUri, baseUri_param); } else { ZEPHIR_INIT_VAR(baseUri); @@ -87162,11 +86814,11 @@ static PHP_METHOD(Phalcon_Mvc_Url, setStaticBaseUri) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &staticBaseUri_param); - if (unlikely(Z_TYPE_P(staticBaseUri_param) != IS_STRING && Z_TYPE_P(staticBaseUri_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(staticBaseUri_param) != IS_STRING && Z_TYPE_P(staticBaseUri_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'staticBaseUri' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(staticBaseUri_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(staticBaseUri_param) == IS_STRING)) { zephir_get_strval(staticBaseUri, staticBaseUri_param); } else { ZEPHIR_INIT_VAR(staticBaseUri); @@ -87235,11 +86887,11 @@ static PHP_METHOD(Phalcon_Mvc_Url, setBasePath) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &basePath_param); - if (unlikely(Z_TYPE_P(basePath_param) != IS_STRING && Z_TYPE_P(basePath_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(basePath_param) != IS_STRING && Z_TYPE_P(basePath_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'basePath' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(basePath_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(basePath_param) == IS_STRING)) { zephir_get_strval(basePath, basePath_param); } else { ZEPHIR_INIT_VAR(basePath); @@ -87718,8 +87370,8 @@ static PHP_METHOD(Phalcon_Mvc_View, setViewsDir) { array_init(newViewsDir); zephir_is_iterable(viewsDir, &_5$$6, &_4$$6, 0, 0, "phalcon/mvc/view.zep", 206); for ( - ; zephir_hash_get_current_data_ex(_5$$6, (void**) &_6$$6, &_4$$6) == SUCCESS - ; zephir_hash_move_forward_ex(_5$$6, &_4$$6) + ; zend_hash_get_current_data_ex(_5$$6, (void**) &_6$$6, &_4$$6) == SUCCESS + ; zend_hash_move_forward_ex(_5$$6, &_4$$6) ) { ZEPHIR_GET_HMKEY(position, _5$$6, _4$$6); ZEPHIR_GET_HVALUE(directory, _6$$6); @@ -87985,11 +87637,11 @@ static PHP_METHOD(Phalcon_Mvc_View, setParamToView) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &key_param, &value); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { ZEPHIR_INIT_VAR(key); @@ -88039,11 +87691,11 @@ static PHP_METHOD(Phalcon_Mvc_View, setVar) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &key_param, &value); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { ZEPHIR_INIT_VAR(key); @@ -88064,11 +87716,11 @@ static PHP_METHOD(Phalcon_Mvc_View, getVar) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &key_param); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { ZEPHIR_INIT_VAR(key); @@ -88165,8 +87817,8 @@ static PHP_METHOD(Phalcon_Mvc_View, _loadTemplateEngines) { zephir_array_fast_append(arguments, dependencyInjector); zephir_is_iterable(registeredEngines, &_3$$5, &_2$$5, 0, 0, "phalcon/mvc/view.zep", 569); for ( - ; zephir_hash_get_current_data_ex(_3$$5, (void**) &_4$$5, &_2$$5) == SUCCESS - ; zephir_hash_move_forward_ex(_3$$5, &_2$$5) + ; zend_hash_get_current_data_ex(_3$$5, (void**) &_4$$5, &_2$$5) == SUCCESS + ; zend_hash_move_forward_ex(_3$$5, &_2$$5) ) { ZEPHIR_GET_HMKEY(extension, _3$$5, _2$$5); ZEPHIR_GET_HVALUE(engineService, _4$$5); @@ -88238,8 +87890,8 @@ static PHP_METHOD(Phalcon_Mvc_View, _engineRender) { zephir_check_call_status(); zephir_is_iterable(_1, &_3, &_2, 0, 0, "phalcon/mvc/view.zep", 696); for ( - ; zephir_hash_get_current_data_ex(_3, (void**) &_4, &_2) == SUCCESS - ; zephir_hash_move_forward_ex(_3, &_2) + ; zend_hash_get_current_data_ex(_3, (void**) &_4, &_2) == SUCCESS + ; zend_hash_move_forward_ex(_3, &_2) ) { ZEPHIR_GET_HVALUE(viewsDir, _4); ZEPHIR_CALL_METHOD(&_5$$3, this_ptr, "_isabsolutepath", &_6, 386, viewPath); @@ -88296,8 +87948,8 @@ static PHP_METHOD(Phalcon_Mvc_View, _engineRender) { } zephir_is_iterable(engines, &_15$$3, &_14$$3, 0, 0, "phalcon/mvc/view.zep", 694); for ( - ; zephir_hash_get_current_data_ex(_15$$3, (void**) &_16$$3, &_14$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_15$$3, &_14$$3) + ; zend_hash_get_current_data_ex(_15$$3, (void**) &_16$$3, &_14$$3) == SUCCESS + ; zend_hash_move_forward_ex(_15$$3, &_14$$3) ) { ZEPHIR_GET_HMKEY(extension, _15$$3, _14$$3); ZEPHIR_GET_HVALUE(engine, _16$$3); @@ -88390,11 +88042,11 @@ static PHP_METHOD(Phalcon_Mvc_View, exists) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &view_param); - if (unlikely(Z_TYPE_P(view_param) != IS_STRING && Z_TYPE_P(view_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(view_param) != IS_STRING && Z_TYPE_P(view_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'view' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(view_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(view_param) == IS_STRING)) { zephir_get_strval(view, view_param); } else { ZEPHIR_INIT_VAR(view); @@ -88416,15 +88068,15 @@ static PHP_METHOD(Phalcon_Mvc_View, exists) { zephir_check_call_status(); zephir_is_iterable(_0, &_2, &_1, 0, 0, "phalcon/mvc/view.zep", 753); for ( - ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS - ; zephir_hash_move_forward_ex(_2, &_1) + ; zend_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS + ; zend_hash_move_forward_ex(_2, &_1) ) { ZEPHIR_GET_HVALUE(viewsDir, _3); ZEPHIR_INIT_NVAR(_4$$4); zephir_is_iterable(engines, &_6$$4, &_5$$4, 0, 0, "phalcon/mvc/view.zep", 751); for ( - ; zephir_hash_get_current_data_ex(_6$$4, (void**) &_7$$4, &_5$$4) == SUCCESS - ; zephir_hash_move_forward_ex(_6$$4, &_5$$4) + ; zend_hash_get_current_data_ex(_6$$4, (void**) &_7$$4, &_5$$4) == SUCCESS + ; zend_hash_move_forward_ex(_6$$4, &_5$$4) ) { ZEPHIR_GET_HMKEY(extension, _6$$4, _5$$4); ZEPHIR_GET_HVALUE(_4$$4, _7$$4); @@ -88452,21 +88104,21 @@ static PHP_METHOD(Phalcon_Mvc_View, render) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 1, &controllerName_param, &actionName_param, ¶ms); - if (unlikely(Z_TYPE_P(controllerName_param) != IS_STRING && Z_TYPE_P(controllerName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(controllerName_param) != IS_STRING && Z_TYPE_P(controllerName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'controllerName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(controllerName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(controllerName_param) == IS_STRING)) { zephir_get_strval(controllerName, controllerName_param); } else { ZEPHIR_INIT_VAR(controllerName); ZVAL_EMPTY_STRING(controllerName); } - if (unlikely(Z_TYPE_P(actionName_param) != IS_STRING && Z_TYPE_P(actionName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(actionName_param) != IS_STRING && Z_TYPE_P(actionName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'actionName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(actionName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(actionName_param) == IS_STRING)) { zephir_get_strval(actionName, actionName_param); } else { ZEPHIR_INIT_VAR(actionName); @@ -88590,8 +88242,8 @@ static PHP_METHOD(Phalcon_Mvc_View, render) { silence = 0; zephir_is_iterable(templatesBefore, &_18$$20, &_17$$20, 0, 0, "phalcon/mvc/view.zep", 904); for ( - ; zephir_hash_get_current_data_ex(_18$$20, (void**) &_19$$20, &_17$$20) == SUCCESS - ; zephir_hash_move_forward_ex(_18$$20, &_17$$20) + ; zend_hash_get_current_data_ex(_18$$20, (void**) &_19$$20, &_17$$20) == SUCCESS + ; zend_hash_move_forward_ex(_18$$20, &_17$$20) ) { ZEPHIR_GET_HVALUE(templateBefore, _19$$20); ZEPHIR_INIT_LNVAR(_20$$21); @@ -88647,8 +88299,8 @@ static PHP_METHOD(Phalcon_Mvc_View, render) { silence = 0; zephir_is_iterable(templatesAfter, &_29$$25, &_28$$25, 0, 0, "phalcon/mvc/view.zep", 931); for ( - ; zephir_hash_get_current_data_ex(_29$$25, (void**) &_30$$25, &_28$$25) == SUCCESS - ; zephir_hash_move_forward_ex(_29$$25, &_28$$25) + ; zend_hash_get_current_data_ex(_29$$25, (void**) &_30$$25, &_28$$25) == SUCCESS + ; zend_hash_move_forward_ex(_29$$25, &_28$$25) ) { ZEPHIR_GET_HVALUE(templateAfter, _30$$25); ZEPHIR_INIT_LNVAR(_31$$26); @@ -88766,11 +88418,11 @@ static PHP_METHOD(Phalcon_Mvc_View, getPartial) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &partialPath_param, ¶ms); - if (unlikely(Z_TYPE_P(partialPath_param) != IS_STRING && Z_TYPE_P(partialPath_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(partialPath_param) != IS_STRING && Z_TYPE_P(partialPath_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'partialPath' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(partialPath_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(partialPath_param) == IS_STRING)) { zephir_get_strval(partialPath, partialPath_param); } else { ZEPHIR_INIT_VAR(partialPath); @@ -88800,11 +88452,11 @@ static PHP_METHOD(Phalcon_Mvc_View, partial) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &partialPath_param, ¶ms); - if (unlikely(Z_TYPE_P(partialPath_param) != IS_STRING && Z_TYPE_P(partialPath_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(partialPath_param) != IS_STRING && Z_TYPE_P(partialPath_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'partialPath' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(partialPath_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(partialPath_param) == IS_STRING)) { zephir_get_strval(partialPath, partialPath_param); } else { ZEPHIR_INIT_VAR(partialPath); @@ -88853,21 +88505,21 @@ static PHP_METHOD(Phalcon_Mvc_View, getRender) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 2, &controllerName_param, &actionName_param, ¶ms, &configCallback); - if (unlikely(Z_TYPE_P(controllerName_param) != IS_STRING && Z_TYPE_P(controllerName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(controllerName_param) != IS_STRING && Z_TYPE_P(controllerName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'controllerName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(controllerName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(controllerName_param) == IS_STRING)) { zephir_get_strval(controllerName, controllerName_param); } else { ZEPHIR_INIT_VAR(controllerName); ZVAL_EMPTY_STRING(controllerName); } - if (unlikely(Z_TYPE_P(actionName_param) != IS_STRING && Z_TYPE_P(actionName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(actionName_param) != IS_STRING && Z_TYPE_P(actionName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'actionName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(actionName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(actionName_param) == IS_STRING)) { zephir_get_strval(actionName, actionName_param); } else { ZEPHIR_INIT_VAR(actionName); @@ -89020,8 +88672,8 @@ static PHP_METHOD(Phalcon_Mvc_View, cache) { } zephir_is_iterable(options, &_1$$3, &_0$$3, 0, 0, "phalcon/mvc/view.zep", 1262); for ( - ; zephir_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_1$$3, &_0$$3) + ; zend_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS + ; zend_hash_move_forward_ex(_1$$3, &_0$$3) ) { ZEPHIR_GET_HMKEY(key, _1$$3, _0$$3); ZEPHIR_GET_HVALUE(value, _2$$3); @@ -89171,11 +88823,11 @@ static PHP_METHOD(Phalcon_Mvc_View, __set) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &key_param, &value); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { ZEPHIR_INIT_VAR(key); @@ -89196,11 +88848,11 @@ static PHP_METHOD(Phalcon_Mvc_View, __get) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &key_param); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { ZEPHIR_INIT_VAR(key); @@ -89232,11 +88884,11 @@ static PHP_METHOD(Phalcon_Mvc_View, __isset) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &key_param); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { ZEPHIR_INIT_VAR(key); @@ -89482,11 +89134,11 @@ static PHP_METHOD(Phalcon_Mvc_Collection_Behavior, mustTakeAction) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &eventName_param); - if (unlikely(Z_TYPE_P(eventName_param) != IS_STRING && Z_TYPE_P(eventName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(eventName_param) != IS_STRING && Z_TYPE_P(eventName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'eventName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(eventName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(eventName_param) == IS_STRING)) { zephir_get_strval(eventName, eventName_param); } else { ZEPHIR_INIT_VAR(eventName); @@ -89511,11 +89163,11 @@ static PHP_METHOD(Phalcon_Mvc_Collection_Behavior, getOptions) { ZEPHIR_INIT_VAR(eventName); ZVAL_EMPTY_STRING(eventName); } else { - if (unlikely(Z_TYPE_P(eventName_param) != IS_STRING && Z_TYPE_P(eventName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(eventName_param) != IS_STRING && Z_TYPE_P(eventName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'eventName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(eventName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(eventName_param) == IS_STRING)) { zephir_get_strval(eventName, eventName_param); } else { ZEPHIR_INIT_VAR(eventName); @@ -89618,11 +89270,11 @@ static PHP_METHOD(Phalcon_Mvc_Collection_Document, offsetExists) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &index_param); - if (unlikely(Z_TYPE_P(index_param) != IS_STRING && Z_TYPE_P(index_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(index_param) != IS_STRING && Z_TYPE_P(index_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'index' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(index_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(index_param) == IS_STRING)) { zephir_get_strval(index, index_param); } else { ZEPHIR_INIT_VAR(index); @@ -89642,11 +89294,11 @@ static PHP_METHOD(Phalcon_Mvc_Collection_Document, offsetGet) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &index_param); - if (unlikely(Z_TYPE_P(index_param) != IS_STRING && Z_TYPE_P(index_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(index_param) != IS_STRING && Z_TYPE_P(index_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'index' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(index_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(index_param) == IS_STRING)) { zephir_get_strval(index, index_param); } else { ZEPHIR_INIT_VAR(index); @@ -89671,11 +89323,11 @@ static PHP_METHOD(Phalcon_Mvc_Collection_Document, offsetSet) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &index_param, &value); - if (unlikely(Z_TYPE_P(index_param) != IS_STRING && Z_TYPE_P(index_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(index_param) != IS_STRING && Z_TYPE_P(index_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'index' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(index_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(index_param) == IS_STRING)) { zephir_get_strval(index, index_param); } else { ZEPHIR_INIT_VAR(index); @@ -89726,11 +89378,11 @@ static PHP_METHOD(Phalcon_Mvc_Collection_Document, writeAttribute) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &attribute_param, &value); - if (unlikely(Z_TYPE_P(attribute_param) != IS_STRING && Z_TYPE_P(attribute_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(attribute_param) != IS_STRING && Z_TYPE_P(attribute_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'attribute' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(attribute_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(attribute_param) == IS_STRING)) { zephir_get_strval(attribute, attribute_param); } else { ZEPHIR_INIT_VAR(attribute); @@ -89953,11 +89605,11 @@ static PHP_METHOD(Phalcon_Mvc_Collection_Manager, isInitialized) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &modelName_param); - if (unlikely(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'modelName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(modelName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(modelName_param) == IS_STRING)) { zephir_get_strval(modelName, modelName_param); } else { ZEPHIR_INIT_VAR(modelName); @@ -89988,11 +89640,11 @@ static PHP_METHOD(Phalcon_Mvc_Collection_Manager, setConnectionService) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &model, &connectionService_param); - if (unlikely(Z_TYPE_P(connectionService_param) != IS_STRING && Z_TYPE_P(connectionService_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(connectionService_param) != IS_STRING && Z_TYPE_P(connectionService_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'connectionService' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(connectionService_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(connectionService_param) == IS_STRING)) { zephir_get_strval(connectionService, connectionService_param); } else { ZEPHIR_INIT_VAR(connectionService); @@ -90118,11 +89770,11 @@ static PHP_METHOD(Phalcon_Mvc_Collection_Manager, notifyEvent) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &eventName_param, &model); - if (unlikely(Z_TYPE_P(eventName_param) != IS_STRING && Z_TYPE_P(eventName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(eventName_param) != IS_STRING && Z_TYPE_P(eventName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'eventName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(eventName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(eventName_param) == IS_STRING)) { zephir_get_strval(eventName, eventName_param); } else { ZEPHIR_INIT_VAR(eventName); @@ -90141,8 +89793,8 @@ static PHP_METHOD(Phalcon_Mvc_Collection_Manager, notifyEvent) { if (zephir_array_isset_fetch(&modelsBehaviors, behaviors, _0$$3, 0 TSRMLS_CC)) { zephir_is_iterable(modelsBehaviors, &_2$$4, &_1$$4, 0, 0, "phalcon/mvc/collection/manager.zep", 289); for ( - ; zephir_hash_get_current_data_ex(_2$$4, (void**) &_3$$4, &_1$$4) == SUCCESS - ; zephir_hash_move_forward_ex(_2$$4, &_1$$4) + ; zend_hash_get_current_data_ex(_2$$4, (void**) &_3$$4, &_1$$4) == SUCCESS + ; zend_hash_move_forward_ex(_2$$4, &_1$$4) ) { ZEPHIR_GET_HVALUE(behavior, _3$$4); ZEPHIR_CALL_METHOD(&status, behavior, "notify", NULL, 0, eventName, model); @@ -90194,11 +89846,11 @@ static PHP_METHOD(Phalcon_Mvc_Collection_Manager, missingMethod) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &model, &eventName_param, &data); - if (unlikely(Z_TYPE_P(eventName_param) != IS_STRING && Z_TYPE_P(eventName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(eventName_param) != IS_STRING && Z_TYPE_P(eventName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'eventName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(eventName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(eventName_param) == IS_STRING)) { zephir_get_strval(eventName, eventName_param); } else { ZEPHIR_INIT_VAR(eventName); @@ -90215,8 +89867,8 @@ static PHP_METHOD(Phalcon_Mvc_Collection_Manager, missingMethod) { if (zephir_array_isset_fetch(&modelsBehaviors, behaviors, _0$$3, 0 TSRMLS_CC)) { zephir_is_iterable(modelsBehaviors, &_2$$4, &_1$$4, 0, 0, "phalcon/mvc/collection/manager.zep", 345); for ( - ; zephir_hash_get_current_data_ex(_2$$4, (void**) &_3$$4, &_1$$4) == SUCCESS - ; zephir_hash_move_forward_ex(_2$$4, &_1$$4) + ; zend_hash_get_current_data_ex(_2$$4, (void**) &_3$$4, &_1$$4) == SUCCESS + ; zend_hash_move_forward_ex(_2$$4, &_1$$4) ) { ZEPHIR_GET_HVALUE(behavior, _3$$4); ZEPHIR_CALL_METHOD(&result, behavior, "missingmethod", NULL, 0, model, eventName, data); @@ -90333,11 +89985,11 @@ static PHP_METHOD(Phalcon_Mvc_Collection_Behavior_SoftDelete, notify) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &type_param, &model); - if (unlikely(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'type' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(type_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(type_param) == IS_STRING)) { zephir_get_strval(type, type_param); } else { ZEPHIR_INIT_VAR(type); @@ -90378,8 +90030,8 @@ static PHP_METHOD(Phalcon_Mvc_Collection_Behavior_SoftDelete, notify) { zephir_check_call_status(); zephir_is_iterable(_3$$7, &_5$$7, &_4$$7, 0, 0, "phalcon/mvc/collection/behavior/softdelete.zep", 89); for ( - ; zephir_hash_get_current_data_ex(_5$$7, (void**) &_6$$7, &_4$$7) == SUCCESS - ; zephir_hash_move_forward_ex(_5$$7, &_4$$7) + ; zend_hash_get_current_data_ex(_5$$7, (void**) &_6$$7, &_4$$7) == SUCCESS + ; zend_hash_move_forward_ex(_5$$7, &_4$$7) ) { ZEPHIR_GET_HVALUE(message, _6$$7); ZEPHIR_CALL_METHOD(NULL, model, "appendmessage", &_7, 0, message); @@ -90425,11 +90077,11 @@ static PHP_METHOD(Phalcon_Mvc_Collection_Behavior_Timestampable, notify) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &type_param, &model); - if (unlikely(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'type' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(type_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(type_param) == IS_STRING)) { zephir_get_strval(type, type_param); } else { ZEPHIR_INIT_VAR(type); @@ -90475,8 +90127,8 @@ static PHP_METHOD(Phalcon_Mvc_Collection_Behavior_Timestampable, notify) { if (Z_TYPE_P(field) == IS_ARRAY) { zephir_is_iterable(field, &_2$$12, &_1$$12, 0, 0, "phalcon/mvc/collection/behavior/timestampable.zep", 94); for ( - ; zephir_hash_get_current_data_ex(_2$$12, (void**) &_3$$12, &_1$$12) == SUCCESS - ; zephir_hash_move_forward_ex(_2$$12, &_1$$12) + ; zend_hash_get_current_data_ex(_2$$12, (void**) &_3$$12, &_1$$12) == SUCCESS + ; zend_hash_move_forward_ex(_2$$12, &_1$$12) ) { ZEPHIR_GET_HVALUE(singleField, _3$$12); ZEPHIR_CALL_METHOD(NULL, model, "writeattribute", &_4, 0, singleField, timestamp); @@ -90565,11 +90217,11 @@ static PHP_METHOD(Phalcon_Mvc_Micro_Collection, _addMap) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 4, 0, &method_param, &routePattern, &handler, &name); - if (unlikely(Z_TYPE_P(method_param) != IS_STRING && Z_TYPE_P(method_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(method_param) != IS_STRING && Z_TYPE_P(method_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'method' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(method_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(method_param) == IS_STRING)) { zephir_get_strval(method, method_param); } else { ZEPHIR_INIT_VAR(method); @@ -90596,11 +90248,11 @@ static PHP_METHOD(Phalcon_Mvc_Micro_Collection, setPrefix) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &prefix_param); - if (unlikely(Z_TYPE_P(prefix_param) != IS_STRING && Z_TYPE_P(prefix_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(prefix_param) != IS_STRING && Z_TYPE_P(prefix_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'prefix' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(prefix_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(prefix_param) == IS_STRING)) { zephir_get_strval(prefix, prefix_param); } else { ZEPHIR_INIT_VAR(prefix); @@ -90660,7 +90312,7 @@ static PHP_METHOD(Phalcon_Mvc_Micro_Collection, setLazy) { zephir_fetch_params(0, 1, 0, &lazy_param); - if (unlikely(Z_TYPE_P(lazy_param) != IS_BOOL)) { + if (UNEXPECTED(Z_TYPE_P(lazy_param) != IS_BOOL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'lazy' must be a bool") TSRMLS_CC); RETURN_NULL(); } @@ -90701,11 +90353,11 @@ static PHP_METHOD(Phalcon_Mvc_Micro_Collection, map) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 1, &routePattern_param, &handler, &name); - if (unlikely(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'routePattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(routePattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(routePattern_param) == IS_STRING)) { zephir_get_strval(routePattern, routePattern_param); } else { ZEPHIR_INIT_VAR(routePattern); @@ -90733,11 +90385,11 @@ static PHP_METHOD(Phalcon_Mvc_Micro_Collection, get) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 1, &routePattern_param, &handler, &name); - if (unlikely(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'routePattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(routePattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(routePattern_param) == IS_STRING)) { zephir_get_strval(routePattern, routePattern_param); } else { ZEPHIR_INIT_VAR(routePattern); @@ -90766,11 +90418,11 @@ static PHP_METHOD(Phalcon_Mvc_Micro_Collection, post) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 1, &routePattern_param, &handler, &name); - if (unlikely(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'routePattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(routePattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(routePattern_param) == IS_STRING)) { zephir_get_strval(routePattern, routePattern_param); } else { ZEPHIR_INIT_VAR(routePattern); @@ -90799,11 +90451,11 @@ static PHP_METHOD(Phalcon_Mvc_Micro_Collection, put) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 1, &routePattern_param, &handler, &name); - if (unlikely(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'routePattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(routePattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(routePattern_param) == IS_STRING)) { zephir_get_strval(routePattern, routePattern_param); } else { ZEPHIR_INIT_VAR(routePattern); @@ -90832,11 +90484,11 @@ static PHP_METHOD(Phalcon_Mvc_Micro_Collection, patch) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 1, &routePattern_param, &handler, &name); - if (unlikely(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'routePattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(routePattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(routePattern_param) == IS_STRING)) { zephir_get_strval(routePattern, routePattern_param); } else { ZEPHIR_INIT_VAR(routePattern); @@ -90865,11 +90517,11 @@ static PHP_METHOD(Phalcon_Mvc_Micro_Collection, head) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 1, &routePattern_param, &handler, &name); - if (unlikely(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'routePattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(routePattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(routePattern_param) == IS_STRING)) { zephir_get_strval(routePattern, routePattern_param); } else { ZEPHIR_INIT_VAR(routePattern); @@ -90898,11 +90550,11 @@ static PHP_METHOD(Phalcon_Mvc_Micro_Collection, delete) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 1, &routePattern_param, &handler, &name); - if (unlikely(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'routePattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(routePattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(routePattern_param) == IS_STRING)) { zephir_get_strval(routePattern, routePattern_param); } else { ZEPHIR_INIT_VAR(routePattern); @@ -90931,11 +90583,11 @@ static PHP_METHOD(Phalcon_Mvc_Micro_Collection, options) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 1, &routePattern_param, &handler, &name); - if (unlikely(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'routePattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(routePattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(routePattern_param) == IS_STRING)) { zephir_get_strval(routePattern, routePattern_param); } else { ZEPHIR_INIT_VAR(routePattern); @@ -91061,11 +90713,11 @@ static PHP_METHOD(Phalcon_Mvc_Micro_LazyLoader, __construct) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &definition_param); - if (unlikely(Z_TYPE_P(definition_param) != IS_STRING && Z_TYPE_P(definition_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(definition_param) != IS_STRING && Z_TYPE_P(definition_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'definition' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(definition_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(definition_param) == IS_STRING)) { zephir_get_strval(definition, definition_param); } else { ZEPHIR_INIT_VAR(definition); @@ -91089,11 +90741,11 @@ static PHP_METHOD(Phalcon_Mvc_Micro_LazyLoader, __call) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &method_param, &arguments); - if (unlikely(Z_TYPE_P(method_param) != IS_STRING && Z_TYPE_P(method_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(method_param) != IS_STRING && Z_TYPE_P(method_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'method' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(method_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(method_param) == IS_STRING)) { zephir_get_strval(method, method_param); } else { ZEPHIR_INIT_VAR(method); @@ -91145,11 +90797,11 @@ static PHP_METHOD(Phalcon_Mvc_Micro_LazyLoader, callMethod) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 1, &method_param, &arguments, &modelBinder); - if (unlikely(Z_TYPE_P(method_param) != IS_STRING && Z_TYPE_P(method_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(method_param) != IS_STRING && Z_TYPE_P(method_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'method' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(method_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(method_param) == IS_STRING)) { zephir_get_strval(method, method_param); } else { ZEPHIR_INIT_VAR(method); @@ -91231,11 +90883,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Behavior, mustTakeAction) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &eventName_param); - if (unlikely(Z_TYPE_P(eventName_param) != IS_STRING && Z_TYPE_P(eventName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(eventName_param) != IS_STRING && Z_TYPE_P(eventName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'eventName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(eventName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(eventName_param) == IS_STRING)) { zephir_get_strval(eventName, eventName_param); } else { ZEPHIR_INIT_VAR(eventName); @@ -91260,11 +90912,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Behavior, getOptions) { ZEPHIR_INIT_VAR(eventName); ZVAL_EMPTY_STRING(eventName); } else { - if (unlikely(Z_TYPE_P(eventName_param) != IS_STRING && Z_TYPE_P(eventName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(eventName_param) != IS_STRING && Z_TYPE_P(eventName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'eventName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(eventName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(eventName_param) == IS_STRING)) { zephir_get_strval(eventName, eventName_param); } else { ZEPHIR_INIT_VAR(eventName); @@ -91457,8 +91109,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Binder, bindToHandler) { if (Z_TYPE_P(paramsCache) == IS_ARRAY) { zephir_is_iterable(paramsCache, &_4$$4, &_3$$4, 0, 0, "phalcon/mvc/model/binder.zep", 102); for ( - ; zephir_hash_get_current_data_ex(_4$$4, (void**) &_5$$4, &_3$$4) == SUCCESS - ; zephir_hash_move_forward_ex(_4$$4, &_3$$4) + ; zend_hash_get_current_data_ex(_4$$4, (void**) &_5$$4, &_3$$4) == SUCCESS + ; zend_hash_move_forward_ex(_4$$4, &_3$$4) ) { ZEPHIR_GET_HMKEY(paramKey, _4$$4, _3$$4); ZEPHIR_GET_HVALUE(className, _5$$4); @@ -91557,8 +91209,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Binder, getParamsFromReflection) { zephir_array_keys(paramsKeys, params TSRMLS_CC); zephir_is_iterable(methodParams, &_2, &_1, 0, 0, "phalcon/mvc/model/binder.zep", 197); for ( - ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS - ; zephir_hash_move_forward_ex(_2, &_1) + ; zend_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS + ; zend_hash_move_forward_ex(_2, &_1) ) { ZEPHIR_GET_HMKEY(paramKey, _2, _1); ZEPHIR_GET_HVALUE(methodParam, _3); @@ -91770,11 +91422,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, setModelName) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &modelName_param); - if (unlikely(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'modelName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(modelName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(modelName_param) == IS_STRING)) { zephir_get_strval(modelName, modelName_param); } else { ZEPHIR_INIT_VAR(modelName); @@ -91901,11 +91553,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, join) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 3, &model_param, &conditions, &alias, &type); - if (unlikely(Z_TYPE_P(model_param) != IS_STRING && Z_TYPE_P(model_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(model_param) != IS_STRING && Z_TYPE_P(model_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'model' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(model_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(model_param) == IS_STRING)) { zephir_get_strval(model, model_param); } else { ZEPHIR_INIT_VAR(model); @@ -91963,11 +91615,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, innerJoin) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &model_param, &conditions, &alias); - if (unlikely(Z_TYPE_P(model_param) != IS_STRING && Z_TYPE_P(model_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(model_param) != IS_STRING && Z_TYPE_P(model_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'model' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(model_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(model_param) == IS_STRING)) { zephir_get_strval(model, model_param); } else { ZEPHIR_INIT_VAR(model); @@ -91999,11 +91651,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, leftJoin) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &model_param, &conditions, &alias); - if (unlikely(Z_TYPE_P(model_param) != IS_STRING && Z_TYPE_P(model_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(model_param) != IS_STRING && Z_TYPE_P(model_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'model' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(model_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(model_param) == IS_STRING)) { zephir_get_strval(model, model_param); } else { ZEPHIR_INIT_VAR(model); @@ -92035,11 +91687,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, rightJoin) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &model_param, &conditions, &alias); - if (unlikely(Z_TYPE_P(model_param) != IS_STRING && Z_TYPE_P(model_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(model_param) != IS_STRING && Z_TYPE_P(model_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'model' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(model_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(model_param) == IS_STRING)) { zephir_get_strval(model, model_param); } else { ZEPHIR_INIT_VAR(model); @@ -92070,11 +91722,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, where) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &conditions_param, &bindParams, &bindTypes); - if (unlikely(Z_TYPE_P(conditions_param) != IS_STRING && Z_TYPE_P(conditions_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(conditions_param) != IS_STRING && Z_TYPE_P(conditions_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'conditions' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(conditions_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(conditions_param) == IS_STRING)) { zephir_get_strval(conditions, conditions_param); } else { ZEPHIR_INIT_VAR(conditions); @@ -92134,11 +91786,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, addWhere) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &conditions_param, &bindParams, &bindTypes); - if (unlikely(Z_TYPE_P(conditions_param) != IS_STRING && Z_TYPE_P(conditions_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(conditions_param) != IS_STRING && Z_TYPE_P(conditions_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'conditions' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(conditions_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(conditions_param) == IS_STRING)) { zephir_get_strval(conditions, conditions_param); } else { ZEPHIR_INIT_VAR(conditions); @@ -92167,11 +91819,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, andWhere) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &conditions_param, &bindParams, &bindTypes); - if (unlikely(Z_TYPE_P(conditions_param) != IS_STRING && Z_TYPE_P(conditions_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(conditions_param) != IS_STRING && Z_TYPE_P(conditions_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'conditions' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(conditions_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(conditions_param) == IS_STRING)) { zephir_get_strval(conditions, conditions_param); } else { ZEPHIR_INIT_VAR(conditions); @@ -92207,11 +91859,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, orWhere) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &conditions_param, &bindParams, &bindTypes); - if (unlikely(Z_TYPE_P(conditions_param) != IS_STRING && Z_TYPE_P(conditions_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(conditions_param) != IS_STRING && Z_TYPE_P(conditions_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'conditions' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(conditions_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(conditions_param) == IS_STRING)) { zephir_get_strval(conditions, conditions_param); } else { ZEPHIR_INIT_VAR(conditions); @@ -92248,11 +91900,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, betweenWhere) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &expr_param, &minimum, &maximum); - if (unlikely(Z_TYPE_P(expr_param) != IS_STRING && Z_TYPE_P(expr_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(expr_param) != IS_STRING && Z_TYPE_P(expr_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'expr' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(expr_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(expr_param) == IS_STRING)) { zephir_get_strval(expr, expr_param); } else { ZEPHIR_INIT_VAR(expr); @@ -92293,11 +91945,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, notBetweenWhere) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &expr_param, &minimum, &maximum); - if (unlikely(Z_TYPE_P(expr_param) != IS_STRING && Z_TYPE_P(expr_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(expr_param) != IS_STRING && Z_TYPE_P(expr_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'expr' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(expr_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(expr_param) == IS_STRING)) { zephir_get_strval(expr, expr_param); } else { ZEPHIR_INIT_VAR(expr); @@ -92341,11 +91993,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, inWhere) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &expr_param, &values_param); - if (unlikely(Z_TYPE_P(expr_param) != IS_STRING && Z_TYPE_P(expr_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(expr_param) != IS_STRING && Z_TYPE_P(expr_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'expr' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(expr_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(expr_param) == IS_STRING)) { zephir_get_strval(expr, expr_param); } else { ZEPHIR_INIT_VAR(expr); @@ -92369,8 +92021,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, inWhere) { array_init(bindKeys); zephir_is_iterable(values, &_3, &_2, 0, 0, "phalcon/mvc/model/criteria.zep", 418); for ( - ; zephir_hash_get_current_data_ex(_3, (void**) &_4, &_2) == SUCCESS - ; zephir_hash_move_forward_ex(_3, &_2) + ; zend_hash_get_current_data_ex(_3, (void**) &_4, &_2) == SUCCESS + ; zend_hash_move_forward_ex(_3, &_2) ) { ZEPHIR_GET_HVALUE(value, _4); ZEPHIR_INIT_NVAR(key); @@ -92405,11 +92057,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, notInWhere) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &expr_param, &values_param); - if (unlikely(Z_TYPE_P(expr_param) != IS_STRING && Z_TYPE_P(expr_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(expr_param) != IS_STRING && Z_TYPE_P(expr_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'expr' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(expr_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(expr_param) == IS_STRING)) { zephir_get_strval(expr, expr_param); } else { ZEPHIR_INIT_VAR(expr); @@ -92426,8 +92078,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, notInWhere) { array_init(bindKeys); zephir_is_iterable(values, &_1, &_0, 0, 0, "phalcon/mvc/model/criteria.zep", 455); for ( - ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS - ; zephir_hash_move_forward_ex(_1, &_0) + ; zend_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS + ; zend_hash_move_forward_ex(_1, &_0) ) { ZEPHIR_GET_HVALUE(value, _2); ZEPHIR_INIT_NVAR(key); @@ -92458,11 +92110,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, conditions) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &conditions_param); - if (unlikely(Z_TYPE_P(conditions_param) != IS_STRING && Z_TYPE_P(conditions_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(conditions_param) != IS_STRING && Z_TYPE_P(conditions_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'conditions' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(conditions_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(conditions_param) == IS_STRING)) { zephir_get_strval(conditions, conditions_param); } else { ZEPHIR_INIT_VAR(conditions); @@ -92485,11 +92137,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, order) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &orderColumns_param); - if (unlikely(Z_TYPE_P(orderColumns_param) != IS_STRING && Z_TYPE_P(orderColumns_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(orderColumns_param) != IS_STRING && Z_TYPE_P(orderColumns_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'orderColumns' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(orderColumns_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(orderColumns_param) == IS_STRING)) { zephir_get_strval(orderColumns, orderColumns_param); } else { ZEPHIR_INIT_VAR(orderColumns); @@ -92512,11 +92164,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, orderBy) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &orderColumns_param); - if (unlikely(Z_TYPE_P(orderColumns_param) != IS_STRING && Z_TYPE_P(orderColumns_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(orderColumns_param) != IS_STRING && Z_TYPE_P(orderColumns_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'orderColumns' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(orderColumns_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(orderColumns_param) == IS_STRING)) { zephir_get_strval(orderColumns, orderColumns_param); } else { ZEPHIR_INIT_VAR(orderColumns); @@ -92586,7 +92238,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, limit) { ZEPHIR_CALL_FUNCTION(&_1, "abs", &_2, 198, &_0); zephir_check_call_status(); limit = zephir_get_numberval(_1); - if (unlikely(limit == 0)) { + if (UNEXPECTED(limit == 0)) { RETURN_THIS(); } if (zephir_is_numeric(offset)) { @@ -92793,11 +92445,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, fromInput) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 1, &dependencyInjector, &modelName_param, &data_param, &operator_param); - if (unlikely(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'modelName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(modelName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(modelName_param) == IS_STRING)) { zephir_get_strval(modelName, modelName_param); } else { ZEPHIR_INIT_VAR(modelName); @@ -92808,11 +92460,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, fromInput) { ZEPHIR_INIT_VAR(operator); ZVAL_STRING(operator, "AND", 1); } else { - if (unlikely(Z_TYPE_P(operator_param) != IS_STRING && Z_TYPE_P(operator_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(operator_param) != IS_STRING && Z_TYPE_P(operator_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'operator' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(operator_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(operator_param) == IS_STRING)) { zephir_get_strval(operator, operator_param); } else { ZEPHIR_INIT_VAR(operator); @@ -92847,8 +92499,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, fromInput) { array_init(bind); zephir_is_iterable(data, &_4$$3, &_3$$3, 0, 0, "phalcon/mvc/model/criteria.zep", 711); for ( - ; zephir_hash_get_current_data_ex(_4$$3, (void**) &_5$$3, &_3$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_4$$3, &_3$$3) + ; zend_hash_get_current_data_ex(_4$$3, (void**) &_5$$3, &_3$$3) == SUCCESS + ; zend_hash_move_forward_ex(_4$$3, &_3$$3) ) { ZEPHIR_GET_HMKEY(field, _4$$3, _3$$3); ZEPHIR_GET_HVALUE(value, _5$$3); @@ -93203,11 +92855,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, isInitialized) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &modelName_param); - if (unlikely(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'modelName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(modelName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(modelName_param) == IS_STRING)) { zephir_get_strval(modelName, modelName_param); } else { ZEPHIR_INIT_VAR(modelName); @@ -93241,11 +92893,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, load) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &modelName_param, &newInstance_param); - if (unlikely(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'modelName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(modelName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(modelName_param) == IS_STRING)) { zephir_get_strval(modelName, modelName_param); } else { ZEPHIR_INIT_VAR(modelName); @@ -93321,11 +92973,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, setModelSource) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &model, &source_param); - if (unlikely(Z_TYPE_P(source_param) != IS_STRING && Z_TYPE_P(source_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(source_param) != IS_STRING && Z_TYPE_P(source_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'source' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(source_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(source_param) == IS_STRING)) { zephir_get_strval(source, source_param); } else { ZEPHIR_INIT_VAR(source); @@ -93400,11 +93052,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, setModelSchema) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &model, &schema_param); - if (unlikely(Z_TYPE_P(schema_param) != IS_STRING && Z_TYPE_P(schema_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schema_param) != IS_STRING && Z_TYPE_P(schema_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schema' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schema_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schema_param) == IS_STRING)) { zephir_get_strval(schema, schema_param); } else { ZEPHIR_INIT_VAR(schema); @@ -93447,11 +93099,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, setConnectionService) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &model, &connectionService_param); - if (unlikely(Z_TYPE_P(connectionService_param) != IS_STRING && Z_TYPE_P(connectionService_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(connectionService_param) != IS_STRING && Z_TYPE_P(connectionService_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'connectionService' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(connectionService_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(connectionService_param) == IS_STRING)) { zephir_get_strval(connectionService, connectionService_param); } else { ZEPHIR_INIT_VAR(connectionService); @@ -93475,11 +93127,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, setWriteConnectionService) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &model, &connectionService_param); - if (unlikely(Z_TYPE_P(connectionService_param) != IS_STRING && Z_TYPE_P(connectionService_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(connectionService_param) != IS_STRING && Z_TYPE_P(connectionService_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'connectionService' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(connectionService_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(connectionService_param) == IS_STRING)) { zephir_get_strval(connectionService, connectionService_param); } else { ZEPHIR_INIT_VAR(connectionService); @@ -93502,11 +93154,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, setReadConnectionService) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &model, &connectionService_param); - if (unlikely(Z_TYPE_P(connectionService_param) != IS_STRING && Z_TYPE_P(connectionService_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(connectionService_param) != IS_STRING && Z_TYPE_P(connectionService_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'connectionService' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(connectionService_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(connectionService_param) == IS_STRING)) { zephir_get_strval(connectionService, connectionService_param); } else { ZEPHIR_INIT_VAR(connectionService); @@ -93647,11 +93299,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, notifyEvent) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &eventName_param, &model); - if (unlikely(Z_TYPE_P(eventName_param) != IS_STRING && Z_TYPE_P(eventName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(eventName_param) != IS_STRING && Z_TYPE_P(eventName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'eventName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(eventName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(eventName_param) == IS_STRING)) { zephir_get_strval(eventName, eventName_param); } else { ZEPHIR_INIT_VAR(eventName); @@ -93668,8 +93320,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, notifyEvent) { if (zephir_array_isset_fetch(&modelsBehaviors, _0, _1, 0 TSRMLS_CC)) { zephir_is_iterable(modelsBehaviors, &_3$$3, &_2$$3, 0, 0, "phalcon/mvc/model/manager.zep", 508); for ( - ; zephir_hash_get_current_data_ex(_3$$3, (void**) &_4$$3, &_2$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_3$$3, &_2$$3) + ; zend_hash_get_current_data_ex(_3$$3, (void**) &_4$$3, &_2$$3) == SUCCESS + ; zend_hash_move_forward_ex(_3$$3, &_2$$3) ) { ZEPHIR_GET_HVALUE(behavior, _4$$3); ZEPHIR_CALL_METHOD(&status, behavior, "notify", NULL, 0, eventName, model); @@ -93718,11 +93370,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, missingMethod) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &model, &eventName_param, &data); - if (unlikely(Z_TYPE_P(eventName_param) != IS_STRING && Z_TYPE_P(eventName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(eventName_param) != IS_STRING && Z_TYPE_P(eventName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'eventName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(eventName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(eventName_param) == IS_STRING)) { zephir_get_strval(eventName, eventName_param); } else { ZEPHIR_INIT_VAR(eventName); @@ -93737,8 +93389,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, missingMethod) { if (zephir_array_isset_fetch(&modelsBehaviors, _0, _1, 0 TSRMLS_CC)) { zephir_is_iterable(modelsBehaviors, &_3$$3, &_2$$3, 0, 0, "phalcon/mvc/model/manager.zep", 557); for ( - ; zephir_hash_get_current_data_ex(_3$$3, (void**) &_4$$3, &_2$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_3$$3, &_2$$3) + ; zend_hash_get_current_data_ex(_3$$3, (void**) &_4$$3, &_2$$3) == SUCCESS + ; zend_hash_move_forward_ex(_3$$3, &_2$$3) ) { ZEPHIR_GET_HVALUE(behavior, _4$$3); ZEPHIR_CALL_METHOD(&result, behavior, "missingmethod", NULL, 0, model, eventName, data); @@ -93878,11 +93530,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, addHasOne) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 4, 1, &model, &fields, &referencedModel_param, &referencedFields, &options); - if (unlikely(Z_TYPE_P(referencedModel_param) != IS_STRING && Z_TYPE_P(referencedModel_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(referencedModel_param) != IS_STRING && Z_TYPE_P(referencedModel_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'referencedModel' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(referencedModel_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(referencedModel_param) == IS_STRING)) { zephir_get_strval(referencedModel, referencedModel_param); } else { ZEPHIR_INIT_VAR(referencedModel); @@ -93954,11 +93606,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, addBelongsTo) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 4, 1, &model, &fields, &referencedModel_param, &referencedFields, &options); - if (unlikely(Z_TYPE_P(referencedModel_param) != IS_STRING && Z_TYPE_P(referencedModel_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(referencedModel_param) != IS_STRING && Z_TYPE_P(referencedModel_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'referencedModel' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(referencedModel_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(referencedModel_param) == IS_STRING)) { zephir_get_strval(referencedModel, referencedModel_param); } else { ZEPHIR_INIT_VAR(referencedModel); @@ -94030,11 +93682,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, addHasMany) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 4, 1, &model, &fields, &referencedModel_param, &referencedFields, &options); - if (unlikely(Z_TYPE_P(referencedModel_param) != IS_STRING && Z_TYPE_P(referencedModel_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(referencedModel_param) != IS_STRING && Z_TYPE_P(referencedModel_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'referencedModel' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(referencedModel_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(referencedModel_param) == IS_STRING)) { zephir_get_strval(referencedModel, referencedModel_param); } else { ZEPHIR_INIT_VAR(referencedModel); @@ -94107,21 +93759,21 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, addHasManyToMany) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 7, 1, &model, &fields, &intermediateModel_param, &intermediateFields, &intermediateReferencedFields, &referencedModel_param, &referencedFields, &options); - if (unlikely(Z_TYPE_P(intermediateModel_param) != IS_STRING && Z_TYPE_P(intermediateModel_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(intermediateModel_param) != IS_STRING && Z_TYPE_P(intermediateModel_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'intermediateModel' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(intermediateModel_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(intermediateModel_param) == IS_STRING)) { zephir_get_strval(intermediateModel, intermediateModel_param); } else { ZEPHIR_INIT_VAR(intermediateModel); ZVAL_EMPTY_STRING(intermediateModel); } - if (unlikely(Z_TYPE_P(referencedModel_param) != IS_STRING && Z_TYPE_P(referencedModel_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(referencedModel_param) != IS_STRING && Z_TYPE_P(referencedModel_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'referencedModel' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(referencedModel_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(referencedModel_param) == IS_STRING)) { zephir_get_strval(referencedModel, referencedModel_param); } else { ZEPHIR_INIT_VAR(referencedModel); @@ -94204,21 +93856,21 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, existsBelongsTo) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &modelName_param, &modelRelation_param); - if (unlikely(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'modelName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(modelName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(modelName_param) == IS_STRING)) { zephir_get_strval(modelName, modelName_param); } else { ZEPHIR_INIT_VAR(modelName); ZVAL_EMPTY_STRING(modelName); } - if (unlikely(Z_TYPE_P(modelRelation_param) != IS_STRING && Z_TYPE_P(modelRelation_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(modelRelation_param) != IS_STRING && Z_TYPE_P(modelRelation_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'modelRelation' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(modelRelation_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(modelRelation_param) == IS_STRING)) { zephir_get_strval(modelRelation, modelRelation_param); } else { ZEPHIR_INIT_VAR(modelRelation); @@ -94251,21 +93903,21 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, existsHasMany) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &modelName_param, &modelRelation_param); - if (unlikely(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'modelName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(modelName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(modelName_param) == IS_STRING)) { zephir_get_strval(modelName, modelName_param); } else { ZEPHIR_INIT_VAR(modelName); ZVAL_EMPTY_STRING(modelName); } - if (unlikely(Z_TYPE_P(modelRelation_param) != IS_STRING && Z_TYPE_P(modelRelation_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(modelRelation_param) != IS_STRING && Z_TYPE_P(modelRelation_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'modelRelation' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(modelRelation_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(modelRelation_param) == IS_STRING)) { zephir_get_strval(modelRelation, modelRelation_param); } else { ZEPHIR_INIT_VAR(modelRelation); @@ -94298,21 +93950,21 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, existsHasOne) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &modelName_param, &modelRelation_param); - if (unlikely(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'modelName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(modelName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(modelName_param) == IS_STRING)) { zephir_get_strval(modelName, modelName_param); } else { ZEPHIR_INIT_VAR(modelName); ZVAL_EMPTY_STRING(modelName); } - if (unlikely(Z_TYPE_P(modelRelation_param) != IS_STRING && Z_TYPE_P(modelRelation_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(modelRelation_param) != IS_STRING && Z_TYPE_P(modelRelation_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'modelRelation' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(modelRelation_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(modelRelation_param) == IS_STRING)) { zephir_get_strval(modelRelation, modelRelation_param); } else { ZEPHIR_INIT_VAR(modelRelation); @@ -94345,21 +93997,21 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, existsHasManyToMany) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &modelName_param, &modelRelation_param); - if (unlikely(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'modelName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(modelName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(modelName_param) == IS_STRING)) { zephir_get_strval(modelName, modelName_param); } else { ZEPHIR_INIT_VAR(modelName); ZVAL_EMPTY_STRING(modelName); } - if (unlikely(Z_TYPE_P(modelRelation_param) != IS_STRING && Z_TYPE_P(modelRelation_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(modelRelation_param) != IS_STRING && Z_TYPE_P(modelRelation_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'modelRelation' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(modelRelation_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(modelRelation_param) == IS_STRING)) { zephir_get_strval(modelRelation, modelRelation_param); } else { ZEPHIR_INIT_VAR(modelRelation); @@ -94391,21 +94043,21 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, getRelationByAlias) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &modelName_param, &alias_param); - if (unlikely(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'modelName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(modelName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(modelName_param) == IS_STRING)) { zephir_get_strval(modelName, modelName_param); } else { ZEPHIR_INIT_VAR(modelName); ZVAL_EMPTY_STRING(modelName); } - if (unlikely(Z_TYPE_P(alias_param) != IS_STRING && Z_TYPE_P(alias_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(alias_param) != IS_STRING && Z_TYPE_P(alias_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'alias' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(alias_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(alias_param) == IS_STRING)) { zephir_get_strval(alias, alias_param); } else { ZEPHIR_INIT_VAR(alias); @@ -94453,8 +94105,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, _mergeFindParameters) { if (Z_TYPE_P(findParamsOne) == IS_ARRAY) { zephir_is_iterable(findParamsOne, &_3$$4, &_2$$4, 0, 0, "phalcon/mvc/model/manager.zep", 1149); for ( - ; zephir_hash_get_current_data_ex(_3$$4, (void**) &_4$$4, &_2$$4) == SUCCESS - ; zephir_hash_move_forward_ex(_3$$4, &_2$$4) + ; zend_hash_get_current_data_ex(_3$$4, (void**) &_4$$4, &_2$$4) == SUCCESS + ; zend_hash_move_forward_ex(_3$$4, &_2$$4) ) { ZEPHIR_GET_HMKEY(key, _3$$4, _2$$4); ZEPHIR_GET_HVALUE(value, _4$$4); @@ -94485,8 +94137,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, _mergeFindParameters) { if (Z_TYPE_P(findParamsTwo) == IS_ARRAY) { zephir_is_iterable(findParamsTwo, &_9$$11, &_8$$11, 0, 0, "phalcon/mvc/model/manager.zep", 1183); for ( - ; zephir_hash_get_current_data_ex(_9$$11, (void**) &_10$$11, &_8$$11) == SUCCESS - ; zephir_hash_move_forward_ex(_9$$11, &_8$$11) + ; zend_hash_get_current_data_ex(_9$$11, (void**) &_10$$11, &_8$$11) == SUCCESS + ; zend_hash_move_forward_ex(_9$$11, &_8$$11) ) { ZEPHIR_GET_HMKEY(key, _9$$11, _8$$11); ZEPHIR_GET_HVALUE(value, _10$$11); @@ -94556,11 +94208,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, getRelationRecords) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 1, &relation, &method_param, &record, ¶meters); - if (unlikely(Z_TYPE_P(method_param) != IS_STRING && Z_TYPE_P(method_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(method_param) != IS_STRING && Z_TYPE_P(method_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'method' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(method_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(method_param) == IS_STRING)) { zephir_get_strval(method, method_param); } else { ZEPHIR_INIT_VAR(method); @@ -94672,8 +94324,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, getRelationRecords) { zephir_check_call_status(); zephir_is_iterable(_16$$10, &_18$$10, &_17$$10, 0, 0, "phalcon/mvc/model/manager.zep", 1303); for ( - ; zephir_hash_get_current_data_ex(_18$$10, (void**) &_19$$10, &_17$$10) == SUCCESS - ; zephir_hash_move_forward_ex(_18$$10, &_17$$10) + ; zend_hash_get_current_data_ex(_18$$10, (void**) &_19$$10, &_17$$10) == SUCCESS + ; zend_hash_move_forward_ex(_18$$10, &_17$$10) ) { ZEPHIR_GET_HMKEY(refPosition, _18$$10, _17$$10); ZEPHIR_GET_HVALUE(field, _19$$10); @@ -94770,21 +94422,21 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, getReusableRecords) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &modelName_param, &key_param); - if (unlikely(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'modelName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(modelName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(modelName_param) == IS_STRING)) { zephir_get_strval(modelName, modelName_param); } else { ZEPHIR_INIT_VAR(modelName); ZVAL_EMPTY_STRING(modelName); } - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { ZEPHIR_INIT_VAR(key); @@ -94808,21 +94460,21 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, setReusableRecords) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &modelName_param, &key_param, &records); - if (unlikely(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'modelName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(modelName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(modelName_param) == IS_STRING)) { zephir_get_strval(modelName, modelName_param); } else { ZEPHIR_INIT_VAR(modelName); ZVAL_EMPTY_STRING(modelName); } - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { ZEPHIR_INIT_VAR(key); @@ -94852,21 +94504,21 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, getBelongsToRecords) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 4, 1, &method_param, &modelName_param, &modelRelation, &record, ¶meters); - if (unlikely(Z_TYPE_P(method_param) != IS_STRING && Z_TYPE_P(method_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(method_param) != IS_STRING && Z_TYPE_P(method_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'method' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(method_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(method_param) == IS_STRING)) { zephir_get_strval(method, method_param); } else { ZEPHIR_INIT_VAR(method); ZVAL_EMPTY_STRING(method); } - if (unlikely(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'modelName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(modelName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(modelName_param) == IS_STRING)) { zephir_get_strval(modelName, modelName_param); } else { ZEPHIR_INIT_VAR(modelName); @@ -94904,21 +94556,21 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, getHasManyRecords) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 4, 1, &method_param, &modelName_param, &modelRelation, &record, ¶meters); - if (unlikely(Z_TYPE_P(method_param) != IS_STRING && Z_TYPE_P(method_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(method_param) != IS_STRING && Z_TYPE_P(method_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'method' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(method_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(method_param) == IS_STRING)) { zephir_get_strval(method, method_param); } else { ZEPHIR_INIT_VAR(method); ZVAL_EMPTY_STRING(method); } - if (unlikely(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'modelName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(modelName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(modelName_param) == IS_STRING)) { zephir_get_strval(modelName, modelName_param); } else { ZEPHIR_INIT_VAR(modelName); @@ -94956,21 +94608,21 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, getHasOneRecords) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 4, 1, &method_param, &modelName_param, &modelRelation, &record, ¶meters); - if (unlikely(Z_TYPE_P(method_param) != IS_STRING && Z_TYPE_P(method_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(method_param) != IS_STRING && Z_TYPE_P(method_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'method' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(method_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(method_param) == IS_STRING)) { zephir_get_strval(method, method_param); } else { ZEPHIR_INIT_VAR(method); ZVAL_EMPTY_STRING(method); } - if (unlikely(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'modelName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(modelName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(modelName_param) == IS_STRING)) { zephir_get_strval(modelName, modelName_param); } else { ZEPHIR_INIT_VAR(modelName); @@ -95108,11 +94760,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, getRelations) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &modelName_param); - if (unlikely(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'modelName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(modelName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(modelName_param) == IS_STRING)) { zephir_get_strval(modelName, modelName_param); } else { ZEPHIR_INIT_VAR(modelName); @@ -95129,8 +94781,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, getRelations) { if (zephir_array_isset_fetch(&relations, _0, entityName, 0 TSRMLS_CC)) { zephir_is_iterable(relations, &_2$$3, &_1$$3, 0, 0, "phalcon/mvc/model/manager.zep", 1559); for ( - ; zephir_hash_get_current_data_ex(_2$$3, (void**) &_3$$3, &_1$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_2$$3, &_1$$3) + ; zend_hash_get_current_data_ex(_2$$3, (void**) &_3$$3, &_1$$3) == SUCCESS + ; zend_hash_move_forward_ex(_2$$3, &_1$$3) ) { ZEPHIR_GET_HVALUE(relation, _3$$3); zephir_array_append(&allRelations, relation, PH_SEPARATE, "phalcon/mvc/model/manager.zep", 1557); @@ -95141,8 +94793,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, getRelations) { if (zephir_array_isset_fetch(&relations, _4, entityName, 0 TSRMLS_CC)) { zephir_is_iterable(relations, &_6$$5, &_5$$5, 0, 0, "phalcon/mvc/model/manager.zep", 1568); for ( - ; zephir_hash_get_current_data_ex(_6$$5, (void**) &_7$$5, &_5$$5) == SUCCESS - ; zephir_hash_move_forward_ex(_6$$5, &_5$$5) + ; zend_hash_get_current_data_ex(_6$$5, (void**) &_7$$5, &_5$$5) == SUCCESS + ; zend_hash_move_forward_ex(_6$$5, &_5$$5) ) { ZEPHIR_GET_HVALUE(relation, _7$$5); zephir_array_append(&allRelations, relation, PH_SEPARATE, "phalcon/mvc/model/manager.zep", 1566); @@ -95153,8 +94805,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, getRelations) { if (zephir_array_isset_fetch(&relations, _8, entityName, 0 TSRMLS_CC)) { zephir_is_iterable(relations, &_10$$7, &_9$$7, 0, 0, "phalcon/mvc/model/manager.zep", 1577); for ( - ; zephir_hash_get_current_data_ex(_10$$7, (void**) &_11$$7, &_9$$7) == SUCCESS - ; zephir_hash_move_forward_ex(_10$$7, &_9$$7) + ; zend_hash_get_current_data_ex(_10$$7, (void**) &_11$$7, &_9$$7) == SUCCESS + ; zend_hash_move_forward_ex(_10$$7, &_9$$7) ) { ZEPHIR_GET_HVALUE(relation, _11$$7); zephir_array_append(&allRelations, relation, PH_SEPARATE, "phalcon/mvc/model/manager.zep", 1575); @@ -95172,21 +94824,21 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, getRelationsBetween) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &first_param, &second_param); - if (unlikely(Z_TYPE_P(first_param) != IS_STRING && Z_TYPE_P(first_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(first_param) != IS_STRING && Z_TYPE_P(first_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'first' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(first_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(first_param) == IS_STRING)) { zephir_get_strval(first, first_param); } else { ZEPHIR_INIT_VAR(first); ZVAL_EMPTY_STRING(first); } - if (unlikely(Z_TYPE_P(second_param) != IS_STRING && Z_TYPE_P(second_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(second_param) != IS_STRING && Z_TYPE_P(second_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'second' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(second_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(second_param) == IS_STRING)) { zephir_get_strval(second, second_param); } else { ZEPHIR_INIT_VAR(second); @@ -95229,11 +94881,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, createQuery) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &phql_param); - if (unlikely(Z_TYPE_P(phql_param) != IS_STRING && Z_TYPE_P(phql_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(phql_param) != IS_STRING && Z_TYPE_P(phql_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'phql' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(phql_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(phql_param) == IS_STRING)) { zephir_get_strval(phql, phql_param); } else { ZEPHIR_INIT_VAR(phql); @@ -95271,11 +94923,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, executeQuery) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &phql_param, &placeholders, &types); - if (unlikely(Z_TYPE_P(phql_param) != IS_STRING && Z_TYPE_P(phql_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(phql_param) != IS_STRING && Z_TYPE_P(phql_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'phql' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(phql_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(phql_param) == IS_STRING)) { zephir_get_strval(phql, phql_param); } else { ZEPHIR_INIT_VAR(phql); @@ -95372,11 +95024,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, getNamespaceAlias) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &alias_param); - if (unlikely(Z_TYPE_P(alias_param) != IS_STRING && Z_TYPE_P(alias_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(alias_param) != IS_STRING && Z_TYPE_P(alias_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'alias' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(alias_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(alias_param) == IS_STRING)) { zephir_get_strval(alias, alias_param); } else { ZEPHIR_INIT_VAR(alias); @@ -95576,11 +95228,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Message, __construct) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 4, &message_param, &field, &type, &model, &code_param); - if (unlikely(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'message' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(message_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(message_param) == IS_STRING)) { zephir_get_strval(message, message_param); } else { ZEPHIR_INIT_VAR(message); @@ -95623,11 +95275,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Message, setType) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &type_param); - if (unlikely(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'type' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(type_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(type_param) == IS_STRING)) { zephir_get_strval(type, type_param); } else { ZEPHIR_INIT_VAR(type); @@ -95656,11 +95308,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Message, setMessage) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &message_param); - if (unlikely(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'message' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(message_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(message_param) == IS_STRING)) { zephir_get_strval(message, message_param); } else { ZEPHIR_INIT_VAR(message); @@ -97041,8 +96693,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getQualified) { _9$$12 = zephir_fetch_nproperty_this(this_ptr, SL("_modelsInstances"), PH_NOISY_CC); zephir_is_iterable(_9$$12, &_11$$12, &_10$$12, 0, 0, "phalcon/mvc/model/query.zep", 288); for ( - ; zephir_hash_get_current_data_ex(_11$$12, (void**) &_12$$12, &_10$$12) == SUCCESS - ; zephir_hash_move_forward_ex(_11$$12, &_10$$12) + ; zend_hash_get_current_data_ex(_11$$12, (void**) &_12$$12, &_10$$12) == SUCCESS + ; zend_hash_move_forward_ex(_11$$12, &_10$$12) ) { ZEPHIR_GET_HVALUE(model, _12$$12); ZEPHIR_CALL_METHOD(&_13$$13, metaData, "hasattribute", &_14, 0, model, columnName); @@ -97175,8 +96827,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getCaseExpression) { zephir_array_fetch_string(&_0, expr, SL("right"), PH_NOISY | PH_READONLY, "phalcon/mvc/model/query.zep", 365 TSRMLS_CC); zephir_is_iterable(_0, &_2, &_1, 0, 0, "phalcon/mvc/model/query.zep", 380); for ( - ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS - ; zephir_hash_move_forward_ex(_2, &_1) + ; zend_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS + ; zend_hash_move_forward_ex(_2, &_1) ) { ZEPHIR_GET_HVALUE(whenExpr, _3); if (zephir_array_isset_string(whenExpr, SS("right"))) { @@ -97241,8 +96893,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getFunctionCall) { array_init(functionArgs); zephir_is_iterable(arguments, &_1$$6, &_0$$6, 0, 0, "phalcon/mvc/model/query.zep", 408); for ( - ; zephir_hash_get_current_data_ex(_1$$6, (void**) &_2$$6, &_0$$6) == SUCCESS - ; zephir_hash_move_forward_ex(_1$$6, &_0$$6) + ; zend_hash_get_current_data_ex(_1$$6, (void**) &_2$$6, &_0$$6) == SUCCESS + ; zend_hash_move_forward_ex(_1$$6, &_0$$6) ) { ZEPHIR_GET_HVALUE(argument, _2$$6); ZEPHIR_CALL_METHOD(&_3$$7, this_ptr, "_getcallargument", &_4, 338, argument); @@ -97897,8 +97549,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getExpression) { array_init(listItems); zephir_is_iterable(expr, &_40$$71, &_39$$71, 0, 0, "phalcon/mvc/model/query.zep", 762); for ( - ; zephir_hash_get_current_data_ex(_40$$71, (void**) &_41$$71, &_39$$71) == SUCCESS - ; zephir_hash_move_forward_ex(_40$$71, &_39$$71) + ; zend_hash_get_current_data_ex(_40$$71, (void**) &_41$$71, &_39$$71) == SUCCESS + ; zend_hash_move_forward_ex(_40$$71, &_39$$71) ) { ZEPHIR_GET_HVALUE(exprListItem, _41$$71); ZEPHIR_CALL_METHOD(&_42$$72, this_ptr, "_getexpression", &_1, 337, exprListItem); @@ -97943,8 +97595,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getSelectColumn) { _0$$4 = zephir_fetch_nproperty_this(this_ptr, SL("_models"), PH_NOISY_CC); zephir_is_iterable(_0$$4, &_2$$4, &_1$$4, 0, 0, "phalcon/mvc/model/query.zep", 809); for ( - ; zephir_hash_get_current_data_ex(_2$$4, (void**) &_3$$4, &_1$$4) == SUCCESS - ; zephir_hash_move_forward_ex(_2$$4, &_1$$4) + ; zend_hash_get_current_data_ex(_2$$4, (void**) &_3$$4, &_1$$4) == SUCCESS + ; zend_hash_move_forward_ex(_2$$4, &_1$$4) ) { ZEPHIR_GET_HMKEY(modelName, _2$$4, _1$$4); ZEPHIR_GET_HVALUE(source, _3$$4); @@ -98189,11 +97841,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getSingleJoin) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 5, 0, &joinType_param, &joinSource, &modelAlias, &joinAlias, &relation); - if (unlikely(Z_TYPE_P(joinType_param) != IS_STRING && Z_TYPE_P(joinType_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(joinType_param) != IS_STRING && Z_TYPE_P(joinType_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'joinType' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(joinType_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(joinType_param) == IS_STRING)) { zephir_get_strval(joinType, joinType_param); } else { ZEPHIR_INIT_VAR(joinType); @@ -98236,8 +97888,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getSingleJoin) { array_init(sqlJoinPartialConditions); zephir_is_iterable(fields, &_6$$4, &_5$$4, 0, 0, "phalcon/mvc/model/query.zep", 1096); for ( - ; zephir_hash_get_current_data_ex(_6$$4, (void**) &_7$$4, &_5$$4) == SUCCESS - ; zephir_hash_move_forward_ex(_6$$4, &_5$$4) + ; zend_hash_get_current_data_ex(_6$$4, (void**) &_7$$4, &_5$$4) == SUCCESS + ; zend_hash_move_forward_ex(_6$$4, &_5$$4) ) { ZEPHIR_GET_HMKEY(position, _6$$4, _5$$4); ZEPHIR_GET_HVALUE(field, _7$$4); @@ -98326,8 +97978,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getMultiJoin) { if (Z_TYPE_P(fields) == IS_ARRAY) { zephir_is_iterable(fields, &_1$$3, &_0$$3, 0, 0, "phalcon/mvc/model/query.zep", 1223); for ( - ; zephir_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_1$$3, &_0$$3) + ; zend_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS + ; zend_hash_move_forward_ex(_1$$3, &_0$$3) ) { ZEPHIR_GET_HMKEY(field, _1$$3, _0$$3); ZEPHIR_GET_HVALUE(position, _2$$3); @@ -98493,8 +98145,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getJoins) { } zephir_is_iterable(selectJoins, &_1, &_0, 0, 0, "phalcon/mvc/model/query.zep", 1474); for ( - ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS - ; zephir_hash_move_forward_ex(_1, &_0) + ; zend_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS + ; zend_hash_move_forward_ex(_1, &_0) ) { ZEPHIR_GET_HVALUE(joinItem, _2); ZEPHIR_CALL_METHOD(&joinData, this_ptr, "_getjoin", &_3, 343, manager, joinItem); @@ -98572,8 +98224,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getJoins) { zephir_update_property_this(this_ptr, SL("_modelsInstances"), modelsInstances TSRMLS_CC); zephir_is_iterable(joinPrepared, &_13, &_12, 0, 0, "phalcon/mvc/model/query.zep", 1494); for ( - ; zephir_hash_get_current_data_ex(_13, (void**) &_14, &_12) == SUCCESS - ; zephir_hash_move_forward_ex(_13, &_12) + ; zend_hash_get_current_data_ex(_13, (void**) &_14, &_12) == SUCCESS + ; zend_hash_move_forward_ex(_13, &_12) ) { ZEPHIR_GET_HMKEY(joinAliasName, _13, _12); ZEPHIR_GET_HVALUE(joinItem, _14); @@ -98589,8 +98241,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getJoins) { ZEPHIR_INIT_VAR(_18$$14); zephir_is_iterable(joinPrepared, &_20$$14, &_19$$14, 0, 0, "phalcon/mvc/model/query.zep", 1505); for ( - ; zephir_hash_get_current_data_ex(_20$$14, (void**) &_21$$14, &_19$$14) == SUCCESS - ; zephir_hash_move_forward_ex(_20$$14, &_19$$14) + ; zend_hash_get_current_data_ex(_20$$14, (void**) &_21$$14, &_19$$14) == SUCCESS + ; zend_hash_move_forward_ex(_20$$14, &_19$$14) ) { ZEPHIR_GET_HMKEY(joinAliasName, _20$$14, _19$$14); ZEPHIR_GET_HVALUE(_18$$14, _21$$14); @@ -98616,8 +98268,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getJoins) { array_init(fromModels); zephir_is_iterable(selectTables, &_25, &_24, 0, 0, "phalcon/mvc/model/query.zep", 1519); for ( - ; zephir_hash_get_current_data_ex(_25, (void**) &_26, &_24) == SUCCESS - ; zephir_hash_move_forward_ex(_25, &_24) + ; zend_hash_get_current_data_ex(_25, (void**) &_26, &_24) == SUCCESS + ; zend_hash_move_forward_ex(_25, &_24) ) { ZEPHIR_GET_HVALUE(tableItem, _26); zephir_array_fetch_string(&_27$$16, tableItem, SL("qualifiedName"), PH_NOISY | PH_READONLY, "phalcon/mvc/model/query.zep", 1513 TSRMLS_CC); @@ -98628,15 +98280,15 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getJoins) { ZEPHIR_INIT_VAR(_29); zephir_is_iterable(fromModels, &_31, &_30, 0, 0, "phalcon/mvc/model/query.zep", 1627); for ( - ; zephir_hash_get_current_data_ex(_31, (void**) &_32, &_30) == SUCCESS - ; zephir_hash_move_forward_ex(_31, &_30) + ; zend_hash_get_current_data_ex(_31, (void**) &_32, &_30) == SUCCESS + ; zend_hash_move_forward_ex(_31, &_30) ) { ZEPHIR_GET_HMKEY(fromModelName, _31, _30); ZEPHIR_GET_HVALUE(_29, _32); zephir_is_iterable(joinModels, &_34$$17, &_33$$17, 0, 0, "phalcon/mvc/model/query.zep", 1625); for ( - ; zephir_hash_get_current_data_ex(_34$$17, (void**) &_35$$17, &_33$$17) == SUCCESS - ; zephir_hash_move_forward_ex(_34$$17, &_33$$17) + ; zend_hash_get_current_data_ex(_34$$17, (void**) &_35$$17, &_33$$17) == SUCCESS + ; zend_hash_move_forward_ex(_34$$17, &_33$$17) ) { ZEPHIR_GET_HMKEY(joinAlias, _34$$17, _33$$17); ZEPHIR_GET_HVALUE(joinModel, _35$$17); @@ -98685,8 +98337,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getJoins) { if (zephir_array_isset_long(sqlJoin, 0)) { zephir_is_iterable(sqlJoin, &_45$$26, &_44$$26, 0, 0, "phalcon/mvc/model/query.zep", 1597); for ( - ; zephir_hash_get_current_data_ex(_45$$26, (void**) &_46$$26, &_44$$26) == SUCCESS - ; zephir_hash_move_forward_ex(_45$$26, &_44$$26) + ; zend_hash_get_current_data_ex(_45$$26, (void**) &_46$$26, &_44$$26) == SUCCESS + ; zend_hash_move_forward_ex(_45$$26, &_44$$26) ) { ZEPHIR_GET_HVALUE(sqlJoinItem, _46$$26); zephir_array_append(&sqlJoins, sqlJoinItem, PH_SEPARATE, "phalcon/mvc/model/query.zep", 1595); @@ -98745,8 +98397,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getOrderClause) { array_init(orderParts); zephir_is_iterable(orderColumns, &_1, &_0, 0, 0, "phalcon/mvc/model/query.zep", 1668); for ( - ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS - ; zephir_hash_move_forward_ex(_1, &_0) + ; zend_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS + ; zend_hash_move_forward_ex(_1, &_0) ) { ZEPHIR_GET_HVALUE(orderItem, _2); zephir_array_fetch_string(&_3$$5, orderItem, SL("column"), PH_NOISY | PH_READONLY, "phalcon/mvc/model/query.zep", 1650 TSRMLS_CC); @@ -98798,8 +98450,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getGroupClause) { array_init(groupParts); zephir_is_iterable(group, &_1$$3, &_0$$3, 0, 0, "phalcon/mvc/model/query.zep", 1686); for ( - ; zephir_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_1$$3, &_0$$3) + ; zend_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS + ; zend_hash_move_forward_ex(_1$$3, &_0$$3) ) { ZEPHIR_GET_HVALUE(groupItem, _2$$3); ZEPHIR_CALL_METHOD(&_3$$4, this_ptr, "_getexpression", &_4, 337, groupItem); @@ -98943,8 +98595,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _prepareSelect) { array_init(automaticJoins); zephir_is_iterable(selectedModels, &_1, &_0, 0, 0, "phalcon/mvc/model/query.zep", 1940); for ( - ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS - ; zephir_hash_move_forward_ex(_1, &_0) + ; zend_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS + ; zend_hash_move_forward_ex(_1, &_0) ) { ZEPHIR_GET_HVALUE(selectedModel, _2); ZEPHIR_OBS_NVAR(qualifiedName); @@ -99026,8 +98678,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _prepareSelect) { } zephir_is_iterable(withs, &_14$$24, &_13$$24, 0, 0, "phalcon/mvc/model/query.zep", 1932); for ( - ; zephir_hash_get_current_data_ex(_14$$24, (void**) &_15$$24, &_13$$24) == SUCCESS - ; zephir_hash_move_forward_ex(_14$$24, &_13$$24) + ; zend_hash_get_current_data_ex(_14$$24, (void**) &_15$$24, &_13$$24) == SUCCESS + ; zend_hash_move_forward_ex(_14$$24, &_13$$24) ) { ZEPHIR_GET_HVALUE(withItem, _15$$24); ZEPHIR_SINIT_NVAR(_16$$27); @@ -99179,16 +98831,16 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _prepareSelect) { array_init(sqlColumnAliases); zephir_is_iterable(selectColumns, &_43, &_42, 0, 0, "phalcon/mvc/model/query.zep", 2025); for ( - ; zephir_hash_get_current_data_ex(_43, (void**) &_44, &_42) == SUCCESS - ; zephir_hash_move_forward_ex(_43, &_42) + ; zend_hash_get_current_data_ex(_43, (void**) &_44, &_42) == SUCCESS + ; zend_hash_move_forward_ex(_43, &_42) ) { ZEPHIR_GET_HVALUE(column, _44); ZEPHIR_CALL_METHOD(&_45$$41, this_ptr, "_getselectcolumn", &_46, 348, column); zephir_check_call_status(); zephir_is_iterable(_45$$41, &_48$$41, &_47$$41, 0, 0, "phalcon/mvc/model/query.zep", 2024); for ( - ; zephir_hash_get_current_data_ex(_48$$41, (void**) &_49$$41, &_47$$41) == SUCCESS - ; zephir_hash_move_forward_ex(_48$$41, &_47$$41) + ; zend_hash_get_current_data_ex(_48$$41, (void**) &_49$$41, &_47$$41) == SUCCESS + ; zend_hash_move_forward_ex(_48$$41, &_47$$41) ) { ZEPHIR_GET_HVALUE(sqlColumn, _49$$41); ZEPHIR_OBS_NVAR(alias); @@ -99339,8 +98991,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _prepareInsert) { zephir_array_fetch_string(&_4, ast, SL("values"), PH_NOISY | PH_READONLY, "phalcon/mvc/model/query.zep", 2133 TSRMLS_CC); zephir_is_iterable(_4, &_6, &_5, 0, 0, "phalcon/mvc/model/query.zep", 2142); for ( - ; zephir_hash_get_current_data_ex(_6, (void**) &_7, &_5) == SUCCESS - ; zephir_hash_move_forward_ex(_6, &_5) + ; zend_hash_get_current_data_ex(_6, (void**) &_7, &_5) == SUCCESS + ; zend_hash_move_forward_ex(_6, &_5) ) { ZEPHIR_GET_HVALUE(exprValue, _7); ZEPHIR_INIT_NVAR(_8$$9); @@ -99371,8 +99023,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _prepareInsert) { array_init(sqlFields); zephir_is_iterable(fields, &_14$$10, &_13$$10, 0, 0, "phalcon/mvc/model/query.zep", 2166); for ( - ; zephir_hash_get_current_data_ex(_14$$10, (void**) &_15$$10, &_13$$10) == SUCCESS - ; zephir_hash_move_forward_ex(_14$$10, &_13$$10) + ; zend_hash_get_current_data_ex(_14$$10, (void**) &_15$$10, &_13$$10) == SUCCESS + ; zend_hash_move_forward_ex(_14$$10, &_13$$10) ) { ZEPHIR_GET_HVALUE(field, _15$$10); ZEPHIR_OBS_NVAR(name); @@ -99452,8 +99104,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _prepareUpdate) { zephir_read_property_this(&manager, this_ptr, SL("_manager"), PH_NOISY_CC); zephir_is_iterable(updateTables, &_1, &_0, 0, 0, "phalcon/mvc/model/query.zep", 2273); for ( - ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS - ; zephir_hash_move_forward_ex(_1, &_0) + ; zend_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS + ; zend_hash_move_forward_ex(_1, &_0) ) { ZEPHIR_GET_HVALUE(table, _2); ZEPHIR_OBS_NVAR(qualifiedName); @@ -99524,8 +99176,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _prepareUpdate) { notQuoting = 0; zephir_is_iterable(updateValues, &_10, &_9, 0, 0, "phalcon/mvc/model/query.zep", 2297); for ( - ; zephir_hash_get_current_data_ex(_10, (void**) &_11, &_9) == SUCCESS - ; zephir_hash_move_forward_ex(_10, &_9) + ; zend_hash_get_current_data_ex(_10, (void**) &_11, &_9) == SUCCESS + ; zend_hash_move_forward_ex(_10, &_9) ) { ZEPHIR_GET_HVALUE(updateValue, _11); zephir_array_fetch_string(&_13$$17, updateValue, SL("column"), PH_NOISY | PH_READONLY, "phalcon/mvc/model/query.zep", 2289 TSRMLS_CC); @@ -99625,8 +99277,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _prepareDelete) { zephir_read_property_this(&manager, this_ptr, SL("_manager"), PH_NOISY_CC); zephir_is_iterable(deleteTables, &_1, &_0, 0, 0, "phalcon/mvc/model/query.zep", 2403); for ( - ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS - ; zephir_hash_move_forward_ex(_1, &_0) + ; zend_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS + ; zend_hash_move_forward_ex(_1, &_0) ) { ZEPHIR_GET_HVALUE(table, _2); ZEPHIR_OBS_NVAR(qualifiedName); @@ -99827,8 +99479,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _executeSelect) { zephir_array_fetch_string(&models, intermediate, SL("models"), PH_NOISY, "phalcon/mvc/model/query.zep", 2536 TSRMLS_CC); zephir_is_iterable(models, &_1, &_0, 0, 0, "phalcon/mvc/model/query.zep", 2564); for ( - ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS - ; zephir_hash_move_forward_ex(_1, &_0) + ; zend_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS + ; zend_hash_move_forward_ex(_1, &_0) ) { ZEPHIR_GET_HVALUE(modelName, _2); ZEPHIR_OBS_NVAR(model); @@ -99868,8 +99520,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _executeSelect) { ZEPHIR_CPY_WRT(columns1, columns); zephir_is_iterable(columns, &_8, &_7, 0, 0, "phalcon/mvc/model/query.zep", 2591); for ( - ; zephir_hash_get_current_data_ex(_8, (void**) &_9, &_7) == SUCCESS - ; zephir_hash_move_forward_ex(_8, &_7) + ; zend_hash_get_current_data_ex(_8, (void**) &_9, &_7) == SUCCESS + ; zend_hash_move_forward_ex(_8, &_7) ) { ZEPHIR_GET_HVALUE(column, _9); if (Z_TYPE_P(column) != IS_ARRAY) { @@ -99912,8 +99564,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _executeSelect) { zephir_read_property_this(&metaData, this_ptr, SL("_metaData"), PH_NOISY_CC); zephir_is_iterable(columns, &_12, &_11, 0, 0, "phalcon/mvc/model/query.zep", 2690); for ( - ; zephir_hash_get_current_data_ex(_12, (void**) &_13, &_11) == SUCCESS - ; zephir_hash_move_forward_ex(_12, &_11) + ; zend_hash_get_current_data_ex(_12, (void**) &_13, &_11) == SUCCESS + ; zend_hash_move_forward_ex(_12, &_11) ) { ZEPHIR_GET_HMKEY(aliasCopy, _12, _11); ZEPHIR_GET_HVALUE(column, _13); @@ -99942,8 +99594,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _executeSelect) { } zephir_is_iterable(attributes, &_20$$24, &_19$$24, 0, 0, "phalcon/mvc/model/query.zep", 2646); for ( - ; zephir_hash_get_current_data_ex(_20$$24, (void**) &_21$$24, &_19$$24) == SUCCESS - ; zephir_hash_move_forward_ex(_20$$24, &_19$$24) + ; zend_hash_get_current_data_ex(_20$$24, (void**) &_21$$24, &_19$$24) == SUCCESS + ; zend_hash_move_forward_ex(_20$$24, &_19$$24) ) { ZEPHIR_GET_HVALUE(attribute, _21$$24); ZEPHIR_INIT_NVAR(_22$$27); @@ -99969,8 +99621,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _executeSelect) { } else { zephir_is_iterable(attributes, &_28$$29, &_27$$29, 0, 0, "phalcon/mvc/model/query.zep", 2664); for ( - ; zephir_hash_get_current_data_ex(_28$$29, (void**) &_29$$29, &_27$$29) == SUCCESS - ; zephir_hash_move_forward_ex(_28$$29, &_27$$29) + ; zend_hash_get_current_data_ex(_28$$29, (void**) &_29$$29, &_27$$29) == SUCCESS + ; zend_hash_move_forward_ex(_28$$29, &_27$$29) ) { ZEPHIR_GET_HVALUE(attribute, _29$$29); ZEPHIR_INIT_NVAR(_30$$30); @@ -100015,8 +99667,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _executeSelect) { array_init(processed); zephir_is_iterable(bindParams, &_33$$37, &_32$$37, 0, 0, "phalcon/mvc/model/query.zep", 2711); for ( - ; zephir_hash_get_current_data_ex(_33$$37, (void**) &_34$$37, &_32$$37) == SUCCESS - ; zephir_hash_move_forward_ex(_33$$37, &_32$$37) + ; zend_hash_get_current_data_ex(_33$$37, (void**) &_34$$37, &_32$$37) == SUCCESS + ; zend_hash_move_forward_ex(_33$$37, &_32$$37) ) { ZEPHIR_GET_HMKEY(wildcard, _33$$37, _32$$37); ZEPHIR_GET_HVALUE(value, _34$$37); @@ -100041,8 +99693,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _executeSelect) { array_init(processedTypes); zephir_is_iterable(bindTypes, &_37$$43, &_36$$43, 0, 0, "phalcon/mvc/model/query.zep", 2727); for ( - ; zephir_hash_get_current_data_ex(_37$$43, (void**) &_38$$43, &_36$$43) == SUCCESS - ; zephir_hash_move_forward_ex(_37$$43, &_36$$43) + ; zend_hash_get_current_data_ex(_37$$43, (void**) &_38$$43, &_36$$43) == SUCCESS + ; zend_hash_move_forward_ex(_37$$43, &_36$$43) ) { ZEPHIR_GET_HMKEY(typeWildcard, _37$$43, _36$$43); ZEPHIR_GET_HVALUE(value, _38$$43); @@ -100119,8 +99771,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _executeSelect) { zephir_check_call_status(); zephir_is_iterable(_43$$60, &_45$$60, &_44$$60, 0, 0, "phalcon/mvc/model/query.zep", 2813); for ( - ; zephir_hash_get_current_data_ex(_45$$60, (void**) &_46$$60, &_44$$60) == SUCCESS - ; zephir_hash_move_forward_ex(_45$$60, &_44$$60) + ; zend_hash_get_current_data_ex(_45$$60, (void**) &_46$$60, &_44$$60) == SUCCESS + ; zend_hash_move_forward_ex(_45$$60, &_44$$60) ) { ZEPHIR_GET_HVALUE(attribute, _46$$60); ZEPHIR_INIT_NVAR(_47$$61); @@ -100135,8 +99787,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _executeSelect) { array_init(simpleColumnMap); zephir_is_iterable(columnMap, &_50$$62, &_49$$62, 0, 0, "phalcon/mvc/model/query.zep", 2818); for ( - ; zephir_hash_get_current_data_ex(_50$$62, (void**) &_51$$62, &_49$$62) == SUCCESS - ; zephir_hash_move_forward_ex(_50$$62, &_49$$62) + ; zend_hash_get_current_data_ex(_50$$62, (void**) &_51$$62, &_49$$62) == SUCCESS + ; zend_hash_move_forward_ex(_50$$62, &_49$$62) ) { ZEPHIR_GET_HMKEY(column, _50$$62, _49$$62); ZEPHIR_GET_HVALUE(attribute, _51$$62); @@ -100288,8 +99940,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _executeInsert) { array_init(insertValues); zephir_is_iterable(values, &_3, &_2, 0, 0, "phalcon/mvc/model/query.zep", 2983); for ( - ; zephir_hash_get_current_data_ex(_3, (void**) &_4, &_2) == SUCCESS - ; zephir_hash_move_forward_ex(_3, &_2) + ; zend_hash_get_current_data_ex(_3, (void**) &_4, &_2) == SUCCESS + ; zend_hash_move_forward_ex(_3, &_2) ) { ZEPHIR_GET_HMKEY(number, _3, _2); ZEPHIR_GET_HVALUE(value, _4); @@ -100433,8 +100085,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _executeUpdate) { ZEPHIR_CPY_WRT(selectBindTypes, bindTypes); zephir_is_iterable(fields, &_3, &_2, 0, 0, "phalcon/mvc/model/query.zep", 3103); for ( - ; zephir_hash_get_current_data_ex(_3, (void**) &_4, &_2) == SUCCESS - ; zephir_hash_move_forward_ex(_3, &_2) + ; zend_hash_get_current_data_ex(_3, (void**) &_4, &_2) == SUCCESS + ; zend_hash_move_forward_ex(_3, &_2) ) { ZEPHIR_GET_HMKEY(number, _3, _2); ZEPHIR_GET_HVALUE(field, _4); @@ -101202,11 +100854,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Relation, __construct) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 4, 1, &type, &referencedModel_param, &fields, &referencedFields, &options); - if (unlikely(Z_TYPE_P(referencedModel_param) != IS_STRING && Z_TYPE_P(referencedModel_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(referencedModel_param) != IS_STRING && Z_TYPE_P(referencedModel_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'referencedModel' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(referencedModel_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(referencedModel_param) == IS_STRING)) { zephir_get_strval(referencedModel, referencedModel_param); } else { ZEPHIR_INIT_VAR(referencedModel); @@ -101234,11 +100886,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Relation, setIntermediateRelation) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &intermediateFields, &intermediateModel_param, &intermediateReferencedFields); - if (unlikely(Z_TYPE_P(intermediateModel_param) != IS_STRING && Z_TYPE_P(intermediateModel_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(intermediateModel_param) != IS_STRING && Z_TYPE_P(intermediateModel_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'intermediateModel' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(intermediateModel_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(intermediateModel_param) == IS_STRING)) { zephir_get_strval(intermediateModel, intermediateModel_param); } else { ZEPHIR_INIT_VAR(intermediateModel); @@ -101301,11 +100953,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Relation, getOption) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -101760,7 +101412,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Resultset, offsetGet) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &index_param); - if (unlikely(Z_TYPE_P(index_param) != IS_LONG)) { + if (UNEXPECTED(Z_TYPE_P(index_param) != IS_LONG)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'index' must be a int") TSRMLS_CC); RETURN_MM_NULL(); } @@ -102326,11 +101978,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Row, writeAttribute) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &attribute_param, &value); - if (unlikely(Z_TYPE_P(attribute_param) != IS_STRING && Z_TYPE_P(attribute_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(attribute_param) != IS_STRING && Z_TYPE_P(attribute_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'attribute' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(attribute_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(attribute_param) == IS_STRING)) { zephir_get_strval(attribute, attribute_param); } else { ZEPHIR_INIT_VAR(attribute); @@ -102793,11 +102445,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Validator, appendMessage) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &message_param, &field, &type); - if (unlikely(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'message' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(message_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(message_param) == IS_STRING)) { zephir_get_strval(message, message_param); } else { ZEPHIR_INIT_VAR(message); @@ -102856,11 +102508,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Validator, getOption) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &option_param, &defaultValue); - if (unlikely(Z_TYPE_P(option_param) != IS_STRING && Z_TYPE_P(option_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(option_param) != IS_STRING && Z_TYPE_P(option_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'option' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(option_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(option_param) == IS_STRING)) { zephir_get_strval(option, option_param); } else { ZEPHIR_INIT_VAR(option); @@ -102889,11 +102541,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Validator, isSetOption) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &option_param); - if (unlikely(Z_TYPE_P(option_param) != IS_STRING && Z_TYPE_P(option_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(option_param) != IS_STRING && Z_TYPE_P(option_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'option' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(option_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(option_param) == IS_STRING)) { zephir_get_strval(option, option_param); } else { ZEPHIR_INIT_VAR(option); @@ -102979,11 +102631,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Behavior_SoftDelete, notify) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &type_param, &model); - if (unlikely(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'type' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(type_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(type_param) == IS_STRING)) { zephir_get_strval(type, type_param); } else { ZEPHIR_INIT_VAR(type); @@ -103024,8 +102676,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Behavior_SoftDelete, notify) { zephir_check_call_status(); zephir_is_iterable(_3$$7, &_5$$7, &_4$$7, 0, 0, "phalcon/mvc/model/behavior/softdelete.zep", 89); for ( - ; zephir_hash_get_current_data_ex(_5$$7, (void**) &_6$$7, &_4$$7) == SUCCESS - ; zephir_hash_move_forward_ex(_5$$7, &_4$$7) + ; zend_hash_get_current_data_ex(_5$$7, (void**) &_6$$7, &_4$$7) == SUCCESS + ; zend_hash_move_forward_ex(_5$$7, &_4$$7) ) { ZEPHIR_GET_HVALUE(message, _6$$7); ZEPHIR_CALL_METHOD(NULL, model, "appendmessage", &_7, 0, message); @@ -103071,11 +102723,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Behavior_Timestampable, notify) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &type_param, &model); - if (unlikely(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'type' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(type_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(type_param) == IS_STRING)) { zephir_get_strval(type, type_param); } else { ZEPHIR_INIT_VAR(type); @@ -103121,8 +102773,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Behavior_Timestampable, notify) { if (Z_TYPE_P(field) == IS_ARRAY) { zephir_is_iterable(field, &_2$$12, &_1$$12, 0, 0, "phalcon/mvc/model/behavior/timestampable.zep", 94); for ( - ; zephir_hash_get_current_data_ex(_2$$12, (void**) &_3$$12, &_1$$12) == SUCCESS - ; zephir_hash_move_forward_ex(_2$$12, &_1$$12) + ; zend_hash_get_current_data_ex(_2$$12, (void**) &_3$$12, &_1$$12) == SUCCESS + ; zend_hash_move_forward_ex(_2$$12, &_1$$12) ) { ZEPHIR_GET_HVALUE(singleField, _3$$12); ZEPHIR_CALL_METHOD(NULL, model, "writeattribute", &_4, 0, singleField, timestamp); @@ -103213,11 +102865,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Apc, read) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &key_param); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { ZEPHIR_INIT_VAR(key); @@ -103246,11 +102898,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Apc, write) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &key_param, &data); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { ZEPHIR_INIT_VAR(key); @@ -103339,11 +102991,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Files, read) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &key_param); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { ZEPHIR_INIT_VAR(key); @@ -103377,11 +103029,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Files, write) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &key_param, &data); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { ZEPHIR_INIT_VAR(key); @@ -103516,11 +103168,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Libmemcached, read) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &key_param); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { ZEPHIR_INIT_VAR(key); @@ -103547,11 +103199,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Libmemcached, write) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &key_param, &data); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { ZEPHIR_INIT_VAR(key); @@ -103582,8 +103234,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Libmemcached, reset) { ZEPHIR_INIT_VAR(_0$$3); zephir_is_iterable(meta, &_2$$3, &_1$$3, 0, 0, "phalcon/mvc/model/metadata/libmemcached.zep", 132); for ( - ; zephir_hash_get_current_data_ex(_2$$3, (void**) &_3$$3, &_1$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_2$$3, &_1$$3) + ; zend_hash_get_current_data_ex(_2$$3, (void**) &_3$$3, &_1$$3) == SUCCESS + ; zend_hash_move_forward_ex(_2$$3, &_1$$3) ) { ZEPHIR_GET_HMKEY(key, _2$$3, _1$$3); ZEPHIR_GET_HVALUE(_0$$3, _3$$3); @@ -103716,11 +103368,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Memcache, read) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &key_param); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { ZEPHIR_INIT_VAR(key); @@ -103747,11 +103399,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Memcache, write) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &key_param, &data); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { ZEPHIR_INIT_VAR(key); @@ -103782,8 +103434,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Memcache, reset) { ZEPHIR_INIT_VAR(_0$$3); zephir_is_iterable(meta, &_2$$3, &_1$$3, 0, 0, "phalcon/mvc/model/metadata/memcache.zep", 131); for ( - ; zephir_hash_get_current_data_ex(_2$$3, (void**) &_3$$3, &_1$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_2$$3, &_1$$3) + ; zend_hash_get_current_data_ex(_2$$3, (void**) &_3$$3, &_1$$3) == SUCCESS + ; zend_hash_move_forward_ex(_2$$3, &_1$$3) ) { ZEPHIR_GET_HMKEY(key, _2$$3, _1$$3); ZEPHIR_GET_HVALUE(_0$$3, _3$$3); @@ -103864,11 +103516,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Memory, read) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &key_param); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { ZEPHIR_INIT_VAR(key); @@ -103888,11 +103540,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Memory, write) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &key_param, &data); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { ZEPHIR_INIT_VAR(key); @@ -104020,11 +103672,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Redis, read) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &key_param); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { ZEPHIR_INIT_VAR(key); @@ -104051,11 +103703,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Redis, write) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &key_param, &data); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { ZEPHIR_INIT_VAR(key); @@ -104086,8 +103738,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Redis, reset) { ZEPHIR_INIT_VAR(_0$$3); zephir_is_iterable(meta, &_2$$3, &_1$$3, 0, 0, "phalcon/mvc/model/metadata/redis.zep", 134); for ( - ; zephir_hash_get_current_data_ex(_2$$3, (void**) &_3$$3, &_1$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_2$$3, &_1$$3) + ; zend_hash_get_current_data_ex(_2$$3, (void**) &_3$$3, &_1$$3) == SUCCESS + ; zend_hash_move_forward_ex(_2$$3, &_1$$3) ) { ZEPHIR_GET_HMKEY(key, _2$$3, _1$$3); ZEPHIR_GET_HVALUE(_0$$3, _3$$3); @@ -104173,11 +103825,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Session, read) { zephir_get_global(&_SESSION, SS("_SESSION") TSRMLS_CC); zephir_fetch_params(1, 1, 0, &key_param); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { ZEPHIR_INIT_VAR(key); @@ -104205,11 +103857,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Session, write) { zephir_get_global(&_SESSION, SS("_SESSION") TSRMLS_CC); zephir_fetch_params(1, 2, 0, &key_param, &data); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { ZEPHIR_INIT_VAR(key); @@ -104303,11 +103955,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Xcache, read) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &key_param); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { ZEPHIR_INIT_VAR(key); @@ -104336,11 +103988,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Xcache, write) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &key_param, &data); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { ZEPHIR_INIT_VAR(key); @@ -104472,8 +104124,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Strategy_Annotations, getMetaData) array_init(emptyStringValues); zephir_is_iterable(propertiesAnnotations, &_6, &_5, 0, 0, "phalcon/mvc/model/metadata/strategy/annotations.zep", 184); for ( - ; zephir_hash_get_current_data_ex(_6, (void**) &_7, &_5) == SUCCESS - ; zephir_hash_move_forward_ex(_6, &_5) + ; zend_hash_get_current_data_ex(_6, (void**) &_7, &_5) == SUCCESS + ; zend_hash_move_forward_ex(_6, &_5) ) { ZEPHIR_GET_HMKEY(property, _6, _5); ZEPHIR_GET_HVALUE(propAnnotations, _7); @@ -104685,8 +104337,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Strategy_Annotations, getColumnMaps ZVAL_NULL(reversedColumnMap); zephir_is_iterable(propertiesAnnotations, &_6, &_5, 0, 0, "phalcon/mvc/model/metadata/strategy/annotations.zep", 262); for ( - ; zephir_hash_get_current_data_ex(_6, (void**) &_7, &_5) == SUCCESS - ; zephir_hash_move_forward_ex(_6, &_5) + ; zend_hash_get_current_data_ex(_6, (void**) &_7, &_5) == SUCCESS + ; zend_hash_move_forward_ex(_6, &_5) ) { ZEPHIR_GET_HMKEY(property, _6, _5); ZEPHIR_GET_HVALUE(propAnnotations, _7); @@ -104830,8 +104482,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Strategy_Introspection, getMetaData array_init(emptyStringValues); zephir_is_iterable(columns, &_8, &_7, 0, 0, "phalcon/mvc/model/metadata/strategy/introspection.zep", 165); for ( - ; zephir_hash_get_current_data_ex(_8, (void**) &_9, &_7) == SUCCESS - ; zephir_hash_move_forward_ex(_8, &_7) + ; zend_hash_get_current_data_ex(_8, (void**) &_9, &_7) == SUCCESS + ; zend_hash_move_forward_ex(_8, &_7) ) { ZEPHIR_GET_HVALUE(column, _9); ZEPHIR_CALL_METHOD(&fieldName, column, "getname", NULL, 0); @@ -104926,8 +104578,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Strategy_Introspection, getColumnMa ZEPHIR_CPY_WRT(orderedColumnMap, userColumnMap); zephir_is_iterable(userColumnMap, &_1$$3, &_0$$3, 0, 0, "phalcon/mvc/model/metadata/strategy/introspection.zep", 205); for ( - ; zephir_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_1$$3, &_0$$3) + ; zend_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS + ; zend_hash_move_forward_ex(_1$$3, &_0$$3) ) { ZEPHIR_GET_HMKEY(name, _1$$3, _0$$3); ZEPHIR_GET_HVALUE(userName, _2$$3); @@ -105032,8 +104684,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, __construct) { array_init(mergedTypes); zephir_is_iterable(conditions, &_1$$7, &_0$$7, 0, 0, "phalcon/mvc/model/query/builder.zep", 152); for ( - ; zephir_hash_get_current_data_ex(_1$$7, (void**) &_2$$7, &_0$$7) == SUCCESS - ; zephir_hash_move_forward_ex(_1$$7, &_0$$7) + ; zend_hash_get_current_data_ex(_1$$7, (void**) &_2$$7, &_0$$7) == SUCCESS + ; zend_hash_move_forward_ex(_1$$7, &_0$$7) ) { ZEPHIR_GET_HVALUE(singleConditionArray, _2$$7); if (Z_TYPE_P(singleConditionArray) == IS_ARRAY) { @@ -105285,11 +104937,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, join) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 3, &model_param, &conditions, &alias, &type); - if (unlikely(Z_TYPE_P(model_param) != IS_STRING && Z_TYPE_P(model_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(model_param) != IS_STRING && Z_TYPE_P(model_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'model' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(model_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(model_param) == IS_STRING)) { zephir_get_strval(model, model_param); } else { ZEPHIR_INIT_VAR(model); @@ -105326,11 +104978,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, innerJoin) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &model_param, &conditions, &alias); - if (unlikely(Z_TYPE_P(model_param) != IS_STRING && Z_TYPE_P(model_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(model_param) != IS_STRING && Z_TYPE_P(model_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'model' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(model_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(model_param) == IS_STRING)) { zephir_get_strval(model, model_param); } else { ZEPHIR_INIT_VAR(model); @@ -105366,11 +105018,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, leftJoin) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &model_param, &conditions, &alias); - if (unlikely(Z_TYPE_P(model_param) != IS_STRING && Z_TYPE_P(model_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(model_param) != IS_STRING && Z_TYPE_P(model_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'model' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(model_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(model_param) == IS_STRING)) { zephir_get_strval(model, model_param); } else { ZEPHIR_INIT_VAR(model); @@ -105406,11 +105058,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, rightJoin) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &model_param, &conditions, &alias); - if (unlikely(Z_TYPE_P(model_param) != IS_STRING && Z_TYPE_P(model_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(model_param) != IS_STRING && Z_TYPE_P(model_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'model' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(model_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(model_param) == IS_STRING)) { zephir_get_strval(model, model_param); } else { ZEPHIR_INIT_VAR(model); @@ -105494,11 +105146,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, andWhere) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &conditions_param, &bindParams, &bindTypes); - if (unlikely(Z_TYPE_P(conditions_param) != IS_STRING && Z_TYPE_P(conditions_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(conditions_param) != IS_STRING && Z_TYPE_P(conditions_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'conditions' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(conditions_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(conditions_param) == IS_STRING)) { zephir_get_strval(conditions, conditions_param); } else { ZEPHIR_INIT_VAR(conditions); @@ -105534,11 +105186,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, orWhere) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &conditions_param, &bindParams, &bindTypes); - if (unlikely(Z_TYPE_P(conditions_param) != IS_STRING && Z_TYPE_P(conditions_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(conditions_param) != IS_STRING && Z_TYPE_P(conditions_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'conditions' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(conditions_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(conditions_param) == IS_STRING)) { zephir_get_strval(conditions, conditions_param); } else { ZEPHIR_INIT_VAR(conditions); @@ -105576,11 +105228,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, betweenWhere) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 1, &expr_param, &minimum, &maximum, &operator_param); - if (unlikely(Z_TYPE_P(expr_param) != IS_STRING && Z_TYPE_P(expr_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(expr_param) != IS_STRING && Z_TYPE_P(expr_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'expr' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(expr_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(expr_param) == IS_STRING)) { zephir_get_strval(expr, expr_param); } else { ZEPHIR_INIT_VAR(expr); @@ -105590,11 +105242,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, betweenWhere) { ZEPHIR_INIT_VAR(operator); ZVAL_STRING(operator, "and", 1); } else { - if (unlikely(Z_TYPE_P(operator_param) != IS_STRING && Z_TYPE_P(operator_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(operator_param) != IS_STRING && Z_TYPE_P(operator_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'operator' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(operator_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(operator_param) == IS_STRING)) { zephir_get_strval(operator, operator_param); } else { ZEPHIR_INIT_VAR(operator); @@ -105657,11 +105309,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, notBetweenWhere) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 1, &expr_param, &minimum, &maximum, &operator_param); - if (unlikely(Z_TYPE_P(expr_param) != IS_STRING && Z_TYPE_P(expr_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(expr_param) != IS_STRING && Z_TYPE_P(expr_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'expr' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(expr_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(expr_param) == IS_STRING)) { zephir_get_strval(expr, expr_param); } else { ZEPHIR_INIT_VAR(expr); @@ -105671,11 +105323,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, notBetweenWhere) { ZEPHIR_INIT_VAR(operator); ZVAL_STRING(operator, "and", 1); } else { - if (unlikely(Z_TYPE_P(operator_param) != IS_STRING && Z_TYPE_P(operator_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(operator_param) != IS_STRING && Z_TYPE_P(operator_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'operator' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(operator_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(operator_param) == IS_STRING)) { zephir_get_strval(operator, operator_param); } else { ZEPHIR_INIT_VAR(operator); @@ -105740,11 +105392,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, inWhere) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 1, &expr_param, &values_param, &operator_param); - if (unlikely(Z_TYPE_P(expr_param) != IS_STRING && Z_TYPE_P(expr_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(expr_param) != IS_STRING && Z_TYPE_P(expr_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'expr' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(expr_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(expr_param) == IS_STRING)) { zephir_get_strval(expr, expr_param); } else { ZEPHIR_INIT_VAR(expr); @@ -105755,11 +105407,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, inWhere) { ZEPHIR_INIT_VAR(operator); ZVAL_STRING(operator, "and", 1); } else { - if (unlikely(Z_TYPE_P(operator_param) != IS_STRING && Z_TYPE_P(operator_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(operator_param) != IS_STRING && Z_TYPE_P(operator_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'operator' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(operator_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(operator_param) == IS_STRING)) { zephir_get_strval(operator, operator_param); } else { ZEPHIR_INIT_VAR(operator); @@ -105804,8 +105456,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, inWhere) { array_init(bindKeys); zephir_is_iterable(values, &_8, &_7, 0, 0, "phalcon/mvc/model/query/builder.zep", 804); for ( - ; zephir_hash_get_current_data_ex(_8, (void**) &_9, &_7) == SUCCESS - ; zephir_hash_move_forward_ex(_8, &_7) + ; zend_hash_get_current_data_ex(_8, (void**) &_9, &_7) == SUCCESS + ; zend_hash_move_forward_ex(_8, &_7) ) { ZEPHIR_GET_HVALUE(value, _9); ZEPHIR_SINIT_NVAR(_10$$5); @@ -105845,11 +105497,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, notInWhere) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 1, &expr_param, &values_param, &operator_param); - if (unlikely(Z_TYPE_P(expr_param) != IS_STRING && Z_TYPE_P(expr_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(expr_param) != IS_STRING && Z_TYPE_P(expr_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'expr' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(expr_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(expr_param) == IS_STRING)) { zephir_get_strval(expr, expr_param); } else { ZEPHIR_INIT_VAR(expr); @@ -105860,11 +105512,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, notInWhere) { ZEPHIR_INIT_VAR(operator); ZVAL_STRING(operator, "and", 1); } else { - if (unlikely(Z_TYPE_P(operator_param) != IS_STRING && Z_TYPE_P(operator_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(operator_param) != IS_STRING && Z_TYPE_P(operator_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'operator' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(operator_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(operator_param) == IS_STRING)) { zephir_get_strval(operator, operator_param); } else { ZEPHIR_INIT_VAR(operator); @@ -105909,8 +105561,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, notInWhere) { array_init(bindKeys); zephir_is_iterable(values, &_8, &_7, 0, 0, "phalcon/mvc/model/query/builder.zep", 853); for ( - ; zephir_hash_get_current_data_ex(_8, (void**) &_9, &_7) == SUCCESS - ; zephir_hash_move_forward_ex(_8, &_7) + ; zend_hash_get_current_data_ex(_8, (void**) &_9, &_7) == SUCCESS + ; zend_hash_move_forward_ex(_8, &_7) ) { ZEPHIR_GET_HVALUE(value, _9); ZEPHIR_SINIT_NVAR(_10$$5); @@ -105974,11 +105626,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, having) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &having_param); - if (unlikely(Z_TYPE_P(having_param) != IS_STRING && Z_TYPE_P(having_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(having_param) != IS_STRING && Z_TYPE_P(having_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'having' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(having_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(having_param) == IS_STRING)) { zephir_get_strval(having, having_param); } else { ZEPHIR_INIT_VAR(having); @@ -106038,7 +105690,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, limit) { ZEPHIR_CALL_FUNCTION(&_1, "abs", &_2, 198, &_0); zephir_check_call_status(); limit = zephir_get_numberval(_1); - if (unlikely(limit == 0)) { + if (UNEXPECTED(limit == 0)) { RETURN_THIS(); } ZEPHIR_INIT_ZVAL_NREF(_3); @@ -106238,8 +105890,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, getPhql) { array_init(selectedColumns); zephir_is_iterable(columns, &_12$$25, &_11$$25, 0, 0, "phalcon/mvc/model/query/builder.zep", 1141); for ( - ; zephir_hash_get_current_data_ex(_12$$25, (void**) &_13$$25, &_11$$25) == SUCCESS - ; zephir_hash_move_forward_ex(_12$$25, &_11$$25) + ; zend_hash_get_current_data_ex(_12$$25, (void**) &_13$$25, &_11$$25) == SUCCESS + ; zend_hash_move_forward_ex(_12$$25, &_11$$25) ) { ZEPHIR_GET_HMKEY(columnAlias, _12$$25, _11$$25); ZEPHIR_GET_HVALUE(column, _13$$25); @@ -106265,8 +105917,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, getPhql) { array_init(selectedColumns); zephir_is_iterable(models, &_18$$31, &_17$$31, 0, 0, "phalcon/mvc/model/query/builder.zep", 1164); for ( - ; zephir_hash_get_current_data_ex(_18$$31, (void**) &_19$$31, &_17$$31) == SUCCESS - ; zephir_hash_move_forward_ex(_18$$31, &_17$$31) + ; zend_hash_get_current_data_ex(_18$$31, (void**) &_19$$31, &_17$$31) == SUCCESS + ; zend_hash_move_forward_ex(_18$$31, &_17$$31) ) { ZEPHIR_GET_HMKEY(modelColumnAlias, _18$$31, _17$$31); ZEPHIR_GET_HVALUE(model, _19$$31); @@ -106298,8 +105950,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, getPhql) { array_init(selectedModels); zephir_is_iterable(models, &_26$$36, &_25$$36, 0, 0, "phalcon/mvc/model/query/builder.zep", 1187); for ( - ; zephir_hash_get_current_data_ex(_26$$36, (void**) &_27$$36, &_25$$36) == SUCCESS - ; zephir_hash_move_forward_ex(_26$$36, &_25$$36) + ; zend_hash_get_current_data_ex(_26$$36, (void**) &_27$$36, &_25$$36) == SUCCESS + ; zend_hash_move_forward_ex(_26$$36, &_25$$36) ) { ZEPHIR_GET_HMKEY(modelAlias, _26$$36, _25$$36); ZEPHIR_GET_HVALUE(model, _27$$36); @@ -106333,8 +105985,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, getPhql) { if (Z_TYPE_P(joins) == IS_ARRAY) { zephir_is_iterable(joins, &_35$$41, &_34$$41, 0, 0, "phalcon/mvc/model/query/builder.zep", 1244); for ( - ; zephir_hash_get_current_data_ex(_35$$41, (void**) &_36$$41, &_34$$41) == SUCCESS - ; zephir_hash_move_forward_ex(_35$$41, &_34$$41) + ; zend_hash_get_current_data_ex(_35$$41, (void**) &_36$$41, &_34$$41) == SUCCESS + ; zend_hash_move_forward_ex(_35$$41, &_34$$41) ) { ZEPHIR_GET_HVALUE(join, _36$$41); ZEPHIR_OBS_NVAR(joinModel); @@ -106400,8 +106052,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, getPhql) { array_init(groupItems); zephir_is_iterable(group, &_50$$49, &_49$$49, 0, 0, "phalcon/mvc/model/query/builder.zep", 1271); for ( - ; zephir_hash_get_current_data_ex(_50$$49, (void**) &_51$$49, &_49$$49) == SUCCESS - ; zephir_hash_move_forward_ex(_50$$49, &_49$$49) + ; zend_hash_get_current_data_ex(_50$$49, (void**) &_51$$49, &_49$$49) == SUCCESS + ; zend_hash_move_forward_ex(_50$$49, &_49$$49) ) { ZEPHIR_GET_HVALUE(groupItem, _51$$49); ZEPHIR_CALL_METHOD(&_52$$52, this_ptr, "autoescape", &_7, 369, groupItem); @@ -106431,8 +106083,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, getPhql) { array_init(orderItems); zephir_is_iterable(order, &_57$$56, &_56$$56, 0, 0, "phalcon/mvc/model/query/builder.zep", 1291); for ( - ; zephir_hash_get_current_data_ex(_57$$56, (void**) &_58$$56, &_56$$56) == SUCCESS - ; zephir_hash_move_forward_ex(_57$$56, &_56$$56) + ; zend_hash_get_current_data_ex(_57$$56, (void**) &_58$$56, &_56$$56) == SUCCESS + ; zend_hash_move_forward_ex(_57$$56, &_56$$56) ) { ZEPHIR_GET_HVALUE(orderItem, _58$$56); ZEPHIR_CALL_METHOD(&_59$$57, this_ptr, "autoescape", &_7, 369, orderItem); @@ -106701,11 +106353,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Lang, parsePHQL) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &phql_param); - if (unlikely(Z_TYPE_P(phql_param) != IS_STRING && Z_TYPE_P(phql_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(phql_param) != IS_STRING && Z_TYPE_P(phql_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'phql' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(phql_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(phql_param) == IS_STRING)) { zephir_get_strval(phql, phql_param); } else { ZEPHIR_INIT_VAR(phql); @@ -118653,8 +118305,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Resultset_Complex, current) { _1 = zephir_fetch_nproperty_this(this_ptr, SL("_columnTypes"), PH_NOISY_CC); zephir_is_iterable(_1, &_3, &_2, 0, 0, "phalcon/mvc/model/resultset/complex.zep", 246); for ( - ; zephir_hash_get_current_data_ex(_3, (void**) &_4, &_2) == SUCCESS - ; zephir_hash_move_forward_ex(_3, &_2) + ; zend_hash_get_current_data_ex(_3, (void**) &_4, &_2) == SUCCESS + ; zend_hash_move_forward_ex(_3, &_2) ) { ZEPHIR_GET_HMKEY(alias, _3, _2); ZEPHIR_GET_HVALUE(column, _4); @@ -118675,8 +118327,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Resultset_Complex, current) { array_init(rowModel); zephir_is_iterable(attributes, &_6$$11, &_5$$11, 0, 0, "phalcon/mvc/model/resultset/complex.zep", 162); for ( - ; zephir_hash_get_current_data_ex(_6$$11, (void**) &_7$$11, &_5$$11) == SUCCESS - ; zephir_hash_move_forward_ex(_6$$11, &_5$$11) + ; zend_hash_get_current_data_ex(_6$$11, (void**) &_7$$11, &_5$$11) == SUCCESS + ; zend_hash_move_forward_ex(_6$$11, &_5$$11) ) { ZEPHIR_GET_HVALUE(attribute, _7$$11); ZEPHIR_OBS_NVAR(columnValue); @@ -118827,11 +118479,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Resultset_Complex, unserialize) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &data_param); - if (unlikely(Z_TYPE_P(data_param) != IS_STRING && Z_TYPE_P(data_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(data_param) != IS_STRING && Z_TYPE_P(data_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'data' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(data_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(data_param) == IS_STRING)) { zephir_get_strval(data, data_param); } else { ZEPHIR_INIT_VAR(data); @@ -119029,16 +118681,16 @@ static PHP_METHOD(Phalcon_Mvc_Model_Resultset_Simple, toArray) { if (Z_TYPE_P(records) == IS_ARRAY) { zephir_is_iterable(records, &_2$$7, &_1$$7, 0, 0, "phalcon/mvc/model/resultset/simple.zep", 217); for ( - ; zephir_hash_get_current_data_ex(_2$$7, (void**) &_3$$7, &_1$$7) == SUCCESS - ; zephir_hash_move_forward_ex(_2$$7, &_1$$7) + ; zend_hash_get_current_data_ex(_2$$7, (void**) &_3$$7, &_1$$7) == SUCCESS + ; zend_hash_move_forward_ex(_2$$7, &_1$$7) ) { ZEPHIR_GET_HVALUE(record, _3$$7); ZEPHIR_INIT_NVAR(renamed); array_init(renamed); zephir_is_iterable(record, &_5$$8, &_4$$8, 0, 0, "phalcon/mvc/model/resultset/simple.zep", 215); for ( - ; zephir_hash_get_current_data_ex(_5$$8, (void**) &_6$$8, &_4$$8) == SUCCESS - ; zephir_hash_move_forward_ex(_5$$8, &_4$$8) + ; zend_hash_get_current_data_ex(_5$$8, (void**) &_6$$8, &_4$$8) == SUCCESS + ; zend_hash_move_forward_ex(_5$$8, &_4$$8) ) { ZEPHIR_GET_HMKEY(key, _5$$8, _4$$8); ZEPHIR_GET_HVALUE(value, _6$$8); @@ -119124,11 +118776,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Resultset_Simple, unserialize) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &data_param); - if (unlikely(Z_TYPE_P(data_param) != IS_STRING && Z_TYPE_P(data_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(data_param) != IS_STRING && Z_TYPE_P(data_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'data' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(data_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(data_param) == IS_STRING)) { zephir_get_strval(data, data_param); } else { ZEPHIR_INIT_VAR(data); @@ -119210,11 +118862,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Transaction_Failed, __construct) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &message_param, &record); - if (unlikely(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'message' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(message_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(message_param) == IS_STRING)) { zephir_get_strval(message, message_param); } else { ZEPHIR_INIT_VAR(message); @@ -119349,11 +119001,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Transaction_Manager, setDbService) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &service_param); - if (unlikely(Z_TYPE_P(service_param) != IS_STRING && Z_TYPE_P(service_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(service_param) != IS_STRING && Z_TYPE_P(service_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'service' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(service_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(service_param) == IS_STRING)) { zephir_get_strval(service, service_param); } else { ZEPHIR_INIT_VAR(service); @@ -119490,8 +119142,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Transaction_Manager, getOrCreateTransaction) if (Z_TYPE_P(transactions) == IS_ARRAY) { zephir_is_iterable(transactions, &_2$$5, &_1$$5, 0, 1, "phalcon/mvc/model/transaction/manager.zep", 201); for ( - ; zephir_hash_get_current_data_ex(_2$$5, (void**) &_3$$5, &_1$$5) == SUCCESS - ; zephir_hash_move_backwards_ex(_2$$5, &_1$$5) + ; zend_hash_get_current_data_ex(_2$$5, (void**) &_3$$5, &_1$$5) == SUCCESS + ; zend_hash_move_backwards_ex(_2$$5, &_1$$5) ) { ZEPHIR_GET_HVALUE(transaction, _3$$5); if (Z_TYPE_P(transaction) == IS_OBJECT) { @@ -119549,8 +119201,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Transaction_Manager, commit) { if (Z_TYPE_P(transactions) == IS_ARRAY) { zephir_is_iterable(transactions, &_1$$3, &_0$$3, 0, 0, "phalcon/mvc/model/transaction/manager.zep", 234); for ( - ; zephir_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_1$$3, &_0$$3) + ; zend_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS + ; zend_hash_move_forward_ex(_1$$3, &_0$$3) ) { ZEPHIR_GET_HVALUE(transaction, _2$$3); ZEPHIR_CALL_METHOD(&connection, transaction, "getconnection", NULL, 0); @@ -119588,8 +119240,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Transaction_Manager, rollback) { if (Z_TYPE_P(transactions) == IS_ARRAY) { zephir_is_iterable(transactions, &_1$$3, &_0$$3, 0, 0, "phalcon/mvc/model/transaction/manager.zep", 259); for ( - ; zephir_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_1$$3, &_0$$3) + ; zend_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS + ; zend_hash_move_forward_ex(_1$$3, &_0$$3) ) { ZEPHIR_GET_HVALUE(transaction, _2$$3); ZEPHIR_CALL_METHOD(&connection, transaction, "getconnection", NULL, 0); @@ -119662,8 +119314,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Transaction_Manager, _collectTransaction) { array_init(newTransactions); zephir_is_iterable(transactions, &_1$$3, &_0$$3, 0, 0, "phalcon/mvc/model/transaction/manager.zep", 296); for ( - ; zephir_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_1$$3, &_0$$3) + ; zend_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS + ; zend_hash_move_forward_ex(_1$$3, &_0$$3) ) { ZEPHIR_GET_HVALUE(managedTransaction, _2$$3); if (!ZEPHIR_IS_EQUAL(managedTransaction, transaction)) { @@ -119692,8 +119344,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Transaction_Manager, collectTransactions) { ZEPHIR_INIT_VAR(_0$$3); zephir_is_iterable(transactions, &_2$$3, &_1$$3, 0, 0, "phalcon/mvc/model/transaction/manager.zep", 312); for ( - ; zephir_hash_get_current_data_ex(_2$$3, (void**) &_3$$3, &_1$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_2$$3, &_1$$3) + ; zend_hash_get_current_data_ex(_2$$3, (void**) &_3$$3, &_1$$3) == SUCCESS + ; zend_hash_move_forward_ex(_2$$3, &_1$$3) ) { ZEPHIR_GET_HVALUE(_0$$3, _3$$3); RETURN_ON_FAILURE(zephir_property_decr(this_ptr, SL("_number") TSRMLS_CC)); @@ -120635,8 +120287,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Validator_Uniqueness, validate) { if (Z_TYPE_P(field) == IS_ARRAY) { zephir_is_iterable(field, &_2$$5, &_1$$5, 0, 0, "phalcon/mvc/model/validator/uniqueness.zep", 130); for ( - ; zephir_hash_get_current_data_ex(_2$$5, (void**) &_3$$5, &_1$$5) == SUCCESS - ; zephir_hash_move_forward_ex(_2$$5, &_1$$5) + ; zend_hash_get_current_data_ex(_2$$5, (void**) &_3$$5, &_1$$5) == SUCCESS + ; zend_hash_move_forward_ex(_2$$5, &_1$$5) ) { ZEPHIR_GET_HVALUE(composeField, _3$$5); if (Z_TYPE_P(columnMap) == IS_ARRAY) { @@ -120730,8 +120382,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Validator_Uniqueness, validate) { zephir_check_call_status(); zephir_is_iterable(_20$$16, &_22$$16, &_21$$16, 0, 0, "phalcon/mvc/model/validator/uniqueness.zep", 200); for ( - ; zephir_hash_get_current_data_ex(_22$$16, (void**) &_23$$16, &_21$$16) == SUCCESS - ; zephir_hash_move_forward_ex(_22$$16, &_21$$16) + ; zend_hash_get_current_data_ex(_22$$16, (void**) &_23$$16, &_21$$16) == SUCCESS + ; zend_hash_move_forward_ex(_22$$16, &_21$$16) ) { ZEPHIR_GET_HVALUE(primaryField, _23$$16); ZEPHIR_OBS_NVAR(bindType); @@ -120943,11 +120595,11 @@ static PHP_METHOD(Phalcon_Mvc_Router_Annotations, addResource) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &handler_param, &prefix_param); - if (unlikely(Z_TYPE_P(handler_param) != IS_STRING && Z_TYPE_P(handler_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(handler_param) != IS_STRING && Z_TYPE_P(handler_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'handler' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(handler_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(handler_param) == IS_STRING)) { zephir_get_strval(handler, handler_param); } else { ZEPHIR_INIT_VAR(handler); @@ -120957,11 +120609,11 @@ static PHP_METHOD(Phalcon_Mvc_Router_Annotations, addResource) { ZEPHIR_INIT_VAR(prefix); ZVAL_EMPTY_STRING(prefix); } else { - if (unlikely(Z_TYPE_P(prefix_param) != IS_STRING && Z_TYPE_P(prefix_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(prefix_param) != IS_STRING && Z_TYPE_P(prefix_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'prefix' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(prefix_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(prefix_param) == IS_STRING)) { zephir_get_strval(prefix, prefix_param); } else { ZEPHIR_INIT_VAR(prefix); @@ -120988,21 +120640,21 @@ static PHP_METHOD(Phalcon_Mvc_Router_Annotations, addModuleResource) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 1, &module_param, &handler_param, &prefix_param); - if (unlikely(Z_TYPE_P(module_param) != IS_STRING && Z_TYPE_P(module_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(module_param) != IS_STRING && Z_TYPE_P(module_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'module' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(module_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(module_param) == IS_STRING)) { zephir_get_strval(module, module_param); } else { ZEPHIR_INIT_VAR(module); ZVAL_EMPTY_STRING(module); } - if (unlikely(Z_TYPE_P(handler_param) != IS_STRING && Z_TYPE_P(handler_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(handler_param) != IS_STRING && Z_TYPE_P(handler_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'handler' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(handler_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(handler_param) == IS_STRING)) { zephir_get_strval(handler, handler_param); } else { ZEPHIR_INIT_VAR(handler); @@ -121012,11 +120664,11 @@ static PHP_METHOD(Phalcon_Mvc_Router_Annotations, addModuleResource) { ZEPHIR_INIT_VAR(prefix); ZVAL_EMPTY_STRING(prefix); } else { - if (unlikely(Z_TYPE_P(prefix_param) != IS_STRING && Z_TYPE_P(prefix_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(prefix_param) != IS_STRING && Z_TYPE_P(prefix_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'prefix' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(prefix_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(prefix_param) == IS_STRING)) { zephir_get_strval(prefix, prefix_param); } else { ZEPHIR_INIT_VAR(prefix); @@ -121052,11 +120704,11 @@ static PHP_METHOD(Phalcon_Mvc_Router_Annotations, handle) { ZEPHIR_INIT_VAR(uri); ZVAL_EMPTY_STRING(uri); } else { - if (unlikely(Z_TYPE_P(uri_param) != IS_STRING && Z_TYPE_P(uri_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(uri_param) != IS_STRING && Z_TYPE_P(uri_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'uri' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(uri_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(uri_param) == IS_STRING)) { zephir_get_strval(uri, uri_param); } else { ZEPHIR_INIT_VAR(uri); @@ -121088,8 +120740,8 @@ static PHP_METHOD(Phalcon_Mvc_Router_Annotations, handle) { zephir_read_property_this(&controllerSuffix, this_ptr, SL("_controllerSuffix"), PH_NOISY_CC); zephir_is_iterable(handlers, &_3, &_2, 0, 0, "phalcon/mvc/router/annotations.zep", 205); for ( - ; zephir_hash_get_current_data_ex(_3, (void**) &_4, &_2) == SUCCESS - ; zephir_hash_move_forward_ex(_3, &_2) + ; zend_hash_get_current_data_ex(_3, (void**) &_4, &_2) == SUCCESS + ; zend_hash_move_forward_ex(_3, &_2) ) { ZEPHIR_GET_HVALUE(scope, _4); if (Z_TYPE_P(scope) != IS_ARRAY) { @@ -121139,8 +120791,8 @@ static PHP_METHOD(Phalcon_Mvc_Router_Annotations, handle) { if (Z_TYPE_P(annotations) == IS_ARRAY) { zephir_is_iterable(annotations, &_9$$14, &_8$$14, 0, 0, "phalcon/mvc/router/annotations.zep", 182); for ( - ; zephir_hash_get_current_data_ex(_9$$14, (void**) &_10$$14, &_8$$14) == SUCCESS - ; zephir_hash_move_forward_ex(_9$$14, &_8$$14) + ; zend_hash_get_current_data_ex(_9$$14, (void**) &_10$$14, &_8$$14) == SUCCESS + ; zend_hash_move_forward_ex(_9$$14, &_8$$14) ) { ZEPHIR_GET_HVALUE(annotation, _10$$14); ZEPHIR_CALL_METHOD(NULL, this_ptr, "processcontrollerannotation", &_11, 0, controllerName, annotation); @@ -121155,8 +120807,8 @@ static PHP_METHOD(Phalcon_Mvc_Router_Annotations, handle) { zephir_uncamelize(lowerControllerName, controllerName, NULL ); zephir_is_iterable(methodAnnotations, &_13$$16, &_12$$16, 0, 0, "phalcon/mvc/router/annotations.zep", 199); for ( - ; zephir_hash_get_current_data_ex(_13$$16, (void**) &_14$$16, &_12$$16) == SUCCESS - ; zephir_hash_move_forward_ex(_13$$16, &_12$$16) + ; zend_hash_get_current_data_ex(_13$$16, (void**) &_14$$16, &_12$$16) == SUCCESS + ; zend_hash_move_forward_ex(_13$$16, &_12$$16) ) { ZEPHIR_GET_HMKEY(method, _13$$16, _12$$16); ZEPHIR_GET_HVALUE(collection, _14$$16); @@ -121165,8 +120817,8 @@ static PHP_METHOD(Phalcon_Mvc_Router_Annotations, handle) { zephir_check_call_status(); zephir_is_iterable(_15$$18, &_17$$18, &_16$$18, 0, 0, "phalcon/mvc/router/annotations.zep", 197); for ( - ; zephir_hash_get_current_data_ex(_17$$18, (void**) &_18$$18, &_16$$18) == SUCCESS - ; zephir_hash_move_forward_ex(_17$$18, &_16$$18) + ; zend_hash_get_current_data_ex(_17$$18, (void**) &_18$$18, &_16$$18) == SUCCESS + ; zend_hash_move_forward_ex(_17$$18, &_16$$18) ) { ZEPHIR_GET_HVALUE(annotation, _18$$18); ZEPHIR_CALL_METHOD(NULL, this_ptr, "processactionannotation", &_19, 0, moduleName, namespaceName, lowerControllerName, method, annotation); @@ -121191,11 +120843,11 @@ static PHP_METHOD(Phalcon_Mvc_Router_Annotations, processControllerAnnotation) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &handler_param, &annotation); - if (unlikely(Z_TYPE_P(handler_param) != IS_STRING && Z_TYPE_P(handler_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(handler_param) != IS_STRING && Z_TYPE_P(handler_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'handler' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(handler_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(handler_param) == IS_STRING)) { zephir_get_strval(handler, handler_param); } else { ZEPHIR_INIT_VAR(handler); @@ -121229,41 +120881,41 @@ static PHP_METHOD(Phalcon_Mvc_Router_Annotations, processActionAnnotation) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 5, 0, &module_param, &namespaceName_param, &controller_param, &action_param, &annotation); - if (unlikely(Z_TYPE_P(module_param) != IS_STRING && Z_TYPE_P(module_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(module_param) != IS_STRING && Z_TYPE_P(module_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'module' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(module_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(module_param) == IS_STRING)) { zephir_get_strval(module, module_param); } else { ZEPHIR_INIT_VAR(module); ZVAL_EMPTY_STRING(module); } - if (unlikely(Z_TYPE_P(namespaceName_param) != IS_STRING && Z_TYPE_P(namespaceName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(namespaceName_param) != IS_STRING && Z_TYPE_P(namespaceName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'namespaceName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(namespaceName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(namespaceName_param) == IS_STRING)) { zephir_get_strval(namespaceName, namespaceName_param); } else { ZEPHIR_INIT_VAR(namespaceName); ZVAL_EMPTY_STRING(namespaceName); } - if (unlikely(Z_TYPE_P(controller_param) != IS_STRING && Z_TYPE_P(controller_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(controller_param) != IS_STRING && Z_TYPE_P(controller_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'controller' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(controller_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(controller_param) == IS_STRING)) { zephir_get_strval(controller, controller_param); } else { ZEPHIR_INIT_VAR(controller); ZVAL_EMPTY_STRING(controller); } - if (unlikely(Z_TYPE_P(action_param) != IS_STRING && Z_TYPE_P(action_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(action_param) != IS_STRING && Z_TYPE_P(action_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'action' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(action_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(action_param) == IS_STRING)) { zephir_get_strval(action, action_param); } else { ZEPHIR_INIT_VAR(action); @@ -121387,8 +121039,8 @@ static PHP_METHOD(Phalcon_Mvc_Router_Annotations, processActionAnnotation) { if (Z_TYPE_P(converts) == IS_ARRAY) { zephir_is_iterable(converts, &_7$$22, &_6$$22, 0, 0, "phalcon/mvc/router/annotations.zep", 339); for ( - ; zephir_hash_get_current_data_ex(_7$$22, (void**) &_8$$22, &_6$$22) == SUCCESS - ; zephir_hash_move_forward_ex(_7$$22, &_6$$22) + ; zend_hash_get_current_data_ex(_7$$22, (void**) &_8$$22, &_6$$22) == SUCCESS + ; zend_hash_move_forward_ex(_7$$22, &_6$$22) ) { ZEPHIR_GET_HMKEY(param, _7$$22, _6$$22); ZEPHIR_GET_HVALUE(convert, _8$$22); @@ -121404,8 +121056,8 @@ static PHP_METHOD(Phalcon_Mvc_Router_Annotations, processActionAnnotation) { if (Z_TYPE_P(converts) == IS_ARRAY) { zephir_is_iterable(converts, &_11$$24, &_10$$24, 0, 0, "phalcon/mvc/router/annotations.zep", 349); for ( - ; zephir_hash_get_current_data_ex(_11$$24, (void**) &_12$$24, &_10$$24) == SUCCESS - ; zephir_hash_move_forward_ex(_11$$24, &_10$$24) + ; zend_hash_get_current_data_ex(_11$$24, (void**) &_12$$24, &_10$$24) == SUCCESS + ; zend_hash_move_forward_ex(_11$$24, &_10$$24) ) { ZEPHIR_GET_HMKEY(conversorParam, _11$$24, _10$$24); ZEPHIR_GET_HVALUE(convert, _12$$24); @@ -121449,11 +121101,11 @@ static PHP_METHOD(Phalcon_Mvc_Router_Annotations, setControllerSuffix) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &controllerSuffix_param); - if (unlikely(Z_TYPE_P(controllerSuffix_param) != IS_STRING && Z_TYPE_P(controllerSuffix_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(controllerSuffix_param) != IS_STRING && Z_TYPE_P(controllerSuffix_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'controllerSuffix' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(controllerSuffix_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(controllerSuffix_param) == IS_STRING)) { zephir_get_strval(controllerSuffix, controllerSuffix_param); } else { ZEPHIR_INIT_VAR(controllerSuffix); @@ -121474,11 +121126,11 @@ static PHP_METHOD(Phalcon_Mvc_Router_Annotations, setActionSuffix) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &actionSuffix_param); - if (unlikely(Z_TYPE_P(actionSuffix_param) != IS_STRING && Z_TYPE_P(actionSuffix_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(actionSuffix_param) != IS_STRING && Z_TYPE_P(actionSuffix_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'actionSuffix' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(actionSuffix_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(actionSuffix_param) == IS_STRING)) { zephir_get_strval(actionSuffix, actionSuffix_param); } else { ZEPHIR_INIT_VAR(actionSuffix); @@ -121715,11 +121367,11 @@ static PHP_METHOD(Phalcon_Mvc_Router_Group, add) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &pattern_param, &paths, &httpMethods); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(pattern, pattern_param); } else { ZEPHIR_INIT_VAR(pattern); @@ -121748,11 +121400,11 @@ static PHP_METHOD(Phalcon_Mvc_Router_Group, addGet) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &pattern_param, &paths); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(pattern, pattern_param); } else { ZEPHIR_INIT_VAR(pattern); @@ -121781,11 +121433,11 @@ static PHP_METHOD(Phalcon_Mvc_Router_Group, addPost) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &pattern_param, &paths); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(pattern, pattern_param); } else { ZEPHIR_INIT_VAR(pattern); @@ -121814,11 +121466,11 @@ static PHP_METHOD(Phalcon_Mvc_Router_Group, addPut) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &pattern_param, &paths); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(pattern, pattern_param); } else { ZEPHIR_INIT_VAR(pattern); @@ -121847,11 +121499,11 @@ static PHP_METHOD(Phalcon_Mvc_Router_Group, addPatch) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &pattern_param, &paths); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(pattern, pattern_param); } else { ZEPHIR_INIT_VAR(pattern); @@ -121880,11 +121532,11 @@ static PHP_METHOD(Phalcon_Mvc_Router_Group, addDelete) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &pattern_param, &paths); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(pattern, pattern_param); } else { ZEPHIR_INIT_VAR(pattern); @@ -121913,11 +121565,11 @@ static PHP_METHOD(Phalcon_Mvc_Router_Group, addOptions) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &pattern_param, &paths); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(pattern, pattern_param); } else { ZEPHIR_INIT_VAR(pattern); @@ -121946,11 +121598,11 @@ static PHP_METHOD(Phalcon_Mvc_Router_Group, addHead) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &pattern_param, &paths); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(pattern, pattern_param); } else { ZEPHIR_INIT_VAR(pattern); @@ -121993,11 +121645,11 @@ static PHP_METHOD(Phalcon_Mvc_Router_Group, _addRoute) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &pattern_param, &paths, &httpMethods); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(pattern, pattern_param); } else { ZEPHIR_INIT_VAR(pattern); @@ -122149,11 +121801,11 @@ static PHP_METHOD(Phalcon_Mvc_Router_Route, __construct) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &pattern_param, &paths, &httpMethods); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(pattern, pattern_param); } else { ZEPHIR_INIT_VAR(pattern); @@ -122193,11 +121845,11 @@ static PHP_METHOD(Phalcon_Mvc_Router_Route, compilePattern) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &pattern_param); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(pattern, pattern_param); } else { ZEPHIR_INIT_VAR(pattern); @@ -122292,11 +121944,11 @@ static PHP_METHOD(Phalcon_Mvc_Router_Route, extractNamedParams) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &pattern_param); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(pattern, pattern_param); } else { ZEPHIR_INIT_VAR(pattern); @@ -122534,11 +122186,11 @@ static PHP_METHOD(Phalcon_Mvc_Router_Route, reConfigure) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &pattern_param, &paths); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(pattern, pattern_param); } else { ZEPHIR_INIT_VAR(pattern); @@ -122774,8 +122426,8 @@ static PHP_METHOD(Phalcon_Mvc_Router_Route, getReversedPaths) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_paths"), PH_NOISY_CC); zephir_is_iterable(_0, &_2, &_1, 0, 0, "phalcon/mvc/router/route.zep", 566); for ( - ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS - ; zephir_hash_move_forward_ex(_2, &_1) + ; zend_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS + ; zend_hash_move_forward_ex(_2, &_1) ) { ZEPHIR_GET_HMKEY(path, _2, _1); ZEPHIR_GET_HVALUE(position, _3); @@ -122814,11 +122466,11 @@ static PHP_METHOD(Phalcon_Mvc_Router_Route, setHostname) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &hostname_param); - if (unlikely(Z_TYPE_P(hostname_param) != IS_STRING && Z_TYPE_P(hostname_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(hostname_param) != IS_STRING && Z_TYPE_P(hostname_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'hostname' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(hostname_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(hostname_param) == IS_STRING)) { zephir_get_strval(hostname, hostname_param); } else { ZEPHIR_INIT_VAR(hostname); @@ -122868,11 +122520,11 @@ static PHP_METHOD(Phalcon_Mvc_Router_Route, convert) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &name_param, &converter); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -123420,11 +123072,11 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine, partial) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &partialPath_param, ¶ms); - if (unlikely(Z_TYPE_P(partialPath_param) != IS_STRING && Z_TYPE_P(partialPath_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(partialPath_param) != IS_STRING && Z_TYPE_P(partialPath_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'partialPath' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(partialPath_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(partialPath_param) == IS_STRING)) { zephir_get_strval(partialPath, partialPath_param); } else { ZEPHIR_INIT_VAR(partialPath); @@ -123568,11 +123220,11 @@ static PHP_METHOD(Phalcon_Mvc_View_Simple, setViewsDir) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &viewsDir_param); - if (unlikely(Z_TYPE_P(viewsDir_param) != IS_STRING && Z_TYPE_P(viewsDir_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(viewsDir_param) != IS_STRING && Z_TYPE_P(viewsDir_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'viewsDir' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(viewsDir_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(viewsDir_param) == IS_STRING)) { zephir_get_strval(viewsDir, viewsDir_param); } else { ZEPHIR_INIT_VAR(viewsDir); @@ -123643,8 +123295,8 @@ static PHP_METHOD(Phalcon_Mvc_View_Simple, _loadTemplateEngines) { zephir_array_fast_append(arguments, dependencyInjector); zephir_is_iterable(registeredEngines, &_2$$5, &_1$$5, 0, 0, "phalcon/mvc/view/simple.zep", 191); for ( - ; zephir_hash_get_current_data_ex(_2$$5, (void**) &_3$$5, &_1$$5) == SUCCESS - ; zephir_hash_move_forward_ex(_2$$5, &_1$$5) + ; zend_hash_get_current_data_ex(_2$$5, (void**) &_3$$5, &_1$$5) == SUCCESS + ; zend_hash_move_forward_ex(_2$$5, &_1$$5) ) { ZEPHIR_GET_HMKEY(extension, _2$$5, _1$$5); ZEPHIR_GET_HVALUE(engineService, _3$$5); @@ -123697,11 +123349,11 @@ static PHP_METHOD(Phalcon_Mvc_View_Simple, _internalRender) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &path_param, ¶ms); - if (unlikely(Z_TYPE_P(path_param) != IS_STRING && Z_TYPE_P(path_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(path_param) != IS_STRING && Z_TYPE_P(path_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'path' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(path_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(path_param) == IS_STRING)) { zephir_get_strval(path, path_param); } else { ZEPHIR_INIT_VAR(path); @@ -123733,8 +123385,8 @@ static PHP_METHOD(Phalcon_Mvc_View_Simple, _internalRender) { zephir_check_call_status(); zephir_is_iterable(engines, &_4, &_3, 0, 0, "phalcon/mvc/view/simple.zep", 282); for ( - ; zephir_hash_get_current_data_ex(_4, (void**) &_5, &_3) == SUCCESS - ; zephir_hash_move_forward_ex(_4, &_3) + ; zend_hash_get_current_data_ex(_4, (void**) &_5, &_3) == SUCCESS + ; zend_hash_move_forward_ex(_4, &_3) ) { ZEPHIR_GET_HMKEY(extension, _4, _3); ZEPHIR_GET_HVALUE(engine, _5); @@ -123825,11 +123477,11 @@ static PHP_METHOD(Phalcon_Mvc_View_Simple, render) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &path_param, ¶ms); - if (unlikely(Z_TYPE_P(path_param) != IS_STRING && Z_TYPE_P(path_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(path_param) != IS_STRING && Z_TYPE_P(path_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'path' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(path_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(path_param) == IS_STRING)) { zephir_get_strval(path, path_param); } else { ZEPHIR_INIT_VAR(path); @@ -123921,11 +123573,11 @@ static PHP_METHOD(Phalcon_Mvc_View_Simple, partial) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &partialPath_param, ¶ms); - if (unlikely(Z_TYPE_P(partialPath_param) != IS_STRING && Z_TYPE_P(partialPath_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(partialPath_param) != IS_STRING && Z_TYPE_P(partialPath_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'partialPath' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(partialPath_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(partialPath_param) == IS_STRING)) { zephir_get_strval(partialPath, partialPath_param); } else { ZEPHIR_INIT_VAR(partialPath); @@ -124093,11 +123745,11 @@ static PHP_METHOD(Phalcon_Mvc_View_Simple, setParamToView) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &key_param, &value); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { ZEPHIR_INIT_VAR(key); @@ -124153,11 +123805,11 @@ static PHP_METHOD(Phalcon_Mvc_View_Simple, setVar) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &key_param, &value); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { ZEPHIR_INIT_VAR(key); @@ -124178,11 +123830,11 @@ static PHP_METHOD(Phalcon_Mvc_View_Simple, getVar) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &key_param); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { ZEPHIR_INIT_VAR(key); @@ -124214,11 +123866,11 @@ static PHP_METHOD(Phalcon_Mvc_View_Simple, setContent) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &content_param); - if (unlikely(Z_TYPE_P(content_param) != IS_STRING && Z_TYPE_P(content_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(content_param) != IS_STRING && Z_TYPE_P(content_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'content' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(content_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(content_param) == IS_STRING)) { zephir_get_strval(content, content_param); } else { ZEPHIR_INIT_VAR(content); @@ -124255,11 +123907,11 @@ static PHP_METHOD(Phalcon_Mvc_View_Simple, __set) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &key_param, &value); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { ZEPHIR_INIT_VAR(key); @@ -124280,11 +123932,11 @@ static PHP_METHOD(Phalcon_Mvc_View_Simple, __get) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &key_param); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { ZEPHIR_INIT_VAR(key); @@ -124330,11 +123982,11 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Php, render) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 1, &path_param, ¶ms, &mustClean_param); - if (unlikely(Z_TYPE_P(path_param) != IS_STRING && Z_TYPE_P(path_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(path_param) != IS_STRING && Z_TYPE_P(path_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'path' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(path_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(path_param) == IS_STRING)) { zephir_get_strval(path, path_param); } else { ZEPHIR_INIT_VAR(path); @@ -124354,8 +124006,8 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Php, render) { if (Z_TYPE_P(params) == IS_ARRAY) { zephir_is_iterable(params, &_1$$4, &_0$$4, 0, 0, "phalcon/mvc/view/engine/php.zep", 50); for ( - ; zephir_hash_get_current_data_ex(_1$$4, (void**) &_2$$4, &_0$$4) == SUCCESS - ; zephir_hash_move_forward_ex(_1$$4, &_0$$4) + ; zend_hash_get_current_data_ex(_1$$4, (void**) &_2$$4, &_0$$4) == SUCCESS + ; zend_hash_move_forward_ex(_1$$4, &_0$$4) ) { ZEPHIR_GET_HMKEY(key, _1$$4, _0$$4); ZEPHIR_GET_HVALUE(value, _2$$4); @@ -124470,11 +124122,11 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt, render) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 1, &templatePath_param, ¶ms, &mustClean_param); - if (unlikely(Z_TYPE_P(templatePath_param) != IS_STRING && Z_TYPE_P(templatePath_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(templatePath_param) != IS_STRING && Z_TYPE_P(templatePath_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'templatePath' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(templatePath_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(templatePath_param) == IS_STRING)) { zephir_get_strval(templatePath, templatePath_param); } else { ZEPHIR_INIT_VAR(templatePath); @@ -124500,8 +124152,8 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt, render) { if (Z_TYPE_P(params) == IS_ARRAY) { zephir_is_iterable(params, &_1$$4, &_0$$4, 0, 0, "phalcon/mvc/view/engine/volt.zep", 116); for ( - ; zephir_hash_get_current_data_ex(_1$$4, (void**) &_2$$4, &_0$$4) == SUCCESS - ; zephir_hash_move_forward_ex(_1$$4, &_0$$4) + ; zend_hash_get_current_data_ex(_1$$4, (void**) &_2$$4, &_0$$4) == SUCCESS + ; zend_hash_move_forward_ex(_1$$4, &_0$$4) ) { ZEPHIR_GET_HMKEY(key, _1$$4, _0$$4); ZEPHIR_GET_HVALUE(value, _2$$4); @@ -124591,21 +124243,21 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt, convertEncoding) { zephir_fetch_params(1, 3, 0, &text_param, &from_param, &to_param); zephir_get_strval(text, text_param); - if (unlikely(Z_TYPE_P(from_param) != IS_STRING && Z_TYPE_P(from_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(from_param) != IS_STRING && Z_TYPE_P(from_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'from' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(from_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(from_param) == IS_STRING)) { zephir_get_strval(from, from_param); } else { ZEPHIR_INIT_VAR(from); ZVAL_EMPTY_STRING(from); } - if (unlikely(Z_TYPE_P(to_param) != IS_STRING && Z_TYPE_P(to_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(to_param) != IS_STRING && Z_TYPE_P(to_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'to' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(to_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(to_param) == IS_STRING)) { zephir_get_strval(to, to_param); } else { ZEPHIR_INIT_VAR(to); @@ -124769,11 +124421,11 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt, callMacro) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &name_param, &arguments_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -124928,11 +124580,11 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, setOption) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &option_param, &value); - if (unlikely(Z_TYPE_P(option_param) != IS_STRING && Z_TYPE_P(option_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(option_param) != IS_STRING && Z_TYPE_P(option_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'option' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(option_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(option_param) == IS_STRING)) { zephir_get_strval(option, option_param); } else { ZEPHIR_INIT_VAR(option); @@ -124953,11 +124605,11 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, getOption) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &option_param); - if (unlikely(Z_TYPE_P(option_param) != IS_STRING && Z_TYPE_P(option_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(option_param) != IS_STRING && Z_TYPE_P(option_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'option' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(option_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(option_param) == IS_STRING)) { zephir_get_strval(option, option_param); } else { ZEPHIR_INIT_VAR(option); @@ -124993,11 +124645,11 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, fireExtensionEvent) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &name_param, &arguments); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -125013,8 +124665,8 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, fireExtensionEvent) { if (Z_TYPE_P(extensions) == IS_ARRAY) { zephir_is_iterable(extensions, &_1$$3, &_0$$3, 0, 0, "phalcon/mvc/view/engine/volt/compiler.zep", 189); for ( - ; zephir_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_1$$3, &_0$$3) + ; zend_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS + ; zend_hash_move_forward_ex(_1$$3, &_0$$3) ) { ZEPHIR_GET_HVALUE(extension, _2$$3); if ((zephir_method_exists(extension, name TSRMLS_CC) == SUCCESS)) { @@ -125084,11 +124736,11 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, addFunction) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &name_param, &definition); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -125117,11 +124769,11 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, addFilter) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &name_param, &definition); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -125150,11 +124802,11 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, setUniquePrefix) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &prefix_param); - if (unlikely(Z_TYPE_P(prefix_param) != IS_STRING && Z_TYPE_P(prefix_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(prefix_param) != IS_STRING && Z_TYPE_P(prefix_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'prefix' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(prefix_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(prefix_param) == IS_STRING)) { zephir_get_strval(prefix, prefix_param); } else { ZEPHIR_INIT_VAR(prefix); @@ -125870,8 +125522,8 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, expression) { array_init(items); zephir_is_iterable(expr, &_4$$6, &_3$$6, 0, 0, "phalcon/mvc/view/engine/volt/compiler.zep", 993); for ( - ; zephir_hash_get_current_data_ex(_4$$6, (void**) &_5$$6, &_3$$6) == SUCCESS - ; zephir_hash_move_forward_ex(_4$$6, &_3$$6) + ; zend_hash_get_current_data_ex(_4$$6, (void**) &_5$$6, &_3$$6) == SUCCESS + ; zend_hash_move_forward_ex(_4$$6, &_3$$6) ) { ZEPHIR_GET_HVALUE(singleExpr, _5$$6); zephir_array_fetch_string(&_6$$7, singleExpr, SL("expr"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 986 TSRMLS_CC); @@ -126252,8 +125904,8 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, _statementListOrExtends if (!(zephir_array_isset_string(statements, SS("type")))) { zephir_is_iterable(statements, &_1$$4, &_0$$4, 0, 0, "phalcon/mvc/view/engine/volt/compiler.zep", 1310); for ( - ; zephir_hash_get_current_data_ex(_1$$4, (void**) &_2$$4, &_0$$4) == SUCCESS - ; zephir_hash_move_forward_ex(_1$$4, &_0$$4) + ; zend_hash_get_current_data_ex(_1$$4, (void**) &_2$$4, &_0$$4) == SUCCESS + ; zend_hash_move_forward_ex(_1$$4, &_0$$4) ) { ZEPHIR_GET_HVALUE(statement, _2$$4); if (Z_TYPE_P(statement) != IS_ARRAY) { @@ -126319,8 +125971,8 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileForeach) { if (Z_TYPE_P(blockStatements) == IS_ARRAY) { zephir_is_iterable(blockStatements, &_2$$4, &_1$$4, 0, 0, "phalcon/mvc/view/engine/volt/compiler.zep", 1388); for ( - ; zephir_hash_get_current_data_ex(_2$$4, (void**) &_3$$4, &_1$$4) == SUCCESS - ; zephir_hash_move_forward_ex(_2$$4, &_1$$4) + ; zend_hash_get_current_data_ex(_2$$4, (void**) &_3$$4, &_1$$4) == SUCCESS + ; zend_hash_move_forward_ex(_2$$4, &_1$$4) ) { ZEPHIR_GET_HVALUE(bstatement, _3$$4); if (Z_TYPE_P(bstatement) != IS_ARRAY) { @@ -126665,8 +126317,8 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileSet) { ZVAL_STRING(compilation, "> 1))); @@ -142038,7 +141690,6 @@ static PHP_METHOD(Phalcon_Session_Adapter, get) { static PHP_METHOD(Phalcon_Session_Adapter, set) { - int _2, _1$$3; zval *index_param = NULL, *value, *_SESSION, *uniqueId = NULL, *_0$$3; zval *index = NULL; @@ -142053,18 +141704,10 @@ static PHP_METHOD(Phalcon_Session_Adapter, set) { if (!(ZEPHIR_IS_EMPTY(uniqueId))) { ZEPHIR_INIT_VAR(_0$$3); ZEPHIR_CONCAT_VSV(_0$$3, uniqueId, "#", index); - _1$$3 = zephir_maybe_separate_zval(&_SESSION); - zephir_array_update_zval(&_SESSION, _0$$3, &value, PH_COPY | PH_SEPARATE); - if (_1$$3) { - ZEND_SET_SYMBOL(&EG(symbol_table), "_SESSION", _SESSION); - } + zephir_array_update_zval(&_SESSION, _0$$3, &value, PH_COPY); RETURN_MM_NULL(); } - _2 = zephir_maybe_separate_zval(&_SESSION); - zephir_array_update_zval(&_SESSION, index, &value, PH_COPY | PH_SEPARATE); - if (_2) { - ZEND_SET_SYMBOL(&EG(symbol_table), "_SESSION", _SESSION); - } + zephir_array_update_zval(&_SESSION, index, &value, PH_COPY); ZEPHIR_MM_RESTORE(); } @@ -142179,8 +141822,8 @@ static PHP_METHOD(Phalcon_Session_Adapter, destroy) { ZEPHIR_INIT_VAR(_0$$4); zephir_is_iterable(_SESSION, &_2$$4, &_1$$4, 1, 0, "phalcon/session/adapter.zep", 275); for ( - ; zephir_hash_get_current_data_ex(_2$$4, (void**) &_3$$4, &_1$$4) == SUCCESS - ; zephir_hash_move_forward_ex(_2$$4, &_1$$4) + ; zend_hash_get_current_data_ex(_2$$4, (void**) &_3$$4, &_1$$4) == SUCCESS + ; zend_hash_move_forward_ex(_2$$4, &_1$$4) ) { ZEPHIR_GET_HMKEY(key, _2$$4, _1$$4); ZEPHIR_GET_HVALUE(_0$$4, _3$$4); @@ -142408,11 +142051,11 @@ static PHP_METHOD(Phalcon_Session_Bag, __construct) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -142522,11 +142165,11 @@ static PHP_METHOD(Phalcon_Session_Bag, set) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &property_param, &value); - if (unlikely(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'property' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(property_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(property_param) == IS_STRING)) { zephir_get_strval(property, property_param); } else { ZEPHIR_INIT_VAR(property); @@ -142558,11 +142201,11 @@ static PHP_METHOD(Phalcon_Session_Bag, __set) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &property_param, &value); - if (unlikely(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'property' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(property_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(property_param) == IS_STRING)) { zephir_get_strval(property, property_param); } else { ZEPHIR_INIT_VAR(property); @@ -142585,11 +142228,11 @@ static PHP_METHOD(Phalcon_Session_Bag, get) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &property_param, &defaultValue); - if (unlikely(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'property' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(property_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(property_param) == IS_STRING)) { zephir_get_strval(property, property_param); } else { ZEPHIR_INIT_VAR(property); @@ -142623,11 +142266,11 @@ static PHP_METHOD(Phalcon_Session_Bag, __get) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &property_param); - if (unlikely(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'property' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(property_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(property_param) == IS_STRING)) { zephir_get_strval(property, property_param); } else { ZEPHIR_INIT_VAR(property); @@ -142650,11 +142293,11 @@ static PHP_METHOD(Phalcon_Session_Bag, has) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &property_param); - if (unlikely(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'property' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(property_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(property_param) == IS_STRING)) { zephir_get_strval(property, property_param); } else { ZEPHIR_INIT_VAR(property); @@ -142681,11 +142324,11 @@ static PHP_METHOD(Phalcon_Session_Bag, __isset) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &property_param); - if (unlikely(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'property' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(property_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(property_param) == IS_STRING)) { zephir_get_strval(property, property_param); } else { ZEPHIR_INIT_VAR(property); @@ -142708,11 +142351,11 @@ static PHP_METHOD(Phalcon_Session_Bag, remove) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &property_param); - if (unlikely(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'property' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(property_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(property_param) == IS_STRING)) { zephir_get_strval(property, property_param); } else { ZEPHIR_INIT_VAR(property); @@ -142749,11 +142392,11 @@ static PHP_METHOD(Phalcon_Session_Bag, __unset) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &property_param); - if (unlikely(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'property' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(property_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(property_param) == IS_STRING)) { zephir_get_strval(property, property_param); } else { ZEPHIR_INIT_VAR(property); @@ -142813,11 +142456,11 @@ static PHP_METHOD(Phalcon_Session_Bag, offsetSet) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &property_param, &value); - if (unlikely(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'property' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(property_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(property_param) == IS_STRING)) { zephir_get_strval(property, property_param); } else { ZEPHIR_INIT_VAR(property); @@ -142840,11 +142483,11 @@ static PHP_METHOD(Phalcon_Session_Bag, offsetExists) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &property_param); - if (unlikely(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'property' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(property_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(property_param) == IS_STRING)) { zephir_get_strval(property, property_param); } else { ZEPHIR_INIT_VAR(property); @@ -142867,11 +142510,11 @@ static PHP_METHOD(Phalcon_Session_Bag, offsetUnset) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &property_param); - if (unlikely(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'property' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(property_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(property_param) == IS_STRING)) { zephir_get_strval(property, property_param); } else { ZEPHIR_INIT_VAR(property); @@ -142894,11 +142537,11 @@ static PHP_METHOD(Phalcon_Session_Bag, offsetGet) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &property_param); - if (unlikely(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'property' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(property_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(property_param) == IS_STRING)) { zephir_get_strval(property, property_param); } else { ZEPHIR_INIT_VAR(property); @@ -143220,8 +142863,8 @@ static PHP_METHOD(Phalcon_Session_Adapter_Libmemcached, destroy) { ZEPHIR_INIT_VAR(_0); zephir_is_iterable(_SESSION, &_2, &_1, 1, 0, "phalcon/session/adapter/libmemcached.zep", 168); for ( - ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS - ; zephir_hash_move_forward_ex(_2, &_1) + ; zend_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS + ; zend_hash_move_forward_ex(_2, &_1) ) { ZEPHIR_GET_HMKEY(key, _2, _1); ZEPHIR_GET_HVALUE(_0, _3); @@ -144021,8 +143664,8 @@ static PHP_METHOD(Phalcon_Tag_Select, _optionsFromArray) { ZVAL_STRING(code, "", 1); zephir_is_iterable(data, &_1, &_0, 0, 0, "phalcon/tag/select.zep", 274); for ( - ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS - ; zephir_hash_move_forward_ex(_1, &_0) + ; zend_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS + ; zend_hash_move_forward_ex(_1, &_0) ) { ZEPHIR_GET_HMKEY(optionValue, _1, _0); ZEPHIR_GET_HVALUE(optionText, _2); @@ -144140,11 +143783,11 @@ static PHP_METHOD(Phalcon_Translate_Adapter, t) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &translateKey_param, &placeholders); - if (unlikely(Z_TYPE_P(translateKey_param) != IS_STRING && Z_TYPE_P(translateKey_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(translateKey_param) != IS_STRING && Z_TYPE_P(translateKey_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'translateKey' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(translateKey_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(translateKey_param) == IS_STRING)) { zephir_get_strval(translateKey, translateKey_param); } else { ZEPHIR_INIT_VAR(translateKey); @@ -144170,11 +143813,11 @@ static PHP_METHOD(Phalcon_Translate_Adapter, _) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &translateKey_param, &placeholders); - if (unlikely(Z_TYPE_P(translateKey_param) != IS_STRING && Z_TYPE_P(translateKey_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(translateKey_param) != IS_STRING && Z_TYPE_P(translateKey_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'translateKey' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(translateKey_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(translateKey_param) == IS_STRING)) { zephir_get_strval(translateKey, translateKey_param); } else { ZEPHIR_INIT_VAR(translateKey); @@ -144213,11 +143856,11 @@ static PHP_METHOD(Phalcon_Translate_Adapter, offsetExists) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &translateKey_param); - if (unlikely(Z_TYPE_P(translateKey_param) != IS_STRING && Z_TYPE_P(translateKey_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(translateKey_param) != IS_STRING && Z_TYPE_P(translateKey_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'translateKey' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(translateKey_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(translateKey_param) == IS_STRING)) { zephir_get_strval(translateKey, translateKey_param); } else { ZEPHIR_INIT_VAR(translateKey); @@ -144253,11 +143896,11 @@ static PHP_METHOD(Phalcon_Translate_Adapter, offsetGet) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &translateKey_param); - if (unlikely(Z_TYPE_P(translateKey_param) != IS_STRING && Z_TYPE_P(translateKey_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(translateKey_param) != IS_STRING && Z_TYPE_P(translateKey_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'translateKey' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(translateKey_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(translateKey_param) == IS_STRING)) { zephir_get_strval(translateKey, translateKey_param); } else { ZEPHIR_INIT_VAR(translateKey); @@ -144282,11 +143925,11 @@ static PHP_METHOD(Phalcon_Translate_Adapter, replacePlaceholders) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &translation_param, &placeholders); - if (unlikely(Z_TYPE_P(translation_param) != IS_STRING && Z_TYPE_P(translation_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(translation_param) != IS_STRING && Z_TYPE_P(translation_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'translation' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(translation_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(translation_param) == IS_STRING)) { zephir_get_strval(translation, translation_param); } else { ZEPHIR_INIT_VAR(translation); @@ -144402,7 +144045,7 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Csv, __construct) { options = options_param; - ZEPHIR_CALL_PARENT(NULL, phalcon_translate_adapter_csv_ce, this_ptr, "__construct", &_0, 453, options); + ZEPHIR_CALL_PARENT(NULL, phalcon_translate_adapter_csv_ce, this_ptr, "__construct", &_0, 452, options); zephir_check_call_status(); if (!(zephir_array_isset_string(options, SS("content")))) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_translate_exception_ce, "Parameter 'content' is required", "phalcon/translate/adapter/csv.zep", 42); @@ -144415,7 +144058,7 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Csv, __construct) { ZVAL_STRING(_3, ";", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_VAR(_4); ZVAL_STRING(_4, "\"", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, this_ptr, "_load", NULL, 454, _1, _2, _3, _4); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "_load", NULL, 453, _1, _2, _3, _4); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -144451,7 +144094,7 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Csv, _load) { return; } while (1) { - ZEPHIR_CALL_FUNCTION(&data, "fgetcsv", &_3, 455, fileHandler, length, delimiter, enclosure); + ZEPHIR_CALL_FUNCTION(&data, "fgetcsv", &_3, 454, fileHandler, length, delimiter, enclosure); zephir_check_call_status(); if (ZEPHIR_IS_FALSE_IDENTICAL(data)) { break; @@ -144489,11 +144132,11 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Csv, query) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &index_param, &placeholders); - if (unlikely(Z_TYPE_P(index_param) != IS_STRING && Z_TYPE_P(index_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(index_param) != IS_STRING && Z_TYPE_P(index_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'index' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(index_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(index_param) == IS_STRING)) { zephir_get_strval(index, index_param); } else { ZEPHIR_INIT_VAR(index); @@ -144523,11 +144166,11 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Csv, exists) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &index_param); - if (unlikely(Z_TYPE_P(index_param) != IS_STRING && Z_TYPE_P(index_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(index_param) != IS_STRING && Z_TYPE_P(index_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'index' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(index_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(index_param) == IS_STRING)) { zephir_get_strval(index, index_param); } else { ZEPHIR_INIT_VAR(index); @@ -144637,7 +144280,7 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, __construct) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_translate_exception_ce, "This class requires the gettext extension for PHP", "phalcon/translate/adapter/gettext.zep", 72); return; } - ZEPHIR_CALL_PARENT(NULL, phalcon_translate_adapter_gettext_ce, this_ptr, "__construct", &_0, 453, options); + ZEPHIR_CALL_PARENT(NULL, phalcon_translate_adapter_gettext_ce, this_ptr, "__construct", &_0, 452, options); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, this_ptr, "prepareoptions", NULL, 0, options); zephir_check_call_status(); @@ -144654,11 +144297,11 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, query) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &index_param, &placeholders); - if (unlikely(Z_TYPE_P(index_param) != IS_STRING && Z_TYPE_P(index_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(index_param) != IS_STRING && Z_TYPE_P(index_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'index' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(index_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(index_param) == IS_STRING)) { zephir_get_strval(index, index_param); } else { ZEPHIR_INIT_VAR(index); @@ -144669,7 +144312,7 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, query) { } - ZEPHIR_CALL_FUNCTION(&translation, "gettext", NULL, 456, index); + ZEPHIR_CALL_FUNCTION(&translation, "gettext", NULL, 455, index); zephir_check_call_status(); ZEPHIR_RETURN_CALL_METHOD(this_ptr, "replaceplaceholders", NULL, 0, translation, placeholders); zephir_check_call_status(); @@ -144686,11 +144329,11 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, exists) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &index_param); - if (unlikely(Z_TYPE_P(index_param) != IS_STRING && Z_TYPE_P(index_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(index_param) != IS_STRING && Z_TYPE_P(index_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'index' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(index_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(index_param) == IS_STRING)) { zephir_get_strval(index, index_param); } else { ZEPHIR_INIT_VAR(index); @@ -144713,27 +144356,27 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, nquery) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 2, &msgid1_param, &msgid2_param, &count_param, &placeholders, &domain_param); - if (unlikely(Z_TYPE_P(msgid1_param) != IS_STRING && Z_TYPE_P(msgid1_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(msgid1_param) != IS_STRING && Z_TYPE_P(msgid1_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'msgid1' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(msgid1_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(msgid1_param) == IS_STRING)) { zephir_get_strval(msgid1, msgid1_param); } else { ZEPHIR_INIT_VAR(msgid1); ZVAL_EMPTY_STRING(msgid1); } - if (unlikely(Z_TYPE_P(msgid2_param) != IS_STRING && Z_TYPE_P(msgid2_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(msgid2_param) != IS_STRING && Z_TYPE_P(msgid2_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'msgid2' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(msgid2_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(msgid2_param) == IS_STRING)) { zephir_get_strval(msgid2, msgid2_param); } else { ZEPHIR_INIT_VAR(msgid2); ZVAL_EMPTY_STRING(msgid2); } - if (unlikely(Z_TYPE_P(count_param) != IS_LONG)) { + if (UNEXPECTED(Z_TYPE_P(count_param) != IS_LONG)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'count' must be a int") TSRMLS_CC); RETURN_MM_NULL(); } @@ -144745,11 +144388,11 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, nquery) { ZEPHIR_INIT_VAR(domain); ZVAL_EMPTY_STRING(domain); } else { - if (unlikely(Z_TYPE_P(domain_param) != IS_STRING && Z_TYPE_P(domain_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(domain_param) != IS_STRING && Z_TYPE_P(domain_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'domain' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(domain_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(domain_param) == IS_STRING)) { zephir_get_strval(domain, domain_param); } else { ZEPHIR_INIT_VAR(domain); @@ -144761,12 +144404,12 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, nquery) { if (!(!(!domain) && Z_STRLEN_P(domain))) { ZEPHIR_SINIT_VAR(_0$$3); ZVAL_LONG(&_0$$3, count); - ZEPHIR_CALL_FUNCTION(&translation, "ngettext", NULL, 457, msgid1, msgid2, &_0$$3); + ZEPHIR_CALL_FUNCTION(&translation, "ngettext", NULL, 456, msgid1, msgid2, &_0$$3); zephir_check_call_status(); } else { ZEPHIR_SINIT_VAR(_1$$4); ZVAL_LONG(&_1$$4, count); - ZEPHIR_CALL_FUNCTION(&translation, "dngettext", NULL, 458, domain, msgid1, msgid2, &_1$$4); + ZEPHIR_CALL_FUNCTION(&translation, "dngettext", NULL, 457, domain, msgid1, msgid2, &_1$$4); zephir_check_call_status(); } ZEPHIR_RETURN_CALL_METHOD(this_ptr, "replaceplaceholders", NULL, 0, translation, placeholders); @@ -144785,7 +144428,7 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, setDomain) { - ZEPHIR_RETURN_CALL_FUNCTION("textdomain", NULL, 459, domain); + ZEPHIR_RETURN_CALL_FUNCTION("textdomain", NULL, 458, domain); zephir_check_call_status(); RETURN_MM(); @@ -144800,7 +144443,7 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, resetDomain) { ZEPHIR_CALL_METHOD(&_0, this_ptr, "getdefaultdomain", NULL, 0); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_FUNCTION("textdomain", NULL, 459, _0); + ZEPHIR_RETURN_CALL_FUNCTION("textdomain", NULL, 458, _0); zephir_check_call_status(); RETURN_MM(); @@ -144814,11 +144457,11 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, setDefaultDomain) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &domain_param); - if (unlikely(Z_TYPE_P(domain_param) != IS_STRING && Z_TYPE_P(domain_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(domain_param) != IS_STRING && Z_TYPE_P(domain_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'domain' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(domain_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(domain_param) == IS_STRING)) { zephir_get_strval(domain, domain_param); } else { ZEPHIR_INIT_VAR(domain); @@ -144851,18 +144494,18 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, setDirectory) { if (Z_TYPE_P(directory) == IS_ARRAY) { zephir_is_iterable(directory, &_1$$4, &_0$$4, 0, 0, "phalcon/translate/adapter/gettext.zep", 180); for ( - ; zephir_hash_get_current_data_ex(_1$$4, (void**) &_2$$4, &_0$$4) == SUCCESS - ; zephir_hash_move_forward_ex(_1$$4, &_0$$4) + ; zend_hash_get_current_data_ex(_1$$4, (void**) &_2$$4, &_0$$4) == SUCCESS + ; zend_hash_move_forward_ex(_1$$4, &_0$$4) ) { ZEPHIR_GET_HMKEY(key, _1$$4, _0$$4); ZEPHIR_GET_HVALUE(value, _2$$4); - ZEPHIR_CALL_FUNCTION(NULL, "bindtextdomain", &_3, 460, key, value); + ZEPHIR_CALL_FUNCTION(NULL, "bindtextdomain", &_3, 459, key, value); zephir_check_call_status(); } } else { ZEPHIR_CALL_METHOD(&_4$$6, this_ptr, "getdefaultdomain", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(NULL, "bindtextdomain", &_3, 460, _4$$6, directory); + ZEPHIR_CALL_FUNCTION(NULL, "bindtextdomain", &_3, 459, _4$$6, directory); zephir_check_call_status(); } ZEPHIR_MM_RESTORE(); @@ -144879,16 +144522,16 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, setLocale) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &category_param, &locale_param); - if (unlikely(Z_TYPE_P(category_param) != IS_LONG)) { + if (UNEXPECTED(Z_TYPE_P(category_param) != IS_LONG)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'category' must be a int") TSRMLS_CC); RETURN_MM_NULL(); } category = Z_LVAL_P(category_param); - if (unlikely(Z_TYPE_P(locale_param) != IS_STRING && Z_TYPE_P(locale_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(locale_param) != IS_STRING && Z_TYPE_P(locale_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'locale' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(locale_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(locale_param) == IS_STRING)) { zephir_get_strval(locale, locale_param); } else { ZEPHIR_INIT_VAR(locale); @@ -144898,8 +144541,7 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, setLocale) { ZEPHIR_INIT_VAR(_0); ZEPHIR_INIT_VAR(_1); - array_init(_1); - zend_copy_parameters_array(ZEND_NUM_ARGS(), _1 TSRMLS_CC); + zephir_get_args(_1 TSRMLS_CC); ZEPHIR_SINIT_VAR(_2); ZVAL_STRING(&_2, "setlocale", 0); ZEPHIR_CALL_USER_FUNC_ARRAY(_0, &_2, _1); @@ -144911,17 +144553,17 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, setLocale) { _3 = zephir_fetch_nproperty_this(this_ptr, SL("_locale"), PH_NOISY_CC); ZEPHIR_INIT_VAR(_4); ZEPHIR_CONCAT_SV(_4, "LC_ALL=", _3); - ZEPHIR_CALL_FUNCTION(NULL, "putenv", &_5, 461, _4); + ZEPHIR_CALL_FUNCTION(NULL, "putenv", &_5, 460, _4); zephir_check_call_status(); _6 = zephir_fetch_nproperty_this(this_ptr, SL("_locale"), PH_NOISY_CC); ZEPHIR_INIT_VAR(_7); ZEPHIR_CONCAT_SV(_7, "LANG=", _6); - ZEPHIR_CALL_FUNCTION(NULL, "putenv", &_5, 461, _7); + ZEPHIR_CALL_FUNCTION(NULL, "putenv", &_5, 460, _7); zephir_check_call_status(); _8 = zephir_fetch_nproperty_this(this_ptr, SL("_locale"), PH_NOISY_CC); ZEPHIR_INIT_VAR(_9); ZEPHIR_CONCAT_SV(_9, "LANGUAGE=", _8); - ZEPHIR_CALL_FUNCTION(NULL, "putenv", &_5, 461, _9); + ZEPHIR_CALL_FUNCTION(NULL, "putenv", &_5, 460, _9); zephir_check_call_status(); _10 = zephir_fetch_nproperty_this(this_ptr, SL("_locale"), PH_NOISY_CC); ZEPHIR_SINIT_VAR(_11); @@ -145019,7 +144661,7 @@ static PHP_METHOD(Phalcon_Translate_Adapter_NativeArray, __construct) { options = options_param; - ZEPHIR_CALL_PARENT(NULL, phalcon_translate_adapter_nativearray_ce, this_ptr, "__construct", &_0, 453, options); + ZEPHIR_CALL_PARENT(NULL, phalcon_translate_adapter_nativearray_ce, this_ptr, "__construct", &_0, 452, options); zephir_check_call_status(); ZEPHIR_OBS_VAR(data); if (!(zephir_array_isset_string_fetch(&data, options, SS("content"), 0 TSRMLS_CC))) { @@ -145044,11 +144686,11 @@ static PHP_METHOD(Phalcon_Translate_Adapter_NativeArray, query) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &index_param, &placeholders); - if (unlikely(Z_TYPE_P(index_param) != IS_STRING && Z_TYPE_P(index_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(index_param) != IS_STRING && Z_TYPE_P(index_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'index' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(index_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(index_param) == IS_STRING)) { zephir_get_strval(index, index_param); } else { ZEPHIR_INIT_VAR(index); @@ -145078,11 +144720,11 @@ static PHP_METHOD(Phalcon_Translate_Adapter_NativeArray, exists) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &index_param); - if (unlikely(Z_TYPE_P(index_param) != IS_STRING && Z_TYPE_P(index_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(index_param) != IS_STRING && Z_TYPE_P(index_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'index' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(index_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(index_param) == IS_STRING)) { zephir_get_strval(index, index_param); } else { ZEPHIR_INIT_VAR(index); @@ -145125,11 +144767,11 @@ static PHP_METHOD(Phalcon_Translate_Interpolator_AssociativeArray, replacePlaceh ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &translation_param, &placeholders); - if (unlikely(Z_TYPE_P(translation_param) != IS_STRING && Z_TYPE_P(translation_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(translation_param) != IS_STRING && Z_TYPE_P(translation_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'translation' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(translation_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(translation_param) == IS_STRING)) { zephir_get_strval(translation, translation_param); } else { ZEPHIR_INIT_VAR(translation); @@ -145147,8 +144789,8 @@ static PHP_METHOD(Phalcon_Translate_Interpolator_AssociativeArray, replacePlaceh if (_0) { zephir_is_iterable(placeholders, &_2$$3, &_1$$3, 0, 0, "phalcon/translate/interpolator/associativearray.zep", 38); for ( - ; zephir_hash_get_current_data_ex(_2$$3, (void**) &_3$$3, &_1$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_2$$3, &_1$$3) + ; zend_hash_get_current_data_ex(_2$$3, (void**) &_3$$3, &_1$$3) == SUCCESS + ; zend_hash_move_forward_ex(_2$$3, &_1$$3) ) { ZEPHIR_GET_HMKEY(key, _2$$3, _1$$3); ZEPHIR_GET_HVALUE(value, _3$$3); @@ -145192,11 +144834,11 @@ static PHP_METHOD(Phalcon_Translate_Interpolator_IndexedArray, replacePlaceholde ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &translation_param, &placeholders); - if (unlikely(Z_TYPE_P(translation_param) != IS_STRING && Z_TYPE_P(translation_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(translation_param) != IS_STRING && Z_TYPE_P(translation_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'translation' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(translation_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(translation_param) == IS_STRING)) { zephir_get_strval(translation, translation_param); } else { ZEPHIR_INIT_VAR(translation); @@ -145298,11 +144940,11 @@ static PHP_METHOD(Phalcon_Validation_Message, __construct) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 3, &message_param, &field, &type_param, &code_param); - if (unlikely(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'message' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(message_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(message_param) == IS_STRING)) { zephir_get_strval(message, message_param); } else { ZEPHIR_INIT_VAR(message); @@ -145342,11 +144984,11 @@ static PHP_METHOD(Phalcon_Validation_Message, setType) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &type_param); - if (unlikely(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'type' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(type_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(type_param) == IS_STRING)) { zephir_get_strval(type, type_param); } else { ZEPHIR_INIT_VAR(type); @@ -145375,11 +145017,11 @@ static PHP_METHOD(Phalcon_Validation_Message, setMessage) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &message_param); - if (unlikely(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'message' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(message_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(message_param) == IS_STRING)) { zephir_get_strval(message, message_param); } else { ZEPHIR_INIT_VAR(message); @@ -145470,7 +145112,7 @@ static PHP_METHOD(Phalcon_Validation_Message, __set_state) { zephir_array_fetch_string(&_0, message, SL("_message"), PH_NOISY | PH_READONLY, "phalcon/validation/message.zep", 134 TSRMLS_CC); zephir_array_fetch_string(&_1, message, SL("_field"), PH_NOISY | PH_READONLY, "phalcon/validation/message.zep", 134 TSRMLS_CC); zephir_array_fetch_string(&_2, message, SL("_type"), PH_NOISY | PH_READONLY, "phalcon/validation/message.zep", 134 TSRMLS_CC); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 465, _0, _1, _2); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 464, _0, _1, _2); zephir_check_call_status(); RETURN_MM(); @@ -145560,11 +145202,11 @@ static PHP_METHOD(Phalcon_Validation_Validator, isSetOption) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &key_param); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { ZEPHIR_INIT_VAR(key); @@ -145585,11 +145227,11 @@ static PHP_METHOD(Phalcon_Validation_Validator, hasOption) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &key_param); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { ZEPHIR_INIT_VAR(key); @@ -145611,11 +145253,11 @@ static PHP_METHOD(Phalcon_Validation_Validator, getOption) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &key_param, &defaultValue); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { ZEPHIR_INIT_VAR(key); @@ -145654,11 +145296,11 @@ static PHP_METHOD(Phalcon_Validation_Validator, setOption) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &key_param, &value); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { ZEPHIR_INIT_VAR(key); @@ -145750,7 +145392,7 @@ static PHP_METHOD(Phalcon_Validation_Message_Group, offsetGet) { zephir_fetch_params(0, 1, 0, &index_param); - if (unlikely(Z_TYPE_P(index_param) != IS_LONG)) { + if (UNEXPECTED(Z_TYPE_P(index_param) != IS_LONG)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'index' must be a int") TSRMLS_CC); RETURN_NULL(); } @@ -145773,7 +145415,7 @@ static PHP_METHOD(Phalcon_Validation_Message_Group, offsetSet) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &index_param, &message); - if (unlikely(Z_TYPE_P(index_param) != IS_LONG)) { + if (UNEXPECTED(Z_TYPE_P(index_param) != IS_LONG)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'index' must be a int") TSRMLS_CC); RETURN_MM_NULL(); } @@ -145823,7 +145465,7 @@ static PHP_METHOD(Phalcon_Validation_Message_Group, offsetUnset) { ZEPHIR_INIT_VAR(_2$$3); ZVAL_LONG(_2$$3, 1); ZEPHIR_MAKE_REF(_1$$3); - ZEPHIR_CALL_FUNCTION(NULL, "array_splice", NULL, 466, _1$$3, index, _2$$3); + ZEPHIR_CALL_FUNCTION(NULL, "array_splice", NULL, 465, _1$$3, index, _2$$3); ZEPHIR_UNREF(_1$$3); zephir_check_call_status(); } @@ -145905,11 +145547,11 @@ static PHP_METHOD(Phalcon_Validation_Message_Group, filter) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &fieldName_param); - if (unlikely(Z_TYPE_P(fieldName_param) != IS_STRING && Z_TYPE_P(fieldName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(fieldName_param) != IS_STRING && Z_TYPE_P(fieldName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'fieldName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(fieldName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(fieldName_param) == IS_STRING)) { zephir_get_strval(fieldName, fieldName_param); } else { ZEPHIR_INIT_VAR(fieldName); @@ -145924,8 +145566,8 @@ static PHP_METHOD(Phalcon_Validation_Message_Group, filter) { if (Z_TYPE_P(messages) == IS_ARRAY) { zephir_is_iterable(messages, &_1$$3, &_0$$3, 0, 0, "phalcon/validation/message/group.zep", 210); for ( - ; zephir_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_1$$3, &_0$$3) + ; zend_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS + ; zend_hash_move_forward_ex(_1$$3, &_0$$3) ) { ZEPHIR_GET_HVALUE(message, _2$$3); if ((zephir_method_exists_ex(message, SS("getfield") TSRMLS_CC) == SUCCESS)) { @@ -146069,11 +145711,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_Alnum, validate) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &validation, &field_param); - if (unlikely(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'field' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(field_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(field_param) == IS_STRING)) { zephir_get_strval(field, field_param); } else { ZEPHIR_INIT_VAR(field); @@ -146083,7 +145725,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Alnum, validate) { ZEPHIR_CALL_METHOD(&value, validation, "getvalue", NULL, 0, field); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_0, "ctype_alnum", NULL, 467, value); + ZEPHIR_CALL_FUNCTION(&_0, "ctype_alnum", NULL, 466, value); zephir_check_call_status(); if (!(zephir_is_true(_0))) { ZEPHIR_INIT_VAR(_1$$3); @@ -146133,7 +145775,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Alnum, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_7$$3); ZVAL_STRING(_7$$3, "Alnum", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _1$$3, "__construct", NULL, 465, _6$$3, field, _7$$3, code); + ZEPHIR_CALL_METHOD(NULL, _1$$3, "__construct", NULL, 464, _6$$3, field, _7$$3, code); zephir_check_temp_parameter(_7$$3); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _1$$3); @@ -146171,11 +145813,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_Alpha, validate) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &validation, &field_param); - if (unlikely(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'field' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(field_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(field_param) == IS_STRING)) { zephir_get_strval(field, field_param); } else { ZEPHIR_INIT_VAR(field); @@ -146238,7 +145880,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Alpha, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_9$$3); ZVAL_STRING(_9$$3, "Alpha", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _3$$3, "__construct", NULL, 465, _8$$3, field, _9$$3, code); + ZEPHIR_CALL_METHOD(NULL, _3$$3, "__construct", NULL, 464, _8$$3, field, _9$$3, code); zephir_check_temp_parameter(_9$$3); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _3$$3); @@ -146277,11 +145919,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_Between, validate) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &validation, &field_param); - if (unlikely(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'field' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(field_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(field_param) == IS_STRING)) { zephir_get_strval(field, field_param); } else { ZEPHIR_INIT_VAR(field); @@ -146363,7 +146005,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Between, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_10$$5); ZVAL_STRING(_10$$5, "Between", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _4$$5, "__construct", NULL, 465, _9$$5, field, _10$$5, code); + ZEPHIR_CALL_METHOD(NULL, _4$$5, "__construct", NULL, 464, _9$$5, field, _10$$5, code); zephir_check_temp_parameter(_10$$5); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _4$$5); @@ -146402,11 +146044,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_Callback, validate) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &validation, &field_param); - if (unlikely(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'field' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(field_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(field_param) == IS_STRING)) { zephir_get_strval(field, field_param); } else { ZEPHIR_INIT_VAR(field); @@ -146481,7 +146123,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Callback, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_8$$6); ZVAL_STRING(_8$$6, "Callback", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _2$$6, "__construct", NULL, 465, _7$$6, field, _8$$6, code); + ZEPHIR_CALL_METHOD(NULL, _2$$6, "__construct", NULL, 464, _7$$6, field, _8$$6, code); zephir_check_temp_parameter(_8$$6); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _2$$6); @@ -146528,11 +146170,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_Confirmation, validate) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &validation, &field_param); - if (unlikely(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'field' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(field_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(field_param) == IS_STRING)) { zephir_get_strval(field, field_param); } else { ZEPHIR_INIT_VAR(field); @@ -146553,7 +146195,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Confirmation, validate) { zephir_check_call_status(); ZEPHIR_CALL_METHOD(&valueWith, validation, "getvalue", NULL, 0, fieldWith); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_2, this_ptr, "compare", NULL, 468, value, valueWith); + ZEPHIR_CALL_METHOD(&_2, this_ptr, "compare", NULL, 467, value, valueWith); zephir_check_call_status(); if (!(zephir_is_true(_2))) { ZEPHIR_INIT_VAR(_3$$4); @@ -146617,7 +146259,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Confirmation, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_10$$4); ZVAL_STRING(_10$$4, "Confirmation", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _3$$4, "__construct", NULL, 465, _9$$4, field, _10$$4, code); + ZEPHIR_CALL_METHOD(NULL, _3$$4, "__construct", NULL, 464, _9$$4, field, _10$$4, code); zephir_check_temp_parameter(_10$$4); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _3$$4); @@ -146696,11 +146338,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_CreditCard, validate) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &validation, &field_param); - if (unlikely(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'field' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(field_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(field_param) == IS_STRING)) { zephir_get_strval(field, field_param); } else { ZEPHIR_INIT_VAR(field); @@ -146710,7 +146352,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_CreditCard, validate) { ZEPHIR_CALL_METHOD(&value, validation, "getvalue", NULL, 0, field); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&valid, this_ptr, "verifybyluhnalgorithm", NULL, 469, value); + ZEPHIR_CALL_METHOD(&valid, this_ptr, "verifybyluhnalgorithm", NULL, 468, value); zephir_check_call_status(); if (!(zephir_is_true(valid))) { ZEPHIR_INIT_VAR(_0$$3); @@ -146760,7 +146402,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_CreditCard, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_6$$3); ZVAL_STRING(_6$$3, "CreditCard", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _0$$3, "__construct", NULL, 465, _5$$3, field, _6$$3, code); + ZEPHIR_CALL_METHOD(NULL, _0$$3, "__construct", NULL, 464, _5$$3, field, _6$$3, code); zephir_check_temp_parameter(_6$$3); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _0$$3); @@ -146795,8 +146437,8 @@ static PHP_METHOD(Phalcon_Validation_Validator_CreditCard, verifyByLuhnAlgorithm zephir_check_call_status(); zephir_is_iterable(_4, &_6, &_5, 0, 0, "phalcon/validation/validator/creditcard.zep", 118); for ( - ; zephir_hash_get_current_data_ex(_6, (void**) &_7, &_5) == SUCCESS - ; zephir_hash_move_forward_ex(_6, &_5) + ; zend_hash_get_current_data_ex(_6, (void**) &_7, &_5) == SUCCESS + ; zend_hash_move_forward_ex(_6, &_5) ) { ZEPHIR_GET_HMKEY(position, _6, _5); ZEPHIR_GET_HVALUE(digit, _7); @@ -146811,7 +146453,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_CreditCard, verifyByLuhnAlgorithm } ZEPHIR_CALL_FUNCTION(&_9, "str_split", &_1, 71, hash); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&result, "array_sum", NULL, 470, _9); + ZEPHIR_CALL_FUNCTION(&result, "array_sum", NULL, 469, _9); zephir_check_call_status(); RETURN_MM_BOOL((zephir_safe_mod_zval_long(result, 10 TSRMLS_CC) == 0)); @@ -146844,11 +146486,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_Date, validate) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &validation, &field_param); - if (unlikely(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'field' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(field_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(field_param) == IS_STRING)) { zephir_get_strval(field, field_param); } else { ZEPHIR_INIT_VAR(field); @@ -146871,7 +146513,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Date, validate) { ZEPHIR_INIT_NVAR(format); ZVAL_STRING(format, "Y-m-d", 1); } - ZEPHIR_CALL_METHOD(&_2, this_ptr, "checkdate", NULL, 471, value, format); + ZEPHIR_CALL_METHOD(&_2, this_ptr, "checkdate", NULL, 470, value, format); zephir_check_call_status(); if (!(zephir_is_true(_2))) { ZEPHIR_INIT_VAR(_3$$5); @@ -146912,7 +146554,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Date, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_8$$5); ZVAL_STRING(_8$$5, "Date", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _3$$5, "__construct", NULL, 465, _7$$5, field, _8$$5); + ZEPHIR_CALL_METHOD(NULL, _3$$5, "__construct", NULL, 464, _7$$5, field, _8$$5); zephir_check_temp_parameter(_8$$5); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _3$$5); @@ -146985,11 +146627,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_Digit, validate) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &validation, &field_param); - if (unlikely(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'field' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(field_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(field_param) == IS_STRING)) { zephir_get_strval(field, field_param); } else { ZEPHIR_INIT_VAR(field); @@ -147001,7 +146643,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Digit, validate) { zephir_check_call_status(); _0 = Z_TYPE_P(value) == IS_LONG; if (!(_0)) { - ZEPHIR_CALL_FUNCTION(&_1, "ctype_digit", NULL, 472, value); + ZEPHIR_CALL_FUNCTION(&_1, "ctype_digit", NULL, 471, value); zephir_check_call_status(); _0 = zephir_is_true(_1); } @@ -147055,7 +146697,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Digit, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_8); ZVAL_STRING(_8, "Digit", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", NULL, 465, _7, field, _8, code); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", NULL, 464, _7, field, _8, code); zephir_check_temp_parameter(_8); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _2); @@ -147091,11 +146733,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_Email, validate) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &validation, &field_param); - if (unlikely(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'field' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(field_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(field_param) == IS_STRING)) { zephir_get_strval(field, field_param); } else { ZEPHIR_INIT_VAR(field); @@ -147157,7 +146799,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Email, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_8$$3); ZVAL_STRING(_8$$3, "Email", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _2$$3, "__construct", NULL, 465, _7$$3, field, _8$$3, code); + ZEPHIR_CALL_METHOD(NULL, _2$$3, "__construct", NULL, 464, _7$$3, field, _8$$3, code); zephir_check_temp_parameter(_8$$3); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _2$$3); @@ -147213,11 +146855,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_ExclusionIn, validate) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &validation, &field_param); - if (unlikely(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'field' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(field_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(field_param) == IS_STRING)) { zephir_get_strval(field, field_param); } else { ZEPHIR_INIT_VAR(field); @@ -147317,7 +146959,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_ExclusionIn, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_11$$9); ZVAL_STRING(_11$$9, "ExclusionIn", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _5$$9, "__construct", NULL, 465, _10$$9, field, _11$$9, code); + ZEPHIR_CALL_METHOD(NULL, _5$$9, "__construct", NULL, 464, _10$$9, field, _11$$9, code); zephir_check_temp_parameter(_11$$9); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _5$$9); @@ -147360,11 +147002,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, validate) { zephir_get_global(&_SERVER, SS("_SERVER") TSRMLS_CC); zephir_fetch_params(1, 2, 0, &validation, &field_param); - if (unlikely(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'field' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(field_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(field_param) == IS_STRING)) { zephir_get_strval(field, field_param); } else { ZEPHIR_INIT_VAR(field); @@ -147445,7 +147087,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_16$$6); ZVAL_STRING(_16$$6, "FileIniSize", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _11$$6, "__construct", &_17, 465, _14$$6, field, _16$$6, code); + ZEPHIR_CALL_METHOD(NULL, _11$$6, "__construct", &_17, 464, _14$$6, field, _16$$6, code); zephir_check_temp_parameter(_16$$6); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _11$$6); @@ -147494,7 +147136,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_28$$9); ZVAL_STRING(_28$$9, "FileEmpty", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _24$$9, "__construct", &_17, 465, _27$$9, field, _28$$9, code); + ZEPHIR_CALL_METHOD(NULL, _24$$9, "__construct", &_17, 464, _27$$9, field, _28$$9, code); zephir_check_temp_parameter(_28$$9); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _24$$9); @@ -147535,7 +147177,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_35$$12); ZVAL_STRING(_35$$12, "FileValid", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _31$$12, "__construct", &_17, 465, _34$$12, field, _35$$12, code); + ZEPHIR_CALL_METHOD(NULL, _31$$12, "__construct", &_17, 464, _34$$12, field, _35$$12, code); zephir_check_temp_parameter(_35$$12); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _31$$12); @@ -147626,7 +147268,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_54$$18); ZVAL_STRING(_54$$18, "FileSize", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _50$$18, "__construct", &_17, 465, _53$$18, field, _54$$18, code); + ZEPHIR_CALL_METHOD(NULL, _50$$18, "__construct", &_17, 464, _53$$18, field, _54$$18, code); zephir_check_temp_parameter(_54$$18); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _50$$18); @@ -147696,7 +147338,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_63$$26); ZVAL_STRING(_63$$26, "FileType", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _59$$26, "__construct", &_17, 465, _62$$26, field, _63$$26, code); + ZEPHIR_CALL_METHOD(NULL, _59$$26, "__construct", &_17, 464, _62$$26, field, _63$$26, code); zephir_check_temp_parameter(_63$$26); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _59$$26); @@ -147784,7 +147426,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_77$$33); ZVAL_STRING(_77$$33, "FileMinResolution", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _73$$33, "__construct", &_17, 465, _76$$33, field, _77$$33, code); + ZEPHIR_CALL_METHOD(NULL, _73$$33, "__construct", &_17, 464, _76$$33, field, _77$$33, code); zephir_check_temp_parameter(_77$$33); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _73$$33); @@ -147843,7 +147485,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_86$$38); ZVAL_STRING(_86$$38, "FileMaxResolution", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _82$$38, "__construct", &_17, 465, _85$$38, field, _86$$38, code); + ZEPHIR_CALL_METHOD(NULL, _82$$38, "__construct", &_17, 464, _85$$38, field, _86$$38, code); zephir_check_temp_parameter(_86$$38); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _82$$38); @@ -147866,11 +147508,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, isAllowEmpty) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &validation, &field_param); - if (unlikely(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'field' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(field_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(field_param) == IS_STRING)) { zephir_get_strval(field, field_param); } else { ZEPHIR_INIT_VAR(field); @@ -147921,11 +147563,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_Identical, validate) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &validation, &field_param); - if (unlikely(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'field' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(field_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(field_param) == IS_STRING)) { zephir_get_strval(field, field_param); } else { ZEPHIR_INIT_VAR(field); @@ -148018,7 +147660,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Identical, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_14$$8); ZVAL_STRING(_14$$8, "Identical", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _8$$8, "__construct", NULL, 465, _13$$8, field, _14$$8, code); + ZEPHIR_CALL_METHOD(NULL, _8$$8, "__construct", NULL, 464, _13$$8, field, _14$$8, code); zephir_check_temp_parameter(_14$$8); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _8$$8); @@ -148056,11 +147698,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_InclusionIn, validate) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &validation, &field_param); - if (unlikely(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'field' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(field_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(field_param) == IS_STRING)) { zephir_get_strval(field, field_param); } else { ZEPHIR_INIT_VAR(field); @@ -148160,7 +147802,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_InclusionIn, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_11$$9); ZVAL_STRING(_11$$9, "InclusionIn", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _5$$9, "__construct", NULL, 465, _10$$9, field, _11$$9, code); + ZEPHIR_CALL_METHOD(NULL, _5$$9, "__construct", NULL, 464, _10$$9, field, _11$$9, code); zephir_check_temp_parameter(_11$$9); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _5$$9); @@ -148198,11 +147840,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_Numericality, validate) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &validation, &field_param); - if (unlikely(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'field' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(field_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(field_param) == IS_STRING)) { zephir_get_strval(field, field_param); } else { ZEPHIR_INIT_VAR(field); @@ -148265,7 +147907,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Numericality, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_9$$3); ZVAL_STRING(_9$$3, "Numericality", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _3$$3, "__construct", NULL, 465, _8$$3, field, _9$$3, code); + ZEPHIR_CALL_METHOD(NULL, _3$$3, "__construct", NULL, 464, _8$$3, field, _9$$3, code); zephir_check_temp_parameter(_9$$3); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _3$$3); @@ -148304,11 +147946,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_PresenceOf, validate) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &validation, &field_param); - if (unlikely(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'field' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(field_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(field_param) == IS_STRING)) { zephir_get_strval(field, field_param); } else { ZEPHIR_INIT_VAR(field); @@ -148370,7 +148012,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_PresenceOf, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_7$$3); ZVAL_STRING(_7$$3, "PresenceOf", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _1$$3, "__construct", NULL, 465, _6$$3, field, _7$$3, code); + ZEPHIR_CALL_METHOD(NULL, _1$$3, "__construct", NULL, 464, _6$$3, field, _7$$3, code); zephir_check_temp_parameter(_7$$3); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _1$$3); @@ -148409,11 +148051,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_Regex, validate) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &validation, &field_param); - if (unlikely(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'field' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(field_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(field_param) == IS_STRING)) { zephir_get_strval(field, field_param); } else { ZEPHIR_INIT_VAR(field); @@ -148490,7 +148132,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Regex, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_9$$6); ZVAL_STRING(_9$$6, "Regex", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _3$$6, "__construct", NULL, 465, _8$$6, field, _9$$6, code); + ZEPHIR_CALL_METHOD(NULL, _3$$6, "__construct", NULL, 464, _8$$6, field, _9$$6, code); zephir_check_temp_parameter(_9$$6); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _3$$6); @@ -148530,11 +148172,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_StringLength, validate) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &validation, &field_param); - if (unlikely(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'field' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(field_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(field_param) == IS_STRING)) { zephir_get_strval(field, field_param); } else { ZEPHIR_INIT_VAR(field); @@ -148628,7 +148270,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_StringLength, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_11$$11); ZVAL_STRING(_11$$11, "TooLong", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _6$$11, "__construct", &_12, 465, _9$$11, field, _11$$11, code); + ZEPHIR_CALL_METHOD(NULL, _6$$11, "__construct", &_12, 464, _9$$11, field, _11$$11, code); zephir_check_temp_parameter(_11$$11); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _6$$11); @@ -148673,7 +148315,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_StringLength, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_19$$16); ZVAL_STRING(_19$$16, "TooShort", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _15$$16, "__construct", &_12, 465, _18$$16, field, _19$$16, code); + ZEPHIR_CALL_METHOD(NULL, _15$$16, "__construct", &_12, 464, _18$$16, field, _19$$16, code); zephir_check_temp_parameter(_19$$16); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _15$$16); @@ -148754,7 +148396,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Uniqueness, validate) { zephir_check_call_status(); ZEPHIR_INIT_NVAR(_6$$3); ZVAL_STRING(_6$$3, "Uniqueness", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _1$$3, "__construct", NULL, 465, _4$$3, field, _6$$3, _5$$3); + ZEPHIR_CALL_METHOD(NULL, _1$$3, "__construct", NULL, 464, _4$$3, field, _6$$3, _5$$3); zephir_check_temp_parameter(_6$$3); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _1$$3); @@ -148796,8 +148438,8 @@ static PHP_METHOD(Phalcon_Validation_Validator_Uniqueness, isUniqueness) { zephir_check_call_status(); zephir_is_iterable(field, &_2, &_1, 0, 0, "phalcon/validation/validator/uniqueness.zep", 151); for ( - ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS - ; zephir_hash_move_forward_ex(_2, &_1) + ; zend_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS + ; zend_hash_move_forward_ex(_2, &_1) ) { ZEPHIR_GET_HVALUE(singleField, _3); ZEPHIR_CALL_METHOD(&_4$$4, validation, "getvalue", &_5, 0, singleField); @@ -148861,11 +148503,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_Uniqueness, getColumnNameReal) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &record, &field_param); - if (unlikely(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'field' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(field_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(field_param) == IS_STRING)) { zephir_get_strval(field, field_param); } else { ZEPHIR_INIT_VAR(field); @@ -148942,8 +148584,8 @@ static PHP_METHOD(Phalcon_Validation_Validator_Uniqueness, isUniquenessModel) { zephir_check_call_status(); zephir_is_iterable(field, &_2, &_1, 0, 0, "phalcon/validation/validator/uniqueness.zep", 290); for ( - ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS - ; zephir_hash_move_forward_ex(_2, &_1) + ; zend_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS + ; zend_hash_move_forward_ex(_2, &_1) ) { ZEPHIR_GET_HVALUE(singleField, _3); ZEPHIR_INIT_NVAR(fieldExcept); @@ -148989,8 +148631,8 @@ static PHP_METHOD(Phalcon_Validation_Validator_Uniqueness, isUniquenessModel) { if (_10$$6) { zephir_is_iterable(except, &_17$$7, &_16$$7, 0, 0, "phalcon/validation/validator/uniqueness.zep", 253); for ( - ; zephir_hash_get_current_data_ex(_17$$7, (void**) &_18$$7, &_16$$7) == SUCCESS - ; zephir_hash_move_forward_ex(_17$$7, &_16$$7) + ; zend_hash_get_current_data_ex(_17$$7, (void**) &_18$$7, &_16$$7) == SUCCESS + ; zend_hash_move_forward_ex(_17$$7, &_16$$7) ) { ZEPHIR_GET_HMKEY(singleField, _17$$7, _16$$7); ZEPHIR_GET_HVALUE(fieldExcept, _18$$7); @@ -149004,8 +148646,8 @@ static PHP_METHOD(Phalcon_Validation_Validator_Uniqueness, isUniquenessModel) { if (Z_TYPE_P(fieldExcept) == IS_ARRAY) { zephir_is_iterable(fieldExcept, &_22$$9, &_21$$9, 0, 0, "phalcon/validation/validator/uniqueness.zep", 246); for ( - ; zephir_hash_get_current_data_ex(_22$$9, (void**) &_23$$9, &_21$$9) == SUCCESS - ; zephir_hash_move_forward_ex(_22$$9, &_21$$9) + ; zend_hash_get_current_data_ex(_22$$9, (void**) &_23$$9, &_21$$9) == SUCCESS + ; zend_hash_move_forward_ex(_22$$9, &_21$$9) ) { ZEPHIR_GET_HVALUE(singleExcept, _23$$9); ZEPHIR_SINIT_NVAR(_24$$10); @@ -149043,8 +148685,8 @@ static PHP_METHOD(Phalcon_Validation_Validator_Uniqueness, isUniquenessModel) { if (Z_TYPE_P(except) == IS_ARRAY) { zephir_is_iterable(except, &_34$$13, &_33$$13, 0, 0, "phalcon/validation/validator/uniqueness.zep", 261); for ( - ; zephir_hash_get_current_data_ex(_34$$13, (void**) &_35$$13, &_33$$13) == SUCCESS - ; zephir_hash_move_forward_ex(_34$$13, &_33$$13) + ; zend_hash_get_current_data_ex(_34$$13, (void**) &_35$$13, &_33$$13) == SUCCESS + ; zend_hash_move_forward_ex(_34$$13, &_33$$13) ) { ZEPHIR_GET_HVALUE(singleExcept, _35$$13); ZEPHIR_SINIT_NVAR(_36$$14); @@ -149072,8 +148714,8 @@ static PHP_METHOD(Phalcon_Validation_Validator_Uniqueness, isUniquenessModel) { } else if (zephir_fast_count_int(field TSRMLS_CC) > 1) { zephir_is_iterable(field, &_43$$16, &_42$$16, 0, 0, "phalcon/validation/validator/uniqueness.zep", 283); for ( - ; zephir_hash_get_current_data_ex(_43$$16, (void**) &_44$$16, &_42$$16) == SUCCESS - ; zephir_hash_move_forward_ex(_43$$16, &_42$$16) + ; zend_hash_get_current_data_ex(_43$$16, (void**) &_44$$16, &_42$$16) == SUCCESS + ; zend_hash_move_forward_ex(_43$$16, &_42$$16) ) { ZEPHIR_GET_HVALUE(singleField, _44$$16); ZEPHIR_INIT_NVAR(_46$$17); @@ -149086,8 +148728,8 @@ static PHP_METHOD(Phalcon_Validation_Validator_Uniqueness, isUniquenessModel) { if (Z_TYPE_P(except) == IS_ARRAY) { zephir_is_iterable(except, &_48$$18, &_47$$18, 0, 0, "phalcon/validation/validator/uniqueness.zep", 276); for ( - ; zephir_hash_get_current_data_ex(_48$$18, (void**) &_49$$18, &_47$$18) == SUCCESS - ; zephir_hash_move_forward_ex(_48$$18, &_47$$18) + ; zend_hash_get_current_data_ex(_48$$18, (void**) &_49$$18, &_47$$18) == SUCCESS + ; zend_hash_move_forward_ex(_48$$18, &_47$$18) ) { ZEPHIR_GET_HVALUE(singleExcept, _49$$18); ZEPHIR_SINIT_NVAR(_50$$19); @@ -149130,8 +148772,8 @@ static PHP_METHOD(Phalcon_Validation_Validator_Uniqueness, isUniquenessModel) { zephir_check_call_status(); zephir_is_iterable(_59$$21, &_61$$21, &_60$$21, 0, 0, "phalcon/validation/validator/uniqueness.zep", 298); for ( - ; zephir_hash_get_current_data_ex(_61$$21, (void**) &_62$$21, &_60$$21) == SUCCESS - ; zephir_hash_move_forward_ex(_61$$21, &_60$$21) + ; zend_hash_get_current_data_ex(_61$$21, (void**) &_62$$21, &_60$$21) == SUCCESS + ; zend_hash_move_forward_ex(_61$$21, &_60$$21) ) { ZEPHIR_GET_HVALUE(primaryField, _62$$21); ZEPHIR_CALL_METHOD(&_63$$22, this_ptr, "getcolumnnamereal", &_6, 0, record, primaryField); @@ -149188,8 +148830,8 @@ static PHP_METHOD(Phalcon_Validation_Validator_Uniqueness, isUniquenessCollectio zephir_array_update_string(¶ms, SL("conditions"), &_0, PH_COPY | PH_SEPARATE); zephir_is_iterable(field, &_2, &_1, 0, 0, "phalcon/validation/validator/uniqueness.zep", 363); for ( - ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS - ; zephir_hash_move_forward_ex(_2, &_1) + ; zend_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS + ; zend_hash_move_forward_ex(_2, &_1) ) { ZEPHIR_GET_HVALUE(singleField, _3); ZEPHIR_INIT_NVAR(fieldExcept); @@ -149227,8 +148869,8 @@ static PHP_METHOD(Phalcon_Validation_Validator_Uniqueness, isUniquenessCollectio if (Z_TYPE_P(fieldExcept) == IS_ARRAY) { zephir_is_iterable(fieldExcept, &_9$$10, &_8$$10, 0, 0, "phalcon/validation/validator/uniqueness.zep", 344); for ( - ; zephir_hash_get_current_data_ex(_9$$10, (void**) &_10$$10, &_8$$10) == SUCCESS - ; zephir_hash_move_forward_ex(_9$$10, &_8$$10) + ; zend_hash_get_current_data_ex(_9$$10, (void**) &_10$$10, &_8$$10) == SUCCESS + ; zend_hash_move_forward_ex(_9$$10, &_8$$10) ) { ZEPHIR_GET_HVALUE(singleExcept, _10$$10); zephir_array_append(¬InValues, singleExcept, PH_SEPARATE, "phalcon/validation/validator/uniqueness.zep", 342); @@ -149246,8 +148888,8 @@ static PHP_METHOD(Phalcon_Validation_Validator_Uniqueness, isUniquenessCollectio } else if (_7$$6) { zephir_is_iterable(except, &_12$$13, &_11$$13, 0, 0, "phalcon/validation/validator/uniqueness.zep", 354); for ( - ; zephir_hash_get_current_data_ex(_12$$13, (void**) &_13$$13, &_11$$13) == SUCCESS - ; zephir_hash_move_forward_ex(_12$$13, &_11$$13) + ; zend_hash_get_current_data_ex(_12$$13, (void**) &_13$$13, &_11$$13) == SUCCESS + ; zend_hash_move_forward_ex(_12$$13, &_11$$13) ) { ZEPHIR_GET_HVALUE(singleExcept, _13$$13); zephir_array_append(¬InValues, singleExcept, PH_SEPARATE, "phalcon/validation/validator/uniqueness.zep", 352); @@ -149311,11 +148953,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_Url, validate) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &validation, &field_param); - if (unlikely(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'field' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(field_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(field_param) == IS_STRING)) { zephir_get_strval(field, field_param); } else { ZEPHIR_INIT_VAR(field); @@ -149377,7 +149019,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Url, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_8$$3); ZVAL_STRING(_8$$3, "Url", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _2$$3, "__construct", NULL, 465, _7$$3, field, _8$$3, code); + ZEPHIR_CALL_METHOD(NULL, _2$$3, "__construct", NULL, 464, _7$$3, field, _8$$3, code); zephir_check_temp_parameter(_8$$3); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _2$$3); diff --git a/build/php5/32bits/phalcon.zep.h b/build/php5/32bits/phalcon.zep.h index ff2a8a493d5..a7b13fc5a00 100644 --- a/build/php5/32bits/phalcon.zep.h +++ b/build/php5/32bits/phalcon.zep.h @@ -17490,7 +17490,7 @@ ZEPHIR_INIT_FUNCS(phalcon_queue_beanstalk_method_entry) { PHP_ME(Phalcon_Queue_Beanstalk, readStatus, NULL, ZEND_ACC_FINAL|ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Queue_Beanstalk, readYaml, NULL, ZEND_ACC_FINAL|ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Queue_Beanstalk, read, arginfo_phalcon_queue_beanstalk_read, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Queue_Beanstalk, write, arginfo_phalcon_queue_beanstalk_write, ZEND_ACC_PROTECTED) + PHP_ME(Phalcon_Queue_Beanstalk, write, arginfo_phalcon_queue_beanstalk_write, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Queue_Beanstalk, disconnect, NULL, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Queue_Beanstalk, quit, NULL, ZEND_ACC_PUBLIC) PHP_FE_END diff --git a/build/php5/32bits/php_phalcon.h b/build/php5/32bits/php_phalcon.h index a9da85ec94c..4523ebe8a59 100644 --- a/build/php5/32bits/php_phalcon.h +++ b/build/php5/32bits/php_phalcon.h @@ -13,7 +13,7 @@ +------------------------------------------------------------------------+ | Zephir Language | +------------------------------------------------------------------------+ - | Copyright (c) 2011-2016 Zephir Team (http://www.zephir-lang.com) | + | Copyright (c) 2011-2017 Zephir Team (http://www.zephir-lang.com) | +------------------------------------------------------------------------+ | This source file is subject to the New BSD License that is bundled | | with this package in the file docs/LICENSE.txt. | @@ -122,10 +122,6 @@ typedef zend_function zephir_fcall_cache_entry; # define HASH_KEY_NON_EXISTENT HASH_KEY_NON_EXISTANT #endif -/** Macros for branch prediction */ -#define likely(x) EXPECTED(x) -#define unlikely(x) UNEXPECTED(x) - #if defined(__GNUC__) && (defined(__clang__) || ((__GNUC__ * 100 + __GNUC_MINOR__) >= 405)) # define UNREACHABLE() __builtin_unreachable() # define ASSUME(x) if (x) {} else __builtin_unreachable() @@ -156,10 +152,6 @@ typedef zend_function zephir_fcall_cache_entry; # define __builtin_constant_p(s) (0) #endif -#ifndef ZEND_MOD_END -# define ZEND_MOD_END { NULL, NULL, NULL, 0 } -#endif - #ifndef __func__ # define __func__ __FUNCTION__ #endif @@ -170,22 +162,17 @@ typedef zend_function zephir_fcall_cache_entry; # define ZEPHIR_NO_OPT #endif -#ifdef ZTS -#define zephir_nts_static -#else -#define zephir_nts_static -#endif - -#define ZEPHIR_STATIC +#define likely(x) EXPECTED(x) +#define unlikely(x) UNEXPECTED(x) #endif #define PHP_PHALCON_NAME "phalcon" -#define PHP_PHALCON_VERSION "3.1.1" +#define PHP_PHALCON_VERSION "3.1.2" #define PHP_PHALCON_EXTNAME "phalcon" #define PHP_PHALCON_AUTHOR "Phalcon Team and contributors" -#define PHP_PHALCON_ZEPVERSION "0.9.6a-dev-3a72ba9bb5" +#define PHP_PHALCON_ZEPVERSION "0.9.7-1fae5e50ac" #define PHP_PHALCON_DESCRIPTION "Web framework delivered as a C-extension for PHP" typedef struct _zephir_struct_db { diff --git a/build/php5/64bits/config.w32 b/build/php5/64bits/config.w32 index c6b6f1514dd..b9fd9f14931 100644 --- a/build/php5/64bits/config.w32 +++ b/build/php5/64bits/config.w32 @@ -1,4 +1,6 @@ + ARG_ENABLE("phalcon", "enable phalcon", "no"); + if (PHP_PHALCON != "no") { EXTENSION("phalcon", "phalcon.zep.c", null, "-I"+configure_module_dirname); ADD_FLAG("CFLAGS", "/D ZEPHIR_RELEASE /Oi /Ot /Oy /Ob2 /Gs /GF /Gy /GL"); diff --git a/build/php5/64bits/phalcon.zep.c b/build/php5/64bits/phalcon.zep.c index 43daff7e10e..1b99940efd6 100644 --- a/build/php5/64bits/phalcon.zep.c +++ b/build/php5/64bits/phalcon.zep.c @@ -2588,6 +2588,9 @@ static inline char *_str_erealloc(char *str, size_t new_len, size_t old_len) { #define zephir_is_php_version(id) (PHP_VERSION_ID / 10 == id / 10 ? 1 : 0) +static void zephir_get_args(zval* return_value TSRMLS_DC); +static void zephir_get_arg(zval* return_value, int idx TSRMLS_DC); + #endif /* ZEPHIR_KERNEL_MAIN_H */ @@ -2902,73 +2905,6 @@ static void zephir_throw_exception_format(zend_class_entry *ce TSRMLS_DC, const -#ifndef ZEPHIR_KERNEL_HASH_H -#define ZEPHIR_KERNEL_HASH_H - - -static int zephir_hash_init(HashTable *ht, uint nSize, hash_func_t pHashFunction, dtor_func_t pDestructor, zend_bool persistent); - -static int zephir_hash_exists(const HashTable *ht, const char *arKey, uint nKeyLength); -static int zephir_hash_quick_exists(const HashTable *ht, const char *arKey, uint nKeyLength, ulong h); -static int zephir_hash_find(const HashTable *ht, const char *arKey, uint nKeyLength, void **pData); -static int zephir_hash_quick_find(const HashTable *ht, const char *arKey, uint nKeyLength, ulong h, void **pData); -static void zephir_get_current_key(zval **key, const HashTable *hash_table, HashPosition *hash_position TSRMLS_DC); -zval zephir_get_current_key_w(const HashTable *hash_table, HashPosition *hash_position); -static int zephir_has_numeric_keys(const zval *data); -static void zephir_hash_update_or_insert(HashTable *ht, zval *offset, zval *value); -zval** zephir_hash_get(HashTable *ht, zval *key, int type); -static int zephir_hash_unset(HashTable *ht, zval *offset); - -#define zephir_hash_move_forward_ex(ht, pos) *pos = (*pos ? (*pos)->pListNext : NULL) - -static zend_always_inline int zephir_hash_get_current_data_ex(HashTable *ht, void **pData, HashPosition *pos) -{ - Bucket *p; - p = pos ? (*pos) : ht->pInternalPointer; - if (p) { - *pData = p->pData; - return SUCCESS; - } else { - return FAILURE; - } -} - -static zend_always_inline int zephir_hash_move_backwards_ex(HashTable *ht, HashPosition *pos) -{ -#if PHP_VERSION_ID < 70000 - HashPosition *current = pos ? pos : &ht->pInternalPointer; - if (*current) { - *current = (*current)->pListLast; - return SUCCESS; - } else { - return FAILURE; - } -#else - uint idx = *pos; - - IS_CONSISTENT(ht); - - if (idx != INVALID_IDX) { - while (idx > 0) { - idx--; - if (Z_TYPE(ht->arData[idx].val) != IS_UNDEF) { - *pos = idx; - return SUCCESS; - } - } - *pos = INVALID_IDX; - return SUCCESS; - } else { - return FAILURE; - } -#endif -} - -#endif - - - - #ifndef ZEPHIR_KERNEL_DEBUG_H #define ZEPHIR_KERNEL_DEBUG_H @@ -3020,6 +2956,7 @@ static int zephir_debug_space(); + #ifndef ZEPHIR_KERNEL_BACKTRACE_H #define ZEPHIR_KERNEL_BACKTRACE_H @@ -3283,9 +3220,6 @@ static void ZEPHIR_FASTCALL zephir_create_array(zval *return_value, uint size, i - - - #ifndef ZEPHIR_KERNEL_FCALL_EXT_H #define ZEPHIR_KERNEL_FCALL_EXT_H @@ -3413,6 +3347,8 @@ static void zephir_stripcslashes(zval *return_value, zval *str TSRMLS_DC); static int zephir_hash_equals(const zval *known_zval, const zval *user_zval); +static void zephir_string_to_hex(zval *return_value, zval *var); + #endif /* ZEPHIR_KERNEL_STRING_H */ @@ -4715,10 +4651,13 @@ static void zephir_var_export_ex(zval *return_value, zval **var TSRMLS_DC); static void zephir_var_dump(zval **var TSRMLS_DC); +static void zephir_get_defined_vars(zval *return_value TSRMLS_DC); + #endif + #ifndef ZEPHIR_KERNEL_FILTER_H #define ZEPHIR_KERNEL_FILTER_H @@ -4740,6 +4679,7 @@ static void zephir_escape_html(zval *return_value, zval *str, zval *quote_style, + #ifndef ZEPHIR_KERNEL_ITERATOR_H #define ZEPHIR_KERNEL_ITERATOR_H @@ -5016,7 +4956,7 @@ static int zephir_is_scalar(zval *var) { static int zephir_is_iterable_ex(zval *arr, HashTable **arr_hash, HashPosition *hash_position, int duplicate, int reverse) { - if (unlikely(Z_TYPE_P(arr) != IS_ARRAY)) { + if (UNEXPECTED(Z_TYPE_P(arr) != IS_ARRAY)) { return 0; } @@ -5149,6 +5089,52 @@ zend_class_entry* zephir_get_internal_ce(const char *class_name, unsigned int cl return *temp_ce; } +static void zephir_get_args(zval *return_value TSRMLS_DC) +{ + zend_execute_data *ex = EG(current_execute_data); + void **p = ex->function_state.arguments; + int arg_count = (int)(zend_uintptr_t)*p; + int i; + + array_init_size(return_value, arg_count); + for (i=0; ifunction_state.arguments; + int arg_count = (int)(zend_uintptr_t)*p; + zval *arg; + + if (UNEXPECTED(idx < 0)) { + zend_error(E_WARNING, "zephir_get_arg(): The argument number should be >= 0"); + RETURN_FALSE; + } + + if (UNEXPECTED((zend_ulong)idx >= arg_count)) { + zend_error(E_WARNING, "zephir_get_arg(): Argument %d not passed to function", idx); + RETURN_FALSE; + } + + arg = *((zval**)(p - arg_count + idx)); + RETURN_ZVAL(arg, 1, 0); +} + @@ -6001,310 +5987,6 @@ static void zephir_throw_exception_zval(zend_class_entry *ce, zval *message TSRM -#ifdef HAVE_CONFIG_H -#endif - - - -static int zephir_hash_init(HashTable *ht, uint nSize, hash_func_t pHashFunction, dtor_func_t pDestructor, zend_bool persistent) -{ - if (nSize >= 0x80000000) { - ht->nTableSize = 0x80000000; - } else { - if (nSize > 3) { - ht->nTableSize = nSize + (nSize >> 2); - } else { - ht->nTableSize = 3; - } - } - -#if ZEND_DEBUG - ht->inconsistent = 0; -#endif - - ht->nTableMask = 0; /* 0 means that ht->arBuckets is uninitialized */ - ht->pDestructor = pDestructor; - ht->arBuckets = NULL; - ht->pListHead = NULL; - ht->pListTail = NULL; - ht->nNumOfElements = 0; - ht->nNextFreeElement = 0; - ht->pInternalPointer = NULL; - ht->persistent = persistent; - ht->nApplyCount = 0; - ht->bApplyProtection = 1; - - return SUCCESS; -} - -static int zephir_hash_exists(const HashTable *ht, const char *arKey, uint nKeyLength) -{ - ulong h; - uint nIndex; - Bucket *p; - - h = zend_inline_hash_func(arKey, nKeyLength); - nIndex = h & ht->nTableMask; - - p = ht->arBuckets[nIndex]; - while (p != NULL) { - if (p->arKey == arKey || ((p->h == h) && (p->nKeyLength == nKeyLength))) { - if (!memcmp(p->arKey, arKey, nKeyLength)) { - return 1; - } - } - p = p->pNext; - } - return 0; -} - -static int zephir_hash_quick_exists(const HashTable *ht, const char *arKey, uint nKeyLength, ulong h) -{ - uint nIndex; - Bucket *p; - - if (nKeyLength == 0) { - return zend_hash_index_exists(ht, h); - } - - nIndex = h & ht->nTableMask; - - p = ht->arBuckets[nIndex]; - while (p != NULL) { - if (p->arKey == arKey || ((p->h == h) && (p->nKeyLength == nKeyLength))) { - if (!memcmp(p->arKey, arKey, nKeyLength)) { - return 1; - } - } - p = p->pNext; - } - return 0; -} - -static int zephir_hash_find(const HashTable *ht, const char *arKey, uint nKeyLength, void **pData) -{ - ulong h; - uint nIndex; - Bucket *p; - - h = zend_inline_hash_func(arKey, nKeyLength); - nIndex = h & ht->nTableMask; - - p = ht->arBuckets[nIndex]; - while (p != NULL) { - if (p->arKey == arKey || ((p->h == h) && (p->nKeyLength == nKeyLength))) { - if (!memcmp(p->arKey, arKey, nKeyLength)) { - *pData = p->pData; - return SUCCESS; - } - } - p = p->pNext; - } - return FAILURE; -} - -static int zephir_hash_quick_find(const HashTable *ht, const char *arKey, uint nKeyLength, ulong h, void **pData) -{ - uint nIndex; - Bucket *p; - - if (nKeyLength == 0) { - return zend_hash_index_find(ht, h, pData); - } - - nIndex = h & ht->nTableMask; - - p = ht->arBuckets[nIndex]; - while (p != NULL) { - if (p->arKey == arKey || ((p->h == h) && (p->nKeyLength == nKeyLength))) { - if (!memcmp(p->arKey, arKey, nKeyLength)) { - *pData = p->pData; - return SUCCESS; - } - } - p = p->pNext; - } - return FAILURE; -} - -static void zephir_get_current_key(zval **key, const HashTable *hash_table, HashPosition *hash_position TSRMLS_DC) -{ - Bucket *p; - - ZEPHIR_INIT_NVAR_PNULL(*key); - - p = hash_position ? (*hash_position) : hash_table->pInternalPointer; - - if (p) { - if (p->nKeyLength) { - ZVAL_STRINGL(*key, (char *) p->arKey, p->nKeyLength - 1, 0); - } else { - ZVAL_LONG(*key, p->h); - } - } - -} - -zval zephir_get_current_key_w(const HashTable *hash_table, HashPosition *hash_position) -{ - Bucket *p; - zval result; - - INIT_ZVAL(result); - p = hash_position ? (*hash_position) : hash_table->pInternalPointer; - - if (p) { - if (p->nKeyLength) { - ZVAL_STRINGL(&result, (char *) p->arKey, p->nKeyLength - 1, 0); - } else { - ZVAL_LONG(&result, p->h); - } - } - - return result; -} - -static int zephir_has_numeric_keys(const zval *data) -{ - HashTable *ht; - - if (Z_TYPE_P(data) == IS_ARRAY) { - - ht = Z_ARRVAL_P(data); - - ht->pInternalPointer = ht->pListHead; - while (ht->pInternalPointer) { - if (!ht->pInternalPointer->nKeyLength) { - return 1; - } - ht->pInternalPointer = ht->pInternalPointer->pListNext; - } - - } - - return 0; -} - -static void zephir_hash_update_or_insert(HashTable *ht, zval *key, zval *value) -{ - if (!key || Z_TYPE_P(key) == IS_NULL) { - zend_hash_next_index_insert(ht, (void**)&value, sizeof(zval*), NULL); - return; - } - - switch (Z_TYPE_P(key)) { - case IS_STRING: - zend_symtable_update(ht, Z_STRVAL_P(key), Z_STRLEN_P(key)+1, (void**)&value, sizeof(zval*), NULL); - return; - - case IS_RESOURCE: - case IS_DOUBLE: - case IS_BOOL: - case IS_LONG: - zend_hash_index_update(ht, ((Z_TYPE_P(key) == IS_DOUBLE) ? (ulong)Z_DVAL_P(key) : Z_LVAL_P(key)), (void*)&value, sizeof(zval*), NULL); - return; - - default: - zend_error(E_WARNING, "Illegal offset type"); - return; - } -} - -zval** zephir_hash_get(HashTable *ht, zval *key, int type) -{ - zval **ret = NULL; - - switch (Z_TYPE_P(key)) { - case IS_RESOURCE: - zend_error(E_STRICT, "Resource ID#%ld used as offset, casting to integer (%ld)", Z_LVAL_P(key), Z_LVAL_P(key)); - /* no break */ - case IS_LONG: - case IS_DOUBLE: - case IS_BOOL: { - ulong index = (Z_TYPE_P(key) == IS_DOUBLE) ? ((long int)Z_DVAL_P(key)) : Z_LVAL_P(key); - if (FAILURE == zend_hash_index_find(ht, index, (void**)&ret)) { - switch (type) { - case BP_VAR_R: - zend_error(E_NOTICE, "Undefined offset: %ld", index); - /* no break */ - case BP_VAR_UNSET: - case BP_VAR_IS: { - TSRMLS_FETCH(); - ret = &EG(uninitialized_zval_ptr); - break; - } - - case BP_VAR_RW: - zend_error(E_NOTICE, "Undefined offset: %ld", index); - /* no break */ - case BP_VAR_W: { - zval *value; - ALLOC_INIT_ZVAL(value); - zend_hash_index_update(ht, index, (void**)&value, sizeof(void*), (void**)&ret); - break; - } - } - } - - return ret; - } - - case IS_STRING: - if (FAILURE == zend_symtable_find(ht, Z_STRVAL_P(key), Z_STRLEN_P(key)+1, (void**)&ret)) { - switch (type) { - case BP_VAR_R: - zend_error(E_NOTICE, "Undefined offset: %s", Z_STRVAL_P(key)); - /* no break */ - case BP_VAR_UNSET: - case BP_VAR_IS: { - TSRMLS_FETCH(); - ret = &EG(uninitialized_zval_ptr); - break; - } - - case BP_VAR_RW: - zend_error(E_NOTICE, "Undefined offset: %s", Z_STRVAL_P(key)); - /* no break */ - case BP_VAR_W: { - zval *value; - ALLOC_INIT_ZVAL(value); - zend_symtable_update(ht, Z_STRVAL_P(key), Z_STRLEN_P(key)+1, (void**)&value, sizeof(void*), (void**)&ret); - break; - } - } - } - - return ret; - - default: { - TSRMLS_FETCH(); - zend_error(E_WARNING, "Illegal offset type"); - return (type == BP_VAR_W || type == BP_VAR_RW) ? &EG(error_zval_ptr) : &EG(uninitialized_zval_ptr); - } - } -} - -static int zephir_hash_unset(HashTable *ht, zval *key) -{ - switch (Z_TYPE_P(key)) { - case IS_LONG: - case IS_DOUBLE: - case IS_BOOL: - case IS_RESOURCE: - return (zend_hash_index_del(ht, (Z_TYPE_P(key) == IS_DOUBLE) ? ((long int)Z_DVAL_P(key)) : Z_LVAL_P(key)) == SUCCESS); - - case IS_STRING: - return (zend_symtable_del(ht, Z_STRVAL_P(key), Z_STRLEN_P(key) + 1) == SUCCESS); - - default: - zend_error(E_WARNING, "Illegal offset type"); - return 0; - } -} - - - - #ifdef HAVE_CONFIG_H #endif @@ -6633,7 +6315,7 @@ static int zephir_get_class_constant(zval *return_value, zend_class_entry *ce, c zval **result_ptr; - if (zephir_hash_find(&ce->constants_table, constant_name, constant_length, (void **) &result_ptr) != SUCCESS) { + if (zend_hash_find(&ce->constants_table, constant_name, constant_length, (void **) &result_ptr) != SUCCESS) { php_error_docref(NULL TSRMLS_CC, E_ERROR, "Undefined class constant '%s::%s'", ce->name, constant_name); return FAILURE; } @@ -6956,10 +6638,10 @@ static int zephir_clone(zval *destination, zval *obj TSRMLS_DC) { static int zephir_isset_property_quick(zval *object, const char *property_name, unsigned int property_length, unsigned long hash TSRMLS_DC) { if (Z_TYPE_P(object) == IS_OBJECT) { - if (likely(zephir_hash_quick_exists(&Z_OBJCE_P(object)->properties_info, property_name, property_length, hash))) { + if (EXPECTED(zend_hash_quick_exists(&Z_OBJCE_P(object)->properties_info, property_name, property_length, hash))) { return 1; } else { - return zephir_hash_quick_exists(Z_OBJ_HT_P(object)->get_properties(object TSRMLS_CC), property_name, property_length, hash); + return zend_hash_quick_exists(Z_OBJ_HT_P(object)->get_properties(object TSRMLS_CC), property_name, property_length, hash); } } @@ -6980,10 +6662,10 @@ static int zephir_isset_property_zval(zval *object, const zval *property TSRMLS_ hash = zend_inline_hash_func(Z_STRVAL_P(property), Z_STRLEN_P(property) + 1); - if (likely(zephir_hash_quick_exists(&Z_OBJCE_P(object)->properties_info, Z_STRVAL_P(property), Z_STRLEN_P(property) + 1, hash))) { + if (EXPECTED(zend_hash_quick_exists(&Z_OBJCE_P(object)->properties_info, Z_STRVAL_P(property), Z_STRLEN_P(property) + 1, hash))) { return 1; } else { - return zephir_hash_quick_exists(Z_OBJ_HT_P(object)->get_properties(object TSRMLS_CC), Z_STRVAL_P(property), Z_STRLEN_P(property) + 1, hash); + return zend_hash_quick_exists(Z_OBJ_HT_P(object)->get_properties(object TSRMLS_CC), Z_STRVAL_P(property), Z_STRLEN_P(property) + 1, hash); } } } @@ -6996,7 +6678,7 @@ static inline zend_class_entry *zephir_lookup_class_ce_quick(zend_class_entry *c zend_class_entry *original_ce = ce; while (ce) { - if (zephir_hash_quick_exists(&ce->properties_info, property_name, property_length + 1, hash)) { + if (zend_hash_quick_exists(&ce->properties_info, property_name, property_length + 1, hash)) { return ce; } ce = ce->parent; @@ -7067,7 +6749,7 @@ zval* zephir_fetch_property_this_quick(zval *object, const char *property_name, zend_property_info *property_info; zend_class_entry *ce, *old_scope; - if (likely(Z_TYPE_P(object) == IS_OBJECT)) { + if (EXPECTED(Z_TYPE_P(object) == IS_OBJECT)) { ce = Z_OBJCE_P(object); if (ce->parent) { @@ -7079,7 +6761,7 @@ zval* zephir_fetch_property_this_quick(zval *object, const char *property_name, zobj = zend_objects_get_address(object TSRMLS_CC); - if (zephir_hash_quick_find(&ce->properties_info, property_name, property_length + 1, key, (void **) &property_info) == SUCCESS) { + if (zend_hash_quick_find(&ce->properties_info, property_name, property_length + 1, key, (void **) &property_info) == SUCCESS) { int flag; if (EXPECTED((property_info->flags & ZEND_ACC_STATIC) == 0) && property_info->offset >= 0) { if (zobj->properties) { @@ -7091,22 +6773,22 @@ zval* zephir_fetch_property_this_quick(zval *object, const char *property_name, } } else if (UNEXPECTED(!zobj->properties)) { flag = 1; - } else if (UNEXPECTED(zephir_hash_quick_find(zobj->properties, property_info->name, property_info->name_length+1, property_info->h, (void **) &zv) == FAILURE)) { + } else if (UNEXPECTED(zend_hash_quick_find(zobj->properties, property_info->name, property_info->name_length+1, property_info->h, (void **) &zv) == FAILURE)) { flag = 2; } else { flag = 0; } - if (unlikely(flag) && zobj->properties) { + if (UNEXPECTED(flag) && zobj->properties) { if ( - (flag == 2 || zephir_hash_quick_find(zobj->properties, property_info->name, property_info->name_length+1, property_info->h, (void **) &zv) == FAILURE) + (flag == 2 || zend_hash_quick_find(zobj->properties, property_info->name, property_info->name_length+1, property_info->h, (void **) &zv) == FAILURE) && zv && *zv ) { flag = 0; } } - if (likely(!flag)) { + if (EXPECTED(!flag)) { EG(scope) = old_scope; return *zv; } @@ -7130,7 +6812,7 @@ static int zephir_return_property_quick(zval *return_value, zval **return_value_ zend_property_info *property_info; zend_class_entry *ce, *old_scope; - if (likely(Z_TYPE_P(object) == IS_OBJECT)) { + if (EXPECTED(Z_TYPE_P(object) == IS_OBJECT)) { ce = Z_OBJCE_P(object); if (ce->parent) { @@ -7142,7 +6824,7 @@ static int zephir_return_property_quick(zval *return_value, zval **return_value_ zobj = zend_objects_get_address(object TSRMLS_CC); - if (zephir_hash_quick_find(&ce->properties_info, property_name, property_length + 1, key, (void **) &property_info) == SUCCESS) { + if (zend_hash_quick_find(&ce->properties_info, property_name, property_length + 1, key, (void **) &property_info) == SUCCESS) { int flag; if (EXPECTED((property_info->flags & ZEND_ACC_STATIC) == 0) && property_info->offset >= 0) { if (zobj->properties) { @@ -7154,22 +6836,22 @@ static int zephir_return_property_quick(zval *return_value, zval **return_value_ } } else if (UNEXPECTED(!zobj->properties)) { flag = 1; - } else if (UNEXPECTED(zephir_hash_quick_find(zobj->properties, property_info->name, property_info->name_length+1, property_info->h, (void **) &zv) == FAILURE)) { + } else if (UNEXPECTED(zend_hash_quick_find(zobj->properties, property_info->name, property_info->name_length+1, property_info->h, (void **) &zv) == FAILURE)) { flag = 2; } else { flag = 0; } - if (unlikely(flag) && zobj->properties) { + if (UNEXPECTED(flag) && zobj->properties) { if ( - (flag == 2 || zephir_hash_quick_find(zobj->properties, property_info->name, property_info->name_length+1, property_info->h, (void **) &zv) == FAILURE) + (flag == 2 || zend_hash_quick_find(zobj->properties, property_info->name, property_info->name_length+1, property_info->h, (void **) &zv) == FAILURE) && zv && *zv ) { flag = 0; } } - if (likely(!flag)) { + if (EXPECTED(!flag)) { EG(scope) = old_scope; if (return_value_ptr) { @@ -7202,7 +6884,7 @@ static int zephir_return_property(zval *return_value, zval **return_value_ptr, z static int zephir_read_property_zval(zval **result, zval *object, zval *property, int flags TSRMLS_DC) { - if (unlikely(Z_TYPE_P(property) != IS_STRING)) { + if (UNEXPECTED(Z_TYPE_P(property) != IS_STRING)) { if ((flags & PH_NOISY) == PH_NOISY) { php_error_docref(NULL TSRMLS_CC, E_NOTICE, "Cannot access empty property %d", Z_TYPE_P(property)); @@ -7301,7 +6983,7 @@ static int zephir_update_property_this_quick(zval *object, const char *property_ zend_class_entry *ce, *old_scope; - if (unlikely(Z_TYPE_P(object) != IS_OBJECT)) { + if (UNEXPECTED(Z_TYPE_P(object) != IS_OBJECT)) { php_error_docref(NULL TSRMLS_CC, E_WARNING, "Attempt to assign property of non-object"); return FAILURE; } @@ -7321,11 +7003,11 @@ static int zephir_update_property_this_quick(zval *object, const char *property_ zobj = zend_objects_get_address(object TSRMLS_CC); - if (likely(zephir_hash_quick_find(&ce->properties_info, property_name, property_length + 1, key, (void **) &property_info) == SUCCESS)) { + if (EXPECTED(zend_hash_quick_find(&ce->properties_info, property_name, property_length + 1, key, (void **) &property_info) == SUCCESS)) { assert(property_info != NULL); /** This is as zend_std_write_property, but we're not interesed in validate properties visibility */ - if (property_info->offset >= 0 ? (zobj->properties ? ((variable_ptr = (zval**) zobj->properties_table[property_info->offset]) != NULL) : (*(variable_ptr = &zobj->properties_table[property_info->offset]) != NULL)) : (EXPECTED(zobj->properties != NULL) && EXPECTED(zephir_hash_quick_find(zobj->properties, property_info->name, property_info->name_length + 1, property_info->h, (void **) &variable_ptr) == SUCCESS))) { + if (property_info->offset >= 0 ? (zobj->properties ? ((variable_ptr = (zval**) zobj->properties_table[property_info->offset]) != NULL) : (*(variable_ptr = &zobj->properties_table[property_info->offset]) != NULL)) : (EXPECTED(zobj->properties != NULL) && EXPECTED(zend_hash_quick_find(zobj->properties, property_info->name, property_info->name_length + 1, property_info->h, (void **) &variable_ptr) == SUCCESS))) { if (EXPECTED(*variable_ptr != value)) { @@ -7503,7 +7185,7 @@ static int zephir_update_property_array_string(zval *object, char *property, uns zval *tmp; int separated = 0; - if (likely(Z_TYPE_P(object) == IS_OBJECT)) { + if (EXPECTED(Z_TYPE_P(object) == IS_OBJECT)) { zephir_read_property(&tmp, object, property, property_length, PH_NOISY_CC); @@ -7692,7 +7374,7 @@ static int zephir_method_quick_exists_ex(const zval *object, const char *method_ zend_class_entry *ce; - if (likely(Z_TYPE_P(object) == IS_OBJECT)) { + if (EXPECTED(Z_TYPE_P(object) == IS_OBJECT)) { ce = Z_OBJCE_P(object); } else { if (Z_TYPE_P(object) == IS_STRING) { @@ -7703,7 +7385,7 @@ static int zephir_method_quick_exists_ex(const zval *object, const char *method_ } while (ce) { - if (zephir_hash_quick_exists(&ce->function_table, method_name, method_len, hash)) { + if (zend_hash_quick_exists(&ce->function_table, method_name, method_len, hash)) { return SUCCESS; } ce = ce->parent; @@ -7942,7 +7624,7 @@ static int zephir_read_class_property(zval **result, int type, const char *prope type &= ZEND_FETCH_CLASS_MASK; ce = zend_fetch_class(NULL, 0, type TSRMLS_CC); - if (likely(ce != NULL)) { + if (EXPECTED(ce != NULL)) { return zephir_read_static_property_ce(result, ce, property, len TSRMLS_CC); } @@ -8007,7 +7689,7 @@ static int zephir_create_instance_params(zval *return_value, const zval *class_n zval **item; int i = 0; - if (likely(param_count) <= 10) { + if (EXPECTED(param_count <= 10)) { params_ptr = static_params; } else { params_arr = emalloc(param_count * sizeof(zval*)); @@ -8027,7 +7709,7 @@ static int zephir_create_instance_params(zval *return_value, const zval *class_n outcome = zephir_call_class_method_aparams(NULL, ce, zephir_fcall_method, return_value, SL("__construct"), NULL, 0, param_count, params_ptr TSRMLS_CC); - if (unlikely(params_arr != NULL)) { + if (UNEXPECTED(params_arr != NULL)) { efree(params_arr); } } @@ -8139,7 +7821,7 @@ static int zephir_fetch_property(zval **result, zval *object, const char *proper static int zephir_fetch_property_zval(zval **result, zval *object, zval *property, int silent TSRMLS_DC) { - if (unlikely(Z_TYPE_P(property) != IS_STRING)) { + if (UNEXPECTED(Z_TYPE_P(property) != IS_STRING)) { *result = ZEPHIR_GLOBAL(global_null); Z_ADDREF_P(*result); return 0; @@ -8176,6 +7858,25 @@ static int zephir_create_closure_ex(zval *return_value, zval *this_ptr, zend_cla +static zval zephir_get_current_key_w(const HashTable *hash_table, HashPosition *hash_position) +{ + Bucket *p; + zval result; + + INIT_ZVAL(result); + p = hash_position ? (*hash_position) : hash_table->pInternalPointer; + + if (p) { + if (p->nKeyLength) { + ZVAL_STRINGL(&result, (char *) p->arKey, p->nKeyLength - 1, 0); + } else { + ZVAL_LONG(&result, p->h); + } + } + + return result; +} + static int zephir_array_isset_fetch(zval **fetched, const zval *arr, zval *index, int readonly TSRMLS_DC) { HashTable *h; @@ -8193,7 +7894,7 @@ static int zephir_array_isset_fetch(zval **fetched, const zval *arr, zval *index h = Z_ARRVAL_P(arr); switch (Z_TYPE_P(index)) { case IS_NULL: - result = zephir_hash_find(h, SS(""), (void**)&val); + result = zend_hash_find(h, SS(""), (void**)&val); break; case IS_DOUBLE: @@ -8238,8 +7939,8 @@ static int zephir_array_isset_quick_string_fetch(zval **fetched, zval *arr, char zval **zv; - if (likely(Z_TYPE_P(arr) == IS_ARRAY)) { - if (zephir_hash_quick_find(Z_ARRVAL_P(arr), index, index_length, key, (void**) &zv) == SUCCESS) { + if (EXPECTED(Z_TYPE_P(arr) == IS_ARRAY)) { + if (zend_hash_quick_find(Z_ARRVAL_P(arr), index, index_length, key, (void**) &zv) == SUCCESS) { *fetched = *zv; if (!readonly) { Z_ADDREF_P(*fetched); @@ -8264,7 +7965,7 @@ static int zephir_array_isset_long_fetch(zval **fetched, zval *arr, unsigned lon zval **zv; - if (likely(Z_TYPE_P(arr) == IS_ARRAY)) { + if (EXPECTED(Z_TYPE_P(arr) == IS_ARRAY)) { if (zend_hash_index_find(Z_ARRVAL_P(arr), index, (void**)&zv) == SUCCESS) { *fetched = *zv; if (!readonly) { @@ -8292,7 +7993,7 @@ static int ZEPHIR_FASTCALL zephir_array_isset(const zval *arr, zval *index) { h = Z_ARRVAL_P(arr); switch (Z_TYPE_P(index)) { case IS_NULL: - return zephir_hash_exists(h, SS("")); + return zend_hash_exists(h, SS("")); case IS_DOUBLE: return zend_hash_index_exists(h, (ulong)Z_DVAL_P(index)); @@ -8318,7 +8019,7 @@ static int ZEPHIR_FASTCALL zephir_array_isset_string(const zval *arr, const char static int ZEPHIR_FASTCALL zephir_array_isset_quick_string(const zval *arr, const char *index, uint index_length, unsigned long key) { - if (likely(Z_TYPE_P(arr) == IS_ARRAY)) { + if (EXPECTED(Z_TYPE_P(arr) == IS_ARRAY)) { return zend_hash_quick_exists(Z_ARRVAL_P(arr), index, index_length, key); } @@ -8327,7 +8028,7 @@ static int ZEPHIR_FASTCALL zephir_array_isset_quick_string(const zval *arr, cons static int ZEPHIR_FASTCALL zephir_array_isset_long(const zval *arr, unsigned long index) { - if (likely(Z_TYPE_P(arr) == IS_ARRAY)) { + if (EXPECTED(Z_TYPE_P(arr) == IS_ARRAY)) { return zend_hash_index_exists(Z_ARRVAL_P(arr), index); } @@ -8612,7 +8313,7 @@ static int zephir_array_fetch(zval **return_value, zval *arr, zval *index, int f ht = Z_ARRVAL_P(arr); switch (Z_TYPE_P(index)) { case IS_NULL: - result = zephir_hash_find(ht, SS(""), (void**) &zv); + result = zend_hash_find(ht, SS(""), (void**) &zv); sidx = ""; break; @@ -8669,8 +8370,8 @@ static int zephir_array_fetch_quick_string(zval **return_value, zval *arr, const zval **zv; - if (likely(Z_TYPE_P(arr) == IS_ARRAY)) { - if (zephir_hash_quick_find(Z_ARRVAL_P(arr), index, index_length, key, (void**) &zv) == SUCCESS) { + if (EXPECTED(Z_TYPE_P(arr) == IS_ARRAY)) { + if (zend_hash_quick_find(Z_ARRVAL_P(arr), index, index_length, key, (void**) &zv) == SUCCESS) { *return_value = *zv; if ((flags & PH_READONLY) != PH_READONLY) { Z_ADDREF_PP(return_value); @@ -8702,7 +8403,7 @@ static int zephir_array_fetch_long(zval **return_value, zval *arr, unsigned long zval **zv; - if (likely(Z_TYPE_P(arr) == IS_ARRAY)) { + if (EXPECTED(Z_TYPE_P(arr) == IS_ARRAY)) { if (zend_hash_index_find(Z_ARRVAL_P(arr), index, (void**)&zv) == SUCCESS) { *return_value = *zv; if ((flags & PH_READONLY) != PH_READONLY) { @@ -8865,7 +8566,7 @@ static void zephir_array_merge_recursive_n(zval **a1, zval *a2 TSRMLS_DC) static void zephir_array_unshift(zval *arr, zval *arg TSRMLS_DC) { - if (likely(Z_TYPE_P(arr) == IS_ARRAY)) { + if (EXPECTED(Z_TYPE_P(arr) == IS_ARRAY)) { zval** args[1] = { &arg }; @@ -8897,7 +8598,7 @@ static void zephir_array_keys(zval *return_value, zval *input TSRMLS_DC) ulong num_key; HashPosition pos; - if (likely(Z_TYPE_P(input) == IS_ARRAY)) { + if (EXPECTED(Z_TYPE_P(input) == IS_ARRAY)) { array_init_size(return_value, zend_hash_num_elements(Z_ARRVAL_P(input))); @@ -8927,7 +8628,7 @@ static void zephir_array_keys(zval *return_value, zval *input TSRMLS_DC) static void zephir_array_values(zval *return_value, zval *arr) { - if (likely(Z_TYPE_P(arr) == IS_ARRAY)) { + if (EXPECTED(Z_TYPE_P(arr) == IS_ARRAY)) { zval **entry; HashPosition pos; @@ -8968,7 +8669,7 @@ static int zephir_array_key_exists(zval *arr, zval *key TSRMLS_DC) static int zephir_array_is_associative(zval *arr) { - if (likely(Z_TYPE_P(arr) == IS_ARRAY)) { + if (EXPECTED(Z_TYPE_P(arr) == IS_ARRAY)) { HashPosition pos; zval **entry; char *skey; @@ -9202,7 +8903,7 @@ static void ZEPHIR_FASTCALL zephir_create_array(zval *return_value, uint size, i if (size > 0) { hashTable = (HashTable *) emalloc(sizeof(HashTable)); - zephir_hash_init(hashTable, size, NULL, ZVAL_PTR_DTOR, 0); + zend_hash_init(hashTable, size, NULL, ZVAL_PTR_DTOR, 0); if (initialize) { @@ -9229,9 +8930,6 @@ static void ZEPHIR_FASTCALL zephir_create_array(zval *return_value, uint size, i - - - #if PHP_VERSION_ID >= 50600 #if ZEND_MODULE_API_NO >= 20141001 @@ -10656,7 +10354,7 @@ static void zephir_fast_strtolower(zval *return_value, zval *str){ } static void zephir_strtolower_inplace(zval *s) { - if (likely(Z_TYPE_P(s) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(s) == IS_STRING)) { php_strtolower(Z_STRVAL_P(s), Z_STRLEN_P(s)); } } @@ -10769,7 +10467,7 @@ static void zephir_camelize(zval *return_value, const zval *str, const zval *del smart_str camelize_str = {0}; char *marker, ch, *delim; - if (unlikely(Z_TYPE_P(str) != IS_STRING)) { + if (UNEXPECTED(Z_TYPE_P(str) != IS_STRING)) { zend_error(E_WARNING, "Invalid arguments supplied for camelize()"); RETURN_EMPTY_STRING(); } @@ -10863,7 +10561,7 @@ static void zephir_uncamelize(zval *return_value, const zval *str, const zval *d static void zephir_fast_explode(zval *return_value, zval *delimiter, zval *str, long limit TSRMLS_DC) { - if (unlikely(Z_TYPE_P(str) != IS_STRING || Z_TYPE_P(delimiter) != IS_STRING)) { + if (UNEXPECTED(Z_TYPE_P(str) != IS_STRING || Z_TYPE_P(delimiter) != IS_STRING)) { zend_error(E_WARNING, "Invalid arguments supplied for explode()"); RETURN_EMPTY_STRING(); } @@ -10876,7 +10574,7 @@ static void zephir_fast_explode_str(zval *return_value, const char *delimiter, i zval delimiter_zval; - if (unlikely(Z_TYPE_P(str) != IS_STRING)) { + if (UNEXPECTED(Z_TYPE_P(str) != IS_STRING)) { zend_error(E_WARNING, "Invalid arguments supplied for explode()"); RETURN_EMPTY_STRING(); } @@ -10927,7 +10625,7 @@ static void zephir_fast_strpos(zval *return_value, const zval *haystack, const z const char *found = NULL; - if (unlikely(Z_TYPE_P(haystack) != IS_STRING || Z_TYPE_P(needle) != IS_STRING)) { + if (UNEXPECTED(Z_TYPE_P(haystack) != IS_STRING || Z_TYPE_P(needle) != IS_STRING)) { ZVAL_NULL(return_value); zend_error(E_WARNING, "Invalid arguments supplied for strpos()"); return; @@ -10959,7 +10657,7 @@ static void zephir_fast_strpos_str(zval *return_value, const zval *haystack, cha const char *found = NULL; - if (unlikely(Z_TYPE_P(haystack) != IS_STRING)) { + if (UNEXPECTED(Z_TYPE_P(haystack) != IS_STRING)) { ZVAL_NULL(return_value); zend_error(E_WARNING, "Invalid arguments supplied for strpos()"); return; @@ -10979,7 +10677,7 @@ static void zephir_fast_stripos_str(zval *return_value, zval *haystack, char *ne const char *found = NULL; char *needle_dup, *haystack_dup; - if (unlikely(Z_TYPE_P(haystack) != IS_STRING)) { + if (UNEXPECTED(Z_TYPE_P(haystack) != IS_STRING)) { ZVAL_NULL(return_value); zend_error(E_WARNING, "Invalid arguments supplied for stripos()"); return; @@ -11778,7 +11476,7 @@ static int zephir_json_decode(zval *return_value, zval **return_value_ptr, zval zval copy; int use_copy = 0; - if (unlikely(Z_TYPE_P(v) != IS_STRING)) { + if (UNEXPECTED(Z_TYPE_P(v) != IS_STRING)) { zend_make_printable_zval(v, ©, &use_copy); if (use_copy) { v = © @@ -11787,7 +11485,7 @@ static int zephir_json_decode(zval *return_value, zval **return_value_ptr, zval php_json_decode(return_value, Z_STRVAL_P(v), Z_STRLEN_P(v), assoc, 512 /* JSON_PARSER_DEFAULT_DEPTH */ TSRMLS_CC); - if (unlikely(use_copy)) { + if (UNEXPECTED(use_copy)) { zval_dtor(©); } @@ -11832,7 +11530,7 @@ static void zephir_lcfirst(zval *return_value, zval *s) { char *c; int use_copy = 0; - if (unlikely(Z_TYPE_P(s) != IS_STRING)) { + if (UNEXPECTED(Z_TYPE_P(s) != IS_STRING)) { zend_make_printable_zval(s, ©, &use_copy); if (use_copy) { s = © @@ -11848,7 +11546,7 @@ static void zephir_lcfirst(zval *return_value, zval *s) { *c = tolower((unsigned char)*c); } - if (unlikely(use_copy)) { + if (UNEXPECTED(use_copy)) { zval_dtor(©); } } @@ -11859,7 +11557,7 @@ static void zephir_ucfirst(zval *return_value, zval *s) { char *c; int use_copy = 0; - if (unlikely(Z_TYPE_P(s) != IS_STRING)) { + if (UNEXPECTED(Z_TYPE_P(s) != IS_STRING)) { zend_make_printable_zval(s, ©, &use_copy); if (use_copy) { s = © @@ -11875,7 +11573,7 @@ static void zephir_ucfirst(zval *return_value, zval *s) { *c = toupper((unsigned char)*c); } - if (unlikely(use_copy)) { + if (UNEXPECTED(use_copy)) { zval_dtor(©); } } @@ -11916,7 +11614,7 @@ static void zephir_htmlspecialchars(zval *return_value, zval *string, zval *quot int qs, use_copy = 0; size_t escaped_len; - if (unlikely(Z_TYPE_P(string) != IS_STRING)) { + if (UNEXPECTED(Z_TYPE_P(string) != IS_STRING)) { zend_make_printable_zval(string, ©, &use_copy); if (use_copy) { string = © @@ -11929,7 +11627,7 @@ static void zephir_htmlspecialchars(zval *return_value, zval *string, zval *quot escaped = php_escape_html_entities_ex((unsigned char *)(Z_STRVAL_P(string)), Z_STRLEN_P(string), &escaped_len, 0, qs, cs, 1 TSRMLS_CC); ZVAL_STRINGL(return_value, escaped, escaped_len, 0); - if (unlikely(use_copy)) { + if (UNEXPECTED(use_copy)) { zval_dtor(©); } } @@ -11941,7 +11639,7 @@ static void zephir_htmlentities(zval *return_value, zval *string, zval *quoting, int qs, use_copy = 0; size_t escaped_len; - if (unlikely(Z_TYPE_P(string) != IS_STRING)) { + if (UNEXPECTED(Z_TYPE_P(string) != IS_STRING)) { zend_make_printable_zval(string, ©, &use_copy); if (use_copy) { string = © @@ -11954,7 +11652,7 @@ static void zephir_htmlentities(zval *return_value, zval *string, zval *quoting, escaped = php_escape_html_entities_ex((unsigned char *)(Z_STRVAL_P(string)), Z_STRLEN_P(string), &escaped_len, 1, qs, cs, 1 TSRMLS_CC); ZVAL_STRINGL(return_value, escaped, escaped_len, 0); - if (unlikely(use_copy)) { + if (UNEXPECTED(use_copy)) { zval_dtor(©); } } @@ -11980,7 +11678,7 @@ static void zephir_date(zval *return_value, zval *format, zval *timestamp TSRMLS int use_copy = 0; char *formatted; - if (unlikely(Z_TYPE_P(format) != IS_STRING)) { + if (UNEXPECTED(Z_TYPE_P(format) != IS_STRING)) { zend_make_printable_zval(format, ©, &use_copy); if (use_copy) { format = © @@ -11992,7 +11690,7 @@ static void zephir_date(zval *return_value, zval *format, zval *timestamp TSRMLS formatted = php_format_date(Z_STRVAL_P(format), Z_STRLEN_P(format), ts, 1 TSRMLS_CC); ZVAL_STRING(return_value, formatted, 0); - if (unlikely(use_copy)) { + if (UNEXPECTED(use_copy)) { zval_dtor(©); } } @@ -12002,7 +11700,7 @@ static void zephir_addslashes(zval *return_value, zval *str TSRMLS_DC) zval copy; int use_copy = 0; - if (unlikely(Z_TYPE_P(str) != IS_STRING)) { + if (UNEXPECTED(Z_TYPE_P(str) != IS_STRING)) { zend_make_printable_zval(str, ©, &use_copy); if (use_copy) { str = © @@ -12011,7 +11709,7 @@ static void zephir_addslashes(zval *return_value, zval *str TSRMLS_DC) ZVAL_STRING(return_value, php_addslashes(Z_STRVAL_P(str), Z_STRLEN_P(str), &Z_STRLEN_P(return_value), 0 TSRMLS_CC), 0); - if (unlikely(use_copy)) { + if (UNEXPECTED(use_copy)) { zval_dtor(©); } } @@ -12021,7 +11719,7 @@ static void zephir_stripslashes(zval *return_value, zval *str TSRMLS_DC) zval copy; int use_copy = 0; - if (unlikely(Z_TYPE_P(str) != IS_STRING)) { + if (UNEXPECTED(Z_TYPE_P(str) != IS_STRING)) { zend_make_printable_zval(str, ©, &use_copy); if (use_copy) { str = © @@ -12031,7 +11729,7 @@ static void zephir_stripslashes(zval *return_value, zval *str TSRMLS_DC) ZVAL_STRINGL(return_value, Z_STRVAL_P(str), Z_STRLEN_P(str), 1); php_stripslashes(Z_STRVAL_P(return_value), &Z_STRLEN_P(return_value) TSRMLS_CC); - if (unlikely(use_copy)) { + if (UNEXPECTED(use_copy)) { zval_dtor(©); } } @@ -12042,7 +11740,7 @@ static void zephir_stripcslashes(zval *return_value, zval *str TSRMLS_DC) zval copy; int use_copy = 0; - if (unlikely(Z_TYPE_P(str) != IS_STRING)) { + if (UNEXPECTED(Z_TYPE_P(str) != IS_STRING)) { zend_make_printable_zval(str, ©, &use_copy); if (use_copy) { str = © @@ -12052,7 +11750,7 @@ static void zephir_stripcslashes(zval *return_value, zval *str TSRMLS_DC) ZVAL_STRINGL(return_value, Z_STRVAL_P(str), Z_STRLEN_P(str), 1); php_stripcslashes(Z_STRVAL_P(return_value), &Z_STRLEN_P(return_value)); - if (unlikely(use_copy)) { + if (UNEXPECTED(use_copy)) { zval_dtor(©); } } @@ -12081,6 +11779,35 @@ static int zephir_hash_equals(const zval *known_zval, const zval *user_zval) return (int) (result == 0); } +static void zephir_string_to_hex(zval *return_value, zval *var) +{ + int use_copy = 0; + zval copy; + size_t i; + char *s; + char *res; + + if (Z_TYPE_P(var) != IS_STRING) { + zend_make_printable_zval(var, ©, &use_copy); + if (use_copy) { + var = © + } + } + + res = emalloc(2*Z_STRLEN_P(var) + 1); + s = Z_STRVAL_P(var); + for (i=0; iname, method_name, possible_method); - } else { - zephir_throw_exception_format(spl_ce_RuntimeException TSRMLS_CC, "Call to undefined method %s::%s()", ce->name, method_name); - } + zephir_throw_exception_format(spl_ce_RuntimeException TSRMLS_CC, "Call to undefined method %s::%s()", ce->name, method_name); break; default: @@ -13064,7 +12770,7 @@ static void zephir_eval_php(zval *str, zval *retval_ptr, char *context TSRMLS_DC static int zephir_require_ret(zval **return_value_ptr, const char *require_path TSRMLS_DC) { zend_file_handle file_handle; - int ret, use_ret; + int ret; zend_op_array *new_op_array; #ifndef ZEPHIR_RELEASE @@ -13080,8 +12786,6 @@ static int zephir_require_ret(zval **return_value_ptr, const char *require_path return FAILURE; } - use_ret = !!return_value_ptr; - file_handle.filename = require_path; file_handle.free_filename = 0; file_handle.type = ZEND_HANDLE_FILENAME; @@ -13475,7 +13179,7 @@ static void zephir_file_put_contents(zval *return_value, zval *filename, zval *d static void zephir_is_dir(zval *return_value, zval *path TSRMLS_DC) { - if (likely(Z_TYPE_P(path) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(path) == IS_STRING)) { php_stat(Z_STRVAL_P(path), (php_stat_len)(Z_STRLEN_P(path)), FS_IS_DIR, return_value TSRMLS_CC); } else { ZVAL_FALSE(return_value); @@ -13484,12 +13188,12 @@ static void zephir_is_dir(zval *return_value, zval *path TSRMLS_DC) static void zephir_unlink(zval *return_value, zval *path TSRMLS_DC) { - if (likely(Z_TYPE_P(path) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(path) == IS_STRING)) { php_stream_context *context; php_stream_wrapper *wrapper; zval *zctx = NULL; - if (unlikely(strlen(Z_STRVAL_P(path)) != Z_STRLEN_P(path))) { + if (UNEXPECTED(strlen(Z_STRVAL_P(path)) != Z_STRLEN_P(path))) { ZVAL_FALSE(return_value); return; } @@ -13512,7 +13216,7 @@ static void zephir_unlink(zval *return_value, zval *path TSRMLS_DC) static void zephir_filemtime(zval *return_value, zval *path TSRMLS_DC) { - if (likely(Z_TYPE_P(path) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(path) == IS_STRING)) { php_stat(Z_STRVAL_P(path), (php_stat_len)(Z_STRLEN_P(path)), FS_MTIME, return_value TSRMLS_CC); } else { ZVAL_FALSE(return_value); @@ -13521,7 +13225,7 @@ static void zephir_filemtime(zval *return_value, zval *path TSRMLS_DC) static void zephir_basename(zval *return_value, zval *path TSRMLS_DC) { - if (likely(Z_TYPE_P(path) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(path) == IS_STRING)) { char *ret; size_t ret_len; @@ -16982,6 +16686,16 @@ static void zephir_var_dump(zval **var TSRMLS_DC) { php_var_dump(var, 1 TSRMLS_CC); } +static void zephir_get_defined_vars(zval *return_value TSRMLS_DC) +{ + if (!EG(active_symbol_table)) { + zend_rebuild_symbol_table(TSRMLS_C); + } + + array_init_size(return_value, zend_hash_num_elements(EG(active_symbol_table))); + zend_hash_copy(Z_ARRVAL_P(return_value), EG(active_symbol_table), (copy_ctor_func_t)zval_add_ref, NULL, sizeof(zval *)); +} + @@ -17377,8 +17091,8 @@ if (get_as_float && ZEPHIR_IS_TRUE(get_as_float)) { -static void zephir_exit_empty() { - TSRMLS_FETCH(); +static void zephir_exit_empty() +{ zend_bailout(); } @@ -17463,76 +17177,6 @@ static int phalcon_cssmin(zval *return_value, zval *style TSRMLS_DC); #endif /* PHALCON_ASSETS_FILTERS_CSSMINIFIER_H */ -/* jsmin.c - 2013-03-29 - -Copyright (c) 2002 Douglas Crockford (www.crockford.com) - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to deal in -the Software without restriction, including without limitation the rights to -use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies -of the Software, and to permit persons to whom the Software is furnished to do -so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -The Software shall be used for Good, not Evil. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. -*/ - -#ifndef PHALCON_ASSETS_FILTERS_CSSMINIFIER_H -#define PHALCON_ASSETS_FILTERS_CSSMINIFIER_H - - -static int phalcon_cssmin(zval *return_value, zval *style TSRMLS_DC); - -#endif /* PHALCON_ASSETS_FILTERS_CSSMINIFIER_H */ - - -/* jsmin.c - 2013-03-29 - -Copyright (c) 2002 Douglas Crockford (www.crockford.com) - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to deal in -the Software without restriction, including without limitation the rights to -use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies -of the Software, and to permit persons to whom the Software is furnished to do -so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -The Software shall be used for Good, not Evil. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. -*/ - -#ifndef PHALCON_ASSETS_FILTERS_JSMINIFIER_H -#define PHALCON_ASSETS_FILTERS_JSMINIFIER_H - - -static int phalcon_jsmin(zval *return_value, zval *script TSRMLS_DC); - -#endif /* PHALCON_ASSETS_FILTERS_JSMINIFIER_H */ - - #ifdef HAVE_CONFIG_H #endif @@ -17746,11 +17390,11 @@ static PHP_METHOD(Phalcon_Application, getModule) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -17783,11 +17427,11 @@ static PHP_METHOD(Phalcon_Application, setDefaultModule) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &defaultModule_param); - if (unlikely(Z_TYPE_P(defaultModule_param) != IS_STRING && Z_TYPE_P(defaultModule_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(defaultModule_param) != IS_STRING && Z_TYPE_P(defaultModule_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'defaultModule' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(defaultModule_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(defaultModule_param) == IS_STRING)) { zephir_get_strval(defaultModule, defaultModule_param); } else { ZEPHIR_INIT_VAR(defaultModule); @@ -17875,8 +17519,8 @@ static PHP_METHOD(Phalcon_Config, __construct) { zephir_is_iterable(arrayConfig, &_1, &_0, 0, 0, "phalcon/config.zep", 63); for ( - ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS - ; zephir_hash_move_forward_ex(_1, &_0) + ; zend_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS + ; zend_hash_move_forward_ex(_1, &_0) ) { ZEPHIR_GET_HMKEY(key, _1, _0); ZEPHIR_GET_HVALUE(value, _2); @@ -18029,8 +17673,8 @@ static PHP_METHOD(Phalcon_Config, toArray) { zephir_check_call_status(); zephir_is_iterable(_0, &_2, &_1, 0, 0, "phalcon/config.zep", 196); for ( - ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS - ; zephir_hash_move_forward_ex(_2, &_1) + ; zend_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS + ; zend_hash_move_forward_ex(_2, &_1) ) { ZEPHIR_GET_HMKEY(key, _2, _1); ZEPHIR_GET_HVALUE(value, _3); @@ -18110,8 +17754,8 @@ static PHP_METHOD(Phalcon_Config, _merge) { zephir_check_call_status(); zephir_is_iterable(_0, &_2, &_1, 0, 0, "phalcon/config.zep", 261); for ( - ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS - ; zephir_hash_move_forward_ex(_2, &_1) + ; zend_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS + ; zend_hash_move_forward_ex(_2, &_1) ) { ZEPHIR_GET_HMKEY(key, _2, _1); ZEPHIR_GET_HVALUE(value, _3); @@ -18192,7 +17836,7 @@ static PHP_METHOD(Phalcon_Crypt, setPadding) { zephir_fetch_params(0, 1, 0, &scheme_param); - if (unlikely(Z_TYPE_P(scheme_param) != IS_LONG)) { + if (UNEXPECTED(Z_TYPE_P(scheme_param) != IS_LONG)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'scheme' must be a int") TSRMLS_CC); RETURN_NULL(); } @@ -18214,11 +17858,11 @@ static PHP_METHOD(Phalcon_Crypt, setCipher) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &cipher_param); - if (unlikely(Z_TYPE_P(cipher_param) != IS_STRING && Z_TYPE_P(cipher_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(cipher_param) != IS_STRING && Z_TYPE_P(cipher_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'cipher' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(cipher_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(cipher_param) == IS_STRING)) { zephir_get_strval(cipher, cipher_param); } else { ZEPHIR_INIT_VAR(cipher); @@ -18247,11 +17891,11 @@ static PHP_METHOD(Phalcon_Crypt, setKey) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &key_param); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { ZEPHIR_INIT_VAR(key); @@ -18284,22 +17928,22 @@ static PHP_METHOD(Phalcon_Crypt, _cryptPadText) { zephir_fetch_params(1, 4, 0, &text_param, &mode_param, &blockSize_param, &paddingType_param); zephir_get_strval(text, text_param); - if (unlikely(Z_TYPE_P(mode_param) != IS_STRING && Z_TYPE_P(mode_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(mode_param) != IS_STRING && Z_TYPE_P(mode_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'mode' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(mode_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(mode_param) == IS_STRING)) { zephir_get_strval(mode, mode_param); } else { ZEPHIR_INIT_VAR(mode); ZVAL_EMPTY_STRING(mode); } - if (unlikely(Z_TYPE_P(blockSize_param) != IS_LONG)) { + if (UNEXPECTED(Z_TYPE_P(blockSize_param) != IS_LONG)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'blockSize' must be a int") TSRMLS_CC); RETURN_MM_NULL(); } blockSize = Z_LVAL_P(blockSize_param); - if (unlikely(Z_TYPE_P(paddingType_param) != IS_LONG)) { + if (UNEXPECTED(Z_TYPE_P(paddingType_param) != IS_LONG)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'paddingType' must be a int") TSRMLS_CC); RETURN_MM_NULL(); } @@ -18453,22 +18097,22 @@ static PHP_METHOD(Phalcon_Crypt, _cryptUnpadText) { zephir_fetch_params(1, 4, 0, &text_param, &mode_param, &blockSize_param, &paddingType_param); zephir_get_strval(text, text_param); - if (unlikely(Z_TYPE_P(mode_param) != IS_STRING && Z_TYPE_P(mode_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(mode_param) != IS_STRING && Z_TYPE_P(mode_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'mode' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(mode_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(mode_param) == IS_STRING)) { zephir_get_strval(mode, mode_param); } else { ZEPHIR_INIT_VAR(mode); ZVAL_EMPTY_STRING(mode); } - if (unlikely(Z_TYPE_P(blockSize_param) != IS_LONG)) { + if (UNEXPECTED(Z_TYPE_P(blockSize_param) != IS_LONG)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'blockSize' must be a int") TSRMLS_CC); RETURN_MM_NULL(); } blockSize = Z_LVAL_P(blockSize_param); - if (unlikely(Z_TYPE_P(paddingType_param) != IS_LONG)) { + if (UNEXPECTED(Z_TYPE_P(paddingType_param) != IS_LONG)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'paddingType' must be a int") TSRMLS_CC); RETURN_MM_NULL(); } @@ -18670,11 +18314,11 @@ static PHP_METHOD(Phalcon_Crypt, encrypt) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &text_param, &key_param); - if (unlikely(Z_TYPE_P(text_param) != IS_STRING && Z_TYPE_P(text_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(text_param) != IS_STRING && Z_TYPE_P(text_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'text' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(text_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(text_param) == IS_STRING)) { zephir_get_strval(text, text_param); } else { ZEPHIR_INIT_VAR(text); @@ -18684,11 +18328,11 @@ static PHP_METHOD(Phalcon_Crypt, encrypt) { ZEPHIR_INIT_VAR(key); ZVAL_EMPTY_STRING(key); } else { - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { ZEPHIR_INIT_VAR(key); @@ -18782,11 +18426,11 @@ static PHP_METHOD(Phalcon_Crypt, decrypt) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &text_param, &key); - if (unlikely(Z_TYPE_P(text_param) != IS_STRING && Z_TYPE_P(text_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(text_param) != IS_STRING && Z_TYPE_P(text_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'text' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(text_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(text_param) == IS_STRING)) { zephir_get_strval(text, text_param); } else { ZEPHIR_INIT_VAR(text); @@ -18880,11 +18524,11 @@ static PHP_METHOD(Phalcon_Crypt, encryptBase64) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &text_param, &key, &safe_param); - if (unlikely(Z_TYPE_P(text_param) != IS_STRING && Z_TYPE_P(text_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(text_param) != IS_STRING && Z_TYPE_P(text_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'text' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(text_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(text_param) == IS_STRING)) { zephir_get_strval(text, text_param); } else { ZEPHIR_INIT_VAR(text); @@ -18896,7 +18540,7 @@ static PHP_METHOD(Phalcon_Crypt, encryptBase64) { if (!safe_param) { safe = 0; } else { - if (unlikely(Z_TYPE_P(safe_param) != IS_BOOL)) { + if (UNEXPECTED(Z_TYPE_P(safe_param) != IS_BOOL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'safe' must be a bool") TSRMLS_CC); RETURN_MM_NULL(); } @@ -18936,11 +18580,11 @@ static PHP_METHOD(Phalcon_Crypt, decryptBase64) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &text_param, &key, &safe_param); - if (unlikely(Z_TYPE_P(text_param) != IS_STRING && Z_TYPE_P(text_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(text_param) != IS_STRING && Z_TYPE_P(text_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'text' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(text_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(text_param) == IS_STRING)) { zephir_get_strval(text, text_param); } else { ZEPHIR_INIT_VAR(text); @@ -18952,7 +18596,7 @@ static PHP_METHOD(Phalcon_Crypt, decryptBase64) { if (!safe_param) { safe = 0; } else { - if (unlikely(Z_TYPE_P(safe_param) != IS_BOOL)) { + if (UNEXPECTED(Z_TYPE_P(safe_param) != IS_BOOL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'safe' must be a bool") TSRMLS_CC); RETURN_MM_NULL(); } @@ -19146,11 +18790,11 @@ static PHP_METHOD(Phalcon_Debug, setUri) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &uri_param); - if (unlikely(Z_TYPE_P(uri_param) != IS_STRING && Z_TYPE_P(uri_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(uri_param) != IS_STRING && Z_TYPE_P(uri_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'uri' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(uri_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(uri_param) == IS_STRING)) { zephir_get_strval(uri, uri_param); } else { ZEPHIR_INIT_VAR(uri); @@ -19417,8 +19061,8 @@ static PHP_METHOD(Phalcon_Debug, _getArrayDump) { array_init(dump); zephir_is_iterable(argument, &_2, &_1, 0, 0, "phalcon/debug.zep", 189); for ( - ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS - ; zephir_hash_move_forward_ex(_2, &_1) + ; zend_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS + ; zend_hash_move_forward_ex(_2, &_1) ) { ZEPHIR_GET_HMKEY(k, _2, _1); ZEPHIR_GET_HVALUE(v, _3); @@ -19705,8 +19349,8 @@ static PHP_METHOD(Phalcon_Debug, showTraceItem) { array_init(arguments); zephir_is_iterable(traceArgs, &_18$$14, &_17$$14, 0, 0, "phalcon/debug.zep", 441); for ( - ; zephir_hash_get_current_data_ex(_18$$14, (void**) &_19$$14, &_17$$14) == SUCCESS - ; zephir_hash_move_forward_ex(_18$$14, &_17$$14) + ; zend_hash_get_current_data_ex(_18$$14, (void**) &_19$$14, &_17$$14) == SUCCESS + ; zend_hash_move_forward_ex(_18$$14, &_17$$14) ) { ZEPHIR_GET_HVALUE(argument, _19$$14); ZEPHIR_CALL_METHOD(&_20$$15, this_ptr, "_getvardump", &_21, 0, argument); @@ -19936,8 +19580,8 @@ static PHP_METHOD(Phalcon_Debug, onUncaughtException) { zephir_check_call_status(); zephir_is_iterable(_10$$5, &_12$$5, &_11$$5, 0, 0, "phalcon/debug.zep", 659); for ( - ; zephir_hash_get_current_data_ex(_12$$5, (void**) &_13$$5, &_11$$5) == SUCCESS - ; zephir_hash_move_forward_ex(_12$$5, &_11$$5) + ; zend_hash_get_current_data_ex(_12$$5, (void**) &_13$$5, &_11$$5) == SUCCESS + ; zend_hash_move_forward_ex(_12$$5, &_11$$5) ) { ZEPHIR_GET_HMKEY(n, _12$$5, _11$$5); ZEPHIR_GET_HVALUE(traceItem, _13$$5); @@ -19950,8 +19594,8 @@ static PHP_METHOD(Phalcon_Debug, onUncaughtException) { zephir_concat_self_str(&html, SL("") TSRMLS_CC); zephir_is_iterable(_REQUEST, &_17$$5, &_16$$5, 0, 0, "phalcon/debug.zep", 673); for ( - ; zephir_hash_get_current_data_ex(_17$$5, (void**) &_18$$5, &_16$$5) == SUCCESS - ; zephir_hash_move_forward_ex(_17$$5, &_16$$5) + ; zend_hash_get_current_data_ex(_17$$5, (void**) &_18$$5, &_16$$5) == SUCCESS + ; zend_hash_move_forward_ex(_17$$5, &_16$$5) ) { ZEPHIR_GET_HMKEY(keyRequest, _17$$5, _16$$5); ZEPHIR_GET_HVALUE(value, _18$$5); @@ -19972,8 +19616,8 @@ static PHP_METHOD(Phalcon_Debug, onUncaughtException) { zephir_concat_self_str(&html, SL("") TSRMLS_CC); zephir_is_iterable(_SERVER, &_24$$5, &_23$$5, 0, 0, "phalcon/debug.zep", 683); for ( - ; zephir_hash_get_current_data_ex(_24$$5, (void**) &_25$$5, &_23$$5) == SUCCESS - ; zephir_hash_move_forward_ex(_24$$5, &_23$$5) + ; zend_hash_get_current_data_ex(_24$$5, (void**) &_25$$5, &_23$$5) == SUCCESS + ; zend_hash_move_forward_ex(_24$$5, &_23$$5) ) { ZEPHIR_GET_HMKEY(keyServer, _24$$5, _23$$5); ZEPHIR_GET_HVALUE(value, _25$$5); @@ -19990,8 +19634,8 @@ static PHP_METHOD(Phalcon_Debug, onUncaughtException) { zephir_check_call_status(); zephir_is_iterable(_29$$5, &_31$$5, &_30$$5, 0, 0, "phalcon/debug.zep", 693); for ( - ; zephir_hash_get_current_data_ex(_31$$5, (void**) &_32$$5, &_30$$5) == SUCCESS - ; zephir_hash_move_forward_ex(_31$$5, &_30$$5) + ; zend_hash_get_current_data_ex(_31$$5, (void**) &_32$$5, &_30$$5) == SUCCESS + ; zend_hash_move_forward_ex(_31$$5, &_30$$5) ) { ZEPHIR_GET_HMKEY(keyFile, _31$$5, _30$$5); ZEPHIR_GET_HVALUE(value, _32$$5); @@ -20012,8 +19656,8 @@ static PHP_METHOD(Phalcon_Debug, onUncaughtException) { zephir_concat_self_str(&html, SL("") TSRMLS_CC); zephir_is_iterable(dataVars, &_37$$13, &_36$$13, 0, 0, "phalcon/debug.zep", 711); for ( - ; zephir_hash_get_current_data_ex(_37$$13, (void**) &_38$$13, &_36$$13) == SUCCESS - ; zephir_hash_move_forward_ex(_37$$13, &_36$$13) + ; zend_hash_get_current_data_ex(_37$$13, (void**) &_38$$13, &_36$$13) == SUCCESS + ; zend_hash_move_forward_ex(_37$$13, &_36$$13) ) { ZEPHIR_GET_HMKEY(keyVar, _37$$13, _36$$13); ZEPHIR_GET_HVALUE(dataVar, _38$$13); @@ -20113,11 +19757,11 @@ static PHP_METHOD(Phalcon_Di, set) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 1, &name_param, &definition, &shared_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -20154,11 +19798,11 @@ static PHP_METHOD(Phalcon_Di, setShared) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &name_param, &definition); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -20182,11 +19826,11 @@ static PHP_METHOD(Phalcon_Di, remove) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -20212,11 +19856,11 @@ static PHP_METHOD(Phalcon_Di, attempt) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 1, &name_param, &definition, &shared_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -20256,11 +19900,11 @@ static PHP_METHOD(Phalcon_Di, setRaw) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &name_param, &rawDefinition); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -20283,11 +19927,11 @@ static PHP_METHOD(Phalcon_Di, getRaw) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -20323,11 +19967,11 @@ static PHP_METHOD(Phalcon_Di, getService) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -20363,11 +20007,11 @@ static PHP_METHOD(Phalcon_Di, get) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &name_param, ¶meters); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -20457,11 +20101,11 @@ static PHP_METHOD(Phalcon_Di, getShared) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &name_param, ¶meters); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -20502,11 +20146,11 @@ static PHP_METHOD(Phalcon_Di, has) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -20544,11 +20188,11 @@ static PHP_METHOD(Phalcon_Di, offsetExists) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -20571,11 +20215,11 @@ static PHP_METHOD(Phalcon_Di, offsetSet) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &name_param, &definition); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -20598,11 +20242,11 @@ static PHP_METHOD(Phalcon_Di, offsetGet) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -20624,11 +20268,11 @@ static PHP_METHOD(Phalcon_Di, offsetUnset) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -20650,11 +20294,11 @@ static PHP_METHOD(Phalcon_Di, __call) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &method_param, &arguments); - if (unlikely(Z_TYPE_P(method_param) != IS_STRING && Z_TYPE_P(method_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(method_param) != IS_STRING && Z_TYPE_P(method_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'method' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(method_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(method_param) == IS_STRING)) { zephir_get_strval(method, method_param); } else { ZEPHIR_INIT_VAR(method); @@ -21275,7 +20919,7 @@ static PHP_METHOD(Phalcon_Dispatcher, getModelBinder) { static PHP_METHOD(Phalcon_Dispatcher, dispatch) { - zval *handler = NULL, *e = NULL, *_0$$4 = NULL; + zval *handler = NULL, *e = NULL, *_0, *_1$$4 = NULL; int ZEPHIR_LAST_CALL_STATUS; ZEPHIR_MM_GROW(); @@ -21289,12 +20933,14 @@ static PHP_METHOD(Phalcon_Dispatcher, dispatch) { try_end_1: if (EG(exception)) { - ZEPHIR_CPY_WRT(e, EG(exception)); - if (zephir_instance_of_ev(e, zend_exception_get_default(TSRMLS_C) TSRMLS_CC)) { + ZEPHIR_INIT_VAR(_0); + ZEPHIR_CPY_WRT(_0, EG(exception)); + if (zephir_instance_of_ev(_0, zend_exception_get_default(TSRMLS_C) TSRMLS_CC)) { zend_clear_exception(TSRMLS_C); - ZEPHIR_CALL_METHOD(&_0$$4, this_ptr, "_handleexception", NULL, 0, e); + ZEPHIR_CPY_WRT(e, _0); + ZEPHIR_CALL_METHOD(&_1$$4, this_ptr, "_handleexception", NULL, 0, e); zephir_check_call_status(); - if (ZEPHIR_IS_FALSE_IDENTICAL(_0$$4)) { + if (ZEPHIR_IS_FALSE_IDENTICAL(_1$$4)) { RETURN_MM_BOOL(0); } zephir_throw_exception_debug(e, "phalcon/dispatcher.zep", 413 TSRMLS_CC); @@ -21309,9 +20955,9 @@ static PHP_METHOD(Phalcon_Dispatcher, dispatch) { static PHP_METHOD(Phalcon_Dispatcher, _dispatch) { zval *_30$$6 = NULL; - zval *value = NULL, *handler = NULL, *dependencyInjector = NULL, *namespaceName = NULL, *handlerName = NULL, *actionName = NULL, *params = NULL, *eventsManager = NULL, *actionSuffix = NULL, *handlerClass = NULL, *status = NULL, *actionMethod = NULL, *modelBinder = NULL, *e = NULL, *bindCacheKey = NULL, *_0, *_1$$3, *_2$$3, *_3$$4 = NULL, *_4$$4, *_5$$7 = NULL, *_6$$7 = NULL, *_10$$8 = NULL, *_11$$8 = NULL, *_13$$8, *_14$$6 = NULL, *_49$$6, *_16$$12 = NULL, *_17$$12 = NULL, *_19$$13, *_22$$16 = NULL, *_23$$16 = NULL, *_25$$17, *_26$$19 = NULL, *_27$$19 = NULL, *_29$$20, *_31$$23 = NULL, *_32$$23 = NULL, *_34$$23, *_35$$22 = NULL, *_36$$22 = NULL, *_38$$26, *_39$$28 = NULL, *_40$$28 = NULL, *_42$$28, *_43$$31 = NULL, *_44$$31, *_45$$36 = NULL, *_46$$36 = NULL, *_48$$36, *_50$$39 = NULL, *_51$$40 = NULL, *_52$$40 = NULL, *_54$$40, *_55$$43 = NULL, *_56$$43, *_57$$46 = NULL, *_59$$47 = NULL, *_61$$48, *_62$$51 = NULL, *_63$$51 = NULL, *_65$$51, *_67$$54 = NULL, *_68$$54, *_69$$57; + zval *value = NULL, *handler = NULL, *dependencyInjector = NULL, *namespaceName = NULL, *handlerName = NULL, *actionName = NULL, *params = NULL, *eventsManager = NULL, *actionSuffix = NULL, *handlerClass = NULL, *status = NULL, *actionMethod = NULL, *modelBinder = NULL, *e = NULL, *bindCacheKey = NULL, *_0, *_1$$3, *_2$$3, *_3$$4 = NULL, *_4$$4, *_5$$7 = NULL, *_6$$7 = NULL, *_10$$8 = NULL, *_11$$8 = NULL, *_13$$8, *_14$$6 = NULL, *_49$$6, *_59$$6 = NULL, *_16$$12 = NULL, *_17$$12 = NULL, *_19$$13, *_22$$16 = NULL, *_23$$16 = NULL, *_25$$17, *_26$$19 = NULL, *_27$$19 = NULL, *_29$$20, *_31$$23 = NULL, *_32$$23 = NULL, *_34$$23, *_35$$22 = NULL, *_36$$22 = NULL, *_38$$26, *_39$$28 = NULL, *_40$$28 = NULL, *_42$$28, *_43$$31 = NULL, *_44$$31, *_45$$36 = NULL, *_46$$36 = NULL, *_48$$36, *_50$$39 = NULL, *_51$$40 = NULL, *_52$$40 = NULL, *_54$$40, *_55$$43 = NULL, *_56$$43, *_57$$46 = NULL, *_60$$47 = NULL, *_62$$48, *_63$$51 = NULL, *_64$$51 = NULL, *_66$$51, *_68$$54 = NULL, *_69$$54, *_70$$57; zend_bool hasService = 0, wasFresh; - zephir_fcall_cache_entry *_7 = NULL, *_8 = NULL, *_9 = NULL, *_12 = NULL, *_15 = NULL, *_18 = NULL, *_20 = NULL, *_21 = NULL, *_24 = NULL, *_28 = NULL, *_33 = NULL, *_37 = NULL, *_41 = NULL, *_47 = NULL, *_53 = NULL, *_58 = NULL, *_60 = NULL, *_64 = NULL, *_66 = NULL; + zephir_fcall_cache_entry *_7 = NULL, *_8 = NULL, *_9 = NULL, *_12 = NULL, *_15 = NULL, *_18 = NULL, *_20 = NULL, *_21 = NULL, *_24 = NULL, *_28 = NULL, *_33 = NULL, *_37 = NULL, *_41 = NULL, *_47 = NULL, *_53 = NULL, *_58 = NULL, *_61 = NULL, *_65 = NULL, *_67 = NULL; int ZEPHIR_LAST_CALL_STATUS, numberDispatches = 0; ZEPHIR_MM_GROW(); @@ -21587,14 +21233,16 @@ static PHP_METHOD(Phalcon_Dispatcher, _dispatch) { try_end_1: if (EG(exception)) { - ZEPHIR_CPY_WRT(e, EG(exception)); - if (zephir_instance_of_ev(e, zend_exception_get_default(TSRMLS_C) TSRMLS_CC)) { + ZEPHIR_INIT_NVAR(_59$$6); + ZEPHIR_CPY_WRT(_59$$6, EG(exception)); + if (zephir_instance_of_ev(_59$$6, zend_exception_get_default(TSRMLS_C) TSRMLS_CC)) { zend_clear_exception(TSRMLS_C); - ZEPHIR_CALL_METHOD(&_59$$47, this_ptr, "_handleexception", &_60, 0, e); + ZEPHIR_CPY_WRT(e, _59$$6); + ZEPHIR_CALL_METHOD(&_60$$47, this_ptr, "_handleexception", &_61, 0, e); zephir_check_call_status(); - if (ZEPHIR_IS_FALSE_IDENTICAL(_59$$47)) { - _61$$48 = zephir_fetch_nproperty_this(this_ptr, SL("_finished"), PH_NOISY_CC); - if (ZEPHIR_IS_FALSE_IDENTICAL(_61$$48)) { + if (ZEPHIR_IS_FALSE_IDENTICAL(_60$$47)) { + _62$$48 = zephir_fetch_nproperty_this(this_ptr, SL("_finished"), PH_NOISY_CC); + if (ZEPHIR_IS_FALSE_IDENTICAL(_62$$48)) { continue; } } else { @@ -21605,41 +21253,41 @@ static PHP_METHOD(Phalcon_Dispatcher, _dispatch) { } } if (Z_TYPE_P(eventsManager) == IS_OBJECT) { - ZEPHIR_INIT_NVAR(_63$$51); - ZVAL_STRING(_63$$51, "dispatch:afterExecuteRoute", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(&_62$$51, eventsManager, "fire", &_64, 0, _63$$51, this_ptr, value); - zephir_check_temp_parameter(_63$$51); + ZEPHIR_INIT_NVAR(_64$$51); + ZVAL_STRING(_64$$51, "dispatch:afterExecuteRoute", ZEPHIR_TEMP_PARAM_COPY); + ZEPHIR_CALL_METHOD(&_63$$51, eventsManager, "fire", &_65, 0, _64$$51, this_ptr, value); + zephir_check_temp_parameter(_64$$51); zephir_check_call_status(); - if (ZEPHIR_IS_FALSE_IDENTICAL(_62$$51)) { + if (ZEPHIR_IS_FALSE_IDENTICAL(_63$$51)) { continue; } - _65$$51 = zephir_fetch_nproperty_this(this_ptr, SL("_finished"), PH_NOISY_CC); - if (ZEPHIR_IS_FALSE_IDENTICAL(_65$$51)) { + _66$$51 = zephir_fetch_nproperty_this(this_ptr, SL("_finished"), PH_NOISY_CC); + if (ZEPHIR_IS_FALSE_IDENTICAL(_66$$51)) { continue; } - ZEPHIR_INIT_NVAR(_63$$51); - ZVAL_STRING(_63$$51, "dispatch:afterDispatch", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, eventsManager, "fire", &_66, 0, _63$$51, this_ptr); - zephir_check_temp_parameter(_63$$51); + ZEPHIR_INIT_NVAR(_64$$51); + ZVAL_STRING(_64$$51, "dispatch:afterDispatch", ZEPHIR_TEMP_PARAM_COPY); + ZEPHIR_CALL_METHOD(NULL, eventsManager, "fire", &_67, 0, _64$$51, this_ptr); + zephir_check_temp_parameter(_64$$51); zephir_check_call_status(); } if ((zephir_method_exists_ex(handler, SS("afterexecuteroute") TSRMLS_CC) == SUCCESS)) { - ZEPHIR_CALL_METHOD(&_67$$54, handler, "afterexecuteroute", NULL, 0, this_ptr, value); + ZEPHIR_CALL_METHOD(&_68$$54, handler, "afterexecuteroute", NULL, 0, this_ptr, value); zephir_check_call_status(); - if (ZEPHIR_IS_FALSE_IDENTICAL(_67$$54)) { + if (ZEPHIR_IS_FALSE_IDENTICAL(_68$$54)) { continue; } - _68$$54 = zephir_fetch_nproperty_this(this_ptr, SL("_finished"), PH_NOISY_CC); - if (ZEPHIR_IS_FALSE_IDENTICAL(_68$$54)) { + _69$$54 = zephir_fetch_nproperty_this(this_ptr, SL("_finished"), PH_NOISY_CC); + if (ZEPHIR_IS_FALSE_IDENTICAL(_69$$54)) { continue; } } } if (Z_TYPE_P(eventsManager) == IS_OBJECT) { - ZEPHIR_INIT_VAR(_69$$57); - ZVAL_STRING(_69$$57, "dispatch:afterDispatchLoop", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, eventsManager, "fire", NULL, 0, _69$$57, this_ptr); - zephir_check_temp_parameter(_69$$57); + ZEPHIR_INIT_VAR(_70$$57); + ZVAL_STRING(_70$$57, "dispatch:afterDispatchLoop", ZEPHIR_TEMP_PARAM_COPY); + ZEPHIR_CALL_METHOD(NULL, eventsManager, "fire", NULL, 0, _70$$57, this_ptr); + zephir_check_temp_parameter(_70$$57); zephir_check_call_status(); } RETURN_CCTOR(handler); @@ -22015,8 +21663,8 @@ static PHP_METHOD(Phalcon_Escaper, detectEncoding) { zephir_array_fast_append(_0, _1); zephir_is_iterable(_0, &_3, &_2, 0, 0, "phalcon/escaper.zep", 132); for ( - ; zephir_hash_get_current_data_ex(_3, (void**) &_4, &_2) == SUCCESS - ; zephir_hash_move_forward_ex(_3, &_2) + ; zend_hash_get_current_data_ex(_3, (void**) &_4, &_2) == SUCCESS + ; zend_hash_move_forward_ex(_3, &_2) ) { ZEPHIR_GET_HVALUE(charset, _4); ZEPHIR_CALL_FUNCTION(&_5$$5, "mb_detect_encoding", &_6, 184, str, charset, ZEPHIR_GLOBAL(global_true)); @@ -22262,11 +21910,11 @@ static PHP_METHOD(Phalcon_Filter, add) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &name_param, &handler); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -22311,8 +21959,8 @@ static PHP_METHOD(Phalcon_Filter, sanitize) { if (Z_TYPE_P(value) != IS_NULL) { zephir_is_iterable(filters, &_1$$4, &_0$$4, 0, 0, "phalcon/filter.zep", 108); for ( - ; zephir_hash_get_current_data_ex(_1$$4, (void**) &_2$$4, &_0$$4) == SUCCESS - ; zephir_hash_move_forward_ex(_1$$4, &_0$$4) + ; zend_hash_get_current_data_ex(_1$$4, (void**) &_2$$4, &_0$$4) == SUCCESS + ; zend_hash_move_forward_ex(_1$$4, &_0$$4) ) { ZEPHIR_GET_HVALUE(filter, _2$$4); _3$$5 = Z_TYPE_P(value) == IS_ARRAY; @@ -22324,8 +21972,8 @@ static PHP_METHOD(Phalcon_Filter, sanitize) { array_init(arrayValue); zephir_is_iterable(value, &_5$$6, &_4$$6, 0, 0, "phalcon/filter.zep", 103); for ( - ; zephir_hash_get_current_data_ex(_5$$6, (void**) &_6$$6, &_4$$6) == SUCCESS - ; zephir_hash_move_forward_ex(_5$$6, &_4$$6) + ; zend_hash_get_current_data_ex(_5$$6, (void**) &_6$$6, &_4$$6) == SUCCESS + ; zend_hash_move_forward_ex(_5$$6, &_4$$6) ) { ZEPHIR_GET_HMKEY(itemKey, _5$$6, _4$$6); ZEPHIR_GET_HVALUE(itemValue, _6$$6); @@ -22353,8 +22001,8 @@ static PHP_METHOD(Phalcon_Filter, sanitize) { array_init(sanitizedValue); zephir_is_iterable(value, &_12$$9, &_11$$9, 0, 0, "phalcon/filter.zep", 120); for ( - ; zephir_hash_get_current_data_ex(_12$$9, (void**) &_13$$9, &_11$$9) == SUCCESS - ; zephir_hash_move_forward_ex(_12$$9, &_11$$9) + ; zend_hash_get_current_data_ex(_12$$9, (void**) &_13$$9, &_11$$9) == SUCCESS + ; zend_hash_move_forward_ex(_12$$9, &_11$$9) ) { ZEPHIR_GET_HMKEY(itemKey, _12$$9, _11$$9); ZEPHIR_GET_HVALUE(itemValue, _13$$9); @@ -22382,11 +22030,11 @@ static PHP_METHOD(Phalcon_Filter, _sanitize) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &value, &filter_param); - if (unlikely(Z_TYPE_P(filter_param) != IS_STRING && Z_TYPE_P(filter_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(filter_param) != IS_STRING && Z_TYPE_P(filter_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'filter' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(filter_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(filter_param) == IS_STRING)) { zephir_get_strval(filter, filter_param); } else { ZEPHIR_INIT_VAR(filter); @@ -22891,8 +22539,8 @@ static PHP_METHOD(Phalcon_Flash, outputMessage) { } zephir_is_iterable(message, &_3$$9, &_2$$9, 0, 0, "phalcon/flash.zep", 288); for ( - ; zephir_hash_get_current_data_ex(_3$$9, (void**) &_4$$9, &_2$$9) == SUCCESS - ; zephir_hash_move_forward_ex(_3$$9, &_2$$9) + ; zend_hash_get_current_data_ex(_3$$9, (void**) &_4$$9, &_2$$9) == SUCCESS + ; zend_hash_move_forward_ex(_3$$9, &_2$$9) ) { ZEPHIR_GET_HVALUE(msg, _4$$9); if (autoEscape == 1) { @@ -23044,11 +22692,11 @@ static PHP_METHOD(Phalcon_Kernel, preComputeHashKey) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &key_param); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { ZEPHIR_INIT_VAR(key); @@ -23217,8 +22865,8 @@ static PHP_METHOD(Phalcon_Loader, registerNamespaces) { if (merge) { zephir_is_iterable(preparedNamespaces, &_1$$3, &_0$$3, 0, 0, "phalcon/loader.zep", 123); for ( - ; zephir_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_1$$3, &_0$$3) + ; zend_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS + ; zend_hash_move_forward_ex(_1$$3, &_0$$3) ) { ZEPHIR_GET_HMKEY(name, _1$$3, _0$$3); ZEPHIR_GET_HVALUE(paths, _2$$3); @@ -23258,8 +22906,8 @@ static PHP_METHOD(Phalcon_Loader, prepareNamespace) { array_init(prepared); zephir_is_iterable(namespace, &_1, &_0, 0, 0, "phalcon/loader.zep", 145); for ( - ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS - ; zephir_hash_move_forward_ex(_1, &_0) + ; zend_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS + ; zend_hash_move_forward_ex(_1, &_0) ) { ZEPHIR_GET_HMKEY(name, _1, _0); ZEPHIR_GET_HVALUE(paths, _2); @@ -23477,8 +23125,8 @@ static PHP_METHOD(Phalcon_Loader, loadFiles) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_files"), PH_NOISY_CC); zephir_is_iterable(_0, &_2, &_1, 0, 0, "phalcon/loader.zep", 288); for ( - ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS - ; zephir_hash_move_forward_ex(_2, &_1) + ; zend_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS + ; zend_hash_move_forward_ex(_2, &_1) ) { ZEPHIR_GET_HVALUE(filePath, _3); ZEPHIR_OBS_NVAR(_4$$3); @@ -23527,11 +23175,11 @@ static PHP_METHOD(Phalcon_Loader, autoLoad) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &className_param); - if (unlikely(Z_TYPE_P(className_param) != IS_STRING && Z_TYPE_P(className_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(className_param) != IS_STRING && Z_TYPE_P(className_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'className' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(className_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(className_param) == IS_STRING)) { zephir_get_strval(className, className_param); } else { ZEPHIR_INIT_VAR(className); @@ -23575,8 +23223,8 @@ static PHP_METHOD(Phalcon_Loader, autoLoad) { zephir_read_property_this(&namespaces, this_ptr, SL("_namespaces"), PH_NOISY_CC); zephir_is_iterable(namespaces, &_3, &_2, 0, 0, "phalcon/loader.zep", 392); for ( - ; zephir_hash_get_current_data_ex(_3, (void**) &_4, &_2) == SUCCESS - ; zephir_hash_move_forward_ex(_3, &_2) + ; zend_hash_get_current_data_ex(_3, (void**) &_4, &_2) == SUCCESS + ; zend_hash_move_forward_ex(_3, &_2) ) { ZEPHIR_GET_HMKEY(nsPrefix, _3, _2); ZEPHIR_GET_HVALUE(directories, _4); @@ -23597,8 +23245,8 @@ static PHP_METHOD(Phalcon_Loader, autoLoad) { ZEPHIR_CPY_WRT(fileName, _7$$6); zephir_is_iterable(directories, &_9$$6, &_8$$6, 0, 0, "phalcon/loader.zep", 387); for ( - ; zephir_hash_get_current_data_ex(_9$$6, (void**) &_10$$6, &_8$$6) == SUCCESS - ; zephir_hash_move_forward_ex(_9$$6, &_8$$6) + ; zend_hash_get_current_data_ex(_9$$6, (void**) &_10$$6, &_8$$6) == SUCCESS + ; zend_hash_move_forward_ex(_9$$6, &_8$$6) ) { ZEPHIR_GET_HVALUE(directory, _10$$6); ZEPHIR_INIT_NVAR(_11$$9); @@ -23607,8 +23255,8 @@ static PHP_METHOD(Phalcon_Loader, autoLoad) { ZEPHIR_CONCAT_VV(fixedDirectory, _11$$9, ds); zephir_is_iterable(extensions, &_13$$9, &_12$$9, 0, 0, "phalcon/loader.zep", 386); for ( - ; zephir_hash_get_current_data_ex(_13$$9, (void**) &_14$$9, &_12$$9) == SUCCESS - ; zephir_hash_move_forward_ex(_13$$9, &_12$$9) + ; zend_hash_get_current_data_ex(_13$$9, (void**) &_14$$9, &_12$$9) == SUCCESS + ; zend_hash_move_forward_ex(_13$$9, &_12$$9) ) { ZEPHIR_GET_HVALUE(extension, _14$$9); ZEPHIR_INIT_NVAR(filePath); @@ -23648,8 +23296,8 @@ static PHP_METHOD(Phalcon_Loader, autoLoad) { zephir_read_property_this(&directories, this_ptr, SL("_directories"), PH_NOISY_CC); zephir_is_iterable(directories, &_23, &_22, 0, 0, "phalcon/loader.zep", 447); for ( - ; zephir_hash_get_current_data_ex(_23, (void**) &_24, &_22) == SUCCESS - ; zephir_hash_move_forward_ex(_23, &_22) + ; zend_hash_get_current_data_ex(_23, (void**) &_24, &_22) == SUCCESS + ; zend_hash_move_forward_ex(_23, &_22) ) { ZEPHIR_GET_HVALUE(directory, _24); ZEPHIR_INIT_NVAR(_25$$14); @@ -23658,8 +23306,8 @@ static PHP_METHOD(Phalcon_Loader, autoLoad) { ZEPHIR_CONCAT_VV(fixedDirectory, _25$$14, ds); zephir_is_iterable(extensions, &_27$$14, &_26$$14, 0, 0, "phalcon/loader.zep", 442); for ( - ; zephir_hash_get_current_data_ex(_27$$14, (void**) &_28$$14, &_26$$14) == SUCCESS - ; zephir_hash_move_forward_ex(_27$$14, &_26$$14) + ; zend_hash_get_current_data_ex(_27$$14, (void**) &_28$$14, &_26$$14) == SUCCESS + ; zend_hash_move_forward_ex(_27$$14, &_26$$14) ) { ZEPHIR_GET_HVALUE(extension, _28$$14); ZEPHIR_INIT_NVAR(filePath); @@ -23850,11 +23498,11 @@ static PHP_METHOD(Phalcon_Registry, offsetExists) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &offset_param); - if (unlikely(Z_TYPE_P(offset_param) != IS_STRING && Z_TYPE_P(offset_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(offset_param) != IS_STRING && Z_TYPE_P(offset_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'offset' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(offset_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(offset_param) == IS_STRING)) { zephir_get_strval(offset, offset_param); } else { ZEPHIR_INIT_VAR(offset); @@ -23875,11 +23523,11 @@ static PHP_METHOD(Phalcon_Registry, offsetGet) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &offset_param); - if (unlikely(Z_TYPE_P(offset_param) != IS_STRING && Z_TYPE_P(offset_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(offset_param) != IS_STRING && Z_TYPE_P(offset_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'offset' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(offset_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(offset_param) == IS_STRING)) { zephir_get_strval(offset, offset_param); } else { ZEPHIR_INIT_VAR(offset); @@ -23901,11 +23549,11 @@ static PHP_METHOD(Phalcon_Registry, offsetSet) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &offset_param, &value); - if (unlikely(Z_TYPE_P(offset_param) != IS_STRING && Z_TYPE_P(offset_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(offset_param) != IS_STRING && Z_TYPE_P(offset_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'offset' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(offset_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(offset_param) == IS_STRING)) { zephir_get_strval(offset, offset_param); } else { ZEPHIR_INIT_VAR(offset); @@ -23926,11 +23574,11 @@ static PHP_METHOD(Phalcon_Registry, offsetUnset) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &offset_param); - if (unlikely(Z_TYPE_P(offset_param) != IS_STRING && Z_TYPE_P(offset_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(offset_param) != IS_STRING && Z_TYPE_P(offset_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'offset' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(offset_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(offset_param) == IS_STRING)) { zephir_get_strval(offset, offset_param); } else { ZEPHIR_INIT_VAR(offset); @@ -24043,11 +23691,11 @@ static PHP_METHOD(Phalcon_Registry, __set) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &key_param, &value); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { ZEPHIR_INIT_VAR(key); @@ -24070,11 +23718,11 @@ static PHP_METHOD(Phalcon_Registry, __get) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &key_param); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { ZEPHIR_INIT_VAR(key); @@ -24097,11 +23745,11 @@ static PHP_METHOD(Phalcon_Registry, __isset) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &key_param); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { ZEPHIR_INIT_VAR(key); @@ -24124,11 +23772,11 @@ static PHP_METHOD(Phalcon_Registry, __unset) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &key_param); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { ZEPHIR_INIT_VAR(key); @@ -24264,7 +23912,7 @@ static PHP_METHOD(Phalcon_Security, setRandomBytes) { zephir_fetch_params(0, 1, 0, &randomBytes_param); - if (unlikely(Z_TYPE_P(randomBytes_param) != IS_LONG)) { + if (UNEXPECTED(Z_TYPE_P(randomBytes_param) != IS_LONG)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'randomBytes' must be a long") TSRMLS_CC); RETURN_NULL(); } @@ -24954,11 +24602,11 @@ static PHP_METHOD(Phalcon_Tag, renderAttributes) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &code_param, &attributes_param); - if (unlikely(Z_TYPE_P(code_param) != IS_STRING && Z_TYPE_P(code_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(code_param) != IS_STRING && Z_TYPE_P(code_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'code' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(code_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(code_param) == IS_STRING)) { zephir_get_strval(code, code_param); } else { ZEPHIR_INIT_VAR(code); @@ -24983,8 +24631,8 @@ static PHP_METHOD(Phalcon_Tag, renderAttributes) { array_init(attrs); zephir_is_iterable(order, &_1, &_0, 0, 0, "phalcon/tag.zep", 137); for ( - ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS - ; zephir_hash_move_forward_ex(_1, &_0) + ; zend_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS + ; zend_hash_move_forward_ex(_1, &_0) ) { ZEPHIR_GET_HMKEY(key, _1, _0); ZEPHIR_GET_HVALUE(value, _2); @@ -24995,8 +24643,8 @@ static PHP_METHOD(Phalcon_Tag, renderAttributes) { } zephir_is_iterable(attributes, &_4, &_3, 0, 0, "phalcon/tag.zep", 143); for ( - ; zephir_hash_get_current_data_ex(_4, (void**) &_5, &_3) == SUCCESS - ; zephir_hash_move_forward_ex(_4, &_3) + ; zend_hash_get_current_data_ex(_4, (void**) &_5, &_3) == SUCCESS + ; zend_hash_move_forward_ex(_4, &_3) ) { ZEPHIR_GET_HMKEY(key, _4, _3); ZEPHIR_GET_HVALUE(value, _5); @@ -25011,8 +24659,8 @@ static PHP_METHOD(Phalcon_Tag, renderAttributes) { ZEPHIR_CPY_WRT(newCode, code); zephir_is_iterable(attrs, &_8, &_7, 0, 0, "phalcon/tag.zep", 162); for ( - ; zephir_hash_get_current_data_ex(_8, (void**) &_9, &_7) == SUCCESS - ; zephir_hash_move_forward_ex(_8, &_7) + ; zend_hash_get_current_data_ex(_8, (void**) &_9, &_7) == SUCCESS + ; zend_hash_move_forward_ex(_8, &_7) ) { ZEPHIR_GET_HMKEY(key, _8, _7); ZEPHIR_GET_HVALUE(value, _9); @@ -25164,11 +24812,11 @@ static PHP_METHOD(Phalcon_Tag, setDefault) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &id_param, &value); - if (unlikely(Z_TYPE_P(id_param) != IS_STRING && Z_TYPE_P(id_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(id_param) != IS_STRING && Z_TYPE_P(id_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'id' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(id_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(id_param) == IS_STRING)) { zephir_get_strval(id, id_param); } else { ZEPHIR_INIT_VAR(id); @@ -26284,8 +25932,8 @@ static PHP_METHOD(Phalcon_Tag, getTitle) { zephir_check_call_status(); zephir_is_iterable(tmp$$5, &_9$$5, &_8$$5, 0, 0, "phalcon/tag.zep", 1228); for ( - ; zephir_hash_get_current_data_ex(_9$$5, (void**) &_10$$5, &_8$$5) == SUCCESS - ; zephir_hash_move_forward_ex(_9$$5, &_8$$5) + ; zend_hash_get_current_data_ex(_9$$5, (void**) &_10$$5, &_8$$5) == SUCCESS + ; zend_hash_move_forward_ex(_9$$5, &_8$$5) ) { ZEPHIR_GET_HVALUE(title, _10$$5); ZEPHIR_CALL_METHOD(&_11$$6, escaper, "escapehtml", &_12, 0, title); @@ -26299,8 +25947,8 @@ static PHP_METHOD(Phalcon_Tag, getTitle) { if (!(ZEPHIR_IS_EMPTY(documentAppendTitle))) { zephir_is_iterable(documentAppendTitle, &_14$$8, &_13$$8, 0, 0, "phalcon/tag.zep", 1238); for ( - ; zephir_hash_get_current_data_ex(_14$$8, (void**) &_15$$8, &_13$$8) == SUCCESS - ; zephir_hash_move_forward_ex(_14$$8, &_13$$8) + ; zend_hash_get_current_data_ex(_14$$8, (void**) &_15$$8, &_13$$8) == SUCCESS + ; zend_hash_move_forward_ex(_14$$8, &_13$$8) ) { ZEPHIR_GET_HVALUE(title, _15$$8); ZEPHIR_CALL_METHOD(&_16$$9, escaper, "escapehtml", &_17, 0, title); @@ -26631,8 +26279,8 @@ static PHP_METHOD(Phalcon_Tag, friendlyTitle) { if (Z_TYPE_P(replace) == IS_ARRAY) { zephir_is_iterable(replace, &_9$$6, &_8$$6, 0, 0, "phalcon/tag.zep", 1502); for ( - ; zephir_hash_get_current_data_ex(_9$$6, (void**) &_10$$6, &_8$$6) == SUCCESS - ; zephir_hash_move_forward_ex(_9$$6, &_8$$6) + ; zend_hash_get_current_data_ex(_9$$6, (void**) &_10$$6, &_8$$6) == SUCCESS + ; zend_hash_move_forward_ex(_9$$6, &_8$$6) ) { ZEPHIR_GET_HVALUE(search, _10$$6); ZEPHIR_INIT_NVAR(_11$$7); @@ -26933,11 +26581,11 @@ static PHP_METHOD(Phalcon_Text, camelize) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &str_param, &delimiter); - if (unlikely(Z_TYPE_P(str_param) != IS_STRING && Z_TYPE_P(str_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(str_param) != IS_STRING && Z_TYPE_P(str_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'str' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(str_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(str_param) == IS_STRING)) { zephir_get_strval(str, str_param); } else { ZEPHIR_INIT_VAR(str); @@ -26962,11 +26610,11 @@ static PHP_METHOD(Phalcon_Text, uncamelize) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &str_param, &delimiter); - if (unlikely(Z_TYPE_P(str_param) != IS_STRING && Z_TYPE_P(str_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(str_param) != IS_STRING && Z_TYPE_P(str_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'str' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(str_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(str_param) == IS_STRING)) { zephir_get_strval(str, str_param); } else { ZEPHIR_INIT_VAR(str); @@ -27189,11 +26837,11 @@ static PHP_METHOD(Phalcon_Text, lower) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &str_param, &encoding_param); - if (unlikely(Z_TYPE_P(str_param) != IS_STRING && Z_TYPE_P(str_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(str_param) != IS_STRING && Z_TYPE_P(str_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'str' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(str_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(str_param) == IS_STRING)) { zephir_get_strval(str, str_param); } else { ZEPHIR_INIT_VAR(str); @@ -27203,11 +26851,11 @@ static PHP_METHOD(Phalcon_Text, lower) { ZEPHIR_INIT_VAR(encoding); ZVAL_STRING(encoding, "UTF-8", 1); } else { - if (unlikely(Z_TYPE_P(encoding_param) != IS_STRING && Z_TYPE_P(encoding_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(encoding_param) != IS_STRING && Z_TYPE_P(encoding_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'encoding' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(encoding_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(encoding_param) == IS_STRING)) { zephir_get_strval(encoding, encoding_param); } else { ZEPHIR_INIT_VAR(encoding); @@ -27235,11 +26883,11 @@ static PHP_METHOD(Phalcon_Text, upper) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &str_param, &encoding_param); - if (unlikely(Z_TYPE_P(str_param) != IS_STRING && Z_TYPE_P(str_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(str_param) != IS_STRING && Z_TYPE_P(str_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'str' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(str_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(str_param) == IS_STRING)) { zephir_get_strval(str, str_param); } else { ZEPHIR_INIT_VAR(str); @@ -27249,11 +26897,11 @@ static PHP_METHOD(Phalcon_Text, upper) { ZEPHIR_INIT_VAR(encoding); ZVAL_STRING(encoding, "UTF-8", 1); } else { - if (unlikely(Z_TYPE_P(encoding_param) != IS_STRING && Z_TYPE_P(encoding_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(encoding_param) != IS_STRING && Z_TYPE_P(encoding_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'encoding' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(encoding_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(encoding_param) == IS_STRING)) { zephir_get_strval(encoding, encoding_param); } else { ZEPHIR_INIT_VAR(encoding); @@ -27298,54 +26946,52 @@ static PHP_METHOD(Phalcon_Text, reduceSlashes) { static PHP_METHOD(Phalcon_Text, concat) { - HashTable *_6$$3; - HashPosition _5$$3; - zval *separator = NULL, *a = NULL, *b = NULL, _0 = zval_used_for_init, *c = NULL, *_11, *_12, *_2$$3, _3$$3, *_4$$3 = NULL, **_7$$3, *_8$$4 = NULL, *_9$$4 = NULL, *_10$$4 = NULL; + HashTable *_7$$3; + HashPosition _6$$3; + zval *separator = NULL, *a = NULL, *b = NULL, _0, _1, _2, *c = NULL, *_12, *_13, *_3$$3, _4$$3, *_5$$3 = NULL, **_8$$3, *_9$$4 = NULL, *_10$$4 = NULL, *_11$$4 = NULL; int ZEPHIR_LAST_CALL_STATUS; - zephir_fcall_cache_entry *_1 = NULL; ZEPHIR_MM_GROW(); + ZEPHIR_INIT_VAR(separator); ZEPHIR_SINIT_VAR(_0); ZVAL_LONG(&_0, 0); - ZEPHIR_CALL_FUNCTION(&separator, "func_get_arg", &_1, 448, &_0); - zephir_check_call_status(); - ZEPHIR_SINIT_NVAR(_0); - ZVAL_LONG(&_0, 1); - ZEPHIR_CALL_FUNCTION(&a, "func_get_arg", &_1, 448, &_0); - zephir_check_call_status(); - ZEPHIR_SINIT_NVAR(_0); - ZVAL_LONG(&_0, 2); - ZEPHIR_CALL_FUNCTION(&b, "func_get_arg", &_1, 448, &_0); - zephir_check_call_status(); + zephir_get_arg(separator, zephir_get_intval(&_0) TSRMLS_CC); + ZEPHIR_INIT_VAR(a); + ZEPHIR_SINIT_VAR(_1); + ZVAL_LONG(&_1, 1); + zephir_get_arg(a, zephir_get_intval(&_1) TSRMLS_CC); + ZEPHIR_INIT_VAR(b); + ZEPHIR_SINIT_VAR(_2); + ZVAL_LONG(&_2, 2); + zephir_get_arg(b, zephir_get_intval(&_2) TSRMLS_CC); if (ZEND_NUM_ARGS() > 3) { - ZEPHIR_INIT_VAR(_2$$3); - array_init(_2$$3); - zend_copy_parameters_array(ZEND_NUM_ARGS(), _2$$3 TSRMLS_CC); - ZEPHIR_SINIT_VAR(_3$$3); - ZVAL_LONG(&_3$$3, 3); - ZEPHIR_CALL_FUNCTION(&_4$$3, "array_slice", NULL, 395, _2$$3, &_3$$3); + ZEPHIR_INIT_VAR(_3$$3); + zephir_get_args(_3$$3 TSRMLS_CC); + ZEPHIR_SINIT_VAR(_4$$3); + ZVAL_LONG(&_4$$3, 3); + ZEPHIR_CALL_FUNCTION(&_5$$3, "array_slice", NULL, 395, _3$$3, &_4$$3); zephir_check_call_status(); - zephir_is_iterable(_4$$3, &_6$$3, &_5$$3, 0, 0, "phalcon/text.zep", 256); + zephir_is_iterable(_5$$3, &_7$$3, &_6$$3, 0, 0, "phalcon/text.zep", 256); for ( - ; zephir_hash_get_current_data_ex(_6$$3, (void**) &_7$$3, &_5$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_6$$3, &_5$$3) + ; zend_hash_get_current_data_ex(_7$$3, (void**) &_8$$3, &_6$$3) == SUCCESS + ; zend_hash_move_forward_ex(_7$$3, &_6$$3) ) { - ZEPHIR_GET_HVALUE(c, _7$$3); - ZEPHIR_INIT_NVAR(_8$$4); - zephir_fast_trim(_8$$4, b, separator, ZEPHIR_TRIM_RIGHT TSRMLS_CC); + ZEPHIR_GET_HVALUE(c, _8$$3); ZEPHIR_INIT_NVAR(_9$$4); - zephir_fast_trim(_9$$4, c, separator, ZEPHIR_TRIM_LEFT TSRMLS_CC); - ZEPHIR_INIT_LNVAR(_10$$4); - ZEPHIR_CONCAT_VVV(_10$$4, _8$$4, separator, _9$$4); - ZEPHIR_CPY_WRT(b, _10$$4); + zephir_fast_trim(_9$$4, b, separator, ZEPHIR_TRIM_RIGHT TSRMLS_CC); + ZEPHIR_INIT_NVAR(_10$$4); + zephir_fast_trim(_10$$4, c, separator, ZEPHIR_TRIM_LEFT TSRMLS_CC); + ZEPHIR_INIT_LNVAR(_11$$4); + ZEPHIR_CONCAT_VVV(_11$$4, _9$$4, separator, _10$$4); + ZEPHIR_CPY_WRT(b, _11$$4); } } - ZEPHIR_INIT_VAR(_11); - zephir_fast_trim(_11, a, separator, ZEPHIR_TRIM_RIGHT TSRMLS_CC); ZEPHIR_INIT_VAR(_12); - zephir_fast_trim(_12, b, separator, ZEPHIR_TRIM_LEFT TSRMLS_CC); - ZEPHIR_CONCAT_VVV(return_value, _11, separator, _12); + zephir_fast_trim(_12, a, separator, ZEPHIR_TRIM_RIGHT TSRMLS_CC); + ZEPHIR_INIT_VAR(_13); + zephir_fast_trim(_13, b, separator, ZEPHIR_TRIM_LEFT TSRMLS_CC); + ZEPHIR_CONCAT_VVV(return_value, _12, separator, _13); RETURN_MM(); } @@ -27363,11 +27009,11 @@ static PHP_METHOD(Phalcon_Text, dynamic) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 3, &text_param, &leftDelimiter_param, &rightDelimiter_param, &separator_param); - if (unlikely(Z_TYPE_P(text_param) != IS_STRING && Z_TYPE_P(text_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(text_param) != IS_STRING && Z_TYPE_P(text_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'text' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(text_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(text_param) == IS_STRING)) { zephir_get_strval(text, text_param); } else { ZEPHIR_INIT_VAR(text); @@ -27377,11 +27023,11 @@ static PHP_METHOD(Phalcon_Text, dynamic) { ZEPHIR_INIT_VAR(leftDelimiter); ZVAL_STRING(leftDelimiter, "{", 1); } else { - if (unlikely(Z_TYPE_P(leftDelimiter_param) != IS_STRING && Z_TYPE_P(leftDelimiter_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(leftDelimiter_param) != IS_STRING && Z_TYPE_P(leftDelimiter_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'leftDelimiter' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(leftDelimiter_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(leftDelimiter_param) == IS_STRING)) { zephir_get_strval(leftDelimiter, leftDelimiter_param); } else { ZEPHIR_INIT_VAR(leftDelimiter); @@ -27392,11 +27038,11 @@ static PHP_METHOD(Phalcon_Text, dynamic) { ZEPHIR_INIT_VAR(rightDelimiter); ZVAL_STRING(rightDelimiter, "}", 1); } else { - if (unlikely(Z_TYPE_P(rightDelimiter_param) != IS_STRING && Z_TYPE_P(rightDelimiter_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(rightDelimiter_param) != IS_STRING && Z_TYPE_P(rightDelimiter_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'rightDelimiter' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(rightDelimiter_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(rightDelimiter_param) == IS_STRING)) { zephir_get_strval(rightDelimiter, rightDelimiter_param); } else { ZEPHIR_INIT_VAR(rightDelimiter); @@ -27407,11 +27053,11 @@ static PHP_METHOD(Phalcon_Text, dynamic) { ZEPHIR_INIT_VAR(separator); ZVAL_STRING(separator, "|", 1); } else { - if (unlikely(Z_TYPE_P(separator_param) != IS_STRING && Z_TYPE_P(separator_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(separator_param) != IS_STRING && Z_TYPE_P(separator_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'separator' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(separator_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(separator_param) == IS_STRING)) { zephir_get_strval(separator, separator_param); } else { ZEPHIR_INIT_VAR(separator); @@ -27420,24 +27066,24 @@ static PHP_METHOD(Phalcon_Text, dynamic) { } - ZEPHIR_CALL_FUNCTION(&_0, "substr_count", &_1, 449, text, leftDelimiter); + ZEPHIR_CALL_FUNCTION(&_0, "substr_count", &_1, 448, text, leftDelimiter); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_2, "substr_count", &_1, 449, text, rightDelimiter); + ZEPHIR_CALL_FUNCTION(&_2, "substr_count", &_1, 448, text, rightDelimiter); zephir_check_call_status(); if (!ZEPHIR_IS_IDENTICAL(_0, _2)) { ZEPHIR_INIT_VAR(_3$$3); object_init_ex(_3$$3, spl_ce_RuntimeException); ZEPHIR_INIT_VAR(_4$$3); ZEPHIR_CONCAT_SVS(_4$$3, "Syntax error in string \"", text, "\""); - ZEPHIR_CALL_METHOD(NULL, _3$$3, "__construct", NULL, 450, _4$$3); + ZEPHIR_CALL_METHOD(NULL, _3$$3, "__construct", NULL, 449, _4$$3); zephir_check_call_status(); zephir_throw_exception_debug(_3$$3, "phalcon/text.zep", 283 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } - ZEPHIR_CALL_FUNCTION(&ldS, "preg_quote", &_5, 451, leftDelimiter); + ZEPHIR_CALL_FUNCTION(&ldS, "preg_quote", &_5, 450, leftDelimiter); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&rdS, "preg_quote", &_5, 451, rightDelimiter); + ZEPHIR_CALL_FUNCTION(&rdS, "preg_quote", &_5, 450, rightDelimiter); zephir_check_call_status(); ZEPHIR_INIT_VAR(pattern); ZEPHIR_CONCAT_SVSVVSVS(pattern, "/", ldS, "([^", ldS, rdS, "]+)", rdS, "/"); @@ -27455,8 +27101,8 @@ static PHP_METHOD(Phalcon_Text, dynamic) { if (Z_TYPE_P(matches) == IS_ARRAY) { zephir_is_iterable(matches, &_9$$5, &_8$$5, 0, 0, "phalcon/text.zep", 306); for ( - ; zephir_hash_get_current_data_ex(_9$$5, (void**) &_10$$5, &_8$$5) == SUCCESS - ; zephir_hash_move_forward_ex(_9$$5, &_8$$5) + ; zend_hash_get_current_data_ex(_9$$5, (void**) &_10$$5, &_8$$5) == SUCCESS + ; zend_hash_move_forward_ex(_9$$5, &_8$$5) ) { ZEPHIR_GET_HVALUE(match, _10$$5); _11$$6 = !(zephir_array_isset_long(match, 0)); @@ -27470,11 +27116,11 @@ static PHP_METHOD(Phalcon_Text, dynamic) { ZEPHIR_INIT_NVAR(words); zephir_fast_explode(words, separator, _12$$6, LONG_MAX TSRMLS_CC); ZEPHIR_OBS_NVAR(word); - ZEPHIR_CALL_FUNCTION(&_13$$6, "array_rand", &_14, 452, words); + ZEPHIR_CALL_FUNCTION(&_13$$6, "array_rand", &_14, 451, words); zephir_check_call_status(); zephir_array_fetch(&word, words, _13$$6, PH_NOISY, "phalcon/text.zep", 302 TSRMLS_CC); zephir_array_fetch_long(&_15$$6, match, 0, PH_NOISY | PH_READONLY, "phalcon/text.zep", 303 TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&sub, "preg_quote", &_5, 451, _15$$6, separator); + ZEPHIR_CALL_FUNCTION(&sub, "preg_quote", &_5, 450, _15$$6, separator); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_16$$6); ZEPHIR_CONCAT_SVS(_16$$6, "/", sub, "/"); @@ -27498,11 +27144,11 @@ static PHP_METHOD(Phalcon_Text, underscore) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &text_param); - if (unlikely(Z_TYPE_P(text_param) != IS_STRING && Z_TYPE_P(text_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(text_param) != IS_STRING && Z_TYPE_P(text_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'text' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(text_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(text_param) == IS_STRING)) { zephir_get_strval(text, text_param); } else { ZEPHIR_INIT_VAR(text); @@ -27533,11 +27179,11 @@ static PHP_METHOD(Phalcon_Text, humanize) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &text_param); - if (unlikely(Z_TYPE_P(text_param) != IS_STRING && Z_TYPE_P(text_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(text_param) != IS_STRING && Z_TYPE_P(text_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'text' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(text_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(text_param) == IS_STRING)) { zephir_get_strval(text, text_param); } else { ZEPHIR_INIT_VAR(text); @@ -27658,13 +27304,13 @@ static PHP_METHOD(Phalcon_Validation, __construct) { ZEPHIR_INIT_VAR(_0$$3); ZEPHIR_INIT_NVAR(_0$$3); zephir_create_closure_ex(_0$$3, NULL, phalcon_0__closure_ce, SS("__invoke") TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_1$$3, "array_filter", &_2, 462, validators, _0$$3); + ZEPHIR_CALL_FUNCTION(&_1$$3, "array_filter", &_2, 461, validators, _0$$3); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_validators"), _1$$3 TSRMLS_CC); ZEPHIR_INIT_VAR(_3$$3); ZEPHIR_INIT_NVAR(_3$$3); zephir_create_closure_ex(_3$$3, NULL, phalcon_1__closure_ce, SS("__invoke") TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_4$$3, "array_filter", &_2, 462, validators, _3$$3); + ZEPHIR_CALL_FUNCTION(&_4$$3, "array_filter", &_2, 461, validators, _3$$3); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_combinedFieldsValidators"), _4$$3 TSRMLS_CC); } @@ -27737,8 +27383,8 @@ static PHP_METHOD(Phalcon_Validation, validate) { } zephir_is_iterable(validators, &_2, &_1, 0, 0, "phalcon/validation.zep", 161); for ( - ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS - ; zephir_hash_move_forward_ex(_2, &_1) + ; zend_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS + ; zend_hash_move_forward_ex(_2, &_1) ) { ZEPHIR_GET_HVALUE(scope, _3); if (Z_TYPE_P(scope) != IS_ARRAY) { @@ -27773,8 +27419,8 @@ static PHP_METHOD(Phalcon_Validation, validate) { } zephir_is_iterable(combinedFieldsValidators, &_10, &_9, 0, 0, "phalcon/validation.zep", 193); for ( - ; zephir_hash_get_current_data_ex(_10, (void**) &_11, &_9) == SUCCESS - ; zephir_hash_move_forward_ex(_10, &_9) + ; zend_hash_get_current_data_ex(_10, (void**) &_11, &_9) == SUCCESS + ; zend_hash_move_forward_ex(_10, &_9) ) { ZEPHIR_GET_HVALUE(scope, _11); if (Z_TYPE_P(scope) != IS_ARRAY) { @@ -27838,8 +27484,8 @@ static PHP_METHOD(Phalcon_Validation, add) { } else { zephir_is_iterable(field, &_2$$5, &_1$$5, 0, 0, "phalcon/validation.zep", 215); for ( - ; zephir_hash_get_current_data_ex(_2$$5, (void**) &_3$$5, &_1$$5) == SUCCESS - ; zephir_hash_move_forward_ex(_2$$5, &_1$$5) + ; zend_hash_get_current_data_ex(_2$$5, (void**) &_3$$5, &_1$$5) == SUCCESS + ; zend_hash_move_forward_ex(_2$$5, &_1$$5) ) { ZEPHIR_GET_HVALUE(singleField, _3$$5); ZEPHIR_INIT_NVAR(_4$$6); @@ -27896,8 +27542,8 @@ static PHP_METHOD(Phalcon_Validation, rules) { zephir_is_iterable(validators, &_1, &_0, 0, 0, "phalcon/validation.zep", 247); for ( - ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS - ; zephir_hash_move_forward_ex(_1, &_0) + ; zend_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS + ; zend_hash_move_forward_ex(_1, &_0) ) { ZEPHIR_GET_HVALUE(validator, _2); if (zephir_instance_of_ev(validator, phalcon_validation_validatorinterface_ce TSRMLS_CC)) { @@ -27923,8 +27569,8 @@ static PHP_METHOD(Phalcon_Validation, setFilters) { if (Z_TYPE_P(field) == IS_ARRAY) { zephir_is_iterable(field, &_1$$3, &_0$$3, 0, 0, "phalcon/validation.zep", 264); for ( - ; zephir_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_1$$3, &_0$$3) + ; zend_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS + ; zend_hash_move_forward_ex(_1$$3, &_0$$3) ) { ZEPHIR_GET_HVALUE(singleField, _2$$3); zephir_update_property_array(this_ptr, SL("_filters"), singleField, filters TSRMLS_CC); @@ -28061,11 +27707,11 @@ static PHP_METHOD(Phalcon_Validation, getDefaultMessage) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &type_param); - if (unlikely(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'type' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(type_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(type_param) == IS_STRING)) { zephir_get_strval(type, type_param); } else { ZEPHIR_INIT_VAR(type); @@ -28144,7 +27790,7 @@ static PHP_METHOD(Phalcon_Validation, appendMessage) { ZEPHIR_CALL_METHOD(NULL, messages, "__construct", NULL, 3); zephir_check_call_status(); } - ZEPHIR_CALL_METHOD(NULL, messages, "appendmessage", NULL, 463, message); + ZEPHIR_CALL_METHOD(NULL, messages, "appendmessage", NULL, 462, message); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_messages"), messages TSRMLS_CC); RETURN_THIS(); @@ -28323,11 +27969,11 @@ static PHP_METHOD(Phalcon_Validation, preChecking) { if (Z_TYPE_P(field) == IS_ARRAY) { zephir_is_iterable(field, &_1$$3, &_0$$3, 0, 0, "phalcon/validation.zep", 590); for ( - ; zephir_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_1$$3, &_0$$3) + ; zend_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS + ; zend_hash_move_forward_ex(_1$$3, &_0$$3) ) { ZEPHIR_GET_HVALUE(singleField, _2$$3); - ZEPHIR_CALL_METHOD(&result, this_ptr, "prechecking", &_3, 464, singleField, validator); + ZEPHIR_CALL_METHOD(&result, this_ptr, "prechecking", &_3, 463, singleField, validator); zephir_check_call_status(); if (zephir_is_true(result)) { RETURN_CCTOR(result); @@ -28352,8 +27998,8 @@ static PHP_METHOD(Phalcon_Validation, preChecking) { if (Z_TYPE_P(allowEmpty) == IS_ARRAY) { zephir_is_iterable(allowEmpty, &_7$$9, &_6$$9, 0, 0, "phalcon/validation.zep", 604); for ( - ; zephir_hash_get_current_data_ex(_7$$9, (void**) &_8$$9, &_6$$9) == SUCCESS - ; zephir_hash_move_forward_ex(_7$$9, &_6$$9) + ; zend_hash_get_current_data_ex(_7$$9, (void**) &_8$$9, &_6$$9) == SUCCESS + ; zend_hash_move_forward_ex(_7$$9, &_6$$9) ) { ZEPHIR_GET_HVALUE(emptyValue, _8$$9); if (ZEPHIR_IS_IDENTICAL(emptyValue, value)) { @@ -28500,7 +28146,7 @@ static PHP_METHOD(Phalcon_Version, _getVersion) { ZVAL_LONG(_0, 1); zephir_array_fast_append(return_value, _0); ZEPHIR_INIT_NVAR(_0); - ZVAL_LONG(_0, 1); + ZVAL_LONG(_0, 2); zephir_array_fast_append(return_value, _0); ZEPHIR_INIT_NVAR(_0); ZVAL_LONG(_0, 4); @@ -28569,7 +28215,7 @@ static PHP_METHOD(Phalcon_Version, get) { zephir_array_fetch_long(&specialNumber, version, 4, PH_NOISY, "phalcon/version.zep", 143 TSRMLS_CC); ZEPHIR_INIT_VAR(result); ZEPHIR_CONCAT_VSVSVS(result, major, ".", medium, ".", minor, " "); - ZEPHIR_CALL_STATIC(&suffix, "_getspecial", &_0, 473, special); + ZEPHIR_CALL_STATIC(&suffix, "_getspecial", &_0, 472, special); zephir_check_call_status(); if (!ZEPHIR_IS_STRING(suffix, "")) { ZEPHIR_INIT_VAR(_1$$3); @@ -28636,7 +28282,7 @@ static PHP_METHOD(Phalcon_Version, getPart) { } if (part == 3) { zephir_array_fetch_long(&_1$$4, version, 3, PH_NOISY | PH_READONLY, "phalcon/version.zep", 204 TSRMLS_CC); - ZEPHIR_CALL_STATIC(&result, "_getspecial", &_0, 473, _1$$4); + ZEPHIR_CALL_STATIC(&result, "_getspecial", &_0, 472, _1$$4); zephir_check_call_status(); break; } @@ -28878,11 +28524,11 @@ static PHP_METHOD(Phalcon_Acl_Resource, __construct) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &name_param, &description_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -29007,11 +28653,11 @@ static PHP_METHOD(Phalcon_Acl_Role, __construct) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &name_param, &description_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -29227,8 +28873,8 @@ static PHP_METHOD(Phalcon_Acl_Adapter_Memory, addInherit) { zephir_array_fetch(&_5$$6, _4$$6, roleInheritName, PH_NOISY | PH_READONLY, "phalcon/acl/adapter/memory.zep", 240 TSRMLS_CC); zephir_is_iterable(_5$$6, &_7$$6, &_6$$6, 0, 0, "phalcon/acl/adapter/memory.zep", 243); for ( - ; zephir_hash_get_current_data_ex(_7$$6, (void**) &_8$$6, &_6$$6) == SUCCESS - ; zephir_hash_move_forward_ex(_7$$6, &_6$$6) + ; zend_hash_get_current_data_ex(_7$$6, (void**) &_8$$6, &_6$$6) == SUCCESS + ; zend_hash_move_forward_ex(_7$$6, &_6$$6) ) { ZEPHIR_GET_HVALUE(deepInheritName, _8$$6); ZEPHIR_CALL_METHOD(NULL, this_ptr, "addinherit", &_9, 80, roleName, deepInheritName); @@ -29366,8 +29012,8 @@ static PHP_METHOD(Phalcon_Acl_Adapter_Memory, addResourceAccess) { if (Z_TYPE_P(accessList) == IS_ARRAY) { zephir_is_iterable(accessList, &_5$$5, &_4$$5, 0, 0, "phalcon/acl/adapter/memory.zep", 363); for ( - ; zephir_hash_get_current_data_ex(_5$$5, (void**) &_6$$5, &_4$$5) == SUCCESS - ; zephir_hash_move_forward_ex(_5$$5, &_4$$5) + ; zend_hash_get_current_data_ex(_5$$5, (void**) &_6$$5, &_4$$5) == SUCCESS + ; zend_hash_move_forward_ex(_5$$5, &_4$$5) ) { ZEPHIR_GET_HVALUE(accessName, _6$$5); ZEPHIR_INIT_NVAR(accessKey); @@ -29409,8 +29055,8 @@ static PHP_METHOD(Phalcon_Acl_Adapter_Memory, dropResourceAccess) { if (Z_TYPE_P(accessList) == IS_ARRAY) { zephir_is_iterable(accessList, &_1$$3, &_0$$3, 0, 0, "phalcon/acl/adapter/memory.zep", 389); for ( - ; zephir_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_1$$3, &_0$$3) + ; zend_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS + ; zend_hash_move_forward_ex(_1$$3, &_0$$3) ) { ZEPHIR_GET_HVALUE(accessName, _2$$3); ZEPHIR_INIT_NVAR(accessKey); @@ -29483,8 +29129,8 @@ static PHP_METHOD(Phalcon_Acl_Adapter_Memory, _allowOrDeny) { if (Z_TYPE_P(access) == IS_ARRAY) { zephir_is_iterable(access, &_7$$5, &_6$$5, 0, 0, "phalcon/acl/adapter/memory.zep", 425); for ( - ; zephir_hash_get_current_data_ex(_7$$5, (void**) &_8$$5, &_6$$5) == SUCCESS - ; zephir_hash_move_forward_ex(_7$$5, &_6$$5) + ; zend_hash_get_current_data_ex(_7$$5, (void**) &_8$$5, &_6$$5) == SUCCESS + ; zend_hash_move_forward_ex(_7$$5, &_6$$5) ) { ZEPHIR_GET_HVALUE(accessName, _8$$5); ZEPHIR_INIT_NVAR(accessKey); @@ -29503,8 +29149,8 @@ static PHP_METHOD(Phalcon_Acl_Adapter_Memory, _allowOrDeny) { } zephir_is_iterable(access, &_12$$5, &_11$$5, 0, 0, "phalcon/acl/adapter/memory.zep", 434); for ( - ; zephir_hash_get_current_data_ex(_12$$5, (void**) &_13$$5, &_11$$5) == SUCCESS - ; zephir_hash_move_forward_ex(_12$$5, &_11$$5) + ; zend_hash_get_current_data_ex(_12$$5, (void**) &_13$$5, &_11$$5) == SUCCESS + ; zend_hash_move_forward_ex(_12$$5, &_11$$5) ) { ZEPHIR_GET_HVALUE(accessName, _13$$5); ZEPHIR_INIT_NVAR(accessKey); @@ -29571,8 +29217,8 @@ static PHP_METHOD(Phalcon_Acl_Adapter_Memory, allow) { ZEPHIR_INIT_VAR(_3$$4); zephir_is_iterable(_2$$4, &_5$$4, &_4$$4, 0, 0, "phalcon/acl/adapter/memory.zep", 486); for ( - ; zephir_hash_get_current_data_ex(_5$$4, (void**) &_6$$4, &_4$$4) == SUCCESS - ; zephir_hash_move_forward_ex(_5$$4, &_4$$4) + ; zend_hash_get_current_data_ex(_5$$4, (void**) &_6$$4, &_4$$4) == SUCCESS + ; zend_hash_move_forward_ex(_5$$4, &_4$$4) ) { ZEPHIR_GET_HMKEY(innerRoleName, _5$$4, _4$$4); ZEPHIR_GET_HVALUE(_3$$4, _6$$4); @@ -29615,8 +29261,8 @@ static PHP_METHOD(Phalcon_Acl_Adapter_Memory, deny) { ZEPHIR_INIT_VAR(_2$$4); zephir_is_iterable(_1$$4, &_4$$4, &_3$$4, 0, 0, "phalcon/acl/adapter/memory.zep", 519); for ( - ; zephir_hash_get_current_data_ex(_4$$4, (void**) &_5$$4, &_3$$4) == SUCCESS - ; zephir_hash_move_forward_ex(_4$$4, &_3$$4) + ; zend_hash_get_current_data_ex(_4$$4, (void**) &_5$$4, &_3$$4) == SUCCESS + ; zend_hash_move_forward_ex(_4$$4, &_3$$4) ) { ZEPHIR_GET_HMKEY(innerRoleName, _4$$4, _3$$4); ZEPHIR_GET_HVALUE(_2$$4, _5$$4); @@ -29732,8 +29378,8 @@ static PHP_METHOD(Phalcon_Acl_Adapter_Memory, isAllowed) { if (Z_TYPE_P(inheritedRoles) == IS_ARRAY) { zephir_is_iterable(inheritedRoles, &_7$$17, &_6$$17, 0, 0, "phalcon/acl/adapter/memory.zep", 619); for ( - ; zephir_hash_get_current_data_ex(_7$$17, (void**) &_8$$17, &_6$$17) == SUCCESS - ; zephir_hash_move_forward_ex(_7$$17, &_6$$17) + ; zend_hash_get_current_data_ex(_7$$17, (void**) &_8$$17, &_6$$17) == SUCCESS + ; zend_hash_move_forward_ex(_7$$17, &_6$$17) ) { ZEPHIR_GET_HVALUE(inheritedRole, _8$$17); ZEPHIR_INIT_NVAR(accessKey); @@ -29760,8 +29406,8 @@ static PHP_METHOD(Phalcon_Acl_Adapter_Memory, isAllowed) { if (Z_TYPE_P(inheritedRoles) == IS_ARRAY) { zephir_is_iterable(inheritedRoles, &_10$$23, &_9$$23, 0, 0, "phalcon/acl/adapter/memory.zep", 650); for ( - ; zephir_hash_get_current_data_ex(_10$$23, (void**) &_11$$23, &_9$$23) == SUCCESS - ; zephir_hash_move_forward_ex(_10$$23, &_9$$23) + ; zend_hash_get_current_data_ex(_10$$23, (void**) &_11$$23, &_9$$23) == SUCCESS + ; zend_hash_move_forward_ex(_10$$23, &_9$$23) ) { ZEPHIR_GET_HVALUE(inheritedRole, _11$$23); ZEPHIR_INIT_NVAR(accessKey); @@ -29789,8 +29435,8 @@ static PHP_METHOD(Phalcon_Acl_Adapter_Memory, isAllowed) { if (Z_TYPE_P(inheritedRoles) == IS_ARRAY) { zephir_is_iterable(inheritedRoles, &_13$$29, &_12$$29, 0, 0, "phalcon/acl/adapter/memory.zep", 681); for ( - ; zephir_hash_get_current_data_ex(_13$$29, (void**) &_14$$29, &_12$$29) == SUCCESS - ; zephir_hash_move_forward_ex(_13$$29, &_12$$29) + ; zend_hash_get_current_data_ex(_13$$29, (void**) &_14$$29, &_12$$29) == SUCCESS + ; zend_hash_move_forward_ex(_13$$29, &_12$$29) ) { ZEPHIR_GET_HVALUE(inheritedRole, _14$$29); ZEPHIR_INIT_NVAR(accessKey); @@ -29844,8 +29490,8 @@ static PHP_METHOD(Phalcon_Acl_Adapter_Memory, isAllowed) { ZEPHIR_CPY_WRT(userParametersSizeShouldBe, parameterNumber); zephir_is_iterable(reflectionParameters, &_20$$34, &_19$$34, 0, 0, "phalcon/acl/adapter/memory.zep", 746); for ( - ; zephir_hash_get_current_data_ex(_20$$34, (void**) &_21$$34, &_19$$34) == SUCCESS - ; zephir_hash_move_forward_ex(_20$$34, &_19$$34) + ; zend_hash_get_current_data_ex(_20$$34, (void**) &_21$$34, &_19$$34) == SUCCESS + ; zend_hash_move_forward_ex(_20$$34, &_19$$34) ) { ZEPHIR_GET_HVALUE(reflectionParameter, _21$$34); ZEPHIR_CALL_METHOD(&reflectionClass, reflectionParameter, "getclass", NULL, 0); @@ -30161,8 +29807,8 @@ static PHP_METHOD(Phalcon_Annotations_Adapter, getMethod) { if (Z_TYPE_P(methods) == IS_ARRAY) { zephir_is_iterable(methods, &_1$$4, &_0$$4, 0, 0, "phalcon/annotations/adapter.zep", 155); for ( - ; zephir_hash_get_current_data_ex(_1$$4, (void**) &_2$$4, &_0$$4) == SUCCESS - ; zephir_hash_move_forward_ex(_1$$4, &_0$$4) + ; zend_hash_get_current_data_ex(_1$$4, (void**) &_2$$4, &_0$$4) == SUCCESS + ; zend_hash_move_forward_ex(_1$$4, &_0$$4) ) { ZEPHIR_GET_HMKEY(methodKey, _1$$4, _0$$4); ZEPHIR_GET_HVALUE(method, _2$$4); @@ -30315,8 +29961,8 @@ static PHP_METHOD(Phalcon_Annotations_Annotation, __construct) { array_init(arguments); zephir_is_iterable(exprArguments, &_2$$3, &_1$$3, 0, 0, "phalcon/annotations/annotation.zep", 73); for ( - ; zephir_hash_get_current_data_ex(_2$$3, (void**) &_3$$3, &_1$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_2$$3, &_1$$3) + ; zend_hash_get_current_data_ex(_2$$3, (void**) &_3$$3, &_1$$3) == SUCCESS + ; zend_hash_move_forward_ex(_2$$3, &_1$$3) ) { ZEPHIR_GET_HVALUE(argument, _3$$3); zephir_array_fetch_string(&_4$$4, argument, SL("expr"), PH_NOISY | PH_READONLY, "phalcon/annotations/annotation.zep", 66 TSRMLS_CC); @@ -30387,8 +30033,8 @@ static PHP_METHOD(Phalcon_Annotations_Annotation, getExpression) { zephir_array_fetch_string(&_0$$7, expr, SL("items"), PH_NOISY | PH_READONLY, "phalcon/annotations/annotation.zep", 120 TSRMLS_CC); zephir_is_iterable(_0$$7, &_2$$7, &_1$$7, 0, 0, "phalcon/annotations/annotation.zep", 128); for ( - ; zephir_hash_get_current_data_ex(_2$$7, (void**) &_3$$7, &_1$$7) == SUCCESS - ; zephir_hash_move_forward_ex(_2$$7, &_1$$7) + ; zend_hash_get_current_data_ex(_2$$7, (void**) &_3$$7, &_1$$7) == SUCCESS + ; zend_hash_move_forward_ex(_2$$7, &_1$$7) ) { ZEPHIR_GET_HVALUE(item, _3$$7); zephir_array_fetch_string(&_4$$8, item, SL("expr"), PH_NOISY | PH_READONLY, "phalcon/annotations/annotation.zep", 121 TSRMLS_CC); @@ -30486,11 +30132,11 @@ static PHP_METHOD(Phalcon_Annotations_Annotation, getNamedArgument) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -30515,11 +30161,11 @@ static PHP_METHOD(Phalcon_Annotations_Annotation, getNamedParameter) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -30587,8 +30233,8 @@ static PHP_METHOD(Phalcon_Annotations_Collection, __construct) { if (Z_TYPE_P(reflectionData) == IS_ARRAY) { zephir_is_iterable(reflectionData, &_2$$4, &_1$$4, 0, 0, "phalcon/annotations/collection.zep", 68); for ( - ; zephir_hash_get_current_data_ex(_2$$4, (void**) &_3$$4, &_1$$4) == SUCCESS - ; zephir_hash_move_forward_ex(_2$$4, &_1$$4) + ; zend_hash_get_current_data_ex(_2$$4, (void**) &_3$$4, &_1$$4) == SUCCESS + ; zend_hash_move_forward_ex(_2$$4, &_1$$4) ) { ZEPHIR_GET_HVALUE(annotationData, _3$$4); ZEPHIR_INIT_NVAR(_4$$5); @@ -30692,8 +30338,8 @@ static PHP_METHOD(Phalcon_Annotations_Collection, get) { if (Z_TYPE_P(annotations) == IS_ARRAY) { zephir_is_iterable(annotations, &_1$$3, &_0$$3, 0, 0, "phalcon/annotations/collection.zep", 147); for ( - ; zephir_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_1$$3, &_0$$3) + ; zend_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS + ; zend_hash_move_forward_ex(_1$$3, &_0$$3) ) { ZEPHIR_GET_HVALUE(annotation, _2$$3); ZEPHIR_CALL_METHOD(&_3$$4, annotation, "getname", NULL, 0); @@ -30736,8 +30382,8 @@ static PHP_METHOD(Phalcon_Annotations_Collection, getAll) { if (Z_TYPE_P(annotations) == IS_ARRAY) { zephir_is_iterable(annotations, &_1$$3, &_0$$3, 0, 0, "phalcon/annotations/collection.zep", 167); for ( - ; zephir_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_1$$3, &_0$$3) + ; zend_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS + ; zend_hash_move_forward_ex(_1$$3, &_0$$3) ) { ZEPHIR_GET_HVALUE(annotation, _2$$3); ZEPHIR_CALL_METHOD(&_3$$4, annotation, "getname", NULL, 0); @@ -30770,8 +30416,8 @@ static PHP_METHOD(Phalcon_Annotations_Collection, has) { if (Z_TYPE_P(annotations) == IS_ARRAY) { zephir_is_iterable(annotations, &_1$$3, &_0$$3, 0, 0, "phalcon/annotations/collection.zep", 186); for ( - ; zephir_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_1$$3, &_0$$3) + ; zend_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS + ; zend_hash_move_forward_ex(_1$$3, &_0$$3) ) { ZEPHIR_GET_HVALUE(annotation, _2$$3); ZEPHIR_CALL_METHOD(&_3$$4, annotation, "getname", NULL, 0); @@ -33185,8 +32831,8 @@ static PHP_METHOD(Phalcon_Annotations_Reader, parse) { array_init(annotationsProperties); zephir_is_iterable(properties, &_3$$5, &_2$$5, 0, 0, "phalcon/annotations/reader.zep", 96); for ( - ; zephir_hash_get_current_data_ex(_3$$5, (void**) &_4$$5, &_2$$5) == SUCCESS - ; zephir_hash_move_forward_ex(_3$$5, &_2$$5) + ; zend_hash_get_current_data_ex(_3$$5, (void**) &_4$$5, &_2$$5) == SUCCESS + ; zend_hash_move_forward_ex(_3$$5, &_2$$5) ) { ZEPHIR_GET_HVALUE(property, _4$$5); ZEPHIR_CALL_METHOD(&comment, property, "getdoccomment", NULL, 0); @@ -33217,8 +32863,8 @@ static PHP_METHOD(Phalcon_Annotations_Reader, parse) { array_init(annotationsMethods); zephir_is_iterable(methods, &_9$$10, &_8$$10, 0, 0, "phalcon/annotations/reader.zep", 126); for ( - ; zephir_hash_get_current_data_ex(_9$$10, (void**) &_10$$10, &_8$$10) == SUCCESS - ; zephir_hash_move_forward_ex(_9$$10, &_8$$10) + ; zend_hash_get_current_data_ex(_9$$10, (void**) &_10$$10, &_8$$10) == SUCCESS + ; zend_hash_move_forward_ex(_9$$10, &_8$$10) ) { ZEPHIR_GET_HVALUE(method, _10$$10); ZEPHIR_CALL_METHOD(&comment, method, "getdoccomment", NULL, 0); @@ -33391,8 +33037,8 @@ static PHP_METHOD(Phalcon_Annotations_Reflection, getMethodsAnnotations) { array_init(collections); zephir_is_iterable(reflectionMethods, &_2$$5, &_1$$5, 0, 0, "phalcon/annotations/reflection.zep", 104); for ( - ; zephir_hash_get_current_data_ex(_2$$5, (void**) &_3$$5, &_1$$5) == SUCCESS - ; zephir_hash_move_forward_ex(_2$$5, &_1$$5) + ; zend_hash_get_current_data_ex(_2$$5, (void**) &_3$$5, &_1$$5) == SUCCESS + ; zend_hash_move_forward_ex(_2$$5, &_1$$5) ) { ZEPHIR_GET_HMKEY(methodName, _2$$5, _1$$5); ZEPHIR_GET_HVALUE(reflectionMethod, _3$$5); @@ -33438,8 +33084,8 @@ static PHP_METHOD(Phalcon_Annotations_Reflection, getPropertiesAnnotations) { array_init(collections); zephir_is_iterable(reflectionProperties, &_2$$5, &_1$$5, 0, 0, "phalcon/annotations/reflection.zep", 131); for ( - ; zephir_hash_get_current_data_ex(_2$$5, (void**) &_3$$5, &_1$$5) == SUCCESS - ; zephir_hash_move_forward_ex(_2$$5, &_1$$5) + ; zend_hash_get_current_data_ex(_2$$5, (void**) &_3$$5, &_1$$5) == SUCCESS + ; zend_hash_move_forward_ex(_2$$5, &_1$$5) ) { ZEPHIR_GET_HMKEY(property, _2$$5, _1$$5); ZEPHIR_GET_HVALUE(reflectionProperty, _3$$5); @@ -34558,11 +34204,11 @@ static PHP_METHOD(Phalcon_Annotations_Adapter_Apc, read) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &key_param); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { ZEPHIR_INIT_VAR(key); @@ -34590,11 +34236,11 @@ static PHP_METHOD(Phalcon_Annotations_Adapter_Apc, write) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &key_param, &data); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { ZEPHIR_INIT_VAR(key); @@ -34690,11 +34336,11 @@ static PHP_METHOD(Phalcon_Annotations_Adapter_Files, write) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &key_param, &data); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { ZEPHIR_INIT_VAR(key); @@ -34752,11 +34398,11 @@ static PHP_METHOD(Phalcon_Annotations_Adapter_Memory, read) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &key_param); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { ZEPHIR_INIT_VAR(key); @@ -34782,11 +34428,11 @@ static PHP_METHOD(Phalcon_Annotations_Adapter_Memory, write) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &key_param, &data); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { ZEPHIR_INIT_VAR(key); @@ -34828,11 +34474,11 @@ static PHP_METHOD(Phalcon_Annotations_Adapter_Xcache, read) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &key_param); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { ZEPHIR_INIT_VAR(key); @@ -34866,11 +34512,11 @@ static PHP_METHOD(Phalcon_Annotations_Adapter_Xcache, write) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &key_param, &data); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { ZEPHIR_INIT_VAR(key); @@ -35086,11 +34732,11 @@ static PHP_METHOD(Phalcon_Assets_Collection, addCss) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 3, &path_param, &local, &filter_param, &attributes); - if (unlikely(Z_TYPE_P(path_param) != IS_STRING && Z_TYPE_P(path_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(path_param) != IS_STRING && Z_TYPE_P(path_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'path' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(path_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(path_param) == IS_STRING)) { zephir_get_strval(path, path_param); } else { ZEPHIR_INIT_VAR(path); @@ -35188,11 +34834,11 @@ static PHP_METHOD(Phalcon_Assets_Collection, addJs) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 3, &path_param, &local, &filter_param, &attributes); - if (unlikely(Z_TYPE_P(path_param) != IS_STRING && Z_TYPE_P(path_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(path_param) != IS_STRING && Z_TYPE_P(path_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'path' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(path_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(path_param) == IS_STRING)) { zephir_get_strval(path, path_param); } else { ZEPHIR_INIT_VAR(path); @@ -35350,11 +34996,11 @@ static PHP_METHOD(Phalcon_Assets_Collection, setTargetPath) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &targetPath_param); - if (unlikely(Z_TYPE_P(targetPath_param) != IS_STRING && Z_TYPE_P(targetPath_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(targetPath_param) != IS_STRING && Z_TYPE_P(targetPath_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'targetPath' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(targetPath_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(targetPath_param) == IS_STRING)) { zephir_get_strval(targetPath, targetPath_param); } else { ZEPHIR_INIT_VAR(targetPath); @@ -35375,11 +35021,11 @@ static PHP_METHOD(Phalcon_Assets_Collection, setSourcePath) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &sourcePath_param); - if (unlikely(Z_TYPE_P(sourcePath_param) != IS_STRING && Z_TYPE_P(sourcePath_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(sourcePath_param) != IS_STRING && Z_TYPE_P(sourcePath_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'sourcePath' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(sourcePath_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(sourcePath_param) == IS_STRING)) { zephir_get_strval(sourcePath, sourcePath_param); } else { ZEPHIR_INIT_VAR(sourcePath); @@ -35400,11 +35046,11 @@ static PHP_METHOD(Phalcon_Assets_Collection, setTargetUri) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &targetUri_param); - if (unlikely(Z_TYPE_P(targetUri_param) != IS_STRING && Z_TYPE_P(targetUri_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(targetUri_param) != IS_STRING && Z_TYPE_P(targetUri_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'targetUri' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(targetUri_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(targetUri_param) == IS_STRING)) { zephir_get_strval(targetUri, targetUri_param); } else { ZEPHIR_INIT_VAR(targetUri); @@ -35425,11 +35071,11 @@ static PHP_METHOD(Phalcon_Assets_Collection, setPrefix) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &prefix_param); - if (unlikely(Z_TYPE_P(prefix_param) != IS_STRING && Z_TYPE_P(prefix_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(prefix_param) != IS_STRING && Z_TYPE_P(prefix_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'prefix' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(prefix_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(prefix_param) == IS_STRING)) { zephir_get_strval(prefix, prefix_param); } else { ZEPHIR_INIT_VAR(prefix); @@ -35449,7 +35095,7 @@ static PHP_METHOD(Phalcon_Assets_Collection, setLocal) { zephir_fetch_params(0, 1, 0, &local_param); - if (unlikely(Z_TYPE_P(local_param) != IS_BOOL)) { + if (UNEXPECTED(Z_TYPE_P(local_param) != IS_BOOL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'local' must be a bool") TSRMLS_CC); RETURN_NULL(); } @@ -35502,7 +35148,7 @@ static PHP_METHOD(Phalcon_Assets_Collection, setTargetLocal) { zephir_fetch_params(0, 1, 0, &targetLocal_param); - if (unlikely(Z_TYPE_P(targetLocal_param) != IS_BOOL)) { + if (UNEXPECTED(Z_TYPE_P(targetLocal_param) != IS_BOOL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'targetLocal' must be a bool") TSRMLS_CC); RETURN_NULL(); } @@ -35546,11 +35192,11 @@ static PHP_METHOD(Phalcon_Assets_Collection, getRealTargetPath) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &basePath_param); - if (unlikely(Z_TYPE_P(basePath_param) != IS_STRING && Z_TYPE_P(basePath_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(basePath_param) != IS_STRING && Z_TYPE_P(basePath_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'basePath' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(basePath_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(basePath_param) == IS_STRING)) { zephir_get_strval(basePath, basePath_param); } else { ZEPHIR_INIT_VAR(basePath); @@ -35897,11 +35543,11 @@ static PHP_METHOD(Phalcon_Assets_Manager, addCss) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 3, &path_param, &local, &filter, &attributes); - if (unlikely(Z_TYPE_P(path_param) != IS_STRING && Z_TYPE_P(path_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(path_param) != IS_STRING && Z_TYPE_P(path_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'path' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(path_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(path_param) == IS_STRING)) { zephir_get_strval(path, path_param); } else { ZEPHIR_INIT_VAR(path); @@ -35971,11 +35617,11 @@ static PHP_METHOD(Phalcon_Assets_Manager, addJs) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 3, &path_param, &local, &filter, &attributes); - if (unlikely(Z_TYPE_P(path_param) != IS_STRING && Z_TYPE_P(path_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(path_param) != IS_STRING && Z_TYPE_P(path_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'path' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(path_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(path_param) == IS_STRING)) { zephir_get_strval(path, path_param); } else { ZEPHIR_INIT_VAR(path); @@ -36045,11 +35691,11 @@ static PHP_METHOD(Phalcon_Assets_Manager, addResourceByType) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &type_param, &resource); - if (unlikely(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'type' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(type_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(type_param) == IS_STRING)) { zephir_get_strval(type, type_param); } else { ZEPHIR_INIT_VAR(type); @@ -36083,11 +35729,11 @@ static PHP_METHOD(Phalcon_Assets_Manager, addInlineCodeByType) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &type_param, &code); - if (unlikely(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'type' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(type_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(type_param) == IS_STRING)) { zephir_get_strval(type, type_param); } else { ZEPHIR_INIT_VAR(type); @@ -36156,11 +35802,11 @@ static PHP_METHOD(Phalcon_Assets_Manager, set) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &id_param, &collection); - if (unlikely(Z_TYPE_P(id_param) != IS_STRING && Z_TYPE_P(id_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(id_param) != IS_STRING && Z_TYPE_P(id_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'id' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(id_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(id_param) == IS_STRING)) { zephir_get_strval(id, id_param); } else { ZEPHIR_INIT_VAR(id); @@ -36181,11 +35827,11 @@ static PHP_METHOD(Phalcon_Assets_Manager, get) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &id_param); - if (unlikely(Z_TYPE_P(id_param) != IS_STRING && Z_TYPE_P(id_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(id_param) != IS_STRING && Z_TYPE_P(id_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'id' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(id_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(id_param) == IS_STRING)) { zephir_get_strval(id, id_param); } else { ZEPHIR_INIT_VAR(id); @@ -36358,8 +36004,8 @@ static PHP_METHOD(Phalcon_Assets_Manager, output) { } zephir_is_iterable(resources, &_6, &_5, 0, 0, "phalcon/assets/manager.zep", 638); for ( - ; zephir_hash_get_current_data_ex(_6, (void**) &_7, &_5) == SUCCESS - ; zephir_hash_move_forward_ex(_6, &_5) + ; zend_hash_get_current_data_ex(_6, (void**) &_7, &_5) == SUCCESS + ; zend_hash_move_forward_ex(_6, &_5) ) { ZEPHIR_GET_HVALUE(resource, _7); filterNeeded = 0; @@ -36461,8 +36107,8 @@ static PHP_METHOD(Phalcon_Assets_Manager, output) { if (ZEPHIR_IS_TRUE(mustFilter)) { zephir_is_iterable(filters, &_16$$31, &_15$$31, 0, 0, "phalcon/assets/manager.zep", 559); for ( - ; zephir_hash_get_current_data_ex(_16$$31, (void**) &_17$$31, &_15$$31) == SUCCESS - ; zephir_hash_move_forward_ex(_16$$31, &_15$$31) + ; zend_hash_get_current_data_ex(_16$$31, (void**) &_17$$31, &_15$$31) == SUCCESS + ; zend_hash_move_forward_ex(_16$$31, &_15$$31) ) { ZEPHIR_GET_HVALUE(filter, _17$$31); if (Z_TYPE_P(filter) != IS_OBJECT) { @@ -36591,8 +36237,8 @@ static PHP_METHOD(Phalcon_Assets_Manager, outputInline) { if (zephir_fast_count_int(codes TSRMLS_CC)) { zephir_is_iterable(codes, &_1$$3, &_0$$3, 0, 0, "phalcon/assets/manager.zep", 744); for ( - ; zephir_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_1$$3, &_0$$3) + ; zend_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS + ; zend_hash_move_forward_ex(_1$$3, &_0$$3) ) { ZEPHIR_GET_HVALUE(code, _2$$3); ZEPHIR_CALL_METHOD(&attributes, code, "getattributes", NULL, 0); @@ -36601,8 +36247,8 @@ static PHP_METHOD(Phalcon_Assets_Manager, outputInline) { zephir_check_call_status(); zephir_is_iterable(filters, &_4$$4, &_3$$4, 0, 0, "phalcon/assets/manager.zep", 737); for ( - ; zephir_hash_get_current_data_ex(_4$$4, (void**) &_5$$4, &_3$$4) == SUCCESS - ; zephir_hash_move_forward_ex(_4$$4, &_3$$4) + ; zend_hash_get_current_data_ex(_4$$4, (void**) &_5$$4, &_3$$4) == SUCCESS + ; zend_hash_move_forward_ex(_4$$4, &_3$$4) ) { ZEPHIR_GET_HVALUE(filter, _5$$4); if (Z_TYPE_P(filter) != IS_OBJECT) { @@ -36807,11 +36453,11 @@ static PHP_METHOD(Phalcon_Assets_Manager, exists) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &id_param); - if (unlikely(Z_TYPE_P(id_param) != IS_STRING && Z_TYPE_P(id_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(id_param) != IS_STRING && Z_TYPE_P(id_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'id' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(id_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(id_param) == IS_STRING)) { zephir_get_strval(id, id_param); } else { ZEPHIR_INIT_VAR(id); @@ -37273,11 +36919,11 @@ static PHP_METHOD(Phalcon_Assets_Filters_Cssmin, filter) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &content_param); - if (unlikely(Z_TYPE_P(content_param) != IS_STRING && Z_TYPE_P(content_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(content_param) != IS_STRING && Z_TYPE_P(content_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'content' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(content_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(content_param) == IS_STRING)) { zephir_get_strval(content, content_param); } else { ZEPHIR_INIT_VAR(content); @@ -37607,11 +37253,11 @@ static PHP_METHOD(Phalcon_Assets_Filters_Jsmin, filter) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &content_param); - if (unlikely(Z_TYPE_P(content_param) != IS_STRING && Z_TYPE_P(content_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(content_param) != IS_STRING && Z_TYPE_P(content_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'content' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(content_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(content_param) == IS_STRING)) { zephir_get_strval(content, content_param); } else { ZEPHIR_INIT_VAR(content); @@ -38062,11 +37708,11 @@ static PHP_METHOD(Phalcon_Assets_Filters_None, filter) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &content_param); - if (unlikely(Z_TYPE_P(content_param) != IS_STRING && Z_TYPE_P(content_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(content_param) != IS_STRING && Z_TYPE_P(content_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'content' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(content_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(content_param) == IS_STRING)) { zephir_get_strval(content, content_param); } else { ZEPHIR_INIT_VAR(content); @@ -38231,11 +37877,11 @@ static PHP_METHOD(Phalcon_Assets_Resource_Css, __construct) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 3, &path_param, &local_param, &filter_param, &attributes); - if (unlikely(Z_TYPE_P(path_param) != IS_STRING && Z_TYPE_P(path_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(path_param) != IS_STRING && Z_TYPE_P(path_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'path' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(path_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(path_param) == IS_STRING)) { zephir_get_strval(path, path_param); } else { ZEPHIR_INIT_VAR(path); @@ -38697,8 +38343,8 @@ static PHP_METHOD(Phalcon_Cache_Multiple, get) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_backends"), PH_NOISY_CC); zephir_is_iterable(_0, &_2, &_1, 0, 0, "phalcon/cache/multiple.zep", 133); for ( - ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS - ; zephir_hash_move_forward_ex(_2, &_1) + ; zend_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS + ; zend_hash_move_forward_ex(_2, &_1) ) { ZEPHIR_GET_HVALUE(backend, _3); ZEPHIR_CALL_METHOD(&content, backend, "get", NULL, 0, keyName, lifetime); @@ -38729,8 +38375,8 @@ static PHP_METHOD(Phalcon_Cache_Multiple, start) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_backends"), PH_NOISY_CC); zephir_is_iterable(_0, &_2, &_1, 0, 0, "phalcon/cache/multiple.zep", 149); for ( - ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS - ; zephir_hash_move_forward_ex(_2, &_1) + ; zend_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS + ; zend_hash_move_forward_ex(_2, &_1) ) { ZEPHIR_GET_HVALUE(backend, _3); ZEPHIR_CALL_METHOD(NULL, backend, "start", NULL, 0, keyName, lifetime); @@ -38767,8 +38413,8 @@ static PHP_METHOD(Phalcon_Cache_Multiple, save) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_backends"), PH_NOISY_CC); zephir_is_iterable(_0, &_2, &_1, 0, 0, "phalcon/cache/multiple.zep", 166); for ( - ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS - ; zephir_hash_move_forward_ex(_2, &_1) + ; zend_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS + ; zend_hash_move_forward_ex(_2, &_1) ) { ZEPHIR_GET_HVALUE(backend, _3); ZEPHIR_CALL_METHOD(NULL, backend, "save", NULL, 0, keyName, content, lifetime, stopBuffer); @@ -38793,8 +38439,8 @@ static PHP_METHOD(Phalcon_Cache_Multiple, delete) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_backends"), PH_NOISY_CC); zephir_is_iterable(_0, &_2, &_1, 0, 0, "phalcon/cache/multiple.zep", 182); for ( - ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS - ; zephir_hash_move_forward_ex(_2, &_1) + ; zend_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS + ; zend_hash_move_forward_ex(_2, &_1) ) { ZEPHIR_GET_HVALUE(backend, _3); ZEPHIR_CALL_METHOD(NULL, backend, "delete", NULL, 0, keyName); @@ -38825,8 +38471,8 @@ static PHP_METHOD(Phalcon_Cache_Multiple, exists) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_backends"), PH_NOISY_CC); zephir_is_iterable(_0, &_2, &_1, 0, 0, "phalcon/cache/multiple.zep", 201); for ( - ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS - ; zephir_hash_move_forward_ex(_2, &_1) + ; zend_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS + ; zend_hash_move_forward_ex(_2, &_1) ) { ZEPHIR_GET_HVALUE(backend, _3); ZEPHIR_CALL_METHOD(&_4$$3, backend, "exists", NULL, 0, keyName, lifetime); @@ -38851,8 +38497,8 @@ static PHP_METHOD(Phalcon_Cache_Multiple, flush) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_backends"), PH_NOISY_CC); zephir_is_iterable(_0, &_2, &_1, 0, 0, "phalcon/cache/multiple.zep", 215); for ( - ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS - ; zephir_hash_move_forward_ex(_2, &_1) + ; zend_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS + ; zend_hash_move_forward_ex(_2, &_1) ) { ZEPHIR_GET_HVALUE(backend, _3); ZEPHIR_CALL_METHOD(NULL, backend, "flush", NULL, 0); @@ -39098,11 +38744,11 @@ static PHP_METHOD(Phalcon_Cache_Backend_Apc, delete) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &keyName_param); - if (unlikely(Z_TYPE_P(keyName_param) != IS_STRING && Z_TYPE_P(keyName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(keyName_param) != IS_STRING && Z_TYPE_P(keyName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'keyName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(keyName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(keyName_param) == IS_STRING)) { zephir_get_strval(keyName, keyName_param); } else { ZEPHIR_INIT_VAR(keyName); @@ -39567,7 +39213,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_File, queryKeys) { } ZEPHIR_CALL_METHOD(&_5$$5, item, "isdir", NULL, 0); zephir_check_call_status(); - if (likely(ZEPHIR_IS_FALSE_IDENTICAL(_5$$5))) { + if (EXPECTED(ZEPHIR_IS_FALSE_IDENTICAL(_5$$5))) { ZEPHIR_CALL_METHOD(&key, item, "getfilename", NULL, 0); zephir_check_call_status(); if (!(ZEPHIR_IS_EMPTY(prefix))) { @@ -39828,7 +39474,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_File, flush) { } ZEPHIR_CALL_METHOD(&_3$$4, item, "isfile", NULL, 0); zephir_check_call_status(); - if (likely(ZEPHIR_IS_TRUE(_3$$4))) { + if (EXPECTED(ZEPHIR_IS_TRUE(_3$$4))) { ZEPHIR_CALL_METHOD(&key, item, "getfilename", NULL, 0); zephir_check_call_status(); ZEPHIR_CALL_METHOD(&cacheFile, item, "getpathname", NULL, 0); @@ -40262,7 +39908,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_Libmemcached, queryKeys) { } ZEPHIR_CALL_METHOD(&keys, memcache, "get", NULL, 0, specialKey); zephir_check_call_status(); - if (unlikely(Z_TYPE_P(keys) != IS_ARRAY)) { + if (UNEXPECTED(Z_TYPE_P(keys) != IS_ARRAY)) { array_init(return_value); RETURN_MM(); } @@ -40271,8 +39917,8 @@ static PHP_METHOD(Phalcon_Cache_Backend_Libmemcached, queryKeys) { ZEPHIR_CPY_WRT(keys, _0); zephir_is_iterable(keys, &_2, &_1, 1, 0, "phalcon/cache/backend/libmemcached.zep", 363); for ( - ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS - ; zephir_hash_move_forward_ex(_2, &_1) + ; zend_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS + ; zend_hash_move_forward_ex(_2, &_1) ) { ZEPHIR_GET_HMKEY(idx, _2, _1); ZEPHIR_GET_HVALUE(key, _3); @@ -40456,14 +40102,14 @@ static PHP_METHOD(Phalcon_Cache_Backend_Libmemcached, flush) { } ZEPHIR_CALL_METHOD(&keys, memcache, "get", NULL, 0, specialKey); zephir_check_call_status(); - if (unlikely(Z_TYPE_P(keys) != IS_ARRAY)) { + if (UNEXPECTED(Z_TYPE_P(keys) != IS_ARRAY)) { RETURN_MM_BOOL(1); } ZEPHIR_INIT_VAR(_0); zephir_is_iterable(keys, &_2, &_1, 0, 0, "phalcon/cache/backend/libmemcached.zep", 509); for ( - ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS - ; zephir_hash_move_forward_ex(_2, &_1) + ; zend_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS + ; zend_hash_move_forward_ex(_2, &_1) ) { ZEPHIR_GET_HMKEY(key, _2, _1); ZEPHIR_GET_HVALUE(_0, _3); @@ -40597,11 +40243,11 @@ static PHP_METHOD(Phalcon_Cache_Backend_Memcache, addServers) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 1, &host_param, &port_param, &persistent_param); - if (unlikely(Z_TYPE_P(host_param) != IS_STRING && Z_TYPE_P(host_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(host_param) != IS_STRING && Z_TYPE_P(host_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'host' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(host_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(host_param) == IS_STRING)) { zephir_get_strval(host, host_param); } else { ZEPHIR_INIT_VAR(host); @@ -40884,7 +40530,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_Memcache, queryKeys) { } ZEPHIR_CALL_METHOD(&keys, memcache, "get", NULL, 0, specialKey); zephir_check_call_status(); - if (unlikely(Z_TYPE_P(keys) != IS_ARRAY)) { + if (UNEXPECTED(Z_TYPE_P(keys) != IS_ARRAY)) { array_init(return_value); RETURN_MM(); } @@ -40893,8 +40539,8 @@ static PHP_METHOD(Phalcon_Cache_Backend_Memcache, queryKeys) { ZEPHIR_CPY_WRT(keys, _0); zephir_is_iterable(keys, &_2, &_1, 1, 0, "phalcon/cache/backend/memcache.zep", 365); for ( - ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS - ; zephir_hash_move_forward_ex(_2, &_1) + ; zend_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS + ; zend_hash_move_forward_ex(_2, &_1) ) { ZEPHIR_GET_HMKEY(idx, _2, _1); ZEPHIR_GET_HVALUE(key, _3); @@ -41076,14 +40722,14 @@ static PHP_METHOD(Phalcon_Cache_Backend_Memcache, flush) { } ZEPHIR_CALL_METHOD(&keys, memcache, "get", NULL, 0, specialKey); zephir_check_call_status(); - if (unlikely(Z_TYPE_P(keys) != IS_ARRAY)) { + if (UNEXPECTED(Z_TYPE_P(keys) != IS_ARRAY)) { RETURN_MM_BOOL(1); } ZEPHIR_INIT_VAR(_0); zephir_is_iterable(keys, &_2, &_1, 0, 0, "phalcon/cache/backend/memcache.zep", 492); for ( - ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS - ; zephir_hash_move_forward_ex(_2, &_1) + ; zend_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS + ; zend_hash_move_forward_ex(_2, &_1) ) { ZEPHIR_GET_HMKEY(key, _2, _1); ZEPHIR_GET_HVALUE(_0, _3); @@ -41281,8 +40927,8 @@ static PHP_METHOD(Phalcon_Cache_Backend_Memory, queryKeys) { zephir_array_keys(keys, data TSRMLS_CC); zephir_is_iterable(keys, &_1, &_0, 1, 0, "phalcon/cache/backend/memory.zep", 177); for ( - ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS - ; zephir_hash_move_forward_ex(_1, &_0) + ; zend_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS + ; zend_hash_move_forward_ex(_1, &_0) ) { ZEPHIR_GET_HMKEY(idx, _1, _0); ZEPHIR_GET_HVALUE(key, _2); @@ -41844,8 +41490,8 @@ static PHP_METHOD(Phalcon_Cache_Backend_Mongo, queryKeys) { } zephir_is_iterable(item, &_7$$4, &_6$$4, 0, 0, "phalcon/cache/backend/mongo.zep", 317); for ( - ; zephir_hash_get_current_data_ex(_7$$4, (void**) &_8$$4, &_6$$4) == SUCCESS - ; zephir_hash_move_forward_ex(_7$$4, &_6$$4) + ; zend_hash_get_current_data_ex(_7$$4, (void**) &_8$$4, &_6$$4) == SUCCESS + ; zend_hash_move_forward_ex(_7$$4, &_6$$4) ) { ZEPHIR_GET_HMKEY(key, _7$$4, _6$$4); ZEPHIR_GET_HVALUE(value, _8$$4); @@ -42128,8 +41774,10 @@ static PHP_METHOD(Phalcon_Cache_Backend_Redis, _connect) { zephir_read_property_this(&options, this_ptr, SL("_options"), PH_NOISY_CC); ZEPHIR_INIT_VAR(redis); object_init_ex(redis, zephir_get_internal_ce(SS("redis") TSRMLS_CC)); - ZEPHIR_CALL_METHOD(NULL, redis, "__construct", NULL, 0); - zephir_check_call_status(); + if (zephir_has_constructor(redis TSRMLS_CC)) { + ZEPHIR_CALL_METHOD(NULL, redis, "__construct", NULL, 0); + zephir_check_call_status(); + } ZEPHIR_OBS_VAR(host); _0 = !(zephir_array_isset_string_fetch(&host, options, SS("host"), 0 TSRMLS_CC)); if (!(_0)) { @@ -42441,8 +42089,8 @@ static PHP_METHOD(Phalcon_Cache_Backend_Redis, queryKeys) { } zephir_is_iterable(keys, &_1, &_0, 1, 0, "phalcon/cache/backend/redis.zep", 362); for ( - ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS - ; zephir_hash_move_forward_ex(_1, &_0) + ; zend_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS + ; zend_hash_move_forward_ex(_1, &_0) ) { ZEPHIR_GET_HMKEY(idx, _1, _0); ZEPHIR_GET_HVALUE(key, _2); @@ -42624,8 +42272,8 @@ static PHP_METHOD(Phalcon_Cache_Backend_Redis, flush) { if (Z_TYPE_P(keys) == IS_ARRAY) { zephir_is_iterable(keys, &_1$$6, &_0$$6, 0, 0, "phalcon/cache/backend/redis.zep", 480); for ( - ; zephir_hash_get_current_data_ex(_1$$6, (void**) &_2$$6, &_0$$6) == SUCCESS - ; zephir_hash_move_forward_ex(_1$$6, &_0$$6) + ; zend_hash_get_current_data_ex(_1$$6, (void**) &_2$$6, &_0$$6) == SUCCESS + ; zend_hash_move_forward_ex(_1$$6, &_0$$6) ) { ZEPHIR_GET_HVALUE(key, _2$$6); ZEPHIR_INIT_NVAR(lastKey); @@ -42921,8 +42569,8 @@ static PHP_METHOD(Phalcon_Cache_Backend_Xcache, queryKeys) { ZEPHIR_INIT_VAR(_2); zephir_is_iterable(keys, &_4, &_3, 0, 0, "phalcon/cache/backend/xcache.zep", 272); for ( - ; zephir_hash_get_current_data_ex(_4, (void**) &_5, &_3) == SUCCESS - ; zephir_hash_move_forward_ex(_4, &_3) + ; zend_hash_get_current_data_ex(_4, (void**) &_5, &_3) == SUCCESS + ; zend_hash_move_forward_ex(_4, &_3) ) { ZEPHIR_GET_HMKEY(key, _4, _3); ZEPHIR_GET_HVALUE(_2, _5); @@ -43087,8 +42735,8 @@ static PHP_METHOD(Phalcon_Cache_Backend_Xcache, flush) { ZEPHIR_INIT_VAR(_1$$5); zephir_is_iterable(keys, &_3$$5, &_2$$5, 1, 0, "phalcon/cache/backend/xcache.zep", 381); for ( - ; zephir_hash_get_current_data_ex(_3$$5, (void**) &_4$$5, &_2$$5) == SUCCESS - ; zephir_hash_move_forward_ex(_3$$5, &_2$$5) + ; zend_hash_get_current_data_ex(_3$$5, (void**) &_4$$5, &_2$$5) == SUCCESS + ; zend_hash_move_forward_ex(_3$$5, &_2$$5) ) { ZEPHIR_GET_HMKEY(key, _3$$5, _2$$5); ZEPHIR_GET_HVALUE(_1$$5, _4$$5); @@ -44148,7 +43796,7 @@ static PHP_METHOD(Phalcon_Cli_Console, setArgument) { if (!str_param) { str = 1; } else { - if (unlikely(Z_TYPE_P(str_param) != IS_BOOL)) { + if (UNEXPECTED(Z_TYPE_P(str_param) != IS_BOOL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'str' must be a bool") TSRMLS_CC); RETURN_MM_NULL(); } @@ -44157,7 +43805,7 @@ static PHP_METHOD(Phalcon_Cli_Console, setArgument) { if (!shift_param) { shift = 1; } else { - if (unlikely(Z_TYPE_P(shift_param) != IS_BOOL)) { + if (UNEXPECTED(Z_TYPE_P(shift_param) != IS_BOOL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'shift' must be a bool") TSRMLS_CC); RETURN_MM_NULL(); } @@ -44183,8 +43831,8 @@ static PHP_METHOD(Phalcon_Cli_Console, setArgument) { } zephir_is_iterable(arguments, &_3, &_2, 0, 0, "phalcon/cli/console.zep", 201); for ( - ; zephir_hash_get_current_data_ex(_3, (void**) &_4, &_2) == SUCCESS - ; zephir_hash_move_forward_ex(_3, &_2) + ; zend_hash_get_current_data_ex(_3, (void**) &_4, &_2) == SUCCESS + ; zend_hash_move_forward_ex(_3, &_2) ) { ZEPHIR_GET_HVALUE(arg, _4); if (Z_TYPE_P(arg) == IS_STRING) { @@ -44823,8 +44471,8 @@ static PHP_METHOD(Phalcon_Cli_Router, handle) { _1$$3 = zephir_fetch_nproperty_this(this_ptr, SL("_routes"), PH_NOISY_CC); zephir_is_iterable(_1$$3, &_3$$3, &_2$$3, 0, 1, "phalcon/cli/router.zep", 307); for ( - ; zephir_hash_get_current_data_ex(_3$$3, (void**) &_4$$3, &_2$$3) == SUCCESS - ; zephir_hash_move_backwards_ex(_3$$3, &_2$$3) + ; zend_hash_get_current_data_ex(_3$$3, (void**) &_4$$3, &_2$$3) == SUCCESS + ; zend_hash_move_backwards_ex(_3$$3, &_2$$3) ) { ZEPHIR_GET_HVALUE(route, _4$$3); ZEPHIR_CALL_METHOD(&pattern, route, "getcompiledpattern", NULL, 0); @@ -44863,8 +44511,8 @@ static PHP_METHOD(Phalcon_Cli_Router, handle) { zephir_check_call_status(); zephir_is_iterable(paths, &_7$$12, &_6$$12, 0, 0, "phalcon/cli/router.zep", 296); for ( - ; zephir_hash_get_current_data_ex(_7$$12, (void**) &_8$$12, &_6$$12) == SUCCESS - ; zephir_hash_move_forward_ex(_7$$12, &_6$$12) + ; zend_hash_get_current_data_ex(_7$$12, (void**) &_8$$12, &_6$$12) == SUCCESS + ; zend_hash_move_forward_ex(_7$$12, &_6$$12) ) { ZEPHIR_GET_HMKEY(part, _7$$12, _6$$12); ZEPHIR_GET_HVALUE(position, _8$$12); @@ -45001,11 +44649,11 @@ static PHP_METHOD(Phalcon_Cli_Router, add) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &pattern_param, &paths); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(pattern, pattern_param); } else { ZEPHIR_INIT_VAR(pattern); @@ -45104,8 +44752,8 @@ static PHP_METHOD(Phalcon_Cli_Router, getRouteById) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_routes"), PH_NOISY_CC); zephir_is_iterable(_0, &_2, &_1, 0, 0, "phalcon/cli/router.zep", 485); for ( - ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS - ; zephir_hash_move_forward_ex(_2, &_1) + ; zend_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS + ; zend_hash_move_forward_ex(_2, &_1) ) { ZEPHIR_GET_HVALUE(route, _3); ZEPHIR_CALL_METHOD(&_4$$3, route, "getrouteid", NULL, 0); @@ -45129,11 +44777,11 @@ static PHP_METHOD(Phalcon_Cli_Router, getRouteByName) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -45144,8 +44792,8 @@ static PHP_METHOD(Phalcon_Cli_Router, getRouteByName) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_routes"), PH_NOISY_CC); zephir_is_iterable(_0, &_2, &_1, 0, 0, "phalcon/cli/router.zep", 500); for ( - ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS - ; zephir_hash_move_forward_ex(_2, &_1) + ; zend_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS + ; zend_hash_move_forward_ex(_2, &_1) ) { ZEPHIR_GET_HVALUE(route, _3); ZEPHIR_CALL_METHOD(&_4$$3, route, "getname", NULL, 0); @@ -45389,11 +45037,11 @@ static PHP_METHOD(Phalcon_Cli_Router_Route, __construct) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &pattern_param, &paths); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(pattern, pattern_param); } else { ZEPHIR_INIT_VAR(pattern); @@ -45436,11 +45084,11 @@ static PHP_METHOD(Phalcon_Cli_Router_Route, compilePattern) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &pattern_param); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(pattern, pattern_param); } else { ZEPHIR_INIT_VAR(pattern); @@ -45539,11 +45187,11 @@ static PHP_METHOD(Phalcon_Cli_Router_Route, extractNamedParams) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &pattern_param); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(pattern, pattern_param); } else { ZEPHIR_INIT_VAR(pattern); @@ -45761,11 +45409,11 @@ static PHP_METHOD(Phalcon_Cli_Router_Route, reConfigure) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &pattern_param, &paths); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(pattern, pattern_param); } else { ZEPHIR_INIT_VAR(pattern); @@ -45895,11 +45543,11 @@ static PHP_METHOD(Phalcon_Cli_Router_Route, setName) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -45978,8 +45626,8 @@ static PHP_METHOD(Phalcon_Cli_Router_Route, getReversedPaths) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_paths"), PH_NOISY_CC); zephir_is_iterable(_0, &_2, &_1, 0, 0, "phalcon/cli/router/route.zep", 516); for ( - ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS - ; zephir_hash_move_forward_ex(_2, &_1) + ; zend_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS + ; zend_hash_move_forward_ex(_2, &_1) ) { ZEPHIR_GET_HMKEY(path, _2, _1); ZEPHIR_GET_HVALUE(position, _3); @@ -45997,11 +45645,11 @@ static PHP_METHOD(Phalcon_Cli_Router_Route, convert) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &name_param, &converter); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -46042,11 +45690,11 @@ static PHP_METHOD(Phalcon_Cli_Router_Route, delimiter) { ZEPHIR_INIT_VAR(delimiter); ZVAL_EMPTY_STRING(delimiter); } else { - if (unlikely(Z_TYPE_P(delimiter_param) != IS_STRING && Z_TYPE_P(delimiter_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(delimiter_param) != IS_STRING && Z_TYPE_P(delimiter_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'delimiter' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(delimiter_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(delimiter_param) == IS_STRING)) { zephir_get_strval(delimiter, delimiter_param); } else { ZEPHIR_INIT_VAR(delimiter); @@ -46162,11 +45810,11 @@ static PHP_METHOD(Phalcon_Config_Adapter_Ini, __construct) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &filePath_param, &mode); - if (unlikely(Z_TYPE_P(filePath_param) != IS_STRING && Z_TYPE_P(filePath_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(filePath_param) != IS_STRING && Z_TYPE_P(filePath_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'filePath' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(filePath_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(filePath_param) == IS_STRING)) { zephir_get_strval(filePath, filePath_param); } else { ZEPHIR_INIT_VAR(filePath); @@ -46202,8 +45850,8 @@ static PHP_METHOD(Phalcon_Config_Adapter_Ini, __construct) { array_init(config); zephir_is_iterable(iniConfig, &_4, &_3, 0, 0, "phalcon/config/adapter/ini.zep", 106); for ( - ; zephir_hash_get_current_data_ex(_4, (void**) &_5, &_3) == SUCCESS - ; zephir_hash_move_forward_ex(_4, &_3) + ; zend_hash_get_current_data_ex(_4, (void**) &_5, &_3) == SUCCESS + ; zend_hash_move_forward_ex(_4, &_3) ) { ZEPHIR_GET_HMKEY(section, _4, _3); ZEPHIR_GET_HVALUE(directives, _5); @@ -46212,8 +45860,8 @@ static PHP_METHOD(Phalcon_Config_Adapter_Ini, __construct) { array_init(sections); zephir_is_iterable(directives, &_7$$6, &_6$$6, 0, 0, "phalcon/config/adapter/ini.zep", 98); for ( - ; zephir_hash_get_current_data_ex(_7$$6, (void**) &_8$$6, &_6$$6) == SUCCESS - ; zephir_hash_move_forward_ex(_7$$6, &_6$$6) + ; zend_hash_get_current_data_ex(_7$$6, (void**) &_8$$6, &_6$$6) == SUCCESS + ; zend_hash_move_forward_ex(_7$$6, &_6$$6) ) { ZEPHIR_GET_HMKEY(path, _7$$6, _6$$6); ZEPHIR_GET_HVALUE(lastValue, _8$$6); @@ -46251,11 +45899,11 @@ static PHP_METHOD(Phalcon_Config_Adapter_Ini, _parseIniString) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &path_param, &value); - if (unlikely(Z_TYPE_P(path_param) != IS_STRING && Z_TYPE_P(path_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(path_param) != IS_STRING && Z_TYPE_P(path_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'path' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(path_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(path_param) == IS_STRING)) { zephir_get_strval(path, path_param); } else { ZEPHIR_INIT_VAR(path); @@ -46311,8 +45959,8 @@ static PHP_METHOD(Phalcon_Config_Adapter_Ini, _cast) { if (Z_TYPE_P(ini) == IS_ARRAY) { zephir_is_iterable(ini, &_1$$3, &_0$$3, 1, 0, "phalcon/config/adapter/ini.zep", 152); for ( - ; zephir_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_1$$3, &_0$$3) + ; zend_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS + ; zend_hash_move_forward_ex(_1$$3, &_0$$3) ) { ZEPHIR_GET_HMKEY(key, _1$$3, _0$$3); ZEPHIR_GET_HVALUE(val, _2$$3); @@ -46399,11 +46047,11 @@ static PHP_METHOD(Phalcon_Config_Adapter_Json, __construct) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &filePath_param); - if (unlikely(Z_TYPE_P(filePath_param) != IS_STRING && Z_TYPE_P(filePath_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(filePath_param) != IS_STRING && Z_TYPE_P(filePath_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'filePath' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(filePath_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(filePath_param) == IS_STRING)) { zephir_get_strval(filePath, filePath_param); } else { ZEPHIR_INIT_VAR(filePath); @@ -46449,11 +46097,11 @@ static PHP_METHOD(Phalcon_Config_Adapter_Php, __construct) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &filePath_param); - if (unlikely(Z_TYPE_P(filePath_param) != IS_STRING && Z_TYPE_P(filePath_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(filePath_param) != IS_STRING && Z_TYPE_P(filePath_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'filePath' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(filePath_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(filePath_param) == IS_STRING)) { zephir_get_strval(filePath, filePath_param); } else { ZEPHIR_INIT_VAR(filePath); @@ -46500,11 +46148,11 @@ static PHP_METHOD(Phalcon_Config_Adapter_Yaml, __construct) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &filePath_param, &callbacks_param); - if (unlikely(Z_TYPE_P(filePath_param) != IS_STRING && Z_TYPE_P(filePath_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(filePath_param) != IS_STRING && Z_TYPE_P(filePath_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'filePath' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(filePath_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(filePath_param) == IS_STRING)) { zephir_get_strval(filePath, filePath_param); } else { ZEPHIR_INIT_VAR(filePath); @@ -46741,11 +46389,11 @@ static PHP_METHOD(Phalcon_Db_Adapter, fetchOne) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 3, &sqlQuery_param, &fetchMode, &bindParams, &bindTypes); - if (unlikely(Z_TYPE_P(sqlQuery_param) != IS_STRING && Z_TYPE_P(sqlQuery_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(sqlQuery_param) != IS_STRING && Z_TYPE_P(sqlQuery_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'sqlQuery' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(sqlQuery_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(sqlQuery_param) == IS_STRING)) { zephir_get_strval(sqlQuery, sqlQuery_param); } else { ZEPHIR_INIT_VAR(sqlQuery); @@ -46898,8 +46546,8 @@ static PHP_METHOD(Phalcon_Db_Adapter, insert) { array_init(bindDataTypes); zephir_is_iterable(values, &_3, &_2, 0, 0, "phalcon/db/adapter.zep", 349); for ( - ; zephir_hash_get_current_data_ex(_3, (void**) &_4, &_2) == SUCCESS - ; zephir_hash_move_forward_ex(_3, &_2) + ; zend_hash_get_current_data_ex(_3, (void**) &_4, &_2) == SUCCESS + ; zend_hash_move_forward_ex(_3, &_2) ) { ZEPHIR_GET_HMKEY(position, _3, _2); ZEPHIR_GET_HVALUE(value, _4); @@ -46937,8 +46585,8 @@ static PHP_METHOD(Phalcon_Db_Adapter, insert) { array_init(escapedFields); zephir_is_iterable(fields, &_10$$11, &_9$$11, 0, 0, "phalcon/db/adapter.zep", 361); for ( - ; zephir_hash_get_current_data_ex(_10$$11, (void**) &_11$$11, &_9$$11) == SUCCESS - ; zephir_hash_move_forward_ex(_10$$11, &_9$$11) + ; zend_hash_get_current_data_ex(_10$$11, (void**) &_11$$11, &_9$$11) == SUCCESS + ; zend_hash_move_forward_ex(_10$$11, &_9$$11) ) { ZEPHIR_GET_HVALUE(field, _11$$11); ZEPHIR_CALL_METHOD(&_12$$12, this_ptr, "escapeidentifier", &_8, 0, field); @@ -46991,8 +46639,8 @@ static PHP_METHOD(Phalcon_Db_Adapter, insertAsDict) { } zephir_is_iterable(data, &_2, &_1, 0, 0, "phalcon/db/adapter.zep", 412); for ( - ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS - ; zephir_hash_move_forward_ex(_2, &_1) + ; zend_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS + ; zend_hash_move_forward_ex(_2, &_1) ) { ZEPHIR_GET_HMKEY(field, _2, _1); ZEPHIR_GET_HVALUE(value, _3); @@ -47032,8 +46680,8 @@ static PHP_METHOD(Phalcon_Db_Adapter, update) { array_init(bindDataTypes); zephir_is_iterable(values, &_1, &_0, 0, 0, "phalcon/db/adapter.zep", 496); for ( - ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS - ; zephir_hash_move_forward_ex(_1, &_0) + ; zend_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS + ; zend_hash_move_forward_ex(_1, &_0) ) { ZEPHIR_GET_HMKEY(position, _1, _0); ZEPHIR_GET_HVALUE(value, _2); @@ -47142,8 +46790,8 @@ static PHP_METHOD(Phalcon_Db_Adapter, updateAsDict) { } zephir_is_iterable(data, &_2, &_1, 0, 0, "phalcon/db/adapter.zep", 591); for ( - ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS - ; zephir_hash_move_forward_ex(_2, &_1) + ; zend_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS + ; zend_hash_move_forward_ex(_2, &_1) ) { ZEPHIR_GET_HMKEY(field, _2, _1); ZEPHIR_GET_HVALUE(value, _3); @@ -47244,11 +46892,11 @@ static PHP_METHOD(Phalcon_Db_Adapter, limit) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &sqlQuery_param, &number_param); - if (unlikely(Z_TYPE_P(sqlQuery_param) != IS_STRING && Z_TYPE_P(sqlQuery_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(sqlQuery_param) != IS_STRING && Z_TYPE_P(sqlQuery_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'sqlQuery' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(sqlQuery_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(sqlQuery_param) == IS_STRING)) { zephir_get_strval(sqlQuery, sqlQuery_param); } else { ZEPHIR_INIT_VAR(sqlQuery); @@ -47275,11 +46923,11 @@ static PHP_METHOD(Phalcon_Db_Adapter, tableExists) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &tableName_param, &schemaName_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { ZEPHIR_INIT_VAR(tableName); @@ -47289,11 +46937,11 @@ static PHP_METHOD(Phalcon_Db_Adapter, tableExists) { ZEPHIR_INIT_VAR(schemaName); ZVAL_EMPTY_STRING(schemaName); } else { - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(schemaName); @@ -47323,11 +46971,11 @@ static PHP_METHOD(Phalcon_Db_Adapter, viewExists) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &viewName_param, &schemaName_param); - if (unlikely(Z_TYPE_P(viewName_param) != IS_STRING && Z_TYPE_P(viewName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(viewName_param) != IS_STRING && Z_TYPE_P(viewName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'viewName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(viewName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(viewName_param) == IS_STRING)) { zephir_get_strval(viewName, viewName_param); } else { ZEPHIR_INIT_VAR(viewName); @@ -47337,11 +46985,11 @@ static PHP_METHOD(Phalcon_Db_Adapter, viewExists) { ZEPHIR_INIT_VAR(schemaName); ZVAL_EMPTY_STRING(schemaName); } else { - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(schemaName); @@ -47371,11 +47019,11 @@ static PHP_METHOD(Phalcon_Db_Adapter, forUpdate) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &sqlQuery_param); - if (unlikely(Z_TYPE_P(sqlQuery_param) != IS_STRING && Z_TYPE_P(sqlQuery_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(sqlQuery_param) != IS_STRING && Z_TYPE_P(sqlQuery_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'sqlQuery' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(sqlQuery_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(sqlQuery_param) == IS_STRING)) { zephir_get_strval(sqlQuery, sqlQuery_param); } else { ZEPHIR_INIT_VAR(sqlQuery); @@ -47399,11 +47047,11 @@ static PHP_METHOD(Phalcon_Db_Adapter, sharedLock) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &sqlQuery_param); - if (unlikely(Z_TYPE_P(sqlQuery_param) != IS_STRING && Z_TYPE_P(sqlQuery_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(sqlQuery_param) != IS_STRING && Z_TYPE_P(sqlQuery_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'sqlQuery' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(sqlQuery_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(sqlQuery_param) == IS_STRING)) { zephir_get_strval(sqlQuery, sqlQuery_param); } else { ZEPHIR_INIT_VAR(sqlQuery); @@ -47428,21 +47076,21 @@ static PHP_METHOD(Phalcon_Db_Adapter, createTable) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &definition_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { ZEPHIR_INIT_VAR(tableName); ZVAL_EMPTY_STRING(tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(schemaName); @@ -47479,11 +47127,11 @@ static PHP_METHOD(Phalcon_Db_Adapter, dropTable) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &tableName_param, &schemaName_param, &ifExists_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { ZEPHIR_INIT_VAR(tableName); @@ -47493,11 +47141,11 @@ static PHP_METHOD(Phalcon_Db_Adapter, dropTable) { ZEPHIR_INIT_VAR(schemaName); ZVAL_EMPTY_STRING(schemaName); } else { - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(schemaName); @@ -47536,11 +47184,11 @@ static PHP_METHOD(Phalcon_Db_Adapter, createView) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 1, &viewName_param, &definition_param, &schemaName); - if (unlikely(Z_TYPE_P(viewName_param) != IS_STRING && Z_TYPE_P(viewName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(viewName_param) != IS_STRING && Z_TYPE_P(viewName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'viewName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(viewName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(viewName_param) == IS_STRING)) { zephir_get_strval(viewName, viewName_param); } else { ZEPHIR_INIT_VAR(viewName); @@ -47575,11 +47223,11 @@ static PHP_METHOD(Phalcon_Db_Adapter, dropView) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &viewName_param, &schemaName_param, &ifExists_param); - if (unlikely(Z_TYPE_P(viewName_param) != IS_STRING && Z_TYPE_P(viewName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(viewName_param) != IS_STRING && Z_TYPE_P(viewName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'viewName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(viewName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(viewName_param) == IS_STRING)) { zephir_get_strval(viewName, viewName_param); } else { ZEPHIR_INIT_VAR(viewName); @@ -47589,11 +47237,11 @@ static PHP_METHOD(Phalcon_Db_Adapter, dropView) { ZEPHIR_INIT_VAR(schemaName); ZVAL_EMPTY_STRING(schemaName); } else { - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(schemaName); @@ -47631,21 +47279,21 @@ static PHP_METHOD(Phalcon_Db_Adapter, addColumn) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &column); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { ZEPHIR_INIT_VAR(tableName); ZVAL_EMPTY_STRING(tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(schemaName); @@ -47671,21 +47319,21 @@ static PHP_METHOD(Phalcon_Db_Adapter, modifyColumn) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 1, &tableName_param, &schemaName_param, &column, ¤tColumn); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { ZEPHIR_INIT_VAR(tableName); ZVAL_EMPTY_STRING(tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(schemaName); @@ -47714,21 +47362,21 @@ static PHP_METHOD(Phalcon_Db_Adapter, dropColumn) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &columnName_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { ZEPHIR_INIT_VAR(tableName); ZVAL_EMPTY_STRING(tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(schemaName); @@ -47755,21 +47403,21 @@ static PHP_METHOD(Phalcon_Db_Adapter, addIndex) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &index); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { ZEPHIR_INIT_VAR(tableName); ZVAL_EMPTY_STRING(tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(schemaName); @@ -47795,21 +47443,21 @@ static PHP_METHOD(Phalcon_Db_Adapter, dropIndex) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &indexName); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { ZEPHIR_INIT_VAR(tableName); ZVAL_EMPTY_STRING(tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(schemaName); @@ -47835,21 +47483,21 @@ static PHP_METHOD(Phalcon_Db_Adapter, addPrimaryKey) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &index); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { ZEPHIR_INIT_VAR(tableName); ZVAL_EMPTY_STRING(tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(schemaName); @@ -47875,21 +47523,21 @@ static PHP_METHOD(Phalcon_Db_Adapter, dropPrimaryKey) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &tableName_param, &schemaName_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { ZEPHIR_INIT_VAR(tableName); ZVAL_EMPTY_STRING(tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(schemaName); @@ -47915,21 +47563,21 @@ static PHP_METHOD(Phalcon_Db_Adapter, addForeignKey) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &reference); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { ZEPHIR_INIT_VAR(tableName); ZVAL_EMPTY_STRING(tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(schemaName); @@ -47955,31 +47603,31 @@ static PHP_METHOD(Phalcon_Db_Adapter, dropForeignKey) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &referenceName_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { ZEPHIR_INIT_VAR(tableName); ZVAL_EMPTY_STRING(tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(schemaName); ZVAL_EMPTY_STRING(schemaName); } - if (unlikely(Z_TYPE_P(referenceName_param) != IS_STRING && Z_TYPE_P(referenceName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(referenceName_param) != IS_STRING && Z_TYPE_P(referenceName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'referenceName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(referenceName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(referenceName_param) == IS_STRING)) { zephir_get_strval(referenceName, referenceName_param); } else { ZEPHIR_INIT_VAR(referenceName); @@ -48028,11 +47676,11 @@ static PHP_METHOD(Phalcon_Db_Adapter, listTables) { ZEPHIR_INIT_VAR(schemaName); ZVAL_EMPTY_STRING(schemaName); } else { - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(schemaName); @@ -48052,8 +47700,8 @@ static PHP_METHOD(Phalcon_Db_Adapter, listTables) { zephir_check_call_status(); zephir_is_iterable(_0, &_5, &_4, 0, 0, "phalcon/db/adapter.zep", 869); for ( - ; zephir_hash_get_current_data_ex(_5, (void**) &_6, &_4) == SUCCESS - ; zephir_hash_move_forward_ex(_5, &_4) + ; zend_hash_get_current_data_ex(_5, (void**) &_6, &_4) == SUCCESS + ; zend_hash_move_forward_ex(_5, &_4) ) { ZEPHIR_GET_HVALUE(table, _6); zephir_array_fetch_long(&_7$$3, table, 0, PH_NOISY | PH_READONLY, "phalcon/db/adapter.zep", 867 TSRMLS_CC); @@ -48078,11 +47726,11 @@ static PHP_METHOD(Phalcon_Db_Adapter, listViews) { ZEPHIR_INIT_VAR(schemaName); ZVAL_EMPTY_STRING(schemaName); } else { - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(schemaName); @@ -48102,8 +47750,8 @@ static PHP_METHOD(Phalcon_Db_Adapter, listViews) { zephir_check_call_status(); zephir_is_iterable(_0, &_5, &_4, 0, 0, "phalcon/db/adapter.zep", 889); for ( - ; zephir_hash_get_current_data_ex(_5, (void**) &_6, &_4) == SUCCESS - ; zephir_hash_move_forward_ex(_5, &_4) + ; zend_hash_get_current_data_ex(_5, (void**) &_6, &_4) == SUCCESS + ; zend_hash_move_forward_ex(_5, &_4) ) { ZEPHIR_GET_HVALUE(table, _6); zephir_array_fetch_long(&_7$$3, table, 0, PH_NOISY | PH_READONLY, "phalcon/db/adapter.zep", 887 TSRMLS_CC); @@ -48125,11 +47773,11 @@ static PHP_METHOD(Phalcon_Db_Adapter, describeIndexes) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &table_param, &schema); - if (unlikely(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'table' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(table_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(table_param) == IS_STRING)) { zephir_get_strval(table, table_param); } else { ZEPHIR_INIT_VAR(table); @@ -48151,8 +47799,8 @@ static PHP_METHOD(Phalcon_Db_Adapter, describeIndexes) { zephir_check_call_status(); zephir_is_iterable(_0, &_5, &_4, 0, 0, "phalcon/db/adapter.zep", 923); for ( - ; zephir_hash_get_current_data_ex(_5, (void**) &_6, &_4) == SUCCESS - ; zephir_hash_move_forward_ex(_5, &_4) + ; zend_hash_get_current_data_ex(_5, (void**) &_6, &_4) == SUCCESS + ; zend_hash_move_forward_ex(_5, &_4) ) { ZEPHIR_GET_HVALUE(index, _6); zephir_array_fetch_long(&keyName, index, 2, PH_NOISY | PH_READONLY, "phalcon/db/adapter.zep", 912 TSRMLS_CC); @@ -48171,8 +47819,8 @@ static PHP_METHOD(Phalcon_Db_Adapter, describeIndexes) { array_init(indexObjects); zephir_is_iterable(indexes, &_9, &_8, 0, 0, "phalcon/db/adapter.zep", 932); for ( - ; zephir_hash_get_current_data_ex(_9, (void**) &_10, &_8) == SUCCESS - ; zephir_hash_move_forward_ex(_9, &_8) + ; zend_hash_get_current_data_ex(_9, (void**) &_10, &_8) == SUCCESS + ; zend_hash_move_forward_ex(_9, &_8) ) { ZEPHIR_GET_HMKEY(name, _9, _8); ZEPHIR_GET_HVALUE(indexColumns, _10); @@ -48199,11 +47847,11 @@ static PHP_METHOD(Phalcon_Db_Adapter, describeReferences) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &table_param, &schema_param); - if (unlikely(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'table' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(table_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(table_param) == IS_STRING)) { zephir_get_strval(table, table_param); } else { ZEPHIR_INIT_VAR(table); @@ -48213,11 +47861,11 @@ static PHP_METHOD(Phalcon_Db_Adapter, describeReferences) { ZEPHIR_INIT_VAR(schema); ZVAL_EMPTY_STRING(schema); } else { - if (unlikely(Z_TYPE_P(schema_param) != IS_STRING && Z_TYPE_P(schema_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schema_param) != IS_STRING && Z_TYPE_P(schema_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schema' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schema_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schema_param) == IS_STRING)) { zephir_get_strval(schema, schema_param); } else { ZEPHIR_INIT_VAR(schema); @@ -48237,8 +47885,8 @@ static PHP_METHOD(Phalcon_Db_Adapter, describeReferences) { zephir_check_call_status(); zephir_is_iterable(_0, &_5, &_4, 0, 0, "phalcon/db/adapter.zep", 978); for ( - ; zephir_hash_get_current_data_ex(_5, (void**) &_6, &_4) == SUCCESS - ; zephir_hash_move_forward_ex(_5, &_4) + ; zend_hash_get_current_data_ex(_5, (void**) &_6, &_4) == SUCCESS + ; zend_hash_move_forward_ex(_5, &_4) ) { ZEPHIR_GET_HVALUE(reference, _6); zephir_array_fetch_long(&constraintName, reference, 2, PH_NOISY | PH_READONLY, "phalcon/db/adapter.zep", 954 TSRMLS_CC); @@ -48281,8 +47929,8 @@ static PHP_METHOD(Phalcon_Db_Adapter, describeReferences) { array_init(referenceObjects); zephir_is_iterable(references, &_15, &_14, 0, 0, "phalcon/db/adapter.zep", 988); for ( - ; zephir_hash_get_current_data_ex(_15, (void**) &_16, &_14) == SUCCESS - ; zephir_hash_move_forward_ex(_15, &_14) + ; zend_hash_get_current_data_ex(_15, (void**) &_16, &_14) == SUCCESS + ; zend_hash_move_forward_ex(_15, &_14) ) { ZEPHIR_GET_HMKEY(name, _15, _14); ZEPHIR_GET_HVALUE(arrayReference, _16); @@ -48319,11 +47967,11 @@ static PHP_METHOD(Phalcon_Db_Adapter, tableOptions) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &tableName_param, &schemaName_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { ZEPHIR_INIT_VAR(tableName); @@ -48362,11 +48010,11 @@ static PHP_METHOD(Phalcon_Db_Adapter, createSavepoint) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -48399,11 +48047,11 @@ static PHP_METHOD(Phalcon_Db_Adapter, releaseSavepoint) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -48441,11 +48089,11 @@ static PHP_METHOD(Phalcon_Db_Adapter, rollbackSavepoint) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -48948,11 +48596,11 @@ static PHP_METHOD(Phalcon_Db_Column, __construct) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &name_param, &definition_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -49322,11 +48970,11 @@ static PHP_METHOD(Phalcon_Db_Dialect, escapeSchema) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &str_param, &escapeChar_param); - if (unlikely(Z_TYPE_P(str_param) != IS_STRING && Z_TYPE_P(str_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(str_param) != IS_STRING && Z_TYPE_P(str_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'str' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(str_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(str_param) == IS_STRING)) { zephir_get_strval(str, str_param); } else { ZEPHIR_INIT_VAR(str); @@ -49368,11 +49016,11 @@ static PHP_METHOD(Phalcon_Db_Dialect, escape) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &str_param, &escapeChar_param); - if (unlikely(Z_TYPE_P(str_param) != IS_STRING && Z_TYPE_P(str_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(str_param) != IS_STRING && Z_TYPE_P(str_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'str' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(str_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(str_param) == IS_STRING)) { zephir_get_strval(str, str_param); } else { ZEPHIR_INIT_VAR(str); @@ -49419,8 +49067,8 @@ static PHP_METHOD(Phalcon_Db_Dialect, escape) { ZEPHIR_CPY_WRT(newParts, parts); zephir_is_iterable(parts, &_9, &_8, 0, 0, "phalcon/db/dialect.zep", 105); for ( - ; zephir_hash_get_current_data_ex(_9, (void**) &_10, &_8) == SUCCESS - ; zephir_hash_move_forward_ex(_9, &_8) + ; zend_hash_get_current_data_ex(_9, (void**) &_10, &_8) == SUCCESS + ; zend_hash_move_forward_ex(_9, &_8) ) { ZEPHIR_GET_HMKEY(key, _9, _8); ZEPHIR_GET_HVALUE(part, _10); @@ -49457,11 +49105,11 @@ static PHP_METHOD(Phalcon_Db_Dialect, limit) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &sqlQuery_param, &number); - if (unlikely(Z_TYPE_P(sqlQuery_param) != IS_STRING && Z_TYPE_P(sqlQuery_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(sqlQuery_param) != IS_STRING && Z_TYPE_P(sqlQuery_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'sqlQuery' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(sqlQuery_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(sqlQuery_param) == IS_STRING)) { zephir_get_strval(sqlQuery, sqlQuery_param); } else { ZEPHIR_INIT_VAR(sqlQuery); @@ -49500,11 +49148,11 @@ static PHP_METHOD(Phalcon_Db_Dialect, forUpdate) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &sqlQuery_param); - if (unlikely(Z_TYPE_P(sqlQuery_param) != IS_STRING && Z_TYPE_P(sqlQuery_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(sqlQuery_param) != IS_STRING && Z_TYPE_P(sqlQuery_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'sqlQuery' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(sqlQuery_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(sqlQuery_param) == IS_STRING)) { zephir_get_strval(sqlQuery, sqlQuery_param); } else { ZEPHIR_INIT_VAR(sqlQuery); @@ -49525,11 +49173,11 @@ static PHP_METHOD(Phalcon_Db_Dialect, sharedLock) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &sqlQuery_param); - if (unlikely(Z_TYPE_P(sqlQuery_param) != IS_STRING && Z_TYPE_P(sqlQuery_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(sqlQuery_param) != IS_STRING && Z_TYPE_P(sqlQuery_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'sqlQuery' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(sqlQuery_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(sqlQuery_param) == IS_STRING)) { zephir_get_strval(sqlQuery, sqlQuery_param); } else { ZEPHIR_INIT_VAR(sqlQuery); @@ -49571,8 +49219,8 @@ static PHP_METHOD(Phalcon_Db_Dialect, getColumnList) { array_init(columns); zephir_is_iterable(columnList, &_1, &_0, 0, 0, "phalcon/db/dialect.zep", 182); for ( - ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS - ; zephir_hash_move_forward_ex(_1, &_0) + ; zend_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS + ; zend_hash_move_forward_ex(_1, &_0) ) { ZEPHIR_GET_HVALUE(column, _2); ZEPHIR_CALL_METHOD(&_3$$3, this_ptr, "getsqlcolumn", &_4, 40, column, escapeChar, bindCounts); @@ -50024,11 +49672,11 @@ static PHP_METHOD(Phalcon_Db_Dialect, createSavepoint) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -50049,11 +49697,11 @@ static PHP_METHOD(Phalcon_Db_Dialect, releaseSavepoint) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -50074,11 +49722,11 @@ static PHP_METHOD(Phalcon_Db_Dialect, rollbackSavepoint) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -50397,8 +50045,8 @@ static PHP_METHOD(Phalcon_Db_Dialect, getSqlExpressionList) { if (_1) { zephir_is_iterable(values, &_3$$4, &_2$$4, 0, 0, "phalcon/db/dialect.zep", 684); for ( - ; zephir_hash_get_current_data_ex(_3$$4, (void**) &_4$$4, &_2$$4) == SUCCESS - ; zephir_hash_move_forward_ex(_3$$4, &_2$$4) + ; zend_hash_get_current_data_ex(_3$$4, (void**) &_4$$4, &_2$$4) == SUCCESS + ; zend_hash_move_forward_ex(_3$$4, &_2$$4) ) { ZEPHIR_GET_HVALUE(item, _4$$4); ZEPHIR_CALL_METHOD(&_5$$5, this_ptr, "getsqlexpression", &_6, 0, item, escapeChar, bindCounts); @@ -50555,8 +50203,8 @@ static PHP_METHOD(Phalcon_Db_Dialect, getSqlExpressionCase) { zephir_array_fetch_string(&_3, expression, SL("when-clauses"), PH_NOISY | PH_READONLY, "phalcon/db/dialect.zep", 741 TSRMLS_CC); zephir_is_iterable(_3, &_5, &_4, 0, 0, "phalcon/db/dialect.zep", 752); for ( - ; zephir_hash_get_current_data_ex(_5, (void**) &_6, &_4) == SUCCESS - ; zephir_hash_move_forward_ex(_5, &_4) + ; zend_hash_get_current_data_ex(_5, (void**) &_6, &_4) == SUCCESS + ; zend_hash_move_forward_ex(_5, &_4) ) { ZEPHIR_GET_HVALUE(whenClause, _6); zephir_array_fetch_string(&_7$$3, whenClause, SL("type"), PH_NOISY | PH_READONLY, "phalcon/db/dialect.zep", 742 TSRMLS_CC); @@ -50609,8 +50257,8 @@ static PHP_METHOD(Phalcon_Db_Dialect, getSqlExpressionFrom) { array_init(tables); zephir_is_iterable(expression, &_1$$3, &_0$$3, 0, 0, "phalcon/db/dialect.zep", 770); for ( - ; zephir_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_1$$3, &_0$$3) + ; zend_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS + ; zend_hash_move_forward_ex(_1$$3, &_0$$3) ) { ZEPHIR_GET_HVALUE(table, _2$$3); ZEPHIR_CALL_METHOD(&_3$$4, this_ptr, "getsqltable", &_4, 62, table, escapeChar); @@ -50658,8 +50306,8 @@ static PHP_METHOD(Phalcon_Db_Dialect, getSqlExpressionJoins) { ZVAL_STRING(joinType, "", 1); zephir_is_iterable(expression, &_1, &_0, 0, 0, "phalcon/db/dialect.zep", 818); for ( - ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS - ; zephir_hash_move_forward_ex(_1, &_0) + ; zend_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS + ; zend_hash_move_forward_ex(_1, &_0) ) { ZEPHIR_GET_HVALUE(join, _2); ZEPHIR_OBS_NVAR(joinConditionsArray); @@ -50676,8 +50324,8 @@ static PHP_METHOD(Phalcon_Db_Dialect, getSqlExpressionJoins) { array_init(joinCondition); zephir_is_iterable(joinConditionsArray, &_6$$6, &_5$$6, 0, 0, "phalcon/db/dialect.zep", 803); for ( - ; zephir_hash_get_current_data_ex(_6$$6, (void**) &_7$$6, &_5$$6) == SUCCESS - ; zephir_hash_move_forward_ex(_6$$6, &_5$$6) + ; zend_hash_get_current_data_ex(_6$$6, (void**) &_7$$6, &_5$$6) == SUCCESS + ; zend_hash_move_forward_ex(_6$$6, &_5$$6) ) { ZEPHIR_GET_HVALUE(condition, _7$$6); ZEPHIR_CALL_METHOD(&_8$$7, this_ptr, "getsqlexpression", &_4, 46, condition, escapeChar, bindCounts); @@ -50770,11 +50418,11 @@ static PHP_METHOD(Phalcon_Db_Dialect, getSqlExpressionGroupBy) { array_init(fields); zephir_is_iterable(expression, &_1$$3, &_0$$3, 0, 0, "phalcon/db/dialect.zep", 856); for ( - ; zephir_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_1$$3, &_0$$3) + ; zend_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS + ; zend_hash_move_forward_ex(_1$$3, &_0$$3) ) { ZEPHIR_GET_HVALUE(field, _2$$3); - if (unlikely(Z_TYPE_P(field) != IS_ARRAY)) { + if (UNEXPECTED(Z_TYPE_P(field) != IS_ARRAY)) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Invalid SQL-GROUP-BY expression", "phalcon/db/dialect.zep", 850); return; } @@ -50853,11 +50501,11 @@ static PHP_METHOD(Phalcon_Db_Dialect, getSqlExpressionOrderBy) { array_init(fields); zephir_is_iterable(expression, &_1$$3, &_0$$3, 0, 0, "phalcon/db/dialect.zep", 902); for ( - ; zephir_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_1$$3, &_0$$3) + ; zend_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS + ; zend_hash_move_forward_ex(_1$$3, &_0$$3) ) { ZEPHIR_GET_HVALUE(field, _2$$3); - if (unlikely(Z_TYPE_P(field) != IS_ARRAY)) { + if (UNEXPECTED(Z_TYPE_P(field) != IS_ARRAY)) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Invalid SQL-ORDER-BY expression", "phalcon/db/dialect.zep", 887); return; } @@ -50963,11 +50611,11 @@ static PHP_METHOD(Phalcon_Db_Dialect, prepareColumnAlias) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &qualified_param, &alias_param, &escapeChar_param); - if (unlikely(Z_TYPE_P(qualified_param) != IS_STRING && Z_TYPE_P(qualified_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(qualified_param) != IS_STRING && Z_TYPE_P(qualified_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'qualified' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(qualified_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(qualified_param) == IS_STRING)) { zephir_get_strval(qualified, qualified_param); } else { ZEPHIR_INIT_VAR(qualified); @@ -51007,11 +50655,11 @@ static PHP_METHOD(Phalcon_Db_Dialect, prepareTable) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 3, &table_param, &schema_param, &alias_param, &escapeChar_param); - if (unlikely(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'table' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(table_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(table_param) == IS_STRING)) { zephir_get_strval(table, table_param); } else { ZEPHIR_INIT_VAR(table); @@ -51068,11 +50716,11 @@ static PHP_METHOD(Phalcon_Db_Dialect, prepareQualified) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &column_param, &domain_param, &escapeChar_param); - if (unlikely(Z_TYPE_P(column_param) != IS_STRING && Z_TYPE_P(column_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(column_param) != IS_STRING && Z_TYPE_P(column_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'column' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(column_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(column_param) == IS_STRING)) { zephir_get_strval(column, column_param); } else { ZEPHIR_INIT_VAR(column); @@ -51261,11 +50909,11 @@ static PHP_METHOD(Phalcon_Db_Index, __construct) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 1, &name_param, &columns_param, &type); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -51668,11 +51316,11 @@ static PHP_METHOD(Phalcon_Db_Reference, __construct) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &name_param, &definition_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -51955,8 +51603,8 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo, connect) { array_init(dsnParts); zephir_is_iterable(descriptor, &_3$$13, &_2$$13, 0, 0, "phalcon/db/adapter/pdo.zep", 156); for ( - ; zephir_hash_get_current_data_ex(_3$$13, (void**) &_4$$13, &_2$$13) == SUCCESS - ; zephir_hash_move_forward_ex(_3$$13, &_2$$13) + ; zend_hash_get_current_data_ex(_3$$13, (void**) &_4$$13, &_2$$13) == SUCCESS + ; zend_hash_move_forward_ex(_3$$13, &_2$$13) ) { ZEPHIR_GET_HMKEY(key, _3$$13, _2$$13); ZEPHIR_GET_HVALUE(value, _4$$13); @@ -51991,11 +51639,11 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo, prepare) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &sqlStatement_param); - if (unlikely(Z_TYPE_P(sqlStatement_param) != IS_STRING && Z_TYPE_P(sqlStatement_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(sqlStatement_param) != IS_STRING && Z_TYPE_P(sqlStatement_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'sqlStatement' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(sqlStatement_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(sqlStatement_param) == IS_STRING)) { zephir_get_strval(sqlStatement, sqlStatement_param); } else { ZEPHIR_INIT_VAR(sqlStatement); @@ -52029,8 +51677,8 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo, executePrepared) { zephir_is_iterable(placeholders, &_1, &_0, 0, 0, "phalcon/db/adapter/pdo.zep", 306); for ( - ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS - ; zephir_hash_move_forward_ex(_1, &_0) + ; zend_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS + ; zend_hash_move_forward_ex(_1, &_0) ) { ZEPHIR_GET_HMKEY(wildcard, _1, _0); ZEPHIR_GET_HVALUE(value, _2); @@ -52102,8 +51750,8 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo, executePrepared) { } else { zephir_is_iterable(castValue, &_9$$22, &_8$$22, 0, 0, "phalcon/db/adapter/pdo.zep", 294); for ( - ; zephir_hash_get_current_data_ex(_9$$22, (void**) &_10$$22, &_8$$22) == SUCCESS - ; zephir_hash_move_forward_ex(_9$$22, &_8$$22) + ; zend_hash_get_current_data_ex(_9$$22, (void**) &_10$$22, &_8$$22) == SUCCESS + ; zend_hash_move_forward_ex(_9$$22, &_8$$22) ) { ZEPHIR_GET_HMKEY(position, _9$$22, _8$$22); ZEPHIR_GET_HVALUE(itemValue, _10$$22); @@ -52127,8 +51775,8 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo, executePrepared) { } else { zephir_is_iterable(value, &_14$$28, &_13$$28, 0, 0, "phalcon/db/adapter/pdo.zep", 302); for ( - ; zephir_hash_get_current_data_ex(_14$$28, (void**) &_15$$28, &_13$$28) == SUCCESS - ; zephir_hash_move_forward_ex(_14$$28, &_13$$28) + ; zend_hash_get_current_data_ex(_14$$28, (void**) &_15$$28, &_13$$28) == SUCCESS + ; zend_hash_move_forward_ex(_14$$28, &_13$$28) ) { ZEPHIR_GET_HMKEY(position, _14$$28, _13$$28); ZEPHIR_GET_HVALUE(itemValue, _15$$28); @@ -52156,11 +51804,11 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo, query) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &sqlStatement_param, &bindParams, &bindTypes); - if (unlikely(Z_TYPE_P(sqlStatement_param) != IS_STRING && Z_TYPE_P(sqlStatement_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(sqlStatement_param) != IS_STRING && Z_TYPE_P(sqlStatement_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'sqlStatement' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(sqlStatement_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(sqlStatement_param) == IS_STRING)) { zephir_get_strval(sqlStatement, sqlStatement_param); } else { ZEPHIR_INIT_VAR(sqlStatement); @@ -52229,11 +51877,11 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo, execute) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &sqlStatement_param, &bindParams, &bindTypes); - if (unlikely(Z_TYPE_P(sqlStatement_param) != IS_STRING && Z_TYPE_P(sqlStatement_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(sqlStatement_param) != IS_STRING && Z_TYPE_P(sqlStatement_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'sqlStatement' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(sqlStatement_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(sqlStatement_param) == IS_STRING)) { zephir_get_strval(sqlStatement, sqlStatement_param); } else { ZEPHIR_INIT_VAR(sqlStatement); @@ -52345,11 +51993,11 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo, convertBoundParams) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &sql_param, ¶ms_param); - if (unlikely(Z_TYPE_P(sql_param) != IS_STRING && Z_TYPE_P(sql_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(sql_param) != IS_STRING && Z_TYPE_P(sql_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'sql' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(sql_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(sql_param) == IS_STRING)) { zephir_get_strval(sql, sql_param); } else { ZEPHIR_INIT_VAR(sql); @@ -52379,8 +52027,8 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo, convertBoundParams) { if (zephir_is_true(_1)) { zephir_is_iterable(matches, &_3$$3, &_2$$3, 0, 0, "phalcon/db/adapter/pdo.zep", 515); for ( - ; zephir_hash_get_current_data_ex(_3$$3, (void**) &_4$$3, &_2$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_3$$3, &_2$$3) + ; zend_hash_get_current_data_ex(_3$$3, (void**) &_4$$3, &_2$$3) == SUCCESS + ; zend_hash_move_forward_ex(_3$$3, &_2$$3) ) { ZEPHIR_GET_HVALUE(placeMatch, _4$$3); ZEPHIR_OBS_NVAR(value); @@ -52771,8 +52419,8 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Mysql, describeColumns) { zephir_check_call_status(); zephir_is_iterable(_0, &_5, &_4, 0, 0, "phalcon/db/adapter/pdo/mysql.zep", 263); for ( - ; zephir_hash_get_current_data_ex(_5, (void**) &_6, &_4) == SUCCESS - ; zephir_hash_move_forward_ex(_5, &_4) + ; zend_hash_get_current_data_ex(_5, (void**) &_6, &_4) == SUCCESS + ; zend_hash_move_forward_ex(_5, &_4) ) { ZEPHIR_GET_HVALUE(field, _6); ZEPHIR_INIT_NVAR(definition); @@ -52949,11 +52597,11 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Mysql, describeIndexes) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &table_param, &schema); - if (unlikely(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'table' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(table_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(table_param) == IS_STRING)) { zephir_get_strval(table, table_param); } else { ZEPHIR_INIT_VAR(table); @@ -52975,8 +52623,8 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Mysql, describeIndexes) { zephir_check_call_status(); zephir_is_iterable(_0, &_5, &_4, 0, 0, "phalcon/db/adapter/pdo/mysql.zep", 312); for ( - ; zephir_hash_get_current_data_ex(_5, (void**) &_6, &_4) == SUCCESS - ; zephir_hash_move_forward_ex(_5, &_4) + ; zend_hash_get_current_data_ex(_5, (void**) &_6, &_4) == SUCCESS + ; zend_hash_move_forward_ex(_5, &_4) ) { ZEPHIR_GET_HVALUE(index, _6); zephir_array_fetch_string(&keyName, index, SL("Key_name"), PH_NOISY | PH_READONLY, "phalcon/db/adapter/pdo/mysql.zep", 285 TSRMLS_CC); @@ -53019,8 +52667,8 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Mysql, describeIndexes) { array_init(indexObjects); zephir_is_iterable(indexes, &_16, &_15, 0, 0, "phalcon/db/adapter/pdo/mysql.zep", 317); for ( - ; zephir_hash_get_current_data_ex(_16, (void**) &_17, &_15) == SUCCESS - ; zephir_hash_move_forward_ex(_16, &_15) + ; zend_hash_get_current_data_ex(_16, (void**) &_17, &_15) == SUCCESS + ; zend_hash_move_forward_ex(_16, &_15) ) { ZEPHIR_GET_HMKEY(name, _16, _15); ZEPHIR_GET_HVALUE(index, _17); @@ -53049,11 +52697,11 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Mysql, describeReferences) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &table_param, &schema_param); - if (unlikely(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'table' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(table_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(table_param) == IS_STRING)) { zephir_get_strval(table, table_param); } else { ZEPHIR_INIT_VAR(table); @@ -53063,11 +52711,11 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Mysql, describeReferences) { ZEPHIR_INIT_VAR(schema); ZVAL_EMPTY_STRING(schema); } else { - if (unlikely(Z_TYPE_P(schema_param) != IS_STRING && Z_TYPE_P(schema_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schema_param) != IS_STRING && Z_TYPE_P(schema_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schema' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schema_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schema_param) == IS_STRING)) { zephir_get_strval(schema, schema_param); } else { ZEPHIR_INIT_VAR(schema); @@ -53087,8 +52735,8 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Mysql, describeReferences) { zephir_check_call_status(); zephir_is_iterable(_0, &_5, &_4, 0, 0, "phalcon/db/adapter/pdo/mysql.zep", 371); for ( - ; zephir_hash_get_current_data_ex(_5, (void**) &_6, &_4) == SUCCESS - ; zephir_hash_move_forward_ex(_5, &_4) + ; zend_hash_get_current_data_ex(_5, (void**) &_6, &_4) == SUCCESS + ; zend_hash_move_forward_ex(_5, &_4) ) { ZEPHIR_GET_HVALUE(reference, _6); zephir_array_fetch_long(&constraintName, reference, 2, PH_NOISY | PH_READONLY, "phalcon/db/adapter/pdo/mysql.zep", 340 TSRMLS_CC); @@ -53143,8 +52791,8 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Mysql, describeReferences) { array_init(referenceObjects); zephir_is_iterable(references, &_17, &_16, 0, 0, "phalcon/db/adapter/pdo/mysql.zep", 383); for ( - ; zephir_hash_get_current_data_ex(_17, (void**) &_18, &_16) == SUCCESS - ; zephir_hash_move_forward_ex(_17, &_16) + ; zend_hash_get_current_data_ex(_17, (void**) &_18, &_16) == SUCCESS + ; zend_hash_move_forward_ex(_17, &_16) ) { ZEPHIR_GET_HMKEY(name, _17, _16); ZEPHIR_GET_HVALUE(arrayReference, _18); @@ -53290,8 +52938,8 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Postgresql, describeColumns) { zephir_check_call_status(); zephir_is_iterable(_0, &_5, &_4, 0, 0, "phalcon/db/adapter/pdo/postgresql.zep", 281); for ( - ; zephir_hash_get_current_data_ex(_5, (void**) &_6, &_4) == SUCCESS - ; zephir_hash_move_forward_ex(_5, &_4) + ; zend_hash_get_current_data_ex(_5, (void**) &_6, &_4) == SUCCESS + ; zend_hash_move_forward_ex(_5, &_4) ) { ZEPHIR_GET_HVALUE(field, _6); ZEPHIR_INIT_NVAR(definition); @@ -53472,27 +53120,27 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Postgresql, createTable) { zephir_fcall_cache_entry *_5 = NULL; int ZEPHIR_LAST_CALL_STATUS; zval *definition = NULL; - zval *tableName_param = NULL, *schemaName_param = NULL, *definition_param = NULL, *sql = NULL, *queries = NULL, *query = NULL, *exception = NULL, *columns = NULL, *_0, **_3$$6, *_4$$7 = NULL, *_6$$10, *_7$$10; + zval *tableName_param = NULL, *schemaName_param = NULL, *definition_param = NULL, *sql = NULL, *queries = NULL, *query = NULL, *exception = NULL, *columns = NULL, *_0, **_3$$6, *_4$$7 = NULL, *_6$$5, *_7$$10, *_8$$10; zval *tableName = NULL, *schemaName = NULL; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &definition_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { ZEPHIR_INIT_VAR(tableName); ZVAL_EMPTY_STRING(tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(schemaName); @@ -53523,8 +53171,8 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Postgresql, createTable) { zephir_check_call_status_or_jump(try_end_1); zephir_is_iterable(queries, &_2$$6, &_1$$6, 0, 0, "phalcon/db/adapter/pdo/postgresql.zep", 312); for ( - ; zephir_hash_get_current_data_ex(_2$$6, (void**) &_3$$6, &_1$$6) == SUCCESS - ; zephir_hash_move_forward_ex(_2$$6, &_1$$6) + ; zend_hash_get_current_data_ex(_2$$6, (void**) &_3$$6, &_1$$6) == SUCCESS + ; zend_hash_move_forward_ex(_2$$6, &_1$$6) ) { ZEPHIR_GET_HVALUE(query, _3$$6); if (ZEPHIR_IS_EMPTY(query)) { @@ -53542,9 +53190,11 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Postgresql, createTable) { try_end_1: if (EG(exception)) { - ZEPHIR_CPY_WRT(exception, EG(exception)); - if (zephir_instance_of_ev(exception, zend_exception_get_default(TSRMLS_C) TSRMLS_CC)) { + ZEPHIR_INIT_VAR(_6$$5); + ZEPHIR_CPY_WRT(_6$$5, EG(exception)); + if (zephir_instance_of_ev(_6$$5, zend_exception_get_default(TSRMLS_C) TSRMLS_CC)) { zend_clear_exception(TSRMLS_C); + ZEPHIR_CPY_WRT(exception, _6$$5); ZEPHIR_CALL_METHOD(NULL, this_ptr, "rollback", NULL, 0); zephir_check_call_status(); zephir_throw_exception_debug(exception, "phalcon/db/adapter/pdo/postgresql.zep", 316 TSRMLS_CC); @@ -53553,10 +53203,10 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Postgresql, createTable) { } } } else { - zephir_array_fetch_long(&_6$$10, queries, 0, PH_NOISY | PH_READONLY, "phalcon/db/adapter/pdo/postgresql.zep", 319 TSRMLS_CC); - ZEPHIR_INIT_VAR(_7$$10); - ZEPHIR_CONCAT_VS(_7$$10, _6$$10, ";"); - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "execute", NULL, 0, _7$$10); + zephir_array_fetch_long(&_7$$10, queries, 0, PH_NOISY | PH_READONLY, "phalcon/db/adapter/pdo/postgresql.zep", 319 TSRMLS_CC); + ZEPHIR_INIT_VAR(_8$$10); + ZEPHIR_CONCAT_VS(_8$$10, _7$$10, ";"); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "execute", NULL, 0, _8$$10); zephir_check_call_status(); RETURN_MM(); } @@ -53570,27 +53220,27 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Postgresql, modifyColumn) { HashPosition _1$$4; zephir_fcall_cache_entry *_5 = NULL; int ZEPHIR_LAST_CALL_STATUS; - zval *tableName_param = NULL, *schemaName_param = NULL, *column, *currentColumn = NULL, *sql = NULL, *queries = NULL, *query = NULL, *exception = NULL, *_0, **_3$$4, *_4$$5 = NULL, *_6$$8 = NULL, *_7$$8, *_8$$8; + zval *tableName_param = NULL, *schemaName_param = NULL, *column, *currentColumn = NULL, *sql = NULL, *queries = NULL, *query = NULL, *exception = NULL, *_0, **_3$$4, *_4$$5 = NULL, *_6$$3, *_7$$8 = NULL, *_8$$8, *_9$$8; zval *tableName = NULL, *schemaName = NULL; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 1, &tableName_param, &schemaName_param, &column, ¤tColumn); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { ZEPHIR_INIT_VAR(tableName); ZVAL_EMPTY_STRING(tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(schemaName); @@ -53614,8 +53264,8 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Postgresql, modifyColumn) { zephir_check_call_status_or_jump(try_end_1); zephir_is_iterable(queries, &_2$$4, &_1$$4, 0, 0, "phalcon/db/adapter/pdo/postgresql.zep", 344); for ( - ; zephir_hash_get_current_data_ex(_2$$4, (void**) &_3$$4, &_1$$4) == SUCCESS - ; zephir_hash_move_forward_ex(_2$$4, &_1$$4) + ; zend_hash_get_current_data_ex(_2$$4, (void**) &_3$$4, &_1$$4) == SUCCESS + ; zend_hash_move_forward_ex(_2$$4, &_1$$4) ) { ZEPHIR_GET_HVALUE(query, _3$$4); if (ZEPHIR_IS_EMPTY(query)) { @@ -53633,9 +53283,11 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Postgresql, modifyColumn) { try_end_1: if (EG(exception)) { - ZEPHIR_CPY_WRT(exception, EG(exception)); - if (zephir_instance_of_ev(exception, zend_exception_get_default(TSRMLS_C) TSRMLS_CC)) { + ZEPHIR_INIT_VAR(_6$$3); + ZEPHIR_CPY_WRT(_6$$3, EG(exception)); + if (zephir_instance_of_ev(_6$$3, zend_exception_get_default(TSRMLS_C) TSRMLS_CC)) { zend_clear_exception(TSRMLS_C); + ZEPHIR_CPY_WRT(exception, _6$$3); ZEPHIR_CALL_METHOD(NULL, this_ptr, "rollback", NULL, 0); zephir_check_call_status(); zephir_throw_exception_debug(exception, "phalcon/db/adapter/pdo/postgresql.zep", 349 TSRMLS_CC); @@ -53644,17 +53296,17 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Postgresql, modifyColumn) { } } } else { - ZEPHIR_INIT_VAR(_6$$8); + ZEPHIR_INIT_VAR(_7$$8); if (!(ZEPHIR_IS_EMPTY(sql))) { - zephir_array_fetch_long(&_7$$8, queries, 0, PH_NOISY | PH_READONLY, "phalcon/db/adapter/pdo/postgresql.zep", 353 TSRMLS_CC); - ZEPHIR_INIT_VAR(_8$$8); - ZEPHIR_CONCAT_VS(_8$$8, _7$$8, ";"); - ZEPHIR_CALL_METHOD(&_6$$8, this_ptr, "execute", NULL, 0, _8$$8); + zephir_array_fetch_long(&_8$$8, queries, 0, PH_NOISY | PH_READONLY, "phalcon/db/adapter/pdo/postgresql.zep", 353 TSRMLS_CC); + ZEPHIR_INIT_VAR(_9$$8); + ZEPHIR_CONCAT_VS(_9$$8, _8$$8, ";"); + ZEPHIR_CALL_METHOD(&_7$$8, this_ptr, "execute", NULL, 0, _9$$8); zephir_check_call_status(); } else { - ZVAL_BOOL(_6$$8, 1); + ZVAL_BOOL(_7$$8, 1); } - RETURN_CCTOR(_6$$8); + RETURN_CCTOR(_7$$8); } RETURN_MM_BOOL(1); @@ -53788,8 +53440,8 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Sqlite, describeColumns) { zephir_check_call_status(); zephir_is_iterable(_0, &_5, &_4, 0, 0, "phalcon/db/adapter/pdo/sqlite.zep", 252); for ( - ; zephir_hash_get_current_data_ex(_5, (void**) &_6, &_4) == SUCCESS - ; zephir_hash_move_forward_ex(_5, &_4) + ; zend_hash_get_current_data_ex(_5, (void**) &_6, &_4) == SUCCESS + ; zend_hash_move_forward_ex(_5, &_4) ) { ZEPHIR_GET_HVALUE(field, _6); ZEPHIR_INIT_NVAR(definition); @@ -53976,8 +53628,8 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Sqlite, describeIndexes) { zephir_check_call_status(); zephir_is_iterable(_0, &_5, &_4, 0, 0, "phalcon/db/adapter/pdo/sqlite.zep", 304); for ( - ; zephir_hash_get_current_data_ex(_5, (void**) &_6, &_4) == SUCCESS - ; zephir_hash_move_forward_ex(_5, &_4) + ; zend_hash_get_current_data_ex(_5, (void**) &_6, &_4) == SUCCESS + ; zend_hash_move_forward_ex(_5, &_4) ) { ZEPHIR_GET_HVALUE(index, _6); ZEPHIR_OBS_NVAR(keyName); @@ -54005,8 +53657,8 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Sqlite, describeIndexes) { zephir_check_call_status(); zephir_is_iterable(_10$$3, &_15$$3, &_14$$3, 0, 0, "phalcon/db/adapter/pdo/sqlite.zep", 290); for ( - ; zephir_hash_get_current_data_ex(_15$$3, (void**) &_16$$3, &_14$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_15$$3, &_14$$3) + ; zend_hash_get_current_data_ex(_15$$3, (void**) &_16$$3, &_14$$3) == SUCCESS + ; zend_hash_move_forward_ex(_15$$3, &_14$$3) ) { ZEPHIR_GET_HVALUE(describeIndex, _16$$3); zephir_array_fetch_string(&_17$$7, describeIndex, SL("name"), PH_NOISY | PH_READONLY, "phalcon/db/adapter/pdo/sqlite.zep", 287 TSRMLS_CC); @@ -54042,8 +53694,8 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Sqlite, describeIndexes) { array_init(indexObjects); zephir_is_iterable(indexes, &_28, &_27, 0, 0, "phalcon/db/adapter/pdo/sqlite.zep", 309); for ( - ; zephir_hash_get_current_data_ex(_28, (void**) &_29, &_27) == SUCCESS - ; zephir_hash_move_forward_ex(_28, &_27) + ; zend_hash_get_current_data_ex(_28, (void**) &_29, &_27) == SUCCESS + ; zend_hash_move_forward_ex(_28, &_27) ) { ZEPHIR_GET_HMKEY(name, _28, _27); ZEPHIR_GET_HVALUE(index, _29); @@ -54087,8 +53739,8 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Sqlite, describeReferences) { zephir_check_call_status(); zephir_is_iterable(_0, &_5, &_4, 0, 0, "phalcon/db/adapter/pdo/sqlite.zep", 354); for ( - ; zephir_hash_get_current_data_ex(_5, (void**) &_6, &_4) == SUCCESS - ; zephir_hash_move_forward_ex(_5, &_4) + ; zend_hash_get_current_data_ex(_5, (void**) &_6, &_4) == SUCCESS + ; zend_hash_move_forward_ex(_5, &_4) ) { ZEPHIR_GET_HMKEY(number, _5, _4); ZEPHIR_GET_HVALUE(reference, _6); @@ -54133,8 +53785,8 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Sqlite, describeReferences) { array_init(referenceObjects); zephir_is_iterable(references, &_15, &_14, 0, 0, "phalcon/db/adapter/pdo/sqlite.zep", 364); for ( - ; zephir_hash_get_current_data_ex(_15, (void**) &_16, &_14) == SUCCESS - ; zephir_hash_move_forward_ex(_15, &_14) + ; zend_hash_get_current_data_ex(_15, (void**) &_16, &_14) == SUCCESS + ; zend_hash_move_forward_ex(_15, &_14) ) { ZEPHIR_GET_HMKEY(name, _15, _14); ZEPHIR_GET_HVALUE(arrayReference, _16); @@ -54434,8 +54086,8 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, getColumnDefinition) { ZVAL_STRING(valueSql$$51, "", 1); zephir_is_iterable(typeValues, &_24$$51, &_23$$51, 0, 0, "phalcon/db/dialect/mysql.zep", 208); for ( - ; zephir_hash_get_current_data_ex(_24$$51, (void**) &_25$$51, &_23$$51) == SUCCESS - ; zephir_hash_move_forward_ex(_24$$51, &_23$$51) + ; zend_hash_get_current_data_ex(_24$$51, (void**) &_25$$51, &_23$$51) == SUCCESS + ; zend_hash_move_forward_ex(_24$$51, &_23$$51) ) { ZEPHIR_GET_HVALUE(value$$51, _25$$51); ZEPHIR_SINIT_NVAR(_26$$52); @@ -54480,21 +54132,21 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, addColumn) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &column); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { ZEPHIR_INIT_VAR(tableName); ZVAL_EMPTY_STRING(tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(schemaName); @@ -54565,21 +54217,21 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, modifyColumn) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 1, &tableName_param, &schemaName_param, &column, ¤tColumn); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { ZEPHIR_INIT_VAR(tableName); ZVAL_EMPTY_STRING(tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(schemaName); @@ -54653,31 +54305,31 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, dropColumn) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &columnName_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { ZEPHIR_INIT_VAR(tableName); ZVAL_EMPTY_STRING(tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(schemaName); ZVAL_EMPTY_STRING(schemaName); } - if (unlikely(Z_TYPE_P(columnName_param) != IS_STRING && Z_TYPE_P(columnName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(columnName_param) != IS_STRING && Z_TYPE_P(columnName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'columnName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(columnName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(columnName_param) == IS_STRING)) { zephir_get_strval(columnName, columnName_param); } else { ZEPHIR_INIT_VAR(columnName); @@ -54701,21 +54353,21 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, addIndex) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &index); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { ZEPHIR_INIT_VAR(tableName); ZVAL_EMPTY_STRING(tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(schemaName); @@ -54758,31 +54410,31 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, dropIndex) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &indexName_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { ZEPHIR_INIT_VAR(tableName); ZVAL_EMPTY_STRING(tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(schemaName); ZVAL_EMPTY_STRING(schemaName); } - if (unlikely(Z_TYPE_P(indexName_param) != IS_STRING && Z_TYPE_P(indexName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(indexName_param) != IS_STRING && Z_TYPE_P(indexName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'indexName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(indexName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(indexName_param) == IS_STRING)) { zephir_get_strval(indexName, indexName_param); } else { ZEPHIR_INIT_VAR(indexName); @@ -54806,21 +54458,21 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, addPrimaryKey) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &index); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { ZEPHIR_INIT_VAR(tableName); ZVAL_EMPTY_STRING(tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(schemaName); @@ -54848,21 +54500,21 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, dropPrimaryKey) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &tableName_param, &schemaName_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { ZEPHIR_INIT_VAR(tableName); ZVAL_EMPTY_STRING(tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(schemaName); @@ -54886,21 +54538,21 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, addForeignKey) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &reference); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { ZEPHIR_INIT_VAR(tableName); ZVAL_EMPTY_STRING(tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(schemaName); @@ -54955,31 +54607,31 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, dropForeignKey) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &referenceName_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { ZEPHIR_INIT_VAR(tableName); ZVAL_EMPTY_STRING(tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(schemaName); ZVAL_EMPTY_STRING(schemaName); } - if (unlikely(Z_TYPE_P(referenceName_param) != IS_STRING && Z_TYPE_P(referenceName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(referenceName_param) != IS_STRING && Z_TYPE_P(referenceName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'referenceName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(referenceName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(referenceName_param) == IS_STRING)) { zephir_get_strval(referenceName, referenceName_param); } else { ZEPHIR_INIT_VAR(referenceName); @@ -55007,21 +54659,21 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, createTable) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &definition_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { ZEPHIR_INIT_VAR(tableName); ZVAL_EMPTY_STRING(tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(schemaName); @@ -55054,8 +54706,8 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, createTable) { array_init(createLines); zephir_is_iterable(columns, &_1, &_0, 0, 0, "phalcon/db/dialect/mysql.zep", 448); for ( - ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS - ; zephir_hash_move_forward_ex(_1, &_0) + ; zend_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS + ; zend_hash_move_forward_ex(_1, &_0) ) { ZEPHIR_GET_HVALUE(column, _2); ZEPHIR_CALL_METHOD(&_3$$7, column, "getname", NULL, 0); @@ -55104,8 +54756,8 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, createTable) { if (zephir_array_isset_string_fetch(&indexes, definition, SS("indexes"), 0 TSRMLS_CC)) { zephir_is_iterable(indexes, &_16$$14, &_15$$14, 0, 0, "phalcon/db/dialect/mysql.zep", 470); for ( - ; zephir_hash_get_current_data_ex(_16$$14, (void**) &_17$$14, &_15$$14) == SUCCESS - ; zephir_hash_move_forward_ex(_16$$14, &_15$$14) + ; zend_hash_get_current_data_ex(_16$$14, (void**) &_17$$14, &_15$$14) == SUCCESS + ; zend_hash_move_forward_ex(_16$$14, &_15$$14) ) { ZEPHIR_GET_HVALUE(index, _17$$14); ZEPHIR_CALL_METHOD(&indexName, index, "getname", NULL, 0); @@ -55142,8 +54794,8 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, createTable) { if (zephir_array_isset_string_fetch(&references, definition, SS("references"), 0 TSRMLS_CC)) { zephir_is_iterable(references, &_26$$20, &_25$$20, 0, 0, "phalcon/db/dialect/mysql.zep", 492); for ( - ; zephir_hash_get_current_data_ex(_26$$20, (void**) &_27$$20, &_25$$20) == SUCCESS - ; zephir_hash_move_forward_ex(_26$$20, &_25$$20) + ; zend_hash_get_current_data_ex(_26$$20, (void**) &_27$$20, &_25$$20) == SUCCESS + ; zend_hash_move_forward_ex(_26$$20, &_25$$20) ) { ZEPHIR_GET_HVALUE(reference, _27$$20); ZEPHIR_CALL_METHOD(&_28$$21, reference, "getname", NULL, 0); @@ -55201,21 +54853,21 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, truncateTable) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &tableName_param, &schemaName_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { ZEPHIR_INIT_VAR(tableName); ZVAL_EMPTY_STRING(tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(schemaName); @@ -55249,11 +54901,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, dropTable) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &tableName_param, &schemaName_param, &ifExists_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { ZEPHIR_INIT_VAR(tableName); @@ -55268,7 +54920,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, dropTable) { if (!ifExists_param) { ifExists = 1; } else { - if (unlikely(Z_TYPE_P(ifExists_param) != IS_BOOL)) { + if (UNEXPECTED(Z_TYPE_P(ifExists_param) != IS_BOOL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'ifExists' must be a bool") TSRMLS_CC); RETURN_MM_NULL(); } @@ -55298,11 +54950,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, createView) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 1, &viewName_param, &definition_param, &schemaName_param); - if (unlikely(Z_TYPE_P(viewName_param) != IS_STRING && Z_TYPE_P(viewName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(viewName_param) != IS_STRING && Z_TYPE_P(viewName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'viewName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(viewName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(viewName_param) == IS_STRING)) { zephir_get_strval(viewName, viewName_param); } else { ZEPHIR_INIT_VAR(viewName); @@ -55339,11 +54991,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, dropView) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &viewName_param, &schemaName_param, &ifExists_param); - if (unlikely(Z_TYPE_P(viewName_param) != IS_STRING && Z_TYPE_P(viewName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(viewName_param) != IS_STRING && Z_TYPE_P(viewName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'viewName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(viewName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(viewName_param) == IS_STRING)) { zephir_get_strval(viewName, viewName_param); } else { ZEPHIR_INIT_VAR(viewName); @@ -55358,7 +55010,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, dropView) { if (!ifExists_param) { ifExists = 1; } else { - if (unlikely(Z_TYPE_P(ifExists_param) != IS_BOOL)) { + if (UNEXPECTED(Z_TYPE_P(ifExists_param) != IS_BOOL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'ifExists' must be a bool") TSRMLS_CC); RETURN_MM_NULL(); } @@ -55386,11 +55038,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, tableExists) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &tableName_param, &schemaName_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { ZEPHIR_INIT_VAR(tableName); @@ -55421,11 +55073,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, viewExists) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &viewName_param, &schemaName_param); - if (unlikely(Z_TYPE_P(viewName_param) != IS_STRING && Z_TYPE_P(viewName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(viewName_param) != IS_STRING && Z_TYPE_P(viewName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'viewName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(viewName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(viewName_param) == IS_STRING)) { zephir_get_strval(viewName, viewName_param); } else { ZEPHIR_INIT_VAR(viewName); @@ -55457,11 +55109,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, describeColumns) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &table_param, &schema_param); - if (unlikely(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'table' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(table_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(table_param) == IS_STRING)) { zephir_get_strval(table, table_param); } else { ZEPHIR_INIT_VAR(table); @@ -55518,11 +55170,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, listViews) { ZEPHIR_INIT_VAR(schemaName); ZVAL_EMPTY_STRING(schemaName); } else { - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(schemaName); @@ -55548,11 +55200,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, describeIndexes) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &table_param, &schema_param); - if (unlikely(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'table' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(table_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(table_param) == IS_STRING)) { zephir_get_strval(table, table_param); } else { ZEPHIR_INIT_VAR(table); @@ -55581,11 +55233,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, describeReferences) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &table_param, &schema_param); - if (unlikely(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'table' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(table_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(table_param) == IS_STRING)) { zephir_get_strval(table, table_param); } else { ZEPHIR_INIT_VAR(table); @@ -55622,11 +55274,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, tableOptions) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &table_param, &schema_param); - if (unlikely(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'table' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(table_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(table_param) == IS_STRING)) { zephir_get_strval(table, table_param); } else { ZEPHIR_INIT_VAR(table); @@ -55872,8 +55524,8 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, getColumnDefinition) { ZVAL_STRING(valueSql$$37, "", 1); zephir_is_iterable(typeValues, &_10$$37, &_9$$37, 0, 0, "phalcon/db/dialect/postgresql.zep", 161); for ( - ; zephir_hash_get_current_data_ex(_10$$37, (void**) &_11$$37, &_9$$37) == SUCCESS - ; zephir_hash_move_forward_ex(_10$$37, &_9$$37) + ; zend_hash_get_current_data_ex(_10$$37, (void**) &_11$$37, &_9$$37) == SUCCESS + ; zend_hash_move_forward_ex(_10$$37, &_9$$37) ) { ZEPHIR_GET_HVALUE(value$$37, _11$$37); ZEPHIR_SINIT_NVAR(_12$$38); @@ -55918,21 +55570,21 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, addColumn) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &column); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { ZEPHIR_INIT_VAR(tableName); ZVAL_EMPTY_STRING(tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(schemaName); @@ -55979,21 +55631,21 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, modifyColumn) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 1, &tableName_param, &schemaName_param, &column, ¤tColumn); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { ZEPHIR_INIT_VAR(tableName); ZVAL_EMPTY_STRING(tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(schemaName); @@ -56117,31 +55769,31 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, dropColumn) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &columnName_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { ZEPHIR_INIT_VAR(tableName); ZVAL_EMPTY_STRING(tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(schemaName); ZVAL_EMPTY_STRING(schemaName); } - if (unlikely(Z_TYPE_P(columnName_param) != IS_STRING && Z_TYPE_P(columnName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(columnName_param) != IS_STRING && Z_TYPE_P(columnName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'columnName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(columnName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(columnName_param) == IS_STRING)) { zephir_get_strval(columnName, columnName_param); } else { ZEPHIR_INIT_VAR(columnName); @@ -56165,21 +55817,21 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, addIndex) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &index); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { ZEPHIR_INIT_VAR(tableName); ZVAL_EMPTY_STRING(tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(schemaName); @@ -56229,31 +55881,31 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, dropIndex) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &indexName_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { ZEPHIR_INIT_VAR(tableName); ZVAL_EMPTY_STRING(tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(schemaName); ZVAL_EMPTY_STRING(schemaName); } - if (unlikely(Z_TYPE_P(indexName_param) != IS_STRING && Z_TYPE_P(indexName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(indexName_param) != IS_STRING && Z_TYPE_P(indexName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'indexName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(indexName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(indexName_param) == IS_STRING)) { zephir_get_strval(indexName, indexName_param); } else { ZEPHIR_INIT_VAR(indexName); @@ -56275,21 +55927,21 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, addPrimaryKey) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &index); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { ZEPHIR_INIT_VAR(tableName); ZVAL_EMPTY_STRING(tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(schemaName); @@ -56317,21 +55969,21 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, dropPrimaryKey) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &tableName_param, &schemaName_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { ZEPHIR_INIT_VAR(tableName); ZVAL_EMPTY_STRING(tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(schemaName); @@ -56355,21 +56007,21 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, addForeignKey) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &reference); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { ZEPHIR_INIT_VAR(tableName); ZVAL_EMPTY_STRING(tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(schemaName); @@ -56420,31 +56072,31 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, dropForeignKey) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &referenceName_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { ZEPHIR_INIT_VAR(tableName); ZVAL_EMPTY_STRING(tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(schemaName); ZVAL_EMPTY_STRING(schemaName); } - if (unlikely(Z_TYPE_P(referenceName_param) != IS_STRING && Z_TYPE_P(referenceName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(referenceName_param) != IS_STRING && Z_TYPE_P(referenceName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'referenceName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(referenceName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(referenceName_param) == IS_STRING)) { zephir_get_strval(referenceName, referenceName_param); } else { ZEPHIR_INIT_VAR(referenceName); @@ -56472,21 +56124,21 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, createTable) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &definition_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { ZEPHIR_INIT_VAR(tableName); ZVAL_EMPTY_STRING(tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(schemaName); @@ -56521,8 +56173,8 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, createTable) { array_init(primaryColumns); zephir_is_iterable(columns, &_1, &_0, 0, 0, "phalcon/db/dialect/postgresql.zep", 399); for ( - ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS - ; zephir_hash_move_forward_ex(_1, &_0) + ; zend_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS + ; zend_hash_move_forward_ex(_1, &_0) ) { ZEPHIR_GET_HVALUE(column, _2); ZEPHIR_CALL_METHOD(&columnDefinition, this_ptr, "getcolumndefinition", &_3, 0, column); @@ -56575,8 +56227,8 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, createTable) { if (zephir_array_isset_string_fetch(&indexes, definition, SS("indexes"), 0 TSRMLS_CC)) { zephir_is_iterable(indexes, &_16$$14, &_15$$14, 0, 0, "phalcon/db/dialect/postgresql.zep", 434); for ( - ; zephir_hash_get_current_data_ex(_16$$14, (void**) &_17$$14, &_15$$14) == SUCCESS - ; zephir_hash_move_forward_ex(_16$$14, &_15$$14) + ; zend_hash_get_current_data_ex(_16$$14, (void**) &_17$$14, &_15$$14) == SUCCESS + ; zend_hash_move_forward_ex(_16$$14, &_15$$14) ) { ZEPHIR_GET_HVALUE(index, _17$$14); ZEPHIR_CALL_METHOD(&indexName, index, "getname", NULL, 0); @@ -56626,8 +56278,8 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, createTable) { if (zephir_array_isset_string_fetch(&references, definition, SS("references"), 0 TSRMLS_CC)) { zephir_is_iterable(references, &_29$$21, &_28$$21, 0, 0, "phalcon/db/dialect/postgresql.zep", 459); for ( - ; zephir_hash_get_current_data_ex(_29$$21, (void**) &_30$$21, &_28$$21) == SUCCESS - ; zephir_hash_move_forward_ex(_29$$21, &_28$$21) + ; zend_hash_get_current_data_ex(_29$$21, (void**) &_30$$21, &_28$$21) == SUCCESS + ; zend_hash_move_forward_ex(_29$$21, &_28$$21) ) { ZEPHIR_GET_HVALUE(reference, _30$$21); ZEPHIR_CALL_METHOD(&_31$$22, reference, "getname", NULL, 0); @@ -56694,21 +56346,21 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, truncateTable) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &tableName_param, &schemaName_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { ZEPHIR_INIT_VAR(tableName); ZVAL_EMPTY_STRING(tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(schemaName); @@ -56739,11 +56391,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, dropTable) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &tableName_param, &schemaName_param, &ifExists_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { ZEPHIR_INIT_VAR(tableName); @@ -56758,7 +56410,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, dropTable) { if (!ifExists_param) { ifExists = 1; } else { - if (unlikely(Z_TYPE_P(ifExists_param) != IS_BOOL)) { + if (UNEXPECTED(Z_TYPE_P(ifExists_param) != IS_BOOL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'ifExists' must be a bool") TSRMLS_CC); RETURN_MM_NULL(); } @@ -56788,11 +56440,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, createView) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 1, &viewName_param, &definition_param, &schemaName_param); - if (unlikely(Z_TYPE_P(viewName_param) != IS_STRING && Z_TYPE_P(viewName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(viewName_param) != IS_STRING && Z_TYPE_P(viewName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'viewName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(viewName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(viewName_param) == IS_STRING)) { zephir_get_strval(viewName, viewName_param); } else { ZEPHIR_INIT_VAR(viewName); @@ -56829,11 +56481,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, dropView) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &viewName_param, &schemaName_param, &ifExists_param); - if (unlikely(Z_TYPE_P(viewName_param) != IS_STRING && Z_TYPE_P(viewName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(viewName_param) != IS_STRING && Z_TYPE_P(viewName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'viewName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(viewName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(viewName_param) == IS_STRING)) { zephir_get_strval(viewName, viewName_param); } else { ZEPHIR_INIT_VAR(viewName); @@ -56848,7 +56500,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, dropView) { if (!ifExists_param) { ifExists = 1; } else { - if (unlikely(Z_TYPE_P(ifExists_param) != IS_BOOL)) { + if (UNEXPECTED(Z_TYPE_P(ifExists_param) != IS_BOOL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'ifExists' must be a bool") TSRMLS_CC); RETURN_MM_NULL(); } @@ -56876,11 +56528,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, tableExists) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &tableName_param, &schemaName_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { ZEPHIR_INIT_VAR(tableName); @@ -56911,11 +56563,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, viewExists) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &viewName_param, &schemaName_param); - if (unlikely(Z_TYPE_P(viewName_param) != IS_STRING && Z_TYPE_P(viewName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(viewName_param) != IS_STRING && Z_TYPE_P(viewName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'viewName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(viewName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(viewName_param) == IS_STRING)) { zephir_get_strval(viewName, viewName_param); } else { ZEPHIR_INIT_VAR(viewName); @@ -56946,11 +56598,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, describeColumns) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &table_param, &schema_param); - if (unlikely(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'table' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(table_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(table_param) == IS_STRING)) { zephir_get_strval(table, table_param); } else { ZEPHIR_INIT_VAR(table); @@ -57024,11 +56676,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, describeIndexes) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &table_param, &schema_param); - if (unlikely(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'table' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(table_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(table_param) == IS_STRING)) { zephir_get_strval(table, table_param); } else { ZEPHIR_INIT_VAR(table); @@ -57055,11 +56707,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, describeReferences) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &table_param, &schema_param); - if (unlikely(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'table' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(table_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(table_param) == IS_STRING)) { zephir_get_strval(table, table_param); } else { ZEPHIR_INIT_VAR(table); @@ -57096,11 +56748,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, tableOptions) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &table_param, &schema_param); - if (unlikely(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'table' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(table_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(table_param) == IS_STRING)) { zephir_get_strval(table, table_param); } else { ZEPHIR_INIT_VAR(table); @@ -57384,8 +57036,8 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, getColumnDefinition) { ZVAL_STRING(valueSql$$41, "", 1); zephir_is_iterable(typeValues, &_13$$41, &_12$$41, 0, 0, "phalcon/db/dialect/sqlite.zep", 180); for ( - ; zephir_hash_get_current_data_ex(_13$$41, (void**) &_14$$41, &_12$$41) == SUCCESS - ; zephir_hash_move_forward_ex(_13$$41, &_12$$41) + ; zend_hash_get_current_data_ex(_13$$41, (void**) &_14$$41, &_12$$41) == SUCCESS + ; zend_hash_move_forward_ex(_13$$41, &_12$$41) ) { ZEPHIR_GET_HVALUE(value$$41, _14$$41); ZEPHIR_SINIT_NVAR(_15$$42); @@ -57430,21 +57082,21 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, addColumn) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &column); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { ZEPHIR_INIT_VAR(tableName); ZVAL_EMPTY_STRING(tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(schemaName); @@ -57504,21 +57156,21 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, modifyColumn) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 1, &tableName_param, &schemaName_param, &column, ¤tColumn); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { ZEPHIR_INIT_VAR(tableName); ZVAL_EMPTY_STRING(tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(schemaName); @@ -57542,31 +57194,31 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, dropColumn) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &columnName_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { ZEPHIR_INIT_VAR(tableName); ZVAL_EMPTY_STRING(tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(schemaName); ZVAL_EMPTY_STRING(schemaName); } - if (unlikely(Z_TYPE_P(columnName_param) != IS_STRING && Z_TYPE_P(columnName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(columnName_param) != IS_STRING && Z_TYPE_P(columnName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'columnName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(columnName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(columnName_param) == IS_STRING)) { zephir_get_strval(columnName, columnName_param); } else { ZEPHIR_INIT_VAR(columnName); @@ -57588,21 +57240,21 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, addIndex) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &index); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { ZEPHIR_INIT_VAR(tableName); ZVAL_EMPTY_STRING(tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(schemaName); @@ -57650,31 +57302,31 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, dropIndex) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &indexName_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { ZEPHIR_INIT_VAR(tableName); ZVAL_EMPTY_STRING(tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(schemaName); ZVAL_EMPTY_STRING(schemaName); } - if (unlikely(Z_TYPE_P(indexName_param) != IS_STRING && Z_TYPE_P(indexName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(indexName_param) != IS_STRING && Z_TYPE_P(indexName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'indexName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(indexName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(indexName_param) == IS_STRING)) { zephir_get_strval(indexName, indexName_param); } else { ZEPHIR_INIT_VAR(indexName); @@ -57699,21 +57351,21 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, addPrimaryKey) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &index); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { ZEPHIR_INIT_VAR(tableName); ZVAL_EMPTY_STRING(tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(schemaName); @@ -57734,21 +57386,21 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, dropPrimaryKey) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &tableName_param, &schemaName_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { ZEPHIR_INIT_VAR(tableName); ZVAL_EMPTY_STRING(tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(schemaName); @@ -57769,21 +57421,21 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, addForeignKey) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &reference); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { ZEPHIR_INIT_VAR(tableName); ZVAL_EMPTY_STRING(tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(schemaName); @@ -57804,31 +57456,31 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, dropForeignKey) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &referenceName_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { ZEPHIR_INIT_VAR(tableName); ZVAL_EMPTY_STRING(tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(schemaName); ZVAL_EMPTY_STRING(schemaName); } - if (unlikely(Z_TYPE_P(referenceName_param) != IS_STRING && Z_TYPE_P(referenceName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(referenceName_param) != IS_STRING && Z_TYPE_P(referenceName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'referenceName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(referenceName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(referenceName_param) == IS_STRING)) { zephir_get_strval(referenceName, referenceName_param); } else { ZEPHIR_INIT_VAR(referenceName); @@ -57855,21 +57507,21 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, createTable) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &definition_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { ZEPHIR_INIT_VAR(tableName); ZVAL_EMPTY_STRING(tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(schemaName); @@ -57903,8 +57555,8 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, createTable) { array_init(createLines); zephir_is_iterable(columns, &_1, &_0, 0, 0, "phalcon/db/dialect/sqlite.zep", 380); for ( - ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS - ; zephir_hash_move_forward_ex(_1, &_0) + ; zend_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS + ; zend_hash_move_forward_ex(_1, &_0) ) { ZEPHIR_GET_HVALUE(column, _2); ZEPHIR_CALL_METHOD(&_3$$7, column, "getname", NULL, 0); @@ -57962,8 +57614,8 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, createTable) { if (zephir_array_isset_string_fetch(&indexes, definition, SS("indexes"), 0 TSRMLS_CC)) { zephir_is_iterable(indexes, &_18$$14, &_17$$14, 0, 0, "phalcon/db/dialect/sqlite.zep", 396); for ( - ; zephir_hash_get_current_data_ex(_18$$14, (void**) &_19$$14, &_17$$14) == SUCCESS - ; zephir_hash_move_forward_ex(_18$$14, &_17$$14) + ; zend_hash_get_current_data_ex(_18$$14, (void**) &_19$$14, &_17$$14) == SUCCESS + ; zend_hash_move_forward_ex(_18$$14, &_17$$14) ) { ZEPHIR_GET_HVALUE(index, _19$$14); ZEPHIR_CALL_METHOD(&indexName, index, "getname", NULL, 0); @@ -58003,8 +57655,8 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, createTable) { if (zephir_array_isset_string_fetch(&references, definition, SS("references"), 0 TSRMLS_CC)) { zephir_is_iterable(references, &_31$$18, &_30$$18, 0, 0, "phalcon/db/dialect/sqlite.zep", 418); for ( - ; zephir_hash_get_current_data_ex(_31$$18, (void**) &_32$$18, &_30$$18) == SUCCESS - ; zephir_hash_move_forward_ex(_31$$18, &_30$$18) + ; zend_hash_get_current_data_ex(_31$$18, (void**) &_32$$18, &_30$$18) == SUCCESS + ; zend_hash_move_forward_ex(_31$$18, &_30$$18) ) { ZEPHIR_GET_HVALUE(reference, _32$$18); ZEPHIR_CALL_METHOD(&_33$$19, reference, "getname", NULL, 0); @@ -58055,21 +57707,21 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, truncateTable) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &tableName_param, &schemaName_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { ZEPHIR_INIT_VAR(tableName); ZVAL_EMPTY_STRING(tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(schemaName); @@ -58100,11 +57752,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, dropTable) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &tableName_param, &schemaName_param, &ifExists_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { ZEPHIR_INIT_VAR(tableName); @@ -58119,7 +57771,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, dropTable) { if (!ifExists_param) { ifExists = 1; } else { - if (unlikely(Z_TYPE_P(ifExists_param) != IS_BOOL)) { + if (UNEXPECTED(Z_TYPE_P(ifExists_param) != IS_BOOL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'ifExists' must be a bool") TSRMLS_CC); RETURN_MM_NULL(); } @@ -58149,11 +57801,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, createView) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 1, &viewName_param, &definition_param, &schemaName_param); - if (unlikely(Z_TYPE_P(viewName_param) != IS_STRING && Z_TYPE_P(viewName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(viewName_param) != IS_STRING && Z_TYPE_P(viewName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'viewName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(viewName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(viewName_param) == IS_STRING)) { zephir_get_strval(viewName, viewName_param); } else { ZEPHIR_INIT_VAR(viewName); @@ -58190,11 +57842,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, dropView) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &viewName_param, &schemaName_param, &ifExists_param); - if (unlikely(Z_TYPE_P(viewName_param) != IS_STRING && Z_TYPE_P(viewName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(viewName_param) != IS_STRING && Z_TYPE_P(viewName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'viewName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(viewName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(viewName_param) == IS_STRING)) { zephir_get_strval(viewName, viewName_param); } else { ZEPHIR_INIT_VAR(viewName); @@ -58209,7 +57861,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, dropView) { if (!ifExists_param) { ifExists = 1; } else { - if (unlikely(Z_TYPE_P(ifExists_param) != IS_BOOL)) { + if (UNEXPECTED(Z_TYPE_P(ifExists_param) != IS_BOOL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'ifExists' must be a bool") TSRMLS_CC); RETURN_MM_NULL(); } @@ -58236,11 +57888,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, tableExists) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &tableName_param, &schemaName_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { ZEPHIR_INIT_VAR(tableName); @@ -58267,11 +57919,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, viewExists) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &viewName_param, &schemaName_param); - if (unlikely(Z_TYPE_P(viewName_param) != IS_STRING && Z_TYPE_P(viewName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(viewName_param) != IS_STRING && Z_TYPE_P(viewName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'viewName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(viewName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(viewName_param) == IS_STRING)) { zephir_get_strval(viewName, viewName_param); } else { ZEPHIR_INIT_VAR(viewName); @@ -58298,11 +57950,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, describeColumns) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &table_param, &schema_param); - if (unlikely(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'table' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(table_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(table_param) == IS_STRING)) { zephir_get_strval(table, table_param); } else { ZEPHIR_INIT_VAR(table); @@ -58353,11 +58005,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, listViews) { ZEPHIR_INIT_VAR(schemaName); ZVAL_EMPTY_STRING(schemaName); } else { - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(schemaName); @@ -58379,11 +58031,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, listIndexesSql) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &table_param, &schema_param, &keyName_param); - if (unlikely(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'table' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(table_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(table_param) == IS_STRING)) { zephir_get_strval(table, table_param); } else { ZEPHIR_INIT_VAR(table); @@ -58427,11 +58079,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, describeIndexes) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &table_param, &schema_param); - if (unlikely(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'table' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(table_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(table_param) == IS_STRING)) { zephir_get_strval(table, table_param); } else { ZEPHIR_INIT_VAR(table); @@ -58458,11 +58110,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, describeIndex) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &index_param); - if (unlikely(Z_TYPE_P(index_param) != IS_STRING && Z_TYPE_P(index_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(index_param) != IS_STRING && Z_TYPE_P(index_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'index' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(index_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(index_param) == IS_STRING)) { zephir_get_strval(index, index_param); } else { ZEPHIR_INIT_VAR(index); @@ -58483,11 +58135,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, describeReferences) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &table_param, &schema_param); - if (unlikely(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'table' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(table_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(table_param) == IS_STRING)) { zephir_get_strval(table, table_param); } else { ZEPHIR_INIT_VAR(table); @@ -58514,11 +58166,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, tableOptions) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &table_param, &schema_param); - if (unlikely(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'table' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(table_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(table_param) == IS_STRING)) { zephir_get_strval(table, table_param); } else { ZEPHIR_INIT_VAR(table); @@ -59147,8 +58799,7 @@ static PHP_METHOD(Phalcon_Debug_Dump, all) { ZVAL_STRING(_1, "variables", 1); zephir_array_fast_append(_0, _1); ZEPHIR_INIT_NVAR(_1); - array_init(_1); - zend_copy_parameters_array(ZEND_NUM_ARGS(), _1 TSRMLS_CC); + zephir_get_args(_1 TSRMLS_CC); ZEPHIR_CALL_USER_FUNC_ARRAY(return_value, _0, _1); zephir_check_call_status(); RETURN_MM(); @@ -59163,11 +58814,11 @@ static PHP_METHOD(Phalcon_Debug_Dump, getStyle) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &type_param); - if (unlikely(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'type' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(type_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(type_param) == IS_STRING)) { zephir_get_strval(type, type_param); } else { ZEPHIR_INIT_VAR(type); @@ -59304,8 +58955,8 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { zephir_concat_self(&output, _2$$4 TSRMLS_CC); zephir_is_iterable(variable, &_8$$4, &_7$$4, 0, 0, "phalcon/debug/dump.zep", 161); for ( - ; zephir_hash_get_current_data_ex(_8$$4, (void**) &_9$$4, &_7$$4) == SUCCESS - ; zephir_hash_move_forward_ex(_8$$4, &_7$$4) + ; zend_hash_get_current_data_ex(_8$$4, (void**) &_9$$4, &_7$$4) == SUCCESS + ; zend_hash_move_forward_ex(_8$$4, &_7$$4) ) { ZEPHIR_GET_HMKEY(key, _8$$4, _7$$4); ZEPHIR_GET_HVALUE(value, _9$$4); @@ -59415,8 +59066,8 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { zephir_check_call_status(); zephir_is_iterable(_40$$11, &_42$$11, &_41$$11, 0, 0, "phalcon/debug/dump.zep", 194); for ( - ; zephir_hash_get_current_data_ex(_42$$11, (void**) &_43$$11, &_41$$11) == SUCCESS - ; zephir_hash_move_forward_ex(_42$$11, &_41$$11) + ; zend_hash_get_current_data_ex(_42$$11, (void**) &_43$$11, &_41$$11) == SUCCESS + ; zend_hash_move_forward_ex(_42$$11, &_41$$11) ) { ZEPHIR_GET_HMKEY(key, _42$$11, _41$$11); ZEPHIR_GET_HVALUE(value, _43$$11); @@ -59562,8 +59213,8 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { } else { zephir_is_iterable(attr, &_76$$20, &_75$$20, 0, 0, "phalcon/debug/dump.zep", 243); for ( - ; zephir_hash_get_current_data_ex(_76$$20, (void**) &_77$$20, &_75$$20) == SUCCESS - ; zephir_hash_move_forward_ex(_76$$20, &_75$$20) + ; zend_hash_get_current_data_ex(_76$$20, (void**) &_77$$20, &_75$$20) == SUCCESS + ; zend_hash_move_forward_ex(_76$$20, &_75$$20) ) { ZEPHIR_GET_HVALUE(value, _77$$20); ZEPHIR_INIT_NVAR(_78$$21); @@ -59817,12 +59468,11 @@ static PHP_METHOD(Phalcon_Debug_Dump, variables) { ZEPHIR_INIT_VAR(output); ZVAL_STRING(output, "", 1); ZEPHIR_INIT_VAR(_0); - array_init(_0); - zend_copy_parameters_array(ZEND_NUM_ARGS(), _0 TSRMLS_CC); + zephir_get_args(_0 TSRMLS_CC); zephir_is_iterable(_0, &_2, &_1, 0, 0, "phalcon/debug/dump.zep", 315); for ( - ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS - ; zephir_hash_move_forward_ex(_2, &_1) + ; zend_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS + ; zend_hash_move_forward_ex(_2, &_1) ) { ZEPHIR_GET_HMKEY(key, _2, _1); ZEPHIR_GET_HVALUE(value, _3); @@ -60300,11 +59950,11 @@ static PHP_METHOD(Phalcon_Di_Injectable, __get) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &propertyName_param); - if (unlikely(Z_TYPE_P(propertyName_param) != IS_STRING && Z_TYPE_P(propertyName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(propertyName_param) != IS_STRING && Z_TYPE_P(propertyName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'propertyName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(propertyName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(propertyName_param) == IS_STRING)) { zephir_get_strval(propertyName, propertyName_param); } else { ZEPHIR_INIT_VAR(propertyName); @@ -60417,11 +60067,11 @@ static PHP_METHOD(Phalcon_Di_Service, __construct) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 1, &name_param, &definition, &shared_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -61076,8 +60726,8 @@ static PHP_METHOD(Phalcon_Di_Service_Builder, _buildParameters) { array_init(buildArguments); zephir_is_iterable(arguments, &_1, &_0, 0, 0, "phalcon/di/service/builder.zep", 119); for ( - ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS - ; zephir_hash_move_forward_ex(_1, &_0) + ; zend_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS + ; zend_hash_move_forward_ex(_1, &_0) ) { ZEPHIR_GET_HMKEY(position, _1, _0); ZEPHIR_GET_HVALUE(argument, _2); @@ -61148,8 +60798,8 @@ static PHP_METHOD(Phalcon_Di_Service_Builder, build) { } zephir_is_iterable(paramCalls, &_3$$10, &_2$$10, 0, 0, "phalcon/di/service/builder.zep", 235); for ( - ; zephir_hash_get_current_data_ex(_3$$10, (void**) &_4$$10, &_2$$10) == SUCCESS - ; zephir_hash_move_forward_ex(_3$$10, &_2$$10) + ; zend_hash_get_current_data_ex(_3$$10, (void**) &_4$$10, &_2$$10) == SUCCESS + ; zend_hash_move_forward_ex(_3$$10, &_2$$10) ) { ZEPHIR_GET_HMKEY(methodPosition, _3$$10, _2$$10); ZEPHIR_GET_HVALUE(method, _4$$10); @@ -61219,8 +60869,8 @@ static PHP_METHOD(Phalcon_Di_Service_Builder, build) { } zephir_is_iterable(paramCalls, &_16$$19, &_15$$19, 0, 0, "phalcon/di/service/builder.zep", 283); for ( - ; zephir_hash_get_current_data_ex(_16$$19, (void**) &_17$$19, &_15$$19) == SUCCESS - ; zephir_hash_move_forward_ex(_16$$19, &_15$$19) + ; zend_hash_get_current_data_ex(_16$$19, (void**) &_17$$19, &_15$$19) == SUCCESS + ; zend_hash_move_forward_ex(_16$$19, &_15$$19) ) { ZEPHIR_GET_HMKEY(propertyPosition, _16$$19, _15$$19); ZEPHIR_GET_HVALUE(property, _17$$19); @@ -61348,11 +60998,11 @@ static PHP_METHOD(Phalcon_Events_Event, __construct) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 2, &type_param, &source, &data, &cancelable_param); - if (unlikely(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'type' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(type_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(type_param) == IS_STRING)) { zephir_get_strval(type, type_param); } else { ZEPHIR_INIT_VAR(type); @@ -61408,11 +61058,11 @@ static PHP_METHOD(Phalcon_Events_Event, setType) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &type_param); - if (unlikely(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'type' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(type_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(type_param) == IS_STRING)) { zephir_get_strval(type, type_param); } else { ZEPHIR_INIT_VAR(type); @@ -61568,11 +61218,11 @@ static PHP_METHOD(Phalcon_Events_Manager, attach) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 1, &eventType_param, &handler, &priority_param); - if (unlikely(Z_TYPE_P(eventType_param) != IS_STRING && Z_TYPE_P(eventType_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(eventType_param) != IS_STRING && Z_TYPE_P(eventType_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'eventType' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(eventType_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(eventType_param) == IS_STRING)) { zephir_get_strval(eventType, eventType_param); } else { ZEPHIR_INIT_VAR(eventType); @@ -61581,7 +61231,7 @@ static PHP_METHOD(Phalcon_Events_Manager, attach) { if (!priority_param) { priority = 100; } else { - if (unlikely(Z_TYPE_P(priority_param) != IS_LONG)) { + if (UNEXPECTED(Z_TYPE_P(priority_param) != IS_LONG)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'priority' must be a int") TSRMLS_CC); RETURN_MM_NULL(); } @@ -61636,11 +61286,11 @@ static PHP_METHOD(Phalcon_Events_Manager, detach) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &eventType_param, &handler); - if (unlikely(Z_TYPE_P(eventType_param) != IS_STRING && Z_TYPE_P(eventType_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(eventType_param) != IS_STRING && Z_TYPE_P(eventType_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'eventType' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(eventType_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(eventType_param) == IS_STRING)) { zephir_get_strval(eventType, eventType_param); } else { ZEPHIR_INIT_VAR(eventType); @@ -61776,11 +61426,11 @@ static PHP_METHOD(Phalcon_Events_Manager, detachAll) { ZEPHIR_INIT_VAR(type); ZVAL_EMPTY_STRING(type); } else { - if (unlikely(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'type' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(type_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(type_param) == IS_STRING)) { zephir_get_strval(type, type_param); } else { ZEPHIR_INIT_VAR(type); @@ -61918,8 +61568,8 @@ static PHP_METHOD(Phalcon_Events_Manager, fireQueue) { } else { zephir_is_iterable(queue, &_12$$21, &_11$$21, 0, 0, "phalcon/events/manager.zep", 358); for ( - ; zephir_hash_get_current_data_ex(_12$$21, (void**) &_13$$21, &_11$$21) == SUCCESS - ; zephir_hash_move_forward_ex(_12$$21, &_11$$21) + ; zend_hash_get_current_data_ex(_12$$21, (void**) &_13$$21, &_11$$21) == SUCCESS + ; zend_hash_move_forward_ex(_12$$21, &_11$$21) ) { ZEPHIR_GET_HVALUE(handler, _13$$21); if (Z_TYPE_P(handler) == IS_OBJECT) { @@ -61978,11 +61628,11 @@ static PHP_METHOD(Phalcon_Events_Manager, fire) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 2, &eventType_param, &source, &data, &cancelable_param); - if (unlikely(Z_TYPE_P(eventType_param) != IS_STRING && Z_TYPE_P(eventType_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(eventType_param) != IS_STRING && Z_TYPE_P(eventType_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'eventType' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(eventType_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(eventType_param) == IS_STRING)) { zephir_get_strval(eventType, eventType_param); } else { ZEPHIR_INIT_VAR(eventType); @@ -62084,11 +61734,11 @@ static PHP_METHOD(Phalcon_Events_Manager, hasListeners) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &type_param); - if (unlikely(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'type' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(type_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(type_param) == IS_STRING)) { zephir_get_strval(type, type_param); } else { ZEPHIR_INIT_VAR(type); @@ -62109,11 +61759,11 @@ static PHP_METHOD(Phalcon_Events_Manager, getListeners) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &type_param); - if (unlikely(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'type' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(type_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(type_param) == IS_STRING)) { zephir_get_strval(type, type_param); } else { ZEPHIR_INIT_VAR(type); @@ -62258,8 +61908,8 @@ static PHP_METHOD(Phalcon_Flash_Direct, output) { if (Z_TYPE_P(messages) == IS_ARRAY) { zephir_is_iterable(messages, &_1$$3, &_0$$3, 0, 0, "phalcon/flash/direct.zep", 52); for ( - ; zephir_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_1$$3, &_0$$3) + ; zend_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS + ; zend_hash_move_forward_ex(_1$$3, &_0$$3) ) { ZEPHIR_GET_HVALUE(message, _2$$3); zend_print_zval(message, 0); @@ -62516,8 +62166,8 @@ static PHP_METHOD(Phalcon_Flash_Session, output) { if (Z_TYPE_P(messages) == IS_ARRAY) { zephir_is_iterable(messages, &_2$$3, &_1$$3, 0, 0, "phalcon/flash/session.zep", 136); for ( - ; zephir_hash_get_current_data_ex(_2$$3, (void**) &_3$$3, &_1$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_2$$3, &_1$$3) + ; zend_hash_get_current_data_ex(_2$$3, (void**) &_3$$3, &_1$$3) == SUCCESS + ; zend_hash_move_forward_ex(_2$$3, &_1$$3) ) { ZEPHIR_GET_HMKEY(type, _2$$3, _1$$3); ZEPHIR_GET_HVALUE(message, _3$$3); @@ -62645,11 +62295,11 @@ static PHP_METHOD(Phalcon_Forms_Element, setName) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -63420,11 +63070,11 @@ static PHP_METHOD(Phalcon_Forms_Form, setAction) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &action_param); - if (unlikely(Z_TYPE_P(action_param) != IS_STRING && Z_TYPE_P(action_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(action_param) != IS_STRING && Z_TYPE_P(action_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'action' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(action_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(action_param) == IS_STRING)) { zephir_get_strval(action, action_param); } else { ZEPHIR_INIT_VAR(action); @@ -63558,8 +63208,8 @@ static PHP_METHOD(Phalcon_Forms_Form, bind) { ZVAL_NULL(filter); zephir_is_iterable(data, &_2, &_1, 0, 0, "phalcon/forms/form.zep", 246); for ( - ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS - ; zephir_hash_move_forward_ex(_2, &_1) + ; zend_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS + ; zend_hash_move_forward_ex(_2, &_1) ) { ZEPHIR_GET_HMKEY(key, _2, _1); ZEPHIR_GET_HVALUE(value, _3); @@ -63673,8 +63323,8 @@ static PHP_METHOD(Phalcon_Forms_Form, isValid) { _6 = zephir_fetch_nproperty_this(this_ptr, SL("_elements"), PH_NOISY_CC); zephir_is_iterable(_6, &_8, &_7, 0, 0, "phalcon/forms/form.zep", 338); for ( - ; zephir_hash_get_current_data_ex(_8, (void**) &_9, &_7) == SUCCESS - ; zephir_hash_move_forward_ex(_8, &_7) + ; zend_hash_get_current_data_ex(_8, (void**) &_9, &_7) == SUCCESS + ; zend_hash_move_forward_ex(_8, &_7) ) { ZEPHIR_GET_HVALUE(element, _9); ZEPHIR_CALL_METHOD(&validators, element, "getvalidators", NULL, 0); @@ -63690,8 +63340,8 @@ static PHP_METHOD(Phalcon_Forms_Form, isValid) { zephir_check_call_status(); zephir_is_iterable(validators, &_12$$11, &_11$$11, 0, 0, "phalcon/forms/form.zep", 325); for ( - ; zephir_hash_get_current_data_ex(_12$$11, (void**) &_13$$11, &_11$$11) == SUCCESS - ; zephir_hash_move_forward_ex(_12$$11, &_11$$11) + ; zend_hash_get_current_data_ex(_12$$11, (void**) &_13$$11, &_11$$11) == SUCCESS + ; zend_hash_move_forward_ex(_12$$11, &_11$$11) ) { ZEPHIR_GET_HVALUE(validator, _13$$11); ZEPHIR_CALL_METHOD(NULL, validation, "add", &_14, 217, name, validator); @@ -63780,11 +63430,11 @@ static PHP_METHOD(Phalcon_Forms_Form, getMessagesFor) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -63817,11 +63467,11 @@ static PHP_METHOD(Phalcon_Forms_Form, hasMessagesFor) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -63879,8 +63529,8 @@ static PHP_METHOD(Phalcon_Forms_Form, add) { _2$$4 = zephir_fetch_nproperty_this(this_ptr, SL("_elements"), PH_NOISY_CC); zephir_is_iterable(_2$$4, &_4$$4, &_3$$4, 0, 0, "phalcon/forms/form.zep", 449); for ( - ; zephir_hash_get_current_data_ex(_4$$4, (void**) &_5$$4, &_3$$4) == SUCCESS - ; zephir_hash_move_forward_ex(_4$$4, &_3$$4) + ; zend_hash_get_current_data_ex(_4$$4, (void**) &_5$$4, &_3$$4) == SUCCESS + ; zend_hash_move_forward_ex(_4$$4, &_3$$4) ) { ZEPHIR_GET_HMKEY(key, _4$$4, _3$$4); ZEPHIR_GET_HVALUE(value, _5$$4); @@ -63911,11 +63561,11 @@ static PHP_METHOD(Phalcon_Forms_Form, render) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &name_param, &attributes); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -63954,11 +63604,11 @@ static PHP_METHOD(Phalcon_Forms_Form, get) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -63993,11 +63643,11 @@ static PHP_METHOD(Phalcon_Forms_Form, label) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &name_param, &attributes_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -64039,11 +63689,11 @@ static PHP_METHOD(Phalcon_Forms_Form, getLabel) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -64082,11 +63732,11 @@ static PHP_METHOD(Phalcon_Forms_Form, getValue) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -64164,11 +63814,11 @@ static PHP_METHOD(Phalcon_Forms_Form, has) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -64189,11 +63839,11 @@ static PHP_METHOD(Phalcon_Forms_Form, remove) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -64236,8 +63886,8 @@ static PHP_METHOD(Phalcon_Forms_Form, clear) { if (Z_TYPE_P(fields) == IS_ARRAY) { zephir_is_iterable(fields, &_1$$5, &_0$$5, 0, 0, "phalcon/forms/form.zep", 652); for ( - ; zephir_hash_get_current_data_ex(_1$$5, (void**) &_2$$5, &_0$$5) == SUCCESS - ; zephir_hash_move_forward_ex(_1$$5, &_0$$5) + ; zend_hash_get_current_data_ex(_1$$5, (void**) &_2$$5, &_0$$5) == SUCCESS + ; zend_hash_move_forward_ex(_1$$5, &_0$$5) ) { ZEPHIR_GET_HVALUE(field, _2$$5); if (zephir_array_isset(data, field)) { @@ -64256,8 +63906,8 @@ static PHP_METHOD(Phalcon_Forms_Form, clear) { if (Z_TYPE_P(elements) == IS_ARRAY) { zephir_is_iterable(elements, &_4$$10, &_3$$10, 0, 0, "phalcon/forms/form.zep", 672); for ( - ; zephir_hash_get_current_data_ex(_4$$10, (void**) &_5$$10, &_3$$10) == SUCCESS - ; zephir_hash_move_forward_ex(_4$$10, &_3$$10) + ; zend_hash_get_current_data_ex(_4$$10, (void**) &_5$$10, &_3$$10) == SUCCESS + ; zend_hash_move_forward_ex(_4$$10, &_3$$10) ) { ZEPHIR_GET_HVALUE(element, _5$$10); if (Z_TYPE_P(fields) != IS_ARRAY) { @@ -64891,8 +64541,8 @@ static PHP_METHOD(Phalcon_Forms_Element_Select, addOption) { if (Z_TYPE_P(option) == IS_ARRAY) { zephir_is_iterable(option, &_1$$3, &_0$$3, 0, 0, "phalcon/forms/element/select.zep", 84); for ( - ; zephir_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_1$$3, &_0$$3) + ; zend_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS + ; zend_hash_move_forward_ex(_1$$3, &_0$$3) ) { ZEPHIR_GET_HMKEY(key, _1$$3, _0$$3); ZEPHIR_GET_HVALUE(value, _2$$3); @@ -65101,11 +64751,11 @@ static PHP_METHOD(Phalcon_Http_Cookie, __construct) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 6, &name_param, &value, &expire, &path, &secure, &domain, &httpOnly); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -65537,11 +65187,11 @@ static PHP_METHOD(Phalcon_Http_Cookie, setPath) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &path_param); - if (unlikely(Z_TYPE_P(path_param) != IS_STRING && Z_TYPE_P(path_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(path_param) != IS_STRING && Z_TYPE_P(path_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'path' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(path_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(path_param) == IS_STRING)) { zephir_get_strval(path, path_param); } else { ZEPHIR_INIT_VAR(path); @@ -65592,11 +65242,11 @@ static PHP_METHOD(Phalcon_Http_Cookie, setDomain) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &domain_param); - if (unlikely(Z_TYPE_P(domain_param) != IS_STRING && Z_TYPE_P(domain_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(domain_param) != IS_STRING && Z_TYPE_P(domain_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'domain' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(domain_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(domain_param) == IS_STRING)) { zephir_get_strval(domain, domain_param); } else { ZEPHIR_INIT_VAR(domain); @@ -65868,11 +65518,11 @@ static PHP_METHOD(Phalcon_Http_Request, get) { ZEPHIR_INIT_VAR(name); ZVAL_EMPTY_STRING(name); } else { - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -65930,11 +65580,11 @@ static PHP_METHOD(Phalcon_Http_Request, getPost) { ZEPHIR_INIT_VAR(name); ZVAL_EMPTY_STRING(name); } else { - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -65991,11 +65641,11 @@ static PHP_METHOD(Phalcon_Http_Request, getPut) { ZEPHIR_INIT_VAR(name); ZVAL_EMPTY_STRING(name); } else { - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -66066,11 +65716,11 @@ static PHP_METHOD(Phalcon_Http_Request, getQuery) { ZEPHIR_INIT_VAR(name); ZVAL_EMPTY_STRING(name); } else { - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -66129,11 +65779,11 @@ static PHP_METHOD(Phalcon_Http_Request, getHelper) { ZEPHIR_INIT_VAR(name); ZVAL_EMPTY_STRING(name); } else { - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -66215,11 +65865,11 @@ static PHP_METHOD(Phalcon_Http_Request, getServer) { zephir_get_global(&_SERVER, SS("_SERVER") TSRMLS_CC); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -66243,11 +65893,11 @@ static PHP_METHOD(Phalcon_Http_Request, has) { zephir_get_global(&_REQUEST, SS("_REQUEST") TSRMLS_CC); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -66268,11 +65918,11 @@ static PHP_METHOD(Phalcon_Http_Request, hasPost) { zephir_get_global(&_POST, SS("_POST") TSRMLS_CC); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -66293,11 +65943,11 @@ static PHP_METHOD(Phalcon_Http_Request, hasPut) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -66320,11 +65970,11 @@ static PHP_METHOD(Phalcon_Http_Request, hasQuery) { zephir_get_global(&_GET, SS("_GET") TSRMLS_CC); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -66345,11 +65995,11 @@ static PHP_METHOD(Phalcon_Http_Request, hasServer) { zephir_get_global(&_SERVER, SS("_SERVER") TSRMLS_CC); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -66371,11 +66021,11 @@ static PHP_METHOD(Phalcon_Http_Request, getHeader) { zephir_get_global(&_SERVER, SS("_SERVER") TSRMLS_CC); zephir_fetch_params(1, 1, 0, &header_param); - if (unlikely(Z_TYPE_P(header_param) != IS_STRING && Z_TYPE_P(header_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(header_param) != IS_STRING && Z_TYPE_P(header_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'header' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(header_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(header_param) == IS_STRING)) { zephir_get_strval(header, header_param); } else { ZEPHIR_INIT_VAR(header); @@ -66816,7 +66466,7 @@ static PHP_METHOD(Phalcon_Http_Request, getMethod) { ZEPHIR_INIT_VAR(returnMethod); ZVAL_EMPTY_STRING(returnMethod); ZEPHIR_OBS_VAR(requestMethod); - if (likely(zephir_array_isset_string_fetch(&requestMethod, _SERVER, SS("REQUEST_METHOD"), 0 TSRMLS_CC))) { + if (EXPECTED(zephir_array_isset_string_fetch(&requestMethod, _SERVER, SS("REQUEST_METHOD"), 0 TSRMLS_CC))) { ZEPHIR_INIT_NVAR(returnMethod); zephir_fast_strtoupper(returnMethod, requestMethod); } else { @@ -66932,8 +66582,8 @@ static PHP_METHOD(Phalcon_Http_Request, isMethod) { if (Z_TYPE_P(methods) == IS_ARRAY) { zephir_is_iterable(methods, &_5$$5, &_4$$5, 0, 0, "phalcon/http/request.zep", 680); for ( - ; zephir_hash_get_current_data_ex(_5$$5, (void**) &_6$$5, &_4$$5) == SUCCESS - ; zephir_hash_move_forward_ex(_5$$5, &_4$$5) + ; zend_hash_get_current_data_ex(_5$$5, (void**) &_6$$5, &_4$$5) == SUCCESS + ; zend_hash_move_forward_ex(_5$$5, &_4$$5) ) { ZEPHIR_GET_HVALUE(method, _6$$5); ZEPHIR_INIT_NVAR(_8$$6); @@ -67115,8 +66765,8 @@ static PHP_METHOD(Phalcon_Http_Request, hasFiles) { } zephir_is_iterable(files, &_1, &_0, 0, 0, "phalcon/http/request.zep", 799); for ( - ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS - ; zephir_hash_move_forward_ex(_1, &_0) + ; zend_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS + ; zend_hash_move_forward_ex(_1, &_0) ) { ZEPHIR_GET_HVALUE(file, _2); ZEPHIR_OBS_NVAR(error); @@ -67168,8 +66818,8 @@ static PHP_METHOD(Phalcon_Http_Request, hasFileHelper) { } zephir_is_iterable(data, &_1, &_0, 0, 0, "phalcon/http/request.zep", 826); for ( - ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS - ; zephir_hash_move_forward_ex(_1, &_0) + ; zend_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS + ; zend_hash_move_forward_ex(_1, &_0) ) { ZEPHIR_GET_HVALUE(value, _2); if (Z_TYPE_P(value) != IS_ARRAY) { @@ -67224,8 +66874,8 @@ static PHP_METHOD(Phalcon_Http_Request, getUploadedFiles) { if (zephir_fast_count_int(superFiles TSRMLS_CC) > 0) { zephir_is_iterable(superFiles, &_1$$3, &_0$$3, 0, 0, "phalcon/http/request.zep", 871); for ( - ; zephir_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_1$$3, &_0$$3) + ; zend_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS + ; zend_hash_move_forward_ex(_1$$3, &_0$$3) ) { ZEPHIR_GET_HMKEY(prefix, _1$$3, _0$$3); ZEPHIR_GET_HVALUE(input, _2$$3); @@ -67241,8 +66891,8 @@ static PHP_METHOD(Phalcon_Http_Request, getUploadedFiles) { zephir_check_call_status(); zephir_is_iterable(smoothInput, &_11$$5, &_10$$5, 0, 0, "phalcon/http/request.zep", 865); for ( - ; zephir_hash_get_current_data_ex(_11$$5, (void**) &_12$$5, &_10$$5) == SUCCESS - ; zephir_hash_move_forward_ex(_11$$5, &_10$$5) + ; zend_hash_get_current_data_ex(_11$$5, (void**) &_12$$5, &_10$$5) == SUCCESS + ; zend_hash_move_forward_ex(_11$$5, &_10$$5) ) { ZEPHIR_GET_HVALUE(file, _12$$5); _13$$6 = onlySuccessful == 0; @@ -67321,8 +66971,8 @@ static PHP_METHOD(Phalcon_Http_Request, smoothFiles) { array_init(files); zephir_is_iterable(names, &_1, &_0, 0, 0, "phalcon/http/request.zep", 916); for ( - ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS - ; zephir_hash_move_forward_ex(_1, &_0) + ; zend_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS + ; zend_hash_move_forward_ex(_1, &_0) ) { ZEPHIR_GET_HMKEY(idx, _1, _0); ZEPHIR_GET_HVALUE(name, _2); @@ -67357,8 +67007,8 @@ static PHP_METHOD(Phalcon_Http_Request, smoothFiles) { zephir_check_call_status(); zephir_is_iterable(parentFiles, &_12$$5, &_11$$5, 0, 0, "phalcon/http/request.zep", 913); for ( - ; zephir_hash_get_current_data_ex(_12$$5, (void**) &_13$$5, &_11$$5) == SUCCESS - ; zephir_hash_move_forward_ex(_12$$5, &_11$$5) + ; zend_hash_get_current_data_ex(_12$$5, (void**) &_13$$5, &_11$$5) == SUCCESS + ; zend_hash_move_forward_ex(_12$$5, &_11$$5) ) { ZEPHIR_GET_HVALUE(file, _13$$5); zephir_array_append(&files, file, PH_SEPARATE, "phalcon/http/request.zep", 911); @@ -67393,8 +67043,8 @@ static PHP_METHOD(Phalcon_Http_Request, getHeaders) { zephir_array_update_string(&contentHeaders, SL("CONTENT_MD5"), &ZEPHIR_GLOBAL(global_true), PH_COPY | PH_SEPARATE); zephir_is_iterable(_SERVER, &_1, &_0, 0, 0, "phalcon/http/request.zep", 953); for ( - ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS - ; zephir_hash_move_forward_ex(_1, &_0) + ; zend_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS + ; zend_hash_move_forward_ex(_1, &_0) ) { ZEPHIR_GET_HMKEY(name, _1, _0); ZEPHIR_GET_HVALUE(value, _2); @@ -67548,11 +67198,11 @@ static PHP_METHOD(Phalcon_Http_Request, _getBestQuality) { zephir_fetch_params(1, 2, 0, &qualityParts_param, &name_param); zephir_get_arrval(qualityParts, qualityParts_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -67566,8 +67216,8 @@ static PHP_METHOD(Phalcon_Http_Request, _getBestQuality) { ZVAL_STRING(selectedName, "", 1); zephir_is_iterable(qualityParts, &_1, &_0, 0, 0, "phalcon/http/request.zep", 1029); for ( - ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS - ; zephir_hash_move_forward_ex(_1, &_0) + ; zend_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS + ; zend_hash_move_forward_ex(_1, &_0) ) { ZEPHIR_GET_HVALUE(accept, _2); if (i == 0) { @@ -67780,8 +67430,8 @@ static PHP_METHOD(Phalcon_Http_Request, getDigestAuth) { if (Z_TYPE_P(matches) == IS_ARRAY) { zephir_is_iterable(matches, &_4$$5, &_3$$5, 0, 0, "phalcon/http/request.zep", 1136); for ( - ; zephir_hash_get_current_data_ex(_4$$5, (void**) &_5$$5, &_3$$5) == SUCCESS - ; zephir_hash_move_forward_ex(_4$$5, &_3$$5) + ; zend_hash_get_current_data_ex(_4$$5, (void**) &_5$$5, &_3$$5) == SUCCESS + ; zend_hash_move_forward_ex(_4$$5, &_3$$5) ) { ZEPHIR_GET_HVALUE(match, _5$$5); zephir_array_fetch_long(&_6$$6, match, 3, PH_NOISY | PH_READONLY, "phalcon/http/request.zep", 1134 TSRMLS_CC); @@ -67807,21 +67457,21 @@ static PHP_METHOD(Phalcon_Http_Request, _getQualityHeader) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &serverIndex_param, &name_param); - if (unlikely(Z_TYPE_P(serverIndex_param) != IS_STRING && Z_TYPE_P(serverIndex_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(serverIndex_param) != IS_STRING && Z_TYPE_P(serverIndex_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'serverIndex' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(serverIndex_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(serverIndex_param) == IS_STRING)) { zephir_get_strval(serverIndex, serverIndex_param); } else { ZEPHIR_INIT_VAR(serverIndex); ZVAL_EMPTY_STRING(serverIndex); } - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -67843,8 +67493,8 @@ static PHP_METHOD(Phalcon_Http_Request, _getQualityHeader) { zephir_check_call_status(); zephir_is_iterable(_4, &_7, &_6, 0, 0, "phalcon/http/request.zep", 1170); for ( - ; zephir_hash_get_current_data_ex(_7, (void**) &_8, &_6) == SUCCESS - ; zephir_hash_move_forward_ex(_7, &_6) + ; zend_hash_get_current_data_ex(_7, (void**) &_8, &_6) == SUCCESS + ; zend_hash_move_forward_ex(_7, &_6) ) { ZEPHIR_GET_HVALUE(part, _8); ZEPHIR_INIT_NVAR(headerParts); @@ -67861,8 +67511,8 @@ static PHP_METHOD(Phalcon_Http_Request, _getQualityHeader) { zephir_check_call_status(); zephir_is_iterable(_13$$3, &_15$$3, &_14$$3, 0, 0, "phalcon/http/request.zep", 1167); for ( - ; zephir_hash_get_current_data_ex(_15$$3, (void**) &_16$$3, &_14$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_15$$3, &_14$$3) + ; zend_hash_get_current_data_ex(_15$$3, (void**) &_16$$3, &_14$$3) == SUCCESS + ; zend_hash_move_forward_ex(_15$$3, &_14$$3) ) { ZEPHIR_GET_HVALUE(headerPart, _16$$3); ZEPHIR_SINIT_NVAR(_17$$4); @@ -68136,8 +67786,8 @@ static PHP_METHOD(Phalcon_Http_Response, setStatusCode) { ZEPHIR_INIT_VAR(_0$$3); zephir_is_iterable(currentHeadersRaw, &_2$$3, &_1$$3, 0, 0, "phalcon/http/response.zep", 132); for ( - ; zephir_hash_get_current_data_ex(_2$$3, (void**) &_3$$3, &_1$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_2$$3, &_1$$3) + ; zend_hash_get_current_data_ex(_2$$3, (void**) &_3$$3, &_1$$3) == SUCCESS + ; zend_hash_move_forward_ex(_2$$3, &_1$$3) ) { ZEPHIR_GET_HMKEY(key, _2$$3, _1$$3); ZEPHIR_GET_HVALUE(_0$$3, _3$$3); @@ -68450,7 +68100,7 @@ static PHP_METHOD(Phalcon_Http_Response, setCache) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &minutes_param); - if (unlikely(Z_TYPE_P(minutes_param) != IS_LONG)) { + if (UNEXPECTED(Z_TYPE_P(minutes_param) != IS_LONG)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'minutes' must be a int") TSRMLS_CC); RETURN_MM_NULL(); } @@ -69181,11 +68831,11 @@ static PHP_METHOD(Phalcon_Http_Request_File, moveTo) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &destination_param); - if (unlikely(Z_TYPE_P(destination_param) != IS_STRING && Z_TYPE_P(destination_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(destination_param) != IS_STRING && Z_TYPE_P(destination_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'destination' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(destination_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(destination_param) == IS_STRING)) { zephir_get_strval(destination, destination_param); } else { ZEPHIR_INIT_VAR(destination); @@ -69316,11 +68966,11 @@ static PHP_METHOD(Phalcon_Http_Response_Cookies, set) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 6, &name_param, &value, &expire_param, &path_param, &secure_param, &domain_param, &httpOnly_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -69349,11 +68999,11 @@ static PHP_METHOD(Phalcon_Http_Response_Cookies, set) { ZEPHIR_INIT_VAR(domain); ZVAL_EMPTY_STRING(domain); } else { - if (unlikely(Z_TYPE_P(domain_param) != IS_STRING && Z_TYPE_P(domain_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(domain_param) != IS_STRING && Z_TYPE_P(domain_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'domain' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(domain_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(domain_param) == IS_STRING)) { zephir_get_strval(domain, domain_param); } else { ZEPHIR_INIT_VAR(domain); @@ -69465,11 +69115,11 @@ static PHP_METHOD(Phalcon_Http_Response_Cookies, get) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -69517,11 +69167,11 @@ static PHP_METHOD(Phalcon_Http_Response_Cookies, has) { zephir_get_global(&_COOKIE, SS("_COOKIE") TSRMLS_CC); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -69549,11 +69199,11 @@ static PHP_METHOD(Phalcon_Http_Response_Cookies, delete) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -69587,8 +69237,8 @@ static PHP_METHOD(Phalcon_Http_Response_Cookies, send) { _1$$3 = zephir_fetch_nproperty_this(this_ptr, SL("_cookies"), PH_NOISY_CC); zephir_is_iterable(_1$$3, &_3$$3, &_2$$3, 0, 0, "phalcon/http/response/cookies.zep", 242); for ( - ; zephir_hash_get_current_data_ex(_3$$3, (void**) &_4$$3, &_2$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_3$$3, &_2$$3) + ; zend_hash_get_current_data_ex(_3$$3, (void**) &_4$$3, &_2$$3) == SUCCESS + ; zend_hash_move_forward_ex(_3$$3, &_2$$3) ) { ZEPHIR_GET_HVALUE(cookie, _4$$3); ZEPHIR_CALL_METHOD(NULL, cookie, "send", NULL, 0); @@ -69776,8 +69426,8 @@ static PHP_METHOD(Phalcon_Http_Response_Headers, send) { _1$$3 = zephir_fetch_nproperty_this(this_ptr, SL("_headers"), PH_NOISY_CC); zephir_is_iterable(_1$$3, &_3$$3, &_2$$3, 0, 0, "phalcon/http/response/headers.zep", 94); for ( - ; zephir_hash_get_current_data_ex(_3$$3, (void**) &_4$$3, &_2$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_3$$3, &_2$$3) + ; zend_hash_get_current_data_ex(_3$$3, (void**) &_4$$3, &_2$$3) == SUCCESS + ; zend_hash_move_forward_ex(_3$$3, &_2$$3) ) { ZEPHIR_GET_HMKEY(header, _3$$3, _2$$3); ZEPHIR_GET_HVALUE(value, _4$$3); @@ -69860,8 +69510,8 @@ static PHP_METHOD(Phalcon_Http_Response_Headers, __set_state) { if (zephir_array_isset_string_fetch(&dataHeaders, data, SS("_headers"), 0 TSRMLS_CC)) { zephir_is_iterable(dataHeaders, &_1$$3, &_0$$3, 0, 0, "phalcon/http/response/headers.zep", 126); for ( - ; zephir_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_1$$3, &_0$$3) + ; zend_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS + ; zend_hash_move_forward_ex(_1$$3, &_0$$3) ) { ZEPHIR_GET_HMKEY(key, _1$$3, _0$$3); ZEPHIR_GET_HVALUE(value, _2$$3); @@ -70958,11 +70608,11 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, __construct) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &file_param, &width_param, &height_param); - if (unlikely(Z_TYPE_P(file_param) != IS_STRING && Z_TYPE_P(file_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(file_param) != IS_STRING && Z_TYPE_P(file_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'file' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(file_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(file_param) == IS_STRING)) { zephir_get_strval(file, file_param); } else { ZEPHIR_INIT_VAR(file); @@ -72580,11 +72230,11 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, __construct) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &file_param, &width_param, &height_param); - if (unlikely(Z_TYPE_P(file_param) != IS_STRING && Z_TYPE_P(file_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(file_param) != IS_STRING && Z_TYPE_P(file_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'file' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(file_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(file_param) == IS_STRING)) { zephir_get_strval(file, file_param); } else { ZEPHIR_INIT_VAR(file); @@ -73254,10 +72904,9 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _reflection) { static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _watermark) { - zend_class_entry *_0$$3; - zephir_fcall_cache_entry *_8 = NULL; + zephir_fcall_cache_entry *_7 = NULL; int offsetX, offsetY, opacity, ZEPHIR_LAST_CALL_STATUS; - zval *image, *offsetX_param = NULL, *offsetY_param = NULL, *opacity_param = NULL, *watermark = NULL, *ret = NULL, *version = NULL, *method = NULL, *_2 = NULL, *_3 = NULL, *_4, *_1$$3, *_5$$5, _6$$5 = zval_used_for_init, *_7$$5 = NULL, *_9$$5 = NULL, *_10$$5 = NULL, *_11$$5, *_12$$5 = NULL; + zval *image, *offsetX_param = NULL, *offsetY_param = NULL, *opacity_param = NULL, *watermark = NULL, *ret = NULL, *version = NULL, *method = NULL, *_1 = NULL, *_2 = NULL, *_3, *_0$$3, *_4$$5, _5$$5 = zval_used_for_init, *_6$$5 = NULL, *_8$$5 = NULL, *_9$$5 = NULL, *_10$$5, *_11$$5 = NULL; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 4, 0, &image, &offsetX_param, &offsetY_param, &opacity_param); @@ -73274,49 +72923,48 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _watermark) { zephir_check_call_status(); ZEPHIR_INIT_VAR(method); ZVAL_STRING(method, "setImageOpacity", 1); - if (likely((zephir_method_exists_ex(watermark, SS("getversion") TSRMLS_CC) == SUCCESS))) { - _0$$3 = zend_fetch_class(SL("Imagick"), ZEND_FETCH_CLASS_AUTO TSRMLS_CC); - ZEPHIR_CALL_CE_STATIC(&version, _0$$3, "getversion", NULL, 0); + if (EXPECTED((zephir_method_exists_ex(watermark, SS("getversion") TSRMLS_CC) == SUCCESS))) { + ZEPHIR_CALL_METHOD(&version, watermark, "getversion", NULL, 0); zephir_check_call_status(); - zephir_array_fetch_string(&_1$$3, version, SL("versionNumber"), PH_NOISY | PH_READONLY, "phalcon/image/adapter/imagick.zep", 365 TSRMLS_CC); - if (ZEPHIR_GE_LONG(_1$$3, 0x700)) { + zephir_array_fetch_string(&_0$$3, version, SL("versionNumber"), PH_NOISY | PH_READONLY, "phalcon/image/adapter/imagick.zep", 365 TSRMLS_CC); + if (ZEPHIR_GE_LONG(_0$$3, 0x700)) { ZEPHIR_INIT_NVAR(method); ZVAL_STRING(method, "setImageAlpha", 1); } } - ZEPHIR_CALL_METHOD(&_2, image, "render", NULL, 0); + ZEPHIR_CALL_METHOD(&_1, image, "render", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, watermark, "readimageblob", NULL, 0, _2); + ZEPHIR_CALL_METHOD(NULL, watermark, "readimageblob", NULL, 0, _1); zephir_check_call_status(); - ZEPHIR_INIT_VAR(_3); - ZVAL_LONG(_3, opacity); - ZEPHIR_CALL_METHOD_ZVAL(NULL, watermark, method, NULL, 0, _3); + ZEPHIR_INIT_VAR(_2); + ZVAL_LONG(_2, opacity); + ZEPHIR_CALL_METHOD_ZVAL(NULL, watermark, method, NULL, 0, _2); zephir_check_call_status(); - _4 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_INIT_NVAR(_3); - ZVAL_LONG(_3, 0); - ZEPHIR_CALL_METHOD(NULL, _4, "setiteratorindex", NULL, 0, _3); + _3 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); + ZEPHIR_INIT_NVAR(_2); + ZVAL_LONG(_2, 0); + ZEPHIR_CALL_METHOD(NULL, _3, "setiteratorindex", NULL, 0, _2); zephir_check_call_status(); while (1) { - _5$$5 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_SINIT_NVAR(_6$$5); - ZVAL_STRING(&_6$$5, "Imagick::COMPOSITE_OVER", 0); - ZEPHIR_CALL_FUNCTION(&_7$$5, "constant", &_8, 196, &_6$$5); + _4$$5 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); + ZEPHIR_SINIT_NVAR(_5$$5); + ZVAL_STRING(&_5$$5, "Imagick::COMPOSITE_OVER", 0); + ZEPHIR_CALL_FUNCTION(&_6$$5, "constant", &_7, 196, &_5$$5); zephir_check_call_status(); + ZEPHIR_INIT_NVAR(_8$$5); + ZVAL_LONG(_8$$5, offsetX); ZEPHIR_INIT_NVAR(_9$$5); - ZVAL_LONG(_9$$5, offsetX); - ZEPHIR_INIT_NVAR(_10$$5); - ZVAL_LONG(_10$$5, offsetY); - ZEPHIR_CALL_METHOD(&ret, _5$$5, "compositeimage", NULL, 0, watermark, _7$$5, _9$$5, _10$$5); + ZVAL_LONG(_9$$5, offsetY); + ZEPHIR_CALL_METHOD(&ret, _4$$5, "compositeimage", NULL, 0, watermark, _6$$5, _8$$5, _9$$5); zephir_check_call_status(); if (!ZEPHIR_IS_TRUE_IDENTICAL(ret)) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_image_exception_ce, "Imagick::compositeImage failed", "phalcon/image/adapter/imagick.zep", 379); return; } - _11$$5 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_METHOD(&_12$$5, _11$$5, "nextimage", NULL, 0); + _10$$5 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); + ZEPHIR_CALL_METHOD(&_11$$5, _10$$5, "nextimage", NULL, 0); zephir_check_call_status(); - if (ZEPHIR_IS_FALSE_IDENTICAL(_12$$5)) { + if (ZEPHIR_IS_FALSE_IDENTICAL(_11$$5)) { break; } } @@ -74163,8 +73811,8 @@ static PHP_METHOD(Phalcon_Logger_Adapter, commit) { _1 = zephir_fetch_nproperty_this(this_ptr, SL("_queue"), PH_NOISY_CC); zephir_is_iterable(_1, &_3, &_2, 0, 0, "phalcon/logger/adapter.zep", 125); for ( - ; zephir_hash_get_current_data_ex(_3, (void**) &_4, &_2) == SUCCESS - ; zephir_hash_move_forward_ex(_3, &_2) + ; zend_hash_get_current_data_ex(_3, (void**) &_4, &_2) == SUCCESS + ; zend_hash_move_forward_ex(_3, &_2) ) { ZEPHIR_GET_HVALUE(message, _4); ZEPHIR_CALL_METHOD(&_5$$4, message, "getmessage", NULL, 0); @@ -74227,11 +73875,11 @@ static PHP_METHOD(Phalcon_Logger_Adapter, critical) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &message_param, &context_param); - if (unlikely(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'message' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(message_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(message_param) == IS_STRING)) { zephir_get_strval(message, message_param); } else { ZEPHIR_INIT_VAR(message); @@ -74263,11 +73911,11 @@ static PHP_METHOD(Phalcon_Logger_Adapter, emergency) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &message_param, &context_param); - if (unlikely(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'message' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(message_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(message_param) == IS_STRING)) { zephir_get_strval(message, message_param); } else { ZEPHIR_INIT_VAR(message); @@ -74299,11 +73947,11 @@ static PHP_METHOD(Phalcon_Logger_Adapter, debug) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &message_param, &context_param); - if (unlikely(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'message' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(message_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(message_param) == IS_STRING)) { zephir_get_strval(message, message_param); } else { ZEPHIR_INIT_VAR(message); @@ -74335,11 +73983,11 @@ static PHP_METHOD(Phalcon_Logger_Adapter, error) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &message_param, &context_param); - if (unlikely(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'message' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(message_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(message_param) == IS_STRING)) { zephir_get_strval(message, message_param); } else { ZEPHIR_INIT_VAR(message); @@ -74371,11 +74019,11 @@ static PHP_METHOD(Phalcon_Logger_Adapter, info) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &message_param, &context_param); - if (unlikely(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'message' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(message_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(message_param) == IS_STRING)) { zephir_get_strval(message, message_param); } else { ZEPHIR_INIT_VAR(message); @@ -74407,11 +74055,11 @@ static PHP_METHOD(Phalcon_Logger_Adapter, notice) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &message_param, &context_param); - if (unlikely(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'message' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(message_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(message_param) == IS_STRING)) { zephir_get_strval(message, message_param); } else { ZEPHIR_INIT_VAR(message); @@ -74443,11 +74091,11 @@ static PHP_METHOD(Phalcon_Logger_Adapter, warning) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &message_param, &context_param); - if (unlikely(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'message' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(message_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(message_param) == IS_STRING)) { zephir_get_strval(message, message_param); } else { ZEPHIR_INIT_VAR(message); @@ -74479,11 +74127,11 @@ static PHP_METHOD(Phalcon_Logger_Adapter, alert) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &message_param, &context_param); - if (unlikely(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'message' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(message_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(message_param) == IS_STRING)) { zephir_get_strval(message, message_param); } else { ZEPHIR_INIT_VAR(message); @@ -74752,8 +74400,8 @@ static PHP_METHOD(Phalcon_Logger_Formatter, interpolate) { array_init(replace); zephir_is_iterable(context, &_2$$3, &_1$$3, 0, 0, "phalcon/logger/formatter.zep", 89); for ( - ; zephir_hash_get_current_data_ex(_2$$3, (void**) &_3$$3, &_1$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_2$$3, &_1$$3) + ; zend_hash_get_current_data_ex(_2$$3, (void**) &_3$$3, &_1$$3) == SUCCESS + ; zend_hash_move_forward_ex(_2$$3, &_1$$3) ) { ZEPHIR_GET_HMKEY(key, _2$$3, _1$$3); ZEPHIR_GET_HVALUE(value, _3$$3); @@ -74959,8 +74607,8 @@ static PHP_METHOD(Phalcon_Logger_Multiple, setFormatter) { if (Z_TYPE_P(loggers) == IS_ARRAY) { zephir_is_iterable(loggers, &_1$$3, &_0$$3, 0, 0, "phalcon/logger/multiple.zep", 61); for ( - ; zephir_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_1$$3, &_0$$3) + ; zend_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS + ; zend_hash_move_forward_ex(_1$$3, &_0$$3) ) { ZEPHIR_GET_HVALUE(logger, _2$$3); ZEPHIR_CALL_METHOD(NULL, logger, "setformatter", NULL, 0, formatter); @@ -74990,8 +74638,8 @@ static PHP_METHOD(Phalcon_Logger_Multiple, setLogLevel) { if (Z_TYPE_P(loggers) == IS_ARRAY) { zephir_is_iterable(loggers, &_1$$3, &_0$$3, 0, 0, "phalcon/logger/multiple.zep", 77); for ( - ; zephir_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_1$$3, &_0$$3) + ; zend_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS + ; zend_hash_move_forward_ex(_1$$3, &_0$$3) ) { ZEPHIR_GET_HVALUE(logger, _2$$3); ZEPHIR_INIT_NVAR(_3$$4); @@ -75034,8 +74682,8 @@ static PHP_METHOD(Phalcon_Logger_Multiple, log) { if (Z_TYPE_P(loggers) == IS_ARRAY) { zephir_is_iterable(loggers, &_1$$3, &_0$$3, 0, 0, "phalcon/logger/multiple.zep", 93); for ( - ; zephir_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_1$$3, &_0$$3) + ; zend_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS + ; zend_hash_move_forward_ex(_1$$3, &_0$$3) ) { ZEPHIR_GET_HVALUE(logger, _2$$3); ZEPHIR_CALL_METHOD(NULL, logger, "log", NULL, 0, type, message, context); @@ -75056,11 +74704,11 @@ static PHP_METHOD(Phalcon_Logger_Multiple, critical) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &message_param, &context_param); - if (unlikely(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'message' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(message_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(message_param) == IS_STRING)) { zephir_get_strval(message, message_param); } else { ZEPHIR_INIT_VAR(message); @@ -75092,11 +74740,11 @@ static PHP_METHOD(Phalcon_Logger_Multiple, emergency) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &message_param, &context_param); - if (unlikely(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'message' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(message_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(message_param) == IS_STRING)) { zephir_get_strval(message, message_param); } else { ZEPHIR_INIT_VAR(message); @@ -75128,11 +74776,11 @@ static PHP_METHOD(Phalcon_Logger_Multiple, debug) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &message_param, &context_param); - if (unlikely(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'message' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(message_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(message_param) == IS_STRING)) { zephir_get_strval(message, message_param); } else { ZEPHIR_INIT_VAR(message); @@ -75164,11 +74812,11 @@ static PHP_METHOD(Phalcon_Logger_Multiple, error) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &message_param, &context_param); - if (unlikely(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'message' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(message_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(message_param) == IS_STRING)) { zephir_get_strval(message, message_param); } else { ZEPHIR_INIT_VAR(message); @@ -75200,11 +74848,11 @@ static PHP_METHOD(Phalcon_Logger_Multiple, info) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &message_param, &context_param); - if (unlikely(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'message' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(message_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(message_param) == IS_STRING)) { zephir_get_strval(message, message_param); } else { ZEPHIR_INIT_VAR(message); @@ -75236,11 +74884,11 @@ static PHP_METHOD(Phalcon_Logger_Multiple, notice) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &message_param, &context_param); - if (unlikely(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'message' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(message_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(message_param) == IS_STRING)) { zephir_get_strval(message, message_param); } else { ZEPHIR_INIT_VAR(message); @@ -75272,11 +74920,11 @@ static PHP_METHOD(Phalcon_Logger_Multiple, warning) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &message_param, &context_param); - if (unlikely(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'message' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(message_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(message_param) == IS_STRING)) { zephir_get_strval(message, message_param); } else { ZEPHIR_INIT_VAR(message); @@ -75308,11 +74956,11 @@ static PHP_METHOD(Phalcon_Logger_Multiple, alert) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &message_param, &context_param); - if (unlikely(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'message' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(message_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(message_param) == IS_STRING)) { zephir_get_strval(message, message_param); } else { ZEPHIR_INIT_VAR(message); @@ -75375,11 +75023,11 @@ static PHP_METHOD(Phalcon_Logger_Adapter_File, __construct) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &name_param, &options); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -75623,8 +75271,8 @@ static PHP_METHOD(Phalcon_Logger_Adapter_Firephp, logInternal) { zephir_read_property_this(&index, this_ptr, SL("_index"), PH_NOISY_CC); zephir_is_iterable(chunk, &_8, &_7, 0, 0, "phalcon/logger/adapter/firephp.zep", 92); for ( - ; zephir_hash_get_current_data_ex(_8, (void**) &_9, &_7) == SUCCESS - ; zephir_hash_move_forward_ex(_8, &_7) + ; zend_hash_get_current_data_ex(_8, (void**) &_9, &_7) == SUCCESS + ; zend_hash_move_forward_ex(_8, &_7) ) { ZEPHIR_GET_HMKEY(key, _8, _7); ZEPHIR_GET_HVALUE(chString, _9); @@ -75681,11 +75329,11 @@ static PHP_METHOD(Phalcon_Logger_Adapter_Stream, __construct) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &name_param, &options); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -76086,8 +75734,8 @@ static PHP_METHOD(Phalcon_Logger_Formatter_Firephp, format) { } zephir_is_iterable(backtrace, &_7$$4, &_6$$4, 1, 0, "phalcon/logger/formatter/firephp.zep", 141); for ( - ; zephir_hash_get_current_data_ex(_7$$4, (void**) &_8$$4, &_6$$4) == SUCCESS - ; zephir_hash_move_forward_ex(_7$$4, &_6$$4) + ; zend_hash_get_current_data_ex(_7$$4, (void**) &_8$$4, &_6$$4) == SUCCESS + ; zend_hash_move_forward_ex(_7$$4, &_6$$4) ) { ZEPHIR_GET_HMKEY(key$$4, _7$$4, _6$$4); ZEPHIR_GET_HVALUE(backtraceItem$$4, _8$$4); @@ -77027,11 +76675,11 @@ static PHP_METHOD(Phalcon_Mvc_Collection, setSource) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &source_param); - if (unlikely(Z_TYPE_P(source_param) != IS_STRING && Z_TYPE_P(source_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(source_param) != IS_STRING && Z_TYPE_P(source_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'source' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(source_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(source_param) == IS_STRING)) { zephir_get_strval(source, source_param); } else { ZEPHIR_INIT_VAR(source); @@ -77072,11 +76720,11 @@ static PHP_METHOD(Phalcon_Mvc_Collection, setConnectionService) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &connectionService_param); - if (unlikely(Z_TYPE_P(connectionService_param) != IS_STRING && Z_TYPE_P(connectionService_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(connectionService_param) != IS_STRING && Z_TYPE_P(connectionService_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'connectionService' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(connectionService_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(connectionService_param) == IS_STRING)) { zephir_get_strval(connectionService, connectionService_param); } else { ZEPHIR_INIT_VAR(connectionService); @@ -77132,11 +76780,11 @@ static PHP_METHOD(Phalcon_Mvc_Collection, readAttribute) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &attribute_param); - if (unlikely(Z_TYPE_P(attribute_param) != IS_STRING && Z_TYPE_P(attribute_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(attribute_param) != IS_STRING && Z_TYPE_P(attribute_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'attribute' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(attribute_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(attribute_param) == IS_STRING)) { zephir_get_strval(attribute, attribute_param); } else { ZEPHIR_INIT_VAR(attribute); @@ -77190,8 +76838,8 @@ static PHP_METHOD(Phalcon_Mvc_Collection, cloneResult) { } zephir_is_iterable(document, &_1, &_0, 0, 0, "phalcon/mvc/collection.zep", 332); for ( - ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS - ; zephir_hash_move_forward_ex(_1, &_0) + ; zend_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS + ; zend_hash_move_forward_ex(_1, &_0) ) { ZEPHIR_GET_HMKEY(key, _1, _0); ZEPHIR_GET_HVALUE(value, _2); @@ -77321,8 +76969,8 @@ static PHP_METHOD(Phalcon_Mvc_Collection, _getResultset) { zephir_check_call_status(); zephir_is_iterable(_6, &_8, &_7, 0, 0, "phalcon/mvc/collection.zep", 457); for ( - ; zephir_hash_get_current_data_ex(_8, (void**) &_9, &_7) == SUCCESS - ; zephir_hash_move_forward_ex(_8, &_7) + ; zend_hash_get_current_data_ex(_8, (void**) &_9, &_7) == SUCCESS + ; zend_hash_move_forward_ex(_8, &_7) ) { ZEPHIR_GET_HVALUE(document, _9); ZEPHIR_CALL_STATIC(&_10$$19, "cloneresult", &_11, 0, base, document); @@ -77561,8 +77209,8 @@ static PHP_METHOD(Phalcon_Mvc_Collection, validate) { zephir_check_call_status(); zephir_is_iterable(_1$$4, &_3$$4, &_2$$4, 0, 0, "phalcon/mvc/collection.zep", 698); for ( - ; zephir_hash_get_current_data_ex(_3$$4, (void**) &_4$$4, &_2$$4) == SUCCESS - ; zephir_hash_move_forward_ex(_3$$4, &_2$$4) + ; zend_hash_get_current_data_ex(_3$$4, (void**) &_4$$4, &_2$$4) == SUCCESS + ; zend_hash_move_forward_ex(_3$$4, &_2$$4) ) { ZEPHIR_GET_HVALUE(message, _4$$4); zephir_update_property_array_append(this_ptr, SL("_errorMessages"), message TSRMLS_CC); @@ -77629,11 +77277,11 @@ static PHP_METHOD(Phalcon_Mvc_Collection, fireEvent) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &eventName_param); - if (unlikely(Z_TYPE_P(eventName_param) != IS_STRING && Z_TYPE_P(eventName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(eventName_param) != IS_STRING && Z_TYPE_P(eventName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'eventName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(eventName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(eventName_param) == IS_STRING)) { zephir_get_strval(eventName, eventName_param); } else { ZEPHIR_INIT_VAR(eventName); @@ -77661,11 +77309,11 @@ static PHP_METHOD(Phalcon_Mvc_Collection, fireEventCancel) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &eventName_param); - if (unlikely(Z_TYPE_P(eventName_param) != IS_STRING && Z_TYPE_P(eventName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(eventName_param) != IS_STRING && Z_TYPE_P(eventName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'eventName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(eventName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(eventName_param) == IS_STRING)) { zephir_get_strval(eventName, eventName_param); } else { ZEPHIR_INIT_VAR(eventName); @@ -78358,11 +78006,11 @@ static PHP_METHOD(Phalcon_Mvc_Collection, summatory) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &field_param, &conditions, &finalize); - if (unlikely(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'field' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(field_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(field_param) == IS_STRING)) { zephir_get_strval(field, field_param); } else { ZEPHIR_INIT_VAR(field); @@ -78589,8 +78237,8 @@ static PHP_METHOD(Phalcon_Mvc_Collection, toArray) { zephir_check_call_status(); zephir_is_iterable(_0, &_2, &_1, 0, 0, "phalcon/mvc/collection.zep", 1633); for ( - ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS - ; zephir_hash_move_forward_ex(_2, &_1) + ; zend_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS + ; zend_hash_move_forward_ex(_2, &_1) ) { ZEPHIR_GET_HMKEY(key, _2, _1); ZEPHIR_GET_HVALUE(value, _3); @@ -78635,11 +78283,11 @@ static PHP_METHOD(Phalcon_Mvc_Collection, unserialize) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &data_param); - if (unlikely(Z_TYPE_P(data_param) != IS_STRING && Z_TYPE_P(data_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(data_param) != IS_STRING && Z_TYPE_P(data_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'data' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(data_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(data_param) == IS_STRING)) { zephir_get_strval(data, data_param); } else { ZEPHIR_INIT_VAR(data); @@ -78669,8 +78317,8 @@ static PHP_METHOD(Phalcon_Mvc_Collection, unserialize) { zephir_update_property_this(this_ptr, SL("_modelsManager"), manager TSRMLS_CC); zephir_is_iterable(attributes, &_3$$3, &_2$$3, 0, 0, "phalcon/mvc/collection.zep", 1689); for ( - ; zephir_hash_get_current_data_ex(_3$$3, (void**) &_4$$3, &_2$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_3$$3, &_2$$3) + ; zend_hash_get_current_data_ex(_3$$3, (void**) &_4$$3, &_2$$3) == SUCCESS + ; zend_hash_move_forward_ex(_3$$3, &_2$$3) ) { ZEPHIR_GET_HMKEY(key, _3$$3, _2$$3); ZEPHIR_GET_HVALUE(value, _4$$3); @@ -78844,11 +78492,11 @@ static PHP_METHOD(Phalcon_Mvc_Dispatcher, setControllerSuffix) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &controllerSuffix_param); - if (unlikely(Z_TYPE_P(controllerSuffix_param) != IS_STRING && Z_TYPE_P(controllerSuffix_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(controllerSuffix_param) != IS_STRING && Z_TYPE_P(controllerSuffix_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'controllerSuffix' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(controllerSuffix_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(controllerSuffix_param) == IS_STRING)) { zephir_get_strval(controllerSuffix, controllerSuffix_param); } else { ZEPHIR_INIT_VAR(controllerSuffix); @@ -78869,11 +78517,11 @@ static PHP_METHOD(Phalcon_Mvc_Dispatcher, setDefaultController) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &controllerName_param); - if (unlikely(Z_TYPE_P(controllerName_param) != IS_STRING && Z_TYPE_P(controllerName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(controllerName_param) != IS_STRING && Z_TYPE_P(controllerName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'controllerName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(controllerName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(controllerName_param) == IS_STRING)) { zephir_get_strval(controllerName, controllerName_param); } else { ZEPHIR_INIT_VAR(controllerName); @@ -78894,11 +78542,11 @@ static PHP_METHOD(Phalcon_Mvc_Dispatcher, setControllerName) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &controllerName_param); - if (unlikely(Z_TYPE_P(controllerName_param) != IS_STRING && Z_TYPE_P(controllerName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(controllerName_param) != IS_STRING && Z_TYPE_P(controllerName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'controllerName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(controllerName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(controllerName_param) == IS_STRING)) { zephir_get_strval(controllerName, controllerName_param); } else { ZEPHIR_INIT_VAR(controllerName); @@ -78952,11 +78600,11 @@ static PHP_METHOD(Phalcon_Mvc_Dispatcher, _throwDispatchException) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &message_param, &exceptionCode_param); - if (unlikely(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'message' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(message_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(message_param) == IS_STRING)) { zephir_get_strval(message, message_param); } else { ZEPHIR_INIT_VAR(message); @@ -79228,11 +78876,11 @@ static PHP_METHOD(Phalcon_Mvc_Micro, map) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &routePattern_param, &handler); - if (unlikely(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'routePattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(routePattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(routePattern_param) == IS_STRING)) { zephir_get_strval(routePattern, routePattern_param); } else { ZEPHIR_INIT_VAR(routePattern); @@ -79260,11 +78908,11 @@ static PHP_METHOD(Phalcon_Mvc_Micro, get) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &routePattern_param, &handler); - if (unlikely(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'routePattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(routePattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(routePattern_param) == IS_STRING)) { zephir_get_strval(routePattern, routePattern_param); } else { ZEPHIR_INIT_VAR(routePattern); @@ -79292,11 +78940,11 @@ static PHP_METHOD(Phalcon_Mvc_Micro, post) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &routePattern_param, &handler); - if (unlikely(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'routePattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(routePattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(routePattern_param) == IS_STRING)) { zephir_get_strval(routePattern, routePattern_param); } else { ZEPHIR_INIT_VAR(routePattern); @@ -79324,11 +78972,11 @@ static PHP_METHOD(Phalcon_Mvc_Micro, put) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &routePattern_param, &handler); - if (unlikely(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'routePattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(routePattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(routePattern_param) == IS_STRING)) { zephir_get_strval(routePattern, routePattern_param); } else { ZEPHIR_INIT_VAR(routePattern); @@ -79356,11 +79004,11 @@ static PHP_METHOD(Phalcon_Mvc_Micro, patch) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &routePattern_param, &handler); - if (unlikely(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'routePattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(routePattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(routePattern_param) == IS_STRING)) { zephir_get_strval(routePattern, routePattern_param); } else { ZEPHIR_INIT_VAR(routePattern); @@ -79388,11 +79036,11 @@ static PHP_METHOD(Phalcon_Mvc_Micro, head) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &routePattern_param, &handler); - if (unlikely(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'routePattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(routePattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(routePattern_param) == IS_STRING)) { zephir_get_strval(routePattern, routePattern_param); } else { ZEPHIR_INIT_VAR(routePattern); @@ -79420,11 +79068,11 @@ static PHP_METHOD(Phalcon_Mvc_Micro, delete) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &routePattern_param, &handler); - if (unlikely(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'routePattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(routePattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(routePattern_param) == IS_STRING)) { zephir_get_strval(routePattern, routePattern_param); } else { ZEPHIR_INIT_VAR(routePattern); @@ -79452,11 +79100,11 @@ static PHP_METHOD(Phalcon_Mvc_Micro, options) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &routePattern_param, &handler); - if (unlikely(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'routePattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(routePattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(routePattern_param) == IS_STRING)) { zephir_get_strval(routePattern, routePattern_param); } else { ZEPHIR_INIT_VAR(routePattern); @@ -79516,8 +79164,8 @@ static PHP_METHOD(Phalcon_Mvc_Micro, mount) { zephir_check_call_status(); zephir_is_iterable(handlers, &_2$$5, &_1$$5, 0, 0, "phalcon/mvc/micro.zep", 444); for ( - ; zephir_hash_get_current_data_ex(_2$$5, (void**) &_3$$5, &_1$$5) == SUCCESS - ; zephir_hash_move_forward_ex(_2$$5, &_1$$5) + ; zend_hash_get_current_data_ex(_2$$5, (void**) &_3$$5, &_1$$5) == SUCCESS + ; zend_hash_move_forward_ex(_2$$5, &_1$$5) ) { ZEPHIR_GET_HVALUE(handler, _3$$5); if (Z_TYPE_P(handler) != IS_ARRAY) { @@ -79633,11 +79281,11 @@ static PHP_METHOD(Phalcon_Mvc_Micro, setService) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 1, &serviceName_param, &definition, &shared_param); - if (unlikely(Z_TYPE_P(serviceName_param) != IS_STRING && Z_TYPE_P(serviceName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(serviceName_param) != IS_STRING && Z_TYPE_P(serviceName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'serviceName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(serviceName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(serviceName_param) == IS_STRING)) { zephir_get_strval(serviceName, serviceName_param); } else { ZEPHIR_INIT_VAR(serviceName); @@ -79680,11 +79328,11 @@ static PHP_METHOD(Phalcon_Mvc_Micro, hasService) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &serviceName_param); - if (unlikely(Z_TYPE_P(serviceName_param) != IS_STRING && Z_TYPE_P(serviceName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(serviceName_param) != IS_STRING && Z_TYPE_P(serviceName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'serviceName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(serviceName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(serviceName_param) == IS_STRING)) { zephir_get_strval(serviceName, serviceName_param); } else { ZEPHIR_INIT_VAR(serviceName); @@ -79716,11 +79364,11 @@ static PHP_METHOD(Phalcon_Mvc_Micro, getService) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &serviceName_param); - if (unlikely(Z_TYPE_P(serviceName_param) != IS_STRING && Z_TYPE_P(serviceName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(serviceName_param) != IS_STRING && Z_TYPE_P(serviceName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'serviceName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(serviceName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(serviceName_param) == IS_STRING)) { zephir_get_strval(serviceName, serviceName_param); } else { ZEPHIR_INIT_VAR(serviceName); @@ -79770,13 +79418,13 @@ static PHP_METHOD(Phalcon_Mvc_Micro, getSharedService) { static PHP_METHOD(Phalcon_Mvc_Micro, handle) { - zval *_58$$59; + zval *_59$$59; zend_class_entry *_20$$20; HashTable *_11$$12, *_30$$30, *_40$$38, *_51$$49; HashPosition _10$$12, _29$$30, _39$$38, _50$$49; zend_bool _18$$7, _26$$7, _23$$24, _32$$31; int ZEPHIR_LAST_CALL_STATUS; - zval *uri = NULL, *dependencyInjector = NULL, *eventsManager = NULL, *status = NULL, *router = NULL, *matchedRoute = NULL, *handler = NULL, *beforeHandlers = NULL, *params = NULL, *returnedValue = NULL, *e = NULL, *errorHandler = NULL, *afterHandlers = NULL, *notFoundHandler = NULL, *finishHandlers = NULL, *finish = NULL, *before = NULL, *after = NULL, *response = NULL, *modelBinder = NULL, *bindCacheKey = NULL, *routeName = NULL, *realHandler = NULL, *methodName = NULL, *lazyReturned = NULL, *afterBindingHandlers = NULL, *afterBinding = NULL, *_0$$5 = NULL, *_1$$5, *_2$$4 = NULL, *_3$$4, *_4$$7, *_5$$7 = NULL, *_6$$8, *_7$$8, *_8$$9 = NULL, *_9$$9, **_12$$12, *_13$$15, *_14$$17 = NULL, *_15$$17 = NULL, *_16$$13 = NULL, *_17$$13, *_19$$20 = NULL, *_21$$23 = NULL, *_22$$21 = NULL, *_24$$25, *_25$$25 = NULL, *_27$$28 = NULL, *_28$$28, **_31$$30, *_36$$31 = NULL, *_37$$31, *_33$$32, *_34$$34 = NULL, *_35$$34 = NULL, *_38$$37, **_41$$38, *_42$$41, *_43$$43 = NULL, *_44$$43 = NULL, *_45$$45 = NULL, *_46$$45, *_47$$47, *_48$$47, *_49$$48, **_52$$49, *_53$$52, *_54$$54 = NULL, *_55$$54 = NULL, *_56$$50, *_57$$58, *_59$$67 = NULL, *_60$$67; + zval *uri = NULL, *dependencyInjector = NULL, *eventsManager = NULL, *status = NULL, *router = NULL, *matchedRoute = NULL, *handler = NULL, *beforeHandlers = NULL, *params = NULL, *returnedValue = NULL, *e = NULL, *errorHandler = NULL, *afterHandlers = NULL, *notFoundHandler = NULL, *finishHandlers = NULL, *finish = NULL, *before = NULL, *after = NULL, *response = NULL, *modelBinder = NULL, *bindCacheKey = NULL, *routeName = NULL, *realHandler = NULL, *methodName = NULL, *lazyReturned = NULL, *afterBindingHandlers = NULL, *afterBinding = NULL, *_57, *_0$$5 = NULL, *_1$$5, *_2$$4 = NULL, *_3$$4, *_4$$7, *_5$$7 = NULL, *_6$$8, *_7$$8, *_8$$9 = NULL, *_9$$9, **_12$$12, *_13$$15, *_14$$17 = NULL, *_15$$17 = NULL, *_16$$13 = NULL, *_17$$13, *_19$$20 = NULL, *_21$$23 = NULL, *_22$$21 = NULL, *_24$$25, *_25$$25 = NULL, *_27$$28 = NULL, *_28$$28, **_31$$30, *_36$$31 = NULL, *_37$$31, *_33$$32, *_34$$34 = NULL, *_35$$34 = NULL, *_38$$37, **_41$$38, *_42$$41, *_43$$43 = NULL, *_44$$43 = NULL, *_45$$45 = NULL, *_46$$45, *_47$$47, *_48$$47, *_49$$48, **_52$$49, *_53$$52, *_54$$54 = NULL, *_55$$54 = NULL, *_56$$50, *_58$$58, *_60$$67 = NULL, *_61$$67; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 0, 1, &uri); @@ -79864,8 +79512,8 @@ static PHP_METHOD(Phalcon_Mvc_Micro, handle) { } zephir_is_iterable(beforeHandlers, &_11$$12, &_10$$12, 0, 0, "phalcon/mvc/micro.zep", 696); for ( - ; zephir_hash_get_current_data_ex(_11$$12, (void**) &_12$$12, &_10$$12) == SUCCESS - ; zephir_hash_move_forward_ex(_11$$12, &_10$$12) + ; zend_hash_get_current_data_ex(_11$$12, (void**) &_12$$12, &_10$$12) == SUCCESS + ; zend_hash_move_forward_ex(_11$$12, &_10$$12) ) { ZEPHIR_GET_HVALUE(before, _12$$12); if (Z_TYPE_P(before) == IS_OBJECT) { @@ -79986,8 +79634,8 @@ static PHP_METHOD(Phalcon_Mvc_Micro, handle) { } zephir_is_iterable(afterBindingHandlers, &_30$$30, &_29$$30, 0, 0, "phalcon/mvc/micro.zep", 801); for ( - ; zephir_hash_get_current_data_ex(_30$$30, (void**) &_31$$30, &_29$$30) == SUCCESS - ; zephir_hash_move_forward_ex(_30$$30, &_29$$30) + ; zend_hash_get_current_data_ex(_30$$30, (void**) &_31$$30, &_29$$30) == SUCCESS + ; zend_hash_move_forward_ex(_30$$30, &_29$$30) ) { ZEPHIR_GET_HVALUE(afterBinding, _31$$30); _32$$31 = Z_TYPE_P(afterBinding) == IS_OBJECT; @@ -80045,8 +79693,8 @@ static PHP_METHOD(Phalcon_Mvc_Micro, handle) { } zephir_is_iterable(afterHandlers, &_40$$38, &_39$$38, 0, 0, "phalcon/mvc/micro.zep", 850); for ( - ; zephir_hash_get_current_data_ex(_40$$38, (void**) &_41$$38, &_39$$38) == SUCCESS - ; zephir_hash_move_forward_ex(_40$$38, &_39$$38) + ; zend_hash_get_current_data_ex(_40$$38, (void**) &_41$$38, &_39$$38) == SUCCESS + ; zend_hash_move_forward_ex(_40$$38, &_39$$38) ) { ZEPHIR_GET_HVALUE(after, _41$$38); if (Z_TYPE_P(after) == IS_OBJECT) { @@ -80127,8 +79775,8 @@ static PHP_METHOD(Phalcon_Mvc_Micro, handle) { ZVAL_NULL(params); zephir_is_iterable(finishHandlers, &_51$$49, &_50$$49, 0, 0, "phalcon/mvc/micro.zep", 940); for ( - ; zephir_hash_get_current_data_ex(_51$$49, (void**) &_52$$49, &_50$$49) == SUCCESS - ; zephir_hash_move_forward_ex(_51$$49, &_50$$49) + ; zend_hash_get_current_data_ex(_51$$49, (void**) &_52$$49, &_50$$49) == SUCCESS + ; zend_hash_move_forward_ex(_51$$49, &_50$$49) ) { ZEPHIR_GET_HVALUE(finish, _52$$49); if (Z_TYPE_P(finish) == IS_OBJECT) { @@ -80172,16 +79820,18 @@ static PHP_METHOD(Phalcon_Mvc_Micro, handle) { try_end_1: if (EG(exception)) { - ZEPHIR_CPY_WRT(e, EG(exception)); - if (zephir_instance_of_ev(e, zend_exception_get_default(TSRMLS_C) TSRMLS_CC)) { + ZEPHIR_INIT_VAR(_57); + ZEPHIR_CPY_WRT(_57, EG(exception)); + if (zephir_instance_of_ev(_57, zend_exception_get_default(TSRMLS_C) TSRMLS_CC)) { zend_clear_exception(TSRMLS_C); + ZEPHIR_CPY_WRT(e, _57); ZEPHIR_OBS_NVAR(eventsManager); zephir_read_property_this(&eventsManager, this_ptr, SL("_eventsManager"), PH_NOISY_CC); if (Z_TYPE_P(eventsManager) == IS_OBJECT) { - ZEPHIR_INIT_VAR(_57$$58); - ZVAL_STRING(_57$$58, "micro:beforeException", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(&returnedValue, eventsManager, "fire", NULL, 0, _57$$58, this_ptr, e); - zephir_check_temp_parameter(_57$$58); + ZEPHIR_INIT_VAR(_58$$58); + ZVAL_STRING(_58$$58, "micro:beforeException", ZEPHIR_TEMP_PARAM_COPY); + ZEPHIR_CALL_METHOD(&returnedValue, eventsManager, "fire", NULL, 0, _58$$58, this_ptr, e); + zephir_check_temp_parameter(_58$$58); zephir_check_call_status(); } ZEPHIR_OBS_VAR(errorHandler); @@ -80191,11 +79841,11 @@ static PHP_METHOD(Phalcon_Mvc_Micro, handle) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_micro_exception_ce, "Error handler is not callable", "phalcon/mvc/micro.zep", 959); return; } - ZEPHIR_INIT_VAR(_58$$59); - zephir_create_array(_58$$59, 1, 0 TSRMLS_CC); - zephir_array_fast_append(_58$$59, e); + ZEPHIR_INIT_VAR(_59$$59); + zephir_create_array(_59$$59, 1, 0 TSRMLS_CC); + zephir_array_fast_append(_59$$59, e); ZEPHIR_INIT_NVAR(returnedValue); - ZEPHIR_CALL_USER_FUNC_ARRAY(returnedValue, errorHandler, _58$$59); + ZEPHIR_CALL_USER_FUNC_ARRAY(returnedValue, errorHandler, _59$$59); zephir_check_call_status(); if (Z_TYPE_P(returnedValue) == IS_OBJECT) { if (!(zephir_instance_of_ev(returnedValue, phalcon_http_responseinterface_ce TSRMLS_CC))) { @@ -80220,12 +79870,12 @@ static PHP_METHOD(Phalcon_Mvc_Micro, handle) { } } if (Z_TYPE_P(returnedValue) == IS_STRING) { - ZEPHIR_INIT_VAR(_60$$67); - ZVAL_STRING(_60$$67, "response", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(&_59$$67, dependencyInjector, "getshared", NULL, 0, _60$$67); - zephir_check_temp_parameter(_60$$67); + ZEPHIR_INIT_VAR(_61$$67); + ZVAL_STRING(_61$$67, "response", ZEPHIR_TEMP_PARAM_COPY); + ZEPHIR_CALL_METHOD(&_60$$67, dependencyInjector, "getshared", NULL, 0, _61$$67); + zephir_check_temp_parameter(_61$$67); zephir_check_call_status(); - ZEPHIR_CPY_WRT(response, _59$$67); + ZEPHIR_CPY_WRT(response, _60$$67); ZEPHIR_CALL_METHOD(NULL, response, "setcontent", NULL, 0, returnedValue); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, response, "send", NULL, 0); @@ -80714,11 +80364,11 @@ static PHP_METHOD(Phalcon_Mvc_Model, setSource) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &source_param); - if (unlikely(Z_TYPE_P(source_param) != IS_STRING && Z_TYPE_P(source_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(source_param) != IS_STRING && Z_TYPE_P(source_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'source' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(source_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(source_param) == IS_STRING)) { zephir_get_strval(source, source_param); } else { ZEPHIR_INIT_VAR(source); @@ -80756,11 +80406,11 @@ static PHP_METHOD(Phalcon_Mvc_Model, setSchema) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &schema_param); - if (unlikely(Z_TYPE_P(schema_param) != IS_STRING && Z_TYPE_P(schema_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schema_param) != IS_STRING && Z_TYPE_P(schema_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schema' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schema_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schema_param) == IS_STRING)) { zephir_get_strval(schema, schema_param); } else { ZEPHIR_INIT_VAR(schema); @@ -80798,11 +80448,11 @@ static PHP_METHOD(Phalcon_Mvc_Model, setConnectionService) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &connectionService_param); - if (unlikely(Z_TYPE_P(connectionService_param) != IS_STRING && Z_TYPE_P(connectionService_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(connectionService_param) != IS_STRING && Z_TYPE_P(connectionService_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'connectionService' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(connectionService_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(connectionService_param) == IS_STRING)) { zephir_get_strval(connectionService, connectionService_param); } else { ZEPHIR_INIT_VAR(connectionService); @@ -80826,11 +80476,11 @@ static PHP_METHOD(Phalcon_Mvc_Model, setReadConnectionService) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &connectionService_param); - if (unlikely(Z_TYPE_P(connectionService_param) != IS_STRING && Z_TYPE_P(connectionService_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(connectionService_param) != IS_STRING && Z_TYPE_P(connectionService_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'connectionService' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(connectionService_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(connectionService_param) == IS_STRING)) { zephir_get_strval(connectionService, connectionService_param); } else { ZEPHIR_INIT_VAR(connectionService); @@ -80854,11 +80504,11 @@ static PHP_METHOD(Phalcon_Mvc_Model, setWriteConnectionService) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &connectionService_param); - if (unlikely(Z_TYPE_P(connectionService_param) != IS_STRING && Z_TYPE_P(connectionService_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(connectionService_param) != IS_STRING && Z_TYPE_P(connectionService_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'connectionService' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(connectionService_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(connectionService_param) == IS_STRING)) { zephir_get_strval(connectionService, connectionService_param); } else { ZEPHIR_INIT_VAR(connectionService); @@ -80994,8 +80644,8 @@ static PHP_METHOD(Phalcon_Mvc_Model, assign) { array_init(dataMapped); zephir_is_iterable(data, &_1$$3, &_0$$3, 0, 0, "phalcon/mvc/model.zep", 465); for ( - ; zephir_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_1$$3, &_0$$3) + ; zend_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS + ; zend_hash_move_forward_ex(_1$$3, &_0$$3) ) { ZEPHIR_GET_HMKEY(key, _1$$3, _0$$3); ZEPHIR_GET_HVALUE(value, _2$$3); @@ -81023,8 +80673,8 @@ static PHP_METHOD(Phalcon_Mvc_Model, assign) { zephir_check_call_status(); zephir_is_iterable(_3, &_5, &_4, 0, 0, "phalcon/mvc/model.zep", 514); for ( - ; zephir_hash_get_current_data_ex(_5, (void**) &_6, &_4) == SUCCESS - ; zephir_hash_move_forward_ex(_5, &_4) + ; zend_hash_get_current_data_ex(_5, (void**) &_6, &_4) == SUCCESS + ; zend_hash_move_forward_ex(_5, &_4) ) { ZEPHIR_GET_HVALUE(attribute, _6); if (Z_TYPE_P(columnMap) == IS_ARRAY) { @@ -81101,8 +80751,8 @@ static PHP_METHOD(Phalcon_Mvc_Model, cloneResultMap) { zephir_check_call_status(); zephir_is_iterable(data, &_2, &_1, 0, 0, "phalcon/mvc/model.zep", 616); for ( - ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS - ; zephir_hash_move_forward_ex(_2, &_1) + ; zend_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS + ; zend_hash_move_forward_ex(_2, &_1) ) { ZEPHIR_GET_HMKEY(key, _2, _1); ZEPHIR_GET_HVALUE(value, _3); @@ -81222,8 +80872,8 @@ static PHP_METHOD(Phalcon_Mvc_Model, cloneResultMapHydrate) { } zephir_is_iterable(data, &_1, &_0, 0, 0, "phalcon/mvc/model.zep", 701); for ( - ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS - ; zephir_hash_move_forward_ex(_1, &_0) + ; zend_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS + ; zend_hash_move_forward_ex(_1, &_0) ) { ZEPHIR_GET_HMKEY(key, _1, _0); ZEPHIR_GET_HVALUE(value, _2); @@ -81302,8 +80952,8 @@ static PHP_METHOD(Phalcon_Mvc_Model, cloneResult) { zephir_check_call_status(); zephir_is_iterable(data, &_2, &_1, 0, 0, "phalcon/mvc/model.zep", 751); for ( - ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS - ; zephir_hash_move_forward_ex(_2, &_1) + ; zend_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS + ; zend_hash_move_forward_ex(_2, &_1) ) { ZEPHIR_GET_HMKEY(key, _2, _1); ZEPHIR_GET_HVALUE(value, _3); @@ -81568,8 +81218,8 @@ static PHP_METHOD(Phalcon_Mvc_Model, _exists) { array_init(uniqueTypes); zephir_is_iterable(primaryKeys, &_1$$3, &_0$$3, 0, 0, "phalcon/mvc/model.zep", 1074); for ( - ; zephir_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_1$$3, &_0$$3) + ; zend_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS + ; zend_hash_move_forward_ex(_1$$3, &_0$$3) ) { ZEPHIR_GET_HVALUE(field, _2$$3); if (Z_TYPE_P(columnMap) == IS_ARRAY) { @@ -81694,21 +81344,21 @@ static PHP_METHOD(Phalcon_Mvc_Model, _groupResult) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &functionName_param, &alias_param, ¶meters); - if (unlikely(Z_TYPE_P(functionName_param) != IS_STRING && Z_TYPE_P(functionName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(functionName_param) != IS_STRING && Z_TYPE_P(functionName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'functionName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(functionName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(functionName_param) == IS_STRING)) { zephir_get_strval(functionName, functionName_param); } else { ZEPHIR_INIT_VAR(functionName); ZVAL_EMPTY_STRING(functionName); } - if (unlikely(Z_TYPE_P(alias_param) != IS_STRING && Z_TYPE_P(alias_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(alias_param) != IS_STRING && Z_TYPE_P(alias_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'alias' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(alias_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(alias_param) == IS_STRING)) { zephir_get_strval(alias, alias_param); } else { ZEPHIR_INIT_VAR(alias); @@ -81925,11 +81575,11 @@ static PHP_METHOD(Phalcon_Mvc_Model, fireEvent) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &eventName_param); - if (unlikely(Z_TYPE_P(eventName_param) != IS_STRING && Z_TYPE_P(eventName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(eventName_param) != IS_STRING && Z_TYPE_P(eventName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'eventName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(eventName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(eventName_param) == IS_STRING)) { zephir_get_strval(eventName, eventName_param); } else { ZEPHIR_INIT_VAR(eventName); @@ -81957,11 +81607,11 @@ static PHP_METHOD(Phalcon_Mvc_Model, fireEventCancel) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &eventName_param); - if (unlikely(Z_TYPE_P(eventName_param) != IS_STRING && Z_TYPE_P(eventName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(eventName_param) != IS_STRING && Z_TYPE_P(eventName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'eventName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(eventName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(eventName_param) == IS_STRING)) { zephir_get_strval(eventName, eventName_param); } else { ZEPHIR_INIT_VAR(eventName); @@ -82115,8 +81765,8 @@ static PHP_METHOD(Phalcon_Mvc_Model, getMessages) { _1$$3 = zephir_fetch_nproperty_this(this_ptr, SL("_errorMessages"), PH_NOISY_CC); zephir_is_iterable(_1$$3, &_3$$3, &_2$$3, 0, 0, "phalcon/mvc/model.zep", 1594); for ( - ; zephir_hash_get_current_data_ex(_3$$3, (void**) &_4$$3, &_2$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_3$$3, &_2$$3) + ; zend_hash_get_current_data_ex(_3$$3, (void**) &_4$$3, &_2$$3) == SUCCESS + ; zend_hash_move_forward_ex(_3$$3, &_2$$3) ) { ZEPHIR_GET_HVALUE(message, _4$$3); ZEPHIR_CALL_METHOD(&_5$$4, message, "getfield", NULL, 0); @@ -82150,8 +81800,8 @@ static PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysRestrict) { error = 0; zephir_is_iterable(belongsTo, &_2, &_1, 0, 0, "phalcon/mvc/model.zep", 1739); for ( - ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS - ; zephir_hash_move_forward_ex(_2, &_1) + ; zend_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS + ; zend_hash_move_forward_ex(_2, &_1) ) { ZEPHIR_GET_HVALUE(relation, _3); validateWithNulls = 0; @@ -82187,8 +81837,8 @@ static PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysRestrict) { if (Z_TYPE_P(fields) == IS_ARRAY) { zephir_is_iterable(fields, &_8$$8, &_7$$8, 0, 0, "phalcon/mvc/model.zep", 1679); for ( - ; zephir_hash_get_current_data_ex(_8$$8, (void**) &_9$$8, &_7$$8) == SUCCESS - ; zephir_hash_move_forward_ex(_8$$8, &_7$$8) + ; zend_hash_get_current_data_ex(_8$$8, (void**) &_9$$8, &_7$$8) == SUCCESS + ; zend_hash_move_forward_ex(_8$$8, &_7$$8) ) { ZEPHIR_GET_HMKEY(position, _8$$8, _7$$8); ZEPHIR_GET_HVALUE(field, _9$$8); @@ -82297,8 +81947,8 @@ static PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysReverseCascade) { zephir_check_call_status(); zephir_is_iterable(relations, &_2, &_1, 0, 0, "phalcon/mvc/model.zep", 1852); for ( - ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS - ; zephir_hash_move_forward_ex(_2, &_1) + ; zend_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS + ; zend_hash_move_forward_ex(_2, &_1) ) { ZEPHIR_GET_HVALUE(relation, _3); ZEPHIR_CALL_METHOD(&foreignKey, relation, "getforeignkey", NULL, 0); @@ -82332,8 +81982,8 @@ static PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysReverseCascade) { if (Z_TYPE_P(fields) == IS_ARRAY) { zephir_is_iterable(fields, &_8$$8, &_7$$8, 0, 0, "phalcon/mvc/model.zep", 1821); for ( - ; zephir_hash_get_current_data_ex(_8$$8, (void**) &_9$$8, &_7$$8) == SUCCESS - ; zephir_hash_move_forward_ex(_8$$8, &_7$$8) + ; zend_hash_get_current_data_ex(_8$$8, (void**) &_9$$8, &_7$$8) == SUCCESS + ; zend_hash_move_forward_ex(_8$$8, &_7$$8) ) { ZEPHIR_GET_HMKEY(position, _8$$8, _7$$8); ZEPHIR_GET_HVALUE(field, _9$$8); @@ -82394,8 +82044,8 @@ static PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysReverseRestrict) { error = 0; zephir_is_iterable(relations, &_2, &_1, 0, 0, "phalcon/mvc/model.zep", 1970); for ( - ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS - ; zephir_hash_move_forward_ex(_2, &_1) + ; zend_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS + ; zend_hash_move_forward_ex(_2, &_1) ) { ZEPHIR_GET_HVALUE(relation, _3); ZEPHIR_CALL_METHOD(&foreignKey, relation, "getforeignkey", NULL, 0); @@ -82429,8 +82079,8 @@ static PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysReverseRestrict) { if (Z_TYPE_P(fields) == IS_ARRAY) { zephir_is_iterable(fields, &_7$$8, &_6$$8, 0, 0, "phalcon/mvc/model.zep", 1932); for ( - ; zephir_hash_get_current_data_ex(_7$$8, (void**) &_8$$8, &_6$$8) == SUCCESS - ; zephir_hash_move_forward_ex(_7$$8, &_6$$8) + ; zend_hash_get_current_data_ex(_7$$8, (void**) &_8$$8, &_6$$8) == SUCCESS + ; zend_hash_move_forward_ex(_7$$8, &_6$$8) ) { ZEPHIR_GET_HMKEY(position, _7$$8, _6$$8); ZEPHIR_GET_HVALUE(field, _8$$8); @@ -82575,8 +82225,8 @@ static PHP_METHOD(Phalcon_Mvc_Model, _preSave) { error = 0; zephir_is_iterable(notNull, &_9$$12, &_8$$12, 0, 0, "phalcon/mvc/model.zep", 2136); for ( - ; zephir_hash_get_current_data_ex(_9$$12, (void**) &_10$$12, &_8$$12) == SUCCESS - ; zephir_hash_move_forward_ex(_9$$12, &_8$$12) + ; zend_hash_get_current_data_ex(_9$$12, (void**) &_10$$12, &_8$$12) == SUCCESS + ; zend_hash_move_forward_ex(_9$$12, &_8$$12) ) { ZEPHIR_GET_HVALUE(field, _10$$12); if (!(zephir_array_isset(automaticAttributes, field))) { @@ -82790,10 +82440,10 @@ static PHP_METHOD(Phalcon_Mvc_Model, _doLowInsert) { HashTable *_2; HashPosition _1; - zend_bool useExplicitIdentity = 0, _19, _7$$11, _16$$22; + zend_bool useExplicitIdentity = 0, _19, _7$$11, _16$$23; zephir_fcall_cache_entry *_6 = NULL, *_8 = NULL, *_12 = NULL; int ZEPHIR_LAST_CALL_STATUS; - zval *metaData, *connection, *table, *identityField, *bindSkip = NULL, *fields = NULL, *values = NULL, *bindTypes = NULL, *attributes = NULL, *bindDataTypes = NULL, *automaticAttributes = NULL, *field = NULL, *columnMap = NULL, *value = NULL, *attributeField = NULL, *success = NULL, *bindType = NULL, *defaultValue = NULL, *sequenceName = NULL, *defaultValues = NULL, *source = NULL, *schema = NULL, *snapshot = NULL, *lastInsertedId = NULL, *manager = NULL, *_0, **_3, *_4$$8 = NULL, *_5$$8 = NULL, *_9$$13 = NULL, *_10$$13 = NULL, *_11$$15 = NULL, *_13$$17 = NULL, *_14$$20, *_15$$20, *_17$$27, *_18$$27, *_20$$30 = NULL, *_21$$30 = NULL; + zval *metaData, *connection, *table, *identityField, *bindSkip = NULL, *fields = NULL, *values = NULL, *bindTypes = NULL, *attributes = NULL, *bindDataTypes = NULL, *automaticAttributes = NULL, *field = NULL, *columnMap = NULL, *value = NULL, *attributeField = NULL, *success = NULL, *bindType = NULL, *defaultValue = NULL, *sequenceName = NULL, *defaultValues = NULL, *source = NULL, *schema = NULL, *snapshot = NULL, *lastInsertedId = NULL, *manager = NULL, *_0, **_3, *_4$$8 = NULL, *_5$$8 = NULL, *_9$$14 = NULL, *_10$$14 = NULL, *_11$$16 = NULL, *_13$$18 = NULL, *_14$$21, *_15$$21, *_17$$28, *_18$$28, *_20$$31 = NULL, *_21$$31 = NULL; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 4, 0, &metaData, &connection, &table, &identityField); @@ -82827,10 +82477,10 @@ static PHP_METHOD(Phalcon_Mvc_Model, _doLowInsert) { ZEPHIR_INIT_NVAR(columnMap); ZVAL_NULL(columnMap); } - zephir_is_iterable(attributes, &_2, &_1, 0, 0, "phalcon/mvc/model.zep", 2327); + zephir_is_iterable(attributes, &_2, &_1, 0, 0, "phalcon/mvc/model.zep", 2329); for ( - ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS - ; zephir_hash_move_forward_ex(_2, &_1) + ; zend_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS + ; zend_hash_move_forward_ex(_2, &_1) ) { ZEPHIR_GET_HVALUE(field, _3); if (!(zephir_array_isset(automaticAttributes, field))) { @@ -82858,37 +82508,39 @@ static PHP_METHOD(Phalcon_Mvc_Model, _doLowInsert) { _7$$11 = zephir_array_isset(defaultValues, field); } if (_7$$11) { + zephir_array_update_zval(&snapshot, attributeField, &ZEPHIR_GLOBAL(global_null), PH_COPY | PH_SEPARATE); ZEPHIR_CALL_METHOD(&value, connection, "getdefaultvalue", &_8, 0); zephir_check_call_status(); + } else { + zephir_array_update_zval(&snapshot, attributeField, &value, PH_COPY | PH_SEPARATE); } ZEPHIR_OBS_NVAR(bindType); if (!(zephir_array_isset_fetch(&bindType, bindDataTypes, field, 0 TSRMLS_CC))) { - ZEPHIR_INIT_NVAR(_9$$13); - object_init_ex(_9$$13, phalcon_mvc_model_exception_ce); - ZEPHIR_INIT_LNVAR(_10$$13); - ZEPHIR_CONCAT_SVS(_10$$13, "Column '", field, "' have not defined a bind data type"); - ZEPHIR_CALL_METHOD(NULL, _9$$13, "__construct", &_6, 9, _10$$13); + ZEPHIR_INIT_NVAR(_9$$14); + object_init_ex(_9$$14, phalcon_mvc_model_exception_ce); + ZEPHIR_INIT_LNVAR(_10$$14); + ZEPHIR_CONCAT_SVS(_10$$14, "Column '", field, "' have not defined a bind data type"); + ZEPHIR_CALL_METHOD(NULL, _9$$14, "__construct", &_6, 9, _10$$14); zephir_check_call_status(); - zephir_throw_exception_debug(_9$$13, "phalcon/mvc/model.zep", 2300 TSRMLS_CC); + zephir_throw_exception_debug(_9$$14, "phalcon/mvc/model.zep", 2303 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } - zephir_array_append(&fields, field, PH_SEPARATE, "phalcon/mvc/model.zep", 2303); - zephir_array_append(&values, value, PH_SEPARATE, "phalcon/mvc/model.zep", 2303); - zephir_array_append(&bindTypes, bindType, PH_SEPARATE, "phalcon/mvc/model.zep", 2303); - zephir_array_update_zval(&snapshot, attributeField, &value, PH_COPY | PH_SEPARATE); + zephir_array_append(&fields, field, PH_SEPARATE, "phalcon/mvc/model.zep", 2306); + zephir_array_append(&values, value, PH_SEPARATE, "phalcon/mvc/model.zep", 2306); + zephir_array_append(&bindTypes, bindType, PH_SEPARATE, "phalcon/mvc/model.zep", 2306); } else { if (zephir_array_isset(defaultValues, field)) { - ZEPHIR_CALL_METHOD(&_11$$15, connection, "getdefaultvalue", &_12, 0); + ZEPHIR_CALL_METHOD(&_11$$16, connection, "getdefaultvalue", &_12, 0); zephir_check_call_status(); - zephir_array_append(&values, _11$$15, PH_SEPARATE, "phalcon/mvc/model.zep", 2308); + zephir_array_append(&values, _11$$16, PH_SEPARATE, "phalcon/mvc/model.zep", 2310); zephir_array_update_zval(&snapshot, attributeField, &ZEPHIR_GLOBAL(global_null), PH_COPY | PH_SEPARATE); } else { - zephir_array_append(&values, value, PH_SEPARATE, "phalcon/mvc/model.zep", 2314); + zephir_array_append(&values, value, PH_SEPARATE, "phalcon/mvc/model.zep", 2316); zephir_array_update_zval(&snapshot, attributeField, &value, PH_COPY | PH_SEPARATE); } - zephir_array_append(&fields, field, PH_SEPARATE, "phalcon/mvc/model.zep", 2318); - zephir_array_append(&bindTypes, bindSkip, PH_SEPARATE, "phalcon/mvc/model.zep", 2318); + zephir_array_append(&fields, field, PH_SEPARATE, "phalcon/mvc/model.zep", 2320); + zephir_array_append(&bindTypes, bindSkip, PH_SEPARATE, "phalcon/mvc/model.zep", 2320); } } } @@ -82896,22 +82548,22 @@ static PHP_METHOD(Phalcon_Mvc_Model, _doLowInsert) { if (!ZEPHIR_IS_FALSE_IDENTICAL(identityField)) { ZEPHIR_CALL_METHOD(&defaultValue, connection, "getdefaultidvalue", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_13$$17, connection, "useexplicitidvalue", NULL, 0); + ZEPHIR_CALL_METHOD(&_13$$18, connection, "useexplicitidvalue", NULL, 0); zephir_check_call_status(); - useExplicitIdentity = zephir_get_boolval(_13$$17); + useExplicitIdentity = zephir_get_boolval(_13$$18); if (useExplicitIdentity) { - zephir_array_append(&fields, identityField, PH_SEPARATE, "phalcon/mvc/model.zep", 2336); + zephir_array_append(&fields, identityField, PH_SEPARATE, "phalcon/mvc/model.zep", 2338); } if (Z_TYPE_P(columnMap) == IS_ARRAY) { ZEPHIR_OBS_NVAR(attributeField); if (!(zephir_array_isset_fetch(&attributeField, columnMap, identityField, 0 TSRMLS_CC))) { - ZEPHIR_INIT_VAR(_14$$20); - object_init_ex(_14$$20, phalcon_mvc_model_exception_ce); - ZEPHIR_INIT_VAR(_15$$20); - ZEPHIR_CONCAT_SVS(_15$$20, "Identity column '", identityField, "' isn't part of the column map"); - ZEPHIR_CALL_METHOD(NULL, _14$$20, "__construct", &_6, 9, _15$$20); + ZEPHIR_INIT_VAR(_14$$21); + object_init_ex(_14$$21, phalcon_mvc_model_exception_ce); + ZEPHIR_INIT_VAR(_15$$21); + ZEPHIR_CONCAT_SVS(_15$$21, "Identity column '", identityField, "' isn't part of the column map"); + ZEPHIR_CALL_METHOD(NULL, _14$$21, "__construct", &_6, 9, _15$$21); zephir_check_call_status(); - zephir_throw_exception_debug(_14$$20, "phalcon/mvc/model.zep", 2344 TSRMLS_CC); + zephir_throw_exception_debug(_14$$21, "phalcon/mvc/model.zep", 2346 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -82920,38 +82572,38 @@ static PHP_METHOD(Phalcon_Mvc_Model, _doLowInsert) { } ZEPHIR_OBS_NVAR(value); if (zephir_fetch_property_zval(&value, this_ptr, attributeField, PH_SILENT_CC)) { - _16$$22 = Z_TYPE_P(value) == IS_NULL; - if (!(_16$$22)) { - _16$$22 = ZEPHIR_IS_STRING_IDENTICAL(value, ""); + _16$$23 = Z_TYPE_P(value) == IS_NULL; + if (!(_16$$23)) { + _16$$23 = ZEPHIR_IS_STRING_IDENTICAL(value, ""); } - if (_16$$22) { + if (_16$$23) { if (useExplicitIdentity) { - zephir_array_append(&values, defaultValue, PH_SEPARATE, "phalcon/mvc/model.zep", 2357); - zephir_array_append(&bindTypes, bindSkip, PH_SEPARATE, "phalcon/mvc/model.zep", 2357); + zephir_array_append(&values, defaultValue, PH_SEPARATE, "phalcon/mvc/model.zep", 2359); + zephir_array_append(&bindTypes, bindSkip, PH_SEPARATE, "phalcon/mvc/model.zep", 2359); } } else { if (!(useExplicitIdentity)) { - zephir_array_append(&fields, identityField, PH_SEPARATE, "phalcon/mvc/model.zep", 2365); + zephir_array_append(&fields, identityField, PH_SEPARATE, "phalcon/mvc/model.zep", 2367); } ZEPHIR_OBS_NVAR(bindType); if (!(zephir_array_isset_fetch(&bindType, bindDataTypes, identityField, 0 TSRMLS_CC))) { - ZEPHIR_INIT_VAR(_17$$27); - object_init_ex(_17$$27, phalcon_mvc_model_exception_ce); - ZEPHIR_INIT_VAR(_18$$27); - ZEPHIR_CONCAT_SVS(_18$$27, "Identity column '", identityField, "' isn\\'t part of the table columns"); - ZEPHIR_CALL_METHOD(NULL, _17$$27, "__construct", &_6, 9, _18$$27); + ZEPHIR_INIT_VAR(_17$$28); + object_init_ex(_17$$28, phalcon_mvc_model_exception_ce); + ZEPHIR_INIT_VAR(_18$$28); + ZEPHIR_CONCAT_SVS(_18$$28, "Identity column '", identityField, "' isn\\'t part of the table columns"); + ZEPHIR_CALL_METHOD(NULL, _17$$28, "__construct", &_6, 9, _18$$28); zephir_check_call_status(); - zephir_throw_exception_debug(_17$$27, "phalcon/mvc/model.zep", 2372 TSRMLS_CC); + zephir_throw_exception_debug(_17$$28, "phalcon/mvc/model.zep", 2374 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } - zephir_array_append(&values, value, PH_SEPARATE, "phalcon/mvc/model.zep", 2375); - zephir_array_append(&bindTypes, bindType, PH_SEPARATE, "phalcon/mvc/model.zep", 2375); + zephir_array_append(&values, value, PH_SEPARATE, "phalcon/mvc/model.zep", 2377); + zephir_array_append(&bindTypes, bindType, PH_SEPARATE, "phalcon/mvc/model.zep", 2377); } } else { if (useExplicitIdentity) { - zephir_array_append(&values, defaultValue, PH_SEPARATE, "phalcon/mvc/model.zep", 2379); - zephir_array_append(&bindTypes, bindSkip, PH_SEPARATE, "phalcon/mvc/model.zep", 2379); + zephir_array_append(&values, defaultValue, PH_SEPARATE, "phalcon/mvc/model.zep", 2381); + zephir_array_append(&bindTypes, bindSkip, PH_SEPARATE, "phalcon/mvc/model.zep", 2381); } } } @@ -82964,9 +82616,9 @@ static PHP_METHOD(Phalcon_Mvc_Model, _doLowInsert) { if (_19) { ZEPHIR_INIT_VAR(sequenceName); ZVAL_NULL(sequenceName); - ZEPHIR_CALL_METHOD(&_20$$30, connection, "supportsequences", NULL, 0); + ZEPHIR_CALL_METHOD(&_20$$31, connection, "supportsequences", NULL, 0); zephir_check_call_status(); - if (ZEPHIR_IS_TRUE_IDENTICAL(_20$$30)) { + if (ZEPHIR_IS_TRUE_IDENTICAL(_20$$31)) { if ((zephir_method_exists_ex(this_ptr, SS("getsequencename") TSRMLS_CC) == SUCCESS)) { ZEPHIR_CALL_METHOD(&sequenceName, this_ptr, "getsequencename", NULL, 0); zephir_check_call_status(); @@ -82987,9 +82639,9 @@ static PHP_METHOD(Phalcon_Mvc_Model, _doLowInsert) { zephir_check_call_status(); zephir_update_property_zval_zval(this_ptr, attributeField, lastInsertedId TSRMLS_CC); zephir_array_update_zval(&snapshot, attributeField, &lastInsertedId, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(&_21$$30, manager, "iskeepingsnapshots", NULL, 0, this_ptr); + ZEPHIR_CALL_METHOD(&_21$$31, manager, "iskeepingsnapshots", NULL, 0, this_ptr); zephir_check_call_status(); - if (zephir_is_true(_21$$30)) { + if (zephir_is_true(_21$$31)) { zephir_update_property_this(this_ptr, SL("_snapshot"), snapshot TSRMLS_CC); } zephir_update_property_this(this_ptr, SL("_uniqueParams"), ZEPHIR_GLOBAL(global_null) TSRMLS_CC); @@ -83051,10 +82703,10 @@ static PHP_METHOD(Phalcon_Mvc_Model, _doLowUpdate) { ZEPHIR_INIT_NVAR(columnMap); ZVAL_NULL(columnMap); } - zephir_is_iterable(nonPrimary, &_3, &_2, 0, 0, "phalcon/mvc/model.zep", 2596); + zephir_is_iterable(nonPrimary, &_3, &_2, 0, 0, "phalcon/mvc/model.zep", 2598); for ( - ; zephir_hash_get_current_data_ex(_3, (void**) &_4, &_2) == SUCCESS - ; zephir_hash_move_forward_ex(_3, &_2) + ; zend_hash_get_current_data_ex(_3, (void**) &_4, &_2) == SUCCESS + ; zend_hash_move_forward_ex(_3, &_2) ) { ZEPHIR_GET_HVALUE(field, _4); if (!(zephir_array_isset(automaticAttributes, field))) { @@ -83066,7 +82718,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _doLowUpdate) { ZEPHIR_CONCAT_SVS(_6$$9, "Column '", field, "' have not defined a bind data type"); ZEPHIR_CALL_METHOD(NULL, _5$$9, "__construct", &_7, 9, _6$$9); zephir_check_call_status(); - zephir_throw_exception_debug(_5$$9, "phalcon/mvc/model.zep", 2488 TSRMLS_CC); + zephir_throw_exception_debug(_5$$9, "phalcon/mvc/model.zep", 2490 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -83079,7 +82731,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _doLowUpdate) { ZEPHIR_CONCAT_SVS(_9$$11, "Column '", field, "' isn't part of the column map"); ZEPHIR_CALL_METHOD(NULL, _8$$11, "__construct", &_7, 9, _9$$11); zephir_check_call_status(); - zephir_throw_exception_debug(_8$$11, "phalcon/mvc/model.zep", 2496 TSRMLS_CC); + zephir_throw_exception_debug(_8$$11, "phalcon/mvc/model.zep", 2498 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -83089,9 +82741,9 @@ static PHP_METHOD(Phalcon_Mvc_Model, _doLowUpdate) { ZEPHIR_OBS_NVAR(value); if (zephir_fetch_property_zval(&value, this_ptr, attributeField, PH_SILENT_CC)) { if (!(useDynamicUpdate)) { - zephir_array_append(&fields, field, PH_SEPARATE, "phalcon/mvc/model.zep", 2512); - zephir_array_append(&values, value, PH_SEPARATE, "phalcon/mvc/model.zep", 2512); - zephir_array_append(&bindTypes, bindType, PH_SEPARATE, "phalcon/mvc/model.zep", 2513); + zephir_array_append(&fields, field, PH_SEPARATE, "phalcon/mvc/model.zep", 2514); + zephir_array_append(&values, value, PH_SEPARATE, "phalcon/mvc/model.zep", 2514); + zephir_array_append(&bindTypes, bindType, PH_SEPARATE, "phalcon/mvc/model.zep", 2515); } else { ZEPHIR_OBS_NVAR(snapshotValue); if (!(zephir_array_isset_fetch(&snapshotValue, snapshot, attributeField, 0 TSRMLS_CC))) { @@ -83111,7 +82763,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _doLowUpdate) { ZEPHIR_CONCAT_SVS(_11$$22, "Column '", field, "' have not defined a data type"); ZEPHIR_CALL_METHOD(NULL, _10$$22, "__construct", &_7, 9, _11$$22); zephir_check_call_status(); - zephir_throw_exception_debug(_10$$22, "phalcon/mvc/model.zep", 2538 TSRMLS_CC); + zephir_throw_exception_debug(_10$$22, "phalcon/mvc/model.zep", 2540 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -83145,17 +82797,17 @@ static PHP_METHOD(Phalcon_Mvc_Model, _doLowUpdate) { } } if (changed) { - zephir_array_append(&fields, field, PH_SEPARATE, "phalcon/mvc/model.zep", 2580); - zephir_array_append(&values, value, PH_SEPARATE, "phalcon/mvc/model.zep", 2580); - zephir_array_append(&bindTypes, bindType, PH_SEPARATE, "phalcon/mvc/model.zep", 2581); + zephir_array_append(&fields, field, PH_SEPARATE, "phalcon/mvc/model.zep", 2582); + zephir_array_append(&values, value, PH_SEPARATE, "phalcon/mvc/model.zep", 2582); + zephir_array_append(&bindTypes, bindType, PH_SEPARATE, "phalcon/mvc/model.zep", 2583); } } zephir_array_update_zval(&newSnapshot, attributeField, &value, PH_COPY | PH_SEPARATE); } else { zephir_array_update_zval(&newSnapshot, attributeField, &ZEPHIR_GLOBAL(global_null), PH_COPY | PH_SEPARATE); - zephir_array_append(&fields, field, PH_SEPARATE, "phalcon/mvc/model.zep", 2588); - zephir_array_append(&values, ZEPHIR_GLOBAL(global_null), PH_SEPARATE, "phalcon/mvc/model.zep", 2588); - zephir_array_append(&bindTypes, bindSkip, PH_SEPARATE, "phalcon/mvc/model.zep", 2588); + zephir_array_append(&fields, field, PH_SEPARATE, "phalcon/mvc/model.zep", 2590); + zephir_array_append(&values, ZEPHIR_GLOBAL(global_null), PH_SEPARATE, "phalcon/mvc/model.zep", 2590); + zephir_array_append(&bindTypes, bindSkip, PH_SEPARATE, "phalcon/mvc/model.zep", 2590); } } } @@ -83172,15 +82824,15 @@ static PHP_METHOD(Phalcon_Mvc_Model, _doLowUpdate) { ZEPHIR_CALL_METHOD(&primaryKeys, metaData, "getprimarykeyattributes", NULL, 0, this_ptr); zephir_check_call_status(); if (!(zephir_fast_count_int(primaryKeys TSRMLS_CC))) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "A primary key must be defined in the model in order to perform the operation", "phalcon/mvc/model.zep", 2615); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "A primary key must be defined in the model in order to perform the operation", "phalcon/mvc/model.zep", 2617); return; } ZEPHIR_INIT_NVAR(uniqueParams); array_init(uniqueParams); - zephir_is_iterable(primaryKeys, &_18$$31, &_17$$31, 0, 0, "phalcon/mvc/model.zep", 2640); + zephir_is_iterable(primaryKeys, &_18$$31, &_17$$31, 0, 0, "phalcon/mvc/model.zep", 2642); for ( - ; zephir_hash_get_current_data_ex(_18$$31, (void**) &_19$$31, &_17$$31) == SUCCESS - ; zephir_hash_move_forward_ex(_18$$31, &_17$$31) + ; zend_hash_get_current_data_ex(_18$$31, (void**) &_19$$31, &_17$$31) == SUCCESS + ; zend_hash_move_forward_ex(_18$$31, &_17$$31) ) { ZEPHIR_GET_HVALUE(field, _19$$31); if (Z_TYPE_P(columnMap) == IS_ARRAY) { @@ -83192,7 +82844,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _doLowUpdate) { ZEPHIR_CONCAT_SVS(_21$$35, "Column '", field, "' isn't part of the column map"); ZEPHIR_CALL_METHOD(NULL, _20$$35, "__construct", &_7, 9, _21$$35); zephir_check_call_status(); - zephir_throw_exception_debug(_20$$35, "phalcon/mvc/model.zep", 2626 TSRMLS_CC); + zephir_throw_exception_debug(_20$$35, "phalcon/mvc/model.zep", 2628 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -83202,10 +82854,10 @@ static PHP_METHOD(Phalcon_Mvc_Model, _doLowUpdate) { ZEPHIR_OBS_NVAR(value); if (zephir_fetch_property_zval(&value, this_ptr, attributeField, PH_SILENT_CC)) { zephir_array_update_zval(&newSnapshot, attributeField, &value, PH_COPY | PH_SEPARATE); - zephir_array_append(&uniqueParams, value, PH_SEPARATE, "phalcon/mvc/model.zep", 2634); + zephir_array_append(&uniqueParams, value, PH_SEPARATE, "phalcon/mvc/model.zep", 2636); } else { zephir_array_update_zval(&newSnapshot, attributeField, &ZEPHIR_GLOBAL(global_null), PH_COPY | PH_SEPARATE); - zephir_array_append(&uniqueParams, ZEPHIR_GLOBAL(global_null), PH_SEPARATE, "phalcon/mvc/model.zep", 2637); + zephir_array_append(&uniqueParams, ZEPHIR_GLOBAL(global_null), PH_SEPARATE, "phalcon/mvc/model.zep", 2639); } } } @@ -83266,10 +82918,10 @@ static PHP_METHOD(Phalcon_Mvc_Model, _preSaveRelatedRecords) { ZEPHIR_CALL_METHOD(&_1, this_ptr, "getmodelsmanager", NULL, 0); zephir_check_call_status(); ZEPHIR_CPY_WRT(manager, _1); - zephir_is_iterable(related, &_3, &_2, 0, 0, "phalcon/mvc/model.zep", 2756); + zephir_is_iterable(related, &_3, &_2, 0, 0, "phalcon/mvc/model.zep", 2758); for ( - ; zephir_hash_get_current_data_ex(_3, (void**) &_4, &_2) == SUCCESS - ; zephir_hash_move_forward_ex(_3, &_2) + ; zend_hash_get_current_data_ex(_3, (void**) &_4, &_2) == SUCCESS + ; zend_hash_move_forward_ex(_3, &_2) ) { ZEPHIR_GET_HMKEY(name, _3, _2); ZEPHIR_GET_HVALUE(record, _4); @@ -83289,7 +82941,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _preSaveRelatedRecords) { } ZEPHIR_CALL_METHOD(NULL, connection, "rollback", &_8, 0, _7$$6); zephir_check_call_status(); - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Only objects can be stored as part of belongs-to relations", "phalcon/mvc/model.zep", 2705); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Only objects can be stored as part of belongs-to relations", "phalcon/mvc/model.zep", 2707); return; } ZEPHIR_CALL_METHOD(&columns, relation, "getfields", NULL, 0); @@ -83307,7 +82959,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _preSaveRelatedRecords) { } ZEPHIR_CALL_METHOD(NULL, connection, "rollback", &_10, 0, _9$$7); zephir_check_call_status(); - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Not implemented", "phalcon/mvc/model.zep", 2714); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Not implemented", "phalcon/mvc/model.zep", 2716); return; } ZEPHIR_CALL_METHOD(&_11$$5, record, "save", NULL, 0); @@ -83315,10 +82967,10 @@ static PHP_METHOD(Phalcon_Mvc_Model, _preSaveRelatedRecords) { if (!(zephir_is_true(_11$$5))) { ZEPHIR_CALL_METHOD(&_12$$8, record, "getmessages", NULL, 0); zephir_check_call_status(); - zephir_is_iterable(_12$$8, &_14$$8, &_13$$8, 0, 0, "phalcon/mvc/model.zep", 2743); + zephir_is_iterable(_12$$8, &_14$$8, &_13$$8, 0, 0, "phalcon/mvc/model.zep", 2745); for ( - ; zephir_hash_get_current_data_ex(_14$$8, (void**) &_15$$8, &_13$$8) == SUCCESS - ; zephir_hash_move_forward_ex(_14$$8, &_13$$8) + ; zend_hash_get_current_data_ex(_14$$8, (void**) &_15$$8, &_13$$8) == SUCCESS + ; zend_hash_move_forward_ex(_14$$8, &_13$$8) ) { ZEPHIR_GET_HVALUE(message, _15$$8); if (Z_TYPE_P(message) == IS_OBJECT) { @@ -83368,10 +83020,10 @@ static PHP_METHOD(Phalcon_Mvc_Model, _postSaveRelatedRecords) { ZEPHIR_CALL_METHOD(&_0, this_ptr, "getmodelsmanager", NULL, 0); zephir_check_call_status(); ZEPHIR_CPY_WRT(manager, _0); - zephir_is_iterable(related, &_2, &_1, 0, 0, "phalcon/mvc/model.zep", 2947); + zephir_is_iterable(related, &_2, &_1, 0, 0, "phalcon/mvc/model.zep", 2949); for ( - ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS - ; zephir_hash_move_forward_ex(_2, &_1) + ; zend_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS + ; zend_hash_move_forward_ex(_2, &_1) ) { ZEPHIR_GET_HMKEY(name, _2, _1); ZEPHIR_GET_HVALUE(record, _3); @@ -83397,7 +83049,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _postSaveRelatedRecords) { } ZEPHIR_CALL_METHOD(NULL, connection, "rollback", &_9, 0, _8$$6); zephir_check_call_status(); - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Only objects/arrays can be stored as part of has-many/has-one/has-many-to-many relations", "phalcon/mvc/model.zep", 2795); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Only objects/arrays can be stored as part of has-many/has-one/has-many-to-many relations", "phalcon/mvc/model.zep", 2797); return; } ZEPHIR_CALL_METHOD(&columns, relation, "getfields", NULL, 0); @@ -83415,7 +83067,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _postSaveRelatedRecords) { } ZEPHIR_CALL_METHOD(NULL, connection, "rollback", &_11, 0, _10$$7); zephir_check_call_status(); - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Not implemented", "phalcon/mvc/model.zep", 2804); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Not implemented", "phalcon/mvc/model.zep", 2806); return; } if (Z_TYPE_P(record) == IS_OBJECT) { @@ -83441,7 +83093,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _postSaveRelatedRecords) { ZEPHIR_CONCAT_SVS(_15$$10, "The column '", columns, "' needs to be present in the model"); ZEPHIR_CALL_METHOD(NULL, _14$$10, "__construct", &_16, 9, _15$$10); zephir_check_call_status(); - zephir_throw_exception_debug(_14$$10, "phalcon/mvc/model.zep", 2818 TSRMLS_CC); + zephir_throw_exception_debug(_14$$10, "phalcon/mvc/model.zep", 2820 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -83456,10 +83108,10 @@ static PHP_METHOD(Phalcon_Mvc_Model, _postSaveRelatedRecords) { ZEPHIR_CALL_METHOD(&intermediateReferencedFields, relation, "getintermediatereferencedfields", NULL, 0); zephir_check_call_status(); } - zephir_is_iterable(relatedRecords, &_19$$4, &_18$$4, 0, 0, "phalcon/mvc/model.zep", 2933); + zephir_is_iterable(relatedRecords, &_19$$4, &_18$$4, 0, 0, "phalcon/mvc/model.zep", 2935); for ( - ; zephir_hash_get_current_data_ex(_19$$4, (void**) &_20$$4, &_18$$4) == SUCCESS - ; zephir_hash_move_forward_ex(_19$$4, &_18$$4) + ; zend_hash_get_current_data_ex(_19$$4, (void**) &_20$$4, &_18$$4) == SUCCESS + ; zend_hash_move_forward_ex(_19$$4, &_18$$4) ) { ZEPHIR_GET_HVALUE(recordAfter, _20$$4); if (!(isThrough)) { @@ -83471,10 +83123,10 @@ static PHP_METHOD(Phalcon_Mvc_Model, _postSaveRelatedRecords) { if (!(zephir_is_true(_21$$12))) { ZEPHIR_CALL_METHOD(&_22$$14, recordAfter, "getmessages", NULL, 0); zephir_check_call_status(); - zephir_is_iterable(_22$$14, &_24$$14, &_23$$14, 0, 0, "phalcon/mvc/model.zep", 2875); + zephir_is_iterable(_22$$14, &_24$$14, &_23$$14, 0, 0, "phalcon/mvc/model.zep", 2877); for ( - ; zephir_hash_get_current_data_ex(_24$$14, (void**) &_25$$14, &_23$$14) == SUCCESS - ; zephir_hash_move_forward_ex(_24$$14, &_23$$14) + ; zend_hash_get_current_data_ex(_24$$14, (void**) &_25$$14, &_23$$14) == SUCCESS + ; zend_hash_move_forward_ex(_24$$14, &_23$$14) ) { ZEPHIR_GET_HVALUE(message, _25$$14); if (Z_TYPE_P(message) == IS_OBJECT) { @@ -83510,10 +83162,10 @@ static PHP_METHOD(Phalcon_Mvc_Model, _postSaveRelatedRecords) { if (!(zephir_is_true(_31$$17))) { ZEPHIR_CALL_METHOD(&_32$$18, intermediateModel, "getmessages", NULL, 0); zephir_check_call_status(); - zephir_is_iterable(_32$$18, &_34$$18, &_33$$18, 0, 0, "phalcon/mvc/model.zep", 2927); + zephir_is_iterable(_32$$18, &_34$$18, &_33$$18, 0, 0, "phalcon/mvc/model.zep", 2929); for ( - ; zephir_hash_get_current_data_ex(_34$$18, (void**) &_35$$18, &_33$$18) == SUCCESS - ; zephir_hash_move_forward_ex(_34$$18, &_33$$18) + ; zend_hash_get_current_data_ex(_34$$18, (void**) &_35$$18, &_33$$18) == SUCCESS + ; zend_hash_move_forward_ex(_34$$18, &_33$$18) ) { ZEPHIR_GET_HVALUE(message, _35$$18); if (Z_TYPE_P(message) == IS_OBJECT) { @@ -83551,7 +83203,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _postSaveRelatedRecords) { ZEPHIR_CONCAT_SVSVS(_41$$22, "There are no defined relations for the model '", className, "' using alias '", name, "'"); ZEPHIR_CALL_METHOD(NULL, _40$$22, "__construct", &_16, 9, _41$$22); zephir_check_call_status(); - zephir_throw_exception_debug(_40$$22, "phalcon/mvc/model.zep", 2939 TSRMLS_CC); + zephir_throw_exception_debug(_40$$22, "phalcon/mvc/model.zep", 2941 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -83661,7 +83313,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, save) { zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, _9$$12, "__construct", NULL, 319, this_ptr, _10$$12); zephir_check_call_status(); - zephir_throw_exception_debug(_9$$12, "phalcon/mvc/model.zep", 3061 TSRMLS_CC); + zephir_throw_exception_debug(_9$$12, "phalcon/mvc/model.zep", 3063 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -83853,13 +83505,13 @@ static PHP_METHOD(Phalcon_Mvc_Model, delete) { ZVAL_NULL(columnMap); } if (!(zephir_fast_count_int(primaryKeys TSRMLS_CC))) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "A primary key must be defined in the model in order to perform the operation", "phalcon/mvc/model.zep", 3262); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "A primary key must be defined in the model in order to perform the operation", "phalcon/mvc/model.zep", 3264); return; } - zephir_is_iterable(primaryKeys, &_4, &_3, 0, 0, "phalcon/mvc/model.zep", 3305); + zephir_is_iterable(primaryKeys, &_4, &_3, 0, 0, "phalcon/mvc/model.zep", 3307); for ( - ; zephir_hash_get_current_data_ex(_4, (void**) &_5, &_3) == SUCCESS - ; zephir_hash_move_forward_ex(_4, &_3) + ; zend_hash_get_current_data_ex(_4, (void**) &_5, &_3) == SUCCESS + ; zend_hash_move_forward_ex(_4, &_3) ) { ZEPHIR_GET_HVALUE(primaryKey, _5); ZEPHIR_OBS_NVAR(bindType); @@ -83870,7 +83522,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, delete) { ZEPHIR_CONCAT_SVS(_7$$9, "Column '", primaryKey, "' have not defined a bind data type"); ZEPHIR_CALL_METHOD(NULL, _6$$9, "__construct", &_8, 9, _7$$9); zephir_check_call_status(); - zephir_throw_exception_debug(_6$$9, "phalcon/mvc/model.zep", 3274 TSRMLS_CC); + zephir_throw_exception_debug(_6$$9, "phalcon/mvc/model.zep", 3276 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -83883,7 +83535,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, delete) { ZEPHIR_CONCAT_SVS(_10$$11, "Column '", primaryKey, "' isn't part of the column map"); ZEPHIR_CALL_METHOD(NULL, _9$$11, "__construct", &_8, 9, _10$$11); zephir_check_call_status(); - zephir_throw_exception_debug(_9$$11, "phalcon/mvc/model.zep", 3282 TSRMLS_CC); + zephir_throw_exception_debug(_9$$11, "phalcon/mvc/model.zep", 3284 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -83898,17 +83550,17 @@ static PHP_METHOD(Phalcon_Mvc_Model, delete) { ZEPHIR_CONCAT_SVS(_12$$13, "Cannot delete the record because the primary key attribute: '", attributeField, "' wasn't set"); ZEPHIR_CALL_METHOD(NULL, _11$$13, "__construct", &_8, 9, _12$$13); zephir_check_call_status(); - zephir_throw_exception_debug(_11$$13, "phalcon/mvc/model.zep", 3294 TSRMLS_CC); + zephir_throw_exception_debug(_11$$13, "phalcon/mvc/model.zep", 3296 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } - zephir_array_append(&values, value, PH_SEPARATE, "phalcon/mvc/model.zep", 3300); + zephir_array_append(&values, value, PH_SEPARATE, "phalcon/mvc/model.zep", 3302); ZEPHIR_CALL_METHOD(&_13$$8, writeConnection, "escapeidentifier", &_14, 0, primaryKey); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_15$$8); ZEPHIR_CONCAT_VS(_15$$8, _13$$8, " = ?"); - zephir_array_append(&conditions, _15$$8, PH_SEPARATE, "phalcon/mvc/model.zep", 3301); - zephir_array_append(&bindTypes, bindType, PH_SEPARATE, "phalcon/mvc/model.zep", 3302); + zephir_array_append(&conditions, _15$$8, PH_SEPARATE, "phalcon/mvc/model.zep", 3303); + zephir_array_append(&bindTypes, bindType, PH_SEPARATE, "phalcon/mvc/model.zep", 3304); } if (ZEPHIR_GLOBAL(orm).events) { if (0) { @@ -83989,7 +83641,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, refresh) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_dirtyState"), PH_NOISY_CC); if (!ZEPHIR_IS_LONG(_0, 0)) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The record cannot be refreshed because it does not exist or is deleted", "phalcon/mvc/model.zep", 3380); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The record cannot be refreshed because it does not exist or is deleted", "phalcon/mvc/model.zep", 3382); return; } ZEPHIR_CALL_METHOD(&metaData, this_ptr, "getmodelsmetadata", NULL, 0); @@ -84016,7 +83668,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, refresh) { ZEPHIR_CALL_METHOD(&_2$$6, this_ptr, "_exists", NULL, 0, metaData, readConnection, table); zephir_check_call_status(); if (!(zephir_is_true(_2$$6))) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The record cannot be refreshed because it does not exist or is deleted", "phalcon/mvc/model.zep", 3403); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The record cannot be refreshed because it does not exist or is deleted", "phalcon/mvc/model.zep", 3405); return; } ZEPHIR_OBS_NVAR(uniqueKey); @@ -84025,23 +83677,23 @@ static PHP_METHOD(Phalcon_Mvc_Model, refresh) { ZEPHIR_OBS_VAR(uniqueParams); zephir_read_property_this(&uniqueParams, this_ptr, SL("_uniqueParams"), PH_NOISY_CC); if (Z_TYPE_P(uniqueParams) != IS_ARRAY) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The record cannot be refreshed because it does not exist or is deleted", "phalcon/mvc/model.zep", 3411); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The record cannot be refreshed because it does not exist or is deleted", "phalcon/mvc/model.zep", 3413); return; } ZEPHIR_INIT_VAR(fields); array_init(fields); ZEPHIR_CALL_METHOD(&_3, metaData, "getattributes", NULL, 0, this_ptr); zephir_check_call_status(); - zephir_is_iterable(_3, &_5, &_4, 0, 0, "phalcon/mvc/model.zep", 3425); + zephir_is_iterable(_3, &_5, &_4, 0, 0, "phalcon/mvc/model.zep", 3427); for ( - ; zephir_hash_get_current_data_ex(_5, (void**) &_6, &_4) == SUCCESS - ; zephir_hash_move_forward_ex(_5, &_4) + ; zend_hash_get_current_data_ex(_5, (void**) &_6, &_4) == SUCCESS + ; zend_hash_move_forward_ex(_5, &_4) ) { ZEPHIR_GET_HVALUE(attribute, _6); ZEPHIR_INIT_NVAR(_7$$9); zephir_create_array(_7$$9, 1, 0 TSRMLS_CC); zephir_array_fast_append(_7$$9, attribute); - zephir_array_append(&fields, _7$$9, PH_SEPARATE, "phalcon/mvc/model.zep", 3419); + zephir_array_append(&fields, _7$$9, PH_SEPARATE, "phalcon/mvc/model.zep", 3421); } ZEPHIR_CALL_METHOD(&dialect, readConnection, "getdialect", NULL, 0); zephir_check_call_status(); @@ -84101,11 +83753,11 @@ static PHP_METHOD(Phalcon_Mvc_Model, readAttribute) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &attribute_param); - if (unlikely(Z_TYPE_P(attribute_param) != IS_STRING && Z_TYPE_P(attribute_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(attribute_param) != IS_STRING && Z_TYPE_P(attribute_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'attribute' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(attribute_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(attribute_param) == IS_STRING)) { zephir_get_strval(attribute, attribute_param); } else { ZEPHIR_INIT_VAR(attribute); @@ -84130,11 +83782,11 @@ static PHP_METHOD(Phalcon_Mvc_Model, writeAttribute) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &attribute_param, &value); - if (unlikely(Z_TYPE_P(attribute_param) != IS_STRING && Z_TYPE_P(attribute_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(attribute_param) != IS_STRING && Z_TYPE_P(attribute_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'attribute' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(attribute_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(attribute_param) == IS_STRING)) { zephir_get_strval(attribute, attribute_param); } else { ZEPHIR_INIT_VAR(attribute); @@ -84183,10 +83835,10 @@ static PHP_METHOD(Phalcon_Mvc_Model, skipAttributesOnCreate) { ZEPHIR_INIT_VAR(keysAttributes); array_init(keysAttributes); - zephir_is_iterable(attributes, &_1, &_0, 0, 0, "phalcon/mvc/model.zep", 3539); + zephir_is_iterable(attributes, &_1, &_0, 0, 0, "phalcon/mvc/model.zep", 3541); for ( - ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS - ; zephir_hash_move_forward_ex(_1, &_0) + ; zend_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS + ; zend_hash_move_forward_ex(_1, &_0) ) { ZEPHIR_GET_HVALUE(attribute, _2); zephir_array_update_zval(&keysAttributes, attribute, &ZEPHIR_GLOBAL(global_null), PH_COPY | PH_SEPARATE); @@ -84215,10 +83867,10 @@ static PHP_METHOD(Phalcon_Mvc_Model, skipAttributesOnUpdate) { ZEPHIR_INIT_VAR(keysAttributes); array_init(keysAttributes); - zephir_is_iterable(attributes, &_1, &_0, 0, 0, "phalcon/mvc/model.zep", 3571); + zephir_is_iterable(attributes, &_1, &_0, 0, 0, "phalcon/mvc/model.zep", 3573); for ( - ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS - ; zephir_hash_move_forward_ex(_1, &_0) + ; zend_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS + ; zend_hash_move_forward_ex(_1, &_0) ) { ZEPHIR_GET_HVALUE(attribute, _2); zephir_array_update_zval(&keysAttributes, attribute, &ZEPHIR_GLOBAL(global_null), PH_COPY | PH_SEPARATE); @@ -84247,10 +83899,10 @@ static PHP_METHOD(Phalcon_Mvc_Model, allowEmptyStringValues) { ZEPHIR_INIT_VAR(keysAttributes); array_init(keysAttributes); - zephir_is_iterable(attributes, &_1, &_0, 0, 0, "phalcon/mvc/model.zep", 3603); + zephir_is_iterable(attributes, &_1, &_0, 0, 0, "phalcon/mvc/model.zep", 3605); for ( - ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS - ; zephir_hash_move_forward_ex(_1, &_0) + ; zend_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS + ; zend_hash_move_forward_ex(_1, &_0) ) { ZEPHIR_GET_HVALUE(attribute, _2); zephir_array_update_zval(&keysAttributes, attribute, &ZEPHIR_GLOBAL(global_null), PH_COPY | PH_SEPARATE); @@ -84272,11 +83924,11 @@ static PHP_METHOD(Phalcon_Mvc_Model, hasOne) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 1, &fields, &referenceModel_param, &referencedFields, &options); - if (unlikely(Z_TYPE_P(referenceModel_param) != IS_STRING && Z_TYPE_P(referenceModel_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(referenceModel_param) != IS_STRING && Z_TYPE_P(referenceModel_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'referenceModel' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(referenceModel_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(referenceModel_param) == IS_STRING)) { zephir_get_strval(referenceModel, referenceModel_param); } else { ZEPHIR_INIT_VAR(referenceModel); @@ -84303,11 +83955,11 @@ static PHP_METHOD(Phalcon_Mvc_Model, belongsTo) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 1, &fields, &referenceModel_param, &referencedFields, &options); - if (unlikely(Z_TYPE_P(referenceModel_param) != IS_STRING && Z_TYPE_P(referenceModel_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(referenceModel_param) != IS_STRING && Z_TYPE_P(referenceModel_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'referenceModel' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(referenceModel_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(referenceModel_param) == IS_STRING)) { zephir_get_strval(referenceModel, referenceModel_param); } else { ZEPHIR_INIT_VAR(referenceModel); @@ -84334,11 +83986,11 @@ static PHP_METHOD(Phalcon_Mvc_Model, hasMany) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 1, &fields, &referenceModel_param, &referencedFields, &options); - if (unlikely(Z_TYPE_P(referenceModel_param) != IS_STRING && Z_TYPE_P(referenceModel_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(referenceModel_param) != IS_STRING && Z_TYPE_P(referenceModel_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'referenceModel' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(referenceModel_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(referenceModel_param) == IS_STRING)) { zephir_get_strval(referenceModel, referenceModel_param); } else { ZEPHIR_INIT_VAR(referenceModel); @@ -84365,21 +84017,21 @@ static PHP_METHOD(Phalcon_Mvc_Model, hasManyToMany) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 6, 1, &fields, &intermediateModel_param, &intermediateFields, &intermediateReferencedFields, &referenceModel_param, &referencedFields, &options); - if (unlikely(Z_TYPE_P(intermediateModel_param) != IS_STRING && Z_TYPE_P(intermediateModel_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(intermediateModel_param) != IS_STRING && Z_TYPE_P(intermediateModel_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'intermediateModel' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(intermediateModel_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(intermediateModel_param) == IS_STRING)) { zephir_get_strval(intermediateModel, intermediateModel_param); } else { ZEPHIR_INIT_VAR(intermediateModel); ZVAL_EMPTY_STRING(intermediateModel); } - if (unlikely(Z_TYPE_P(referenceModel_param) != IS_STRING && Z_TYPE_P(referenceModel_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(referenceModel_param) != IS_STRING && Z_TYPE_P(referenceModel_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'referenceModel' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(referenceModel_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(referenceModel_param) == IS_STRING)) { zephir_get_strval(referenceModel, referenceModel_param); } else { ZEPHIR_INIT_VAR(referenceModel); @@ -84460,10 +84112,10 @@ static PHP_METHOD(Phalcon_Mvc_Model, setSnapshotData) { if (Z_TYPE_P(columnMap) == IS_ARRAY) { ZEPHIR_INIT_VAR(snapshot); array_init(snapshot); - zephir_is_iterable(data, &_1$$3, &_0$$3, 0, 0, "phalcon/mvc/model.zep", 3828); + zephir_is_iterable(data, &_1$$3, &_0$$3, 0, 0, "phalcon/mvc/model.zep", 3830); for ( - ; zephir_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_1$$3, &_0$$3) + ; zend_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS + ; zend_hash_move_forward_ex(_1$$3, &_0$$3) ) { ZEPHIR_GET_HMKEY(key, _1$$3, _0$$3); ZEPHIR_GET_HVALUE(value, _2$$3); @@ -84479,7 +84131,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, setSnapshotData) { ZEPHIR_CONCAT_SVS(_4$$7, "Column '", key, "' doesn't make part of the column map"); ZEPHIR_CALL_METHOD(NULL, _3$$7, "__construct", &_5, 9, _4$$7); zephir_check_call_status(); - zephir_throw_exception_debug(_3$$7, "phalcon/mvc/model.zep", 3810 TSRMLS_CC); + zephir_throw_exception_debug(_3$$7, "phalcon/mvc/model.zep", 3812 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } else { @@ -84496,7 +84148,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, setSnapshotData) { ZEPHIR_CONCAT_SVS(_7$$11, "Column '", key, "' doesn't make part of the column map"); ZEPHIR_CALL_METHOD(NULL, _6$$11, "__construct", &_5, 9, _7$$11); zephir_check_call_status(); - zephir_throw_exception_debug(_6$$11, "phalcon/mvc/model.zep", 3819 TSRMLS_CC); + zephir_throw_exception_debug(_6$$11, "phalcon/mvc/model.zep", 3821 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } else { @@ -84566,12 +84218,12 @@ static PHP_METHOD(Phalcon_Mvc_Model, getChangedFields) { ZEPHIR_OBS_VAR(snapshot); zephir_read_property_this(&snapshot, this_ptr, SL("_snapshot"), PH_NOISY_CC); if (Z_TYPE_P(snapshot) != IS_ARRAY) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The record doesn't have a valid data snapshot", "phalcon/mvc/model.zep", 3896); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The record doesn't have a valid data snapshot", "phalcon/mvc/model.zep", 3898); return; } _0 = zephir_fetch_nproperty_this(this_ptr, SL("_dirtyState"), PH_NOISY_CC); if (!ZEPHIR_IS_LONG(_0, 0)) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Change checking cannot be performed because the object has not been persisted or is deleted", "phalcon/mvc/model.zep", 3903); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Change checking cannot be performed because the object has not been persisted or is deleted", "phalcon/mvc/model.zep", 3905); return; } ZEPHIR_CALL_METHOD(&metaData, this_ptr, "getmodelsmetadata", NULL, 0); @@ -84587,25 +84239,25 @@ static PHP_METHOD(Phalcon_Mvc_Model, getChangedFields) { ZEPHIR_INIT_VAR(changed); array_init(changed); ZEPHIR_INIT_VAR(_1); - zephir_is_iterable(allAttributes, &_3, &_2, 0, 0, "phalcon/mvc/model.zep", 3956); + zephir_is_iterable(allAttributes, &_3, &_2, 0, 0, "phalcon/mvc/model.zep", 3958); for ( - ; zephir_hash_get_current_data_ex(_3, (void**) &_4, &_2) == SUCCESS - ; zephir_hash_move_forward_ex(_3, &_2) + ; zend_hash_get_current_data_ex(_3, (void**) &_4, &_2) == SUCCESS + ; zend_hash_move_forward_ex(_3, &_2) ) { ZEPHIR_GET_HMKEY(name, _3, _2); ZEPHIR_GET_HVALUE(_1, _4); if (!(zephir_array_isset(snapshot, name))) { - zephir_array_append(&changed, name, PH_SEPARATE, "phalcon/mvc/model.zep", 3935); + zephir_array_append(&changed, name, PH_SEPARATE, "phalcon/mvc/model.zep", 3937); continue; } ZEPHIR_OBS_NVAR(value); if (!(zephir_fetch_property_zval(&value, this_ptr, name, PH_SILENT_CC))) { - zephir_array_append(&changed, name, PH_SEPARATE, "phalcon/mvc/model.zep", 3943); + zephir_array_append(&changed, name, PH_SEPARATE, "phalcon/mvc/model.zep", 3945); continue; } - zephir_array_fetch(&_5$$7, snapshot, name, PH_NOISY | PH_READONLY, "phalcon/mvc/model.zep", 3950 TSRMLS_CC); + zephir_array_fetch(&_5$$7, snapshot, name, PH_NOISY | PH_READONLY, "phalcon/mvc/model.zep", 3952 TSRMLS_CC); if (!ZEPHIR_IS_IDENTICAL(value, _5$$7)) { - zephir_array_append(&changed, name, PH_SEPARATE, "phalcon/mvc/model.zep", 3951); + zephir_array_append(&changed, name, PH_SEPARATE, "phalcon/mvc/model.zep", 3953); continue; } } @@ -84667,7 +84319,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, getRelated) { ZEPHIR_CONCAT_SVSVS(_3$$3, "There is no defined relations for the model '", className, "' using alias '", alias, "'"); ZEPHIR_CALL_METHOD(NULL, _2$$3, "__construct", NULL, 9, _3$$3); zephir_check_call_status(); - zephir_throw_exception_debug(_2$$3, "phalcon/mvc/model.zep", 3999 TSRMLS_CC); + zephir_throw_exception_debug(_2$$3, "phalcon/mvc/model.zep", 4001 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -84688,21 +84340,21 @@ static PHP_METHOD(Phalcon_Mvc_Model, _getRelatedRecords) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &modelName_param, &method_param, &arguments); - if (unlikely(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'modelName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(modelName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(modelName_param) == IS_STRING)) { zephir_get_strval(modelName, modelName_param); } else { ZEPHIR_INIT_VAR(modelName); ZVAL_EMPTY_STRING(modelName); } - if (unlikely(Z_TYPE_P(method_param) != IS_STRING && Z_TYPE_P(method_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(method_param) != IS_STRING && Z_TYPE_P(method_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'method' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(method_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(method_param) == IS_STRING)) { zephir_get_strval(method, method_param); } else { ZEPHIR_INIT_VAR(method); @@ -84795,7 +84447,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _invokeFinder) { ZEPHIR_CONCAT_SVS(_4$$7, "The static method '", method, "' requires one argument"); ZEPHIR_CALL_METHOD(NULL, _3$$7, "__construct", NULL, 9, _4$$7); zephir_check_call_status(); - zephir_throw_exception_debug(_3$$7, "phalcon/mvc/model.zep", 4105 TSRMLS_CC); + zephir_throw_exception_debug(_3$$7, "phalcon/mvc/model.zep", 4107 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -84832,7 +84484,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _invokeFinder) { ZEPHIR_CONCAT_SVS(_8$$13, "Cannot resolve attribute '", extraMethod, "' in the model"); ZEPHIR_CALL_METHOD(NULL, _7$$13, "__construct", NULL, 9, _8$$13); zephir_check_call_status(); - zephir_throw_exception_debug(_7$$13, "phalcon/mvc/model.zep", 4139 TSRMLS_CC); + zephir_throw_exception_debug(_7$$13, "phalcon/mvc/model.zep", 4141 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -84891,7 +84543,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, __call) { ZEPHIR_CONCAT_SVSVS(_3, "The method '", method, "' doesn't exist on model '", modelName, "'"); ZEPHIR_CALL_METHOD(NULL, _2, "__construct", NULL, 9, _3); zephir_check_call_status(); - zephir_throw_exception_debug(_2, "phalcon/mvc/model.zep", 4190 TSRMLS_CC); + zephir_throw_exception_debug(_2, "phalcon/mvc/model.zep", 4192 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; @@ -84919,7 +84571,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, __callStatic) { ZEPHIR_CONCAT_SVS(_2$$3, "The static method '", method, "' doesn't exist"); ZEPHIR_CALL_METHOD(NULL, _1$$3, "__construct", NULL, 9, _2$$3); zephir_check_call_status(); - zephir_throw_exception_debug(_1$$3, "phalcon/mvc/model.zep", 4206 TSRMLS_CC); + zephir_throw_exception_debug(_1$$3, "phalcon/mvc/model.zep", 4208 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -84970,16 +84622,16 @@ static PHP_METHOD(Phalcon_Mvc_Model, __set) { zephir_check_call_status(); ZEPHIR_INIT_VAR(related); array_init(related); - zephir_is_iterable(value, &_3$$6, &_2$$6, 0, 0, "phalcon/mvc/model.zep", 4266); + zephir_is_iterable(value, &_3$$6, &_2$$6, 0, 0, "phalcon/mvc/model.zep", 4268); for ( - ; zephir_hash_get_current_data_ex(_3$$6, (void**) &_4$$6, &_2$$6) == SUCCESS - ; zephir_hash_move_forward_ex(_3$$6, &_2$$6) + ; zend_hash_get_current_data_ex(_3$$6, (void**) &_4$$6, &_2$$6) == SUCCESS + ; zend_hash_move_forward_ex(_3$$6, &_2$$6) ) { ZEPHIR_GET_HMKEY(key, _3$$6, _2$$6); ZEPHIR_GET_HVALUE(item, _4$$6); if (Z_TYPE_P(item) == IS_OBJECT) { if (zephir_instance_of_ev(item, phalcon_mvc_modelinterface_ce TSRMLS_CC)) { - zephir_array_append(&related, item, PH_SEPARATE, "phalcon/mvc/model.zep", 4253); + zephir_array_append(&related, item, PH_SEPARATE, "phalcon/mvc/model.zep", 4255); } } else { ZEPHIR_INIT_NVAR(lowerKey); @@ -85027,7 +84679,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, __set) { ZEPHIR_CONCAT_SVS(_14$$15, "Property '", property, "' does not have a setter."); ZEPHIR_CALL_METHOD(NULL, _13$$15, "__construct", NULL, 9, _14$$15); zephir_check_call_status(); - zephir_throw_exception_debug(_13$$15, "phalcon/mvc/model.zep", 4283 TSRMLS_CC); + zephir_throw_exception_debug(_13$$15, "phalcon/mvc/model.zep", 4285 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -85073,11 +84725,11 @@ static PHP_METHOD(Phalcon_Mvc_Model, __get) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &property_param); - if (unlikely(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'property' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(property_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(property_param) == IS_STRING)) { zephir_get_strval(property, property_param); } else { ZEPHIR_INIT_VAR(property); @@ -85146,11 +84798,11 @@ static PHP_METHOD(Phalcon_Mvc_Model, __isset) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &property_param); - if (unlikely(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'property' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(property_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(property_param) == IS_STRING)) { zephir_get_strval(property, property_param); } else { ZEPHIR_INIT_VAR(property); @@ -85222,11 +84874,11 @@ static PHP_METHOD(Phalcon_Mvc_Model, unserialize) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &data_param); - if (unlikely(Z_TYPE_P(data_param) != IS_STRING && Z_TYPE_P(data_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(data_param) != IS_STRING && Z_TYPE_P(data_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'data' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(data_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(data_param) == IS_STRING)) { zephir_get_strval(data, data_param); } else { ZEPHIR_INIT_VAR(data); @@ -85240,7 +84892,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, unserialize) { ZEPHIR_CALL_CE_STATIC(&dependencyInjector, phalcon_di_ce, "getdefault", &_0, 1); zephir_check_call_status(); if (Z_TYPE_P(dependencyInjector) != IS_OBJECT) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "A dependency injector container is required to obtain the services related to the ORM", "phalcon/mvc/model.zep", 4437); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "A dependency injector container is required to obtain the services related to the ORM", "phalcon/mvc/model.zep", 4439); return; } zephir_update_property_this(this_ptr, SL("_dependencyInjector"), dependencyInjector TSRMLS_CC); @@ -85251,7 +84903,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, unserialize) { zephir_check_call_status(); ZEPHIR_CPY_WRT(manager, _1$$3); if (Z_TYPE_P(manager) != IS_OBJECT) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The injected service 'modelsManager' is not valid", "phalcon/mvc/model.zep", 4450); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The injected service 'modelsManager' is not valid", "phalcon/mvc/model.zep", 4452); return; } zephir_update_property_this(this_ptr, SL("_modelsManager"), manager TSRMLS_CC); @@ -85262,16 +84914,16 @@ static PHP_METHOD(Phalcon_Mvc_Model, unserialize) { if (zephir_is_true(_1$$3)) { if (zephir_array_isset_string_fetch(&snapshot, attributes, SS("_snapshot"), 1 TSRMLS_CC)) { zephir_update_property_this(this_ptr, SL("_snapshot"), snapshot TSRMLS_CC); - zephir_array_fetch_string(&_3$$7, attributes, SL("_attributes"), PH_NOISY | PH_READONLY, "phalcon/mvc/model.zep", 4465 TSRMLS_CC); + zephir_array_fetch_string(&_3$$7, attributes, SL("_attributes"), PH_NOISY | PH_READONLY, "phalcon/mvc/model.zep", 4467 TSRMLS_CC); ZEPHIR_CPY_WRT(attributes, _3$$7); } else { zephir_update_property_this(this_ptr, SL("_snapshot"), attributes TSRMLS_CC); } } - zephir_is_iterable(attributes, &_5$$3, &_4$$3, 0, 0, "phalcon/mvc/model.zep", 4478); + zephir_is_iterable(attributes, &_5$$3, &_4$$3, 0, 0, "phalcon/mvc/model.zep", 4480); for ( - ; zephir_hash_get_current_data_ex(_5$$3, (void**) &_6$$3, &_4$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_5$$3, &_4$$3) + ; zend_hash_get_current_data_ex(_5$$3, (void**) &_6$$3, &_4$$3) == SUCCESS + ; zend_hash_move_forward_ex(_5$$3, &_4$$3) ) { ZEPHIR_GET_HMKEY(key, _5$$3, _4$$3); ZEPHIR_GET_HVALUE(value, _6$$3); @@ -85318,10 +84970,10 @@ static PHP_METHOD(Phalcon_Mvc_Model, toArray) { zephir_check_call_status(); ZEPHIR_CALL_METHOD(&_0, metaData, "getattributes", NULL, 0, this_ptr); zephir_check_call_status(); - zephir_is_iterable(_0, &_2, &_1, 0, 0, "phalcon/mvc/model.zep", 4546); + zephir_is_iterable(_0, &_2, &_1, 0, 0, "phalcon/mvc/model.zep", 4548); for ( - ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS - ; zephir_hash_move_forward_ex(_2, &_1) + ; zend_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS + ; zend_hash_move_forward_ex(_2, &_1) ) { ZEPHIR_GET_HVALUE(attribute, _3); if (Z_TYPE_P(columnMap) == IS_ARRAY) { @@ -85334,7 +84986,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, toArray) { ZEPHIR_CONCAT_SVS(_5$$6, "Column '", attribute, "' doesn't make part of the column map"); ZEPHIR_CALL_METHOD(NULL, _4$$6, "__construct", &_6, 9, _5$$6); zephir_check_call_status(); - zephir_throw_exception_debug(_4$$6, "phalcon/mvc/model.zep", 4524 TSRMLS_CC); + zephir_throw_exception_debug(_4$$6, "phalcon/mvc/model.zep", 4526 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } else { @@ -85632,7 +85284,7 @@ static PHP_METHOD(Phalcon_Mvc_Router, __construct) { if (!defaultRoutes_param) { defaultRoutes = 1; } else { - if (unlikely(Z_TYPE_P(defaultRoutes_param) != IS_BOOL)) { + if (UNEXPECTED(Z_TYPE_P(defaultRoutes_param) != IS_BOOL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'defaultRoutes' must be a bool") TSRMLS_CC); RETURN_MM_NULL(); } @@ -85764,7 +85416,7 @@ static PHP_METHOD(Phalcon_Mvc_Router, removeExtraSlashes) { zephir_fetch_params(0, 1, 0, &remove_param); - if (unlikely(Z_TYPE_P(remove_param) != IS_BOOL)) { + if (UNEXPECTED(Z_TYPE_P(remove_param) != IS_BOOL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'remove' must be a bool") TSRMLS_CC); RETURN_NULL(); } @@ -85788,11 +85440,11 @@ static PHP_METHOD(Phalcon_Mvc_Router, setDefaultNamespace) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &namespaceName_param); - if (unlikely(Z_TYPE_P(namespaceName_param) != IS_STRING && Z_TYPE_P(namespaceName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(namespaceName_param) != IS_STRING && Z_TYPE_P(namespaceName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'namespaceName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(namespaceName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(namespaceName_param) == IS_STRING)) { zephir_get_strval(namespaceName, namespaceName_param); } else { ZEPHIR_INIT_VAR(namespaceName); @@ -85813,11 +85465,11 @@ static PHP_METHOD(Phalcon_Mvc_Router, setDefaultModule) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &moduleName_param); - if (unlikely(Z_TYPE_P(moduleName_param) != IS_STRING && Z_TYPE_P(moduleName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(moduleName_param) != IS_STRING && Z_TYPE_P(moduleName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'moduleName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(moduleName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(moduleName_param) == IS_STRING)) { zephir_get_strval(moduleName, moduleName_param); } else { ZEPHIR_INIT_VAR(moduleName); @@ -85838,11 +85490,11 @@ static PHP_METHOD(Phalcon_Mvc_Router, setDefaultController) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &controllerName_param); - if (unlikely(Z_TYPE_P(controllerName_param) != IS_STRING && Z_TYPE_P(controllerName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(controllerName_param) != IS_STRING && Z_TYPE_P(controllerName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'controllerName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(controllerName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(controllerName_param) == IS_STRING)) { zephir_get_strval(controllerName, controllerName_param); } else { ZEPHIR_INIT_VAR(controllerName); @@ -85863,11 +85515,11 @@ static PHP_METHOD(Phalcon_Mvc_Router, setDefaultAction) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &actionName_param); - if (unlikely(Z_TYPE_P(actionName_param) != IS_STRING && Z_TYPE_P(actionName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(actionName_param) != IS_STRING && Z_TYPE_P(actionName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'actionName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(actionName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(actionName_param) == IS_STRING)) { zephir_get_strval(actionName, actionName_param); } else { ZEPHIR_INIT_VAR(actionName); @@ -86006,8 +85658,8 @@ static PHP_METHOD(Phalcon_Mvc_Router, handle) { _4 = zephir_fetch_nproperty_this(this_ptr, SL("_routes"), PH_NOISY_CC); zephir_is_iterable(_4, &_6, &_5, 0, 1, "phalcon/mvc/router.zep", 582); for ( - ; zephir_hash_get_current_data_ex(_6, (void**) &_7, &_5) == SUCCESS - ; zephir_hash_move_backwards_ex(_6, &_5) + ; zend_hash_get_current_data_ex(_6, (void**) &_7, &_5) == SUCCESS + ; zend_hash_move_backwards_ex(_6, &_5) ) { ZEPHIR_GET_HVALUE(route, _7); ZEPHIR_INIT_NVAR(params); @@ -86143,8 +85795,8 @@ static PHP_METHOD(Phalcon_Mvc_Router, handle) { zephir_check_call_status(); zephir_is_iterable(paths, &_25$$34, &_24$$34, 0, 0, "phalcon/mvc/router.zep", 571); for ( - ; zephir_hash_get_current_data_ex(_25$$34, (void**) &_26$$34, &_24$$34) == SUCCESS - ; zephir_hash_move_forward_ex(_25$$34, &_24$$34) + ; zend_hash_get_current_data_ex(_25$$34, (void**) &_26$$34, &_24$$34) == SUCCESS + ; zend_hash_move_forward_ex(_25$$34, &_24$$34) ) { ZEPHIR_GET_HMKEY(part, _25$$34, _24$$34); ZEPHIR_GET_HVALUE(position, _26$$34); @@ -86312,11 +85964,11 @@ static PHP_METHOD(Phalcon_Mvc_Router, add) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 3, &pattern_param, &paths, &httpMethods, &position); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(pattern, pattern_param); } else { ZEPHIR_INIT_VAR(pattern); @@ -86370,11 +86022,11 @@ static PHP_METHOD(Phalcon_Mvc_Router, addGet) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &pattern_param, &paths, &position); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(pattern, pattern_param); } else { ZEPHIR_INIT_VAR(pattern); @@ -86407,11 +86059,11 @@ static PHP_METHOD(Phalcon_Mvc_Router, addPost) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &pattern_param, &paths, &position); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(pattern, pattern_param); } else { ZEPHIR_INIT_VAR(pattern); @@ -86444,11 +86096,11 @@ static PHP_METHOD(Phalcon_Mvc_Router, addPut) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &pattern_param, &paths, &position); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(pattern, pattern_param); } else { ZEPHIR_INIT_VAR(pattern); @@ -86481,11 +86133,11 @@ static PHP_METHOD(Phalcon_Mvc_Router, addPatch) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &pattern_param, &paths, &position); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(pattern, pattern_param); } else { ZEPHIR_INIT_VAR(pattern); @@ -86518,11 +86170,11 @@ static PHP_METHOD(Phalcon_Mvc_Router, addDelete) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &pattern_param, &paths, &position); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(pattern, pattern_param); } else { ZEPHIR_INIT_VAR(pattern); @@ -86555,11 +86207,11 @@ static PHP_METHOD(Phalcon_Mvc_Router, addOptions) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &pattern_param, &paths, &position); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(pattern, pattern_param); } else { ZEPHIR_INIT_VAR(pattern); @@ -86592,11 +86244,11 @@ static PHP_METHOD(Phalcon_Mvc_Router, addHead) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &pattern_param, &paths, &position); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(pattern, pattern_param); } else { ZEPHIR_INIT_VAR(pattern); @@ -86629,11 +86281,11 @@ static PHP_METHOD(Phalcon_Mvc_Router, addPurge) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &pattern_param, &paths, &position); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(pattern, pattern_param); } else { ZEPHIR_INIT_VAR(pattern); @@ -86666,11 +86318,11 @@ static PHP_METHOD(Phalcon_Mvc_Router, addTrace) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &pattern_param, &paths, &position); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(pattern, pattern_param); } else { ZEPHIR_INIT_VAR(pattern); @@ -86703,11 +86355,11 @@ static PHP_METHOD(Phalcon_Mvc_Router, addConnect) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &pattern_param, &paths, &position); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(pattern, pattern_param); } else { ZEPHIR_INIT_VAR(pattern); @@ -86754,8 +86406,8 @@ static PHP_METHOD(Phalcon_Mvc_Router, mount) { if (Z_TYPE_P(beforeMatch) != IS_NULL) { zephir_is_iterable(groupRoutes, &_1$$4, &_0$$4, 0, 0, "phalcon/mvc/router.zep", 814); for ( - ; zephir_hash_get_current_data_ex(_1$$4, (void**) &_2$$4, &_0$$4) == SUCCESS - ; zephir_hash_move_forward_ex(_1$$4, &_0$$4) + ; zend_hash_get_current_data_ex(_1$$4, (void**) &_2$$4, &_0$$4) == SUCCESS + ; zend_hash_move_forward_ex(_1$$4, &_0$$4) ) { ZEPHIR_GET_HVALUE(route, _2$$4); ZEPHIR_CALL_METHOD(NULL, route, "beforematch", NULL, 0, beforeMatch); @@ -86767,8 +86419,8 @@ static PHP_METHOD(Phalcon_Mvc_Router, mount) { if (Z_TYPE_P(hostname) != IS_NULL) { zephir_is_iterable(groupRoutes, &_4$$6, &_3$$6, 0, 0, "phalcon/mvc/router.zep", 823); for ( - ; zephir_hash_get_current_data_ex(_4$$6, (void**) &_5$$6, &_3$$6) == SUCCESS - ; zephir_hash_move_forward_ex(_4$$6, &_3$$6) + ; zend_hash_get_current_data_ex(_4$$6, (void**) &_5$$6, &_3$$6) == SUCCESS + ; zend_hash_move_forward_ex(_4$$6, &_3$$6) ) { ZEPHIR_GET_HVALUE(route, _5$$6); ZEPHIR_CALL_METHOD(NULL, route, "sethostname", NULL, 0, hostname); @@ -86910,8 +86562,8 @@ static PHP_METHOD(Phalcon_Mvc_Router, getRouteById) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_routes"), PH_NOISY_CC); zephir_is_iterable(_0, &_2, &_1, 0, 0, "phalcon/mvc/router.zep", 941); for ( - ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS - ; zephir_hash_move_forward_ex(_2, &_1) + ; zend_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS + ; zend_hash_move_forward_ex(_2, &_1) ) { ZEPHIR_GET_HVALUE(route, _3); ZEPHIR_CALL_METHOD(&_4$$3, route, "getrouteid", NULL, 0); @@ -86935,11 +86587,11 @@ static PHP_METHOD(Phalcon_Mvc_Router, getRouteByName) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -86950,8 +86602,8 @@ static PHP_METHOD(Phalcon_Mvc_Router, getRouteByName) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_routes"), PH_NOISY_CC); zephir_is_iterable(_0, &_2, &_1, 0, 0, "phalcon/mvc/router.zep", 956); for ( - ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS - ; zephir_hash_move_forward_ex(_2, &_1) + ; zend_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS + ; zend_hash_move_forward_ex(_2, &_1) ) { ZEPHIR_GET_HVALUE(route, _3); ZEPHIR_CALL_METHOD(&_4$$3, route, "getname", NULL, 0); @@ -87133,11 +86785,11 @@ static PHP_METHOD(Phalcon_Mvc_Url, setBaseUri) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &baseUri_param); - if (unlikely(Z_TYPE_P(baseUri_param) != IS_STRING && Z_TYPE_P(baseUri_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(baseUri_param) != IS_STRING && Z_TYPE_P(baseUri_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'baseUri' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(baseUri_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(baseUri_param) == IS_STRING)) { zephir_get_strval(baseUri, baseUri_param); } else { ZEPHIR_INIT_VAR(baseUri); @@ -87162,11 +86814,11 @@ static PHP_METHOD(Phalcon_Mvc_Url, setStaticBaseUri) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &staticBaseUri_param); - if (unlikely(Z_TYPE_P(staticBaseUri_param) != IS_STRING && Z_TYPE_P(staticBaseUri_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(staticBaseUri_param) != IS_STRING && Z_TYPE_P(staticBaseUri_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'staticBaseUri' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(staticBaseUri_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(staticBaseUri_param) == IS_STRING)) { zephir_get_strval(staticBaseUri, staticBaseUri_param); } else { ZEPHIR_INIT_VAR(staticBaseUri); @@ -87235,11 +86887,11 @@ static PHP_METHOD(Phalcon_Mvc_Url, setBasePath) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &basePath_param); - if (unlikely(Z_TYPE_P(basePath_param) != IS_STRING && Z_TYPE_P(basePath_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(basePath_param) != IS_STRING && Z_TYPE_P(basePath_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'basePath' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(basePath_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(basePath_param) == IS_STRING)) { zephir_get_strval(basePath, basePath_param); } else { ZEPHIR_INIT_VAR(basePath); @@ -87718,8 +87370,8 @@ static PHP_METHOD(Phalcon_Mvc_View, setViewsDir) { array_init(newViewsDir); zephir_is_iterable(viewsDir, &_5$$6, &_4$$6, 0, 0, "phalcon/mvc/view.zep", 206); for ( - ; zephir_hash_get_current_data_ex(_5$$6, (void**) &_6$$6, &_4$$6) == SUCCESS - ; zephir_hash_move_forward_ex(_5$$6, &_4$$6) + ; zend_hash_get_current_data_ex(_5$$6, (void**) &_6$$6, &_4$$6) == SUCCESS + ; zend_hash_move_forward_ex(_5$$6, &_4$$6) ) { ZEPHIR_GET_HMKEY(position, _5$$6, _4$$6); ZEPHIR_GET_HVALUE(directory, _6$$6); @@ -87985,11 +87637,11 @@ static PHP_METHOD(Phalcon_Mvc_View, setParamToView) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &key_param, &value); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { ZEPHIR_INIT_VAR(key); @@ -88039,11 +87691,11 @@ static PHP_METHOD(Phalcon_Mvc_View, setVar) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &key_param, &value); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { ZEPHIR_INIT_VAR(key); @@ -88064,11 +87716,11 @@ static PHP_METHOD(Phalcon_Mvc_View, getVar) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &key_param); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { ZEPHIR_INIT_VAR(key); @@ -88165,8 +87817,8 @@ static PHP_METHOD(Phalcon_Mvc_View, _loadTemplateEngines) { zephir_array_fast_append(arguments, dependencyInjector); zephir_is_iterable(registeredEngines, &_3$$5, &_2$$5, 0, 0, "phalcon/mvc/view.zep", 569); for ( - ; zephir_hash_get_current_data_ex(_3$$5, (void**) &_4$$5, &_2$$5) == SUCCESS - ; zephir_hash_move_forward_ex(_3$$5, &_2$$5) + ; zend_hash_get_current_data_ex(_3$$5, (void**) &_4$$5, &_2$$5) == SUCCESS + ; zend_hash_move_forward_ex(_3$$5, &_2$$5) ) { ZEPHIR_GET_HMKEY(extension, _3$$5, _2$$5); ZEPHIR_GET_HVALUE(engineService, _4$$5); @@ -88238,8 +87890,8 @@ static PHP_METHOD(Phalcon_Mvc_View, _engineRender) { zephir_check_call_status(); zephir_is_iterable(_1, &_3, &_2, 0, 0, "phalcon/mvc/view.zep", 696); for ( - ; zephir_hash_get_current_data_ex(_3, (void**) &_4, &_2) == SUCCESS - ; zephir_hash_move_forward_ex(_3, &_2) + ; zend_hash_get_current_data_ex(_3, (void**) &_4, &_2) == SUCCESS + ; zend_hash_move_forward_ex(_3, &_2) ) { ZEPHIR_GET_HVALUE(viewsDir, _4); ZEPHIR_CALL_METHOD(&_5$$3, this_ptr, "_isabsolutepath", &_6, 386, viewPath); @@ -88296,8 +87948,8 @@ static PHP_METHOD(Phalcon_Mvc_View, _engineRender) { } zephir_is_iterable(engines, &_15$$3, &_14$$3, 0, 0, "phalcon/mvc/view.zep", 694); for ( - ; zephir_hash_get_current_data_ex(_15$$3, (void**) &_16$$3, &_14$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_15$$3, &_14$$3) + ; zend_hash_get_current_data_ex(_15$$3, (void**) &_16$$3, &_14$$3) == SUCCESS + ; zend_hash_move_forward_ex(_15$$3, &_14$$3) ) { ZEPHIR_GET_HMKEY(extension, _15$$3, _14$$3); ZEPHIR_GET_HVALUE(engine, _16$$3); @@ -88390,11 +88042,11 @@ static PHP_METHOD(Phalcon_Mvc_View, exists) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &view_param); - if (unlikely(Z_TYPE_P(view_param) != IS_STRING && Z_TYPE_P(view_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(view_param) != IS_STRING && Z_TYPE_P(view_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'view' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(view_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(view_param) == IS_STRING)) { zephir_get_strval(view, view_param); } else { ZEPHIR_INIT_VAR(view); @@ -88416,15 +88068,15 @@ static PHP_METHOD(Phalcon_Mvc_View, exists) { zephir_check_call_status(); zephir_is_iterable(_0, &_2, &_1, 0, 0, "phalcon/mvc/view.zep", 753); for ( - ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS - ; zephir_hash_move_forward_ex(_2, &_1) + ; zend_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS + ; zend_hash_move_forward_ex(_2, &_1) ) { ZEPHIR_GET_HVALUE(viewsDir, _3); ZEPHIR_INIT_NVAR(_4$$4); zephir_is_iterable(engines, &_6$$4, &_5$$4, 0, 0, "phalcon/mvc/view.zep", 751); for ( - ; zephir_hash_get_current_data_ex(_6$$4, (void**) &_7$$4, &_5$$4) == SUCCESS - ; zephir_hash_move_forward_ex(_6$$4, &_5$$4) + ; zend_hash_get_current_data_ex(_6$$4, (void**) &_7$$4, &_5$$4) == SUCCESS + ; zend_hash_move_forward_ex(_6$$4, &_5$$4) ) { ZEPHIR_GET_HMKEY(extension, _6$$4, _5$$4); ZEPHIR_GET_HVALUE(_4$$4, _7$$4); @@ -88452,21 +88104,21 @@ static PHP_METHOD(Phalcon_Mvc_View, render) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 1, &controllerName_param, &actionName_param, ¶ms); - if (unlikely(Z_TYPE_P(controllerName_param) != IS_STRING && Z_TYPE_P(controllerName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(controllerName_param) != IS_STRING && Z_TYPE_P(controllerName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'controllerName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(controllerName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(controllerName_param) == IS_STRING)) { zephir_get_strval(controllerName, controllerName_param); } else { ZEPHIR_INIT_VAR(controllerName); ZVAL_EMPTY_STRING(controllerName); } - if (unlikely(Z_TYPE_P(actionName_param) != IS_STRING && Z_TYPE_P(actionName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(actionName_param) != IS_STRING && Z_TYPE_P(actionName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'actionName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(actionName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(actionName_param) == IS_STRING)) { zephir_get_strval(actionName, actionName_param); } else { ZEPHIR_INIT_VAR(actionName); @@ -88590,8 +88242,8 @@ static PHP_METHOD(Phalcon_Mvc_View, render) { silence = 0; zephir_is_iterable(templatesBefore, &_18$$20, &_17$$20, 0, 0, "phalcon/mvc/view.zep", 904); for ( - ; zephir_hash_get_current_data_ex(_18$$20, (void**) &_19$$20, &_17$$20) == SUCCESS - ; zephir_hash_move_forward_ex(_18$$20, &_17$$20) + ; zend_hash_get_current_data_ex(_18$$20, (void**) &_19$$20, &_17$$20) == SUCCESS + ; zend_hash_move_forward_ex(_18$$20, &_17$$20) ) { ZEPHIR_GET_HVALUE(templateBefore, _19$$20); ZEPHIR_INIT_LNVAR(_20$$21); @@ -88647,8 +88299,8 @@ static PHP_METHOD(Phalcon_Mvc_View, render) { silence = 0; zephir_is_iterable(templatesAfter, &_29$$25, &_28$$25, 0, 0, "phalcon/mvc/view.zep", 931); for ( - ; zephir_hash_get_current_data_ex(_29$$25, (void**) &_30$$25, &_28$$25) == SUCCESS - ; zephir_hash_move_forward_ex(_29$$25, &_28$$25) + ; zend_hash_get_current_data_ex(_29$$25, (void**) &_30$$25, &_28$$25) == SUCCESS + ; zend_hash_move_forward_ex(_29$$25, &_28$$25) ) { ZEPHIR_GET_HVALUE(templateAfter, _30$$25); ZEPHIR_INIT_LNVAR(_31$$26); @@ -88766,11 +88418,11 @@ static PHP_METHOD(Phalcon_Mvc_View, getPartial) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &partialPath_param, ¶ms); - if (unlikely(Z_TYPE_P(partialPath_param) != IS_STRING && Z_TYPE_P(partialPath_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(partialPath_param) != IS_STRING && Z_TYPE_P(partialPath_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'partialPath' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(partialPath_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(partialPath_param) == IS_STRING)) { zephir_get_strval(partialPath, partialPath_param); } else { ZEPHIR_INIT_VAR(partialPath); @@ -88800,11 +88452,11 @@ static PHP_METHOD(Phalcon_Mvc_View, partial) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &partialPath_param, ¶ms); - if (unlikely(Z_TYPE_P(partialPath_param) != IS_STRING && Z_TYPE_P(partialPath_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(partialPath_param) != IS_STRING && Z_TYPE_P(partialPath_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'partialPath' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(partialPath_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(partialPath_param) == IS_STRING)) { zephir_get_strval(partialPath, partialPath_param); } else { ZEPHIR_INIT_VAR(partialPath); @@ -88853,21 +88505,21 @@ static PHP_METHOD(Phalcon_Mvc_View, getRender) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 2, &controllerName_param, &actionName_param, ¶ms, &configCallback); - if (unlikely(Z_TYPE_P(controllerName_param) != IS_STRING && Z_TYPE_P(controllerName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(controllerName_param) != IS_STRING && Z_TYPE_P(controllerName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'controllerName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(controllerName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(controllerName_param) == IS_STRING)) { zephir_get_strval(controllerName, controllerName_param); } else { ZEPHIR_INIT_VAR(controllerName); ZVAL_EMPTY_STRING(controllerName); } - if (unlikely(Z_TYPE_P(actionName_param) != IS_STRING && Z_TYPE_P(actionName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(actionName_param) != IS_STRING && Z_TYPE_P(actionName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'actionName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(actionName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(actionName_param) == IS_STRING)) { zephir_get_strval(actionName, actionName_param); } else { ZEPHIR_INIT_VAR(actionName); @@ -89020,8 +88672,8 @@ static PHP_METHOD(Phalcon_Mvc_View, cache) { } zephir_is_iterable(options, &_1$$3, &_0$$3, 0, 0, "phalcon/mvc/view.zep", 1262); for ( - ; zephir_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_1$$3, &_0$$3) + ; zend_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS + ; zend_hash_move_forward_ex(_1$$3, &_0$$3) ) { ZEPHIR_GET_HMKEY(key, _1$$3, _0$$3); ZEPHIR_GET_HVALUE(value, _2$$3); @@ -89171,11 +88823,11 @@ static PHP_METHOD(Phalcon_Mvc_View, __set) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &key_param, &value); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { ZEPHIR_INIT_VAR(key); @@ -89196,11 +88848,11 @@ static PHP_METHOD(Phalcon_Mvc_View, __get) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &key_param); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { ZEPHIR_INIT_VAR(key); @@ -89232,11 +88884,11 @@ static PHP_METHOD(Phalcon_Mvc_View, __isset) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &key_param); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { ZEPHIR_INIT_VAR(key); @@ -89482,11 +89134,11 @@ static PHP_METHOD(Phalcon_Mvc_Collection_Behavior, mustTakeAction) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &eventName_param); - if (unlikely(Z_TYPE_P(eventName_param) != IS_STRING && Z_TYPE_P(eventName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(eventName_param) != IS_STRING && Z_TYPE_P(eventName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'eventName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(eventName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(eventName_param) == IS_STRING)) { zephir_get_strval(eventName, eventName_param); } else { ZEPHIR_INIT_VAR(eventName); @@ -89511,11 +89163,11 @@ static PHP_METHOD(Phalcon_Mvc_Collection_Behavior, getOptions) { ZEPHIR_INIT_VAR(eventName); ZVAL_EMPTY_STRING(eventName); } else { - if (unlikely(Z_TYPE_P(eventName_param) != IS_STRING && Z_TYPE_P(eventName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(eventName_param) != IS_STRING && Z_TYPE_P(eventName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'eventName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(eventName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(eventName_param) == IS_STRING)) { zephir_get_strval(eventName, eventName_param); } else { ZEPHIR_INIT_VAR(eventName); @@ -89618,11 +89270,11 @@ static PHP_METHOD(Phalcon_Mvc_Collection_Document, offsetExists) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &index_param); - if (unlikely(Z_TYPE_P(index_param) != IS_STRING && Z_TYPE_P(index_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(index_param) != IS_STRING && Z_TYPE_P(index_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'index' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(index_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(index_param) == IS_STRING)) { zephir_get_strval(index, index_param); } else { ZEPHIR_INIT_VAR(index); @@ -89642,11 +89294,11 @@ static PHP_METHOD(Phalcon_Mvc_Collection_Document, offsetGet) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &index_param); - if (unlikely(Z_TYPE_P(index_param) != IS_STRING && Z_TYPE_P(index_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(index_param) != IS_STRING && Z_TYPE_P(index_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'index' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(index_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(index_param) == IS_STRING)) { zephir_get_strval(index, index_param); } else { ZEPHIR_INIT_VAR(index); @@ -89671,11 +89323,11 @@ static PHP_METHOD(Phalcon_Mvc_Collection_Document, offsetSet) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &index_param, &value); - if (unlikely(Z_TYPE_P(index_param) != IS_STRING && Z_TYPE_P(index_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(index_param) != IS_STRING && Z_TYPE_P(index_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'index' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(index_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(index_param) == IS_STRING)) { zephir_get_strval(index, index_param); } else { ZEPHIR_INIT_VAR(index); @@ -89726,11 +89378,11 @@ static PHP_METHOD(Phalcon_Mvc_Collection_Document, writeAttribute) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &attribute_param, &value); - if (unlikely(Z_TYPE_P(attribute_param) != IS_STRING && Z_TYPE_P(attribute_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(attribute_param) != IS_STRING && Z_TYPE_P(attribute_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'attribute' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(attribute_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(attribute_param) == IS_STRING)) { zephir_get_strval(attribute, attribute_param); } else { ZEPHIR_INIT_VAR(attribute); @@ -89953,11 +89605,11 @@ static PHP_METHOD(Phalcon_Mvc_Collection_Manager, isInitialized) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &modelName_param); - if (unlikely(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'modelName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(modelName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(modelName_param) == IS_STRING)) { zephir_get_strval(modelName, modelName_param); } else { ZEPHIR_INIT_VAR(modelName); @@ -89988,11 +89640,11 @@ static PHP_METHOD(Phalcon_Mvc_Collection_Manager, setConnectionService) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &model, &connectionService_param); - if (unlikely(Z_TYPE_P(connectionService_param) != IS_STRING && Z_TYPE_P(connectionService_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(connectionService_param) != IS_STRING && Z_TYPE_P(connectionService_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'connectionService' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(connectionService_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(connectionService_param) == IS_STRING)) { zephir_get_strval(connectionService, connectionService_param); } else { ZEPHIR_INIT_VAR(connectionService); @@ -90118,11 +89770,11 @@ static PHP_METHOD(Phalcon_Mvc_Collection_Manager, notifyEvent) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &eventName_param, &model); - if (unlikely(Z_TYPE_P(eventName_param) != IS_STRING && Z_TYPE_P(eventName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(eventName_param) != IS_STRING && Z_TYPE_P(eventName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'eventName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(eventName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(eventName_param) == IS_STRING)) { zephir_get_strval(eventName, eventName_param); } else { ZEPHIR_INIT_VAR(eventName); @@ -90141,8 +89793,8 @@ static PHP_METHOD(Phalcon_Mvc_Collection_Manager, notifyEvent) { if (zephir_array_isset_fetch(&modelsBehaviors, behaviors, _0$$3, 0 TSRMLS_CC)) { zephir_is_iterable(modelsBehaviors, &_2$$4, &_1$$4, 0, 0, "phalcon/mvc/collection/manager.zep", 289); for ( - ; zephir_hash_get_current_data_ex(_2$$4, (void**) &_3$$4, &_1$$4) == SUCCESS - ; zephir_hash_move_forward_ex(_2$$4, &_1$$4) + ; zend_hash_get_current_data_ex(_2$$4, (void**) &_3$$4, &_1$$4) == SUCCESS + ; zend_hash_move_forward_ex(_2$$4, &_1$$4) ) { ZEPHIR_GET_HVALUE(behavior, _3$$4); ZEPHIR_CALL_METHOD(&status, behavior, "notify", NULL, 0, eventName, model); @@ -90194,11 +89846,11 @@ static PHP_METHOD(Phalcon_Mvc_Collection_Manager, missingMethod) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &model, &eventName_param, &data); - if (unlikely(Z_TYPE_P(eventName_param) != IS_STRING && Z_TYPE_P(eventName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(eventName_param) != IS_STRING && Z_TYPE_P(eventName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'eventName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(eventName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(eventName_param) == IS_STRING)) { zephir_get_strval(eventName, eventName_param); } else { ZEPHIR_INIT_VAR(eventName); @@ -90215,8 +89867,8 @@ static PHP_METHOD(Phalcon_Mvc_Collection_Manager, missingMethod) { if (zephir_array_isset_fetch(&modelsBehaviors, behaviors, _0$$3, 0 TSRMLS_CC)) { zephir_is_iterable(modelsBehaviors, &_2$$4, &_1$$4, 0, 0, "phalcon/mvc/collection/manager.zep", 345); for ( - ; zephir_hash_get_current_data_ex(_2$$4, (void**) &_3$$4, &_1$$4) == SUCCESS - ; zephir_hash_move_forward_ex(_2$$4, &_1$$4) + ; zend_hash_get_current_data_ex(_2$$4, (void**) &_3$$4, &_1$$4) == SUCCESS + ; zend_hash_move_forward_ex(_2$$4, &_1$$4) ) { ZEPHIR_GET_HVALUE(behavior, _3$$4); ZEPHIR_CALL_METHOD(&result, behavior, "missingmethod", NULL, 0, model, eventName, data); @@ -90333,11 +89985,11 @@ static PHP_METHOD(Phalcon_Mvc_Collection_Behavior_SoftDelete, notify) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &type_param, &model); - if (unlikely(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'type' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(type_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(type_param) == IS_STRING)) { zephir_get_strval(type, type_param); } else { ZEPHIR_INIT_VAR(type); @@ -90378,8 +90030,8 @@ static PHP_METHOD(Phalcon_Mvc_Collection_Behavior_SoftDelete, notify) { zephir_check_call_status(); zephir_is_iterable(_3$$7, &_5$$7, &_4$$7, 0, 0, "phalcon/mvc/collection/behavior/softdelete.zep", 89); for ( - ; zephir_hash_get_current_data_ex(_5$$7, (void**) &_6$$7, &_4$$7) == SUCCESS - ; zephir_hash_move_forward_ex(_5$$7, &_4$$7) + ; zend_hash_get_current_data_ex(_5$$7, (void**) &_6$$7, &_4$$7) == SUCCESS + ; zend_hash_move_forward_ex(_5$$7, &_4$$7) ) { ZEPHIR_GET_HVALUE(message, _6$$7); ZEPHIR_CALL_METHOD(NULL, model, "appendmessage", &_7, 0, message); @@ -90425,11 +90077,11 @@ static PHP_METHOD(Phalcon_Mvc_Collection_Behavior_Timestampable, notify) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &type_param, &model); - if (unlikely(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'type' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(type_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(type_param) == IS_STRING)) { zephir_get_strval(type, type_param); } else { ZEPHIR_INIT_VAR(type); @@ -90475,8 +90127,8 @@ static PHP_METHOD(Phalcon_Mvc_Collection_Behavior_Timestampable, notify) { if (Z_TYPE_P(field) == IS_ARRAY) { zephir_is_iterable(field, &_2$$12, &_1$$12, 0, 0, "phalcon/mvc/collection/behavior/timestampable.zep", 94); for ( - ; zephir_hash_get_current_data_ex(_2$$12, (void**) &_3$$12, &_1$$12) == SUCCESS - ; zephir_hash_move_forward_ex(_2$$12, &_1$$12) + ; zend_hash_get_current_data_ex(_2$$12, (void**) &_3$$12, &_1$$12) == SUCCESS + ; zend_hash_move_forward_ex(_2$$12, &_1$$12) ) { ZEPHIR_GET_HVALUE(singleField, _3$$12); ZEPHIR_CALL_METHOD(NULL, model, "writeattribute", &_4, 0, singleField, timestamp); @@ -90565,11 +90217,11 @@ static PHP_METHOD(Phalcon_Mvc_Micro_Collection, _addMap) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 4, 0, &method_param, &routePattern, &handler, &name); - if (unlikely(Z_TYPE_P(method_param) != IS_STRING && Z_TYPE_P(method_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(method_param) != IS_STRING && Z_TYPE_P(method_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'method' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(method_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(method_param) == IS_STRING)) { zephir_get_strval(method, method_param); } else { ZEPHIR_INIT_VAR(method); @@ -90596,11 +90248,11 @@ static PHP_METHOD(Phalcon_Mvc_Micro_Collection, setPrefix) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &prefix_param); - if (unlikely(Z_TYPE_P(prefix_param) != IS_STRING && Z_TYPE_P(prefix_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(prefix_param) != IS_STRING && Z_TYPE_P(prefix_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'prefix' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(prefix_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(prefix_param) == IS_STRING)) { zephir_get_strval(prefix, prefix_param); } else { ZEPHIR_INIT_VAR(prefix); @@ -90660,7 +90312,7 @@ static PHP_METHOD(Phalcon_Mvc_Micro_Collection, setLazy) { zephir_fetch_params(0, 1, 0, &lazy_param); - if (unlikely(Z_TYPE_P(lazy_param) != IS_BOOL)) { + if (UNEXPECTED(Z_TYPE_P(lazy_param) != IS_BOOL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'lazy' must be a bool") TSRMLS_CC); RETURN_NULL(); } @@ -90701,11 +90353,11 @@ static PHP_METHOD(Phalcon_Mvc_Micro_Collection, map) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 1, &routePattern_param, &handler, &name); - if (unlikely(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'routePattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(routePattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(routePattern_param) == IS_STRING)) { zephir_get_strval(routePattern, routePattern_param); } else { ZEPHIR_INIT_VAR(routePattern); @@ -90733,11 +90385,11 @@ static PHP_METHOD(Phalcon_Mvc_Micro_Collection, get) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 1, &routePattern_param, &handler, &name); - if (unlikely(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'routePattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(routePattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(routePattern_param) == IS_STRING)) { zephir_get_strval(routePattern, routePattern_param); } else { ZEPHIR_INIT_VAR(routePattern); @@ -90766,11 +90418,11 @@ static PHP_METHOD(Phalcon_Mvc_Micro_Collection, post) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 1, &routePattern_param, &handler, &name); - if (unlikely(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'routePattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(routePattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(routePattern_param) == IS_STRING)) { zephir_get_strval(routePattern, routePattern_param); } else { ZEPHIR_INIT_VAR(routePattern); @@ -90799,11 +90451,11 @@ static PHP_METHOD(Phalcon_Mvc_Micro_Collection, put) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 1, &routePattern_param, &handler, &name); - if (unlikely(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'routePattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(routePattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(routePattern_param) == IS_STRING)) { zephir_get_strval(routePattern, routePattern_param); } else { ZEPHIR_INIT_VAR(routePattern); @@ -90832,11 +90484,11 @@ static PHP_METHOD(Phalcon_Mvc_Micro_Collection, patch) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 1, &routePattern_param, &handler, &name); - if (unlikely(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'routePattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(routePattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(routePattern_param) == IS_STRING)) { zephir_get_strval(routePattern, routePattern_param); } else { ZEPHIR_INIT_VAR(routePattern); @@ -90865,11 +90517,11 @@ static PHP_METHOD(Phalcon_Mvc_Micro_Collection, head) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 1, &routePattern_param, &handler, &name); - if (unlikely(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'routePattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(routePattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(routePattern_param) == IS_STRING)) { zephir_get_strval(routePattern, routePattern_param); } else { ZEPHIR_INIT_VAR(routePattern); @@ -90898,11 +90550,11 @@ static PHP_METHOD(Phalcon_Mvc_Micro_Collection, delete) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 1, &routePattern_param, &handler, &name); - if (unlikely(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'routePattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(routePattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(routePattern_param) == IS_STRING)) { zephir_get_strval(routePattern, routePattern_param); } else { ZEPHIR_INIT_VAR(routePattern); @@ -90931,11 +90583,11 @@ static PHP_METHOD(Phalcon_Mvc_Micro_Collection, options) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 1, &routePattern_param, &handler, &name); - if (unlikely(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'routePattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(routePattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(routePattern_param) == IS_STRING)) { zephir_get_strval(routePattern, routePattern_param); } else { ZEPHIR_INIT_VAR(routePattern); @@ -91061,11 +90713,11 @@ static PHP_METHOD(Phalcon_Mvc_Micro_LazyLoader, __construct) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &definition_param); - if (unlikely(Z_TYPE_P(definition_param) != IS_STRING && Z_TYPE_P(definition_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(definition_param) != IS_STRING && Z_TYPE_P(definition_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'definition' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(definition_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(definition_param) == IS_STRING)) { zephir_get_strval(definition, definition_param); } else { ZEPHIR_INIT_VAR(definition); @@ -91089,11 +90741,11 @@ static PHP_METHOD(Phalcon_Mvc_Micro_LazyLoader, __call) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &method_param, &arguments); - if (unlikely(Z_TYPE_P(method_param) != IS_STRING && Z_TYPE_P(method_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(method_param) != IS_STRING && Z_TYPE_P(method_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'method' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(method_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(method_param) == IS_STRING)) { zephir_get_strval(method, method_param); } else { ZEPHIR_INIT_VAR(method); @@ -91145,11 +90797,11 @@ static PHP_METHOD(Phalcon_Mvc_Micro_LazyLoader, callMethod) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 1, &method_param, &arguments, &modelBinder); - if (unlikely(Z_TYPE_P(method_param) != IS_STRING && Z_TYPE_P(method_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(method_param) != IS_STRING && Z_TYPE_P(method_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'method' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(method_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(method_param) == IS_STRING)) { zephir_get_strval(method, method_param); } else { ZEPHIR_INIT_VAR(method); @@ -91231,11 +90883,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Behavior, mustTakeAction) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &eventName_param); - if (unlikely(Z_TYPE_P(eventName_param) != IS_STRING && Z_TYPE_P(eventName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(eventName_param) != IS_STRING && Z_TYPE_P(eventName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'eventName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(eventName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(eventName_param) == IS_STRING)) { zephir_get_strval(eventName, eventName_param); } else { ZEPHIR_INIT_VAR(eventName); @@ -91260,11 +90912,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Behavior, getOptions) { ZEPHIR_INIT_VAR(eventName); ZVAL_EMPTY_STRING(eventName); } else { - if (unlikely(Z_TYPE_P(eventName_param) != IS_STRING && Z_TYPE_P(eventName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(eventName_param) != IS_STRING && Z_TYPE_P(eventName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'eventName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(eventName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(eventName_param) == IS_STRING)) { zephir_get_strval(eventName, eventName_param); } else { ZEPHIR_INIT_VAR(eventName); @@ -91457,8 +91109,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Binder, bindToHandler) { if (Z_TYPE_P(paramsCache) == IS_ARRAY) { zephir_is_iterable(paramsCache, &_4$$4, &_3$$4, 0, 0, "phalcon/mvc/model/binder.zep", 102); for ( - ; zephir_hash_get_current_data_ex(_4$$4, (void**) &_5$$4, &_3$$4) == SUCCESS - ; zephir_hash_move_forward_ex(_4$$4, &_3$$4) + ; zend_hash_get_current_data_ex(_4$$4, (void**) &_5$$4, &_3$$4) == SUCCESS + ; zend_hash_move_forward_ex(_4$$4, &_3$$4) ) { ZEPHIR_GET_HMKEY(paramKey, _4$$4, _3$$4); ZEPHIR_GET_HVALUE(className, _5$$4); @@ -91557,8 +91209,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Binder, getParamsFromReflection) { zephir_array_keys(paramsKeys, params TSRMLS_CC); zephir_is_iterable(methodParams, &_2, &_1, 0, 0, "phalcon/mvc/model/binder.zep", 197); for ( - ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS - ; zephir_hash_move_forward_ex(_2, &_1) + ; zend_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS + ; zend_hash_move_forward_ex(_2, &_1) ) { ZEPHIR_GET_HMKEY(paramKey, _2, _1); ZEPHIR_GET_HVALUE(methodParam, _3); @@ -91770,11 +91422,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, setModelName) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &modelName_param); - if (unlikely(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'modelName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(modelName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(modelName_param) == IS_STRING)) { zephir_get_strval(modelName, modelName_param); } else { ZEPHIR_INIT_VAR(modelName); @@ -91901,11 +91553,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, join) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 3, &model_param, &conditions, &alias, &type); - if (unlikely(Z_TYPE_P(model_param) != IS_STRING && Z_TYPE_P(model_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(model_param) != IS_STRING && Z_TYPE_P(model_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'model' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(model_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(model_param) == IS_STRING)) { zephir_get_strval(model, model_param); } else { ZEPHIR_INIT_VAR(model); @@ -91963,11 +91615,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, innerJoin) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &model_param, &conditions, &alias); - if (unlikely(Z_TYPE_P(model_param) != IS_STRING && Z_TYPE_P(model_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(model_param) != IS_STRING && Z_TYPE_P(model_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'model' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(model_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(model_param) == IS_STRING)) { zephir_get_strval(model, model_param); } else { ZEPHIR_INIT_VAR(model); @@ -91999,11 +91651,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, leftJoin) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &model_param, &conditions, &alias); - if (unlikely(Z_TYPE_P(model_param) != IS_STRING && Z_TYPE_P(model_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(model_param) != IS_STRING && Z_TYPE_P(model_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'model' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(model_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(model_param) == IS_STRING)) { zephir_get_strval(model, model_param); } else { ZEPHIR_INIT_VAR(model); @@ -92035,11 +91687,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, rightJoin) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &model_param, &conditions, &alias); - if (unlikely(Z_TYPE_P(model_param) != IS_STRING && Z_TYPE_P(model_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(model_param) != IS_STRING && Z_TYPE_P(model_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'model' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(model_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(model_param) == IS_STRING)) { zephir_get_strval(model, model_param); } else { ZEPHIR_INIT_VAR(model); @@ -92070,11 +91722,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, where) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &conditions_param, &bindParams, &bindTypes); - if (unlikely(Z_TYPE_P(conditions_param) != IS_STRING && Z_TYPE_P(conditions_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(conditions_param) != IS_STRING && Z_TYPE_P(conditions_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'conditions' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(conditions_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(conditions_param) == IS_STRING)) { zephir_get_strval(conditions, conditions_param); } else { ZEPHIR_INIT_VAR(conditions); @@ -92134,11 +91786,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, addWhere) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &conditions_param, &bindParams, &bindTypes); - if (unlikely(Z_TYPE_P(conditions_param) != IS_STRING && Z_TYPE_P(conditions_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(conditions_param) != IS_STRING && Z_TYPE_P(conditions_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'conditions' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(conditions_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(conditions_param) == IS_STRING)) { zephir_get_strval(conditions, conditions_param); } else { ZEPHIR_INIT_VAR(conditions); @@ -92167,11 +91819,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, andWhere) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &conditions_param, &bindParams, &bindTypes); - if (unlikely(Z_TYPE_P(conditions_param) != IS_STRING && Z_TYPE_P(conditions_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(conditions_param) != IS_STRING && Z_TYPE_P(conditions_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'conditions' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(conditions_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(conditions_param) == IS_STRING)) { zephir_get_strval(conditions, conditions_param); } else { ZEPHIR_INIT_VAR(conditions); @@ -92207,11 +91859,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, orWhere) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &conditions_param, &bindParams, &bindTypes); - if (unlikely(Z_TYPE_P(conditions_param) != IS_STRING && Z_TYPE_P(conditions_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(conditions_param) != IS_STRING && Z_TYPE_P(conditions_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'conditions' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(conditions_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(conditions_param) == IS_STRING)) { zephir_get_strval(conditions, conditions_param); } else { ZEPHIR_INIT_VAR(conditions); @@ -92248,11 +91900,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, betweenWhere) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &expr_param, &minimum, &maximum); - if (unlikely(Z_TYPE_P(expr_param) != IS_STRING && Z_TYPE_P(expr_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(expr_param) != IS_STRING && Z_TYPE_P(expr_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'expr' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(expr_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(expr_param) == IS_STRING)) { zephir_get_strval(expr, expr_param); } else { ZEPHIR_INIT_VAR(expr); @@ -92293,11 +91945,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, notBetweenWhere) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &expr_param, &minimum, &maximum); - if (unlikely(Z_TYPE_P(expr_param) != IS_STRING && Z_TYPE_P(expr_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(expr_param) != IS_STRING && Z_TYPE_P(expr_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'expr' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(expr_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(expr_param) == IS_STRING)) { zephir_get_strval(expr, expr_param); } else { ZEPHIR_INIT_VAR(expr); @@ -92341,11 +91993,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, inWhere) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &expr_param, &values_param); - if (unlikely(Z_TYPE_P(expr_param) != IS_STRING && Z_TYPE_P(expr_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(expr_param) != IS_STRING && Z_TYPE_P(expr_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'expr' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(expr_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(expr_param) == IS_STRING)) { zephir_get_strval(expr, expr_param); } else { ZEPHIR_INIT_VAR(expr); @@ -92369,8 +92021,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, inWhere) { array_init(bindKeys); zephir_is_iterable(values, &_3, &_2, 0, 0, "phalcon/mvc/model/criteria.zep", 418); for ( - ; zephir_hash_get_current_data_ex(_3, (void**) &_4, &_2) == SUCCESS - ; zephir_hash_move_forward_ex(_3, &_2) + ; zend_hash_get_current_data_ex(_3, (void**) &_4, &_2) == SUCCESS + ; zend_hash_move_forward_ex(_3, &_2) ) { ZEPHIR_GET_HVALUE(value, _4); ZEPHIR_INIT_NVAR(key); @@ -92405,11 +92057,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, notInWhere) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &expr_param, &values_param); - if (unlikely(Z_TYPE_P(expr_param) != IS_STRING && Z_TYPE_P(expr_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(expr_param) != IS_STRING && Z_TYPE_P(expr_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'expr' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(expr_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(expr_param) == IS_STRING)) { zephir_get_strval(expr, expr_param); } else { ZEPHIR_INIT_VAR(expr); @@ -92426,8 +92078,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, notInWhere) { array_init(bindKeys); zephir_is_iterable(values, &_1, &_0, 0, 0, "phalcon/mvc/model/criteria.zep", 455); for ( - ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS - ; zephir_hash_move_forward_ex(_1, &_0) + ; zend_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS + ; zend_hash_move_forward_ex(_1, &_0) ) { ZEPHIR_GET_HVALUE(value, _2); ZEPHIR_INIT_NVAR(key); @@ -92458,11 +92110,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, conditions) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &conditions_param); - if (unlikely(Z_TYPE_P(conditions_param) != IS_STRING && Z_TYPE_P(conditions_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(conditions_param) != IS_STRING && Z_TYPE_P(conditions_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'conditions' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(conditions_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(conditions_param) == IS_STRING)) { zephir_get_strval(conditions, conditions_param); } else { ZEPHIR_INIT_VAR(conditions); @@ -92485,11 +92137,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, order) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &orderColumns_param); - if (unlikely(Z_TYPE_P(orderColumns_param) != IS_STRING && Z_TYPE_P(orderColumns_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(orderColumns_param) != IS_STRING && Z_TYPE_P(orderColumns_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'orderColumns' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(orderColumns_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(orderColumns_param) == IS_STRING)) { zephir_get_strval(orderColumns, orderColumns_param); } else { ZEPHIR_INIT_VAR(orderColumns); @@ -92512,11 +92164,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, orderBy) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &orderColumns_param); - if (unlikely(Z_TYPE_P(orderColumns_param) != IS_STRING && Z_TYPE_P(orderColumns_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(orderColumns_param) != IS_STRING && Z_TYPE_P(orderColumns_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'orderColumns' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(orderColumns_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(orderColumns_param) == IS_STRING)) { zephir_get_strval(orderColumns, orderColumns_param); } else { ZEPHIR_INIT_VAR(orderColumns); @@ -92586,7 +92238,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, limit) { ZEPHIR_CALL_FUNCTION(&_1, "abs", &_2, 198, &_0); zephir_check_call_status(); limit = zephir_get_numberval(_1); - if (unlikely(limit == 0)) { + if (UNEXPECTED(limit == 0)) { RETURN_THIS(); } if (zephir_is_numeric(offset)) { @@ -92793,11 +92445,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, fromInput) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 1, &dependencyInjector, &modelName_param, &data_param, &operator_param); - if (unlikely(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'modelName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(modelName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(modelName_param) == IS_STRING)) { zephir_get_strval(modelName, modelName_param); } else { ZEPHIR_INIT_VAR(modelName); @@ -92808,11 +92460,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, fromInput) { ZEPHIR_INIT_VAR(operator); ZVAL_STRING(operator, "AND", 1); } else { - if (unlikely(Z_TYPE_P(operator_param) != IS_STRING && Z_TYPE_P(operator_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(operator_param) != IS_STRING && Z_TYPE_P(operator_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'operator' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(operator_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(operator_param) == IS_STRING)) { zephir_get_strval(operator, operator_param); } else { ZEPHIR_INIT_VAR(operator); @@ -92847,8 +92499,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, fromInput) { array_init(bind); zephir_is_iterable(data, &_4$$3, &_3$$3, 0, 0, "phalcon/mvc/model/criteria.zep", 711); for ( - ; zephir_hash_get_current_data_ex(_4$$3, (void**) &_5$$3, &_3$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_4$$3, &_3$$3) + ; zend_hash_get_current_data_ex(_4$$3, (void**) &_5$$3, &_3$$3) == SUCCESS + ; zend_hash_move_forward_ex(_4$$3, &_3$$3) ) { ZEPHIR_GET_HMKEY(field, _4$$3, _3$$3); ZEPHIR_GET_HVALUE(value, _5$$3); @@ -93203,11 +92855,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, isInitialized) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &modelName_param); - if (unlikely(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'modelName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(modelName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(modelName_param) == IS_STRING)) { zephir_get_strval(modelName, modelName_param); } else { ZEPHIR_INIT_VAR(modelName); @@ -93241,11 +92893,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, load) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &modelName_param, &newInstance_param); - if (unlikely(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'modelName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(modelName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(modelName_param) == IS_STRING)) { zephir_get_strval(modelName, modelName_param); } else { ZEPHIR_INIT_VAR(modelName); @@ -93321,11 +92973,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, setModelSource) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &model, &source_param); - if (unlikely(Z_TYPE_P(source_param) != IS_STRING && Z_TYPE_P(source_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(source_param) != IS_STRING && Z_TYPE_P(source_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'source' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(source_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(source_param) == IS_STRING)) { zephir_get_strval(source, source_param); } else { ZEPHIR_INIT_VAR(source); @@ -93400,11 +93052,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, setModelSchema) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &model, &schema_param); - if (unlikely(Z_TYPE_P(schema_param) != IS_STRING && Z_TYPE_P(schema_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schema_param) != IS_STRING && Z_TYPE_P(schema_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schema' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schema_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schema_param) == IS_STRING)) { zephir_get_strval(schema, schema_param); } else { ZEPHIR_INIT_VAR(schema); @@ -93447,11 +93099,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, setConnectionService) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &model, &connectionService_param); - if (unlikely(Z_TYPE_P(connectionService_param) != IS_STRING && Z_TYPE_P(connectionService_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(connectionService_param) != IS_STRING && Z_TYPE_P(connectionService_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'connectionService' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(connectionService_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(connectionService_param) == IS_STRING)) { zephir_get_strval(connectionService, connectionService_param); } else { ZEPHIR_INIT_VAR(connectionService); @@ -93475,11 +93127,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, setWriteConnectionService) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &model, &connectionService_param); - if (unlikely(Z_TYPE_P(connectionService_param) != IS_STRING && Z_TYPE_P(connectionService_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(connectionService_param) != IS_STRING && Z_TYPE_P(connectionService_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'connectionService' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(connectionService_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(connectionService_param) == IS_STRING)) { zephir_get_strval(connectionService, connectionService_param); } else { ZEPHIR_INIT_VAR(connectionService); @@ -93502,11 +93154,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, setReadConnectionService) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &model, &connectionService_param); - if (unlikely(Z_TYPE_P(connectionService_param) != IS_STRING && Z_TYPE_P(connectionService_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(connectionService_param) != IS_STRING && Z_TYPE_P(connectionService_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'connectionService' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(connectionService_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(connectionService_param) == IS_STRING)) { zephir_get_strval(connectionService, connectionService_param); } else { ZEPHIR_INIT_VAR(connectionService); @@ -93647,11 +93299,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, notifyEvent) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &eventName_param, &model); - if (unlikely(Z_TYPE_P(eventName_param) != IS_STRING && Z_TYPE_P(eventName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(eventName_param) != IS_STRING && Z_TYPE_P(eventName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'eventName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(eventName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(eventName_param) == IS_STRING)) { zephir_get_strval(eventName, eventName_param); } else { ZEPHIR_INIT_VAR(eventName); @@ -93668,8 +93320,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, notifyEvent) { if (zephir_array_isset_fetch(&modelsBehaviors, _0, _1, 0 TSRMLS_CC)) { zephir_is_iterable(modelsBehaviors, &_3$$3, &_2$$3, 0, 0, "phalcon/mvc/model/manager.zep", 508); for ( - ; zephir_hash_get_current_data_ex(_3$$3, (void**) &_4$$3, &_2$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_3$$3, &_2$$3) + ; zend_hash_get_current_data_ex(_3$$3, (void**) &_4$$3, &_2$$3) == SUCCESS + ; zend_hash_move_forward_ex(_3$$3, &_2$$3) ) { ZEPHIR_GET_HVALUE(behavior, _4$$3); ZEPHIR_CALL_METHOD(&status, behavior, "notify", NULL, 0, eventName, model); @@ -93718,11 +93370,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, missingMethod) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &model, &eventName_param, &data); - if (unlikely(Z_TYPE_P(eventName_param) != IS_STRING && Z_TYPE_P(eventName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(eventName_param) != IS_STRING && Z_TYPE_P(eventName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'eventName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(eventName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(eventName_param) == IS_STRING)) { zephir_get_strval(eventName, eventName_param); } else { ZEPHIR_INIT_VAR(eventName); @@ -93737,8 +93389,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, missingMethod) { if (zephir_array_isset_fetch(&modelsBehaviors, _0, _1, 0 TSRMLS_CC)) { zephir_is_iterable(modelsBehaviors, &_3$$3, &_2$$3, 0, 0, "phalcon/mvc/model/manager.zep", 557); for ( - ; zephir_hash_get_current_data_ex(_3$$3, (void**) &_4$$3, &_2$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_3$$3, &_2$$3) + ; zend_hash_get_current_data_ex(_3$$3, (void**) &_4$$3, &_2$$3) == SUCCESS + ; zend_hash_move_forward_ex(_3$$3, &_2$$3) ) { ZEPHIR_GET_HVALUE(behavior, _4$$3); ZEPHIR_CALL_METHOD(&result, behavior, "missingmethod", NULL, 0, model, eventName, data); @@ -93878,11 +93530,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, addHasOne) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 4, 1, &model, &fields, &referencedModel_param, &referencedFields, &options); - if (unlikely(Z_TYPE_P(referencedModel_param) != IS_STRING && Z_TYPE_P(referencedModel_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(referencedModel_param) != IS_STRING && Z_TYPE_P(referencedModel_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'referencedModel' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(referencedModel_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(referencedModel_param) == IS_STRING)) { zephir_get_strval(referencedModel, referencedModel_param); } else { ZEPHIR_INIT_VAR(referencedModel); @@ -93954,11 +93606,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, addBelongsTo) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 4, 1, &model, &fields, &referencedModel_param, &referencedFields, &options); - if (unlikely(Z_TYPE_P(referencedModel_param) != IS_STRING && Z_TYPE_P(referencedModel_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(referencedModel_param) != IS_STRING && Z_TYPE_P(referencedModel_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'referencedModel' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(referencedModel_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(referencedModel_param) == IS_STRING)) { zephir_get_strval(referencedModel, referencedModel_param); } else { ZEPHIR_INIT_VAR(referencedModel); @@ -94030,11 +93682,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, addHasMany) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 4, 1, &model, &fields, &referencedModel_param, &referencedFields, &options); - if (unlikely(Z_TYPE_P(referencedModel_param) != IS_STRING && Z_TYPE_P(referencedModel_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(referencedModel_param) != IS_STRING && Z_TYPE_P(referencedModel_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'referencedModel' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(referencedModel_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(referencedModel_param) == IS_STRING)) { zephir_get_strval(referencedModel, referencedModel_param); } else { ZEPHIR_INIT_VAR(referencedModel); @@ -94107,21 +93759,21 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, addHasManyToMany) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 7, 1, &model, &fields, &intermediateModel_param, &intermediateFields, &intermediateReferencedFields, &referencedModel_param, &referencedFields, &options); - if (unlikely(Z_TYPE_P(intermediateModel_param) != IS_STRING && Z_TYPE_P(intermediateModel_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(intermediateModel_param) != IS_STRING && Z_TYPE_P(intermediateModel_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'intermediateModel' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(intermediateModel_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(intermediateModel_param) == IS_STRING)) { zephir_get_strval(intermediateModel, intermediateModel_param); } else { ZEPHIR_INIT_VAR(intermediateModel); ZVAL_EMPTY_STRING(intermediateModel); } - if (unlikely(Z_TYPE_P(referencedModel_param) != IS_STRING && Z_TYPE_P(referencedModel_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(referencedModel_param) != IS_STRING && Z_TYPE_P(referencedModel_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'referencedModel' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(referencedModel_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(referencedModel_param) == IS_STRING)) { zephir_get_strval(referencedModel, referencedModel_param); } else { ZEPHIR_INIT_VAR(referencedModel); @@ -94204,21 +93856,21 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, existsBelongsTo) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &modelName_param, &modelRelation_param); - if (unlikely(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'modelName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(modelName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(modelName_param) == IS_STRING)) { zephir_get_strval(modelName, modelName_param); } else { ZEPHIR_INIT_VAR(modelName); ZVAL_EMPTY_STRING(modelName); } - if (unlikely(Z_TYPE_P(modelRelation_param) != IS_STRING && Z_TYPE_P(modelRelation_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(modelRelation_param) != IS_STRING && Z_TYPE_P(modelRelation_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'modelRelation' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(modelRelation_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(modelRelation_param) == IS_STRING)) { zephir_get_strval(modelRelation, modelRelation_param); } else { ZEPHIR_INIT_VAR(modelRelation); @@ -94251,21 +93903,21 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, existsHasMany) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &modelName_param, &modelRelation_param); - if (unlikely(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'modelName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(modelName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(modelName_param) == IS_STRING)) { zephir_get_strval(modelName, modelName_param); } else { ZEPHIR_INIT_VAR(modelName); ZVAL_EMPTY_STRING(modelName); } - if (unlikely(Z_TYPE_P(modelRelation_param) != IS_STRING && Z_TYPE_P(modelRelation_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(modelRelation_param) != IS_STRING && Z_TYPE_P(modelRelation_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'modelRelation' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(modelRelation_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(modelRelation_param) == IS_STRING)) { zephir_get_strval(modelRelation, modelRelation_param); } else { ZEPHIR_INIT_VAR(modelRelation); @@ -94298,21 +93950,21 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, existsHasOne) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &modelName_param, &modelRelation_param); - if (unlikely(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'modelName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(modelName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(modelName_param) == IS_STRING)) { zephir_get_strval(modelName, modelName_param); } else { ZEPHIR_INIT_VAR(modelName); ZVAL_EMPTY_STRING(modelName); } - if (unlikely(Z_TYPE_P(modelRelation_param) != IS_STRING && Z_TYPE_P(modelRelation_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(modelRelation_param) != IS_STRING && Z_TYPE_P(modelRelation_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'modelRelation' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(modelRelation_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(modelRelation_param) == IS_STRING)) { zephir_get_strval(modelRelation, modelRelation_param); } else { ZEPHIR_INIT_VAR(modelRelation); @@ -94345,21 +93997,21 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, existsHasManyToMany) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &modelName_param, &modelRelation_param); - if (unlikely(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'modelName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(modelName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(modelName_param) == IS_STRING)) { zephir_get_strval(modelName, modelName_param); } else { ZEPHIR_INIT_VAR(modelName); ZVAL_EMPTY_STRING(modelName); } - if (unlikely(Z_TYPE_P(modelRelation_param) != IS_STRING && Z_TYPE_P(modelRelation_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(modelRelation_param) != IS_STRING && Z_TYPE_P(modelRelation_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'modelRelation' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(modelRelation_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(modelRelation_param) == IS_STRING)) { zephir_get_strval(modelRelation, modelRelation_param); } else { ZEPHIR_INIT_VAR(modelRelation); @@ -94391,21 +94043,21 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, getRelationByAlias) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &modelName_param, &alias_param); - if (unlikely(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'modelName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(modelName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(modelName_param) == IS_STRING)) { zephir_get_strval(modelName, modelName_param); } else { ZEPHIR_INIT_VAR(modelName); ZVAL_EMPTY_STRING(modelName); } - if (unlikely(Z_TYPE_P(alias_param) != IS_STRING && Z_TYPE_P(alias_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(alias_param) != IS_STRING && Z_TYPE_P(alias_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'alias' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(alias_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(alias_param) == IS_STRING)) { zephir_get_strval(alias, alias_param); } else { ZEPHIR_INIT_VAR(alias); @@ -94453,8 +94105,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, _mergeFindParameters) { if (Z_TYPE_P(findParamsOne) == IS_ARRAY) { zephir_is_iterable(findParamsOne, &_3$$4, &_2$$4, 0, 0, "phalcon/mvc/model/manager.zep", 1149); for ( - ; zephir_hash_get_current_data_ex(_3$$4, (void**) &_4$$4, &_2$$4) == SUCCESS - ; zephir_hash_move_forward_ex(_3$$4, &_2$$4) + ; zend_hash_get_current_data_ex(_3$$4, (void**) &_4$$4, &_2$$4) == SUCCESS + ; zend_hash_move_forward_ex(_3$$4, &_2$$4) ) { ZEPHIR_GET_HMKEY(key, _3$$4, _2$$4); ZEPHIR_GET_HVALUE(value, _4$$4); @@ -94485,8 +94137,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, _mergeFindParameters) { if (Z_TYPE_P(findParamsTwo) == IS_ARRAY) { zephir_is_iterable(findParamsTwo, &_9$$11, &_8$$11, 0, 0, "phalcon/mvc/model/manager.zep", 1183); for ( - ; zephir_hash_get_current_data_ex(_9$$11, (void**) &_10$$11, &_8$$11) == SUCCESS - ; zephir_hash_move_forward_ex(_9$$11, &_8$$11) + ; zend_hash_get_current_data_ex(_9$$11, (void**) &_10$$11, &_8$$11) == SUCCESS + ; zend_hash_move_forward_ex(_9$$11, &_8$$11) ) { ZEPHIR_GET_HMKEY(key, _9$$11, _8$$11); ZEPHIR_GET_HVALUE(value, _10$$11); @@ -94556,11 +94208,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, getRelationRecords) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 1, &relation, &method_param, &record, ¶meters); - if (unlikely(Z_TYPE_P(method_param) != IS_STRING && Z_TYPE_P(method_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(method_param) != IS_STRING && Z_TYPE_P(method_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'method' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(method_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(method_param) == IS_STRING)) { zephir_get_strval(method, method_param); } else { ZEPHIR_INIT_VAR(method); @@ -94672,8 +94324,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, getRelationRecords) { zephir_check_call_status(); zephir_is_iterable(_16$$10, &_18$$10, &_17$$10, 0, 0, "phalcon/mvc/model/manager.zep", 1303); for ( - ; zephir_hash_get_current_data_ex(_18$$10, (void**) &_19$$10, &_17$$10) == SUCCESS - ; zephir_hash_move_forward_ex(_18$$10, &_17$$10) + ; zend_hash_get_current_data_ex(_18$$10, (void**) &_19$$10, &_17$$10) == SUCCESS + ; zend_hash_move_forward_ex(_18$$10, &_17$$10) ) { ZEPHIR_GET_HMKEY(refPosition, _18$$10, _17$$10); ZEPHIR_GET_HVALUE(field, _19$$10); @@ -94770,21 +94422,21 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, getReusableRecords) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &modelName_param, &key_param); - if (unlikely(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'modelName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(modelName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(modelName_param) == IS_STRING)) { zephir_get_strval(modelName, modelName_param); } else { ZEPHIR_INIT_VAR(modelName); ZVAL_EMPTY_STRING(modelName); } - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { ZEPHIR_INIT_VAR(key); @@ -94808,21 +94460,21 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, setReusableRecords) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &modelName_param, &key_param, &records); - if (unlikely(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'modelName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(modelName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(modelName_param) == IS_STRING)) { zephir_get_strval(modelName, modelName_param); } else { ZEPHIR_INIT_VAR(modelName); ZVAL_EMPTY_STRING(modelName); } - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { ZEPHIR_INIT_VAR(key); @@ -94852,21 +94504,21 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, getBelongsToRecords) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 4, 1, &method_param, &modelName_param, &modelRelation, &record, ¶meters); - if (unlikely(Z_TYPE_P(method_param) != IS_STRING && Z_TYPE_P(method_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(method_param) != IS_STRING && Z_TYPE_P(method_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'method' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(method_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(method_param) == IS_STRING)) { zephir_get_strval(method, method_param); } else { ZEPHIR_INIT_VAR(method); ZVAL_EMPTY_STRING(method); } - if (unlikely(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'modelName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(modelName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(modelName_param) == IS_STRING)) { zephir_get_strval(modelName, modelName_param); } else { ZEPHIR_INIT_VAR(modelName); @@ -94904,21 +94556,21 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, getHasManyRecords) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 4, 1, &method_param, &modelName_param, &modelRelation, &record, ¶meters); - if (unlikely(Z_TYPE_P(method_param) != IS_STRING && Z_TYPE_P(method_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(method_param) != IS_STRING && Z_TYPE_P(method_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'method' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(method_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(method_param) == IS_STRING)) { zephir_get_strval(method, method_param); } else { ZEPHIR_INIT_VAR(method); ZVAL_EMPTY_STRING(method); } - if (unlikely(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'modelName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(modelName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(modelName_param) == IS_STRING)) { zephir_get_strval(modelName, modelName_param); } else { ZEPHIR_INIT_VAR(modelName); @@ -94956,21 +94608,21 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, getHasOneRecords) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 4, 1, &method_param, &modelName_param, &modelRelation, &record, ¶meters); - if (unlikely(Z_TYPE_P(method_param) != IS_STRING && Z_TYPE_P(method_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(method_param) != IS_STRING && Z_TYPE_P(method_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'method' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(method_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(method_param) == IS_STRING)) { zephir_get_strval(method, method_param); } else { ZEPHIR_INIT_VAR(method); ZVAL_EMPTY_STRING(method); } - if (unlikely(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'modelName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(modelName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(modelName_param) == IS_STRING)) { zephir_get_strval(modelName, modelName_param); } else { ZEPHIR_INIT_VAR(modelName); @@ -95108,11 +94760,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, getRelations) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &modelName_param); - if (unlikely(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'modelName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(modelName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(modelName_param) == IS_STRING)) { zephir_get_strval(modelName, modelName_param); } else { ZEPHIR_INIT_VAR(modelName); @@ -95129,8 +94781,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, getRelations) { if (zephir_array_isset_fetch(&relations, _0, entityName, 0 TSRMLS_CC)) { zephir_is_iterable(relations, &_2$$3, &_1$$3, 0, 0, "phalcon/mvc/model/manager.zep", 1559); for ( - ; zephir_hash_get_current_data_ex(_2$$3, (void**) &_3$$3, &_1$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_2$$3, &_1$$3) + ; zend_hash_get_current_data_ex(_2$$3, (void**) &_3$$3, &_1$$3) == SUCCESS + ; zend_hash_move_forward_ex(_2$$3, &_1$$3) ) { ZEPHIR_GET_HVALUE(relation, _3$$3); zephir_array_append(&allRelations, relation, PH_SEPARATE, "phalcon/mvc/model/manager.zep", 1557); @@ -95141,8 +94793,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, getRelations) { if (zephir_array_isset_fetch(&relations, _4, entityName, 0 TSRMLS_CC)) { zephir_is_iterable(relations, &_6$$5, &_5$$5, 0, 0, "phalcon/mvc/model/manager.zep", 1568); for ( - ; zephir_hash_get_current_data_ex(_6$$5, (void**) &_7$$5, &_5$$5) == SUCCESS - ; zephir_hash_move_forward_ex(_6$$5, &_5$$5) + ; zend_hash_get_current_data_ex(_6$$5, (void**) &_7$$5, &_5$$5) == SUCCESS + ; zend_hash_move_forward_ex(_6$$5, &_5$$5) ) { ZEPHIR_GET_HVALUE(relation, _7$$5); zephir_array_append(&allRelations, relation, PH_SEPARATE, "phalcon/mvc/model/manager.zep", 1566); @@ -95153,8 +94805,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, getRelations) { if (zephir_array_isset_fetch(&relations, _8, entityName, 0 TSRMLS_CC)) { zephir_is_iterable(relations, &_10$$7, &_9$$7, 0, 0, "phalcon/mvc/model/manager.zep", 1577); for ( - ; zephir_hash_get_current_data_ex(_10$$7, (void**) &_11$$7, &_9$$7) == SUCCESS - ; zephir_hash_move_forward_ex(_10$$7, &_9$$7) + ; zend_hash_get_current_data_ex(_10$$7, (void**) &_11$$7, &_9$$7) == SUCCESS + ; zend_hash_move_forward_ex(_10$$7, &_9$$7) ) { ZEPHIR_GET_HVALUE(relation, _11$$7); zephir_array_append(&allRelations, relation, PH_SEPARATE, "phalcon/mvc/model/manager.zep", 1575); @@ -95172,21 +94824,21 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, getRelationsBetween) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &first_param, &second_param); - if (unlikely(Z_TYPE_P(first_param) != IS_STRING && Z_TYPE_P(first_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(first_param) != IS_STRING && Z_TYPE_P(first_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'first' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(first_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(first_param) == IS_STRING)) { zephir_get_strval(first, first_param); } else { ZEPHIR_INIT_VAR(first); ZVAL_EMPTY_STRING(first); } - if (unlikely(Z_TYPE_P(second_param) != IS_STRING && Z_TYPE_P(second_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(second_param) != IS_STRING && Z_TYPE_P(second_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'second' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(second_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(second_param) == IS_STRING)) { zephir_get_strval(second, second_param); } else { ZEPHIR_INIT_VAR(second); @@ -95229,11 +94881,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, createQuery) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &phql_param); - if (unlikely(Z_TYPE_P(phql_param) != IS_STRING && Z_TYPE_P(phql_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(phql_param) != IS_STRING && Z_TYPE_P(phql_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'phql' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(phql_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(phql_param) == IS_STRING)) { zephir_get_strval(phql, phql_param); } else { ZEPHIR_INIT_VAR(phql); @@ -95271,11 +94923,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, executeQuery) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &phql_param, &placeholders, &types); - if (unlikely(Z_TYPE_P(phql_param) != IS_STRING && Z_TYPE_P(phql_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(phql_param) != IS_STRING && Z_TYPE_P(phql_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'phql' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(phql_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(phql_param) == IS_STRING)) { zephir_get_strval(phql, phql_param); } else { ZEPHIR_INIT_VAR(phql); @@ -95372,11 +95024,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, getNamespaceAlias) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &alias_param); - if (unlikely(Z_TYPE_P(alias_param) != IS_STRING && Z_TYPE_P(alias_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(alias_param) != IS_STRING && Z_TYPE_P(alias_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'alias' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(alias_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(alias_param) == IS_STRING)) { zephir_get_strval(alias, alias_param); } else { ZEPHIR_INIT_VAR(alias); @@ -95576,11 +95228,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Message, __construct) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 4, &message_param, &field, &type, &model, &code_param); - if (unlikely(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'message' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(message_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(message_param) == IS_STRING)) { zephir_get_strval(message, message_param); } else { ZEPHIR_INIT_VAR(message); @@ -95623,11 +95275,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Message, setType) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &type_param); - if (unlikely(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'type' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(type_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(type_param) == IS_STRING)) { zephir_get_strval(type, type_param); } else { ZEPHIR_INIT_VAR(type); @@ -95656,11 +95308,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Message, setMessage) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &message_param); - if (unlikely(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'message' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(message_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(message_param) == IS_STRING)) { zephir_get_strval(message, message_param); } else { ZEPHIR_INIT_VAR(message); @@ -97041,8 +96693,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getQualified) { _9$$12 = zephir_fetch_nproperty_this(this_ptr, SL("_modelsInstances"), PH_NOISY_CC); zephir_is_iterable(_9$$12, &_11$$12, &_10$$12, 0, 0, "phalcon/mvc/model/query.zep", 288); for ( - ; zephir_hash_get_current_data_ex(_11$$12, (void**) &_12$$12, &_10$$12) == SUCCESS - ; zephir_hash_move_forward_ex(_11$$12, &_10$$12) + ; zend_hash_get_current_data_ex(_11$$12, (void**) &_12$$12, &_10$$12) == SUCCESS + ; zend_hash_move_forward_ex(_11$$12, &_10$$12) ) { ZEPHIR_GET_HVALUE(model, _12$$12); ZEPHIR_CALL_METHOD(&_13$$13, metaData, "hasattribute", &_14, 0, model, columnName); @@ -97175,8 +96827,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getCaseExpression) { zephir_array_fetch_string(&_0, expr, SL("right"), PH_NOISY | PH_READONLY, "phalcon/mvc/model/query.zep", 365 TSRMLS_CC); zephir_is_iterable(_0, &_2, &_1, 0, 0, "phalcon/mvc/model/query.zep", 380); for ( - ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS - ; zephir_hash_move_forward_ex(_2, &_1) + ; zend_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS + ; zend_hash_move_forward_ex(_2, &_1) ) { ZEPHIR_GET_HVALUE(whenExpr, _3); if (zephir_array_isset_string(whenExpr, SS("right"))) { @@ -97241,8 +96893,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getFunctionCall) { array_init(functionArgs); zephir_is_iterable(arguments, &_1$$6, &_0$$6, 0, 0, "phalcon/mvc/model/query.zep", 408); for ( - ; zephir_hash_get_current_data_ex(_1$$6, (void**) &_2$$6, &_0$$6) == SUCCESS - ; zephir_hash_move_forward_ex(_1$$6, &_0$$6) + ; zend_hash_get_current_data_ex(_1$$6, (void**) &_2$$6, &_0$$6) == SUCCESS + ; zend_hash_move_forward_ex(_1$$6, &_0$$6) ) { ZEPHIR_GET_HVALUE(argument, _2$$6); ZEPHIR_CALL_METHOD(&_3$$7, this_ptr, "_getcallargument", &_4, 338, argument); @@ -97897,8 +97549,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getExpression) { array_init(listItems); zephir_is_iterable(expr, &_40$$71, &_39$$71, 0, 0, "phalcon/mvc/model/query.zep", 762); for ( - ; zephir_hash_get_current_data_ex(_40$$71, (void**) &_41$$71, &_39$$71) == SUCCESS - ; zephir_hash_move_forward_ex(_40$$71, &_39$$71) + ; zend_hash_get_current_data_ex(_40$$71, (void**) &_41$$71, &_39$$71) == SUCCESS + ; zend_hash_move_forward_ex(_40$$71, &_39$$71) ) { ZEPHIR_GET_HVALUE(exprListItem, _41$$71); ZEPHIR_CALL_METHOD(&_42$$72, this_ptr, "_getexpression", &_1, 337, exprListItem); @@ -97943,8 +97595,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getSelectColumn) { _0$$4 = zephir_fetch_nproperty_this(this_ptr, SL("_models"), PH_NOISY_CC); zephir_is_iterable(_0$$4, &_2$$4, &_1$$4, 0, 0, "phalcon/mvc/model/query.zep", 809); for ( - ; zephir_hash_get_current_data_ex(_2$$4, (void**) &_3$$4, &_1$$4) == SUCCESS - ; zephir_hash_move_forward_ex(_2$$4, &_1$$4) + ; zend_hash_get_current_data_ex(_2$$4, (void**) &_3$$4, &_1$$4) == SUCCESS + ; zend_hash_move_forward_ex(_2$$4, &_1$$4) ) { ZEPHIR_GET_HMKEY(modelName, _2$$4, _1$$4); ZEPHIR_GET_HVALUE(source, _3$$4); @@ -98189,11 +97841,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getSingleJoin) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 5, 0, &joinType_param, &joinSource, &modelAlias, &joinAlias, &relation); - if (unlikely(Z_TYPE_P(joinType_param) != IS_STRING && Z_TYPE_P(joinType_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(joinType_param) != IS_STRING && Z_TYPE_P(joinType_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'joinType' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(joinType_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(joinType_param) == IS_STRING)) { zephir_get_strval(joinType, joinType_param); } else { ZEPHIR_INIT_VAR(joinType); @@ -98236,8 +97888,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getSingleJoin) { array_init(sqlJoinPartialConditions); zephir_is_iterable(fields, &_6$$4, &_5$$4, 0, 0, "phalcon/mvc/model/query.zep", 1096); for ( - ; zephir_hash_get_current_data_ex(_6$$4, (void**) &_7$$4, &_5$$4) == SUCCESS - ; zephir_hash_move_forward_ex(_6$$4, &_5$$4) + ; zend_hash_get_current_data_ex(_6$$4, (void**) &_7$$4, &_5$$4) == SUCCESS + ; zend_hash_move_forward_ex(_6$$4, &_5$$4) ) { ZEPHIR_GET_HMKEY(position, _6$$4, _5$$4); ZEPHIR_GET_HVALUE(field, _7$$4); @@ -98326,8 +97978,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getMultiJoin) { if (Z_TYPE_P(fields) == IS_ARRAY) { zephir_is_iterable(fields, &_1$$3, &_0$$3, 0, 0, "phalcon/mvc/model/query.zep", 1223); for ( - ; zephir_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_1$$3, &_0$$3) + ; zend_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS + ; zend_hash_move_forward_ex(_1$$3, &_0$$3) ) { ZEPHIR_GET_HMKEY(field, _1$$3, _0$$3); ZEPHIR_GET_HVALUE(position, _2$$3); @@ -98493,8 +98145,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getJoins) { } zephir_is_iterable(selectJoins, &_1, &_0, 0, 0, "phalcon/mvc/model/query.zep", 1474); for ( - ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS - ; zephir_hash_move_forward_ex(_1, &_0) + ; zend_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS + ; zend_hash_move_forward_ex(_1, &_0) ) { ZEPHIR_GET_HVALUE(joinItem, _2); ZEPHIR_CALL_METHOD(&joinData, this_ptr, "_getjoin", &_3, 343, manager, joinItem); @@ -98572,8 +98224,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getJoins) { zephir_update_property_this(this_ptr, SL("_modelsInstances"), modelsInstances TSRMLS_CC); zephir_is_iterable(joinPrepared, &_13, &_12, 0, 0, "phalcon/mvc/model/query.zep", 1494); for ( - ; zephir_hash_get_current_data_ex(_13, (void**) &_14, &_12) == SUCCESS - ; zephir_hash_move_forward_ex(_13, &_12) + ; zend_hash_get_current_data_ex(_13, (void**) &_14, &_12) == SUCCESS + ; zend_hash_move_forward_ex(_13, &_12) ) { ZEPHIR_GET_HMKEY(joinAliasName, _13, _12); ZEPHIR_GET_HVALUE(joinItem, _14); @@ -98589,8 +98241,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getJoins) { ZEPHIR_INIT_VAR(_18$$14); zephir_is_iterable(joinPrepared, &_20$$14, &_19$$14, 0, 0, "phalcon/mvc/model/query.zep", 1505); for ( - ; zephir_hash_get_current_data_ex(_20$$14, (void**) &_21$$14, &_19$$14) == SUCCESS - ; zephir_hash_move_forward_ex(_20$$14, &_19$$14) + ; zend_hash_get_current_data_ex(_20$$14, (void**) &_21$$14, &_19$$14) == SUCCESS + ; zend_hash_move_forward_ex(_20$$14, &_19$$14) ) { ZEPHIR_GET_HMKEY(joinAliasName, _20$$14, _19$$14); ZEPHIR_GET_HVALUE(_18$$14, _21$$14); @@ -98616,8 +98268,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getJoins) { array_init(fromModels); zephir_is_iterable(selectTables, &_25, &_24, 0, 0, "phalcon/mvc/model/query.zep", 1519); for ( - ; zephir_hash_get_current_data_ex(_25, (void**) &_26, &_24) == SUCCESS - ; zephir_hash_move_forward_ex(_25, &_24) + ; zend_hash_get_current_data_ex(_25, (void**) &_26, &_24) == SUCCESS + ; zend_hash_move_forward_ex(_25, &_24) ) { ZEPHIR_GET_HVALUE(tableItem, _26); zephir_array_fetch_string(&_27$$16, tableItem, SL("qualifiedName"), PH_NOISY | PH_READONLY, "phalcon/mvc/model/query.zep", 1513 TSRMLS_CC); @@ -98628,15 +98280,15 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getJoins) { ZEPHIR_INIT_VAR(_29); zephir_is_iterable(fromModels, &_31, &_30, 0, 0, "phalcon/mvc/model/query.zep", 1627); for ( - ; zephir_hash_get_current_data_ex(_31, (void**) &_32, &_30) == SUCCESS - ; zephir_hash_move_forward_ex(_31, &_30) + ; zend_hash_get_current_data_ex(_31, (void**) &_32, &_30) == SUCCESS + ; zend_hash_move_forward_ex(_31, &_30) ) { ZEPHIR_GET_HMKEY(fromModelName, _31, _30); ZEPHIR_GET_HVALUE(_29, _32); zephir_is_iterable(joinModels, &_34$$17, &_33$$17, 0, 0, "phalcon/mvc/model/query.zep", 1625); for ( - ; zephir_hash_get_current_data_ex(_34$$17, (void**) &_35$$17, &_33$$17) == SUCCESS - ; zephir_hash_move_forward_ex(_34$$17, &_33$$17) + ; zend_hash_get_current_data_ex(_34$$17, (void**) &_35$$17, &_33$$17) == SUCCESS + ; zend_hash_move_forward_ex(_34$$17, &_33$$17) ) { ZEPHIR_GET_HMKEY(joinAlias, _34$$17, _33$$17); ZEPHIR_GET_HVALUE(joinModel, _35$$17); @@ -98685,8 +98337,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getJoins) { if (zephir_array_isset_long(sqlJoin, 0)) { zephir_is_iterable(sqlJoin, &_45$$26, &_44$$26, 0, 0, "phalcon/mvc/model/query.zep", 1597); for ( - ; zephir_hash_get_current_data_ex(_45$$26, (void**) &_46$$26, &_44$$26) == SUCCESS - ; zephir_hash_move_forward_ex(_45$$26, &_44$$26) + ; zend_hash_get_current_data_ex(_45$$26, (void**) &_46$$26, &_44$$26) == SUCCESS + ; zend_hash_move_forward_ex(_45$$26, &_44$$26) ) { ZEPHIR_GET_HVALUE(sqlJoinItem, _46$$26); zephir_array_append(&sqlJoins, sqlJoinItem, PH_SEPARATE, "phalcon/mvc/model/query.zep", 1595); @@ -98745,8 +98397,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getOrderClause) { array_init(orderParts); zephir_is_iterable(orderColumns, &_1, &_0, 0, 0, "phalcon/mvc/model/query.zep", 1668); for ( - ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS - ; zephir_hash_move_forward_ex(_1, &_0) + ; zend_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS + ; zend_hash_move_forward_ex(_1, &_0) ) { ZEPHIR_GET_HVALUE(orderItem, _2); zephir_array_fetch_string(&_3$$5, orderItem, SL("column"), PH_NOISY | PH_READONLY, "phalcon/mvc/model/query.zep", 1650 TSRMLS_CC); @@ -98798,8 +98450,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getGroupClause) { array_init(groupParts); zephir_is_iterable(group, &_1$$3, &_0$$3, 0, 0, "phalcon/mvc/model/query.zep", 1686); for ( - ; zephir_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_1$$3, &_0$$3) + ; zend_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS + ; zend_hash_move_forward_ex(_1$$3, &_0$$3) ) { ZEPHIR_GET_HVALUE(groupItem, _2$$3); ZEPHIR_CALL_METHOD(&_3$$4, this_ptr, "_getexpression", &_4, 337, groupItem); @@ -98943,8 +98595,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _prepareSelect) { array_init(automaticJoins); zephir_is_iterable(selectedModels, &_1, &_0, 0, 0, "phalcon/mvc/model/query.zep", 1940); for ( - ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS - ; zephir_hash_move_forward_ex(_1, &_0) + ; zend_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS + ; zend_hash_move_forward_ex(_1, &_0) ) { ZEPHIR_GET_HVALUE(selectedModel, _2); ZEPHIR_OBS_NVAR(qualifiedName); @@ -99026,8 +98678,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _prepareSelect) { } zephir_is_iterable(withs, &_14$$24, &_13$$24, 0, 0, "phalcon/mvc/model/query.zep", 1932); for ( - ; zephir_hash_get_current_data_ex(_14$$24, (void**) &_15$$24, &_13$$24) == SUCCESS - ; zephir_hash_move_forward_ex(_14$$24, &_13$$24) + ; zend_hash_get_current_data_ex(_14$$24, (void**) &_15$$24, &_13$$24) == SUCCESS + ; zend_hash_move_forward_ex(_14$$24, &_13$$24) ) { ZEPHIR_GET_HVALUE(withItem, _15$$24); ZEPHIR_SINIT_NVAR(_16$$27); @@ -99179,16 +98831,16 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _prepareSelect) { array_init(sqlColumnAliases); zephir_is_iterable(selectColumns, &_43, &_42, 0, 0, "phalcon/mvc/model/query.zep", 2025); for ( - ; zephir_hash_get_current_data_ex(_43, (void**) &_44, &_42) == SUCCESS - ; zephir_hash_move_forward_ex(_43, &_42) + ; zend_hash_get_current_data_ex(_43, (void**) &_44, &_42) == SUCCESS + ; zend_hash_move_forward_ex(_43, &_42) ) { ZEPHIR_GET_HVALUE(column, _44); ZEPHIR_CALL_METHOD(&_45$$41, this_ptr, "_getselectcolumn", &_46, 348, column); zephir_check_call_status(); zephir_is_iterable(_45$$41, &_48$$41, &_47$$41, 0, 0, "phalcon/mvc/model/query.zep", 2024); for ( - ; zephir_hash_get_current_data_ex(_48$$41, (void**) &_49$$41, &_47$$41) == SUCCESS - ; zephir_hash_move_forward_ex(_48$$41, &_47$$41) + ; zend_hash_get_current_data_ex(_48$$41, (void**) &_49$$41, &_47$$41) == SUCCESS + ; zend_hash_move_forward_ex(_48$$41, &_47$$41) ) { ZEPHIR_GET_HVALUE(sqlColumn, _49$$41); ZEPHIR_OBS_NVAR(alias); @@ -99339,8 +98991,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _prepareInsert) { zephir_array_fetch_string(&_4, ast, SL("values"), PH_NOISY | PH_READONLY, "phalcon/mvc/model/query.zep", 2133 TSRMLS_CC); zephir_is_iterable(_4, &_6, &_5, 0, 0, "phalcon/mvc/model/query.zep", 2142); for ( - ; zephir_hash_get_current_data_ex(_6, (void**) &_7, &_5) == SUCCESS - ; zephir_hash_move_forward_ex(_6, &_5) + ; zend_hash_get_current_data_ex(_6, (void**) &_7, &_5) == SUCCESS + ; zend_hash_move_forward_ex(_6, &_5) ) { ZEPHIR_GET_HVALUE(exprValue, _7); ZEPHIR_INIT_NVAR(_8$$9); @@ -99371,8 +99023,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _prepareInsert) { array_init(sqlFields); zephir_is_iterable(fields, &_14$$10, &_13$$10, 0, 0, "phalcon/mvc/model/query.zep", 2166); for ( - ; zephir_hash_get_current_data_ex(_14$$10, (void**) &_15$$10, &_13$$10) == SUCCESS - ; zephir_hash_move_forward_ex(_14$$10, &_13$$10) + ; zend_hash_get_current_data_ex(_14$$10, (void**) &_15$$10, &_13$$10) == SUCCESS + ; zend_hash_move_forward_ex(_14$$10, &_13$$10) ) { ZEPHIR_GET_HVALUE(field, _15$$10); ZEPHIR_OBS_NVAR(name); @@ -99452,8 +99104,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _prepareUpdate) { zephir_read_property_this(&manager, this_ptr, SL("_manager"), PH_NOISY_CC); zephir_is_iterable(updateTables, &_1, &_0, 0, 0, "phalcon/mvc/model/query.zep", 2273); for ( - ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS - ; zephir_hash_move_forward_ex(_1, &_0) + ; zend_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS + ; zend_hash_move_forward_ex(_1, &_0) ) { ZEPHIR_GET_HVALUE(table, _2); ZEPHIR_OBS_NVAR(qualifiedName); @@ -99524,8 +99176,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _prepareUpdate) { notQuoting = 0; zephir_is_iterable(updateValues, &_10, &_9, 0, 0, "phalcon/mvc/model/query.zep", 2297); for ( - ; zephir_hash_get_current_data_ex(_10, (void**) &_11, &_9) == SUCCESS - ; zephir_hash_move_forward_ex(_10, &_9) + ; zend_hash_get_current_data_ex(_10, (void**) &_11, &_9) == SUCCESS + ; zend_hash_move_forward_ex(_10, &_9) ) { ZEPHIR_GET_HVALUE(updateValue, _11); zephir_array_fetch_string(&_13$$17, updateValue, SL("column"), PH_NOISY | PH_READONLY, "phalcon/mvc/model/query.zep", 2289 TSRMLS_CC); @@ -99625,8 +99277,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _prepareDelete) { zephir_read_property_this(&manager, this_ptr, SL("_manager"), PH_NOISY_CC); zephir_is_iterable(deleteTables, &_1, &_0, 0, 0, "phalcon/mvc/model/query.zep", 2403); for ( - ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS - ; zephir_hash_move_forward_ex(_1, &_0) + ; zend_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS + ; zend_hash_move_forward_ex(_1, &_0) ) { ZEPHIR_GET_HVALUE(table, _2); ZEPHIR_OBS_NVAR(qualifiedName); @@ -99827,8 +99479,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _executeSelect) { zephir_array_fetch_string(&models, intermediate, SL("models"), PH_NOISY, "phalcon/mvc/model/query.zep", 2536 TSRMLS_CC); zephir_is_iterable(models, &_1, &_0, 0, 0, "phalcon/mvc/model/query.zep", 2564); for ( - ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS - ; zephir_hash_move_forward_ex(_1, &_0) + ; zend_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS + ; zend_hash_move_forward_ex(_1, &_0) ) { ZEPHIR_GET_HVALUE(modelName, _2); ZEPHIR_OBS_NVAR(model); @@ -99868,8 +99520,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _executeSelect) { ZEPHIR_CPY_WRT(columns1, columns); zephir_is_iterable(columns, &_8, &_7, 0, 0, "phalcon/mvc/model/query.zep", 2591); for ( - ; zephir_hash_get_current_data_ex(_8, (void**) &_9, &_7) == SUCCESS - ; zephir_hash_move_forward_ex(_8, &_7) + ; zend_hash_get_current_data_ex(_8, (void**) &_9, &_7) == SUCCESS + ; zend_hash_move_forward_ex(_8, &_7) ) { ZEPHIR_GET_HVALUE(column, _9); if (Z_TYPE_P(column) != IS_ARRAY) { @@ -99912,8 +99564,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _executeSelect) { zephir_read_property_this(&metaData, this_ptr, SL("_metaData"), PH_NOISY_CC); zephir_is_iterable(columns, &_12, &_11, 0, 0, "phalcon/mvc/model/query.zep", 2690); for ( - ; zephir_hash_get_current_data_ex(_12, (void**) &_13, &_11) == SUCCESS - ; zephir_hash_move_forward_ex(_12, &_11) + ; zend_hash_get_current_data_ex(_12, (void**) &_13, &_11) == SUCCESS + ; zend_hash_move_forward_ex(_12, &_11) ) { ZEPHIR_GET_HMKEY(aliasCopy, _12, _11); ZEPHIR_GET_HVALUE(column, _13); @@ -99942,8 +99594,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _executeSelect) { } zephir_is_iterable(attributes, &_20$$24, &_19$$24, 0, 0, "phalcon/mvc/model/query.zep", 2646); for ( - ; zephir_hash_get_current_data_ex(_20$$24, (void**) &_21$$24, &_19$$24) == SUCCESS - ; zephir_hash_move_forward_ex(_20$$24, &_19$$24) + ; zend_hash_get_current_data_ex(_20$$24, (void**) &_21$$24, &_19$$24) == SUCCESS + ; zend_hash_move_forward_ex(_20$$24, &_19$$24) ) { ZEPHIR_GET_HVALUE(attribute, _21$$24); ZEPHIR_INIT_NVAR(_22$$27); @@ -99969,8 +99621,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _executeSelect) { } else { zephir_is_iterable(attributes, &_28$$29, &_27$$29, 0, 0, "phalcon/mvc/model/query.zep", 2664); for ( - ; zephir_hash_get_current_data_ex(_28$$29, (void**) &_29$$29, &_27$$29) == SUCCESS - ; zephir_hash_move_forward_ex(_28$$29, &_27$$29) + ; zend_hash_get_current_data_ex(_28$$29, (void**) &_29$$29, &_27$$29) == SUCCESS + ; zend_hash_move_forward_ex(_28$$29, &_27$$29) ) { ZEPHIR_GET_HVALUE(attribute, _29$$29); ZEPHIR_INIT_NVAR(_30$$30); @@ -100015,8 +99667,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _executeSelect) { array_init(processed); zephir_is_iterable(bindParams, &_33$$37, &_32$$37, 0, 0, "phalcon/mvc/model/query.zep", 2711); for ( - ; zephir_hash_get_current_data_ex(_33$$37, (void**) &_34$$37, &_32$$37) == SUCCESS - ; zephir_hash_move_forward_ex(_33$$37, &_32$$37) + ; zend_hash_get_current_data_ex(_33$$37, (void**) &_34$$37, &_32$$37) == SUCCESS + ; zend_hash_move_forward_ex(_33$$37, &_32$$37) ) { ZEPHIR_GET_HMKEY(wildcard, _33$$37, _32$$37); ZEPHIR_GET_HVALUE(value, _34$$37); @@ -100041,8 +99693,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _executeSelect) { array_init(processedTypes); zephir_is_iterable(bindTypes, &_37$$43, &_36$$43, 0, 0, "phalcon/mvc/model/query.zep", 2727); for ( - ; zephir_hash_get_current_data_ex(_37$$43, (void**) &_38$$43, &_36$$43) == SUCCESS - ; zephir_hash_move_forward_ex(_37$$43, &_36$$43) + ; zend_hash_get_current_data_ex(_37$$43, (void**) &_38$$43, &_36$$43) == SUCCESS + ; zend_hash_move_forward_ex(_37$$43, &_36$$43) ) { ZEPHIR_GET_HMKEY(typeWildcard, _37$$43, _36$$43); ZEPHIR_GET_HVALUE(value, _38$$43); @@ -100119,8 +99771,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _executeSelect) { zephir_check_call_status(); zephir_is_iterable(_43$$60, &_45$$60, &_44$$60, 0, 0, "phalcon/mvc/model/query.zep", 2813); for ( - ; zephir_hash_get_current_data_ex(_45$$60, (void**) &_46$$60, &_44$$60) == SUCCESS - ; zephir_hash_move_forward_ex(_45$$60, &_44$$60) + ; zend_hash_get_current_data_ex(_45$$60, (void**) &_46$$60, &_44$$60) == SUCCESS + ; zend_hash_move_forward_ex(_45$$60, &_44$$60) ) { ZEPHIR_GET_HVALUE(attribute, _46$$60); ZEPHIR_INIT_NVAR(_47$$61); @@ -100135,8 +99787,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _executeSelect) { array_init(simpleColumnMap); zephir_is_iterable(columnMap, &_50$$62, &_49$$62, 0, 0, "phalcon/mvc/model/query.zep", 2818); for ( - ; zephir_hash_get_current_data_ex(_50$$62, (void**) &_51$$62, &_49$$62) == SUCCESS - ; zephir_hash_move_forward_ex(_50$$62, &_49$$62) + ; zend_hash_get_current_data_ex(_50$$62, (void**) &_51$$62, &_49$$62) == SUCCESS + ; zend_hash_move_forward_ex(_50$$62, &_49$$62) ) { ZEPHIR_GET_HMKEY(column, _50$$62, _49$$62); ZEPHIR_GET_HVALUE(attribute, _51$$62); @@ -100288,8 +99940,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _executeInsert) { array_init(insertValues); zephir_is_iterable(values, &_3, &_2, 0, 0, "phalcon/mvc/model/query.zep", 2983); for ( - ; zephir_hash_get_current_data_ex(_3, (void**) &_4, &_2) == SUCCESS - ; zephir_hash_move_forward_ex(_3, &_2) + ; zend_hash_get_current_data_ex(_3, (void**) &_4, &_2) == SUCCESS + ; zend_hash_move_forward_ex(_3, &_2) ) { ZEPHIR_GET_HMKEY(number, _3, _2); ZEPHIR_GET_HVALUE(value, _4); @@ -100433,8 +100085,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _executeUpdate) { ZEPHIR_CPY_WRT(selectBindTypes, bindTypes); zephir_is_iterable(fields, &_3, &_2, 0, 0, "phalcon/mvc/model/query.zep", 3103); for ( - ; zephir_hash_get_current_data_ex(_3, (void**) &_4, &_2) == SUCCESS - ; zephir_hash_move_forward_ex(_3, &_2) + ; zend_hash_get_current_data_ex(_3, (void**) &_4, &_2) == SUCCESS + ; zend_hash_move_forward_ex(_3, &_2) ) { ZEPHIR_GET_HMKEY(number, _3, _2); ZEPHIR_GET_HVALUE(field, _4); @@ -101202,11 +100854,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Relation, __construct) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 4, 1, &type, &referencedModel_param, &fields, &referencedFields, &options); - if (unlikely(Z_TYPE_P(referencedModel_param) != IS_STRING && Z_TYPE_P(referencedModel_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(referencedModel_param) != IS_STRING && Z_TYPE_P(referencedModel_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'referencedModel' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(referencedModel_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(referencedModel_param) == IS_STRING)) { zephir_get_strval(referencedModel, referencedModel_param); } else { ZEPHIR_INIT_VAR(referencedModel); @@ -101234,11 +100886,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Relation, setIntermediateRelation) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &intermediateFields, &intermediateModel_param, &intermediateReferencedFields); - if (unlikely(Z_TYPE_P(intermediateModel_param) != IS_STRING && Z_TYPE_P(intermediateModel_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(intermediateModel_param) != IS_STRING && Z_TYPE_P(intermediateModel_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'intermediateModel' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(intermediateModel_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(intermediateModel_param) == IS_STRING)) { zephir_get_strval(intermediateModel, intermediateModel_param); } else { ZEPHIR_INIT_VAR(intermediateModel); @@ -101301,11 +100953,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Relation, getOption) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -101760,7 +101412,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Resultset, offsetGet) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &index_param); - if (unlikely(Z_TYPE_P(index_param) != IS_LONG)) { + if (UNEXPECTED(Z_TYPE_P(index_param) != IS_LONG)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'index' must be a int") TSRMLS_CC); RETURN_MM_NULL(); } @@ -102326,11 +101978,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Row, writeAttribute) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &attribute_param, &value); - if (unlikely(Z_TYPE_P(attribute_param) != IS_STRING && Z_TYPE_P(attribute_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(attribute_param) != IS_STRING && Z_TYPE_P(attribute_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'attribute' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(attribute_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(attribute_param) == IS_STRING)) { zephir_get_strval(attribute, attribute_param); } else { ZEPHIR_INIT_VAR(attribute); @@ -102793,11 +102445,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Validator, appendMessage) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &message_param, &field, &type); - if (unlikely(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'message' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(message_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(message_param) == IS_STRING)) { zephir_get_strval(message, message_param); } else { ZEPHIR_INIT_VAR(message); @@ -102856,11 +102508,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Validator, getOption) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &option_param, &defaultValue); - if (unlikely(Z_TYPE_P(option_param) != IS_STRING && Z_TYPE_P(option_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(option_param) != IS_STRING && Z_TYPE_P(option_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'option' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(option_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(option_param) == IS_STRING)) { zephir_get_strval(option, option_param); } else { ZEPHIR_INIT_VAR(option); @@ -102889,11 +102541,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Validator, isSetOption) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &option_param); - if (unlikely(Z_TYPE_P(option_param) != IS_STRING && Z_TYPE_P(option_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(option_param) != IS_STRING && Z_TYPE_P(option_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'option' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(option_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(option_param) == IS_STRING)) { zephir_get_strval(option, option_param); } else { ZEPHIR_INIT_VAR(option); @@ -102979,11 +102631,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Behavior_SoftDelete, notify) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &type_param, &model); - if (unlikely(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'type' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(type_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(type_param) == IS_STRING)) { zephir_get_strval(type, type_param); } else { ZEPHIR_INIT_VAR(type); @@ -103024,8 +102676,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Behavior_SoftDelete, notify) { zephir_check_call_status(); zephir_is_iterable(_3$$7, &_5$$7, &_4$$7, 0, 0, "phalcon/mvc/model/behavior/softdelete.zep", 89); for ( - ; zephir_hash_get_current_data_ex(_5$$7, (void**) &_6$$7, &_4$$7) == SUCCESS - ; zephir_hash_move_forward_ex(_5$$7, &_4$$7) + ; zend_hash_get_current_data_ex(_5$$7, (void**) &_6$$7, &_4$$7) == SUCCESS + ; zend_hash_move_forward_ex(_5$$7, &_4$$7) ) { ZEPHIR_GET_HVALUE(message, _6$$7); ZEPHIR_CALL_METHOD(NULL, model, "appendmessage", &_7, 0, message); @@ -103071,11 +102723,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Behavior_Timestampable, notify) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &type_param, &model); - if (unlikely(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'type' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(type_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(type_param) == IS_STRING)) { zephir_get_strval(type, type_param); } else { ZEPHIR_INIT_VAR(type); @@ -103121,8 +102773,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Behavior_Timestampable, notify) { if (Z_TYPE_P(field) == IS_ARRAY) { zephir_is_iterable(field, &_2$$12, &_1$$12, 0, 0, "phalcon/mvc/model/behavior/timestampable.zep", 94); for ( - ; zephir_hash_get_current_data_ex(_2$$12, (void**) &_3$$12, &_1$$12) == SUCCESS - ; zephir_hash_move_forward_ex(_2$$12, &_1$$12) + ; zend_hash_get_current_data_ex(_2$$12, (void**) &_3$$12, &_1$$12) == SUCCESS + ; zend_hash_move_forward_ex(_2$$12, &_1$$12) ) { ZEPHIR_GET_HVALUE(singleField, _3$$12); ZEPHIR_CALL_METHOD(NULL, model, "writeattribute", &_4, 0, singleField, timestamp); @@ -103213,11 +102865,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Apc, read) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &key_param); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { ZEPHIR_INIT_VAR(key); @@ -103246,11 +102898,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Apc, write) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &key_param, &data); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { ZEPHIR_INIT_VAR(key); @@ -103339,11 +102991,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Files, read) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &key_param); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { ZEPHIR_INIT_VAR(key); @@ -103377,11 +103029,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Files, write) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &key_param, &data); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { ZEPHIR_INIT_VAR(key); @@ -103516,11 +103168,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Libmemcached, read) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &key_param); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { ZEPHIR_INIT_VAR(key); @@ -103547,11 +103199,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Libmemcached, write) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &key_param, &data); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { ZEPHIR_INIT_VAR(key); @@ -103582,8 +103234,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Libmemcached, reset) { ZEPHIR_INIT_VAR(_0$$3); zephir_is_iterable(meta, &_2$$3, &_1$$3, 0, 0, "phalcon/mvc/model/metadata/libmemcached.zep", 132); for ( - ; zephir_hash_get_current_data_ex(_2$$3, (void**) &_3$$3, &_1$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_2$$3, &_1$$3) + ; zend_hash_get_current_data_ex(_2$$3, (void**) &_3$$3, &_1$$3) == SUCCESS + ; zend_hash_move_forward_ex(_2$$3, &_1$$3) ) { ZEPHIR_GET_HMKEY(key, _2$$3, _1$$3); ZEPHIR_GET_HVALUE(_0$$3, _3$$3); @@ -103716,11 +103368,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Memcache, read) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &key_param); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { ZEPHIR_INIT_VAR(key); @@ -103747,11 +103399,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Memcache, write) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &key_param, &data); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { ZEPHIR_INIT_VAR(key); @@ -103782,8 +103434,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Memcache, reset) { ZEPHIR_INIT_VAR(_0$$3); zephir_is_iterable(meta, &_2$$3, &_1$$3, 0, 0, "phalcon/mvc/model/metadata/memcache.zep", 131); for ( - ; zephir_hash_get_current_data_ex(_2$$3, (void**) &_3$$3, &_1$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_2$$3, &_1$$3) + ; zend_hash_get_current_data_ex(_2$$3, (void**) &_3$$3, &_1$$3) == SUCCESS + ; zend_hash_move_forward_ex(_2$$3, &_1$$3) ) { ZEPHIR_GET_HMKEY(key, _2$$3, _1$$3); ZEPHIR_GET_HVALUE(_0$$3, _3$$3); @@ -103864,11 +103516,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Memory, read) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &key_param); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { ZEPHIR_INIT_VAR(key); @@ -103888,11 +103540,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Memory, write) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &key_param, &data); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { ZEPHIR_INIT_VAR(key); @@ -104020,11 +103672,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Redis, read) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &key_param); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { ZEPHIR_INIT_VAR(key); @@ -104051,11 +103703,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Redis, write) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &key_param, &data); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { ZEPHIR_INIT_VAR(key); @@ -104086,8 +103738,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Redis, reset) { ZEPHIR_INIT_VAR(_0$$3); zephir_is_iterable(meta, &_2$$3, &_1$$3, 0, 0, "phalcon/mvc/model/metadata/redis.zep", 134); for ( - ; zephir_hash_get_current_data_ex(_2$$3, (void**) &_3$$3, &_1$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_2$$3, &_1$$3) + ; zend_hash_get_current_data_ex(_2$$3, (void**) &_3$$3, &_1$$3) == SUCCESS + ; zend_hash_move_forward_ex(_2$$3, &_1$$3) ) { ZEPHIR_GET_HMKEY(key, _2$$3, _1$$3); ZEPHIR_GET_HVALUE(_0$$3, _3$$3); @@ -104173,11 +103825,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Session, read) { zephir_get_global(&_SESSION, SS("_SESSION") TSRMLS_CC); zephir_fetch_params(1, 1, 0, &key_param); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { ZEPHIR_INIT_VAR(key); @@ -104205,11 +103857,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Session, write) { zephir_get_global(&_SESSION, SS("_SESSION") TSRMLS_CC); zephir_fetch_params(1, 2, 0, &key_param, &data); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { ZEPHIR_INIT_VAR(key); @@ -104303,11 +103955,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Xcache, read) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &key_param); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { ZEPHIR_INIT_VAR(key); @@ -104336,11 +103988,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Xcache, write) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &key_param, &data); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { ZEPHIR_INIT_VAR(key); @@ -104472,8 +104124,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Strategy_Annotations, getMetaData) array_init(emptyStringValues); zephir_is_iterable(propertiesAnnotations, &_6, &_5, 0, 0, "phalcon/mvc/model/metadata/strategy/annotations.zep", 184); for ( - ; zephir_hash_get_current_data_ex(_6, (void**) &_7, &_5) == SUCCESS - ; zephir_hash_move_forward_ex(_6, &_5) + ; zend_hash_get_current_data_ex(_6, (void**) &_7, &_5) == SUCCESS + ; zend_hash_move_forward_ex(_6, &_5) ) { ZEPHIR_GET_HMKEY(property, _6, _5); ZEPHIR_GET_HVALUE(propAnnotations, _7); @@ -104685,8 +104337,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Strategy_Annotations, getColumnMaps ZVAL_NULL(reversedColumnMap); zephir_is_iterable(propertiesAnnotations, &_6, &_5, 0, 0, "phalcon/mvc/model/metadata/strategy/annotations.zep", 262); for ( - ; zephir_hash_get_current_data_ex(_6, (void**) &_7, &_5) == SUCCESS - ; zephir_hash_move_forward_ex(_6, &_5) + ; zend_hash_get_current_data_ex(_6, (void**) &_7, &_5) == SUCCESS + ; zend_hash_move_forward_ex(_6, &_5) ) { ZEPHIR_GET_HMKEY(property, _6, _5); ZEPHIR_GET_HVALUE(propAnnotations, _7); @@ -104830,8 +104482,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Strategy_Introspection, getMetaData array_init(emptyStringValues); zephir_is_iterable(columns, &_8, &_7, 0, 0, "phalcon/mvc/model/metadata/strategy/introspection.zep", 165); for ( - ; zephir_hash_get_current_data_ex(_8, (void**) &_9, &_7) == SUCCESS - ; zephir_hash_move_forward_ex(_8, &_7) + ; zend_hash_get_current_data_ex(_8, (void**) &_9, &_7) == SUCCESS + ; zend_hash_move_forward_ex(_8, &_7) ) { ZEPHIR_GET_HVALUE(column, _9); ZEPHIR_CALL_METHOD(&fieldName, column, "getname", NULL, 0); @@ -104926,8 +104578,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Strategy_Introspection, getColumnMa ZEPHIR_CPY_WRT(orderedColumnMap, userColumnMap); zephir_is_iterable(userColumnMap, &_1$$3, &_0$$3, 0, 0, "phalcon/mvc/model/metadata/strategy/introspection.zep", 205); for ( - ; zephir_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_1$$3, &_0$$3) + ; zend_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS + ; zend_hash_move_forward_ex(_1$$3, &_0$$3) ) { ZEPHIR_GET_HMKEY(name, _1$$3, _0$$3); ZEPHIR_GET_HVALUE(userName, _2$$3); @@ -105032,8 +104684,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, __construct) { array_init(mergedTypes); zephir_is_iterable(conditions, &_1$$7, &_0$$7, 0, 0, "phalcon/mvc/model/query/builder.zep", 152); for ( - ; zephir_hash_get_current_data_ex(_1$$7, (void**) &_2$$7, &_0$$7) == SUCCESS - ; zephir_hash_move_forward_ex(_1$$7, &_0$$7) + ; zend_hash_get_current_data_ex(_1$$7, (void**) &_2$$7, &_0$$7) == SUCCESS + ; zend_hash_move_forward_ex(_1$$7, &_0$$7) ) { ZEPHIR_GET_HVALUE(singleConditionArray, _2$$7); if (Z_TYPE_P(singleConditionArray) == IS_ARRAY) { @@ -105285,11 +104937,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, join) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 3, &model_param, &conditions, &alias, &type); - if (unlikely(Z_TYPE_P(model_param) != IS_STRING && Z_TYPE_P(model_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(model_param) != IS_STRING && Z_TYPE_P(model_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'model' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(model_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(model_param) == IS_STRING)) { zephir_get_strval(model, model_param); } else { ZEPHIR_INIT_VAR(model); @@ -105326,11 +104978,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, innerJoin) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &model_param, &conditions, &alias); - if (unlikely(Z_TYPE_P(model_param) != IS_STRING && Z_TYPE_P(model_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(model_param) != IS_STRING && Z_TYPE_P(model_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'model' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(model_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(model_param) == IS_STRING)) { zephir_get_strval(model, model_param); } else { ZEPHIR_INIT_VAR(model); @@ -105366,11 +105018,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, leftJoin) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &model_param, &conditions, &alias); - if (unlikely(Z_TYPE_P(model_param) != IS_STRING && Z_TYPE_P(model_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(model_param) != IS_STRING && Z_TYPE_P(model_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'model' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(model_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(model_param) == IS_STRING)) { zephir_get_strval(model, model_param); } else { ZEPHIR_INIT_VAR(model); @@ -105406,11 +105058,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, rightJoin) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &model_param, &conditions, &alias); - if (unlikely(Z_TYPE_P(model_param) != IS_STRING && Z_TYPE_P(model_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(model_param) != IS_STRING && Z_TYPE_P(model_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'model' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(model_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(model_param) == IS_STRING)) { zephir_get_strval(model, model_param); } else { ZEPHIR_INIT_VAR(model); @@ -105494,11 +105146,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, andWhere) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &conditions_param, &bindParams, &bindTypes); - if (unlikely(Z_TYPE_P(conditions_param) != IS_STRING && Z_TYPE_P(conditions_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(conditions_param) != IS_STRING && Z_TYPE_P(conditions_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'conditions' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(conditions_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(conditions_param) == IS_STRING)) { zephir_get_strval(conditions, conditions_param); } else { ZEPHIR_INIT_VAR(conditions); @@ -105534,11 +105186,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, orWhere) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &conditions_param, &bindParams, &bindTypes); - if (unlikely(Z_TYPE_P(conditions_param) != IS_STRING && Z_TYPE_P(conditions_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(conditions_param) != IS_STRING && Z_TYPE_P(conditions_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'conditions' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(conditions_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(conditions_param) == IS_STRING)) { zephir_get_strval(conditions, conditions_param); } else { ZEPHIR_INIT_VAR(conditions); @@ -105576,11 +105228,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, betweenWhere) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 1, &expr_param, &minimum, &maximum, &operator_param); - if (unlikely(Z_TYPE_P(expr_param) != IS_STRING && Z_TYPE_P(expr_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(expr_param) != IS_STRING && Z_TYPE_P(expr_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'expr' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(expr_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(expr_param) == IS_STRING)) { zephir_get_strval(expr, expr_param); } else { ZEPHIR_INIT_VAR(expr); @@ -105590,11 +105242,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, betweenWhere) { ZEPHIR_INIT_VAR(operator); ZVAL_STRING(operator, "and", 1); } else { - if (unlikely(Z_TYPE_P(operator_param) != IS_STRING && Z_TYPE_P(operator_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(operator_param) != IS_STRING && Z_TYPE_P(operator_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'operator' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(operator_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(operator_param) == IS_STRING)) { zephir_get_strval(operator, operator_param); } else { ZEPHIR_INIT_VAR(operator); @@ -105657,11 +105309,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, notBetweenWhere) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 1, &expr_param, &minimum, &maximum, &operator_param); - if (unlikely(Z_TYPE_P(expr_param) != IS_STRING && Z_TYPE_P(expr_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(expr_param) != IS_STRING && Z_TYPE_P(expr_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'expr' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(expr_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(expr_param) == IS_STRING)) { zephir_get_strval(expr, expr_param); } else { ZEPHIR_INIT_VAR(expr); @@ -105671,11 +105323,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, notBetweenWhere) { ZEPHIR_INIT_VAR(operator); ZVAL_STRING(operator, "and", 1); } else { - if (unlikely(Z_TYPE_P(operator_param) != IS_STRING && Z_TYPE_P(operator_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(operator_param) != IS_STRING && Z_TYPE_P(operator_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'operator' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(operator_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(operator_param) == IS_STRING)) { zephir_get_strval(operator, operator_param); } else { ZEPHIR_INIT_VAR(operator); @@ -105740,11 +105392,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, inWhere) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 1, &expr_param, &values_param, &operator_param); - if (unlikely(Z_TYPE_P(expr_param) != IS_STRING && Z_TYPE_P(expr_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(expr_param) != IS_STRING && Z_TYPE_P(expr_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'expr' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(expr_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(expr_param) == IS_STRING)) { zephir_get_strval(expr, expr_param); } else { ZEPHIR_INIT_VAR(expr); @@ -105755,11 +105407,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, inWhere) { ZEPHIR_INIT_VAR(operator); ZVAL_STRING(operator, "and", 1); } else { - if (unlikely(Z_TYPE_P(operator_param) != IS_STRING && Z_TYPE_P(operator_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(operator_param) != IS_STRING && Z_TYPE_P(operator_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'operator' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(operator_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(operator_param) == IS_STRING)) { zephir_get_strval(operator, operator_param); } else { ZEPHIR_INIT_VAR(operator); @@ -105804,8 +105456,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, inWhere) { array_init(bindKeys); zephir_is_iterable(values, &_8, &_7, 0, 0, "phalcon/mvc/model/query/builder.zep", 804); for ( - ; zephir_hash_get_current_data_ex(_8, (void**) &_9, &_7) == SUCCESS - ; zephir_hash_move_forward_ex(_8, &_7) + ; zend_hash_get_current_data_ex(_8, (void**) &_9, &_7) == SUCCESS + ; zend_hash_move_forward_ex(_8, &_7) ) { ZEPHIR_GET_HVALUE(value, _9); ZEPHIR_SINIT_NVAR(_10$$5); @@ -105845,11 +105497,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, notInWhere) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 1, &expr_param, &values_param, &operator_param); - if (unlikely(Z_TYPE_P(expr_param) != IS_STRING && Z_TYPE_P(expr_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(expr_param) != IS_STRING && Z_TYPE_P(expr_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'expr' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(expr_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(expr_param) == IS_STRING)) { zephir_get_strval(expr, expr_param); } else { ZEPHIR_INIT_VAR(expr); @@ -105860,11 +105512,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, notInWhere) { ZEPHIR_INIT_VAR(operator); ZVAL_STRING(operator, "and", 1); } else { - if (unlikely(Z_TYPE_P(operator_param) != IS_STRING && Z_TYPE_P(operator_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(operator_param) != IS_STRING && Z_TYPE_P(operator_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'operator' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(operator_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(operator_param) == IS_STRING)) { zephir_get_strval(operator, operator_param); } else { ZEPHIR_INIT_VAR(operator); @@ -105909,8 +105561,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, notInWhere) { array_init(bindKeys); zephir_is_iterable(values, &_8, &_7, 0, 0, "phalcon/mvc/model/query/builder.zep", 853); for ( - ; zephir_hash_get_current_data_ex(_8, (void**) &_9, &_7) == SUCCESS - ; zephir_hash_move_forward_ex(_8, &_7) + ; zend_hash_get_current_data_ex(_8, (void**) &_9, &_7) == SUCCESS + ; zend_hash_move_forward_ex(_8, &_7) ) { ZEPHIR_GET_HVALUE(value, _9); ZEPHIR_SINIT_NVAR(_10$$5); @@ -105974,11 +105626,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, having) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &having_param); - if (unlikely(Z_TYPE_P(having_param) != IS_STRING && Z_TYPE_P(having_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(having_param) != IS_STRING && Z_TYPE_P(having_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'having' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(having_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(having_param) == IS_STRING)) { zephir_get_strval(having, having_param); } else { ZEPHIR_INIT_VAR(having); @@ -106038,7 +105690,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, limit) { ZEPHIR_CALL_FUNCTION(&_1, "abs", &_2, 198, &_0); zephir_check_call_status(); limit = zephir_get_numberval(_1); - if (unlikely(limit == 0)) { + if (UNEXPECTED(limit == 0)) { RETURN_THIS(); } ZEPHIR_INIT_ZVAL_NREF(_3); @@ -106238,8 +105890,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, getPhql) { array_init(selectedColumns); zephir_is_iterable(columns, &_12$$25, &_11$$25, 0, 0, "phalcon/mvc/model/query/builder.zep", 1141); for ( - ; zephir_hash_get_current_data_ex(_12$$25, (void**) &_13$$25, &_11$$25) == SUCCESS - ; zephir_hash_move_forward_ex(_12$$25, &_11$$25) + ; zend_hash_get_current_data_ex(_12$$25, (void**) &_13$$25, &_11$$25) == SUCCESS + ; zend_hash_move_forward_ex(_12$$25, &_11$$25) ) { ZEPHIR_GET_HMKEY(columnAlias, _12$$25, _11$$25); ZEPHIR_GET_HVALUE(column, _13$$25); @@ -106265,8 +105917,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, getPhql) { array_init(selectedColumns); zephir_is_iterable(models, &_18$$31, &_17$$31, 0, 0, "phalcon/mvc/model/query/builder.zep", 1164); for ( - ; zephir_hash_get_current_data_ex(_18$$31, (void**) &_19$$31, &_17$$31) == SUCCESS - ; zephir_hash_move_forward_ex(_18$$31, &_17$$31) + ; zend_hash_get_current_data_ex(_18$$31, (void**) &_19$$31, &_17$$31) == SUCCESS + ; zend_hash_move_forward_ex(_18$$31, &_17$$31) ) { ZEPHIR_GET_HMKEY(modelColumnAlias, _18$$31, _17$$31); ZEPHIR_GET_HVALUE(model, _19$$31); @@ -106298,8 +105950,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, getPhql) { array_init(selectedModels); zephir_is_iterable(models, &_26$$36, &_25$$36, 0, 0, "phalcon/mvc/model/query/builder.zep", 1187); for ( - ; zephir_hash_get_current_data_ex(_26$$36, (void**) &_27$$36, &_25$$36) == SUCCESS - ; zephir_hash_move_forward_ex(_26$$36, &_25$$36) + ; zend_hash_get_current_data_ex(_26$$36, (void**) &_27$$36, &_25$$36) == SUCCESS + ; zend_hash_move_forward_ex(_26$$36, &_25$$36) ) { ZEPHIR_GET_HMKEY(modelAlias, _26$$36, _25$$36); ZEPHIR_GET_HVALUE(model, _27$$36); @@ -106333,8 +105985,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, getPhql) { if (Z_TYPE_P(joins) == IS_ARRAY) { zephir_is_iterable(joins, &_35$$41, &_34$$41, 0, 0, "phalcon/mvc/model/query/builder.zep", 1244); for ( - ; zephir_hash_get_current_data_ex(_35$$41, (void**) &_36$$41, &_34$$41) == SUCCESS - ; zephir_hash_move_forward_ex(_35$$41, &_34$$41) + ; zend_hash_get_current_data_ex(_35$$41, (void**) &_36$$41, &_34$$41) == SUCCESS + ; zend_hash_move_forward_ex(_35$$41, &_34$$41) ) { ZEPHIR_GET_HVALUE(join, _36$$41); ZEPHIR_OBS_NVAR(joinModel); @@ -106400,8 +106052,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, getPhql) { array_init(groupItems); zephir_is_iterable(group, &_50$$49, &_49$$49, 0, 0, "phalcon/mvc/model/query/builder.zep", 1271); for ( - ; zephir_hash_get_current_data_ex(_50$$49, (void**) &_51$$49, &_49$$49) == SUCCESS - ; zephir_hash_move_forward_ex(_50$$49, &_49$$49) + ; zend_hash_get_current_data_ex(_50$$49, (void**) &_51$$49, &_49$$49) == SUCCESS + ; zend_hash_move_forward_ex(_50$$49, &_49$$49) ) { ZEPHIR_GET_HVALUE(groupItem, _51$$49); ZEPHIR_CALL_METHOD(&_52$$52, this_ptr, "autoescape", &_7, 369, groupItem); @@ -106431,8 +106083,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, getPhql) { array_init(orderItems); zephir_is_iterable(order, &_57$$56, &_56$$56, 0, 0, "phalcon/mvc/model/query/builder.zep", 1291); for ( - ; zephir_hash_get_current_data_ex(_57$$56, (void**) &_58$$56, &_56$$56) == SUCCESS - ; zephir_hash_move_forward_ex(_57$$56, &_56$$56) + ; zend_hash_get_current_data_ex(_57$$56, (void**) &_58$$56, &_56$$56) == SUCCESS + ; zend_hash_move_forward_ex(_57$$56, &_56$$56) ) { ZEPHIR_GET_HVALUE(orderItem, _58$$56); ZEPHIR_CALL_METHOD(&_59$$57, this_ptr, "autoescape", &_7, 369, orderItem); @@ -106701,11 +106353,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Lang, parsePHQL) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &phql_param); - if (unlikely(Z_TYPE_P(phql_param) != IS_STRING && Z_TYPE_P(phql_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(phql_param) != IS_STRING && Z_TYPE_P(phql_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'phql' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(phql_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(phql_param) == IS_STRING)) { zephir_get_strval(phql, phql_param); } else { ZEPHIR_INIT_VAR(phql); @@ -118653,8 +118305,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Resultset_Complex, current) { _1 = zephir_fetch_nproperty_this(this_ptr, SL("_columnTypes"), PH_NOISY_CC); zephir_is_iterable(_1, &_3, &_2, 0, 0, "phalcon/mvc/model/resultset/complex.zep", 246); for ( - ; zephir_hash_get_current_data_ex(_3, (void**) &_4, &_2) == SUCCESS - ; zephir_hash_move_forward_ex(_3, &_2) + ; zend_hash_get_current_data_ex(_3, (void**) &_4, &_2) == SUCCESS + ; zend_hash_move_forward_ex(_3, &_2) ) { ZEPHIR_GET_HMKEY(alias, _3, _2); ZEPHIR_GET_HVALUE(column, _4); @@ -118675,8 +118327,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Resultset_Complex, current) { array_init(rowModel); zephir_is_iterable(attributes, &_6$$11, &_5$$11, 0, 0, "phalcon/mvc/model/resultset/complex.zep", 162); for ( - ; zephir_hash_get_current_data_ex(_6$$11, (void**) &_7$$11, &_5$$11) == SUCCESS - ; zephir_hash_move_forward_ex(_6$$11, &_5$$11) + ; zend_hash_get_current_data_ex(_6$$11, (void**) &_7$$11, &_5$$11) == SUCCESS + ; zend_hash_move_forward_ex(_6$$11, &_5$$11) ) { ZEPHIR_GET_HVALUE(attribute, _7$$11); ZEPHIR_OBS_NVAR(columnValue); @@ -118827,11 +118479,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Resultset_Complex, unserialize) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &data_param); - if (unlikely(Z_TYPE_P(data_param) != IS_STRING && Z_TYPE_P(data_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(data_param) != IS_STRING && Z_TYPE_P(data_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'data' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(data_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(data_param) == IS_STRING)) { zephir_get_strval(data, data_param); } else { ZEPHIR_INIT_VAR(data); @@ -119029,16 +118681,16 @@ static PHP_METHOD(Phalcon_Mvc_Model_Resultset_Simple, toArray) { if (Z_TYPE_P(records) == IS_ARRAY) { zephir_is_iterable(records, &_2$$7, &_1$$7, 0, 0, "phalcon/mvc/model/resultset/simple.zep", 217); for ( - ; zephir_hash_get_current_data_ex(_2$$7, (void**) &_3$$7, &_1$$7) == SUCCESS - ; zephir_hash_move_forward_ex(_2$$7, &_1$$7) + ; zend_hash_get_current_data_ex(_2$$7, (void**) &_3$$7, &_1$$7) == SUCCESS + ; zend_hash_move_forward_ex(_2$$7, &_1$$7) ) { ZEPHIR_GET_HVALUE(record, _3$$7); ZEPHIR_INIT_NVAR(renamed); array_init(renamed); zephir_is_iterable(record, &_5$$8, &_4$$8, 0, 0, "phalcon/mvc/model/resultset/simple.zep", 215); for ( - ; zephir_hash_get_current_data_ex(_5$$8, (void**) &_6$$8, &_4$$8) == SUCCESS - ; zephir_hash_move_forward_ex(_5$$8, &_4$$8) + ; zend_hash_get_current_data_ex(_5$$8, (void**) &_6$$8, &_4$$8) == SUCCESS + ; zend_hash_move_forward_ex(_5$$8, &_4$$8) ) { ZEPHIR_GET_HMKEY(key, _5$$8, _4$$8); ZEPHIR_GET_HVALUE(value, _6$$8); @@ -119124,11 +118776,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Resultset_Simple, unserialize) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &data_param); - if (unlikely(Z_TYPE_P(data_param) != IS_STRING && Z_TYPE_P(data_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(data_param) != IS_STRING && Z_TYPE_P(data_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'data' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(data_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(data_param) == IS_STRING)) { zephir_get_strval(data, data_param); } else { ZEPHIR_INIT_VAR(data); @@ -119210,11 +118862,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Transaction_Failed, __construct) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &message_param, &record); - if (unlikely(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'message' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(message_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(message_param) == IS_STRING)) { zephir_get_strval(message, message_param); } else { ZEPHIR_INIT_VAR(message); @@ -119349,11 +119001,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Transaction_Manager, setDbService) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &service_param); - if (unlikely(Z_TYPE_P(service_param) != IS_STRING && Z_TYPE_P(service_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(service_param) != IS_STRING && Z_TYPE_P(service_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'service' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(service_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(service_param) == IS_STRING)) { zephir_get_strval(service, service_param); } else { ZEPHIR_INIT_VAR(service); @@ -119490,8 +119142,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Transaction_Manager, getOrCreateTransaction) if (Z_TYPE_P(transactions) == IS_ARRAY) { zephir_is_iterable(transactions, &_2$$5, &_1$$5, 0, 1, "phalcon/mvc/model/transaction/manager.zep", 201); for ( - ; zephir_hash_get_current_data_ex(_2$$5, (void**) &_3$$5, &_1$$5) == SUCCESS - ; zephir_hash_move_backwards_ex(_2$$5, &_1$$5) + ; zend_hash_get_current_data_ex(_2$$5, (void**) &_3$$5, &_1$$5) == SUCCESS + ; zend_hash_move_backwards_ex(_2$$5, &_1$$5) ) { ZEPHIR_GET_HVALUE(transaction, _3$$5); if (Z_TYPE_P(transaction) == IS_OBJECT) { @@ -119549,8 +119201,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Transaction_Manager, commit) { if (Z_TYPE_P(transactions) == IS_ARRAY) { zephir_is_iterable(transactions, &_1$$3, &_0$$3, 0, 0, "phalcon/mvc/model/transaction/manager.zep", 234); for ( - ; zephir_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_1$$3, &_0$$3) + ; zend_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS + ; zend_hash_move_forward_ex(_1$$3, &_0$$3) ) { ZEPHIR_GET_HVALUE(transaction, _2$$3); ZEPHIR_CALL_METHOD(&connection, transaction, "getconnection", NULL, 0); @@ -119588,8 +119240,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Transaction_Manager, rollback) { if (Z_TYPE_P(transactions) == IS_ARRAY) { zephir_is_iterable(transactions, &_1$$3, &_0$$3, 0, 0, "phalcon/mvc/model/transaction/manager.zep", 259); for ( - ; zephir_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_1$$3, &_0$$3) + ; zend_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS + ; zend_hash_move_forward_ex(_1$$3, &_0$$3) ) { ZEPHIR_GET_HVALUE(transaction, _2$$3); ZEPHIR_CALL_METHOD(&connection, transaction, "getconnection", NULL, 0); @@ -119662,8 +119314,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Transaction_Manager, _collectTransaction) { array_init(newTransactions); zephir_is_iterable(transactions, &_1$$3, &_0$$3, 0, 0, "phalcon/mvc/model/transaction/manager.zep", 296); for ( - ; zephir_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_1$$3, &_0$$3) + ; zend_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS + ; zend_hash_move_forward_ex(_1$$3, &_0$$3) ) { ZEPHIR_GET_HVALUE(managedTransaction, _2$$3); if (!ZEPHIR_IS_EQUAL(managedTransaction, transaction)) { @@ -119692,8 +119344,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Transaction_Manager, collectTransactions) { ZEPHIR_INIT_VAR(_0$$3); zephir_is_iterable(transactions, &_2$$3, &_1$$3, 0, 0, "phalcon/mvc/model/transaction/manager.zep", 312); for ( - ; zephir_hash_get_current_data_ex(_2$$3, (void**) &_3$$3, &_1$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_2$$3, &_1$$3) + ; zend_hash_get_current_data_ex(_2$$3, (void**) &_3$$3, &_1$$3) == SUCCESS + ; zend_hash_move_forward_ex(_2$$3, &_1$$3) ) { ZEPHIR_GET_HVALUE(_0$$3, _3$$3); RETURN_ON_FAILURE(zephir_property_decr(this_ptr, SL("_number") TSRMLS_CC)); @@ -120635,8 +120287,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Validator_Uniqueness, validate) { if (Z_TYPE_P(field) == IS_ARRAY) { zephir_is_iterable(field, &_2$$5, &_1$$5, 0, 0, "phalcon/mvc/model/validator/uniqueness.zep", 130); for ( - ; zephir_hash_get_current_data_ex(_2$$5, (void**) &_3$$5, &_1$$5) == SUCCESS - ; zephir_hash_move_forward_ex(_2$$5, &_1$$5) + ; zend_hash_get_current_data_ex(_2$$5, (void**) &_3$$5, &_1$$5) == SUCCESS + ; zend_hash_move_forward_ex(_2$$5, &_1$$5) ) { ZEPHIR_GET_HVALUE(composeField, _3$$5); if (Z_TYPE_P(columnMap) == IS_ARRAY) { @@ -120730,8 +120382,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Validator_Uniqueness, validate) { zephir_check_call_status(); zephir_is_iterable(_20$$16, &_22$$16, &_21$$16, 0, 0, "phalcon/mvc/model/validator/uniqueness.zep", 200); for ( - ; zephir_hash_get_current_data_ex(_22$$16, (void**) &_23$$16, &_21$$16) == SUCCESS - ; zephir_hash_move_forward_ex(_22$$16, &_21$$16) + ; zend_hash_get_current_data_ex(_22$$16, (void**) &_23$$16, &_21$$16) == SUCCESS + ; zend_hash_move_forward_ex(_22$$16, &_21$$16) ) { ZEPHIR_GET_HVALUE(primaryField, _23$$16); ZEPHIR_OBS_NVAR(bindType); @@ -120943,11 +120595,11 @@ static PHP_METHOD(Phalcon_Mvc_Router_Annotations, addResource) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &handler_param, &prefix_param); - if (unlikely(Z_TYPE_P(handler_param) != IS_STRING && Z_TYPE_P(handler_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(handler_param) != IS_STRING && Z_TYPE_P(handler_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'handler' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(handler_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(handler_param) == IS_STRING)) { zephir_get_strval(handler, handler_param); } else { ZEPHIR_INIT_VAR(handler); @@ -120957,11 +120609,11 @@ static PHP_METHOD(Phalcon_Mvc_Router_Annotations, addResource) { ZEPHIR_INIT_VAR(prefix); ZVAL_EMPTY_STRING(prefix); } else { - if (unlikely(Z_TYPE_P(prefix_param) != IS_STRING && Z_TYPE_P(prefix_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(prefix_param) != IS_STRING && Z_TYPE_P(prefix_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'prefix' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(prefix_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(prefix_param) == IS_STRING)) { zephir_get_strval(prefix, prefix_param); } else { ZEPHIR_INIT_VAR(prefix); @@ -120988,21 +120640,21 @@ static PHP_METHOD(Phalcon_Mvc_Router_Annotations, addModuleResource) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 1, &module_param, &handler_param, &prefix_param); - if (unlikely(Z_TYPE_P(module_param) != IS_STRING && Z_TYPE_P(module_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(module_param) != IS_STRING && Z_TYPE_P(module_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'module' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(module_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(module_param) == IS_STRING)) { zephir_get_strval(module, module_param); } else { ZEPHIR_INIT_VAR(module); ZVAL_EMPTY_STRING(module); } - if (unlikely(Z_TYPE_P(handler_param) != IS_STRING && Z_TYPE_P(handler_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(handler_param) != IS_STRING && Z_TYPE_P(handler_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'handler' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(handler_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(handler_param) == IS_STRING)) { zephir_get_strval(handler, handler_param); } else { ZEPHIR_INIT_VAR(handler); @@ -121012,11 +120664,11 @@ static PHP_METHOD(Phalcon_Mvc_Router_Annotations, addModuleResource) { ZEPHIR_INIT_VAR(prefix); ZVAL_EMPTY_STRING(prefix); } else { - if (unlikely(Z_TYPE_P(prefix_param) != IS_STRING && Z_TYPE_P(prefix_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(prefix_param) != IS_STRING && Z_TYPE_P(prefix_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'prefix' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(prefix_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(prefix_param) == IS_STRING)) { zephir_get_strval(prefix, prefix_param); } else { ZEPHIR_INIT_VAR(prefix); @@ -121052,11 +120704,11 @@ static PHP_METHOD(Phalcon_Mvc_Router_Annotations, handle) { ZEPHIR_INIT_VAR(uri); ZVAL_EMPTY_STRING(uri); } else { - if (unlikely(Z_TYPE_P(uri_param) != IS_STRING && Z_TYPE_P(uri_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(uri_param) != IS_STRING && Z_TYPE_P(uri_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'uri' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(uri_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(uri_param) == IS_STRING)) { zephir_get_strval(uri, uri_param); } else { ZEPHIR_INIT_VAR(uri); @@ -121088,8 +120740,8 @@ static PHP_METHOD(Phalcon_Mvc_Router_Annotations, handle) { zephir_read_property_this(&controllerSuffix, this_ptr, SL("_controllerSuffix"), PH_NOISY_CC); zephir_is_iterable(handlers, &_3, &_2, 0, 0, "phalcon/mvc/router/annotations.zep", 205); for ( - ; zephir_hash_get_current_data_ex(_3, (void**) &_4, &_2) == SUCCESS - ; zephir_hash_move_forward_ex(_3, &_2) + ; zend_hash_get_current_data_ex(_3, (void**) &_4, &_2) == SUCCESS + ; zend_hash_move_forward_ex(_3, &_2) ) { ZEPHIR_GET_HVALUE(scope, _4); if (Z_TYPE_P(scope) != IS_ARRAY) { @@ -121139,8 +120791,8 @@ static PHP_METHOD(Phalcon_Mvc_Router_Annotations, handle) { if (Z_TYPE_P(annotations) == IS_ARRAY) { zephir_is_iterable(annotations, &_9$$14, &_8$$14, 0, 0, "phalcon/mvc/router/annotations.zep", 182); for ( - ; zephir_hash_get_current_data_ex(_9$$14, (void**) &_10$$14, &_8$$14) == SUCCESS - ; zephir_hash_move_forward_ex(_9$$14, &_8$$14) + ; zend_hash_get_current_data_ex(_9$$14, (void**) &_10$$14, &_8$$14) == SUCCESS + ; zend_hash_move_forward_ex(_9$$14, &_8$$14) ) { ZEPHIR_GET_HVALUE(annotation, _10$$14); ZEPHIR_CALL_METHOD(NULL, this_ptr, "processcontrollerannotation", &_11, 0, controllerName, annotation); @@ -121155,8 +120807,8 @@ static PHP_METHOD(Phalcon_Mvc_Router_Annotations, handle) { zephir_uncamelize(lowerControllerName, controllerName, NULL ); zephir_is_iterable(methodAnnotations, &_13$$16, &_12$$16, 0, 0, "phalcon/mvc/router/annotations.zep", 199); for ( - ; zephir_hash_get_current_data_ex(_13$$16, (void**) &_14$$16, &_12$$16) == SUCCESS - ; zephir_hash_move_forward_ex(_13$$16, &_12$$16) + ; zend_hash_get_current_data_ex(_13$$16, (void**) &_14$$16, &_12$$16) == SUCCESS + ; zend_hash_move_forward_ex(_13$$16, &_12$$16) ) { ZEPHIR_GET_HMKEY(method, _13$$16, _12$$16); ZEPHIR_GET_HVALUE(collection, _14$$16); @@ -121165,8 +120817,8 @@ static PHP_METHOD(Phalcon_Mvc_Router_Annotations, handle) { zephir_check_call_status(); zephir_is_iterable(_15$$18, &_17$$18, &_16$$18, 0, 0, "phalcon/mvc/router/annotations.zep", 197); for ( - ; zephir_hash_get_current_data_ex(_17$$18, (void**) &_18$$18, &_16$$18) == SUCCESS - ; zephir_hash_move_forward_ex(_17$$18, &_16$$18) + ; zend_hash_get_current_data_ex(_17$$18, (void**) &_18$$18, &_16$$18) == SUCCESS + ; zend_hash_move_forward_ex(_17$$18, &_16$$18) ) { ZEPHIR_GET_HVALUE(annotation, _18$$18); ZEPHIR_CALL_METHOD(NULL, this_ptr, "processactionannotation", &_19, 0, moduleName, namespaceName, lowerControllerName, method, annotation); @@ -121191,11 +120843,11 @@ static PHP_METHOD(Phalcon_Mvc_Router_Annotations, processControllerAnnotation) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &handler_param, &annotation); - if (unlikely(Z_TYPE_P(handler_param) != IS_STRING && Z_TYPE_P(handler_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(handler_param) != IS_STRING && Z_TYPE_P(handler_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'handler' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(handler_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(handler_param) == IS_STRING)) { zephir_get_strval(handler, handler_param); } else { ZEPHIR_INIT_VAR(handler); @@ -121229,41 +120881,41 @@ static PHP_METHOD(Phalcon_Mvc_Router_Annotations, processActionAnnotation) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 5, 0, &module_param, &namespaceName_param, &controller_param, &action_param, &annotation); - if (unlikely(Z_TYPE_P(module_param) != IS_STRING && Z_TYPE_P(module_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(module_param) != IS_STRING && Z_TYPE_P(module_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'module' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(module_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(module_param) == IS_STRING)) { zephir_get_strval(module, module_param); } else { ZEPHIR_INIT_VAR(module); ZVAL_EMPTY_STRING(module); } - if (unlikely(Z_TYPE_P(namespaceName_param) != IS_STRING && Z_TYPE_P(namespaceName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(namespaceName_param) != IS_STRING && Z_TYPE_P(namespaceName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'namespaceName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(namespaceName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(namespaceName_param) == IS_STRING)) { zephir_get_strval(namespaceName, namespaceName_param); } else { ZEPHIR_INIT_VAR(namespaceName); ZVAL_EMPTY_STRING(namespaceName); } - if (unlikely(Z_TYPE_P(controller_param) != IS_STRING && Z_TYPE_P(controller_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(controller_param) != IS_STRING && Z_TYPE_P(controller_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'controller' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(controller_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(controller_param) == IS_STRING)) { zephir_get_strval(controller, controller_param); } else { ZEPHIR_INIT_VAR(controller); ZVAL_EMPTY_STRING(controller); } - if (unlikely(Z_TYPE_P(action_param) != IS_STRING && Z_TYPE_P(action_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(action_param) != IS_STRING && Z_TYPE_P(action_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'action' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(action_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(action_param) == IS_STRING)) { zephir_get_strval(action, action_param); } else { ZEPHIR_INIT_VAR(action); @@ -121387,8 +121039,8 @@ static PHP_METHOD(Phalcon_Mvc_Router_Annotations, processActionAnnotation) { if (Z_TYPE_P(converts) == IS_ARRAY) { zephir_is_iterable(converts, &_7$$22, &_6$$22, 0, 0, "phalcon/mvc/router/annotations.zep", 339); for ( - ; zephir_hash_get_current_data_ex(_7$$22, (void**) &_8$$22, &_6$$22) == SUCCESS - ; zephir_hash_move_forward_ex(_7$$22, &_6$$22) + ; zend_hash_get_current_data_ex(_7$$22, (void**) &_8$$22, &_6$$22) == SUCCESS + ; zend_hash_move_forward_ex(_7$$22, &_6$$22) ) { ZEPHIR_GET_HMKEY(param, _7$$22, _6$$22); ZEPHIR_GET_HVALUE(convert, _8$$22); @@ -121404,8 +121056,8 @@ static PHP_METHOD(Phalcon_Mvc_Router_Annotations, processActionAnnotation) { if (Z_TYPE_P(converts) == IS_ARRAY) { zephir_is_iterable(converts, &_11$$24, &_10$$24, 0, 0, "phalcon/mvc/router/annotations.zep", 349); for ( - ; zephir_hash_get_current_data_ex(_11$$24, (void**) &_12$$24, &_10$$24) == SUCCESS - ; zephir_hash_move_forward_ex(_11$$24, &_10$$24) + ; zend_hash_get_current_data_ex(_11$$24, (void**) &_12$$24, &_10$$24) == SUCCESS + ; zend_hash_move_forward_ex(_11$$24, &_10$$24) ) { ZEPHIR_GET_HMKEY(conversorParam, _11$$24, _10$$24); ZEPHIR_GET_HVALUE(convert, _12$$24); @@ -121449,11 +121101,11 @@ static PHP_METHOD(Phalcon_Mvc_Router_Annotations, setControllerSuffix) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &controllerSuffix_param); - if (unlikely(Z_TYPE_P(controllerSuffix_param) != IS_STRING && Z_TYPE_P(controllerSuffix_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(controllerSuffix_param) != IS_STRING && Z_TYPE_P(controllerSuffix_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'controllerSuffix' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(controllerSuffix_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(controllerSuffix_param) == IS_STRING)) { zephir_get_strval(controllerSuffix, controllerSuffix_param); } else { ZEPHIR_INIT_VAR(controllerSuffix); @@ -121474,11 +121126,11 @@ static PHP_METHOD(Phalcon_Mvc_Router_Annotations, setActionSuffix) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &actionSuffix_param); - if (unlikely(Z_TYPE_P(actionSuffix_param) != IS_STRING && Z_TYPE_P(actionSuffix_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(actionSuffix_param) != IS_STRING && Z_TYPE_P(actionSuffix_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'actionSuffix' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(actionSuffix_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(actionSuffix_param) == IS_STRING)) { zephir_get_strval(actionSuffix, actionSuffix_param); } else { ZEPHIR_INIT_VAR(actionSuffix); @@ -121715,11 +121367,11 @@ static PHP_METHOD(Phalcon_Mvc_Router_Group, add) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &pattern_param, &paths, &httpMethods); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(pattern, pattern_param); } else { ZEPHIR_INIT_VAR(pattern); @@ -121748,11 +121400,11 @@ static PHP_METHOD(Phalcon_Mvc_Router_Group, addGet) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &pattern_param, &paths); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(pattern, pattern_param); } else { ZEPHIR_INIT_VAR(pattern); @@ -121781,11 +121433,11 @@ static PHP_METHOD(Phalcon_Mvc_Router_Group, addPost) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &pattern_param, &paths); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(pattern, pattern_param); } else { ZEPHIR_INIT_VAR(pattern); @@ -121814,11 +121466,11 @@ static PHP_METHOD(Phalcon_Mvc_Router_Group, addPut) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &pattern_param, &paths); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(pattern, pattern_param); } else { ZEPHIR_INIT_VAR(pattern); @@ -121847,11 +121499,11 @@ static PHP_METHOD(Phalcon_Mvc_Router_Group, addPatch) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &pattern_param, &paths); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(pattern, pattern_param); } else { ZEPHIR_INIT_VAR(pattern); @@ -121880,11 +121532,11 @@ static PHP_METHOD(Phalcon_Mvc_Router_Group, addDelete) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &pattern_param, &paths); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(pattern, pattern_param); } else { ZEPHIR_INIT_VAR(pattern); @@ -121913,11 +121565,11 @@ static PHP_METHOD(Phalcon_Mvc_Router_Group, addOptions) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &pattern_param, &paths); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(pattern, pattern_param); } else { ZEPHIR_INIT_VAR(pattern); @@ -121946,11 +121598,11 @@ static PHP_METHOD(Phalcon_Mvc_Router_Group, addHead) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &pattern_param, &paths); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(pattern, pattern_param); } else { ZEPHIR_INIT_VAR(pattern); @@ -121993,11 +121645,11 @@ static PHP_METHOD(Phalcon_Mvc_Router_Group, _addRoute) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &pattern_param, &paths, &httpMethods); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(pattern, pattern_param); } else { ZEPHIR_INIT_VAR(pattern); @@ -122149,11 +121801,11 @@ static PHP_METHOD(Phalcon_Mvc_Router_Route, __construct) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &pattern_param, &paths, &httpMethods); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(pattern, pattern_param); } else { ZEPHIR_INIT_VAR(pattern); @@ -122193,11 +121845,11 @@ static PHP_METHOD(Phalcon_Mvc_Router_Route, compilePattern) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &pattern_param); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(pattern, pattern_param); } else { ZEPHIR_INIT_VAR(pattern); @@ -122292,11 +121944,11 @@ static PHP_METHOD(Phalcon_Mvc_Router_Route, extractNamedParams) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &pattern_param); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(pattern, pattern_param); } else { ZEPHIR_INIT_VAR(pattern); @@ -122534,11 +122186,11 @@ static PHP_METHOD(Phalcon_Mvc_Router_Route, reConfigure) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &pattern_param, &paths); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(pattern, pattern_param); } else { ZEPHIR_INIT_VAR(pattern); @@ -122774,8 +122426,8 @@ static PHP_METHOD(Phalcon_Mvc_Router_Route, getReversedPaths) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_paths"), PH_NOISY_CC); zephir_is_iterable(_0, &_2, &_1, 0, 0, "phalcon/mvc/router/route.zep", 566); for ( - ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS - ; zephir_hash_move_forward_ex(_2, &_1) + ; zend_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS + ; zend_hash_move_forward_ex(_2, &_1) ) { ZEPHIR_GET_HMKEY(path, _2, _1); ZEPHIR_GET_HVALUE(position, _3); @@ -122814,11 +122466,11 @@ static PHP_METHOD(Phalcon_Mvc_Router_Route, setHostname) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &hostname_param); - if (unlikely(Z_TYPE_P(hostname_param) != IS_STRING && Z_TYPE_P(hostname_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(hostname_param) != IS_STRING && Z_TYPE_P(hostname_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'hostname' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(hostname_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(hostname_param) == IS_STRING)) { zephir_get_strval(hostname, hostname_param); } else { ZEPHIR_INIT_VAR(hostname); @@ -122868,11 +122520,11 @@ static PHP_METHOD(Phalcon_Mvc_Router_Route, convert) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &name_param, &converter); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -123420,11 +123072,11 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine, partial) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &partialPath_param, ¶ms); - if (unlikely(Z_TYPE_P(partialPath_param) != IS_STRING && Z_TYPE_P(partialPath_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(partialPath_param) != IS_STRING && Z_TYPE_P(partialPath_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'partialPath' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(partialPath_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(partialPath_param) == IS_STRING)) { zephir_get_strval(partialPath, partialPath_param); } else { ZEPHIR_INIT_VAR(partialPath); @@ -123568,11 +123220,11 @@ static PHP_METHOD(Phalcon_Mvc_View_Simple, setViewsDir) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &viewsDir_param); - if (unlikely(Z_TYPE_P(viewsDir_param) != IS_STRING && Z_TYPE_P(viewsDir_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(viewsDir_param) != IS_STRING && Z_TYPE_P(viewsDir_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'viewsDir' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(viewsDir_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(viewsDir_param) == IS_STRING)) { zephir_get_strval(viewsDir, viewsDir_param); } else { ZEPHIR_INIT_VAR(viewsDir); @@ -123643,8 +123295,8 @@ static PHP_METHOD(Phalcon_Mvc_View_Simple, _loadTemplateEngines) { zephir_array_fast_append(arguments, dependencyInjector); zephir_is_iterable(registeredEngines, &_2$$5, &_1$$5, 0, 0, "phalcon/mvc/view/simple.zep", 191); for ( - ; zephir_hash_get_current_data_ex(_2$$5, (void**) &_3$$5, &_1$$5) == SUCCESS - ; zephir_hash_move_forward_ex(_2$$5, &_1$$5) + ; zend_hash_get_current_data_ex(_2$$5, (void**) &_3$$5, &_1$$5) == SUCCESS + ; zend_hash_move_forward_ex(_2$$5, &_1$$5) ) { ZEPHIR_GET_HMKEY(extension, _2$$5, _1$$5); ZEPHIR_GET_HVALUE(engineService, _3$$5); @@ -123697,11 +123349,11 @@ static PHP_METHOD(Phalcon_Mvc_View_Simple, _internalRender) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &path_param, ¶ms); - if (unlikely(Z_TYPE_P(path_param) != IS_STRING && Z_TYPE_P(path_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(path_param) != IS_STRING && Z_TYPE_P(path_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'path' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(path_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(path_param) == IS_STRING)) { zephir_get_strval(path, path_param); } else { ZEPHIR_INIT_VAR(path); @@ -123733,8 +123385,8 @@ static PHP_METHOD(Phalcon_Mvc_View_Simple, _internalRender) { zephir_check_call_status(); zephir_is_iterable(engines, &_4, &_3, 0, 0, "phalcon/mvc/view/simple.zep", 282); for ( - ; zephir_hash_get_current_data_ex(_4, (void**) &_5, &_3) == SUCCESS - ; zephir_hash_move_forward_ex(_4, &_3) + ; zend_hash_get_current_data_ex(_4, (void**) &_5, &_3) == SUCCESS + ; zend_hash_move_forward_ex(_4, &_3) ) { ZEPHIR_GET_HMKEY(extension, _4, _3); ZEPHIR_GET_HVALUE(engine, _5); @@ -123825,11 +123477,11 @@ static PHP_METHOD(Phalcon_Mvc_View_Simple, render) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &path_param, ¶ms); - if (unlikely(Z_TYPE_P(path_param) != IS_STRING && Z_TYPE_P(path_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(path_param) != IS_STRING && Z_TYPE_P(path_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'path' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(path_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(path_param) == IS_STRING)) { zephir_get_strval(path, path_param); } else { ZEPHIR_INIT_VAR(path); @@ -123921,11 +123573,11 @@ static PHP_METHOD(Phalcon_Mvc_View_Simple, partial) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &partialPath_param, ¶ms); - if (unlikely(Z_TYPE_P(partialPath_param) != IS_STRING && Z_TYPE_P(partialPath_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(partialPath_param) != IS_STRING && Z_TYPE_P(partialPath_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'partialPath' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(partialPath_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(partialPath_param) == IS_STRING)) { zephir_get_strval(partialPath, partialPath_param); } else { ZEPHIR_INIT_VAR(partialPath); @@ -124093,11 +123745,11 @@ static PHP_METHOD(Phalcon_Mvc_View_Simple, setParamToView) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &key_param, &value); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { ZEPHIR_INIT_VAR(key); @@ -124153,11 +123805,11 @@ static PHP_METHOD(Phalcon_Mvc_View_Simple, setVar) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &key_param, &value); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { ZEPHIR_INIT_VAR(key); @@ -124178,11 +123830,11 @@ static PHP_METHOD(Phalcon_Mvc_View_Simple, getVar) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &key_param); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { ZEPHIR_INIT_VAR(key); @@ -124214,11 +123866,11 @@ static PHP_METHOD(Phalcon_Mvc_View_Simple, setContent) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &content_param); - if (unlikely(Z_TYPE_P(content_param) != IS_STRING && Z_TYPE_P(content_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(content_param) != IS_STRING && Z_TYPE_P(content_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'content' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(content_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(content_param) == IS_STRING)) { zephir_get_strval(content, content_param); } else { ZEPHIR_INIT_VAR(content); @@ -124255,11 +123907,11 @@ static PHP_METHOD(Phalcon_Mvc_View_Simple, __set) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &key_param, &value); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { ZEPHIR_INIT_VAR(key); @@ -124280,11 +123932,11 @@ static PHP_METHOD(Phalcon_Mvc_View_Simple, __get) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &key_param); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { ZEPHIR_INIT_VAR(key); @@ -124330,11 +123982,11 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Php, render) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 1, &path_param, ¶ms, &mustClean_param); - if (unlikely(Z_TYPE_P(path_param) != IS_STRING && Z_TYPE_P(path_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(path_param) != IS_STRING && Z_TYPE_P(path_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'path' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(path_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(path_param) == IS_STRING)) { zephir_get_strval(path, path_param); } else { ZEPHIR_INIT_VAR(path); @@ -124354,8 +124006,8 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Php, render) { if (Z_TYPE_P(params) == IS_ARRAY) { zephir_is_iterable(params, &_1$$4, &_0$$4, 0, 0, "phalcon/mvc/view/engine/php.zep", 50); for ( - ; zephir_hash_get_current_data_ex(_1$$4, (void**) &_2$$4, &_0$$4) == SUCCESS - ; zephir_hash_move_forward_ex(_1$$4, &_0$$4) + ; zend_hash_get_current_data_ex(_1$$4, (void**) &_2$$4, &_0$$4) == SUCCESS + ; zend_hash_move_forward_ex(_1$$4, &_0$$4) ) { ZEPHIR_GET_HMKEY(key, _1$$4, _0$$4); ZEPHIR_GET_HVALUE(value, _2$$4); @@ -124470,11 +124122,11 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt, render) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 1, &templatePath_param, ¶ms, &mustClean_param); - if (unlikely(Z_TYPE_P(templatePath_param) != IS_STRING && Z_TYPE_P(templatePath_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(templatePath_param) != IS_STRING && Z_TYPE_P(templatePath_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'templatePath' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(templatePath_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(templatePath_param) == IS_STRING)) { zephir_get_strval(templatePath, templatePath_param); } else { ZEPHIR_INIT_VAR(templatePath); @@ -124500,8 +124152,8 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt, render) { if (Z_TYPE_P(params) == IS_ARRAY) { zephir_is_iterable(params, &_1$$4, &_0$$4, 0, 0, "phalcon/mvc/view/engine/volt.zep", 116); for ( - ; zephir_hash_get_current_data_ex(_1$$4, (void**) &_2$$4, &_0$$4) == SUCCESS - ; zephir_hash_move_forward_ex(_1$$4, &_0$$4) + ; zend_hash_get_current_data_ex(_1$$4, (void**) &_2$$4, &_0$$4) == SUCCESS + ; zend_hash_move_forward_ex(_1$$4, &_0$$4) ) { ZEPHIR_GET_HMKEY(key, _1$$4, _0$$4); ZEPHIR_GET_HVALUE(value, _2$$4); @@ -124591,21 +124243,21 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt, convertEncoding) { zephir_fetch_params(1, 3, 0, &text_param, &from_param, &to_param); zephir_get_strval(text, text_param); - if (unlikely(Z_TYPE_P(from_param) != IS_STRING && Z_TYPE_P(from_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(from_param) != IS_STRING && Z_TYPE_P(from_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'from' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(from_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(from_param) == IS_STRING)) { zephir_get_strval(from, from_param); } else { ZEPHIR_INIT_VAR(from); ZVAL_EMPTY_STRING(from); } - if (unlikely(Z_TYPE_P(to_param) != IS_STRING && Z_TYPE_P(to_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(to_param) != IS_STRING && Z_TYPE_P(to_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'to' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(to_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(to_param) == IS_STRING)) { zephir_get_strval(to, to_param); } else { ZEPHIR_INIT_VAR(to); @@ -124769,11 +124421,11 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt, callMacro) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &name_param, &arguments_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -124928,11 +124580,11 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, setOption) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &option_param, &value); - if (unlikely(Z_TYPE_P(option_param) != IS_STRING && Z_TYPE_P(option_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(option_param) != IS_STRING && Z_TYPE_P(option_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'option' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(option_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(option_param) == IS_STRING)) { zephir_get_strval(option, option_param); } else { ZEPHIR_INIT_VAR(option); @@ -124953,11 +124605,11 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, getOption) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &option_param); - if (unlikely(Z_TYPE_P(option_param) != IS_STRING && Z_TYPE_P(option_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(option_param) != IS_STRING && Z_TYPE_P(option_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'option' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(option_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(option_param) == IS_STRING)) { zephir_get_strval(option, option_param); } else { ZEPHIR_INIT_VAR(option); @@ -124993,11 +124645,11 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, fireExtensionEvent) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &name_param, &arguments); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -125013,8 +124665,8 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, fireExtensionEvent) { if (Z_TYPE_P(extensions) == IS_ARRAY) { zephir_is_iterable(extensions, &_1$$3, &_0$$3, 0, 0, "phalcon/mvc/view/engine/volt/compiler.zep", 189); for ( - ; zephir_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_1$$3, &_0$$3) + ; zend_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS + ; zend_hash_move_forward_ex(_1$$3, &_0$$3) ) { ZEPHIR_GET_HVALUE(extension, _2$$3); if ((zephir_method_exists(extension, name TSRMLS_CC) == SUCCESS)) { @@ -125084,11 +124736,11 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, addFunction) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &name_param, &definition); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -125117,11 +124769,11 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, addFilter) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &name_param, &definition); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -125150,11 +124802,11 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, setUniquePrefix) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &prefix_param); - if (unlikely(Z_TYPE_P(prefix_param) != IS_STRING && Z_TYPE_P(prefix_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(prefix_param) != IS_STRING && Z_TYPE_P(prefix_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'prefix' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(prefix_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(prefix_param) == IS_STRING)) { zephir_get_strval(prefix, prefix_param); } else { ZEPHIR_INIT_VAR(prefix); @@ -125870,8 +125522,8 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, expression) { array_init(items); zephir_is_iterable(expr, &_4$$6, &_3$$6, 0, 0, "phalcon/mvc/view/engine/volt/compiler.zep", 993); for ( - ; zephir_hash_get_current_data_ex(_4$$6, (void**) &_5$$6, &_3$$6) == SUCCESS - ; zephir_hash_move_forward_ex(_4$$6, &_3$$6) + ; zend_hash_get_current_data_ex(_4$$6, (void**) &_5$$6, &_3$$6) == SUCCESS + ; zend_hash_move_forward_ex(_4$$6, &_3$$6) ) { ZEPHIR_GET_HVALUE(singleExpr, _5$$6); zephir_array_fetch_string(&_6$$7, singleExpr, SL("expr"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 986 TSRMLS_CC); @@ -126252,8 +125904,8 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, _statementListOrExtends if (!(zephir_array_isset_string(statements, SS("type")))) { zephir_is_iterable(statements, &_1$$4, &_0$$4, 0, 0, "phalcon/mvc/view/engine/volt/compiler.zep", 1310); for ( - ; zephir_hash_get_current_data_ex(_1$$4, (void**) &_2$$4, &_0$$4) == SUCCESS - ; zephir_hash_move_forward_ex(_1$$4, &_0$$4) + ; zend_hash_get_current_data_ex(_1$$4, (void**) &_2$$4, &_0$$4) == SUCCESS + ; zend_hash_move_forward_ex(_1$$4, &_0$$4) ) { ZEPHIR_GET_HVALUE(statement, _2$$4); if (Z_TYPE_P(statement) != IS_ARRAY) { @@ -126319,8 +125971,8 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileForeach) { if (Z_TYPE_P(blockStatements) == IS_ARRAY) { zephir_is_iterable(blockStatements, &_2$$4, &_1$$4, 0, 0, "phalcon/mvc/view/engine/volt/compiler.zep", 1388); for ( - ; zephir_hash_get_current_data_ex(_2$$4, (void**) &_3$$4, &_1$$4) == SUCCESS - ; zephir_hash_move_forward_ex(_2$$4, &_1$$4) + ; zend_hash_get_current_data_ex(_2$$4, (void**) &_3$$4, &_1$$4) == SUCCESS + ; zend_hash_move_forward_ex(_2$$4, &_1$$4) ) { ZEPHIR_GET_HVALUE(bstatement, _3$$4); if (Z_TYPE_P(bstatement) != IS_ARRAY) { @@ -126665,8 +126317,8 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileSet) { ZVAL_STRING(compilation, "> 1))); @@ -142038,7 +141690,6 @@ static PHP_METHOD(Phalcon_Session_Adapter, get) { static PHP_METHOD(Phalcon_Session_Adapter, set) { - int _2, _1$$3; zval *index_param = NULL, *value, *_SESSION, *uniqueId = NULL, *_0$$3; zval *index = NULL; @@ -142053,18 +141704,10 @@ static PHP_METHOD(Phalcon_Session_Adapter, set) { if (!(ZEPHIR_IS_EMPTY(uniqueId))) { ZEPHIR_INIT_VAR(_0$$3); ZEPHIR_CONCAT_VSV(_0$$3, uniqueId, "#", index); - _1$$3 = zephir_maybe_separate_zval(&_SESSION); - zephir_array_update_zval(&_SESSION, _0$$3, &value, PH_COPY | PH_SEPARATE); - if (_1$$3) { - ZEND_SET_SYMBOL(&EG(symbol_table), "_SESSION", _SESSION); - } + zephir_array_update_zval(&_SESSION, _0$$3, &value, PH_COPY); RETURN_MM_NULL(); } - _2 = zephir_maybe_separate_zval(&_SESSION); - zephir_array_update_zval(&_SESSION, index, &value, PH_COPY | PH_SEPARATE); - if (_2) { - ZEND_SET_SYMBOL(&EG(symbol_table), "_SESSION", _SESSION); - } + zephir_array_update_zval(&_SESSION, index, &value, PH_COPY); ZEPHIR_MM_RESTORE(); } @@ -142179,8 +141822,8 @@ static PHP_METHOD(Phalcon_Session_Adapter, destroy) { ZEPHIR_INIT_VAR(_0$$4); zephir_is_iterable(_SESSION, &_2$$4, &_1$$4, 1, 0, "phalcon/session/adapter.zep", 275); for ( - ; zephir_hash_get_current_data_ex(_2$$4, (void**) &_3$$4, &_1$$4) == SUCCESS - ; zephir_hash_move_forward_ex(_2$$4, &_1$$4) + ; zend_hash_get_current_data_ex(_2$$4, (void**) &_3$$4, &_1$$4) == SUCCESS + ; zend_hash_move_forward_ex(_2$$4, &_1$$4) ) { ZEPHIR_GET_HMKEY(key, _2$$4, _1$$4); ZEPHIR_GET_HVALUE(_0$$4, _3$$4); @@ -142408,11 +142051,11 @@ static PHP_METHOD(Phalcon_Session_Bag, __construct) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -142522,11 +142165,11 @@ static PHP_METHOD(Phalcon_Session_Bag, set) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &property_param, &value); - if (unlikely(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'property' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(property_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(property_param) == IS_STRING)) { zephir_get_strval(property, property_param); } else { ZEPHIR_INIT_VAR(property); @@ -142558,11 +142201,11 @@ static PHP_METHOD(Phalcon_Session_Bag, __set) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &property_param, &value); - if (unlikely(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'property' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(property_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(property_param) == IS_STRING)) { zephir_get_strval(property, property_param); } else { ZEPHIR_INIT_VAR(property); @@ -142585,11 +142228,11 @@ static PHP_METHOD(Phalcon_Session_Bag, get) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &property_param, &defaultValue); - if (unlikely(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'property' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(property_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(property_param) == IS_STRING)) { zephir_get_strval(property, property_param); } else { ZEPHIR_INIT_VAR(property); @@ -142623,11 +142266,11 @@ static PHP_METHOD(Phalcon_Session_Bag, __get) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &property_param); - if (unlikely(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'property' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(property_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(property_param) == IS_STRING)) { zephir_get_strval(property, property_param); } else { ZEPHIR_INIT_VAR(property); @@ -142650,11 +142293,11 @@ static PHP_METHOD(Phalcon_Session_Bag, has) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &property_param); - if (unlikely(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'property' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(property_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(property_param) == IS_STRING)) { zephir_get_strval(property, property_param); } else { ZEPHIR_INIT_VAR(property); @@ -142681,11 +142324,11 @@ static PHP_METHOD(Phalcon_Session_Bag, __isset) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &property_param); - if (unlikely(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'property' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(property_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(property_param) == IS_STRING)) { zephir_get_strval(property, property_param); } else { ZEPHIR_INIT_VAR(property); @@ -142708,11 +142351,11 @@ static PHP_METHOD(Phalcon_Session_Bag, remove) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &property_param); - if (unlikely(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'property' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(property_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(property_param) == IS_STRING)) { zephir_get_strval(property, property_param); } else { ZEPHIR_INIT_VAR(property); @@ -142749,11 +142392,11 @@ static PHP_METHOD(Phalcon_Session_Bag, __unset) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &property_param); - if (unlikely(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'property' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(property_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(property_param) == IS_STRING)) { zephir_get_strval(property, property_param); } else { ZEPHIR_INIT_VAR(property); @@ -142813,11 +142456,11 @@ static PHP_METHOD(Phalcon_Session_Bag, offsetSet) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &property_param, &value); - if (unlikely(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'property' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(property_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(property_param) == IS_STRING)) { zephir_get_strval(property, property_param); } else { ZEPHIR_INIT_VAR(property); @@ -142840,11 +142483,11 @@ static PHP_METHOD(Phalcon_Session_Bag, offsetExists) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &property_param); - if (unlikely(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'property' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(property_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(property_param) == IS_STRING)) { zephir_get_strval(property, property_param); } else { ZEPHIR_INIT_VAR(property); @@ -142867,11 +142510,11 @@ static PHP_METHOD(Phalcon_Session_Bag, offsetUnset) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &property_param); - if (unlikely(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'property' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(property_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(property_param) == IS_STRING)) { zephir_get_strval(property, property_param); } else { ZEPHIR_INIT_VAR(property); @@ -142894,11 +142537,11 @@ static PHP_METHOD(Phalcon_Session_Bag, offsetGet) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &property_param); - if (unlikely(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'property' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(property_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(property_param) == IS_STRING)) { zephir_get_strval(property, property_param); } else { ZEPHIR_INIT_VAR(property); @@ -143220,8 +142863,8 @@ static PHP_METHOD(Phalcon_Session_Adapter_Libmemcached, destroy) { ZEPHIR_INIT_VAR(_0); zephir_is_iterable(_SESSION, &_2, &_1, 1, 0, "phalcon/session/adapter/libmemcached.zep", 168); for ( - ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS - ; zephir_hash_move_forward_ex(_2, &_1) + ; zend_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS + ; zend_hash_move_forward_ex(_2, &_1) ) { ZEPHIR_GET_HMKEY(key, _2, _1); ZEPHIR_GET_HVALUE(_0, _3); @@ -144021,8 +143664,8 @@ static PHP_METHOD(Phalcon_Tag_Select, _optionsFromArray) { ZVAL_STRING(code, "", 1); zephir_is_iterable(data, &_1, &_0, 0, 0, "phalcon/tag/select.zep", 274); for ( - ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS - ; zephir_hash_move_forward_ex(_1, &_0) + ; zend_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS + ; zend_hash_move_forward_ex(_1, &_0) ) { ZEPHIR_GET_HMKEY(optionValue, _1, _0); ZEPHIR_GET_HVALUE(optionText, _2); @@ -144140,11 +143783,11 @@ static PHP_METHOD(Phalcon_Translate_Adapter, t) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &translateKey_param, &placeholders); - if (unlikely(Z_TYPE_P(translateKey_param) != IS_STRING && Z_TYPE_P(translateKey_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(translateKey_param) != IS_STRING && Z_TYPE_P(translateKey_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'translateKey' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(translateKey_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(translateKey_param) == IS_STRING)) { zephir_get_strval(translateKey, translateKey_param); } else { ZEPHIR_INIT_VAR(translateKey); @@ -144170,11 +143813,11 @@ static PHP_METHOD(Phalcon_Translate_Adapter, _) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &translateKey_param, &placeholders); - if (unlikely(Z_TYPE_P(translateKey_param) != IS_STRING && Z_TYPE_P(translateKey_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(translateKey_param) != IS_STRING && Z_TYPE_P(translateKey_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'translateKey' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(translateKey_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(translateKey_param) == IS_STRING)) { zephir_get_strval(translateKey, translateKey_param); } else { ZEPHIR_INIT_VAR(translateKey); @@ -144213,11 +143856,11 @@ static PHP_METHOD(Phalcon_Translate_Adapter, offsetExists) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &translateKey_param); - if (unlikely(Z_TYPE_P(translateKey_param) != IS_STRING && Z_TYPE_P(translateKey_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(translateKey_param) != IS_STRING && Z_TYPE_P(translateKey_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'translateKey' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(translateKey_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(translateKey_param) == IS_STRING)) { zephir_get_strval(translateKey, translateKey_param); } else { ZEPHIR_INIT_VAR(translateKey); @@ -144253,11 +143896,11 @@ static PHP_METHOD(Phalcon_Translate_Adapter, offsetGet) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &translateKey_param); - if (unlikely(Z_TYPE_P(translateKey_param) != IS_STRING && Z_TYPE_P(translateKey_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(translateKey_param) != IS_STRING && Z_TYPE_P(translateKey_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'translateKey' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(translateKey_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(translateKey_param) == IS_STRING)) { zephir_get_strval(translateKey, translateKey_param); } else { ZEPHIR_INIT_VAR(translateKey); @@ -144282,11 +143925,11 @@ static PHP_METHOD(Phalcon_Translate_Adapter, replacePlaceholders) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &translation_param, &placeholders); - if (unlikely(Z_TYPE_P(translation_param) != IS_STRING && Z_TYPE_P(translation_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(translation_param) != IS_STRING && Z_TYPE_P(translation_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'translation' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(translation_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(translation_param) == IS_STRING)) { zephir_get_strval(translation, translation_param); } else { ZEPHIR_INIT_VAR(translation); @@ -144402,7 +144045,7 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Csv, __construct) { options = options_param; - ZEPHIR_CALL_PARENT(NULL, phalcon_translate_adapter_csv_ce, this_ptr, "__construct", &_0, 453, options); + ZEPHIR_CALL_PARENT(NULL, phalcon_translate_adapter_csv_ce, this_ptr, "__construct", &_0, 452, options); zephir_check_call_status(); if (!(zephir_array_isset_string(options, SS("content")))) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_translate_exception_ce, "Parameter 'content' is required", "phalcon/translate/adapter/csv.zep", 42); @@ -144415,7 +144058,7 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Csv, __construct) { ZVAL_STRING(_3, ";", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_VAR(_4); ZVAL_STRING(_4, "\"", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, this_ptr, "_load", NULL, 454, _1, _2, _3, _4); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "_load", NULL, 453, _1, _2, _3, _4); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -144451,7 +144094,7 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Csv, _load) { return; } while (1) { - ZEPHIR_CALL_FUNCTION(&data, "fgetcsv", &_3, 455, fileHandler, length, delimiter, enclosure); + ZEPHIR_CALL_FUNCTION(&data, "fgetcsv", &_3, 454, fileHandler, length, delimiter, enclosure); zephir_check_call_status(); if (ZEPHIR_IS_FALSE_IDENTICAL(data)) { break; @@ -144489,11 +144132,11 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Csv, query) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &index_param, &placeholders); - if (unlikely(Z_TYPE_P(index_param) != IS_STRING && Z_TYPE_P(index_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(index_param) != IS_STRING && Z_TYPE_P(index_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'index' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(index_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(index_param) == IS_STRING)) { zephir_get_strval(index, index_param); } else { ZEPHIR_INIT_VAR(index); @@ -144523,11 +144166,11 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Csv, exists) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &index_param); - if (unlikely(Z_TYPE_P(index_param) != IS_STRING && Z_TYPE_P(index_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(index_param) != IS_STRING && Z_TYPE_P(index_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'index' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(index_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(index_param) == IS_STRING)) { zephir_get_strval(index, index_param); } else { ZEPHIR_INIT_VAR(index); @@ -144637,7 +144280,7 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, __construct) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_translate_exception_ce, "This class requires the gettext extension for PHP", "phalcon/translate/adapter/gettext.zep", 72); return; } - ZEPHIR_CALL_PARENT(NULL, phalcon_translate_adapter_gettext_ce, this_ptr, "__construct", &_0, 453, options); + ZEPHIR_CALL_PARENT(NULL, phalcon_translate_adapter_gettext_ce, this_ptr, "__construct", &_0, 452, options); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, this_ptr, "prepareoptions", NULL, 0, options); zephir_check_call_status(); @@ -144654,11 +144297,11 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, query) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &index_param, &placeholders); - if (unlikely(Z_TYPE_P(index_param) != IS_STRING && Z_TYPE_P(index_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(index_param) != IS_STRING && Z_TYPE_P(index_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'index' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(index_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(index_param) == IS_STRING)) { zephir_get_strval(index, index_param); } else { ZEPHIR_INIT_VAR(index); @@ -144669,7 +144312,7 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, query) { } - ZEPHIR_CALL_FUNCTION(&translation, "gettext", NULL, 456, index); + ZEPHIR_CALL_FUNCTION(&translation, "gettext", NULL, 455, index); zephir_check_call_status(); ZEPHIR_RETURN_CALL_METHOD(this_ptr, "replaceplaceholders", NULL, 0, translation, placeholders); zephir_check_call_status(); @@ -144686,11 +144329,11 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, exists) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &index_param); - if (unlikely(Z_TYPE_P(index_param) != IS_STRING && Z_TYPE_P(index_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(index_param) != IS_STRING && Z_TYPE_P(index_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'index' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(index_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(index_param) == IS_STRING)) { zephir_get_strval(index, index_param); } else { ZEPHIR_INIT_VAR(index); @@ -144713,27 +144356,27 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, nquery) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 2, &msgid1_param, &msgid2_param, &count_param, &placeholders, &domain_param); - if (unlikely(Z_TYPE_P(msgid1_param) != IS_STRING && Z_TYPE_P(msgid1_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(msgid1_param) != IS_STRING && Z_TYPE_P(msgid1_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'msgid1' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(msgid1_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(msgid1_param) == IS_STRING)) { zephir_get_strval(msgid1, msgid1_param); } else { ZEPHIR_INIT_VAR(msgid1); ZVAL_EMPTY_STRING(msgid1); } - if (unlikely(Z_TYPE_P(msgid2_param) != IS_STRING && Z_TYPE_P(msgid2_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(msgid2_param) != IS_STRING && Z_TYPE_P(msgid2_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'msgid2' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(msgid2_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(msgid2_param) == IS_STRING)) { zephir_get_strval(msgid2, msgid2_param); } else { ZEPHIR_INIT_VAR(msgid2); ZVAL_EMPTY_STRING(msgid2); } - if (unlikely(Z_TYPE_P(count_param) != IS_LONG)) { + if (UNEXPECTED(Z_TYPE_P(count_param) != IS_LONG)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'count' must be a int") TSRMLS_CC); RETURN_MM_NULL(); } @@ -144745,11 +144388,11 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, nquery) { ZEPHIR_INIT_VAR(domain); ZVAL_EMPTY_STRING(domain); } else { - if (unlikely(Z_TYPE_P(domain_param) != IS_STRING && Z_TYPE_P(domain_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(domain_param) != IS_STRING && Z_TYPE_P(domain_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'domain' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(domain_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(domain_param) == IS_STRING)) { zephir_get_strval(domain, domain_param); } else { ZEPHIR_INIT_VAR(domain); @@ -144761,12 +144404,12 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, nquery) { if (!(!(!domain) && Z_STRLEN_P(domain))) { ZEPHIR_SINIT_VAR(_0$$3); ZVAL_LONG(&_0$$3, count); - ZEPHIR_CALL_FUNCTION(&translation, "ngettext", NULL, 457, msgid1, msgid2, &_0$$3); + ZEPHIR_CALL_FUNCTION(&translation, "ngettext", NULL, 456, msgid1, msgid2, &_0$$3); zephir_check_call_status(); } else { ZEPHIR_SINIT_VAR(_1$$4); ZVAL_LONG(&_1$$4, count); - ZEPHIR_CALL_FUNCTION(&translation, "dngettext", NULL, 458, domain, msgid1, msgid2, &_1$$4); + ZEPHIR_CALL_FUNCTION(&translation, "dngettext", NULL, 457, domain, msgid1, msgid2, &_1$$4); zephir_check_call_status(); } ZEPHIR_RETURN_CALL_METHOD(this_ptr, "replaceplaceholders", NULL, 0, translation, placeholders); @@ -144785,7 +144428,7 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, setDomain) { - ZEPHIR_RETURN_CALL_FUNCTION("textdomain", NULL, 459, domain); + ZEPHIR_RETURN_CALL_FUNCTION("textdomain", NULL, 458, domain); zephir_check_call_status(); RETURN_MM(); @@ -144800,7 +144443,7 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, resetDomain) { ZEPHIR_CALL_METHOD(&_0, this_ptr, "getdefaultdomain", NULL, 0); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_FUNCTION("textdomain", NULL, 459, _0); + ZEPHIR_RETURN_CALL_FUNCTION("textdomain", NULL, 458, _0); zephir_check_call_status(); RETURN_MM(); @@ -144814,11 +144457,11 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, setDefaultDomain) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &domain_param); - if (unlikely(Z_TYPE_P(domain_param) != IS_STRING && Z_TYPE_P(domain_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(domain_param) != IS_STRING && Z_TYPE_P(domain_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'domain' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(domain_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(domain_param) == IS_STRING)) { zephir_get_strval(domain, domain_param); } else { ZEPHIR_INIT_VAR(domain); @@ -144851,18 +144494,18 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, setDirectory) { if (Z_TYPE_P(directory) == IS_ARRAY) { zephir_is_iterable(directory, &_1$$4, &_0$$4, 0, 0, "phalcon/translate/adapter/gettext.zep", 180); for ( - ; zephir_hash_get_current_data_ex(_1$$4, (void**) &_2$$4, &_0$$4) == SUCCESS - ; zephir_hash_move_forward_ex(_1$$4, &_0$$4) + ; zend_hash_get_current_data_ex(_1$$4, (void**) &_2$$4, &_0$$4) == SUCCESS + ; zend_hash_move_forward_ex(_1$$4, &_0$$4) ) { ZEPHIR_GET_HMKEY(key, _1$$4, _0$$4); ZEPHIR_GET_HVALUE(value, _2$$4); - ZEPHIR_CALL_FUNCTION(NULL, "bindtextdomain", &_3, 460, key, value); + ZEPHIR_CALL_FUNCTION(NULL, "bindtextdomain", &_3, 459, key, value); zephir_check_call_status(); } } else { ZEPHIR_CALL_METHOD(&_4$$6, this_ptr, "getdefaultdomain", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(NULL, "bindtextdomain", &_3, 460, _4$$6, directory); + ZEPHIR_CALL_FUNCTION(NULL, "bindtextdomain", &_3, 459, _4$$6, directory); zephir_check_call_status(); } ZEPHIR_MM_RESTORE(); @@ -144879,16 +144522,16 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, setLocale) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &category_param, &locale_param); - if (unlikely(Z_TYPE_P(category_param) != IS_LONG)) { + if (UNEXPECTED(Z_TYPE_P(category_param) != IS_LONG)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'category' must be a int") TSRMLS_CC); RETURN_MM_NULL(); } category = Z_LVAL_P(category_param); - if (unlikely(Z_TYPE_P(locale_param) != IS_STRING && Z_TYPE_P(locale_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(locale_param) != IS_STRING && Z_TYPE_P(locale_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'locale' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(locale_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(locale_param) == IS_STRING)) { zephir_get_strval(locale, locale_param); } else { ZEPHIR_INIT_VAR(locale); @@ -144898,8 +144541,7 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, setLocale) { ZEPHIR_INIT_VAR(_0); ZEPHIR_INIT_VAR(_1); - array_init(_1); - zend_copy_parameters_array(ZEND_NUM_ARGS(), _1 TSRMLS_CC); + zephir_get_args(_1 TSRMLS_CC); ZEPHIR_SINIT_VAR(_2); ZVAL_STRING(&_2, "setlocale", 0); ZEPHIR_CALL_USER_FUNC_ARRAY(_0, &_2, _1); @@ -144911,17 +144553,17 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, setLocale) { _3 = zephir_fetch_nproperty_this(this_ptr, SL("_locale"), PH_NOISY_CC); ZEPHIR_INIT_VAR(_4); ZEPHIR_CONCAT_SV(_4, "LC_ALL=", _3); - ZEPHIR_CALL_FUNCTION(NULL, "putenv", &_5, 461, _4); + ZEPHIR_CALL_FUNCTION(NULL, "putenv", &_5, 460, _4); zephir_check_call_status(); _6 = zephir_fetch_nproperty_this(this_ptr, SL("_locale"), PH_NOISY_CC); ZEPHIR_INIT_VAR(_7); ZEPHIR_CONCAT_SV(_7, "LANG=", _6); - ZEPHIR_CALL_FUNCTION(NULL, "putenv", &_5, 461, _7); + ZEPHIR_CALL_FUNCTION(NULL, "putenv", &_5, 460, _7); zephir_check_call_status(); _8 = zephir_fetch_nproperty_this(this_ptr, SL("_locale"), PH_NOISY_CC); ZEPHIR_INIT_VAR(_9); ZEPHIR_CONCAT_SV(_9, "LANGUAGE=", _8); - ZEPHIR_CALL_FUNCTION(NULL, "putenv", &_5, 461, _9); + ZEPHIR_CALL_FUNCTION(NULL, "putenv", &_5, 460, _9); zephir_check_call_status(); _10 = zephir_fetch_nproperty_this(this_ptr, SL("_locale"), PH_NOISY_CC); ZEPHIR_SINIT_VAR(_11); @@ -145019,7 +144661,7 @@ static PHP_METHOD(Phalcon_Translate_Adapter_NativeArray, __construct) { options = options_param; - ZEPHIR_CALL_PARENT(NULL, phalcon_translate_adapter_nativearray_ce, this_ptr, "__construct", &_0, 453, options); + ZEPHIR_CALL_PARENT(NULL, phalcon_translate_adapter_nativearray_ce, this_ptr, "__construct", &_0, 452, options); zephir_check_call_status(); ZEPHIR_OBS_VAR(data); if (!(zephir_array_isset_string_fetch(&data, options, SS("content"), 0 TSRMLS_CC))) { @@ -145044,11 +144686,11 @@ static PHP_METHOD(Phalcon_Translate_Adapter_NativeArray, query) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &index_param, &placeholders); - if (unlikely(Z_TYPE_P(index_param) != IS_STRING && Z_TYPE_P(index_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(index_param) != IS_STRING && Z_TYPE_P(index_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'index' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(index_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(index_param) == IS_STRING)) { zephir_get_strval(index, index_param); } else { ZEPHIR_INIT_VAR(index); @@ -145078,11 +144720,11 @@ static PHP_METHOD(Phalcon_Translate_Adapter_NativeArray, exists) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &index_param); - if (unlikely(Z_TYPE_P(index_param) != IS_STRING && Z_TYPE_P(index_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(index_param) != IS_STRING && Z_TYPE_P(index_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'index' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(index_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(index_param) == IS_STRING)) { zephir_get_strval(index, index_param); } else { ZEPHIR_INIT_VAR(index); @@ -145125,11 +144767,11 @@ static PHP_METHOD(Phalcon_Translate_Interpolator_AssociativeArray, replacePlaceh ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &translation_param, &placeholders); - if (unlikely(Z_TYPE_P(translation_param) != IS_STRING && Z_TYPE_P(translation_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(translation_param) != IS_STRING && Z_TYPE_P(translation_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'translation' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(translation_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(translation_param) == IS_STRING)) { zephir_get_strval(translation, translation_param); } else { ZEPHIR_INIT_VAR(translation); @@ -145147,8 +144789,8 @@ static PHP_METHOD(Phalcon_Translate_Interpolator_AssociativeArray, replacePlaceh if (_0) { zephir_is_iterable(placeholders, &_2$$3, &_1$$3, 0, 0, "phalcon/translate/interpolator/associativearray.zep", 38); for ( - ; zephir_hash_get_current_data_ex(_2$$3, (void**) &_3$$3, &_1$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_2$$3, &_1$$3) + ; zend_hash_get_current_data_ex(_2$$3, (void**) &_3$$3, &_1$$3) == SUCCESS + ; zend_hash_move_forward_ex(_2$$3, &_1$$3) ) { ZEPHIR_GET_HMKEY(key, _2$$3, _1$$3); ZEPHIR_GET_HVALUE(value, _3$$3); @@ -145192,11 +144834,11 @@ static PHP_METHOD(Phalcon_Translate_Interpolator_IndexedArray, replacePlaceholde ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &translation_param, &placeholders); - if (unlikely(Z_TYPE_P(translation_param) != IS_STRING && Z_TYPE_P(translation_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(translation_param) != IS_STRING && Z_TYPE_P(translation_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'translation' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(translation_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(translation_param) == IS_STRING)) { zephir_get_strval(translation, translation_param); } else { ZEPHIR_INIT_VAR(translation); @@ -145298,11 +144940,11 @@ static PHP_METHOD(Phalcon_Validation_Message, __construct) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 3, &message_param, &field, &type_param, &code_param); - if (unlikely(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'message' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(message_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(message_param) == IS_STRING)) { zephir_get_strval(message, message_param); } else { ZEPHIR_INIT_VAR(message); @@ -145342,11 +144984,11 @@ static PHP_METHOD(Phalcon_Validation_Message, setType) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &type_param); - if (unlikely(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'type' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(type_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(type_param) == IS_STRING)) { zephir_get_strval(type, type_param); } else { ZEPHIR_INIT_VAR(type); @@ -145375,11 +145017,11 @@ static PHP_METHOD(Phalcon_Validation_Message, setMessage) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &message_param); - if (unlikely(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'message' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(message_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(message_param) == IS_STRING)) { zephir_get_strval(message, message_param); } else { ZEPHIR_INIT_VAR(message); @@ -145470,7 +145112,7 @@ static PHP_METHOD(Phalcon_Validation_Message, __set_state) { zephir_array_fetch_string(&_0, message, SL("_message"), PH_NOISY | PH_READONLY, "phalcon/validation/message.zep", 134 TSRMLS_CC); zephir_array_fetch_string(&_1, message, SL("_field"), PH_NOISY | PH_READONLY, "phalcon/validation/message.zep", 134 TSRMLS_CC); zephir_array_fetch_string(&_2, message, SL("_type"), PH_NOISY | PH_READONLY, "phalcon/validation/message.zep", 134 TSRMLS_CC); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 465, _0, _1, _2); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 464, _0, _1, _2); zephir_check_call_status(); RETURN_MM(); @@ -145560,11 +145202,11 @@ static PHP_METHOD(Phalcon_Validation_Validator, isSetOption) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &key_param); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { ZEPHIR_INIT_VAR(key); @@ -145585,11 +145227,11 @@ static PHP_METHOD(Phalcon_Validation_Validator, hasOption) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &key_param); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { ZEPHIR_INIT_VAR(key); @@ -145611,11 +145253,11 @@ static PHP_METHOD(Phalcon_Validation_Validator, getOption) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &key_param, &defaultValue); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { ZEPHIR_INIT_VAR(key); @@ -145654,11 +145296,11 @@ static PHP_METHOD(Phalcon_Validation_Validator, setOption) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &key_param, &value); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { ZEPHIR_INIT_VAR(key); @@ -145750,7 +145392,7 @@ static PHP_METHOD(Phalcon_Validation_Message_Group, offsetGet) { zephir_fetch_params(0, 1, 0, &index_param); - if (unlikely(Z_TYPE_P(index_param) != IS_LONG)) { + if (UNEXPECTED(Z_TYPE_P(index_param) != IS_LONG)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'index' must be a int") TSRMLS_CC); RETURN_NULL(); } @@ -145773,7 +145415,7 @@ static PHP_METHOD(Phalcon_Validation_Message_Group, offsetSet) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &index_param, &message); - if (unlikely(Z_TYPE_P(index_param) != IS_LONG)) { + if (UNEXPECTED(Z_TYPE_P(index_param) != IS_LONG)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'index' must be a int") TSRMLS_CC); RETURN_MM_NULL(); } @@ -145823,7 +145465,7 @@ static PHP_METHOD(Phalcon_Validation_Message_Group, offsetUnset) { ZEPHIR_INIT_VAR(_2$$3); ZVAL_LONG(_2$$3, 1); ZEPHIR_MAKE_REF(_1$$3); - ZEPHIR_CALL_FUNCTION(NULL, "array_splice", NULL, 466, _1$$3, index, _2$$3); + ZEPHIR_CALL_FUNCTION(NULL, "array_splice", NULL, 465, _1$$3, index, _2$$3); ZEPHIR_UNREF(_1$$3); zephir_check_call_status(); } @@ -145905,11 +145547,11 @@ static PHP_METHOD(Phalcon_Validation_Message_Group, filter) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &fieldName_param); - if (unlikely(Z_TYPE_P(fieldName_param) != IS_STRING && Z_TYPE_P(fieldName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(fieldName_param) != IS_STRING && Z_TYPE_P(fieldName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'fieldName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(fieldName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(fieldName_param) == IS_STRING)) { zephir_get_strval(fieldName, fieldName_param); } else { ZEPHIR_INIT_VAR(fieldName); @@ -145924,8 +145566,8 @@ static PHP_METHOD(Phalcon_Validation_Message_Group, filter) { if (Z_TYPE_P(messages) == IS_ARRAY) { zephir_is_iterable(messages, &_1$$3, &_0$$3, 0, 0, "phalcon/validation/message/group.zep", 210); for ( - ; zephir_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_1$$3, &_0$$3) + ; zend_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS + ; zend_hash_move_forward_ex(_1$$3, &_0$$3) ) { ZEPHIR_GET_HVALUE(message, _2$$3); if ((zephir_method_exists_ex(message, SS("getfield") TSRMLS_CC) == SUCCESS)) { @@ -146069,11 +145711,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_Alnum, validate) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &validation, &field_param); - if (unlikely(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'field' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(field_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(field_param) == IS_STRING)) { zephir_get_strval(field, field_param); } else { ZEPHIR_INIT_VAR(field); @@ -146083,7 +145725,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Alnum, validate) { ZEPHIR_CALL_METHOD(&value, validation, "getvalue", NULL, 0, field); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_0, "ctype_alnum", NULL, 467, value); + ZEPHIR_CALL_FUNCTION(&_0, "ctype_alnum", NULL, 466, value); zephir_check_call_status(); if (!(zephir_is_true(_0))) { ZEPHIR_INIT_VAR(_1$$3); @@ -146133,7 +145775,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Alnum, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_7$$3); ZVAL_STRING(_7$$3, "Alnum", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _1$$3, "__construct", NULL, 465, _6$$3, field, _7$$3, code); + ZEPHIR_CALL_METHOD(NULL, _1$$3, "__construct", NULL, 464, _6$$3, field, _7$$3, code); zephir_check_temp_parameter(_7$$3); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _1$$3); @@ -146171,11 +145813,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_Alpha, validate) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &validation, &field_param); - if (unlikely(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'field' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(field_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(field_param) == IS_STRING)) { zephir_get_strval(field, field_param); } else { ZEPHIR_INIT_VAR(field); @@ -146238,7 +145880,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Alpha, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_9$$3); ZVAL_STRING(_9$$3, "Alpha", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _3$$3, "__construct", NULL, 465, _8$$3, field, _9$$3, code); + ZEPHIR_CALL_METHOD(NULL, _3$$3, "__construct", NULL, 464, _8$$3, field, _9$$3, code); zephir_check_temp_parameter(_9$$3); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _3$$3); @@ -146277,11 +145919,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_Between, validate) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &validation, &field_param); - if (unlikely(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'field' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(field_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(field_param) == IS_STRING)) { zephir_get_strval(field, field_param); } else { ZEPHIR_INIT_VAR(field); @@ -146363,7 +146005,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Between, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_10$$5); ZVAL_STRING(_10$$5, "Between", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _4$$5, "__construct", NULL, 465, _9$$5, field, _10$$5, code); + ZEPHIR_CALL_METHOD(NULL, _4$$5, "__construct", NULL, 464, _9$$5, field, _10$$5, code); zephir_check_temp_parameter(_10$$5); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _4$$5); @@ -146402,11 +146044,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_Callback, validate) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &validation, &field_param); - if (unlikely(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'field' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(field_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(field_param) == IS_STRING)) { zephir_get_strval(field, field_param); } else { ZEPHIR_INIT_VAR(field); @@ -146481,7 +146123,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Callback, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_8$$6); ZVAL_STRING(_8$$6, "Callback", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _2$$6, "__construct", NULL, 465, _7$$6, field, _8$$6, code); + ZEPHIR_CALL_METHOD(NULL, _2$$6, "__construct", NULL, 464, _7$$6, field, _8$$6, code); zephir_check_temp_parameter(_8$$6); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _2$$6); @@ -146528,11 +146170,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_Confirmation, validate) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &validation, &field_param); - if (unlikely(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'field' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(field_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(field_param) == IS_STRING)) { zephir_get_strval(field, field_param); } else { ZEPHIR_INIT_VAR(field); @@ -146553,7 +146195,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Confirmation, validate) { zephir_check_call_status(); ZEPHIR_CALL_METHOD(&valueWith, validation, "getvalue", NULL, 0, fieldWith); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_2, this_ptr, "compare", NULL, 468, value, valueWith); + ZEPHIR_CALL_METHOD(&_2, this_ptr, "compare", NULL, 467, value, valueWith); zephir_check_call_status(); if (!(zephir_is_true(_2))) { ZEPHIR_INIT_VAR(_3$$4); @@ -146617,7 +146259,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Confirmation, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_10$$4); ZVAL_STRING(_10$$4, "Confirmation", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _3$$4, "__construct", NULL, 465, _9$$4, field, _10$$4, code); + ZEPHIR_CALL_METHOD(NULL, _3$$4, "__construct", NULL, 464, _9$$4, field, _10$$4, code); zephir_check_temp_parameter(_10$$4); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _3$$4); @@ -146696,11 +146338,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_CreditCard, validate) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &validation, &field_param); - if (unlikely(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'field' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(field_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(field_param) == IS_STRING)) { zephir_get_strval(field, field_param); } else { ZEPHIR_INIT_VAR(field); @@ -146710,7 +146352,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_CreditCard, validate) { ZEPHIR_CALL_METHOD(&value, validation, "getvalue", NULL, 0, field); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&valid, this_ptr, "verifybyluhnalgorithm", NULL, 469, value); + ZEPHIR_CALL_METHOD(&valid, this_ptr, "verifybyluhnalgorithm", NULL, 468, value); zephir_check_call_status(); if (!(zephir_is_true(valid))) { ZEPHIR_INIT_VAR(_0$$3); @@ -146760,7 +146402,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_CreditCard, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_6$$3); ZVAL_STRING(_6$$3, "CreditCard", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _0$$3, "__construct", NULL, 465, _5$$3, field, _6$$3, code); + ZEPHIR_CALL_METHOD(NULL, _0$$3, "__construct", NULL, 464, _5$$3, field, _6$$3, code); zephir_check_temp_parameter(_6$$3); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _0$$3); @@ -146795,8 +146437,8 @@ static PHP_METHOD(Phalcon_Validation_Validator_CreditCard, verifyByLuhnAlgorithm zephir_check_call_status(); zephir_is_iterable(_4, &_6, &_5, 0, 0, "phalcon/validation/validator/creditcard.zep", 118); for ( - ; zephir_hash_get_current_data_ex(_6, (void**) &_7, &_5) == SUCCESS - ; zephir_hash_move_forward_ex(_6, &_5) + ; zend_hash_get_current_data_ex(_6, (void**) &_7, &_5) == SUCCESS + ; zend_hash_move_forward_ex(_6, &_5) ) { ZEPHIR_GET_HMKEY(position, _6, _5); ZEPHIR_GET_HVALUE(digit, _7); @@ -146811,7 +146453,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_CreditCard, verifyByLuhnAlgorithm } ZEPHIR_CALL_FUNCTION(&_9, "str_split", &_1, 71, hash); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&result, "array_sum", NULL, 470, _9); + ZEPHIR_CALL_FUNCTION(&result, "array_sum", NULL, 469, _9); zephir_check_call_status(); RETURN_MM_BOOL((zephir_safe_mod_zval_long(result, 10 TSRMLS_CC) == 0)); @@ -146844,11 +146486,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_Date, validate) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &validation, &field_param); - if (unlikely(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'field' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(field_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(field_param) == IS_STRING)) { zephir_get_strval(field, field_param); } else { ZEPHIR_INIT_VAR(field); @@ -146871,7 +146513,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Date, validate) { ZEPHIR_INIT_NVAR(format); ZVAL_STRING(format, "Y-m-d", 1); } - ZEPHIR_CALL_METHOD(&_2, this_ptr, "checkdate", NULL, 471, value, format); + ZEPHIR_CALL_METHOD(&_2, this_ptr, "checkdate", NULL, 470, value, format); zephir_check_call_status(); if (!(zephir_is_true(_2))) { ZEPHIR_INIT_VAR(_3$$5); @@ -146912,7 +146554,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Date, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_8$$5); ZVAL_STRING(_8$$5, "Date", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _3$$5, "__construct", NULL, 465, _7$$5, field, _8$$5); + ZEPHIR_CALL_METHOD(NULL, _3$$5, "__construct", NULL, 464, _7$$5, field, _8$$5); zephir_check_temp_parameter(_8$$5); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _3$$5); @@ -146985,11 +146627,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_Digit, validate) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &validation, &field_param); - if (unlikely(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'field' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(field_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(field_param) == IS_STRING)) { zephir_get_strval(field, field_param); } else { ZEPHIR_INIT_VAR(field); @@ -147001,7 +146643,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Digit, validate) { zephir_check_call_status(); _0 = Z_TYPE_P(value) == IS_LONG; if (!(_0)) { - ZEPHIR_CALL_FUNCTION(&_1, "ctype_digit", NULL, 472, value); + ZEPHIR_CALL_FUNCTION(&_1, "ctype_digit", NULL, 471, value); zephir_check_call_status(); _0 = zephir_is_true(_1); } @@ -147055,7 +146697,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Digit, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_8); ZVAL_STRING(_8, "Digit", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", NULL, 465, _7, field, _8, code); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", NULL, 464, _7, field, _8, code); zephir_check_temp_parameter(_8); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _2); @@ -147091,11 +146733,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_Email, validate) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &validation, &field_param); - if (unlikely(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'field' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(field_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(field_param) == IS_STRING)) { zephir_get_strval(field, field_param); } else { ZEPHIR_INIT_VAR(field); @@ -147157,7 +146799,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Email, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_8$$3); ZVAL_STRING(_8$$3, "Email", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _2$$3, "__construct", NULL, 465, _7$$3, field, _8$$3, code); + ZEPHIR_CALL_METHOD(NULL, _2$$3, "__construct", NULL, 464, _7$$3, field, _8$$3, code); zephir_check_temp_parameter(_8$$3); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _2$$3); @@ -147213,11 +146855,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_ExclusionIn, validate) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &validation, &field_param); - if (unlikely(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'field' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(field_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(field_param) == IS_STRING)) { zephir_get_strval(field, field_param); } else { ZEPHIR_INIT_VAR(field); @@ -147317,7 +146959,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_ExclusionIn, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_11$$9); ZVAL_STRING(_11$$9, "ExclusionIn", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _5$$9, "__construct", NULL, 465, _10$$9, field, _11$$9, code); + ZEPHIR_CALL_METHOD(NULL, _5$$9, "__construct", NULL, 464, _10$$9, field, _11$$9, code); zephir_check_temp_parameter(_11$$9); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _5$$9); @@ -147360,11 +147002,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, validate) { zephir_get_global(&_SERVER, SS("_SERVER") TSRMLS_CC); zephir_fetch_params(1, 2, 0, &validation, &field_param); - if (unlikely(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'field' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(field_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(field_param) == IS_STRING)) { zephir_get_strval(field, field_param); } else { ZEPHIR_INIT_VAR(field); @@ -147445,7 +147087,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_16$$6); ZVAL_STRING(_16$$6, "FileIniSize", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _11$$6, "__construct", &_17, 465, _14$$6, field, _16$$6, code); + ZEPHIR_CALL_METHOD(NULL, _11$$6, "__construct", &_17, 464, _14$$6, field, _16$$6, code); zephir_check_temp_parameter(_16$$6); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _11$$6); @@ -147494,7 +147136,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_28$$9); ZVAL_STRING(_28$$9, "FileEmpty", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _24$$9, "__construct", &_17, 465, _27$$9, field, _28$$9, code); + ZEPHIR_CALL_METHOD(NULL, _24$$9, "__construct", &_17, 464, _27$$9, field, _28$$9, code); zephir_check_temp_parameter(_28$$9); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _24$$9); @@ -147535,7 +147177,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_35$$12); ZVAL_STRING(_35$$12, "FileValid", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _31$$12, "__construct", &_17, 465, _34$$12, field, _35$$12, code); + ZEPHIR_CALL_METHOD(NULL, _31$$12, "__construct", &_17, 464, _34$$12, field, _35$$12, code); zephir_check_temp_parameter(_35$$12); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _31$$12); @@ -147626,7 +147268,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_54$$18); ZVAL_STRING(_54$$18, "FileSize", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _50$$18, "__construct", &_17, 465, _53$$18, field, _54$$18, code); + ZEPHIR_CALL_METHOD(NULL, _50$$18, "__construct", &_17, 464, _53$$18, field, _54$$18, code); zephir_check_temp_parameter(_54$$18); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _50$$18); @@ -147696,7 +147338,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_63$$26); ZVAL_STRING(_63$$26, "FileType", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _59$$26, "__construct", &_17, 465, _62$$26, field, _63$$26, code); + ZEPHIR_CALL_METHOD(NULL, _59$$26, "__construct", &_17, 464, _62$$26, field, _63$$26, code); zephir_check_temp_parameter(_63$$26); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _59$$26); @@ -147784,7 +147426,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_77$$33); ZVAL_STRING(_77$$33, "FileMinResolution", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _73$$33, "__construct", &_17, 465, _76$$33, field, _77$$33, code); + ZEPHIR_CALL_METHOD(NULL, _73$$33, "__construct", &_17, 464, _76$$33, field, _77$$33, code); zephir_check_temp_parameter(_77$$33); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _73$$33); @@ -147843,7 +147485,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_86$$38); ZVAL_STRING(_86$$38, "FileMaxResolution", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _82$$38, "__construct", &_17, 465, _85$$38, field, _86$$38, code); + ZEPHIR_CALL_METHOD(NULL, _82$$38, "__construct", &_17, 464, _85$$38, field, _86$$38, code); zephir_check_temp_parameter(_86$$38); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _82$$38); @@ -147866,11 +147508,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, isAllowEmpty) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &validation, &field_param); - if (unlikely(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'field' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(field_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(field_param) == IS_STRING)) { zephir_get_strval(field, field_param); } else { ZEPHIR_INIT_VAR(field); @@ -147921,11 +147563,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_Identical, validate) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &validation, &field_param); - if (unlikely(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'field' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(field_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(field_param) == IS_STRING)) { zephir_get_strval(field, field_param); } else { ZEPHIR_INIT_VAR(field); @@ -148018,7 +147660,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Identical, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_14$$8); ZVAL_STRING(_14$$8, "Identical", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _8$$8, "__construct", NULL, 465, _13$$8, field, _14$$8, code); + ZEPHIR_CALL_METHOD(NULL, _8$$8, "__construct", NULL, 464, _13$$8, field, _14$$8, code); zephir_check_temp_parameter(_14$$8); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _8$$8); @@ -148056,11 +147698,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_InclusionIn, validate) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &validation, &field_param); - if (unlikely(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'field' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(field_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(field_param) == IS_STRING)) { zephir_get_strval(field, field_param); } else { ZEPHIR_INIT_VAR(field); @@ -148160,7 +147802,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_InclusionIn, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_11$$9); ZVAL_STRING(_11$$9, "InclusionIn", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _5$$9, "__construct", NULL, 465, _10$$9, field, _11$$9, code); + ZEPHIR_CALL_METHOD(NULL, _5$$9, "__construct", NULL, 464, _10$$9, field, _11$$9, code); zephir_check_temp_parameter(_11$$9); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _5$$9); @@ -148198,11 +147840,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_Numericality, validate) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &validation, &field_param); - if (unlikely(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'field' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(field_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(field_param) == IS_STRING)) { zephir_get_strval(field, field_param); } else { ZEPHIR_INIT_VAR(field); @@ -148265,7 +147907,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Numericality, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_9$$3); ZVAL_STRING(_9$$3, "Numericality", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _3$$3, "__construct", NULL, 465, _8$$3, field, _9$$3, code); + ZEPHIR_CALL_METHOD(NULL, _3$$3, "__construct", NULL, 464, _8$$3, field, _9$$3, code); zephir_check_temp_parameter(_9$$3); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _3$$3); @@ -148304,11 +147946,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_PresenceOf, validate) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &validation, &field_param); - if (unlikely(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'field' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(field_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(field_param) == IS_STRING)) { zephir_get_strval(field, field_param); } else { ZEPHIR_INIT_VAR(field); @@ -148370,7 +148012,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_PresenceOf, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_7$$3); ZVAL_STRING(_7$$3, "PresenceOf", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _1$$3, "__construct", NULL, 465, _6$$3, field, _7$$3, code); + ZEPHIR_CALL_METHOD(NULL, _1$$3, "__construct", NULL, 464, _6$$3, field, _7$$3, code); zephir_check_temp_parameter(_7$$3); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _1$$3); @@ -148409,11 +148051,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_Regex, validate) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &validation, &field_param); - if (unlikely(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'field' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(field_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(field_param) == IS_STRING)) { zephir_get_strval(field, field_param); } else { ZEPHIR_INIT_VAR(field); @@ -148490,7 +148132,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Regex, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_9$$6); ZVAL_STRING(_9$$6, "Regex", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _3$$6, "__construct", NULL, 465, _8$$6, field, _9$$6, code); + ZEPHIR_CALL_METHOD(NULL, _3$$6, "__construct", NULL, 464, _8$$6, field, _9$$6, code); zephir_check_temp_parameter(_9$$6); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _3$$6); @@ -148530,11 +148172,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_StringLength, validate) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &validation, &field_param); - if (unlikely(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'field' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(field_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(field_param) == IS_STRING)) { zephir_get_strval(field, field_param); } else { ZEPHIR_INIT_VAR(field); @@ -148628,7 +148270,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_StringLength, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_11$$11); ZVAL_STRING(_11$$11, "TooLong", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _6$$11, "__construct", &_12, 465, _9$$11, field, _11$$11, code); + ZEPHIR_CALL_METHOD(NULL, _6$$11, "__construct", &_12, 464, _9$$11, field, _11$$11, code); zephir_check_temp_parameter(_11$$11); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _6$$11); @@ -148673,7 +148315,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_StringLength, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_19$$16); ZVAL_STRING(_19$$16, "TooShort", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _15$$16, "__construct", &_12, 465, _18$$16, field, _19$$16, code); + ZEPHIR_CALL_METHOD(NULL, _15$$16, "__construct", &_12, 464, _18$$16, field, _19$$16, code); zephir_check_temp_parameter(_19$$16); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _15$$16); @@ -148754,7 +148396,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Uniqueness, validate) { zephir_check_call_status(); ZEPHIR_INIT_NVAR(_6$$3); ZVAL_STRING(_6$$3, "Uniqueness", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _1$$3, "__construct", NULL, 465, _4$$3, field, _6$$3, _5$$3); + ZEPHIR_CALL_METHOD(NULL, _1$$3, "__construct", NULL, 464, _4$$3, field, _6$$3, _5$$3); zephir_check_temp_parameter(_6$$3); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _1$$3); @@ -148796,8 +148438,8 @@ static PHP_METHOD(Phalcon_Validation_Validator_Uniqueness, isUniqueness) { zephir_check_call_status(); zephir_is_iterable(field, &_2, &_1, 0, 0, "phalcon/validation/validator/uniqueness.zep", 151); for ( - ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS - ; zephir_hash_move_forward_ex(_2, &_1) + ; zend_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS + ; zend_hash_move_forward_ex(_2, &_1) ) { ZEPHIR_GET_HVALUE(singleField, _3); ZEPHIR_CALL_METHOD(&_4$$4, validation, "getvalue", &_5, 0, singleField); @@ -148861,11 +148503,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_Uniqueness, getColumnNameReal) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &record, &field_param); - if (unlikely(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'field' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(field_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(field_param) == IS_STRING)) { zephir_get_strval(field, field_param); } else { ZEPHIR_INIT_VAR(field); @@ -148942,8 +148584,8 @@ static PHP_METHOD(Phalcon_Validation_Validator_Uniqueness, isUniquenessModel) { zephir_check_call_status(); zephir_is_iterable(field, &_2, &_1, 0, 0, "phalcon/validation/validator/uniqueness.zep", 290); for ( - ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS - ; zephir_hash_move_forward_ex(_2, &_1) + ; zend_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS + ; zend_hash_move_forward_ex(_2, &_1) ) { ZEPHIR_GET_HVALUE(singleField, _3); ZEPHIR_INIT_NVAR(fieldExcept); @@ -148989,8 +148631,8 @@ static PHP_METHOD(Phalcon_Validation_Validator_Uniqueness, isUniquenessModel) { if (_10$$6) { zephir_is_iterable(except, &_17$$7, &_16$$7, 0, 0, "phalcon/validation/validator/uniqueness.zep", 253); for ( - ; zephir_hash_get_current_data_ex(_17$$7, (void**) &_18$$7, &_16$$7) == SUCCESS - ; zephir_hash_move_forward_ex(_17$$7, &_16$$7) + ; zend_hash_get_current_data_ex(_17$$7, (void**) &_18$$7, &_16$$7) == SUCCESS + ; zend_hash_move_forward_ex(_17$$7, &_16$$7) ) { ZEPHIR_GET_HMKEY(singleField, _17$$7, _16$$7); ZEPHIR_GET_HVALUE(fieldExcept, _18$$7); @@ -149004,8 +148646,8 @@ static PHP_METHOD(Phalcon_Validation_Validator_Uniqueness, isUniquenessModel) { if (Z_TYPE_P(fieldExcept) == IS_ARRAY) { zephir_is_iterable(fieldExcept, &_22$$9, &_21$$9, 0, 0, "phalcon/validation/validator/uniqueness.zep", 246); for ( - ; zephir_hash_get_current_data_ex(_22$$9, (void**) &_23$$9, &_21$$9) == SUCCESS - ; zephir_hash_move_forward_ex(_22$$9, &_21$$9) + ; zend_hash_get_current_data_ex(_22$$9, (void**) &_23$$9, &_21$$9) == SUCCESS + ; zend_hash_move_forward_ex(_22$$9, &_21$$9) ) { ZEPHIR_GET_HVALUE(singleExcept, _23$$9); ZEPHIR_SINIT_NVAR(_24$$10); @@ -149043,8 +148685,8 @@ static PHP_METHOD(Phalcon_Validation_Validator_Uniqueness, isUniquenessModel) { if (Z_TYPE_P(except) == IS_ARRAY) { zephir_is_iterable(except, &_34$$13, &_33$$13, 0, 0, "phalcon/validation/validator/uniqueness.zep", 261); for ( - ; zephir_hash_get_current_data_ex(_34$$13, (void**) &_35$$13, &_33$$13) == SUCCESS - ; zephir_hash_move_forward_ex(_34$$13, &_33$$13) + ; zend_hash_get_current_data_ex(_34$$13, (void**) &_35$$13, &_33$$13) == SUCCESS + ; zend_hash_move_forward_ex(_34$$13, &_33$$13) ) { ZEPHIR_GET_HVALUE(singleExcept, _35$$13); ZEPHIR_SINIT_NVAR(_36$$14); @@ -149072,8 +148714,8 @@ static PHP_METHOD(Phalcon_Validation_Validator_Uniqueness, isUniquenessModel) { } else if (zephir_fast_count_int(field TSRMLS_CC) > 1) { zephir_is_iterable(field, &_43$$16, &_42$$16, 0, 0, "phalcon/validation/validator/uniqueness.zep", 283); for ( - ; zephir_hash_get_current_data_ex(_43$$16, (void**) &_44$$16, &_42$$16) == SUCCESS - ; zephir_hash_move_forward_ex(_43$$16, &_42$$16) + ; zend_hash_get_current_data_ex(_43$$16, (void**) &_44$$16, &_42$$16) == SUCCESS + ; zend_hash_move_forward_ex(_43$$16, &_42$$16) ) { ZEPHIR_GET_HVALUE(singleField, _44$$16); ZEPHIR_INIT_NVAR(_46$$17); @@ -149086,8 +148728,8 @@ static PHP_METHOD(Phalcon_Validation_Validator_Uniqueness, isUniquenessModel) { if (Z_TYPE_P(except) == IS_ARRAY) { zephir_is_iterable(except, &_48$$18, &_47$$18, 0, 0, "phalcon/validation/validator/uniqueness.zep", 276); for ( - ; zephir_hash_get_current_data_ex(_48$$18, (void**) &_49$$18, &_47$$18) == SUCCESS - ; zephir_hash_move_forward_ex(_48$$18, &_47$$18) + ; zend_hash_get_current_data_ex(_48$$18, (void**) &_49$$18, &_47$$18) == SUCCESS + ; zend_hash_move_forward_ex(_48$$18, &_47$$18) ) { ZEPHIR_GET_HVALUE(singleExcept, _49$$18); ZEPHIR_SINIT_NVAR(_50$$19); @@ -149130,8 +148772,8 @@ static PHP_METHOD(Phalcon_Validation_Validator_Uniqueness, isUniquenessModel) { zephir_check_call_status(); zephir_is_iterable(_59$$21, &_61$$21, &_60$$21, 0, 0, "phalcon/validation/validator/uniqueness.zep", 298); for ( - ; zephir_hash_get_current_data_ex(_61$$21, (void**) &_62$$21, &_60$$21) == SUCCESS - ; zephir_hash_move_forward_ex(_61$$21, &_60$$21) + ; zend_hash_get_current_data_ex(_61$$21, (void**) &_62$$21, &_60$$21) == SUCCESS + ; zend_hash_move_forward_ex(_61$$21, &_60$$21) ) { ZEPHIR_GET_HVALUE(primaryField, _62$$21); ZEPHIR_CALL_METHOD(&_63$$22, this_ptr, "getcolumnnamereal", &_6, 0, record, primaryField); @@ -149188,8 +148830,8 @@ static PHP_METHOD(Phalcon_Validation_Validator_Uniqueness, isUniquenessCollectio zephir_array_update_string(¶ms, SL("conditions"), &_0, PH_COPY | PH_SEPARATE); zephir_is_iterable(field, &_2, &_1, 0, 0, "phalcon/validation/validator/uniqueness.zep", 363); for ( - ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS - ; zephir_hash_move_forward_ex(_2, &_1) + ; zend_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS + ; zend_hash_move_forward_ex(_2, &_1) ) { ZEPHIR_GET_HVALUE(singleField, _3); ZEPHIR_INIT_NVAR(fieldExcept); @@ -149227,8 +148869,8 @@ static PHP_METHOD(Phalcon_Validation_Validator_Uniqueness, isUniquenessCollectio if (Z_TYPE_P(fieldExcept) == IS_ARRAY) { zephir_is_iterable(fieldExcept, &_9$$10, &_8$$10, 0, 0, "phalcon/validation/validator/uniqueness.zep", 344); for ( - ; zephir_hash_get_current_data_ex(_9$$10, (void**) &_10$$10, &_8$$10) == SUCCESS - ; zephir_hash_move_forward_ex(_9$$10, &_8$$10) + ; zend_hash_get_current_data_ex(_9$$10, (void**) &_10$$10, &_8$$10) == SUCCESS + ; zend_hash_move_forward_ex(_9$$10, &_8$$10) ) { ZEPHIR_GET_HVALUE(singleExcept, _10$$10); zephir_array_append(¬InValues, singleExcept, PH_SEPARATE, "phalcon/validation/validator/uniqueness.zep", 342); @@ -149246,8 +148888,8 @@ static PHP_METHOD(Phalcon_Validation_Validator_Uniqueness, isUniquenessCollectio } else if (_7$$6) { zephir_is_iterable(except, &_12$$13, &_11$$13, 0, 0, "phalcon/validation/validator/uniqueness.zep", 354); for ( - ; zephir_hash_get_current_data_ex(_12$$13, (void**) &_13$$13, &_11$$13) == SUCCESS - ; zephir_hash_move_forward_ex(_12$$13, &_11$$13) + ; zend_hash_get_current_data_ex(_12$$13, (void**) &_13$$13, &_11$$13) == SUCCESS + ; zend_hash_move_forward_ex(_12$$13, &_11$$13) ) { ZEPHIR_GET_HVALUE(singleExcept, _13$$13); zephir_array_append(¬InValues, singleExcept, PH_SEPARATE, "phalcon/validation/validator/uniqueness.zep", 352); @@ -149311,11 +148953,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_Url, validate) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &validation, &field_param); - if (unlikely(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'field' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(field_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(field_param) == IS_STRING)) { zephir_get_strval(field, field_param); } else { ZEPHIR_INIT_VAR(field); @@ -149377,7 +149019,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Url, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_8$$3); ZVAL_STRING(_8$$3, "Url", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _2$$3, "__construct", NULL, 465, _7$$3, field, _8$$3, code); + ZEPHIR_CALL_METHOD(NULL, _2$$3, "__construct", NULL, 464, _7$$3, field, _8$$3, code); zephir_check_temp_parameter(_8$$3); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _2$$3); diff --git a/build/php5/64bits/phalcon.zep.h b/build/php5/64bits/phalcon.zep.h index ff2a8a493d5..a7b13fc5a00 100644 --- a/build/php5/64bits/phalcon.zep.h +++ b/build/php5/64bits/phalcon.zep.h @@ -17490,7 +17490,7 @@ ZEPHIR_INIT_FUNCS(phalcon_queue_beanstalk_method_entry) { PHP_ME(Phalcon_Queue_Beanstalk, readStatus, NULL, ZEND_ACC_FINAL|ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Queue_Beanstalk, readYaml, NULL, ZEND_ACC_FINAL|ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Queue_Beanstalk, read, arginfo_phalcon_queue_beanstalk_read, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Queue_Beanstalk, write, arginfo_phalcon_queue_beanstalk_write, ZEND_ACC_PROTECTED) + PHP_ME(Phalcon_Queue_Beanstalk, write, arginfo_phalcon_queue_beanstalk_write, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Queue_Beanstalk, disconnect, NULL, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Queue_Beanstalk, quit, NULL, ZEND_ACC_PUBLIC) PHP_FE_END diff --git a/build/php5/64bits/php_phalcon.h b/build/php5/64bits/php_phalcon.h index a9da85ec94c..4523ebe8a59 100644 --- a/build/php5/64bits/php_phalcon.h +++ b/build/php5/64bits/php_phalcon.h @@ -13,7 +13,7 @@ +------------------------------------------------------------------------+ | Zephir Language | +------------------------------------------------------------------------+ - | Copyright (c) 2011-2016 Zephir Team (http://www.zephir-lang.com) | + | Copyright (c) 2011-2017 Zephir Team (http://www.zephir-lang.com) | +------------------------------------------------------------------------+ | This source file is subject to the New BSD License that is bundled | | with this package in the file docs/LICENSE.txt. | @@ -122,10 +122,6 @@ typedef zend_function zephir_fcall_cache_entry; # define HASH_KEY_NON_EXISTENT HASH_KEY_NON_EXISTANT #endif -/** Macros for branch prediction */ -#define likely(x) EXPECTED(x) -#define unlikely(x) UNEXPECTED(x) - #if defined(__GNUC__) && (defined(__clang__) || ((__GNUC__ * 100 + __GNUC_MINOR__) >= 405)) # define UNREACHABLE() __builtin_unreachable() # define ASSUME(x) if (x) {} else __builtin_unreachable() @@ -156,10 +152,6 @@ typedef zend_function zephir_fcall_cache_entry; # define __builtin_constant_p(s) (0) #endif -#ifndef ZEND_MOD_END -# define ZEND_MOD_END { NULL, NULL, NULL, 0 } -#endif - #ifndef __func__ # define __func__ __FUNCTION__ #endif @@ -170,22 +162,17 @@ typedef zend_function zephir_fcall_cache_entry; # define ZEPHIR_NO_OPT #endif -#ifdef ZTS -#define zephir_nts_static -#else -#define zephir_nts_static -#endif - -#define ZEPHIR_STATIC +#define likely(x) EXPECTED(x) +#define unlikely(x) UNEXPECTED(x) #endif #define PHP_PHALCON_NAME "phalcon" -#define PHP_PHALCON_VERSION "3.1.1" +#define PHP_PHALCON_VERSION "3.1.2" #define PHP_PHALCON_EXTNAME "phalcon" #define PHP_PHALCON_AUTHOR "Phalcon Team and contributors" -#define PHP_PHALCON_ZEPVERSION "0.9.6a-dev-3a72ba9bb5" +#define PHP_PHALCON_ZEPVERSION "0.9.7-1fae5e50ac" #define PHP_PHALCON_DESCRIPTION "Web framework delivered as a C-extension for PHP" typedef struct _zephir_struct_db { diff --git a/build/php5/safe/config.w32 b/build/php5/safe/config.w32 index c6b6f1514dd..b9fd9f14931 100644 --- a/build/php5/safe/config.w32 +++ b/build/php5/safe/config.w32 @@ -1,4 +1,6 @@ + ARG_ENABLE("phalcon", "enable phalcon", "no"); + if (PHP_PHALCON != "no") { EXTENSION("phalcon", "phalcon.zep.c", null, "-I"+configure_module_dirname); ADD_FLAG("CFLAGS", "/D ZEPHIR_RELEASE /Oi /Ot /Oy /Ob2 /Gs /GF /Gy /GL"); diff --git a/build/php5/safe/phalcon.zep.c b/build/php5/safe/phalcon.zep.c index 43daff7e10e..1b99940efd6 100644 --- a/build/php5/safe/phalcon.zep.c +++ b/build/php5/safe/phalcon.zep.c @@ -2588,6 +2588,9 @@ static inline char *_str_erealloc(char *str, size_t new_len, size_t old_len) { #define zephir_is_php_version(id) (PHP_VERSION_ID / 10 == id / 10 ? 1 : 0) +static void zephir_get_args(zval* return_value TSRMLS_DC); +static void zephir_get_arg(zval* return_value, int idx TSRMLS_DC); + #endif /* ZEPHIR_KERNEL_MAIN_H */ @@ -2902,73 +2905,6 @@ static void zephir_throw_exception_format(zend_class_entry *ce TSRMLS_DC, const -#ifndef ZEPHIR_KERNEL_HASH_H -#define ZEPHIR_KERNEL_HASH_H - - -static int zephir_hash_init(HashTable *ht, uint nSize, hash_func_t pHashFunction, dtor_func_t pDestructor, zend_bool persistent); - -static int zephir_hash_exists(const HashTable *ht, const char *arKey, uint nKeyLength); -static int zephir_hash_quick_exists(const HashTable *ht, const char *arKey, uint nKeyLength, ulong h); -static int zephir_hash_find(const HashTable *ht, const char *arKey, uint nKeyLength, void **pData); -static int zephir_hash_quick_find(const HashTable *ht, const char *arKey, uint nKeyLength, ulong h, void **pData); -static void zephir_get_current_key(zval **key, const HashTable *hash_table, HashPosition *hash_position TSRMLS_DC); -zval zephir_get_current_key_w(const HashTable *hash_table, HashPosition *hash_position); -static int zephir_has_numeric_keys(const zval *data); -static void zephir_hash_update_or_insert(HashTable *ht, zval *offset, zval *value); -zval** zephir_hash_get(HashTable *ht, zval *key, int type); -static int zephir_hash_unset(HashTable *ht, zval *offset); - -#define zephir_hash_move_forward_ex(ht, pos) *pos = (*pos ? (*pos)->pListNext : NULL) - -static zend_always_inline int zephir_hash_get_current_data_ex(HashTable *ht, void **pData, HashPosition *pos) -{ - Bucket *p; - p = pos ? (*pos) : ht->pInternalPointer; - if (p) { - *pData = p->pData; - return SUCCESS; - } else { - return FAILURE; - } -} - -static zend_always_inline int zephir_hash_move_backwards_ex(HashTable *ht, HashPosition *pos) -{ -#if PHP_VERSION_ID < 70000 - HashPosition *current = pos ? pos : &ht->pInternalPointer; - if (*current) { - *current = (*current)->pListLast; - return SUCCESS; - } else { - return FAILURE; - } -#else - uint idx = *pos; - - IS_CONSISTENT(ht); - - if (idx != INVALID_IDX) { - while (idx > 0) { - idx--; - if (Z_TYPE(ht->arData[idx].val) != IS_UNDEF) { - *pos = idx; - return SUCCESS; - } - } - *pos = INVALID_IDX; - return SUCCESS; - } else { - return FAILURE; - } -#endif -} - -#endif - - - - #ifndef ZEPHIR_KERNEL_DEBUG_H #define ZEPHIR_KERNEL_DEBUG_H @@ -3020,6 +2956,7 @@ static int zephir_debug_space(); + #ifndef ZEPHIR_KERNEL_BACKTRACE_H #define ZEPHIR_KERNEL_BACKTRACE_H @@ -3283,9 +3220,6 @@ static void ZEPHIR_FASTCALL zephir_create_array(zval *return_value, uint size, i - - - #ifndef ZEPHIR_KERNEL_FCALL_EXT_H #define ZEPHIR_KERNEL_FCALL_EXT_H @@ -3413,6 +3347,8 @@ static void zephir_stripcslashes(zval *return_value, zval *str TSRMLS_DC); static int zephir_hash_equals(const zval *known_zval, const zval *user_zval); +static void zephir_string_to_hex(zval *return_value, zval *var); + #endif /* ZEPHIR_KERNEL_STRING_H */ @@ -4715,10 +4651,13 @@ static void zephir_var_export_ex(zval *return_value, zval **var TSRMLS_DC); static void zephir_var_dump(zval **var TSRMLS_DC); +static void zephir_get_defined_vars(zval *return_value TSRMLS_DC); + #endif + #ifndef ZEPHIR_KERNEL_FILTER_H #define ZEPHIR_KERNEL_FILTER_H @@ -4740,6 +4679,7 @@ static void zephir_escape_html(zval *return_value, zval *str, zval *quote_style, + #ifndef ZEPHIR_KERNEL_ITERATOR_H #define ZEPHIR_KERNEL_ITERATOR_H @@ -5016,7 +4956,7 @@ static int zephir_is_scalar(zval *var) { static int zephir_is_iterable_ex(zval *arr, HashTable **arr_hash, HashPosition *hash_position, int duplicate, int reverse) { - if (unlikely(Z_TYPE_P(arr) != IS_ARRAY)) { + if (UNEXPECTED(Z_TYPE_P(arr) != IS_ARRAY)) { return 0; } @@ -5149,6 +5089,52 @@ zend_class_entry* zephir_get_internal_ce(const char *class_name, unsigned int cl return *temp_ce; } +static void zephir_get_args(zval *return_value TSRMLS_DC) +{ + zend_execute_data *ex = EG(current_execute_data); + void **p = ex->function_state.arguments; + int arg_count = (int)(zend_uintptr_t)*p; + int i; + + array_init_size(return_value, arg_count); + for (i=0; ifunction_state.arguments; + int arg_count = (int)(zend_uintptr_t)*p; + zval *arg; + + if (UNEXPECTED(idx < 0)) { + zend_error(E_WARNING, "zephir_get_arg(): The argument number should be >= 0"); + RETURN_FALSE; + } + + if (UNEXPECTED((zend_ulong)idx >= arg_count)) { + zend_error(E_WARNING, "zephir_get_arg(): Argument %d not passed to function", idx); + RETURN_FALSE; + } + + arg = *((zval**)(p - arg_count + idx)); + RETURN_ZVAL(arg, 1, 0); +} + @@ -6001,310 +5987,6 @@ static void zephir_throw_exception_zval(zend_class_entry *ce, zval *message TSRM -#ifdef HAVE_CONFIG_H -#endif - - - -static int zephir_hash_init(HashTable *ht, uint nSize, hash_func_t pHashFunction, dtor_func_t pDestructor, zend_bool persistent) -{ - if (nSize >= 0x80000000) { - ht->nTableSize = 0x80000000; - } else { - if (nSize > 3) { - ht->nTableSize = nSize + (nSize >> 2); - } else { - ht->nTableSize = 3; - } - } - -#if ZEND_DEBUG - ht->inconsistent = 0; -#endif - - ht->nTableMask = 0; /* 0 means that ht->arBuckets is uninitialized */ - ht->pDestructor = pDestructor; - ht->arBuckets = NULL; - ht->pListHead = NULL; - ht->pListTail = NULL; - ht->nNumOfElements = 0; - ht->nNextFreeElement = 0; - ht->pInternalPointer = NULL; - ht->persistent = persistent; - ht->nApplyCount = 0; - ht->bApplyProtection = 1; - - return SUCCESS; -} - -static int zephir_hash_exists(const HashTable *ht, const char *arKey, uint nKeyLength) -{ - ulong h; - uint nIndex; - Bucket *p; - - h = zend_inline_hash_func(arKey, nKeyLength); - nIndex = h & ht->nTableMask; - - p = ht->arBuckets[nIndex]; - while (p != NULL) { - if (p->arKey == arKey || ((p->h == h) && (p->nKeyLength == nKeyLength))) { - if (!memcmp(p->arKey, arKey, nKeyLength)) { - return 1; - } - } - p = p->pNext; - } - return 0; -} - -static int zephir_hash_quick_exists(const HashTable *ht, const char *arKey, uint nKeyLength, ulong h) -{ - uint nIndex; - Bucket *p; - - if (nKeyLength == 0) { - return zend_hash_index_exists(ht, h); - } - - nIndex = h & ht->nTableMask; - - p = ht->arBuckets[nIndex]; - while (p != NULL) { - if (p->arKey == arKey || ((p->h == h) && (p->nKeyLength == nKeyLength))) { - if (!memcmp(p->arKey, arKey, nKeyLength)) { - return 1; - } - } - p = p->pNext; - } - return 0; -} - -static int zephir_hash_find(const HashTable *ht, const char *arKey, uint nKeyLength, void **pData) -{ - ulong h; - uint nIndex; - Bucket *p; - - h = zend_inline_hash_func(arKey, nKeyLength); - nIndex = h & ht->nTableMask; - - p = ht->arBuckets[nIndex]; - while (p != NULL) { - if (p->arKey == arKey || ((p->h == h) && (p->nKeyLength == nKeyLength))) { - if (!memcmp(p->arKey, arKey, nKeyLength)) { - *pData = p->pData; - return SUCCESS; - } - } - p = p->pNext; - } - return FAILURE; -} - -static int zephir_hash_quick_find(const HashTable *ht, const char *arKey, uint nKeyLength, ulong h, void **pData) -{ - uint nIndex; - Bucket *p; - - if (nKeyLength == 0) { - return zend_hash_index_find(ht, h, pData); - } - - nIndex = h & ht->nTableMask; - - p = ht->arBuckets[nIndex]; - while (p != NULL) { - if (p->arKey == arKey || ((p->h == h) && (p->nKeyLength == nKeyLength))) { - if (!memcmp(p->arKey, arKey, nKeyLength)) { - *pData = p->pData; - return SUCCESS; - } - } - p = p->pNext; - } - return FAILURE; -} - -static void zephir_get_current_key(zval **key, const HashTable *hash_table, HashPosition *hash_position TSRMLS_DC) -{ - Bucket *p; - - ZEPHIR_INIT_NVAR_PNULL(*key); - - p = hash_position ? (*hash_position) : hash_table->pInternalPointer; - - if (p) { - if (p->nKeyLength) { - ZVAL_STRINGL(*key, (char *) p->arKey, p->nKeyLength - 1, 0); - } else { - ZVAL_LONG(*key, p->h); - } - } - -} - -zval zephir_get_current_key_w(const HashTable *hash_table, HashPosition *hash_position) -{ - Bucket *p; - zval result; - - INIT_ZVAL(result); - p = hash_position ? (*hash_position) : hash_table->pInternalPointer; - - if (p) { - if (p->nKeyLength) { - ZVAL_STRINGL(&result, (char *) p->arKey, p->nKeyLength - 1, 0); - } else { - ZVAL_LONG(&result, p->h); - } - } - - return result; -} - -static int zephir_has_numeric_keys(const zval *data) -{ - HashTable *ht; - - if (Z_TYPE_P(data) == IS_ARRAY) { - - ht = Z_ARRVAL_P(data); - - ht->pInternalPointer = ht->pListHead; - while (ht->pInternalPointer) { - if (!ht->pInternalPointer->nKeyLength) { - return 1; - } - ht->pInternalPointer = ht->pInternalPointer->pListNext; - } - - } - - return 0; -} - -static void zephir_hash_update_or_insert(HashTable *ht, zval *key, zval *value) -{ - if (!key || Z_TYPE_P(key) == IS_NULL) { - zend_hash_next_index_insert(ht, (void**)&value, sizeof(zval*), NULL); - return; - } - - switch (Z_TYPE_P(key)) { - case IS_STRING: - zend_symtable_update(ht, Z_STRVAL_P(key), Z_STRLEN_P(key)+1, (void**)&value, sizeof(zval*), NULL); - return; - - case IS_RESOURCE: - case IS_DOUBLE: - case IS_BOOL: - case IS_LONG: - zend_hash_index_update(ht, ((Z_TYPE_P(key) == IS_DOUBLE) ? (ulong)Z_DVAL_P(key) : Z_LVAL_P(key)), (void*)&value, sizeof(zval*), NULL); - return; - - default: - zend_error(E_WARNING, "Illegal offset type"); - return; - } -} - -zval** zephir_hash_get(HashTable *ht, zval *key, int type) -{ - zval **ret = NULL; - - switch (Z_TYPE_P(key)) { - case IS_RESOURCE: - zend_error(E_STRICT, "Resource ID#%ld used as offset, casting to integer (%ld)", Z_LVAL_P(key), Z_LVAL_P(key)); - /* no break */ - case IS_LONG: - case IS_DOUBLE: - case IS_BOOL: { - ulong index = (Z_TYPE_P(key) == IS_DOUBLE) ? ((long int)Z_DVAL_P(key)) : Z_LVAL_P(key); - if (FAILURE == zend_hash_index_find(ht, index, (void**)&ret)) { - switch (type) { - case BP_VAR_R: - zend_error(E_NOTICE, "Undefined offset: %ld", index); - /* no break */ - case BP_VAR_UNSET: - case BP_VAR_IS: { - TSRMLS_FETCH(); - ret = &EG(uninitialized_zval_ptr); - break; - } - - case BP_VAR_RW: - zend_error(E_NOTICE, "Undefined offset: %ld", index); - /* no break */ - case BP_VAR_W: { - zval *value; - ALLOC_INIT_ZVAL(value); - zend_hash_index_update(ht, index, (void**)&value, sizeof(void*), (void**)&ret); - break; - } - } - } - - return ret; - } - - case IS_STRING: - if (FAILURE == zend_symtable_find(ht, Z_STRVAL_P(key), Z_STRLEN_P(key)+1, (void**)&ret)) { - switch (type) { - case BP_VAR_R: - zend_error(E_NOTICE, "Undefined offset: %s", Z_STRVAL_P(key)); - /* no break */ - case BP_VAR_UNSET: - case BP_VAR_IS: { - TSRMLS_FETCH(); - ret = &EG(uninitialized_zval_ptr); - break; - } - - case BP_VAR_RW: - zend_error(E_NOTICE, "Undefined offset: %s", Z_STRVAL_P(key)); - /* no break */ - case BP_VAR_W: { - zval *value; - ALLOC_INIT_ZVAL(value); - zend_symtable_update(ht, Z_STRVAL_P(key), Z_STRLEN_P(key)+1, (void**)&value, sizeof(void*), (void**)&ret); - break; - } - } - } - - return ret; - - default: { - TSRMLS_FETCH(); - zend_error(E_WARNING, "Illegal offset type"); - return (type == BP_VAR_W || type == BP_VAR_RW) ? &EG(error_zval_ptr) : &EG(uninitialized_zval_ptr); - } - } -} - -static int zephir_hash_unset(HashTable *ht, zval *key) -{ - switch (Z_TYPE_P(key)) { - case IS_LONG: - case IS_DOUBLE: - case IS_BOOL: - case IS_RESOURCE: - return (zend_hash_index_del(ht, (Z_TYPE_P(key) == IS_DOUBLE) ? ((long int)Z_DVAL_P(key)) : Z_LVAL_P(key)) == SUCCESS); - - case IS_STRING: - return (zend_symtable_del(ht, Z_STRVAL_P(key), Z_STRLEN_P(key) + 1) == SUCCESS); - - default: - zend_error(E_WARNING, "Illegal offset type"); - return 0; - } -} - - - - #ifdef HAVE_CONFIG_H #endif @@ -6633,7 +6315,7 @@ static int zephir_get_class_constant(zval *return_value, zend_class_entry *ce, c zval **result_ptr; - if (zephir_hash_find(&ce->constants_table, constant_name, constant_length, (void **) &result_ptr) != SUCCESS) { + if (zend_hash_find(&ce->constants_table, constant_name, constant_length, (void **) &result_ptr) != SUCCESS) { php_error_docref(NULL TSRMLS_CC, E_ERROR, "Undefined class constant '%s::%s'", ce->name, constant_name); return FAILURE; } @@ -6956,10 +6638,10 @@ static int zephir_clone(zval *destination, zval *obj TSRMLS_DC) { static int zephir_isset_property_quick(zval *object, const char *property_name, unsigned int property_length, unsigned long hash TSRMLS_DC) { if (Z_TYPE_P(object) == IS_OBJECT) { - if (likely(zephir_hash_quick_exists(&Z_OBJCE_P(object)->properties_info, property_name, property_length, hash))) { + if (EXPECTED(zend_hash_quick_exists(&Z_OBJCE_P(object)->properties_info, property_name, property_length, hash))) { return 1; } else { - return zephir_hash_quick_exists(Z_OBJ_HT_P(object)->get_properties(object TSRMLS_CC), property_name, property_length, hash); + return zend_hash_quick_exists(Z_OBJ_HT_P(object)->get_properties(object TSRMLS_CC), property_name, property_length, hash); } } @@ -6980,10 +6662,10 @@ static int zephir_isset_property_zval(zval *object, const zval *property TSRMLS_ hash = zend_inline_hash_func(Z_STRVAL_P(property), Z_STRLEN_P(property) + 1); - if (likely(zephir_hash_quick_exists(&Z_OBJCE_P(object)->properties_info, Z_STRVAL_P(property), Z_STRLEN_P(property) + 1, hash))) { + if (EXPECTED(zend_hash_quick_exists(&Z_OBJCE_P(object)->properties_info, Z_STRVAL_P(property), Z_STRLEN_P(property) + 1, hash))) { return 1; } else { - return zephir_hash_quick_exists(Z_OBJ_HT_P(object)->get_properties(object TSRMLS_CC), Z_STRVAL_P(property), Z_STRLEN_P(property) + 1, hash); + return zend_hash_quick_exists(Z_OBJ_HT_P(object)->get_properties(object TSRMLS_CC), Z_STRVAL_P(property), Z_STRLEN_P(property) + 1, hash); } } } @@ -6996,7 +6678,7 @@ static inline zend_class_entry *zephir_lookup_class_ce_quick(zend_class_entry *c zend_class_entry *original_ce = ce; while (ce) { - if (zephir_hash_quick_exists(&ce->properties_info, property_name, property_length + 1, hash)) { + if (zend_hash_quick_exists(&ce->properties_info, property_name, property_length + 1, hash)) { return ce; } ce = ce->parent; @@ -7067,7 +6749,7 @@ zval* zephir_fetch_property_this_quick(zval *object, const char *property_name, zend_property_info *property_info; zend_class_entry *ce, *old_scope; - if (likely(Z_TYPE_P(object) == IS_OBJECT)) { + if (EXPECTED(Z_TYPE_P(object) == IS_OBJECT)) { ce = Z_OBJCE_P(object); if (ce->parent) { @@ -7079,7 +6761,7 @@ zval* zephir_fetch_property_this_quick(zval *object, const char *property_name, zobj = zend_objects_get_address(object TSRMLS_CC); - if (zephir_hash_quick_find(&ce->properties_info, property_name, property_length + 1, key, (void **) &property_info) == SUCCESS) { + if (zend_hash_quick_find(&ce->properties_info, property_name, property_length + 1, key, (void **) &property_info) == SUCCESS) { int flag; if (EXPECTED((property_info->flags & ZEND_ACC_STATIC) == 0) && property_info->offset >= 0) { if (zobj->properties) { @@ -7091,22 +6773,22 @@ zval* zephir_fetch_property_this_quick(zval *object, const char *property_name, } } else if (UNEXPECTED(!zobj->properties)) { flag = 1; - } else if (UNEXPECTED(zephir_hash_quick_find(zobj->properties, property_info->name, property_info->name_length+1, property_info->h, (void **) &zv) == FAILURE)) { + } else if (UNEXPECTED(zend_hash_quick_find(zobj->properties, property_info->name, property_info->name_length+1, property_info->h, (void **) &zv) == FAILURE)) { flag = 2; } else { flag = 0; } - if (unlikely(flag) && zobj->properties) { + if (UNEXPECTED(flag) && zobj->properties) { if ( - (flag == 2 || zephir_hash_quick_find(zobj->properties, property_info->name, property_info->name_length+1, property_info->h, (void **) &zv) == FAILURE) + (flag == 2 || zend_hash_quick_find(zobj->properties, property_info->name, property_info->name_length+1, property_info->h, (void **) &zv) == FAILURE) && zv && *zv ) { flag = 0; } } - if (likely(!flag)) { + if (EXPECTED(!flag)) { EG(scope) = old_scope; return *zv; } @@ -7130,7 +6812,7 @@ static int zephir_return_property_quick(zval *return_value, zval **return_value_ zend_property_info *property_info; zend_class_entry *ce, *old_scope; - if (likely(Z_TYPE_P(object) == IS_OBJECT)) { + if (EXPECTED(Z_TYPE_P(object) == IS_OBJECT)) { ce = Z_OBJCE_P(object); if (ce->parent) { @@ -7142,7 +6824,7 @@ static int zephir_return_property_quick(zval *return_value, zval **return_value_ zobj = zend_objects_get_address(object TSRMLS_CC); - if (zephir_hash_quick_find(&ce->properties_info, property_name, property_length + 1, key, (void **) &property_info) == SUCCESS) { + if (zend_hash_quick_find(&ce->properties_info, property_name, property_length + 1, key, (void **) &property_info) == SUCCESS) { int flag; if (EXPECTED((property_info->flags & ZEND_ACC_STATIC) == 0) && property_info->offset >= 0) { if (zobj->properties) { @@ -7154,22 +6836,22 @@ static int zephir_return_property_quick(zval *return_value, zval **return_value_ } } else if (UNEXPECTED(!zobj->properties)) { flag = 1; - } else if (UNEXPECTED(zephir_hash_quick_find(zobj->properties, property_info->name, property_info->name_length+1, property_info->h, (void **) &zv) == FAILURE)) { + } else if (UNEXPECTED(zend_hash_quick_find(zobj->properties, property_info->name, property_info->name_length+1, property_info->h, (void **) &zv) == FAILURE)) { flag = 2; } else { flag = 0; } - if (unlikely(flag) && zobj->properties) { + if (UNEXPECTED(flag) && zobj->properties) { if ( - (flag == 2 || zephir_hash_quick_find(zobj->properties, property_info->name, property_info->name_length+1, property_info->h, (void **) &zv) == FAILURE) + (flag == 2 || zend_hash_quick_find(zobj->properties, property_info->name, property_info->name_length+1, property_info->h, (void **) &zv) == FAILURE) && zv && *zv ) { flag = 0; } } - if (likely(!flag)) { + if (EXPECTED(!flag)) { EG(scope) = old_scope; if (return_value_ptr) { @@ -7202,7 +6884,7 @@ static int zephir_return_property(zval *return_value, zval **return_value_ptr, z static int zephir_read_property_zval(zval **result, zval *object, zval *property, int flags TSRMLS_DC) { - if (unlikely(Z_TYPE_P(property) != IS_STRING)) { + if (UNEXPECTED(Z_TYPE_P(property) != IS_STRING)) { if ((flags & PH_NOISY) == PH_NOISY) { php_error_docref(NULL TSRMLS_CC, E_NOTICE, "Cannot access empty property %d", Z_TYPE_P(property)); @@ -7301,7 +6983,7 @@ static int zephir_update_property_this_quick(zval *object, const char *property_ zend_class_entry *ce, *old_scope; - if (unlikely(Z_TYPE_P(object) != IS_OBJECT)) { + if (UNEXPECTED(Z_TYPE_P(object) != IS_OBJECT)) { php_error_docref(NULL TSRMLS_CC, E_WARNING, "Attempt to assign property of non-object"); return FAILURE; } @@ -7321,11 +7003,11 @@ static int zephir_update_property_this_quick(zval *object, const char *property_ zobj = zend_objects_get_address(object TSRMLS_CC); - if (likely(zephir_hash_quick_find(&ce->properties_info, property_name, property_length + 1, key, (void **) &property_info) == SUCCESS)) { + if (EXPECTED(zend_hash_quick_find(&ce->properties_info, property_name, property_length + 1, key, (void **) &property_info) == SUCCESS)) { assert(property_info != NULL); /** This is as zend_std_write_property, but we're not interesed in validate properties visibility */ - if (property_info->offset >= 0 ? (zobj->properties ? ((variable_ptr = (zval**) zobj->properties_table[property_info->offset]) != NULL) : (*(variable_ptr = &zobj->properties_table[property_info->offset]) != NULL)) : (EXPECTED(zobj->properties != NULL) && EXPECTED(zephir_hash_quick_find(zobj->properties, property_info->name, property_info->name_length + 1, property_info->h, (void **) &variable_ptr) == SUCCESS))) { + if (property_info->offset >= 0 ? (zobj->properties ? ((variable_ptr = (zval**) zobj->properties_table[property_info->offset]) != NULL) : (*(variable_ptr = &zobj->properties_table[property_info->offset]) != NULL)) : (EXPECTED(zobj->properties != NULL) && EXPECTED(zend_hash_quick_find(zobj->properties, property_info->name, property_info->name_length + 1, property_info->h, (void **) &variable_ptr) == SUCCESS))) { if (EXPECTED(*variable_ptr != value)) { @@ -7503,7 +7185,7 @@ static int zephir_update_property_array_string(zval *object, char *property, uns zval *tmp; int separated = 0; - if (likely(Z_TYPE_P(object) == IS_OBJECT)) { + if (EXPECTED(Z_TYPE_P(object) == IS_OBJECT)) { zephir_read_property(&tmp, object, property, property_length, PH_NOISY_CC); @@ -7692,7 +7374,7 @@ static int zephir_method_quick_exists_ex(const zval *object, const char *method_ zend_class_entry *ce; - if (likely(Z_TYPE_P(object) == IS_OBJECT)) { + if (EXPECTED(Z_TYPE_P(object) == IS_OBJECT)) { ce = Z_OBJCE_P(object); } else { if (Z_TYPE_P(object) == IS_STRING) { @@ -7703,7 +7385,7 @@ static int zephir_method_quick_exists_ex(const zval *object, const char *method_ } while (ce) { - if (zephir_hash_quick_exists(&ce->function_table, method_name, method_len, hash)) { + if (zend_hash_quick_exists(&ce->function_table, method_name, method_len, hash)) { return SUCCESS; } ce = ce->parent; @@ -7942,7 +7624,7 @@ static int zephir_read_class_property(zval **result, int type, const char *prope type &= ZEND_FETCH_CLASS_MASK; ce = zend_fetch_class(NULL, 0, type TSRMLS_CC); - if (likely(ce != NULL)) { + if (EXPECTED(ce != NULL)) { return zephir_read_static_property_ce(result, ce, property, len TSRMLS_CC); } @@ -8007,7 +7689,7 @@ static int zephir_create_instance_params(zval *return_value, const zval *class_n zval **item; int i = 0; - if (likely(param_count) <= 10) { + if (EXPECTED(param_count <= 10)) { params_ptr = static_params; } else { params_arr = emalloc(param_count * sizeof(zval*)); @@ -8027,7 +7709,7 @@ static int zephir_create_instance_params(zval *return_value, const zval *class_n outcome = zephir_call_class_method_aparams(NULL, ce, zephir_fcall_method, return_value, SL("__construct"), NULL, 0, param_count, params_ptr TSRMLS_CC); - if (unlikely(params_arr != NULL)) { + if (UNEXPECTED(params_arr != NULL)) { efree(params_arr); } } @@ -8139,7 +7821,7 @@ static int zephir_fetch_property(zval **result, zval *object, const char *proper static int zephir_fetch_property_zval(zval **result, zval *object, zval *property, int silent TSRMLS_DC) { - if (unlikely(Z_TYPE_P(property) != IS_STRING)) { + if (UNEXPECTED(Z_TYPE_P(property) != IS_STRING)) { *result = ZEPHIR_GLOBAL(global_null); Z_ADDREF_P(*result); return 0; @@ -8176,6 +7858,25 @@ static int zephir_create_closure_ex(zval *return_value, zval *this_ptr, zend_cla +static zval zephir_get_current_key_w(const HashTable *hash_table, HashPosition *hash_position) +{ + Bucket *p; + zval result; + + INIT_ZVAL(result); + p = hash_position ? (*hash_position) : hash_table->pInternalPointer; + + if (p) { + if (p->nKeyLength) { + ZVAL_STRINGL(&result, (char *) p->arKey, p->nKeyLength - 1, 0); + } else { + ZVAL_LONG(&result, p->h); + } + } + + return result; +} + static int zephir_array_isset_fetch(zval **fetched, const zval *arr, zval *index, int readonly TSRMLS_DC) { HashTable *h; @@ -8193,7 +7894,7 @@ static int zephir_array_isset_fetch(zval **fetched, const zval *arr, zval *index h = Z_ARRVAL_P(arr); switch (Z_TYPE_P(index)) { case IS_NULL: - result = zephir_hash_find(h, SS(""), (void**)&val); + result = zend_hash_find(h, SS(""), (void**)&val); break; case IS_DOUBLE: @@ -8238,8 +7939,8 @@ static int zephir_array_isset_quick_string_fetch(zval **fetched, zval *arr, char zval **zv; - if (likely(Z_TYPE_P(arr) == IS_ARRAY)) { - if (zephir_hash_quick_find(Z_ARRVAL_P(arr), index, index_length, key, (void**) &zv) == SUCCESS) { + if (EXPECTED(Z_TYPE_P(arr) == IS_ARRAY)) { + if (zend_hash_quick_find(Z_ARRVAL_P(arr), index, index_length, key, (void**) &zv) == SUCCESS) { *fetched = *zv; if (!readonly) { Z_ADDREF_P(*fetched); @@ -8264,7 +7965,7 @@ static int zephir_array_isset_long_fetch(zval **fetched, zval *arr, unsigned lon zval **zv; - if (likely(Z_TYPE_P(arr) == IS_ARRAY)) { + if (EXPECTED(Z_TYPE_P(arr) == IS_ARRAY)) { if (zend_hash_index_find(Z_ARRVAL_P(arr), index, (void**)&zv) == SUCCESS) { *fetched = *zv; if (!readonly) { @@ -8292,7 +7993,7 @@ static int ZEPHIR_FASTCALL zephir_array_isset(const zval *arr, zval *index) { h = Z_ARRVAL_P(arr); switch (Z_TYPE_P(index)) { case IS_NULL: - return zephir_hash_exists(h, SS("")); + return zend_hash_exists(h, SS("")); case IS_DOUBLE: return zend_hash_index_exists(h, (ulong)Z_DVAL_P(index)); @@ -8318,7 +8019,7 @@ static int ZEPHIR_FASTCALL zephir_array_isset_string(const zval *arr, const char static int ZEPHIR_FASTCALL zephir_array_isset_quick_string(const zval *arr, const char *index, uint index_length, unsigned long key) { - if (likely(Z_TYPE_P(arr) == IS_ARRAY)) { + if (EXPECTED(Z_TYPE_P(arr) == IS_ARRAY)) { return zend_hash_quick_exists(Z_ARRVAL_P(arr), index, index_length, key); } @@ -8327,7 +8028,7 @@ static int ZEPHIR_FASTCALL zephir_array_isset_quick_string(const zval *arr, cons static int ZEPHIR_FASTCALL zephir_array_isset_long(const zval *arr, unsigned long index) { - if (likely(Z_TYPE_P(arr) == IS_ARRAY)) { + if (EXPECTED(Z_TYPE_P(arr) == IS_ARRAY)) { return zend_hash_index_exists(Z_ARRVAL_P(arr), index); } @@ -8612,7 +8313,7 @@ static int zephir_array_fetch(zval **return_value, zval *arr, zval *index, int f ht = Z_ARRVAL_P(arr); switch (Z_TYPE_P(index)) { case IS_NULL: - result = zephir_hash_find(ht, SS(""), (void**) &zv); + result = zend_hash_find(ht, SS(""), (void**) &zv); sidx = ""; break; @@ -8669,8 +8370,8 @@ static int zephir_array_fetch_quick_string(zval **return_value, zval *arr, const zval **zv; - if (likely(Z_TYPE_P(arr) == IS_ARRAY)) { - if (zephir_hash_quick_find(Z_ARRVAL_P(arr), index, index_length, key, (void**) &zv) == SUCCESS) { + if (EXPECTED(Z_TYPE_P(arr) == IS_ARRAY)) { + if (zend_hash_quick_find(Z_ARRVAL_P(arr), index, index_length, key, (void**) &zv) == SUCCESS) { *return_value = *zv; if ((flags & PH_READONLY) != PH_READONLY) { Z_ADDREF_PP(return_value); @@ -8702,7 +8403,7 @@ static int zephir_array_fetch_long(zval **return_value, zval *arr, unsigned long zval **zv; - if (likely(Z_TYPE_P(arr) == IS_ARRAY)) { + if (EXPECTED(Z_TYPE_P(arr) == IS_ARRAY)) { if (zend_hash_index_find(Z_ARRVAL_P(arr), index, (void**)&zv) == SUCCESS) { *return_value = *zv; if ((flags & PH_READONLY) != PH_READONLY) { @@ -8865,7 +8566,7 @@ static void zephir_array_merge_recursive_n(zval **a1, zval *a2 TSRMLS_DC) static void zephir_array_unshift(zval *arr, zval *arg TSRMLS_DC) { - if (likely(Z_TYPE_P(arr) == IS_ARRAY)) { + if (EXPECTED(Z_TYPE_P(arr) == IS_ARRAY)) { zval** args[1] = { &arg }; @@ -8897,7 +8598,7 @@ static void zephir_array_keys(zval *return_value, zval *input TSRMLS_DC) ulong num_key; HashPosition pos; - if (likely(Z_TYPE_P(input) == IS_ARRAY)) { + if (EXPECTED(Z_TYPE_P(input) == IS_ARRAY)) { array_init_size(return_value, zend_hash_num_elements(Z_ARRVAL_P(input))); @@ -8927,7 +8628,7 @@ static void zephir_array_keys(zval *return_value, zval *input TSRMLS_DC) static void zephir_array_values(zval *return_value, zval *arr) { - if (likely(Z_TYPE_P(arr) == IS_ARRAY)) { + if (EXPECTED(Z_TYPE_P(arr) == IS_ARRAY)) { zval **entry; HashPosition pos; @@ -8968,7 +8669,7 @@ static int zephir_array_key_exists(zval *arr, zval *key TSRMLS_DC) static int zephir_array_is_associative(zval *arr) { - if (likely(Z_TYPE_P(arr) == IS_ARRAY)) { + if (EXPECTED(Z_TYPE_P(arr) == IS_ARRAY)) { HashPosition pos; zval **entry; char *skey; @@ -9202,7 +8903,7 @@ static void ZEPHIR_FASTCALL zephir_create_array(zval *return_value, uint size, i if (size > 0) { hashTable = (HashTable *) emalloc(sizeof(HashTable)); - zephir_hash_init(hashTable, size, NULL, ZVAL_PTR_DTOR, 0); + zend_hash_init(hashTable, size, NULL, ZVAL_PTR_DTOR, 0); if (initialize) { @@ -9229,9 +8930,6 @@ static void ZEPHIR_FASTCALL zephir_create_array(zval *return_value, uint size, i - - - #if PHP_VERSION_ID >= 50600 #if ZEND_MODULE_API_NO >= 20141001 @@ -10656,7 +10354,7 @@ static void zephir_fast_strtolower(zval *return_value, zval *str){ } static void zephir_strtolower_inplace(zval *s) { - if (likely(Z_TYPE_P(s) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(s) == IS_STRING)) { php_strtolower(Z_STRVAL_P(s), Z_STRLEN_P(s)); } } @@ -10769,7 +10467,7 @@ static void zephir_camelize(zval *return_value, const zval *str, const zval *del smart_str camelize_str = {0}; char *marker, ch, *delim; - if (unlikely(Z_TYPE_P(str) != IS_STRING)) { + if (UNEXPECTED(Z_TYPE_P(str) != IS_STRING)) { zend_error(E_WARNING, "Invalid arguments supplied for camelize()"); RETURN_EMPTY_STRING(); } @@ -10863,7 +10561,7 @@ static void zephir_uncamelize(zval *return_value, const zval *str, const zval *d static void zephir_fast_explode(zval *return_value, zval *delimiter, zval *str, long limit TSRMLS_DC) { - if (unlikely(Z_TYPE_P(str) != IS_STRING || Z_TYPE_P(delimiter) != IS_STRING)) { + if (UNEXPECTED(Z_TYPE_P(str) != IS_STRING || Z_TYPE_P(delimiter) != IS_STRING)) { zend_error(E_WARNING, "Invalid arguments supplied for explode()"); RETURN_EMPTY_STRING(); } @@ -10876,7 +10574,7 @@ static void zephir_fast_explode_str(zval *return_value, const char *delimiter, i zval delimiter_zval; - if (unlikely(Z_TYPE_P(str) != IS_STRING)) { + if (UNEXPECTED(Z_TYPE_P(str) != IS_STRING)) { zend_error(E_WARNING, "Invalid arguments supplied for explode()"); RETURN_EMPTY_STRING(); } @@ -10927,7 +10625,7 @@ static void zephir_fast_strpos(zval *return_value, const zval *haystack, const z const char *found = NULL; - if (unlikely(Z_TYPE_P(haystack) != IS_STRING || Z_TYPE_P(needle) != IS_STRING)) { + if (UNEXPECTED(Z_TYPE_P(haystack) != IS_STRING || Z_TYPE_P(needle) != IS_STRING)) { ZVAL_NULL(return_value); zend_error(E_WARNING, "Invalid arguments supplied for strpos()"); return; @@ -10959,7 +10657,7 @@ static void zephir_fast_strpos_str(zval *return_value, const zval *haystack, cha const char *found = NULL; - if (unlikely(Z_TYPE_P(haystack) != IS_STRING)) { + if (UNEXPECTED(Z_TYPE_P(haystack) != IS_STRING)) { ZVAL_NULL(return_value); zend_error(E_WARNING, "Invalid arguments supplied for strpos()"); return; @@ -10979,7 +10677,7 @@ static void zephir_fast_stripos_str(zval *return_value, zval *haystack, char *ne const char *found = NULL; char *needle_dup, *haystack_dup; - if (unlikely(Z_TYPE_P(haystack) != IS_STRING)) { + if (UNEXPECTED(Z_TYPE_P(haystack) != IS_STRING)) { ZVAL_NULL(return_value); zend_error(E_WARNING, "Invalid arguments supplied for stripos()"); return; @@ -11778,7 +11476,7 @@ static int zephir_json_decode(zval *return_value, zval **return_value_ptr, zval zval copy; int use_copy = 0; - if (unlikely(Z_TYPE_P(v) != IS_STRING)) { + if (UNEXPECTED(Z_TYPE_P(v) != IS_STRING)) { zend_make_printable_zval(v, ©, &use_copy); if (use_copy) { v = © @@ -11787,7 +11485,7 @@ static int zephir_json_decode(zval *return_value, zval **return_value_ptr, zval php_json_decode(return_value, Z_STRVAL_P(v), Z_STRLEN_P(v), assoc, 512 /* JSON_PARSER_DEFAULT_DEPTH */ TSRMLS_CC); - if (unlikely(use_copy)) { + if (UNEXPECTED(use_copy)) { zval_dtor(©); } @@ -11832,7 +11530,7 @@ static void zephir_lcfirst(zval *return_value, zval *s) { char *c; int use_copy = 0; - if (unlikely(Z_TYPE_P(s) != IS_STRING)) { + if (UNEXPECTED(Z_TYPE_P(s) != IS_STRING)) { zend_make_printable_zval(s, ©, &use_copy); if (use_copy) { s = © @@ -11848,7 +11546,7 @@ static void zephir_lcfirst(zval *return_value, zval *s) { *c = tolower((unsigned char)*c); } - if (unlikely(use_copy)) { + if (UNEXPECTED(use_copy)) { zval_dtor(©); } } @@ -11859,7 +11557,7 @@ static void zephir_ucfirst(zval *return_value, zval *s) { char *c; int use_copy = 0; - if (unlikely(Z_TYPE_P(s) != IS_STRING)) { + if (UNEXPECTED(Z_TYPE_P(s) != IS_STRING)) { zend_make_printable_zval(s, ©, &use_copy); if (use_copy) { s = © @@ -11875,7 +11573,7 @@ static void zephir_ucfirst(zval *return_value, zval *s) { *c = toupper((unsigned char)*c); } - if (unlikely(use_copy)) { + if (UNEXPECTED(use_copy)) { zval_dtor(©); } } @@ -11916,7 +11614,7 @@ static void zephir_htmlspecialchars(zval *return_value, zval *string, zval *quot int qs, use_copy = 0; size_t escaped_len; - if (unlikely(Z_TYPE_P(string) != IS_STRING)) { + if (UNEXPECTED(Z_TYPE_P(string) != IS_STRING)) { zend_make_printable_zval(string, ©, &use_copy); if (use_copy) { string = © @@ -11929,7 +11627,7 @@ static void zephir_htmlspecialchars(zval *return_value, zval *string, zval *quot escaped = php_escape_html_entities_ex((unsigned char *)(Z_STRVAL_P(string)), Z_STRLEN_P(string), &escaped_len, 0, qs, cs, 1 TSRMLS_CC); ZVAL_STRINGL(return_value, escaped, escaped_len, 0); - if (unlikely(use_copy)) { + if (UNEXPECTED(use_copy)) { zval_dtor(©); } } @@ -11941,7 +11639,7 @@ static void zephir_htmlentities(zval *return_value, zval *string, zval *quoting, int qs, use_copy = 0; size_t escaped_len; - if (unlikely(Z_TYPE_P(string) != IS_STRING)) { + if (UNEXPECTED(Z_TYPE_P(string) != IS_STRING)) { zend_make_printable_zval(string, ©, &use_copy); if (use_copy) { string = © @@ -11954,7 +11652,7 @@ static void zephir_htmlentities(zval *return_value, zval *string, zval *quoting, escaped = php_escape_html_entities_ex((unsigned char *)(Z_STRVAL_P(string)), Z_STRLEN_P(string), &escaped_len, 1, qs, cs, 1 TSRMLS_CC); ZVAL_STRINGL(return_value, escaped, escaped_len, 0); - if (unlikely(use_copy)) { + if (UNEXPECTED(use_copy)) { zval_dtor(©); } } @@ -11980,7 +11678,7 @@ static void zephir_date(zval *return_value, zval *format, zval *timestamp TSRMLS int use_copy = 0; char *formatted; - if (unlikely(Z_TYPE_P(format) != IS_STRING)) { + if (UNEXPECTED(Z_TYPE_P(format) != IS_STRING)) { zend_make_printable_zval(format, ©, &use_copy); if (use_copy) { format = © @@ -11992,7 +11690,7 @@ static void zephir_date(zval *return_value, zval *format, zval *timestamp TSRMLS formatted = php_format_date(Z_STRVAL_P(format), Z_STRLEN_P(format), ts, 1 TSRMLS_CC); ZVAL_STRING(return_value, formatted, 0); - if (unlikely(use_copy)) { + if (UNEXPECTED(use_copy)) { zval_dtor(©); } } @@ -12002,7 +11700,7 @@ static void zephir_addslashes(zval *return_value, zval *str TSRMLS_DC) zval copy; int use_copy = 0; - if (unlikely(Z_TYPE_P(str) != IS_STRING)) { + if (UNEXPECTED(Z_TYPE_P(str) != IS_STRING)) { zend_make_printable_zval(str, ©, &use_copy); if (use_copy) { str = © @@ -12011,7 +11709,7 @@ static void zephir_addslashes(zval *return_value, zval *str TSRMLS_DC) ZVAL_STRING(return_value, php_addslashes(Z_STRVAL_P(str), Z_STRLEN_P(str), &Z_STRLEN_P(return_value), 0 TSRMLS_CC), 0); - if (unlikely(use_copy)) { + if (UNEXPECTED(use_copy)) { zval_dtor(©); } } @@ -12021,7 +11719,7 @@ static void zephir_stripslashes(zval *return_value, zval *str TSRMLS_DC) zval copy; int use_copy = 0; - if (unlikely(Z_TYPE_P(str) != IS_STRING)) { + if (UNEXPECTED(Z_TYPE_P(str) != IS_STRING)) { zend_make_printable_zval(str, ©, &use_copy); if (use_copy) { str = © @@ -12031,7 +11729,7 @@ static void zephir_stripslashes(zval *return_value, zval *str TSRMLS_DC) ZVAL_STRINGL(return_value, Z_STRVAL_P(str), Z_STRLEN_P(str), 1); php_stripslashes(Z_STRVAL_P(return_value), &Z_STRLEN_P(return_value) TSRMLS_CC); - if (unlikely(use_copy)) { + if (UNEXPECTED(use_copy)) { zval_dtor(©); } } @@ -12042,7 +11740,7 @@ static void zephir_stripcslashes(zval *return_value, zval *str TSRMLS_DC) zval copy; int use_copy = 0; - if (unlikely(Z_TYPE_P(str) != IS_STRING)) { + if (UNEXPECTED(Z_TYPE_P(str) != IS_STRING)) { zend_make_printable_zval(str, ©, &use_copy); if (use_copy) { str = © @@ -12052,7 +11750,7 @@ static void zephir_stripcslashes(zval *return_value, zval *str TSRMLS_DC) ZVAL_STRINGL(return_value, Z_STRVAL_P(str), Z_STRLEN_P(str), 1); php_stripcslashes(Z_STRVAL_P(return_value), &Z_STRLEN_P(return_value)); - if (unlikely(use_copy)) { + if (UNEXPECTED(use_copy)) { zval_dtor(©); } } @@ -12081,6 +11779,35 @@ static int zephir_hash_equals(const zval *known_zval, const zval *user_zval) return (int) (result == 0); } +static void zephir_string_to_hex(zval *return_value, zval *var) +{ + int use_copy = 0; + zval copy; + size_t i; + char *s; + char *res; + + if (Z_TYPE_P(var) != IS_STRING) { + zend_make_printable_zval(var, ©, &use_copy); + if (use_copy) { + var = © + } + } + + res = emalloc(2*Z_STRLEN_P(var) + 1); + s = Z_STRVAL_P(var); + for (i=0; iname, method_name, possible_method); - } else { - zephir_throw_exception_format(spl_ce_RuntimeException TSRMLS_CC, "Call to undefined method %s::%s()", ce->name, method_name); - } + zephir_throw_exception_format(spl_ce_RuntimeException TSRMLS_CC, "Call to undefined method %s::%s()", ce->name, method_name); break; default: @@ -13064,7 +12770,7 @@ static void zephir_eval_php(zval *str, zval *retval_ptr, char *context TSRMLS_DC static int zephir_require_ret(zval **return_value_ptr, const char *require_path TSRMLS_DC) { zend_file_handle file_handle; - int ret, use_ret; + int ret; zend_op_array *new_op_array; #ifndef ZEPHIR_RELEASE @@ -13080,8 +12786,6 @@ static int zephir_require_ret(zval **return_value_ptr, const char *require_path return FAILURE; } - use_ret = !!return_value_ptr; - file_handle.filename = require_path; file_handle.free_filename = 0; file_handle.type = ZEND_HANDLE_FILENAME; @@ -13475,7 +13179,7 @@ static void zephir_file_put_contents(zval *return_value, zval *filename, zval *d static void zephir_is_dir(zval *return_value, zval *path TSRMLS_DC) { - if (likely(Z_TYPE_P(path) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(path) == IS_STRING)) { php_stat(Z_STRVAL_P(path), (php_stat_len)(Z_STRLEN_P(path)), FS_IS_DIR, return_value TSRMLS_CC); } else { ZVAL_FALSE(return_value); @@ -13484,12 +13188,12 @@ static void zephir_is_dir(zval *return_value, zval *path TSRMLS_DC) static void zephir_unlink(zval *return_value, zval *path TSRMLS_DC) { - if (likely(Z_TYPE_P(path) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(path) == IS_STRING)) { php_stream_context *context; php_stream_wrapper *wrapper; zval *zctx = NULL; - if (unlikely(strlen(Z_STRVAL_P(path)) != Z_STRLEN_P(path))) { + if (UNEXPECTED(strlen(Z_STRVAL_P(path)) != Z_STRLEN_P(path))) { ZVAL_FALSE(return_value); return; } @@ -13512,7 +13216,7 @@ static void zephir_unlink(zval *return_value, zval *path TSRMLS_DC) static void zephir_filemtime(zval *return_value, zval *path TSRMLS_DC) { - if (likely(Z_TYPE_P(path) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(path) == IS_STRING)) { php_stat(Z_STRVAL_P(path), (php_stat_len)(Z_STRLEN_P(path)), FS_MTIME, return_value TSRMLS_CC); } else { ZVAL_FALSE(return_value); @@ -13521,7 +13225,7 @@ static void zephir_filemtime(zval *return_value, zval *path TSRMLS_DC) static void zephir_basename(zval *return_value, zval *path TSRMLS_DC) { - if (likely(Z_TYPE_P(path) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(path) == IS_STRING)) { char *ret; size_t ret_len; @@ -16982,6 +16686,16 @@ static void zephir_var_dump(zval **var TSRMLS_DC) { php_var_dump(var, 1 TSRMLS_CC); } +static void zephir_get_defined_vars(zval *return_value TSRMLS_DC) +{ + if (!EG(active_symbol_table)) { + zend_rebuild_symbol_table(TSRMLS_C); + } + + array_init_size(return_value, zend_hash_num_elements(EG(active_symbol_table))); + zend_hash_copy(Z_ARRVAL_P(return_value), EG(active_symbol_table), (copy_ctor_func_t)zval_add_ref, NULL, sizeof(zval *)); +} + @@ -17377,8 +17091,8 @@ if (get_as_float && ZEPHIR_IS_TRUE(get_as_float)) { -static void zephir_exit_empty() { - TSRMLS_FETCH(); +static void zephir_exit_empty() +{ zend_bailout(); } @@ -17463,76 +17177,6 @@ static int phalcon_cssmin(zval *return_value, zval *style TSRMLS_DC); #endif /* PHALCON_ASSETS_FILTERS_CSSMINIFIER_H */ -/* jsmin.c - 2013-03-29 - -Copyright (c) 2002 Douglas Crockford (www.crockford.com) - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to deal in -the Software without restriction, including without limitation the rights to -use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies -of the Software, and to permit persons to whom the Software is furnished to do -so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -The Software shall be used for Good, not Evil. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. -*/ - -#ifndef PHALCON_ASSETS_FILTERS_CSSMINIFIER_H -#define PHALCON_ASSETS_FILTERS_CSSMINIFIER_H - - -static int phalcon_cssmin(zval *return_value, zval *style TSRMLS_DC); - -#endif /* PHALCON_ASSETS_FILTERS_CSSMINIFIER_H */ - - -/* jsmin.c - 2013-03-29 - -Copyright (c) 2002 Douglas Crockford (www.crockford.com) - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to deal in -the Software without restriction, including without limitation the rights to -use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies -of the Software, and to permit persons to whom the Software is furnished to do -so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -The Software shall be used for Good, not Evil. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. -*/ - -#ifndef PHALCON_ASSETS_FILTERS_JSMINIFIER_H -#define PHALCON_ASSETS_FILTERS_JSMINIFIER_H - - -static int phalcon_jsmin(zval *return_value, zval *script TSRMLS_DC); - -#endif /* PHALCON_ASSETS_FILTERS_JSMINIFIER_H */ - - #ifdef HAVE_CONFIG_H #endif @@ -17746,11 +17390,11 @@ static PHP_METHOD(Phalcon_Application, getModule) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -17783,11 +17427,11 @@ static PHP_METHOD(Phalcon_Application, setDefaultModule) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &defaultModule_param); - if (unlikely(Z_TYPE_P(defaultModule_param) != IS_STRING && Z_TYPE_P(defaultModule_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(defaultModule_param) != IS_STRING && Z_TYPE_P(defaultModule_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'defaultModule' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(defaultModule_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(defaultModule_param) == IS_STRING)) { zephir_get_strval(defaultModule, defaultModule_param); } else { ZEPHIR_INIT_VAR(defaultModule); @@ -17875,8 +17519,8 @@ static PHP_METHOD(Phalcon_Config, __construct) { zephir_is_iterable(arrayConfig, &_1, &_0, 0, 0, "phalcon/config.zep", 63); for ( - ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS - ; zephir_hash_move_forward_ex(_1, &_0) + ; zend_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS + ; zend_hash_move_forward_ex(_1, &_0) ) { ZEPHIR_GET_HMKEY(key, _1, _0); ZEPHIR_GET_HVALUE(value, _2); @@ -18029,8 +17673,8 @@ static PHP_METHOD(Phalcon_Config, toArray) { zephir_check_call_status(); zephir_is_iterable(_0, &_2, &_1, 0, 0, "phalcon/config.zep", 196); for ( - ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS - ; zephir_hash_move_forward_ex(_2, &_1) + ; zend_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS + ; zend_hash_move_forward_ex(_2, &_1) ) { ZEPHIR_GET_HMKEY(key, _2, _1); ZEPHIR_GET_HVALUE(value, _3); @@ -18110,8 +17754,8 @@ static PHP_METHOD(Phalcon_Config, _merge) { zephir_check_call_status(); zephir_is_iterable(_0, &_2, &_1, 0, 0, "phalcon/config.zep", 261); for ( - ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS - ; zephir_hash_move_forward_ex(_2, &_1) + ; zend_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS + ; zend_hash_move_forward_ex(_2, &_1) ) { ZEPHIR_GET_HMKEY(key, _2, _1); ZEPHIR_GET_HVALUE(value, _3); @@ -18192,7 +17836,7 @@ static PHP_METHOD(Phalcon_Crypt, setPadding) { zephir_fetch_params(0, 1, 0, &scheme_param); - if (unlikely(Z_TYPE_P(scheme_param) != IS_LONG)) { + if (UNEXPECTED(Z_TYPE_P(scheme_param) != IS_LONG)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'scheme' must be a int") TSRMLS_CC); RETURN_NULL(); } @@ -18214,11 +17858,11 @@ static PHP_METHOD(Phalcon_Crypt, setCipher) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &cipher_param); - if (unlikely(Z_TYPE_P(cipher_param) != IS_STRING && Z_TYPE_P(cipher_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(cipher_param) != IS_STRING && Z_TYPE_P(cipher_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'cipher' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(cipher_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(cipher_param) == IS_STRING)) { zephir_get_strval(cipher, cipher_param); } else { ZEPHIR_INIT_VAR(cipher); @@ -18247,11 +17891,11 @@ static PHP_METHOD(Phalcon_Crypt, setKey) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &key_param); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { ZEPHIR_INIT_VAR(key); @@ -18284,22 +17928,22 @@ static PHP_METHOD(Phalcon_Crypt, _cryptPadText) { zephir_fetch_params(1, 4, 0, &text_param, &mode_param, &blockSize_param, &paddingType_param); zephir_get_strval(text, text_param); - if (unlikely(Z_TYPE_P(mode_param) != IS_STRING && Z_TYPE_P(mode_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(mode_param) != IS_STRING && Z_TYPE_P(mode_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'mode' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(mode_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(mode_param) == IS_STRING)) { zephir_get_strval(mode, mode_param); } else { ZEPHIR_INIT_VAR(mode); ZVAL_EMPTY_STRING(mode); } - if (unlikely(Z_TYPE_P(blockSize_param) != IS_LONG)) { + if (UNEXPECTED(Z_TYPE_P(blockSize_param) != IS_LONG)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'blockSize' must be a int") TSRMLS_CC); RETURN_MM_NULL(); } blockSize = Z_LVAL_P(blockSize_param); - if (unlikely(Z_TYPE_P(paddingType_param) != IS_LONG)) { + if (UNEXPECTED(Z_TYPE_P(paddingType_param) != IS_LONG)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'paddingType' must be a int") TSRMLS_CC); RETURN_MM_NULL(); } @@ -18453,22 +18097,22 @@ static PHP_METHOD(Phalcon_Crypt, _cryptUnpadText) { zephir_fetch_params(1, 4, 0, &text_param, &mode_param, &blockSize_param, &paddingType_param); zephir_get_strval(text, text_param); - if (unlikely(Z_TYPE_P(mode_param) != IS_STRING && Z_TYPE_P(mode_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(mode_param) != IS_STRING && Z_TYPE_P(mode_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'mode' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(mode_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(mode_param) == IS_STRING)) { zephir_get_strval(mode, mode_param); } else { ZEPHIR_INIT_VAR(mode); ZVAL_EMPTY_STRING(mode); } - if (unlikely(Z_TYPE_P(blockSize_param) != IS_LONG)) { + if (UNEXPECTED(Z_TYPE_P(blockSize_param) != IS_LONG)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'blockSize' must be a int") TSRMLS_CC); RETURN_MM_NULL(); } blockSize = Z_LVAL_P(blockSize_param); - if (unlikely(Z_TYPE_P(paddingType_param) != IS_LONG)) { + if (UNEXPECTED(Z_TYPE_P(paddingType_param) != IS_LONG)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'paddingType' must be a int") TSRMLS_CC); RETURN_MM_NULL(); } @@ -18670,11 +18314,11 @@ static PHP_METHOD(Phalcon_Crypt, encrypt) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &text_param, &key_param); - if (unlikely(Z_TYPE_P(text_param) != IS_STRING && Z_TYPE_P(text_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(text_param) != IS_STRING && Z_TYPE_P(text_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'text' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(text_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(text_param) == IS_STRING)) { zephir_get_strval(text, text_param); } else { ZEPHIR_INIT_VAR(text); @@ -18684,11 +18328,11 @@ static PHP_METHOD(Phalcon_Crypt, encrypt) { ZEPHIR_INIT_VAR(key); ZVAL_EMPTY_STRING(key); } else { - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { ZEPHIR_INIT_VAR(key); @@ -18782,11 +18426,11 @@ static PHP_METHOD(Phalcon_Crypt, decrypt) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &text_param, &key); - if (unlikely(Z_TYPE_P(text_param) != IS_STRING && Z_TYPE_P(text_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(text_param) != IS_STRING && Z_TYPE_P(text_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'text' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(text_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(text_param) == IS_STRING)) { zephir_get_strval(text, text_param); } else { ZEPHIR_INIT_VAR(text); @@ -18880,11 +18524,11 @@ static PHP_METHOD(Phalcon_Crypt, encryptBase64) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &text_param, &key, &safe_param); - if (unlikely(Z_TYPE_P(text_param) != IS_STRING && Z_TYPE_P(text_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(text_param) != IS_STRING && Z_TYPE_P(text_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'text' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(text_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(text_param) == IS_STRING)) { zephir_get_strval(text, text_param); } else { ZEPHIR_INIT_VAR(text); @@ -18896,7 +18540,7 @@ static PHP_METHOD(Phalcon_Crypt, encryptBase64) { if (!safe_param) { safe = 0; } else { - if (unlikely(Z_TYPE_P(safe_param) != IS_BOOL)) { + if (UNEXPECTED(Z_TYPE_P(safe_param) != IS_BOOL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'safe' must be a bool") TSRMLS_CC); RETURN_MM_NULL(); } @@ -18936,11 +18580,11 @@ static PHP_METHOD(Phalcon_Crypt, decryptBase64) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &text_param, &key, &safe_param); - if (unlikely(Z_TYPE_P(text_param) != IS_STRING && Z_TYPE_P(text_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(text_param) != IS_STRING && Z_TYPE_P(text_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'text' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(text_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(text_param) == IS_STRING)) { zephir_get_strval(text, text_param); } else { ZEPHIR_INIT_VAR(text); @@ -18952,7 +18596,7 @@ static PHP_METHOD(Phalcon_Crypt, decryptBase64) { if (!safe_param) { safe = 0; } else { - if (unlikely(Z_TYPE_P(safe_param) != IS_BOOL)) { + if (UNEXPECTED(Z_TYPE_P(safe_param) != IS_BOOL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'safe' must be a bool") TSRMLS_CC); RETURN_MM_NULL(); } @@ -19146,11 +18790,11 @@ static PHP_METHOD(Phalcon_Debug, setUri) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &uri_param); - if (unlikely(Z_TYPE_P(uri_param) != IS_STRING && Z_TYPE_P(uri_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(uri_param) != IS_STRING && Z_TYPE_P(uri_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'uri' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(uri_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(uri_param) == IS_STRING)) { zephir_get_strval(uri, uri_param); } else { ZEPHIR_INIT_VAR(uri); @@ -19417,8 +19061,8 @@ static PHP_METHOD(Phalcon_Debug, _getArrayDump) { array_init(dump); zephir_is_iterable(argument, &_2, &_1, 0, 0, "phalcon/debug.zep", 189); for ( - ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS - ; zephir_hash_move_forward_ex(_2, &_1) + ; zend_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS + ; zend_hash_move_forward_ex(_2, &_1) ) { ZEPHIR_GET_HMKEY(k, _2, _1); ZEPHIR_GET_HVALUE(v, _3); @@ -19705,8 +19349,8 @@ static PHP_METHOD(Phalcon_Debug, showTraceItem) { array_init(arguments); zephir_is_iterable(traceArgs, &_18$$14, &_17$$14, 0, 0, "phalcon/debug.zep", 441); for ( - ; zephir_hash_get_current_data_ex(_18$$14, (void**) &_19$$14, &_17$$14) == SUCCESS - ; zephir_hash_move_forward_ex(_18$$14, &_17$$14) + ; zend_hash_get_current_data_ex(_18$$14, (void**) &_19$$14, &_17$$14) == SUCCESS + ; zend_hash_move_forward_ex(_18$$14, &_17$$14) ) { ZEPHIR_GET_HVALUE(argument, _19$$14); ZEPHIR_CALL_METHOD(&_20$$15, this_ptr, "_getvardump", &_21, 0, argument); @@ -19936,8 +19580,8 @@ static PHP_METHOD(Phalcon_Debug, onUncaughtException) { zephir_check_call_status(); zephir_is_iterable(_10$$5, &_12$$5, &_11$$5, 0, 0, "phalcon/debug.zep", 659); for ( - ; zephir_hash_get_current_data_ex(_12$$5, (void**) &_13$$5, &_11$$5) == SUCCESS - ; zephir_hash_move_forward_ex(_12$$5, &_11$$5) + ; zend_hash_get_current_data_ex(_12$$5, (void**) &_13$$5, &_11$$5) == SUCCESS + ; zend_hash_move_forward_ex(_12$$5, &_11$$5) ) { ZEPHIR_GET_HMKEY(n, _12$$5, _11$$5); ZEPHIR_GET_HVALUE(traceItem, _13$$5); @@ -19950,8 +19594,8 @@ static PHP_METHOD(Phalcon_Debug, onUncaughtException) { zephir_concat_self_str(&html, SL("") TSRMLS_CC); zephir_is_iterable(_REQUEST, &_17$$5, &_16$$5, 0, 0, "phalcon/debug.zep", 673); for ( - ; zephir_hash_get_current_data_ex(_17$$5, (void**) &_18$$5, &_16$$5) == SUCCESS - ; zephir_hash_move_forward_ex(_17$$5, &_16$$5) + ; zend_hash_get_current_data_ex(_17$$5, (void**) &_18$$5, &_16$$5) == SUCCESS + ; zend_hash_move_forward_ex(_17$$5, &_16$$5) ) { ZEPHIR_GET_HMKEY(keyRequest, _17$$5, _16$$5); ZEPHIR_GET_HVALUE(value, _18$$5); @@ -19972,8 +19616,8 @@ static PHP_METHOD(Phalcon_Debug, onUncaughtException) { zephir_concat_self_str(&html, SL("") TSRMLS_CC); zephir_is_iterable(_SERVER, &_24$$5, &_23$$5, 0, 0, "phalcon/debug.zep", 683); for ( - ; zephir_hash_get_current_data_ex(_24$$5, (void**) &_25$$5, &_23$$5) == SUCCESS - ; zephir_hash_move_forward_ex(_24$$5, &_23$$5) + ; zend_hash_get_current_data_ex(_24$$5, (void**) &_25$$5, &_23$$5) == SUCCESS + ; zend_hash_move_forward_ex(_24$$5, &_23$$5) ) { ZEPHIR_GET_HMKEY(keyServer, _24$$5, _23$$5); ZEPHIR_GET_HVALUE(value, _25$$5); @@ -19990,8 +19634,8 @@ static PHP_METHOD(Phalcon_Debug, onUncaughtException) { zephir_check_call_status(); zephir_is_iterable(_29$$5, &_31$$5, &_30$$5, 0, 0, "phalcon/debug.zep", 693); for ( - ; zephir_hash_get_current_data_ex(_31$$5, (void**) &_32$$5, &_30$$5) == SUCCESS - ; zephir_hash_move_forward_ex(_31$$5, &_30$$5) + ; zend_hash_get_current_data_ex(_31$$5, (void**) &_32$$5, &_30$$5) == SUCCESS + ; zend_hash_move_forward_ex(_31$$5, &_30$$5) ) { ZEPHIR_GET_HMKEY(keyFile, _31$$5, _30$$5); ZEPHIR_GET_HVALUE(value, _32$$5); @@ -20012,8 +19656,8 @@ static PHP_METHOD(Phalcon_Debug, onUncaughtException) { zephir_concat_self_str(&html, SL("") TSRMLS_CC); zephir_is_iterable(dataVars, &_37$$13, &_36$$13, 0, 0, "phalcon/debug.zep", 711); for ( - ; zephir_hash_get_current_data_ex(_37$$13, (void**) &_38$$13, &_36$$13) == SUCCESS - ; zephir_hash_move_forward_ex(_37$$13, &_36$$13) + ; zend_hash_get_current_data_ex(_37$$13, (void**) &_38$$13, &_36$$13) == SUCCESS + ; zend_hash_move_forward_ex(_37$$13, &_36$$13) ) { ZEPHIR_GET_HMKEY(keyVar, _37$$13, _36$$13); ZEPHIR_GET_HVALUE(dataVar, _38$$13); @@ -20113,11 +19757,11 @@ static PHP_METHOD(Phalcon_Di, set) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 1, &name_param, &definition, &shared_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -20154,11 +19798,11 @@ static PHP_METHOD(Phalcon_Di, setShared) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &name_param, &definition); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -20182,11 +19826,11 @@ static PHP_METHOD(Phalcon_Di, remove) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -20212,11 +19856,11 @@ static PHP_METHOD(Phalcon_Di, attempt) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 1, &name_param, &definition, &shared_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -20256,11 +19900,11 @@ static PHP_METHOD(Phalcon_Di, setRaw) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &name_param, &rawDefinition); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -20283,11 +19927,11 @@ static PHP_METHOD(Phalcon_Di, getRaw) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -20323,11 +19967,11 @@ static PHP_METHOD(Phalcon_Di, getService) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -20363,11 +20007,11 @@ static PHP_METHOD(Phalcon_Di, get) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &name_param, ¶meters); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -20457,11 +20101,11 @@ static PHP_METHOD(Phalcon_Di, getShared) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &name_param, ¶meters); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -20502,11 +20146,11 @@ static PHP_METHOD(Phalcon_Di, has) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -20544,11 +20188,11 @@ static PHP_METHOD(Phalcon_Di, offsetExists) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -20571,11 +20215,11 @@ static PHP_METHOD(Phalcon_Di, offsetSet) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &name_param, &definition); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -20598,11 +20242,11 @@ static PHP_METHOD(Phalcon_Di, offsetGet) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -20624,11 +20268,11 @@ static PHP_METHOD(Phalcon_Di, offsetUnset) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -20650,11 +20294,11 @@ static PHP_METHOD(Phalcon_Di, __call) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &method_param, &arguments); - if (unlikely(Z_TYPE_P(method_param) != IS_STRING && Z_TYPE_P(method_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(method_param) != IS_STRING && Z_TYPE_P(method_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'method' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(method_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(method_param) == IS_STRING)) { zephir_get_strval(method, method_param); } else { ZEPHIR_INIT_VAR(method); @@ -21275,7 +20919,7 @@ static PHP_METHOD(Phalcon_Dispatcher, getModelBinder) { static PHP_METHOD(Phalcon_Dispatcher, dispatch) { - zval *handler = NULL, *e = NULL, *_0$$4 = NULL; + zval *handler = NULL, *e = NULL, *_0, *_1$$4 = NULL; int ZEPHIR_LAST_CALL_STATUS; ZEPHIR_MM_GROW(); @@ -21289,12 +20933,14 @@ static PHP_METHOD(Phalcon_Dispatcher, dispatch) { try_end_1: if (EG(exception)) { - ZEPHIR_CPY_WRT(e, EG(exception)); - if (zephir_instance_of_ev(e, zend_exception_get_default(TSRMLS_C) TSRMLS_CC)) { + ZEPHIR_INIT_VAR(_0); + ZEPHIR_CPY_WRT(_0, EG(exception)); + if (zephir_instance_of_ev(_0, zend_exception_get_default(TSRMLS_C) TSRMLS_CC)) { zend_clear_exception(TSRMLS_C); - ZEPHIR_CALL_METHOD(&_0$$4, this_ptr, "_handleexception", NULL, 0, e); + ZEPHIR_CPY_WRT(e, _0); + ZEPHIR_CALL_METHOD(&_1$$4, this_ptr, "_handleexception", NULL, 0, e); zephir_check_call_status(); - if (ZEPHIR_IS_FALSE_IDENTICAL(_0$$4)) { + if (ZEPHIR_IS_FALSE_IDENTICAL(_1$$4)) { RETURN_MM_BOOL(0); } zephir_throw_exception_debug(e, "phalcon/dispatcher.zep", 413 TSRMLS_CC); @@ -21309,9 +20955,9 @@ static PHP_METHOD(Phalcon_Dispatcher, dispatch) { static PHP_METHOD(Phalcon_Dispatcher, _dispatch) { zval *_30$$6 = NULL; - zval *value = NULL, *handler = NULL, *dependencyInjector = NULL, *namespaceName = NULL, *handlerName = NULL, *actionName = NULL, *params = NULL, *eventsManager = NULL, *actionSuffix = NULL, *handlerClass = NULL, *status = NULL, *actionMethod = NULL, *modelBinder = NULL, *e = NULL, *bindCacheKey = NULL, *_0, *_1$$3, *_2$$3, *_3$$4 = NULL, *_4$$4, *_5$$7 = NULL, *_6$$7 = NULL, *_10$$8 = NULL, *_11$$8 = NULL, *_13$$8, *_14$$6 = NULL, *_49$$6, *_16$$12 = NULL, *_17$$12 = NULL, *_19$$13, *_22$$16 = NULL, *_23$$16 = NULL, *_25$$17, *_26$$19 = NULL, *_27$$19 = NULL, *_29$$20, *_31$$23 = NULL, *_32$$23 = NULL, *_34$$23, *_35$$22 = NULL, *_36$$22 = NULL, *_38$$26, *_39$$28 = NULL, *_40$$28 = NULL, *_42$$28, *_43$$31 = NULL, *_44$$31, *_45$$36 = NULL, *_46$$36 = NULL, *_48$$36, *_50$$39 = NULL, *_51$$40 = NULL, *_52$$40 = NULL, *_54$$40, *_55$$43 = NULL, *_56$$43, *_57$$46 = NULL, *_59$$47 = NULL, *_61$$48, *_62$$51 = NULL, *_63$$51 = NULL, *_65$$51, *_67$$54 = NULL, *_68$$54, *_69$$57; + zval *value = NULL, *handler = NULL, *dependencyInjector = NULL, *namespaceName = NULL, *handlerName = NULL, *actionName = NULL, *params = NULL, *eventsManager = NULL, *actionSuffix = NULL, *handlerClass = NULL, *status = NULL, *actionMethod = NULL, *modelBinder = NULL, *e = NULL, *bindCacheKey = NULL, *_0, *_1$$3, *_2$$3, *_3$$4 = NULL, *_4$$4, *_5$$7 = NULL, *_6$$7 = NULL, *_10$$8 = NULL, *_11$$8 = NULL, *_13$$8, *_14$$6 = NULL, *_49$$6, *_59$$6 = NULL, *_16$$12 = NULL, *_17$$12 = NULL, *_19$$13, *_22$$16 = NULL, *_23$$16 = NULL, *_25$$17, *_26$$19 = NULL, *_27$$19 = NULL, *_29$$20, *_31$$23 = NULL, *_32$$23 = NULL, *_34$$23, *_35$$22 = NULL, *_36$$22 = NULL, *_38$$26, *_39$$28 = NULL, *_40$$28 = NULL, *_42$$28, *_43$$31 = NULL, *_44$$31, *_45$$36 = NULL, *_46$$36 = NULL, *_48$$36, *_50$$39 = NULL, *_51$$40 = NULL, *_52$$40 = NULL, *_54$$40, *_55$$43 = NULL, *_56$$43, *_57$$46 = NULL, *_60$$47 = NULL, *_62$$48, *_63$$51 = NULL, *_64$$51 = NULL, *_66$$51, *_68$$54 = NULL, *_69$$54, *_70$$57; zend_bool hasService = 0, wasFresh; - zephir_fcall_cache_entry *_7 = NULL, *_8 = NULL, *_9 = NULL, *_12 = NULL, *_15 = NULL, *_18 = NULL, *_20 = NULL, *_21 = NULL, *_24 = NULL, *_28 = NULL, *_33 = NULL, *_37 = NULL, *_41 = NULL, *_47 = NULL, *_53 = NULL, *_58 = NULL, *_60 = NULL, *_64 = NULL, *_66 = NULL; + zephir_fcall_cache_entry *_7 = NULL, *_8 = NULL, *_9 = NULL, *_12 = NULL, *_15 = NULL, *_18 = NULL, *_20 = NULL, *_21 = NULL, *_24 = NULL, *_28 = NULL, *_33 = NULL, *_37 = NULL, *_41 = NULL, *_47 = NULL, *_53 = NULL, *_58 = NULL, *_61 = NULL, *_65 = NULL, *_67 = NULL; int ZEPHIR_LAST_CALL_STATUS, numberDispatches = 0; ZEPHIR_MM_GROW(); @@ -21587,14 +21233,16 @@ static PHP_METHOD(Phalcon_Dispatcher, _dispatch) { try_end_1: if (EG(exception)) { - ZEPHIR_CPY_WRT(e, EG(exception)); - if (zephir_instance_of_ev(e, zend_exception_get_default(TSRMLS_C) TSRMLS_CC)) { + ZEPHIR_INIT_NVAR(_59$$6); + ZEPHIR_CPY_WRT(_59$$6, EG(exception)); + if (zephir_instance_of_ev(_59$$6, zend_exception_get_default(TSRMLS_C) TSRMLS_CC)) { zend_clear_exception(TSRMLS_C); - ZEPHIR_CALL_METHOD(&_59$$47, this_ptr, "_handleexception", &_60, 0, e); + ZEPHIR_CPY_WRT(e, _59$$6); + ZEPHIR_CALL_METHOD(&_60$$47, this_ptr, "_handleexception", &_61, 0, e); zephir_check_call_status(); - if (ZEPHIR_IS_FALSE_IDENTICAL(_59$$47)) { - _61$$48 = zephir_fetch_nproperty_this(this_ptr, SL("_finished"), PH_NOISY_CC); - if (ZEPHIR_IS_FALSE_IDENTICAL(_61$$48)) { + if (ZEPHIR_IS_FALSE_IDENTICAL(_60$$47)) { + _62$$48 = zephir_fetch_nproperty_this(this_ptr, SL("_finished"), PH_NOISY_CC); + if (ZEPHIR_IS_FALSE_IDENTICAL(_62$$48)) { continue; } } else { @@ -21605,41 +21253,41 @@ static PHP_METHOD(Phalcon_Dispatcher, _dispatch) { } } if (Z_TYPE_P(eventsManager) == IS_OBJECT) { - ZEPHIR_INIT_NVAR(_63$$51); - ZVAL_STRING(_63$$51, "dispatch:afterExecuteRoute", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(&_62$$51, eventsManager, "fire", &_64, 0, _63$$51, this_ptr, value); - zephir_check_temp_parameter(_63$$51); + ZEPHIR_INIT_NVAR(_64$$51); + ZVAL_STRING(_64$$51, "dispatch:afterExecuteRoute", ZEPHIR_TEMP_PARAM_COPY); + ZEPHIR_CALL_METHOD(&_63$$51, eventsManager, "fire", &_65, 0, _64$$51, this_ptr, value); + zephir_check_temp_parameter(_64$$51); zephir_check_call_status(); - if (ZEPHIR_IS_FALSE_IDENTICAL(_62$$51)) { + if (ZEPHIR_IS_FALSE_IDENTICAL(_63$$51)) { continue; } - _65$$51 = zephir_fetch_nproperty_this(this_ptr, SL("_finished"), PH_NOISY_CC); - if (ZEPHIR_IS_FALSE_IDENTICAL(_65$$51)) { + _66$$51 = zephir_fetch_nproperty_this(this_ptr, SL("_finished"), PH_NOISY_CC); + if (ZEPHIR_IS_FALSE_IDENTICAL(_66$$51)) { continue; } - ZEPHIR_INIT_NVAR(_63$$51); - ZVAL_STRING(_63$$51, "dispatch:afterDispatch", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, eventsManager, "fire", &_66, 0, _63$$51, this_ptr); - zephir_check_temp_parameter(_63$$51); + ZEPHIR_INIT_NVAR(_64$$51); + ZVAL_STRING(_64$$51, "dispatch:afterDispatch", ZEPHIR_TEMP_PARAM_COPY); + ZEPHIR_CALL_METHOD(NULL, eventsManager, "fire", &_67, 0, _64$$51, this_ptr); + zephir_check_temp_parameter(_64$$51); zephir_check_call_status(); } if ((zephir_method_exists_ex(handler, SS("afterexecuteroute") TSRMLS_CC) == SUCCESS)) { - ZEPHIR_CALL_METHOD(&_67$$54, handler, "afterexecuteroute", NULL, 0, this_ptr, value); + ZEPHIR_CALL_METHOD(&_68$$54, handler, "afterexecuteroute", NULL, 0, this_ptr, value); zephir_check_call_status(); - if (ZEPHIR_IS_FALSE_IDENTICAL(_67$$54)) { + if (ZEPHIR_IS_FALSE_IDENTICAL(_68$$54)) { continue; } - _68$$54 = zephir_fetch_nproperty_this(this_ptr, SL("_finished"), PH_NOISY_CC); - if (ZEPHIR_IS_FALSE_IDENTICAL(_68$$54)) { + _69$$54 = zephir_fetch_nproperty_this(this_ptr, SL("_finished"), PH_NOISY_CC); + if (ZEPHIR_IS_FALSE_IDENTICAL(_69$$54)) { continue; } } } if (Z_TYPE_P(eventsManager) == IS_OBJECT) { - ZEPHIR_INIT_VAR(_69$$57); - ZVAL_STRING(_69$$57, "dispatch:afterDispatchLoop", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, eventsManager, "fire", NULL, 0, _69$$57, this_ptr); - zephir_check_temp_parameter(_69$$57); + ZEPHIR_INIT_VAR(_70$$57); + ZVAL_STRING(_70$$57, "dispatch:afterDispatchLoop", ZEPHIR_TEMP_PARAM_COPY); + ZEPHIR_CALL_METHOD(NULL, eventsManager, "fire", NULL, 0, _70$$57, this_ptr); + zephir_check_temp_parameter(_70$$57); zephir_check_call_status(); } RETURN_CCTOR(handler); @@ -22015,8 +21663,8 @@ static PHP_METHOD(Phalcon_Escaper, detectEncoding) { zephir_array_fast_append(_0, _1); zephir_is_iterable(_0, &_3, &_2, 0, 0, "phalcon/escaper.zep", 132); for ( - ; zephir_hash_get_current_data_ex(_3, (void**) &_4, &_2) == SUCCESS - ; zephir_hash_move_forward_ex(_3, &_2) + ; zend_hash_get_current_data_ex(_3, (void**) &_4, &_2) == SUCCESS + ; zend_hash_move_forward_ex(_3, &_2) ) { ZEPHIR_GET_HVALUE(charset, _4); ZEPHIR_CALL_FUNCTION(&_5$$5, "mb_detect_encoding", &_6, 184, str, charset, ZEPHIR_GLOBAL(global_true)); @@ -22262,11 +21910,11 @@ static PHP_METHOD(Phalcon_Filter, add) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &name_param, &handler); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -22311,8 +21959,8 @@ static PHP_METHOD(Phalcon_Filter, sanitize) { if (Z_TYPE_P(value) != IS_NULL) { zephir_is_iterable(filters, &_1$$4, &_0$$4, 0, 0, "phalcon/filter.zep", 108); for ( - ; zephir_hash_get_current_data_ex(_1$$4, (void**) &_2$$4, &_0$$4) == SUCCESS - ; zephir_hash_move_forward_ex(_1$$4, &_0$$4) + ; zend_hash_get_current_data_ex(_1$$4, (void**) &_2$$4, &_0$$4) == SUCCESS + ; zend_hash_move_forward_ex(_1$$4, &_0$$4) ) { ZEPHIR_GET_HVALUE(filter, _2$$4); _3$$5 = Z_TYPE_P(value) == IS_ARRAY; @@ -22324,8 +21972,8 @@ static PHP_METHOD(Phalcon_Filter, sanitize) { array_init(arrayValue); zephir_is_iterable(value, &_5$$6, &_4$$6, 0, 0, "phalcon/filter.zep", 103); for ( - ; zephir_hash_get_current_data_ex(_5$$6, (void**) &_6$$6, &_4$$6) == SUCCESS - ; zephir_hash_move_forward_ex(_5$$6, &_4$$6) + ; zend_hash_get_current_data_ex(_5$$6, (void**) &_6$$6, &_4$$6) == SUCCESS + ; zend_hash_move_forward_ex(_5$$6, &_4$$6) ) { ZEPHIR_GET_HMKEY(itemKey, _5$$6, _4$$6); ZEPHIR_GET_HVALUE(itemValue, _6$$6); @@ -22353,8 +22001,8 @@ static PHP_METHOD(Phalcon_Filter, sanitize) { array_init(sanitizedValue); zephir_is_iterable(value, &_12$$9, &_11$$9, 0, 0, "phalcon/filter.zep", 120); for ( - ; zephir_hash_get_current_data_ex(_12$$9, (void**) &_13$$9, &_11$$9) == SUCCESS - ; zephir_hash_move_forward_ex(_12$$9, &_11$$9) + ; zend_hash_get_current_data_ex(_12$$9, (void**) &_13$$9, &_11$$9) == SUCCESS + ; zend_hash_move_forward_ex(_12$$9, &_11$$9) ) { ZEPHIR_GET_HMKEY(itemKey, _12$$9, _11$$9); ZEPHIR_GET_HVALUE(itemValue, _13$$9); @@ -22382,11 +22030,11 @@ static PHP_METHOD(Phalcon_Filter, _sanitize) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &value, &filter_param); - if (unlikely(Z_TYPE_P(filter_param) != IS_STRING && Z_TYPE_P(filter_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(filter_param) != IS_STRING && Z_TYPE_P(filter_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'filter' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(filter_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(filter_param) == IS_STRING)) { zephir_get_strval(filter, filter_param); } else { ZEPHIR_INIT_VAR(filter); @@ -22891,8 +22539,8 @@ static PHP_METHOD(Phalcon_Flash, outputMessage) { } zephir_is_iterable(message, &_3$$9, &_2$$9, 0, 0, "phalcon/flash.zep", 288); for ( - ; zephir_hash_get_current_data_ex(_3$$9, (void**) &_4$$9, &_2$$9) == SUCCESS - ; zephir_hash_move_forward_ex(_3$$9, &_2$$9) + ; zend_hash_get_current_data_ex(_3$$9, (void**) &_4$$9, &_2$$9) == SUCCESS + ; zend_hash_move_forward_ex(_3$$9, &_2$$9) ) { ZEPHIR_GET_HVALUE(msg, _4$$9); if (autoEscape == 1) { @@ -23044,11 +22692,11 @@ static PHP_METHOD(Phalcon_Kernel, preComputeHashKey) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &key_param); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { ZEPHIR_INIT_VAR(key); @@ -23217,8 +22865,8 @@ static PHP_METHOD(Phalcon_Loader, registerNamespaces) { if (merge) { zephir_is_iterable(preparedNamespaces, &_1$$3, &_0$$3, 0, 0, "phalcon/loader.zep", 123); for ( - ; zephir_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_1$$3, &_0$$3) + ; zend_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS + ; zend_hash_move_forward_ex(_1$$3, &_0$$3) ) { ZEPHIR_GET_HMKEY(name, _1$$3, _0$$3); ZEPHIR_GET_HVALUE(paths, _2$$3); @@ -23258,8 +22906,8 @@ static PHP_METHOD(Phalcon_Loader, prepareNamespace) { array_init(prepared); zephir_is_iterable(namespace, &_1, &_0, 0, 0, "phalcon/loader.zep", 145); for ( - ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS - ; zephir_hash_move_forward_ex(_1, &_0) + ; zend_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS + ; zend_hash_move_forward_ex(_1, &_0) ) { ZEPHIR_GET_HMKEY(name, _1, _0); ZEPHIR_GET_HVALUE(paths, _2); @@ -23477,8 +23125,8 @@ static PHP_METHOD(Phalcon_Loader, loadFiles) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_files"), PH_NOISY_CC); zephir_is_iterable(_0, &_2, &_1, 0, 0, "phalcon/loader.zep", 288); for ( - ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS - ; zephir_hash_move_forward_ex(_2, &_1) + ; zend_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS + ; zend_hash_move_forward_ex(_2, &_1) ) { ZEPHIR_GET_HVALUE(filePath, _3); ZEPHIR_OBS_NVAR(_4$$3); @@ -23527,11 +23175,11 @@ static PHP_METHOD(Phalcon_Loader, autoLoad) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &className_param); - if (unlikely(Z_TYPE_P(className_param) != IS_STRING && Z_TYPE_P(className_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(className_param) != IS_STRING && Z_TYPE_P(className_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'className' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(className_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(className_param) == IS_STRING)) { zephir_get_strval(className, className_param); } else { ZEPHIR_INIT_VAR(className); @@ -23575,8 +23223,8 @@ static PHP_METHOD(Phalcon_Loader, autoLoad) { zephir_read_property_this(&namespaces, this_ptr, SL("_namespaces"), PH_NOISY_CC); zephir_is_iterable(namespaces, &_3, &_2, 0, 0, "phalcon/loader.zep", 392); for ( - ; zephir_hash_get_current_data_ex(_3, (void**) &_4, &_2) == SUCCESS - ; zephir_hash_move_forward_ex(_3, &_2) + ; zend_hash_get_current_data_ex(_3, (void**) &_4, &_2) == SUCCESS + ; zend_hash_move_forward_ex(_3, &_2) ) { ZEPHIR_GET_HMKEY(nsPrefix, _3, _2); ZEPHIR_GET_HVALUE(directories, _4); @@ -23597,8 +23245,8 @@ static PHP_METHOD(Phalcon_Loader, autoLoad) { ZEPHIR_CPY_WRT(fileName, _7$$6); zephir_is_iterable(directories, &_9$$6, &_8$$6, 0, 0, "phalcon/loader.zep", 387); for ( - ; zephir_hash_get_current_data_ex(_9$$6, (void**) &_10$$6, &_8$$6) == SUCCESS - ; zephir_hash_move_forward_ex(_9$$6, &_8$$6) + ; zend_hash_get_current_data_ex(_9$$6, (void**) &_10$$6, &_8$$6) == SUCCESS + ; zend_hash_move_forward_ex(_9$$6, &_8$$6) ) { ZEPHIR_GET_HVALUE(directory, _10$$6); ZEPHIR_INIT_NVAR(_11$$9); @@ -23607,8 +23255,8 @@ static PHP_METHOD(Phalcon_Loader, autoLoad) { ZEPHIR_CONCAT_VV(fixedDirectory, _11$$9, ds); zephir_is_iterable(extensions, &_13$$9, &_12$$9, 0, 0, "phalcon/loader.zep", 386); for ( - ; zephir_hash_get_current_data_ex(_13$$9, (void**) &_14$$9, &_12$$9) == SUCCESS - ; zephir_hash_move_forward_ex(_13$$9, &_12$$9) + ; zend_hash_get_current_data_ex(_13$$9, (void**) &_14$$9, &_12$$9) == SUCCESS + ; zend_hash_move_forward_ex(_13$$9, &_12$$9) ) { ZEPHIR_GET_HVALUE(extension, _14$$9); ZEPHIR_INIT_NVAR(filePath); @@ -23648,8 +23296,8 @@ static PHP_METHOD(Phalcon_Loader, autoLoad) { zephir_read_property_this(&directories, this_ptr, SL("_directories"), PH_NOISY_CC); zephir_is_iterable(directories, &_23, &_22, 0, 0, "phalcon/loader.zep", 447); for ( - ; zephir_hash_get_current_data_ex(_23, (void**) &_24, &_22) == SUCCESS - ; zephir_hash_move_forward_ex(_23, &_22) + ; zend_hash_get_current_data_ex(_23, (void**) &_24, &_22) == SUCCESS + ; zend_hash_move_forward_ex(_23, &_22) ) { ZEPHIR_GET_HVALUE(directory, _24); ZEPHIR_INIT_NVAR(_25$$14); @@ -23658,8 +23306,8 @@ static PHP_METHOD(Phalcon_Loader, autoLoad) { ZEPHIR_CONCAT_VV(fixedDirectory, _25$$14, ds); zephir_is_iterable(extensions, &_27$$14, &_26$$14, 0, 0, "phalcon/loader.zep", 442); for ( - ; zephir_hash_get_current_data_ex(_27$$14, (void**) &_28$$14, &_26$$14) == SUCCESS - ; zephir_hash_move_forward_ex(_27$$14, &_26$$14) + ; zend_hash_get_current_data_ex(_27$$14, (void**) &_28$$14, &_26$$14) == SUCCESS + ; zend_hash_move_forward_ex(_27$$14, &_26$$14) ) { ZEPHIR_GET_HVALUE(extension, _28$$14); ZEPHIR_INIT_NVAR(filePath); @@ -23850,11 +23498,11 @@ static PHP_METHOD(Phalcon_Registry, offsetExists) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &offset_param); - if (unlikely(Z_TYPE_P(offset_param) != IS_STRING && Z_TYPE_P(offset_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(offset_param) != IS_STRING && Z_TYPE_P(offset_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'offset' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(offset_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(offset_param) == IS_STRING)) { zephir_get_strval(offset, offset_param); } else { ZEPHIR_INIT_VAR(offset); @@ -23875,11 +23523,11 @@ static PHP_METHOD(Phalcon_Registry, offsetGet) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &offset_param); - if (unlikely(Z_TYPE_P(offset_param) != IS_STRING && Z_TYPE_P(offset_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(offset_param) != IS_STRING && Z_TYPE_P(offset_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'offset' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(offset_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(offset_param) == IS_STRING)) { zephir_get_strval(offset, offset_param); } else { ZEPHIR_INIT_VAR(offset); @@ -23901,11 +23549,11 @@ static PHP_METHOD(Phalcon_Registry, offsetSet) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &offset_param, &value); - if (unlikely(Z_TYPE_P(offset_param) != IS_STRING && Z_TYPE_P(offset_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(offset_param) != IS_STRING && Z_TYPE_P(offset_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'offset' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(offset_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(offset_param) == IS_STRING)) { zephir_get_strval(offset, offset_param); } else { ZEPHIR_INIT_VAR(offset); @@ -23926,11 +23574,11 @@ static PHP_METHOD(Phalcon_Registry, offsetUnset) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &offset_param); - if (unlikely(Z_TYPE_P(offset_param) != IS_STRING && Z_TYPE_P(offset_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(offset_param) != IS_STRING && Z_TYPE_P(offset_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'offset' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(offset_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(offset_param) == IS_STRING)) { zephir_get_strval(offset, offset_param); } else { ZEPHIR_INIT_VAR(offset); @@ -24043,11 +23691,11 @@ static PHP_METHOD(Phalcon_Registry, __set) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &key_param, &value); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { ZEPHIR_INIT_VAR(key); @@ -24070,11 +23718,11 @@ static PHP_METHOD(Phalcon_Registry, __get) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &key_param); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { ZEPHIR_INIT_VAR(key); @@ -24097,11 +23745,11 @@ static PHP_METHOD(Phalcon_Registry, __isset) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &key_param); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { ZEPHIR_INIT_VAR(key); @@ -24124,11 +23772,11 @@ static PHP_METHOD(Phalcon_Registry, __unset) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &key_param); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { ZEPHIR_INIT_VAR(key); @@ -24264,7 +23912,7 @@ static PHP_METHOD(Phalcon_Security, setRandomBytes) { zephir_fetch_params(0, 1, 0, &randomBytes_param); - if (unlikely(Z_TYPE_P(randomBytes_param) != IS_LONG)) { + if (UNEXPECTED(Z_TYPE_P(randomBytes_param) != IS_LONG)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'randomBytes' must be a long") TSRMLS_CC); RETURN_NULL(); } @@ -24954,11 +24602,11 @@ static PHP_METHOD(Phalcon_Tag, renderAttributes) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &code_param, &attributes_param); - if (unlikely(Z_TYPE_P(code_param) != IS_STRING && Z_TYPE_P(code_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(code_param) != IS_STRING && Z_TYPE_P(code_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'code' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(code_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(code_param) == IS_STRING)) { zephir_get_strval(code, code_param); } else { ZEPHIR_INIT_VAR(code); @@ -24983,8 +24631,8 @@ static PHP_METHOD(Phalcon_Tag, renderAttributes) { array_init(attrs); zephir_is_iterable(order, &_1, &_0, 0, 0, "phalcon/tag.zep", 137); for ( - ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS - ; zephir_hash_move_forward_ex(_1, &_0) + ; zend_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS + ; zend_hash_move_forward_ex(_1, &_0) ) { ZEPHIR_GET_HMKEY(key, _1, _0); ZEPHIR_GET_HVALUE(value, _2); @@ -24995,8 +24643,8 @@ static PHP_METHOD(Phalcon_Tag, renderAttributes) { } zephir_is_iterable(attributes, &_4, &_3, 0, 0, "phalcon/tag.zep", 143); for ( - ; zephir_hash_get_current_data_ex(_4, (void**) &_5, &_3) == SUCCESS - ; zephir_hash_move_forward_ex(_4, &_3) + ; zend_hash_get_current_data_ex(_4, (void**) &_5, &_3) == SUCCESS + ; zend_hash_move_forward_ex(_4, &_3) ) { ZEPHIR_GET_HMKEY(key, _4, _3); ZEPHIR_GET_HVALUE(value, _5); @@ -25011,8 +24659,8 @@ static PHP_METHOD(Phalcon_Tag, renderAttributes) { ZEPHIR_CPY_WRT(newCode, code); zephir_is_iterable(attrs, &_8, &_7, 0, 0, "phalcon/tag.zep", 162); for ( - ; zephir_hash_get_current_data_ex(_8, (void**) &_9, &_7) == SUCCESS - ; zephir_hash_move_forward_ex(_8, &_7) + ; zend_hash_get_current_data_ex(_8, (void**) &_9, &_7) == SUCCESS + ; zend_hash_move_forward_ex(_8, &_7) ) { ZEPHIR_GET_HMKEY(key, _8, _7); ZEPHIR_GET_HVALUE(value, _9); @@ -25164,11 +24812,11 @@ static PHP_METHOD(Phalcon_Tag, setDefault) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &id_param, &value); - if (unlikely(Z_TYPE_P(id_param) != IS_STRING && Z_TYPE_P(id_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(id_param) != IS_STRING && Z_TYPE_P(id_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'id' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(id_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(id_param) == IS_STRING)) { zephir_get_strval(id, id_param); } else { ZEPHIR_INIT_VAR(id); @@ -26284,8 +25932,8 @@ static PHP_METHOD(Phalcon_Tag, getTitle) { zephir_check_call_status(); zephir_is_iterable(tmp$$5, &_9$$5, &_8$$5, 0, 0, "phalcon/tag.zep", 1228); for ( - ; zephir_hash_get_current_data_ex(_9$$5, (void**) &_10$$5, &_8$$5) == SUCCESS - ; zephir_hash_move_forward_ex(_9$$5, &_8$$5) + ; zend_hash_get_current_data_ex(_9$$5, (void**) &_10$$5, &_8$$5) == SUCCESS + ; zend_hash_move_forward_ex(_9$$5, &_8$$5) ) { ZEPHIR_GET_HVALUE(title, _10$$5); ZEPHIR_CALL_METHOD(&_11$$6, escaper, "escapehtml", &_12, 0, title); @@ -26299,8 +25947,8 @@ static PHP_METHOD(Phalcon_Tag, getTitle) { if (!(ZEPHIR_IS_EMPTY(documentAppendTitle))) { zephir_is_iterable(documentAppendTitle, &_14$$8, &_13$$8, 0, 0, "phalcon/tag.zep", 1238); for ( - ; zephir_hash_get_current_data_ex(_14$$8, (void**) &_15$$8, &_13$$8) == SUCCESS - ; zephir_hash_move_forward_ex(_14$$8, &_13$$8) + ; zend_hash_get_current_data_ex(_14$$8, (void**) &_15$$8, &_13$$8) == SUCCESS + ; zend_hash_move_forward_ex(_14$$8, &_13$$8) ) { ZEPHIR_GET_HVALUE(title, _15$$8); ZEPHIR_CALL_METHOD(&_16$$9, escaper, "escapehtml", &_17, 0, title); @@ -26631,8 +26279,8 @@ static PHP_METHOD(Phalcon_Tag, friendlyTitle) { if (Z_TYPE_P(replace) == IS_ARRAY) { zephir_is_iterable(replace, &_9$$6, &_8$$6, 0, 0, "phalcon/tag.zep", 1502); for ( - ; zephir_hash_get_current_data_ex(_9$$6, (void**) &_10$$6, &_8$$6) == SUCCESS - ; zephir_hash_move_forward_ex(_9$$6, &_8$$6) + ; zend_hash_get_current_data_ex(_9$$6, (void**) &_10$$6, &_8$$6) == SUCCESS + ; zend_hash_move_forward_ex(_9$$6, &_8$$6) ) { ZEPHIR_GET_HVALUE(search, _10$$6); ZEPHIR_INIT_NVAR(_11$$7); @@ -26933,11 +26581,11 @@ static PHP_METHOD(Phalcon_Text, camelize) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &str_param, &delimiter); - if (unlikely(Z_TYPE_P(str_param) != IS_STRING && Z_TYPE_P(str_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(str_param) != IS_STRING && Z_TYPE_P(str_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'str' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(str_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(str_param) == IS_STRING)) { zephir_get_strval(str, str_param); } else { ZEPHIR_INIT_VAR(str); @@ -26962,11 +26610,11 @@ static PHP_METHOD(Phalcon_Text, uncamelize) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &str_param, &delimiter); - if (unlikely(Z_TYPE_P(str_param) != IS_STRING && Z_TYPE_P(str_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(str_param) != IS_STRING && Z_TYPE_P(str_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'str' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(str_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(str_param) == IS_STRING)) { zephir_get_strval(str, str_param); } else { ZEPHIR_INIT_VAR(str); @@ -27189,11 +26837,11 @@ static PHP_METHOD(Phalcon_Text, lower) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &str_param, &encoding_param); - if (unlikely(Z_TYPE_P(str_param) != IS_STRING && Z_TYPE_P(str_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(str_param) != IS_STRING && Z_TYPE_P(str_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'str' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(str_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(str_param) == IS_STRING)) { zephir_get_strval(str, str_param); } else { ZEPHIR_INIT_VAR(str); @@ -27203,11 +26851,11 @@ static PHP_METHOD(Phalcon_Text, lower) { ZEPHIR_INIT_VAR(encoding); ZVAL_STRING(encoding, "UTF-8", 1); } else { - if (unlikely(Z_TYPE_P(encoding_param) != IS_STRING && Z_TYPE_P(encoding_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(encoding_param) != IS_STRING && Z_TYPE_P(encoding_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'encoding' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(encoding_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(encoding_param) == IS_STRING)) { zephir_get_strval(encoding, encoding_param); } else { ZEPHIR_INIT_VAR(encoding); @@ -27235,11 +26883,11 @@ static PHP_METHOD(Phalcon_Text, upper) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &str_param, &encoding_param); - if (unlikely(Z_TYPE_P(str_param) != IS_STRING && Z_TYPE_P(str_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(str_param) != IS_STRING && Z_TYPE_P(str_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'str' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(str_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(str_param) == IS_STRING)) { zephir_get_strval(str, str_param); } else { ZEPHIR_INIT_VAR(str); @@ -27249,11 +26897,11 @@ static PHP_METHOD(Phalcon_Text, upper) { ZEPHIR_INIT_VAR(encoding); ZVAL_STRING(encoding, "UTF-8", 1); } else { - if (unlikely(Z_TYPE_P(encoding_param) != IS_STRING && Z_TYPE_P(encoding_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(encoding_param) != IS_STRING && Z_TYPE_P(encoding_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'encoding' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(encoding_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(encoding_param) == IS_STRING)) { zephir_get_strval(encoding, encoding_param); } else { ZEPHIR_INIT_VAR(encoding); @@ -27298,54 +26946,52 @@ static PHP_METHOD(Phalcon_Text, reduceSlashes) { static PHP_METHOD(Phalcon_Text, concat) { - HashTable *_6$$3; - HashPosition _5$$3; - zval *separator = NULL, *a = NULL, *b = NULL, _0 = zval_used_for_init, *c = NULL, *_11, *_12, *_2$$3, _3$$3, *_4$$3 = NULL, **_7$$3, *_8$$4 = NULL, *_9$$4 = NULL, *_10$$4 = NULL; + HashTable *_7$$3; + HashPosition _6$$3; + zval *separator = NULL, *a = NULL, *b = NULL, _0, _1, _2, *c = NULL, *_12, *_13, *_3$$3, _4$$3, *_5$$3 = NULL, **_8$$3, *_9$$4 = NULL, *_10$$4 = NULL, *_11$$4 = NULL; int ZEPHIR_LAST_CALL_STATUS; - zephir_fcall_cache_entry *_1 = NULL; ZEPHIR_MM_GROW(); + ZEPHIR_INIT_VAR(separator); ZEPHIR_SINIT_VAR(_0); ZVAL_LONG(&_0, 0); - ZEPHIR_CALL_FUNCTION(&separator, "func_get_arg", &_1, 448, &_0); - zephir_check_call_status(); - ZEPHIR_SINIT_NVAR(_0); - ZVAL_LONG(&_0, 1); - ZEPHIR_CALL_FUNCTION(&a, "func_get_arg", &_1, 448, &_0); - zephir_check_call_status(); - ZEPHIR_SINIT_NVAR(_0); - ZVAL_LONG(&_0, 2); - ZEPHIR_CALL_FUNCTION(&b, "func_get_arg", &_1, 448, &_0); - zephir_check_call_status(); + zephir_get_arg(separator, zephir_get_intval(&_0) TSRMLS_CC); + ZEPHIR_INIT_VAR(a); + ZEPHIR_SINIT_VAR(_1); + ZVAL_LONG(&_1, 1); + zephir_get_arg(a, zephir_get_intval(&_1) TSRMLS_CC); + ZEPHIR_INIT_VAR(b); + ZEPHIR_SINIT_VAR(_2); + ZVAL_LONG(&_2, 2); + zephir_get_arg(b, zephir_get_intval(&_2) TSRMLS_CC); if (ZEND_NUM_ARGS() > 3) { - ZEPHIR_INIT_VAR(_2$$3); - array_init(_2$$3); - zend_copy_parameters_array(ZEND_NUM_ARGS(), _2$$3 TSRMLS_CC); - ZEPHIR_SINIT_VAR(_3$$3); - ZVAL_LONG(&_3$$3, 3); - ZEPHIR_CALL_FUNCTION(&_4$$3, "array_slice", NULL, 395, _2$$3, &_3$$3); + ZEPHIR_INIT_VAR(_3$$3); + zephir_get_args(_3$$3 TSRMLS_CC); + ZEPHIR_SINIT_VAR(_4$$3); + ZVAL_LONG(&_4$$3, 3); + ZEPHIR_CALL_FUNCTION(&_5$$3, "array_slice", NULL, 395, _3$$3, &_4$$3); zephir_check_call_status(); - zephir_is_iterable(_4$$3, &_6$$3, &_5$$3, 0, 0, "phalcon/text.zep", 256); + zephir_is_iterable(_5$$3, &_7$$3, &_6$$3, 0, 0, "phalcon/text.zep", 256); for ( - ; zephir_hash_get_current_data_ex(_6$$3, (void**) &_7$$3, &_5$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_6$$3, &_5$$3) + ; zend_hash_get_current_data_ex(_7$$3, (void**) &_8$$3, &_6$$3) == SUCCESS + ; zend_hash_move_forward_ex(_7$$3, &_6$$3) ) { - ZEPHIR_GET_HVALUE(c, _7$$3); - ZEPHIR_INIT_NVAR(_8$$4); - zephir_fast_trim(_8$$4, b, separator, ZEPHIR_TRIM_RIGHT TSRMLS_CC); + ZEPHIR_GET_HVALUE(c, _8$$3); ZEPHIR_INIT_NVAR(_9$$4); - zephir_fast_trim(_9$$4, c, separator, ZEPHIR_TRIM_LEFT TSRMLS_CC); - ZEPHIR_INIT_LNVAR(_10$$4); - ZEPHIR_CONCAT_VVV(_10$$4, _8$$4, separator, _9$$4); - ZEPHIR_CPY_WRT(b, _10$$4); + zephir_fast_trim(_9$$4, b, separator, ZEPHIR_TRIM_RIGHT TSRMLS_CC); + ZEPHIR_INIT_NVAR(_10$$4); + zephir_fast_trim(_10$$4, c, separator, ZEPHIR_TRIM_LEFT TSRMLS_CC); + ZEPHIR_INIT_LNVAR(_11$$4); + ZEPHIR_CONCAT_VVV(_11$$4, _9$$4, separator, _10$$4); + ZEPHIR_CPY_WRT(b, _11$$4); } } - ZEPHIR_INIT_VAR(_11); - zephir_fast_trim(_11, a, separator, ZEPHIR_TRIM_RIGHT TSRMLS_CC); ZEPHIR_INIT_VAR(_12); - zephir_fast_trim(_12, b, separator, ZEPHIR_TRIM_LEFT TSRMLS_CC); - ZEPHIR_CONCAT_VVV(return_value, _11, separator, _12); + zephir_fast_trim(_12, a, separator, ZEPHIR_TRIM_RIGHT TSRMLS_CC); + ZEPHIR_INIT_VAR(_13); + zephir_fast_trim(_13, b, separator, ZEPHIR_TRIM_LEFT TSRMLS_CC); + ZEPHIR_CONCAT_VVV(return_value, _12, separator, _13); RETURN_MM(); } @@ -27363,11 +27009,11 @@ static PHP_METHOD(Phalcon_Text, dynamic) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 3, &text_param, &leftDelimiter_param, &rightDelimiter_param, &separator_param); - if (unlikely(Z_TYPE_P(text_param) != IS_STRING && Z_TYPE_P(text_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(text_param) != IS_STRING && Z_TYPE_P(text_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'text' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(text_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(text_param) == IS_STRING)) { zephir_get_strval(text, text_param); } else { ZEPHIR_INIT_VAR(text); @@ -27377,11 +27023,11 @@ static PHP_METHOD(Phalcon_Text, dynamic) { ZEPHIR_INIT_VAR(leftDelimiter); ZVAL_STRING(leftDelimiter, "{", 1); } else { - if (unlikely(Z_TYPE_P(leftDelimiter_param) != IS_STRING && Z_TYPE_P(leftDelimiter_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(leftDelimiter_param) != IS_STRING && Z_TYPE_P(leftDelimiter_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'leftDelimiter' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(leftDelimiter_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(leftDelimiter_param) == IS_STRING)) { zephir_get_strval(leftDelimiter, leftDelimiter_param); } else { ZEPHIR_INIT_VAR(leftDelimiter); @@ -27392,11 +27038,11 @@ static PHP_METHOD(Phalcon_Text, dynamic) { ZEPHIR_INIT_VAR(rightDelimiter); ZVAL_STRING(rightDelimiter, "}", 1); } else { - if (unlikely(Z_TYPE_P(rightDelimiter_param) != IS_STRING && Z_TYPE_P(rightDelimiter_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(rightDelimiter_param) != IS_STRING && Z_TYPE_P(rightDelimiter_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'rightDelimiter' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(rightDelimiter_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(rightDelimiter_param) == IS_STRING)) { zephir_get_strval(rightDelimiter, rightDelimiter_param); } else { ZEPHIR_INIT_VAR(rightDelimiter); @@ -27407,11 +27053,11 @@ static PHP_METHOD(Phalcon_Text, dynamic) { ZEPHIR_INIT_VAR(separator); ZVAL_STRING(separator, "|", 1); } else { - if (unlikely(Z_TYPE_P(separator_param) != IS_STRING && Z_TYPE_P(separator_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(separator_param) != IS_STRING && Z_TYPE_P(separator_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'separator' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(separator_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(separator_param) == IS_STRING)) { zephir_get_strval(separator, separator_param); } else { ZEPHIR_INIT_VAR(separator); @@ -27420,24 +27066,24 @@ static PHP_METHOD(Phalcon_Text, dynamic) { } - ZEPHIR_CALL_FUNCTION(&_0, "substr_count", &_1, 449, text, leftDelimiter); + ZEPHIR_CALL_FUNCTION(&_0, "substr_count", &_1, 448, text, leftDelimiter); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_2, "substr_count", &_1, 449, text, rightDelimiter); + ZEPHIR_CALL_FUNCTION(&_2, "substr_count", &_1, 448, text, rightDelimiter); zephir_check_call_status(); if (!ZEPHIR_IS_IDENTICAL(_0, _2)) { ZEPHIR_INIT_VAR(_3$$3); object_init_ex(_3$$3, spl_ce_RuntimeException); ZEPHIR_INIT_VAR(_4$$3); ZEPHIR_CONCAT_SVS(_4$$3, "Syntax error in string \"", text, "\""); - ZEPHIR_CALL_METHOD(NULL, _3$$3, "__construct", NULL, 450, _4$$3); + ZEPHIR_CALL_METHOD(NULL, _3$$3, "__construct", NULL, 449, _4$$3); zephir_check_call_status(); zephir_throw_exception_debug(_3$$3, "phalcon/text.zep", 283 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } - ZEPHIR_CALL_FUNCTION(&ldS, "preg_quote", &_5, 451, leftDelimiter); + ZEPHIR_CALL_FUNCTION(&ldS, "preg_quote", &_5, 450, leftDelimiter); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&rdS, "preg_quote", &_5, 451, rightDelimiter); + ZEPHIR_CALL_FUNCTION(&rdS, "preg_quote", &_5, 450, rightDelimiter); zephir_check_call_status(); ZEPHIR_INIT_VAR(pattern); ZEPHIR_CONCAT_SVSVVSVS(pattern, "/", ldS, "([^", ldS, rdS, "]+)", rdS, "/"); @@ -27455,8 +27101,8 @@ static PHP_METHOD(Phalcon_Text, dynamic) { if (Z_TYPE_P(matches) == IS_ARRAY) { zephir_is_iterable(matches, &_9$$5, &_8$$5, 0, 0, "phalcon/text.zep", 306); for ( - ; zephir_hash_get_current_data_ex(_9$$5, (void**) &_10$$5, &_8$$5) == SUCCESS - ; zephir_hash_move_forward_ex(_9$$5, &_8$$5) + ; zend_hash_get_current_data_ex(_9$$5, (void**) &_10$$5, &_8$$5) == SUCCESS + ; zend_hash_move_forward_ex(_9$$5, &_8$$5) ) { ZEPHIR_GET_HVALUE(match, _10$$5); _11$$6 = !(zephir_array_isset_long(match, 0)); @@ -27470,11 +27116,11 @@ static PHP_METHOD(Phalcon_Text, dynamic) { ZEPHIR_INIT_NVAR(words); zephir_fast_explode(words, separator, _12$$6, LONG_MAX TSRMLS_CC); ZEPHIR_OBS_NVAR(word); - ZEPHIR_CALL_FUNCTION(&_13$$6, "array_rand", &_14, 452, words); + ZEPHIR_CALL_FUNCTION(&_13$$6, "array_rand", &_14, 451, words); zephir_check_call_status(); zephir_array_fetch(&word, words, _13$$6, PH_NOISY, "phalcon/text.zep", 302 TSRMLS_CC); zephir_array_fetch_long(&_15$$6, match, 0, PH_NOISY | PH_READONLY, "phalcon/text.zep", 303 TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&sub, "preg_quote", &_5, 451, _15$$6, separator); + ZEPHIR_CALL_FUNCTION(&sub, "preg_quote", &_5, 450, _15$$6, separator); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_16$$6); ZEPHIR_CONCAT_SVS(_16$$6, "/", sub, "/"); @@ -27498,11 +27144,11 @@ static PHP_METHOD(Phalcon_Text, underscore) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &text_param); - if (unlikely(Z_TYPE_P(text_param) != IS_STRING && Z_TYPE_P(text_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(text_param) != IS_STRING && Z_TYPE_P(text_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'text' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(text_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(text_param) == IS_STRING)) { zephir_get_strval(text, text_param); } else { ZEPHIR_INIT_VAR(text); @@ -27533,11 +27179,11 @@ static PHP_METHOD(Phalcon_Text, humanize) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &text_param); - if (unlikely(Z_TYPE_P(text_param) != IS_STRING && Z_TYPE_P(text_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(text_param) != IS_STRING && Z_TYPE_P(text_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'text' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(text_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(text_param) == IS_STRING)) { zephir_get_strval(text, text_param); } else { ZEPHIR_INIT_VAR(text); @@ -27658,13 +27304,13 @@ static PHP_METHOD(Phalcon_Validation, __construct) { ZEPHIR_INIT_VAR(_0$$3); ZEPHIR_INIT_NVAR(_0$$3); zephir_create_closure_ex(_0$$3, NULL, phalcon_0__closure_ce, SS("__invoke") TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_1$$3, "array_filter", &_2, 462, validators, _0$$3); + ZEPHIR_CALL_FUNCTION(&_1$$3, "array_filter", &_2, 461, validators, _0$$3); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_validators"), _1$$3 TSRMLS_CC); ZEPHIR_INIT_VAR(_3$$3); ZEPHIR_INIT_NVAR(_3$$3); zephir_create_closure_ex(_3$$3, NULL, phalcon_1__closure_ce, SS("__invoke") TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_4$$3, "array_filter", &_2, 462, validators, _3$$3); + ZEPHIR_CALL_FUNCTION(&_4$$3, "array_filter", &_2, 461, validators, _3$$3); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_combinedFieldsValidators"), _4$$3 TSRMLS_CC); } @@ -27737,8 +27383,8 @@ static PHP_METHOD(Phalcon_Validation, validate) { } zephir_is_iterable(validators, &_2, &_1, 0, 0, "phalcon/validation.zep", 161); for ( - ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS - ; zephir_hash_move_forward_ex(_2, &_1) + ; zend_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS + ; zend_hash_move_forward_ex(_2, &_1) ) { ZEPHIR_GET_HVALUE(scope, _3); if (Z_TYPE_P(scope) != IS_ARRAY) { @@ -27773,8 +27419,8 @@ static PHP_METHOD(Phalcon_Validation, validate) { } zephir_is_iterable(combinedFieldsValidators, &_10, &_9, 0, 0, "phalcon/validation.zep", 193); for ( - ; zephir_hash_get_current_data_ex(_10, (void**) &_11, &_9) == SUCCESS - ; zephir_hash_move_forward_ex(_10, &_9) + ; zend_hash_get_current_data_ex(_10, (void**) &_11, &_9) == SUCCESS + ; zend_hash_move_forward_ex(_10, &_9) ) { ZEPHIR_GET_HVALUE(scope, _11); if (Z_TYPE_P(scope) != IS_ARRAY) { @@ -27838,8 +27484,8 @@ static PHP_METHOD(Phalcon_Validation, add) { } else { zephir_is_iterable(field, &_2$$5, &_1$$5, 0, 0, "phalcon/validation.zep", 215); for ( - ; zephir_hash_get_current_data_ex(_2$$5, (void**) &_3$$5, &_1$$5) == SUCCESS - ; zephir_hash_move_forward_ex(_2$$5, &_1$$5) + ; zend_hash_get_current_data_ex(_2$$5, (void**) &_3$$5, &_1$$5) == SUCCESS + ; zend_hash_move_forward_ex(_2$$5, &_1$$5) ) { ZEPHIR_GET_HVALUE(singleField, _3$$5); ZEPHIR_INIT_NVAR(_4$$6); @@ -27896,8 +27542,8 @@ static PHP_METHOD(Phalcon_Validation, rules) { zephir_is_iterable(validators, &_1, &_0, 0, 0, "phalcon/validation.zep", 247); for ( - ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS - ; zephir_hash_move_forward_ex(_1, &_0) + ; zend_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS + ; zend_hash_move_forward_ex(_1, &_0) ) { ZEPHIR_GET_HVALUE(validator, _2); if (zephir_instance_of_ev(validator, phalcon_validation_validatorinterface_ce TSRMLS_CC)) { @@ -27923,8 +27569,8 @@ static PHP_METHOD(Phalcon_Validation, setFilters) { if (Z_TYPE_P(field) == IS_ARRAY) { zephir_is_iterable(field, &_1$$3, &_0$$3, 0, 0, "phalcon/validation.zep", 264); for ( - ; zephir_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_1$$3, &_0$$3) + ; zend_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS + ; zend_hash_move_forward_ex(_1$$3, &_0$$3) ) { ZEPHIR_GET_HVALUE(singleField, _2$$3); zephir_update_property_array(this_ptr, SL("_filters"), singleField, filters TSRMLS_CC); @@ -28061,11 +27707,11 @@ static PHP_METHOD(Phalcon_Validation, getDefaultMessage) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &type_param); - if (unlikely(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'type' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(type_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(type_param) == IS_STRING)) { zephir_get_strval(type, type_param); } else { ZEPHIR_INIT_VAR(type); @@ -28144,7 +27790,7 @@ static PHP_METHOD(Phalcon_Validation, appendMessage) { ZEPHIR_CALL_METHOD(NULL, messages, "__construct", NULL, 3); zephir_check_call_status(); } - ZEPHIR_CALL_METHOD(NULL, messages, "appendmessage", NULL, 463, message); + ZEPHIR_CALL_METHOD(NULL, messages, "appendmessage", NULL, 462, message); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_messages"), messages TSRMLS_CC); RETURN_THIS(); @@ -28323,11 +27969,11 @@ static PHP_METHOD(Phalcon_Validation, preChecking) { if (Z_TYPE_P(field) == IS_ARRAY) { zephir_is_iterable(field, &_1$$3, &_0$$3, 0, 0, "phalcon/validation.zep", 590); for ( - ; zephir_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_1$$3, &_0$$3) + ; zend_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS + ; zend_hash_move_forward_ex(_1$$3, &_0$$3) ) { ZEPHIR_GET_HVALUE(singleField, _2$$3); - ZEPHIR_CALL_METHOD(&result, this_ptr, "prechecking", &_3, 464, singleField, validator); + ZEPHIR_CALL_METHOD(&result, this_ptr, "prechecking", &_3, 463, singleField, validator); zephir_check_call_status(); if (zephir_is_true(result)) { RETURN_CCTOR(result); @@ -28352,8 +27998,8 @@ static PHP_METHOD(Phalcon_Validation, preChecking) { if (Z_TYPE_P(allowEmpty) == IS_ARRAY) { zephir_is_iterable(allowEmpty, &_7$$9, &_6$$9, 0, 0, "phalcon/validation.zep", 604); for ( - ; zephir_hash_get_current_data_ex(_7$$9, (void**) &_8$$9, &_6$$9) == SUCCESS - ; zephir_hash_move_forward_ex(_7$$9, &_6$$9) + ; zend_hash_get_current_data_ex(_7$$9, (void**) &_8$$9, &_6$$9) == SUCCESS + ; zend_hash_move_forward_ex(_7$$9, &_6$$9) ) { ZEPHIR_GET_HVALUE(emptyValue, _8$$9); if (ZEPHIR_IS_IDENTICAL(emptyValue, value)) { @@ -28500,7 +28146,7 @@ static PHP_METHOD(Phalcon_Version, _getVersion) { ZVAL_LONG(_0, 1); zephir_array_fast_append(return_value, _0); ZEPHIR_INIT_NVAR(_0); - ZVAL_LONG(_0, 1); + ZVAL_LONG(_0, 2); zephir_array_fast_append(return_value, _0); ZEPHIR_INIT_NVAR(_0); ZVAL_LONG(_0, 4); @@ -28569,7 +28215,7 @@ static PHP_METHOD(Phalcon_Version, get) { zephir_array_fetch_long(&specialNumber, version, 4, PH_NOISY, "phalcon/version.zep", 143 TSRMLS_CC); ZEPHIR_INIT_VAR(result); ZEPHIR_CONCAT_VSVSVS(result, major, ".", medium, ".", minor, " "); - ZEPHIR_CALL_STATIC(&suffix, "_getspecial", &_0, 473, special); + ZEPHIR_CALL_STATIC(&suffix, "_getspecial", &_0, 472, special); zephir_check_call_status(); if (!ZEPHIR_IS_STRING(suffix, "")) { ZEPHIR_INIT_VAR(_1$$3); @@ -28636,7 +28282,7 @@ static PHP_METHOD(Phalcon_Version, getPart) { } if (part == 3) { zephir_array_fetch_long(&_1$$4, version, 3, PH_NOISY | PH_READONLY, "phalcon/version.zep", 204 TSRMLS_CC); - ZEPHIR_CALL_STATIC(&result, "_getspecial", &_0, 473, _1$$4); + ZEPHIR_CALL_STATIC(&result, "_getspecial", &_0, 472, _1$$4); zephir_check_call_status(); break; } @@ -28878,11 +28524,11 @@ static PHP_METHOD(Phalcon_Acl_Resource, __construct) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &name_param, &description_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -29007,11 +28653,11 @@ static PHP_METHOD(Phalcon_Acl_Role, __construct) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &name_param, &description_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -29227,8 +28873,8 @@ static PHP_METHOD(Phalcon_Acl_Adapter_Memory, addInherit) { zephir_array_fetch(&_5$$6, _4$$6, roleInheritName, PH_NOISY | PH_READONLY, "phalcon/acl/adapter/memory.zep", 240 TSRMLS_CC); zephir_is_iterable(_5$$6, &_7$$6, &_6$$6, 0, 0, "phalcon/acl/adapter/memory.zep", 243); for ( - ; zephir_hash_get_current_data_ex(_7$$6, (void**) &_8$$6, &_6$$6) == SUCCESS - ; zephir_hash_move_forward_ex(_7$$6, &_6$$6) + ; zend_hash_get_current_data_ex(_7$$6, (void**) &_8$$6, &_6$$6) == SUCCESS + ; zend_hash_move_forward_ex(_7$$6, &_6$$6) ) { ZEPHIR_GET_HVALUE(deepInheritName, _8$$6); ZEPHIR_CALL_METHOD(NULL, this_ptr, "addinherit", &_9, 80, roleName, deepInheritName); @@ -29366,8 +29012,8 @@ static PHP_METHOD(Phalcon_Acl_Adapter_Memory, addResourceAccess) { if (Z_TYPE_P(accessList) == IS_ARRAY) { zephir_is_iterable(accessList, &_5$$5, &_4$$5, 0, 0, "phalcon/acl/adapter/memory.zep", 363); for ( - ; zephir_hash_get_current_data_ex(_5$$5, (void**) &_6$$5, &_4$$5) == SUCCESS - ; zephir_hash_move_forward_ex(_5$$5, &_4$$5) + ; zend_hash_get_current_data_ex(_5$$5, (void**) &_6$$5, &_4$$5) == SUCCESS + ; zend_hash_move_forward_ex(_5$$5, &_4$$5) ) { ZEPHIR_GET_HVALUE(accessName, _6$$5); ZEPHIR_INIT_NVAR(accessKey); @@ -29409,8 +29055,8 @@ static PHP_METHOD(Phalcon_Acl_Adapter_Memory, dropResourceAccess) { if (Z_TYPE_P(accessList) == IS_ARRAY) { zephir_is_iterable(accessList, &_1$$3, &_0$$3, 0, 0, "phalcon/acl/adapter/memory.zep", 389); for ( - ; zephir_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_1$$3, &_0$$3) + ; zend_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS + ; zend_hash_move_forward_ex(_1$$3, &_0$$3) ) { ZEPHIR_GET_HVALUE(accessName, _2$$3); ZEPHIR_INIT_NVAR(accessKey); @@ -29483,8 +29129,8 @@ static PHP_METHOD(Phalcon_Acl_Adapter_Memory, _allowOrDeny) { if (Z_TYPE_P(access) == IS_ARRAY) { zephir_is_iterable(access, &_7$$5, &_6$$5, 0, 0, "phalcon/acl/adapter/memory.zep", 425); for ( - ; zephir_hash_get_current_data_ex(_7$$5, (void**) &_8$$5, &_6$$5) == SUCCESS - ; zephir_hash_move_forward_ex(_7$$5, &_6$$5) + ; zend_hash_get_current_data_ex(_7$$5, (void**) &_8$$5, &_6$$5) == SUCCESS + ; zend_hash_move_forward_ex(_7$$5, &_6$$5) ) { ZEPHIR_GET_HVALUE(accessName, _8$$5); ZEPHIR_INIT_NVAR(accessKey); @@ -29503,8 +29149,8 @@ static PHP_METHOD(Phalcon_Acl_Adapter_Memory, _allowOrDeny) { } zephir_is_iterable(access, &_12$$5, &_11$$5, 0, 0, "phalcon/acl/adapter/memory.zep", 434); for ( - ; zephir_hash_get_current_data_ex(_12$$5, (void**) &_13$$5, &_11$$5) == SUCCESS - ; zephir_hash_move_forward_ex(_12$$5, &_11$$5) + ; zend_hash_get_current_data_ex(_12$$5, (void**) &_13$$5, &_11$$5) == SUCCESS + ; zend_hash_move_forward_ex(_12$$5, &_11$$5) ) { ZEPHIR_GET_HVALUE(accessName, _13$$5); ZEPHIR_INIT_NVAR(accessKey); @@ -29571,8 +29217,8 @@ static PHP_METHOD(Phalcon_Acl_Adapter_Memory, allow) { ZEPHIR_INIT_VAR(_3$$4); zephir_is_iterable(_2$$4, &_5$$4, &_4$$4, 0, 0, "phalcon/acl/adapter/memory.zep", 486); for ( - ; zephir_hash_get_current_data_ex(_5$$4, (void**) &_6$$4, &_4$$4) == SUCCESS - ; zephir_hash_move_forward_ex(_5$$4, &_4$$4) + ; zend_hash_get_current_data_ex(_5$$4, (void**) &_6$$4, &_4$$4) == SUCCESS + ; zend_hash_move_forward_ex(_5$$4, &_4$$4) ) { ZEPHIR_GET_HMKEY(innerRoleName, _5$$4, _4$$4); ZEPHIR_GET_HVALUE(_3$$4, _6$$4); @@ -29615,8 +29261,8 @@ static PHP_METHOD(Phalcon_Acl_Adapter_Memory, deny) { ZEPHIR_INIT_VAR(_2$$4); zephir_is_iterable(_1$$4, &_4$$4, &_3$$4, 0, 0, "phalcon/acl/adapter/memory.zep", 519); for ( - ; zephir_hash_get_current_data_ex(_4$$4, (void**) &_5$$4, &_3$$4) == SUCCESS - ; zephir_hash_move_forward_ex(_4$$4, &_3$$4) + ; zend_hash_get_current_data_ex(_4$$4, (void**) &_5$$4, &_3$$4) == SUCCESS + ; zend_hash_move_forward_ex(_4$$4, &_3$$4) ) { ZEPHIR_GET_HMKEY(innerRoleName, _4$$4, _3$$4); ZEPHIR_GET_HVALUE(_2$$4, _5$$4); @@ -29732,8 +29378,8 @@ static PHP_METHOD(Phalcon_Acl_Adapter_Memory, isAllowed) { if (Z_TYPE_P(inheritedRoles) == IS_ARRAY) { zephir_is_iterable(inheritedRoles, &_7$$17, &_6$$17, 0, 0, "phalcon/acl/adapter/memory.zep", 619); for ( - ; zephir_hash_get_current_data_ex(_7$$17, (void**) &_8$$17, &_6$$17) == SUCCESS - ; zephir_hash_move_forward_ex(_7$$17, &_6$$17) + ; zend_hash_get_current_data_ex(_7$$17, (void**) &_8$$17, &_6$$17) == SUCCESS + ; zend_hash_move_forward_ex(_7$$17, &_6$$17) ) { ZEPHIR_GET_HVALUE(inheritedRole, _8$$17); ZEPHIR_INIT_NVAR(accessKey); @@ -29760,8 +29406,8 @@ static PHP_METHOD(Phalcon_Acl_Adapter_Memory, isAllowed) { if (Z_TYPE_P(inheritedRoles) == IS_ARRAY) { zephir_is_iterable(inheritedRoles, &_10$$23, &_9$$23, 0, 0, "phalcon/acl/adapter/memory.zep", 650); for ( - ; zephir_hash_get_current_data_ex(_10$$23, (void**) &_11$$23, &_9$$23) == SUCCESS - ; zephir_hash_move_forward_ex(_10$$23, &_9$$23) + ; zend_hash_get_current_data_ex(_10$$23, (void**) &_11$$23, &_9$$23) == SUCCESS + ; zend_hash_move_forward_ex(_10$$23, &_9$$23) ) { ZEPHIR_GET_HVALUE(inheritedRole, _11$$23); ZEPHIR_INIT_NVAR(accessKey); @@ -29789,8 +29435,8 @@ static PHP_METHOD(Phalcon_Acl_Adapter_Memory, isAllowed) { if (Z_TYPE_P(inheritedRoles) == IS_ARRAY) { zephir_is_iterable(inheritedRoles, &_13$$29, &_12$$29, 0, 0, "phalcon/acl/adapter/memory.zep", 681); for ( - ; zephir_hash_get_current_data_ex(_13$$29, (void**) &_14$$29, &_12$$29) == SUCCESS - ; zephir_hash_move_forward_ex(_13$$29, &_12$$29) + ; zend_hash_get_current_data_ex(_13$$29, (void**) &_14$$29, &_12$$29) == SUCCESS + ; zend_hash_move_forward_ex(_13$$29, &_12$$29) ) { ZEPHIR_GET_HVALUE(inheritedRole, _14$$29); ZEPHIR_INIT_NVAR(accessKey); @@ -29844,8 +29490,8 @@ static PHP_METHOD(Phalcon_Acl_Adapter_Memory, isAllowed) { ZEPHIR_CPY_WRT(userParametersSizeShouldBe, parameterNumber); zephir_is_iterable(reflectionParameters, &_20$$34, &_19$$34, 0, 0, "phalcon/acl/adapter/memory.zep", 746); for ( - ; zephir_hash_get_current_data_ex(_20$$34, (void**) &_21$$34, &_19$$34) == SUCCESS - ; zephir_hash_move_forward_ex(_20$$34, &_19$$34) + ; zend_hash_get_current_data_ex(_20$$34, (void**) &_21$$34, &_19$$34) == SUCCESS + ; zend_hash_move_forward_ex(_20$$34, &_19$$34) ) { ZEPHIR_GET_HVALUE(reflectionParameter, _21$$34); ZEPHIR_CALL_METHOD(&reflectionClass, reflectionParameter, "getclass", NULL, 0); @@ -30161,8 +29807,8 @@ static PHP_METHOD(Phalcon_Annotations_Adapter, getMethod) { if (Z_TYPE_P(methods) == IS_ARRAY) { zephir_is_iterable(methods, &_1$$4, &_0$$4, 0, 0, "phalcon/annotations/adapter.zep", 155); for ( - ; zephir_hash_get_current_data_ex(_1$$4, (void**) &_2$$4, &_0$$4) == SUCCESS - ; zephir_hash_move_forward_ex(_1$$4, &_0$$4) + ; zend_hash_get_current_data_ex(_1$$4, (void**) &_2$$4, &_0$$4) == SUCCESS + ; zend_hash_move_forward_ex(_1$$4, &_0$$4) ) { ZEPHIR_GET_HMKEY(methodKey, _1$$4, _0$$4); ZEPHIR_GET_HVALUE(method, _2$$4); @@ -30315,8 +29961,8 @@ static PHP_METHOD(Phalcon_Annotations_Annotation, __construct) { array_init(arguments); zephir_is_iterable(exprArguments, &_2$$3, &_1$$3, 0, 0, "phalcon/annotations/annotation.zep", 73); for ( - ; zephir_hash_get_current_data_ex(_2$$3, (void**) &_3$$3, &_1$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_2$$3, &_1$$3) + ; zend_hash_get_current_data_ex(_2$$3, (void**) &_3$$3, &_1$$3) == SUCCESS + ; zend_hash_move_forward_ex(_2$$3, &_1$$3) ) { ZEPHIR_GET_HVALUE(argument, _3$$3); zephir_array_fetch_string(&_4$$4, argument, SL("expr"), PH_NOISY | PH_READONLY, "phalcon/annotations/annotation.zep", 66 TSRMLS_CC); @@ -30387,8 +30033,8 @@ static PHP_METHOD(Phalcon_Annotations_Annotation, getExpression) { zephir_array_fetch_string(&_0$$7, expr, SL("items"), PH_NOISY | PH_READONLY, "phalcon/annotations/annotation.zep", 120 TSRMLS_CC); zephir_is_iterable(_0$$7, &_2$$7, &_1$$7, 0, 0, "phalcon/annotations/annotation.zep", 128); for ( - ; zephir_hash_get_current_data_ex(_2$$7, (void**) &_3$$7, &_1$$7) == SUCCESS - ; zephir_hash_move_forward_ex(_2$$7, &_1$$7) + ; zend_hash_get_current_data_ex(_2$$7, (void**) &_3$$7, &_1$$7) == SUCCESS + ; zend_hash_move_forward_ex(_2$$7, &_1$$7) ) { ZEPHIR_GET_HVALUE(item, _3$$7); zephir_array_fetch_string(&_4$$8, item, SL("expr"), PH_NOISY | PH_READONLY, "phalcon/annotations/annotation.zep", 121 TSRMLS_CC); @@ -30486,11 +30132,11 @@ static PHP_METHOD(Phalcon_Annotations_Annotation, getNamedArgument) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -30515,11 +30161,11 @@ static PHP_METHOD(Phalcon_Annotations_Annotation, getNamedParameter) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -30587,8 +30233,8 @@ static PHP_METHOD(Phalcon_Annotations_Collection, __construct) { if (Z_TYPE_P(reflectionData) == IS_ARRAY) { zephir_is_iterable(reflectionData, &_2$$4, &_1$$4, 0, 0, "phalcon/annotations/collection.zep", 68); for ( - ; zephir_hash_get_current_data_ex(_2$$4, (void**) &_3$$4, &_1$$4) == SUCCESS - ; zephir_hash_move_forward_ex(_2$$4, &_1$$4) + ; zend_hash_get_current_data_ex(_2$$4, (void**) &_3$$4, &_1$$4) == SUCCESS + ; zend_hash_move_forward_ex(_2$$4, &_1$$4) ) { ZEPHIR_GET_HVALUE(annotationData, _3$$4); ZEPHIR_INIT_NVAR(_4$$5); @@ -30692,8 +30338,8 @@ static PHP_METHOD(Phalcon_Annotations_Collection, get) { if (Z_TYPE_P(annotations) == IS_ARRAY) { zephir_is_iterable(annotations, &_1$$3, &_0$$3, 0, 0, "phalcon/annotations/collection.zep", 147); for ( - ; zephir_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_1$$3, &_0$$3) + ; zend_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS + ; zend_hash_move_forward_ex(_1$$3, &_0$$3) ) { ZEPHIR_GET_HVALUE(annotation, _2$$3); ZEPHIR_CALL_METHOD(&_3$$4, annotation, "getname", NULL, 0); @@ -30736,8 +30382,8 @@ static PHP_METHOD(Phalcon_Annotations_Collection, getAll) { if (Z_TYPE_P(annotations) == IS_ARRAY) { zephir_is_iterable(annotations, &_1$$3, &_0$$3, 0, 0, "phalcon/annotations/collection.zep", 167); for ( - ; zephir_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_1$$3, &_0$$3) + ; zend_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS + ; zend_hash_move_forward_ex(_1$$3, &_0$$3) ) { ZEPHIR_GET_HVALUE(annotation, _2$$3); ZEPHIR_CALL_METHOD(&_3$$4, annotation, "getname", NULL, 0); @@ -30770,8 +30416,8 @@ static PHP_METHOD(Phalcon_Annotations_Collection, has) { if (Z_TYPE_P(annotations) == IS_ARRAY) { zephir_is_iterable(annotations, &_1$$3, &_0$$3, 0, 0, "phalcon/annotations/collection.zep", 186); for ( - ; zephir_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_1$$3, &_0$$3) + ; zend_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS + ; zend_hash_move_forward_ex(_1$$3, &_0$$3) ) { ZEPHIR_GET_HVALUE(annotation, _2$$3); ZEPHIR_CALL_METHOD(&_3$$4, annotation, "getname", NULL, 0); @@ -33185,8 +32831,8 @@ static PHP_METHOD(Phalcon_Annotations_Reader, parse) { array_init(annotationsProperties); zephir_is_iterable(properties, &_3$$5, &_2$$5, 0, 0, "phalcon/annotations/reader.zep", 96); for ( - ; zephir_hash_get_current_data_ex(_3$$5, (void**) &_4$$5, &_2$$5) == SUCCESS - ; zephir_hash_move_forward_ex(_3$$5, &_2$$5) + ; zend_hash_get_current_data_ex(_3$$5, (void**) &_4$$5, &_2$$5) == SUCCESS + ; zend_hash_move_forward_ex(_3$$5, &_2$$5) ) { ZEPHIR_GET_HVALUE(property, _4$$5); ZEPHIR_CALL_METHOD(&comment, property, "getdoccomment", NULL, 0); @@ -33217,8 +32863,8 @@ static PHP_METHOD(Phalcon_Annotations_Reader, parse) { array_init(annotationsMethods); zephir_is_iterable(methods, &_9$$10, &_8$$10, 0, 0, "phalcon/annotations/reader.zep", 126); for ( - ; zephir_hash_get_current_data_ex(_9$$10, (void**) &_10$$10, &_8$$10) == SUCCESS - ; zephir_hash_move_forward_ex(_9$$10, &_8$$10) + ; zend_hash_get_current_data_ex(_9$$10, (void**) &_10$$10, &_8$$10) == SUCCESS + ; zend_hash_move_forward_ex(_9$$10, &_8$$10) ) { ZEPHIR_GET_HVALUE(method, _10$$10); ZEPHIR_CALL_METHOD(&comment, method, "getdoccomment", NULL, 0); @@ -33391,8 +33037,8 @@ static PHP_METHOD(Phalcon_Annotations_Reflection, getMethodsAnnotations) { array_init(collections); zephir_is_iterable(reflectionMethods, &_2$$5, &_1$$5, 0, 0, "phalcon/annotations/reflection.zep", 104); for ( - ; zephir_hash_get_current_data_ex(_2$$5, (void**) &_3$$5, &_1$$5) == SUCCESS - ; zephir_hash_move_forward_ex(_2$$5, &_1$$5) + ; zend_hash_get_current_data_ex(_2$$5, (void**) &_3$$5, &_1$$5) == SUCCESS + ; zend_hash_move_forward_ex(_2$$5, &_1$$5) ) { ZEPHIR_GET_HMKEY(methodName, _2$$5, _1$$5); ZEPHIR_GET_HVALUE(reflectionMethod, _3$$5); @@ -33438,8 +33084,8 @@ static PHP_METHOD(Phalcon_Annotations_Reflection, getPropertiesAnnotations) { array_init(collections); zephir_is_iterable(reflectionProperties, &_2$$5, &_1$$5, 0, 0, "phalcon/annotations/reflection.zep", 131); for ( - ; zephir_hash_get_current_data_ex(_2$$5, (void**) &_3$$5, &_1$$5) == SUCCESS - ; zephir_hash_move_forward_ex(_2$$5, &_1$$5) + ; zend_hash_get_current_data_ex(_2$$5, (void**) &_3$$5, &_1$$5) == SUCCESS + ; zend_hash_move_forward_ex(_2$$5, &_1$$5) ) { ZEPHIR_GET_HMKEY(property, _2$$5, _1$$5); ZEPHIR_GET_HVALUE(reflectionProperty, _3$$5); @@ -34558,11 +34204,11 @@ static PHP_METHOD(Phalcon_Annotations_Adapter_Apc, read) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &key_param); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { ZEPHIR_INIT_VAR(key); @@ -34590,11 +34236,11 @@ static PHP_METHOD(Phalcon_Annotations_Adapter_Apc, write) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &key_param, &data); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { ZEPHIR_INIT_VAR(key); @@ -34690,11 +34336,11 @@ static PHP_METHOD(Phalcon_Annotations_Adapter_Files, write) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &key_param, &data); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { ZEPHIR_INIT_VAR(key); @@ -34752,11 +34398,11 @@ static PHP_METHOD(Phalcon_Annotations_Adapter_Memory, read) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &key_param); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { ZEPHIR_INIT_VAR(key); @@ -34782,11 +34428,11 @@ static PHP_METHOD(Phalcon_Annotations_Adapter_Memory, write) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &key_param, &data); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { ZEPHIR_INIT_VAR(key); @@ -34828,11 +34474,11 @@ static PHP_METHOD(Phalcon_Annotations_Adapter_Xcache, read) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &key_param); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { ZEPHIR_INIT_VAR(key); @@ -34866,11 +34512,11 @@ static PHP_METHOD(Phalcon_Annotations_Adapter_Xcache, write) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &key_param, &data); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { ZEPHIR_INIT_VAR(key); @@ -35086,11 +34732,11 @@ static PHP_METHOD(Phalcon_Assets_Collection, addCss) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 3, &path_param, &local, &filter_param, &attributes); - if (unlikely(Z_TYPE_P(path_param) != IS_STRING && Z_TYPE_P(path_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(path_param) != IS_STRING && Z_TYPE_P(path_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'path' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(path_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(path_param) == IS_STRING)) { zephir_get_strval(path, path_param); } else { ZEPHIR_INIT_VAR(path); @@ -35188,11 +34834,11 @@ static PHP_METHOD(Phalcon_Assets_Collection, addJs) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 3, &path_param, &local, &filter_param, &attributes); - if (unlikely(Z_TYPE_P(path_param) != IS_STRING && Z_TYPE_P(path_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(path_param) != IS_STRING && Z_TYPE_P(path_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'path' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(path_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(path_param) == IS_STRING)) { zephir_get_strval(path, path_param); } else { ZEPHIR_INIT_VAR(path); @@ -35350,11 +34996,11 @@ static PHP_METHOD(Phalcon_Assets_Collection, setTargetPath) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &targetPath_param); - if (unlikely(Z_TYPE_P(targetPath_param) != IS_STRING && Z_TYPE_P(targetPath_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(targetPath_param) != IS_STRING && Z_TYPE_P(targetPath_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'targetPath' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(targetPath_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(targetPath_param) == IS_STRING)) { zephir_get_strval(targetPath, targetPath_param); } else { ZEPHIR_INIT_VAR(targetPath); @@ -35375,11 +35021,11 @@ static PHP_METHOD(Phalcon_Assets_Collection, setSourcePath) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &sourcePath_param); - if (unlikely(Z_TYPE_P(sourcePath_param) != IS_STRING && Z_TYPE_P(sourcePath_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(sourcePath_param) != IS_STRING && Z_TYPE_P(sourcePath_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'sourcePath' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(sourcePath_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(sourcePath_param) == IS_STRING)) { zephir_get_strval(sourcePath, sourcePath_param); } else { ZEPHIR_INIT_VAR(sourcePath); @@ -35400,11 +35046,11 @@ static PHP_METHOD(Phalcon_Assets_Collection, setTargetUri) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &targetUri_param); - if (unlikely(Z_TYPE_P(targetUri_param) != IS_STRING && Z_TYPE_P(targetUri_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(targetUri_param) != IS_STRING && Z_TYPE_P(targetUri_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'targetUri' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(targetUri_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(targetUri_param) == IS_STRING)) { zephir_get_strval(targetUri, targetUri_param); } else { ZEPHIR_INIT_VAR(targetUri); @@ -35425,11 +35071,11 @@ static PHP_METHOD(Phalcon_Assets_Collection, setPrefix) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &prefix_param); - if (unlikely(Z_TYPE_P(prefix_param) != IS_STRING && Z_TYPE_P(prefix_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(prefix_param) != IS_STRING && Z_TYPE_P(prefix_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'prefix' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(prefix_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(prefix_param) == IS_STRING)) { zephir_get_strval(prefix, prefix_param); } else { ZEPHIR_INIT_VAR(prefix); @@ -35449,7 +35095,7 @@ static PHP_METHOD(Phalcon_Assets_Collection, setLocal) { zephir_fetch_params(0, 1, 0, &local_param); - if (unlikely(Z_TYPE_P(local_param) != IS_BOOL)) { + if (UNEXPECTED(Z_TYPE_P(local_param) != IS_BOOL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'local' must be a bool") TSRMLS_CC); RETURN_NULL(); } @@ -35502,7 +35148,7 @@ static PHP_METHOD(Phalcon_Assets_Collection, setTargetLocal) { zephir_fetch_params(0, 1, 0, &targetLocal_param); - if (unlikely(Z_TYPE_P(targetLocal_param) != IS_BOOL)) { + if (UNEXPECTED(Z_TYPE_P(targetLocal_param) != IS_BOOL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'targetLocal' must be a bool") TSRMLS_CC); RETURN_NULL(); } @@ -35546,11 +35192,11 @@ static PHP_METHOD(Phalcon_Assets_Collection, getRealTargetPath) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &basePath_param); - if (unlikely(Z_TYPE_P(basePath_param) != IS_STRING && Z_TYPE_P(basePath_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(basePath_param) != IS_STRING && Z_TYPE_P(basePath_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'basePath' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(basePath_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(basePath_param) == IS_STRING)) { zephir_get_strval(basePath, basePath_param); } else { ZEPHIR_INIT_VAR(basePath); @@ -35897,11 +35543,11 @@ static PHP_METHOD(Phalcon_Assets_Manager, addCss) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 3, &path_param, &local, &filter, &attributes); - if (unlikely(Z_TYPE_P(path_param) != IS_STRING && Z_TYPE_P(path_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(path_param) != IS_STRING && Z_TYPE_P(path_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'path' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(path_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(path_param) == IS_STRING)) { zephir_get_strval(path, path_param); } else { ZEPHIR_INIT_VAR(path); @@ -35971,11 +35617,11 @@ static PHP_METHOD(Phalcon_Assets_Manager, addJs) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 3, &path_param, &local, &filter, &attributes); - if (unlikely(Z_TYPE_P(path_param) != IS_STRING && Z_TYPE_P(path_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(path_param) != IS_STRING && Z_TYPE_P(path_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'path' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(path_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(path_param) == IS_STRING)) { zephir_get_strval(path, path_param); } else { ZEPHIR_INIT_VAR(path); @@ -36045,11 +35691,11 @@ static PHP_METHOD(Phalcon_Assets_Manager, addResourceByType) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &type_param, &resource); - if (unlikely(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'type' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(type_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(type_param) == IS_STRING)) { zephir_get_strval(type, type_param); } else { ZEPHIR_INIT_VAR(type); @@ -36083,11 +35729,11 @@ static PHP_METHOD(Phalcon_Assets_Manager, addInlineCodeByType) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &type_param, &code); - if (unlikely(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'type' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(type_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(type_param) == IS_STRING)) { zephir_get_strval(type, type_param); } else { ZEPHIR_INIT_VAR(type); @@ -36156,11 +35802,11 @@ static PHP_METHOD(Phalcon_Assets_Manager, set) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &id_param, &collection); - if (unlikely(Z_TYPE_P(id_param) != IS_STRING && Z_TYPE_P(id_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(id_param) != IS_STRING && Z_TYPE_P(id_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'id' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(id_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(id_param) == IS_STRING)) { zephir_get_strval(id, id_param); } else { ZEPHIR_INIT_VAR(id); @@ -36181,11 +35827,11 @@ static PHP_METHOD(Phalcon_Assets_Manager, get) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &id_param); - if (unlikely(Z_TYPE_P(id_param) != IS_STRING && Z_TYPE_P(id_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(id_param) != IS_STRING && Z_TYPE_P(id_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'id' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(id_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(id_param) == IS_STRING)) { zephir_get_strval(id, id_param); } else { ZEPHIR_INIT_VAR(id); @@ -36358,8 +36004,8 @@ static PHP_METHOD(Phalcon_Assets_Manager, output) { } zephir_is_iterable(resources, &_6, &_5, 0, 0, "phalcon/assets/manager.zep", 638); for ( - ; zephir_hash_get_current_data_ex(_6, (void**) &_7, &_5) == SUCCESS - ; zephir_hash_move_forward_ex(_6, &_5) + ; zend_hash_get_current_data_ex(_6, (void**) &_7, &_5) == SUCCESS + ; zend_hash_move_forward_ex(_6, &_5) ) { ZEPHIR_GET_HVALUE(resource, _7); filterNeeded = 0; @@ -36461,8 +36107,8 @@ static PHP_METHOD(Phalcon_Assets_Manager, output) { if (ZEPHIR_IS_TRUE(mustFilter)) { zephir_is_iterable(filters, &_16$$31, &_15$$31, 0, 0, "phalcon/assets/manager.zep", 559); for ( - ; zephir_hash_get_current_data_ex(_16$$31, (void**) &_17$$31, &_15$$31) == SUCCESS - ; zephir_hash_move_forward_ex(_16$$31, &_15$$31) + ; zend_hash_get_current_data_ex(_16$$31, (void**) &_17$$31, &_15$$31) == SUCCESS + ; zend_hash_move_forward_ex(_16$$31, &_15$$31) ) { ZEPHIR_GET_HVALUE(filter, _17$$31); if (Z_TYPE_P(filter) != IS_OBJECT) { @@ -36591,8 +36237,8 @@ static PHP_METHOD(Phalcon_Assets_Manager, outputInline) { if (zephir_fast_count_int(codes TSRMLS_CC)) { zephir_is_iterable(codes, &_1$$3, &_0$$3, 0, 0, "phalcon/assets/manager.zep", 744); for ( - ; zephir_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_1$$3, &_0$$3) + ; zend_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS + ; zend_hash_move_forward_ex(_1$$3, &_0$$3) ) { ZEPHIR_GET_HVALUE(code, _2$$3); ZEPHIR_CALL_METHOD(&attributes, code, "getattributes", NULL, 0); @@ -36601,8 +36247,8 @@ static PHP_METHOD(Phalcon_Assets_Manager, outputInline) { zephir_check_call_status(); zephir_is_iterable(filters, &_4$$4, &_3$$4, 0, 0, "phalcon/assets/manager.zep", 737); for ( - ; zephir_hash_get_current_data_ex(_4$$4, (void**) &_5$$4, &_3$$4) == SUCCESS - ; zephir_hash_move_forward_ex(_4$$4, &_3$$4) + ; zend_hash_get_current_data_ex(_4$$4, (void**) &_5$$4, &_3$$4) == SUCCESS + ; zend_hash_move_forward_ex(_4$$4, &_3$$4) ) { ZEPHIR_GET_HVALUE(filter, _5$$4); if (Z_TYPE_P(filter) != IS_OBJECT) { @@ -36807,11 +36453,11 @@ static PHP_METHOD(Phalcon_Assets_Manager, exists) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &id_param); - if (unlikely(Z_TYPE_P(id_param) != IS_STRING && Z_TYPE_P(id_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(id_param) != IS_STRING && Z_TYPE_P(id_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'id' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(id_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(id_param) == IS_STRING)) { zephir_get_strval(id, id_param); } else { ZEPHIR_INIT_VAR(id); @@ -37273,11 +36919,11 @@ static PHP_METHOD(Phalcon_Assets_Filters_Cssmin, filter) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &content_param); - if (unlikely(Z_TYPE_P(content_param) != IS_STRING && Z_TYPE_P(content_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(content_param) != IS_STRING && Z_TYPE_P(content_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'content' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(content_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(content_param) == IS_STRING)) { zephir_get_strval(content, content_param); } else { ZEPHIR_INIT_VAR(content); @@ -37607,11 +37253,11 @@ static PHP_METHOD(Phalcon_Assets_Filters_Jsmin, filter) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &content_param); - if (unlikely(Z_TYPE_P(content_param) != IS_STRING && Z_TYPE_P(content_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(content_param) != IS_STRING && Z_TYPE_P(content_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'content' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(content_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(content_param) == IS_STRING)) { zephir_get_strval(content, content_param); } else { ZEPHIR_INIT_VAR(content); @@ -38062,11 +37708,11 @@ static PHP_METHOD(Phalcon_Assets_Filters_None, filter) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &content_param); - if (unlikely(Z_TYPE_P(content_param) != IS_STRING && Z_TYPE_P(content_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(content_param) != IS_STRING && Z_TYPE_P(content_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'content' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(content_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(content_param) == IS_STRING)) { zephir_get_strval(content, content_param); } else { ZEPHIR_INIT_VAR(content); @@ -38231,11 +37877,11 @@ static PHP_METHOD(Phalcon_Assets_Resource_Css, __construct) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 3, &path_param, &local_param, &filter_param, &attributes); - if (unlikely(Z_TYPE_P(path_param) != IS_STRING && Z_TYPE_P(path_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(path_param) != IS_STRING && Z_TYPE_P(path_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'path' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(path_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(path_param) == IS_STRING)) { zephir_get_strval(path, path_param); } else { ZEPHIR_INIT_VAR(path); @@ -38697,8 +38343,8 @@ static PHP_METHOD(Phalcon_Cache_Multiple, get) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_backends"), PH_NOISY_CC); zephir_is_iterable(_0, &_2, &_1, 0, 0, "phalcon/cache/multiple.zep", 133); for ( - ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS - ; zephir_hash_move_forward_ex(_2, &_1) + ; zend_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS + ; zend_hash_move_forward_ex(_2, &_1) ) { ZEPHIR_GET_HVALUE(backend, _3); ZEPHIR_CALL_METHOD(&content, backend, "get", NULL, 0, keyName, lifetime); @@ -38729,8 +38375,8 @@ static PHP_METHOD(Phalcon_Cache_Multiple, start) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_backends"), PH_NOISY_CC); zephir_is_iterable(_0, &_2, &_1, 0, 0, "phalcon/cache/multiple.zep", 149); for ( - ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS - ; zephir_hash_move_forward_ex(_2, &_1) + ; zend_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS + ; zend_hash_move_forward_ex(_2, &_1) ) { ZEPHIR_GET_HVALUE(backend, _3); ZEPHIR_CALL_METHOD(NULL, backend, "start", NULL, 0, keyName, lifetime); @@ -38767,8 +38413,8 @@ static PHP_METHOD(Phalcon_Cache_Multiple, save) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_backends"), PH_NOISY_CC); zephir_is_iterable(_0, &_2, &_1, 0, 0, "phalcon/cache/multiple.zep", 166); for ( - ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS - ; zephir_hash_move_forward_ex(_2, &_1) + ; zend_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS + ; zend_hash_move_forward_ex(_2, &_1) ) { ZEPHIR_GET_HVALUE(backend, _3); ZEPHIR_CALL_METHOD(NULL, backend, "save", NULL, 0, keyName, content, lifetime, stopBuffer); @@ -38793,8 +38439,8 @@ static PHP_METHOD(Phalcon_Cache_Multiple, delete) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_backends"), PH_NOISY_CC); zephir_is_iterable(_0, &_2, &_1, 0, 0, "phalcon/cache/multiple.zep", 182); for ( - ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS - ; zephir_hash_move_forward_ex(_2, &_1) + ; zend_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS + ; zend_hash_move_forward_ex(_2, &_1) ) { ZEPHIR_GET_HVALUE(backend, _3); ZEPHIR_CALL_METHOD(NULL, backend, "delete", NULL, 0, keyName); @@ -38825,8 +38471,8 @@ static PHP_METHOD(Phalcon_Cache_Multiple, exists) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_backends"), PH_NOISY_CC); zephir_is_iterable(_0, &_2, &_1, 0, 0, "phalcon/cache/multiple.zep", 201); for ( - ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS - ; zephir_hash_move_forward_ex(_2, &_1) + ; zend_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS + ; zend_hash_move_forward_ex(_2, &_1) ) { ZEPHIR_GET_HVALUE(backend, _3); ZEPHIR_CALL_METHOD(&_4$$3, backend, "exists", NULL, 0, keyName, lifetime); @@ -38851,8 +38497,8 @@ static PHP_METHOD(Phalcon_Cache_Multiple, flush) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_backends"), PH_NOISY_CC); zephir_is_iterable(_0, &_2, &_1, 0, 0, "phalcon/cache/multiple.zep", 215); for ( - ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS - ; zephir_hash_move_forward_ex(_2, &_1) + ; zend_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS + ; zend_hash_move_forward_ex(_2, &_1) ) { ZEPHIR_GET_HVALUE(backend, _3); ZEPHIR_CALL_METHOD(NULL, backend, "flush", NULL, 0); @@ -39098,11 +38744,11 @@ static PHP_METHOD(Phalcon_Cache_Backend_Apc, delete) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &keyName_param); - if (unlikely(Z_TYPE_P(keyName_param) != IS_STRING && Z_TYPE_P(keyName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(keyName_param) != IS_STRING && Z_TYPE_P(keyName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'keyName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(keyName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(keyName_param) == IS_STRING)) { zephir_get_strval(keyName, keyName_param); } else { ZEPHIR_INIT_VAR(keyName); @@ -39567,7 +39213,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_File, queryKeys) { } ZEPHIR_CALL_METHOD(&_5$$5, item, "isdir", NULL, 0); zephir_check_call_status(); - if (likely(ZEPHIR_IS_FALSE_IDENTICAL(_5$$5))) { + if (EXPECTED(ZEPHIR_IS_FALSE_IDENTICAL(_5$$5))) { ZEPHIR_CALL_METHOD(&key, item, "getfilename", NULL, 0); zephir_check_call_status(); if (!(ZEPHIR_IS_EMPTY(prefix))) { @@ -39828,7 +39474,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_File, flush) { } ZEPHIR_CALL_METHOD(&_3$$4, item, "isfile", NULL, 0); zephir_check_call_status(); - if (likely(ZEPHIR_IS_TRUE(_3$$4))) { + if (EXPECTED(ZEPHIR_IS_TRUE(_3$$4))) { ZEPHIR_CALL_METHOD(&key, item, "getfilename", NULL, 0); zephir_check_call_status(); ZEPHIR_CALL_METHOD(&cacheFile, item, "getpathname", NULL, 0); @@ -40262,7 +39908,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_Libmemcached, queryKeys) { } ZEPHIR_CALL_METHOD(&keys, memcache, "get", NULL, 0, specialKey); zephir_check_call_status(); - if (unlikely(Z_TYPE_P(keys) != IS_ARRAY)) { + if (UNEXPECTED(Z_TYPE_P(keys) != IS_ARRAY)) { array_init(return_value); RETURN_MM(); } @@ -40271,8 +39917,8 @@ static PHP_METHOD(Phalcon_Cache_Backend_Libmemcached, queryKeys) { ZEPHIR_CPY_WRT(keys, _0); zephir_is_iterable(keys, &_2, &_1, 1, 0, "phalcon/cache/backend/libmemcached.zep", 363); for ( - ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS - ; zephir_hash_move_forward_ex(_2, &_1) + ; zend_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS + ; zend_hash_move_forward_ex(_2, &_1) ) { ZEPHIR_GET_HMKEY(idx, _2, _1); ZEPHIR_GET_HVALUE(key, _3); @@ -40456,14 +40102,14 @@ static PHP_METHOD(Phalcon_Cache_Backend_Libmemcached, flush) { } ZEPHIR_CALL_METHOD(&keys, memcache, "get", NULL, 0, specialKey); zephir_check_call_status(); - if (unlikely(Z_TYPE_P(keys) != IS_ARRAY)) { + if (UNEXPECTED(Z_TYPE_P(keys) != IS_ARRAY)) { RETURN_MM_BOOL(1); } ZEPHIR_INIT_VAR(_0); zephir_is_iterable(keys, &_2, &_1, 0, 0, "phalcon/cache/backend/libmemcached.zep", 509); for ( - ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS - ; zephir_hash_move_forward_ex(_2, &_1) + ; zend_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS + ; zend_hash_move_forward_ex(_2, &_1) ) { ZEPHIR_GET_HMKEY(key, _2, _1); ZEPHIR_GET_HVALUE(_0, _3); @@ -40597,11 +40243,11 @@ static PHP_METHOD(Phalcon_Cache_Backend_Memcache, addServers) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 1, &host_param, &port_param, &persistent_param); - if (unlikely(Z_TYPE_P(host_param) != IS_STRING && Z_TYPE_P(host_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(host_param) != IS_STRING && Z_TYPE_P(host_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'host' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(host_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(host_param) == IS_STRING)) { zephir_get_strval(host, host_param); } else { ZEPHIR_INIT_VAR(host); @@ -40884,7 +40530,7 @@ static PHP_METHOD(Phalcon_Cache_Backend_Memcache, queryKeys) { } ZEPHIR_CALL_METHOD(&keys, memcache, "get", NULL, 0, specialKey); zephir_check_call_status(); - if (unlikely(Z_TYPE_P(keys) != IS_ARRAY)) { + if (UNEXPECTED(Z_TYPE_P(keys) != IS_ARRAY)) { array_init(return_value); RETURN_MM(); } @@ -40893,8 +40539,8 @@ static PHP_METHOD(Phalcon_Cache_Backend_Memcache, queryKeys) { ZEPHIR_CPY_WRT(keys, _0); zephir_is_iterable(keys, &_2, &_1, 1, 0, "phalcon/cache/backend/memcache.zep", 365); for ( - ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS - ; zephir_hash_move_forward_ex(_2, &_1) + ; zend_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS + ; zend_hash_move_forward_ex(_2, &_1) ) { ZEPHIR_GET_HMKEY(idx, _2, _1); ZEPHIR_GET_HVALUE(key, _3); @@ -41076,14 +40722,14 @@ static PHP_METHOD(Phalcon_Cache_Backend_Memcache, flush) { } ZEPHIR_CALL_METHOD(&keys, memcache, "get", NULL, 0, specialKey); zephir_check_call_status(); - if (unlikely(Z_TYPE_P(keys) != IS_ARRAY)) { + if (UNEXPECTED(Z_TYPE_P(keys) != IS_ARRAY)) { RETURN_MM_BOOL(1); } ZEPHIR_INIT_VAR(_0); zephir_is_iterable(keys, &_2, &_1, 0, 0, "phalcon/cache/backend/memcache.zep", 492); for ( - ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS - ; zephir_hash_move_forward_ex(_2, &_1) + ; zend_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS + ; zend_hash_move_forward_ex(_2, &_1) ) { ZEPHIR_GET_HMKEY(key, _2, _1); ZEPHIR_GET_HVALUE(_0, _3); @@ -41281,8 +40927,8 @@ static PHP_METHOD(Phalcon_Cache_Backend_Memory, queryKeys) { zephir_array_keys(keys, data TSRMLS_CC); zephir_is_iterable(keys, &_1, &_0, 1, 0, "phalcon/cache/backend/memory.zep", 177); for ( - ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS - ; zephir_hash_move_forward_ex(_1, &_0) + ; zend_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS + ; zend_hash_move_forward_ex(_1, &_0) ) { ZEPHIR_GET_HMKEY(idx, _1, _0); ZEPHIR_GET_HVALUE(key, _2); @@ -41844,8 +41490,8 @@ static PHP_METHOD(Phalcon_Cache_Backend_Mongo, queryKeys) { } zephir_is_iterable(item, &_7$$4, &_6$$4, 0, 0, "phalcon/cache/backend/mongo.zep", 317); for ( - ; zephir_hash_get_current_data_ex(_7$$4, (void**) &_8$$4, &_6$$4) == SUCCESS - ; zephir_hash_move_forward_ex(_7$$4, &_6$$4) + ; zend_hash_get_current_data_ex(_7$$4, (void**) &_8$$4, &_6$$4) == SUCCESS + ; zend_hash_move_forward_ex(_7$$4, &_6$$4) ) { ZEPHIR_GET_HMKEY(key, _7$$4, _6$$4); ZEPHIR_GET_HVALUE(value, _8$$4); @@ -42128,8 +41774,10 @@ static PHP_METHOD(Phalcon_Cache_Backend_Redis, _connect) { zephir_read_property_this(&options, this_ptr, SL("_options"), PH_NOISY_CC); ZEPHIR_INIT_VAR(redis); object_init_ex(redis, zephir_get_internal_ce(SS("redis") TSRMLS_CC)); - ZEPHIR_CALL_METHOD(NULL, redis, "__construct", NULL, 0); - zephir_check_call_status(); + if (zephir_has_constructor(redis TSRMLS_CC)) { + ZEPHIR_CALL_METHOD(NULL, redis, "__construct", NULL, 0); + zephir_check_call_status(); + } ZEPHIR_OBS_VAR(host); _0 = !(zephir_array_isset_string_fetch(&host, options, SS("host"), 0 TSRMLS_CC)); if (!(_0)) { @@ -42441,8 +42089,8 @@ static PHP_METHOD(Phalcon_Cache_Backend_Redis, queryKeys) { } zephir_is_iterable(keys, &_1, &_0, 1, 0, "phalcon/cache/backend/redis.zep", 362); for ( - ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS - ; zephir_hash_move_forward_ex(_1, &_0) + ; zend_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS + ; zend_hash_move_forward_ex(_1, &_0) ) { ZEPHIR_GET_HMKEY(idx, _1, _0); ZEPHIR_GET_HVALUE(key, _2); @@ -42624,8 +42272,8 @@ static PHP_METHOD(Phalcon_Cache_Backend_Redis, flush) { if (Z_TYPE_P(keys) == IS_ARRAY) { zephir_is_iterable(keys, &_1$$6, &_0$$6, 0, 0, "phalcon/cache/backend/redis.zep", 480); for ( - ; zephir_hash_get_current_data_ex(_1$$6, (void**) &_2$$6, &_0$$6) == SUCCESS - ; zephir_hash_move_forward_ex(_1$$6, &_0$$6) + ; zend_hash_get_current_data_ex(_1$$6, (void**) &_2$$6, &_0$$6) == SUCCESS + ; zend_hash_move_forward_ex(_1$$6, &_0$$6) ) { ZEPHIR_GET_HVALUE(key, _2$$6); ZEPHIR_INIT_NVAR(lastKey); @@ -42921,8 +42569,8 @@ static PHP_METHOD(Phalcon_Cache_Backend_Xcache, queryKeys) { ZEPHIR_INIT_VAR(_2); zephir_is_iterable(keys, &_4, &_3, 0, 0, "phalcon/cache/backend/xcache.zep", 272); for ( - ; zephir_hash_get_current_data_ex(_4, (void**) &_5, &_3) == SUCCESS - ; zephir_hash_move_forward_ex(_4, &_3) + ; zend_hash_get_current_data_ex(_4, (void**) &_5, &_3) == SUCCESS + ; zend_hash_move_forward_ex(_4, &_3) ) { ZEPHIR_GET_HMKEY(key, _4, _3); ZEPHIR_GET_HVALUE(_2, _5); @@ -43087,8 +42735,8 @@ static PHP_METHOD(Phalcon_Cache_Backend_Xcache, flush) { ZEPHIR_INIT_VAR(_1$$5); zephir_is_iterable(keys, &_3$$5, &_2$$5, 1, 0, "phalcon/cache/backend/xcache.zep", 381); for ( - ; zephir_hash_get_current_data_ex(_3$$5, (void**) &_4$$5, &_2$$5) == SUCCESS - ; zephir_hash_move_forward_ex(_3$$5, &_2$$5) + ; zend_hash_get_current_data_ex(_3$$5, (void**) &_4$$5, &_2$$5) == SUCCESS + ; zend_hash_move_forward_ex(_3$$5, &_2$$5) ) { ZEPHIR_GET_HMKEY(key, _3$$5, _2$$5); ZEPHIR_GET_HVALUE(_1$$5, _4$$5); @@ -44148,7 +43796,7 @@ static PHP_METHOD(Phalcon_Cli_Console, setArgument) { if (!str_param) { str = 1; } else { - if (unlikely(Z_TYPE_P(str_param) != IS_BOOL)) { + if (UNEXPECTED(Z_TYPE_P(str_param) != IS_BOOL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'str' must be a bool") TSRMLS_CC); RETURN_MM_NULL(); } @@ -44157,7 +43805,7 @@ static PHP_METHOD(Phalcon_Cli_Console, setArgument) { if (!shift_param) { shift = 1; } else { - if (unlikely(Z_TYPE_P(shift_param) != IS_BOOL)) { + if (UNEXPECTED(Z_TYPE_P(shift_param) != IS_BOOL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'shift' must be a bool") TSRMLS_CC); RETURN_MM_NULL(); } @@ -44183,8 +43831,8 @@ static PHP_METHOD(Phalcon_Cli_Console, setArgument) { } zephir_is_iterable(arguments, &_3, &_2, 0, 0, "phalcon/cli/console.zep", 201); for ( - ; zephir_hash_get_current_data_ex(_3, (void**) &_4, &_2) == SUCCESS - ; zephir_hash_move_forward_ex(_3, &_2) + ; zend_hash_get_current_data_ex(_3, (void**) &_4, &_2) == SUCCESS + ; zend_hash_move_forward_ex(_3, &_2) ) { ZEPHIR_GET_HVALUE(arg, _4); if (Z_TYPE_P(arg) == IS_STRING) { @@ -44823,8 +44471,8 @@ static PHP_METHOD(Phalcon_Cli_Router, handle) { _1$$3 = zephir_fetch_nproperty_this(this_ptr, SL("_routes"), PH_NOISY_CC); zephir_is_iterable(_1$$3, &_3$$3, &_2$$3, 0, 1, "phalcon/cli/router.zep", 307); for ( - ; zephir_hash_get_current_data_ex(_3$$3, (void**) &_4$$3, &_2$$3) == SUCCESS - ; zephir_hash_move_backwards_ex(_3$$3, &_2$$3) + ; zend_hash_get_current_data_ex(_3$$3, (void**) &_4$$3, &_2$$3) == SUCCESS + ; zend_hash_move_backwards_ex(_3$$3, &_2$$3) ) { ZEPHIR_GET_HVALUE(route, _4$$3); ZEPHIR_CALL_METHOD(&pattern, route, "getcompiledpattern", NULL, 0); @@ -44863,8 +44511,8 @@ static PHP_METHOD(Phalcon_Cli_Router, handle) { zephir_check_call_status(); zephir_is_iterable(paths, &_7$$12, &_6$$12, 0, 0, "phalcon/cli/router.zep", 296); for ( - ; zephir_hash_get_current_data_ex(_7$$12, (void**) &_8$$12, &_6$$12) == SUCCESS - ; zephir_hash_move_forward_ex(_7$$12, &_6$$12) + ; zend_hash_get_current_data_ex(_7$$12, (void**) &_8$$12, &_6$$12) == SUCCESS + ; zend_hash_move_forward_ex(_7$$12, &_6$$12) ) { ZEPHIR_GET_HMKEY(part, _7$$12, _6$$12); ZEPHIR_GET_HVALUE(position, _8$$12); @@ -45001,11 +44649,11 @@ static PHP_METHOD(Phalcon_Cli_Router, add) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &pattern_param, &paths); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(pattern, pattern_param); } else { ZEPHIR_INIT_VAR(pattern); @@ -45104,8 +44752,8 @@ static PHP_METHOD(Phalcon_Cli_Router, getRouteById) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_routes"), PH_NOISY_CC); zephir_is_iterable(_0, &_2, &_1, 0, 0, "phalcon/cli/router.zep", 485); for ( - ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS - ; zephir_hash_move_forward_ex(_2, &_1) + ; zend_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS + ; zend_hash_move_forward_ex(_2, &_1) ) { ZEPHIR_GET_HVALUE(route, _3); ZEPHIR_CALL_METHOD(&_4$$3, route, "getrouteid", NULL, 0); @@ -45129,11 +44777,11 @@ static PHP_METHOD(Phalcon_Cli_Router, getRouteByName) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -45144,8 +44792,8 @@ static PHP_METHOD(Phalcon_Cli_Router, getRouteByName) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_routes"), PH_NOISY_CC); zephir_is_iterable(_0, &_2, &_1, 0, 0, "phalcon/cli/router.zep", 500); for ( - ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS - ; zephir_hash_move_forward_ex(_2, &_1) + ; zend_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS + ; zend_hash_move_forward_ex(_2, &_1) ) { ZEPHIR_GET_HVALUE(route, _3); ZEPHIR_CALL_METHOD(&_4$$3, route, "getname", NULL, 0); @@ -45389,11 +45037,11 @@ static PHP_METHOD(Phalcon_Cli_Router_Route, __construct) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &pattern_param, &paths); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(pattern, pattern_param); } else { ZEPHIR_INIT_VAR(pattern); @@ -45436,11 +45084,11 @@ static PHP_METHOD(Phalcon_Cli_Router_Route, compilePattern) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &pattern_param); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(pattern, pattern_param); } else { ZEPHIR_INIT_VAR(pattern); @@ -45539,11 +45187,11 @@ static PHP_METHOD(Phalcon_Cli_Router_Route, extractNamedParams) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &pattern_param); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(pattern, pattern_param); } else { ZEPHIR_INIT_VAR(pattern); @@ -45761,11 +45409,11 @@ static PHP_METHOD(Phalcon_Cli_Router_Route, reConfigure) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &pattern_param, &paths); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(pattern, pattern_param); } else { ZEPHIR_INIT_VAR(pattern); @@ -45895,11 +45543,11 @@ static PHP_METHOD(Phalcon_Cli_Router_Route, setName) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -45978,8 +45626,8 @@ static PHP_METHOD(Phalcon_Cli_Router_Route, getReversedPaths) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_paths"), PH_NOISY_CC); zephir_is_iterable(_0, &_2, &_1, 0, 0, "phalcon/cli/router/route.zep", 516); for ( - ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS - ; zephir_hash_move_forward_ex(_2, &_1) + ; zend_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS + ; zend_hash_move_forward_ex(_2, &_1) ) { ZEPHIR_GET_HMKEY(path, _2, _1); ZEPHIR_GET_HVALUE(position, _3); @@ -45997,11 +45645,11 @@ static PHP_METHOD(Phalcon_Cli_Router_Route, convert) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &name_param, &converter); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -46042,11 +45690,11 @@ static PHP_METHOD(Phalcon_Cli_Router_Route, delimiter) { ZEPHIR_INIT_VAR(delimiter); ZVAL_EMPTY_STRING(delimiter); } else { - if (unlikely(Z_TYPE_P(delimiter_param) != IS_STRING && Z_TYPE_P(delimiter_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(delimiter_param) != IS_STRING && Z_TYPE_P(delimiter_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'delimiter' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(delimiter_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(delimiter_param) == IS_STRING)) { zephir_get_strval(delimiter, delimiter_param); } else { ZEPHIR_INIT_VAR(delimiter); @@ -46162,11 +45810,11 @@ static PHP_METHOD(Phalcon_Config_Adapter_Ini, __construct) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &filePath_param, &mode); - if (unlikely(Z_TYPE_P(filePath_param) != IS_STRING && Z_TYPE_P(filePath_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(filePath_param) != IS_STRING && Z_TYPE_P(filePath_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'filePath' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(filePath_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(filePath_param) == IS_STRING)) { zephir_get_strval(filePath, filePath_param); } else { ZEPHIR_INIT_VAR(filePath); @@ -46202,8 +45850,8 @@ static PHP_METHOD(Phalcon_Config_Adapter_Ini, __construct) { array_init(config); zephir_is_iterable(iniConfig, &_4, &_3, 0, 0, "phalcon/config/adapter/ini.zep", 106); for ( - ; zephir_hash_get_current_data_ex(_4, (void**) &_5, &_3) == SUCCESS - ; zephir_hash_move_forward_ex(_4, &_3) + ; zend_hash_get_current_data_ex(_4, (void**) &_5, &_3) == SUCCESS + ; zend_hash_move_forward_ex(_4, &_3) ) { ZEPHIR_GET_HMKEY(section, _4, _3); ZEPHIR_GET_HVALUE(directives, _5); @@ -46212,8 +45860,8 @@ static PHP_METHOD(Phalcon_Config_Adapter_Ini, __construct) { array_init(sections); zephir_is_iterable(directives, &_7$$6, &_6$$6, 0, 0, "phalcon/config/adapter/ini.zep", 98); for ( - ; zephir_hash_get_current_data_ex(_7$$6, (void**) &_8$$6, &_6$$6) == SUCCESS - ; zephir_hash_move_forward_ex(_7$$6, &_6$$6) + ; zend_hash_get_current_data_ex(_7$$6, (void**) &_8$$6, &_6$$6) == SUCCESS + ; zend_hash_move_forward_ex(_7$$6, &_6$$6) ) { ZEPHIR_GET_HMKEY(path, _7$$6, _6$$6); ZEPHIR_GET_HVALUE(lastValue, _8$$6); @@ -46251,11 +45899,11 @@ static PHP_METHOD(Phalcon_Config_Adapter_Ini, _parseIniString) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &path_param, &value); - if (unlikely(Z_TYPE_P(path_param) != IS_STRING && Z_TYPE_P(path_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(path_param) != IS_STRING && Z_TYPE_P(path_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'path' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(path_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(path_param) == IS_STRING)) { zephir_get_strval(path, path_param); } else { ZEPHIR_INIT_VAR(path); @@ -46311,8 +45959,8 @@ static PHP_METHOD(Phalcon_Config_Adapter_Ini, _cast) { if (Z_TYPE_P(ini) == IS_ARRAY) { zephir_is_iterable(ini, &_1$$3, &_0$$3, 1, 0, "phalcon/config/adapter/ini.zep", 152); for ( - ; zephir_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_1$$3, &_0$$3) + ; zend_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS + ; zend_hash_move_forward_ex(_1$$3, &_0$$3) ) { ZEPHIR_GET_HMKEY(key, _1$$3, _0$$3); ZEPHIR_GET_HVALUE(val, _2$$3); @@ -46399,11 +46047,11 @@ static PHP_METHOD(Phalcon_Config_Adapter_Json, __construct) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &filePath_param); - if (unlikely(Z_TYPE_P(filePath_param) != IS_STRING && Z_TYPE_P(filePath_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(filePath_param) != IS_STRING && Z_TYPE_P(filePath_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'filePath' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(filePath_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(filePath_param) == IS_STRING)) { zephir_get_strval(filePath, filePath_param); } else { ZEPHIR_INIT_VAR(filePath); @@ -46449,11 +46097,11 @@ static PHP_METHOD(Phalcon_Config_Adapter_Php, __construct) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &filePath_param); - if (unlikely(Z_TYPE_P(filePath_param) != IS_STRING && Z_TYPE_P(filePath_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(filePath_param) != IS_STRING && Z_TYPE_P(filePath_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'filePath' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(filePath_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(filePath_param) == IS_STRING)) { zephir_get_strval(filePath, filePath_param); } else { ZEPHIR_INIT_VAR(filePath); @@ -46500,11 +46148,11 @@ static PHP_METHOD(Phalcon_Config_Adapter_Yaml, __construct) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &filePath_param, &callbacks_param); - if (unlikely(Z_TYPE_P(filePath_param) != IS_STRING && Z_TYPE_P(filePath_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(filePath_param) != IS_STRING && Z_TYPE_P(filePath_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'filePath' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(filePath_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(filePath_param) == IS_STRING)) { zephir_get_strval(filePath, filePath_param); } else { ZEPHIR_INIT_VAR(filePath); @@ -46741,11 +46389,11 @@ static PHP_METHOD(Phalcon_Db_Adapter, fetchOne) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 3, &sqlQuery_param, &fetchMode, &bindParams, &bindTypes); - if (unlikely(Z_TYPE_P(sqlQuery_param) != IS_STRING && Z_TYPE_P(sqlQuery_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(sqlQuery_param) != IS_STRING && Z_TYPE_P(sqlQuery_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'sqlQuery' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(sqlQuery_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(sqlQuery_param) == IS_STRING)) { zephir_get_strval(sqlQuery, sqlQuery_param); } else { ZEPHIR_INIT_VAR(sqlQuery); @@ -46898,8 +46546,8 @@ static PHP_METHOD(Phalcon_Db_Adapter, insert) { array_init(bindDataTypes); zephir_is_iterable(values, &_3, &_2, 0, 0, "phalcon/db/adapter.zep", 349); for ( - ; zephir_hash_get_current_data_ex(_3, (void**) &_4, &_2) == SUCCESS - ; zephir_hash_move_forward_ex(_3, &_2) + ; zend_hash_get_current_data_ex(_3, (void**) &_4, &_2) == SUCCESS + ; zend_hash_move_forward_ex(_3, &_2) ) { ZEPHIR_GET_HMKEY(position, _3, _2); ZEPHIR_GET_HVALUE(value, _4); @@ -46937,8 +46585,8 @@ static PHP_METHOD(Phalcon_Db_Adapter, insert) { array_init(escapedFields); zephir_is_iterable(fields, &_10$$11, &_9$$11, 0, 0, "phalcon/db/adapter.zep", 361); for ( - ; zephir_hash_get_current_data_ex(_10$$11, (void**) &_11$$11, &_9$$11) == SUCCESS - ; zephir_hash_move_forward_ex(_10$$11, &_9$$11) + ; zend_hash_get_current_data_ex(_10$$11, (void**) &_11$$11, &_9$$11) == SUCCESS + ; zend_hash_move_forward_ex(_10$$11, &_9$$11) ) { ZEPHIR_GET_HVALUE(field, _11$$11); ZEPHIR_CALL_METHOD(&_12$$12, this_ptr, "escapeidentifier", &_8, 0, field); @@ -46991,8 +46639,8 @@ static PHP_METHOD(Phalcon_Db_Adapter, insertAsDict) { } zephir_is_iterable(data, &_2, &_1, 0, 0, "phalcon/db/adapter.zep", 412); for ( - ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS - ; zephir_hash_move_forward_ex(_2, &_1) + ; zend_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS + ; zend_hash_move_forward_ex(_2, &_1) ) { ZEPHIR_GET_HMKEY(field, _2, _1); ZEPHIR_GET_HVALUE(value, _3); @@ -47032,8 +46680,8 @@ static PHP_METHOD(Phalcon_Db_Adapter, update) { array_init(bindDataTypes); zephir_is_iterable(values, &_1, &_0, 0, 0, "phalcon/db/adapter.zep", 496); for ( - ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS - ; zephir_hash_move_forward_ex(_1, &_0) + ; zend_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS + ; zend_hash_move_forward_ex(_1, &_0) ) { ZEPHIR_GET_HMKEY(position, _1, _0); ZEPHIR_GET_HVALUE(value, _2); @@ -47142,8 +46790,8 @@ static PHP_METHOD(Phalcon_Db_Adapter, updateAsDict) { } zephir_is_iterable(data, &_2, &_1, 0, 0, "phalcon/db/adapter.zep", 591); for ( - ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS - ; zephir_hash_move_forward_ex(_2, &_1) + ; zend_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS + ; zend_hash_move_forward_ex(_2, &_1) ) { ZEPHIR_GET_HMKEY(field, _2, _1); ZEPHIR_GET_HVALUE(value, _3); @@ -47244,11 +46892,11 @@ static PHP_METHOD(Phalcon_Db_Adapter, limit) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &sqlQuery_param, &number_param); - if (unlikely(Z_TYPE_P(sqlQuery_param) != IS_STRING && Z_TYPE_P(sqlQuery_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(sqlQuery_param) != IS_STRING && Z_TYPE_P(sqlQuery_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'sqlQuery' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(sqlQuery_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(sqlQuery_param) == IS_STRING)) { zephir_get_strval(sqlQuery, sqlQuery_param); } else { ZEPHIR_INIT_VAR(sqlQuery); @@ -47275,11 +46923,11 @@ static PHP_METHOD(Phalcon_Db_Adapter, tableExists) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &tableName_param, &schemaName_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { ZEPHIR_INIT_VAR(tableName); @@ -47289,11 +46937,11 @@ static PHP_METHOD(Phalcon_Db_Adapter, tableExists) { ZEPHIR_INIT_VAR(schemaName); ZVAL_EMPTY_STRING(schemaName); } else { - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(schemaName); @@ -47323,11 +46971,11 @@ static PHP_METHOD(Phalcon_Db_Adapter, viewExists) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &viewName_param, &schemaName_param); - if (unlikely(Z_TYPE_P(viewName_param) != IS_STRING && Z_TYPE_P(viewName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(viewName_param) != IS_STRING && Z_TYPE_P(viewName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'viewName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(viewName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(viewName_param) == IS_STRING)) { zephir_get_strval(viewName, viewName_param); } else { ZEPHIR_INIT_VAR(viewName); @@ -47337,11 +46985,11 @@ static PHP_METHOD(Phalcon_Db_Adapter, viewExists) { ZEPHIR_INIT_VAR(schemaName); ZVAL_EMPTY_STRING(schemaName); } else { - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(schemaName); @@ -47371,11 +47019,11 @@ static PHP_METHOD(Phalcon_Db_Adapter, forUpdate) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &sqlQuery_param); - if (unlikely(Z_TYPE_P(sqlQuery_param) != IS_STRING && Z_TYPE_P(sqlQuery_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(sqlQuery_param) != IS_STRING && Z_TYPE_P(sqlQuery_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'sqlQuery' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(sqlQuery_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(sqlQuery_param) == IS_STRING)) { zephir_get_strval(sqlQuery, sqlQuery_param); } else { ZEPHIR_INIT_VAR(sqlQuery); @@ -47399,11 +47047,11 @@ static PHP_METHOD(Phalcon_Db_Adapter, sharedLock) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &sqlQuery_param); - if (unlikely(Z_TYPE_P(sqlQuery_param) != IS_STRING && Z_TYPE_P(sqlQuery_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(sqlQuery_param) != IS_STRING && Z_TYPE_P(sqlQuery_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'sqlQuery' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(sqlQuery_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(sqlQuery_param) == IS_STRING)) { zephir_get_strval(sqlQuery, sqlQuery_param); } else { ZEPHIR_INIT_VAR(sqlQuery); @@ -47428,21 +47076,21 @@ static PHP_METHOD(Phalcon_Db_Adapter, createTable) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &definition_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { ZEPHIR_INIT_VAR(tableName); ZVAL_EMPTY_STRING(tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(schemaName); @@ -47479,11 +47127,11 @@ static PHP_METHOD(Phalcon_Db_Adapter, dropTable) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &tableName_param, &schemaName_param, &ifExists_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { ZEPHIR_INIT_VAR(tableName); @@ -47493,11 +47141,11 @@ static PHP_METHOD(Phalcon_Db_Adapter, dropTable) { ZEPHIR_INIT_VAR(schemaName); ZVAL_EMPTY_STRING(schemaName); } else { - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(schemaName); @@ -47536,11 +47184,11 @@ static PHP_METHOD(Phalcon_Db_Adapter, createView) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 1, &viewName_param, &definition_param, &schemaName); - if (unlikely(Z_TYPE_P(viewName_param) != IS_STRING && Z_TYPE_P(viewName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(viewName_param) != IS_STRING && Z_TYPE_P(viewName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'viewName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(viewName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(viewName_param) == IS_STRING)) { zephir_get_strval(viewName, viewName_param); } else { ZEPHIR_INIT_VAR(viewName); @@ -47575,11 +47223,11 @@ static PHP_METHOD(Phalcon_Db_Adapter, dropView) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &viewName_param, &schemaName_param, &ifExists_param); - if (unlikely(Z_TYPE_P(viewName_param) != IS_STRING && Z_TYPE_P(viewName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(viewName_param) != IS_STRING && Z_TYPE_P(viewName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'viewName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(viewName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(viewName_param) == IS_STRING)) { zephir_get_strval(viewName, viewName_param); } else { ZEPHIR_INIT_VAR(viewName); @@ -47589,11 +47237,11 @@ static PHP_METHOD(Phalcon_Db_Adapter, dropView) { ZEPHIR_INIT_VAR(schemaName); ZVAL_EMPTY_STRING(schemaName); } else { - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(schemaName); @@ -47631,21 +47279,21 @@ static PHP_METHOD(Phalcon_Db_Adapter, addColumn) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &column); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { ZEPHIR_INIT_VAR(tableName); ZVAL_EMPTY_STRING(tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(schemaName); @@ -47671,21 +47319,21 @@ static PHP_METHOD(Phalcon_Db_Adapter, modifyColumn) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 1, &tableName_param, &schemaName_param, &column, ¤tColumn); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { ZEPHIR_INIT_VAR(tableName); ZVAL_EMPTY_STRING(tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(schemaName); @@ -47714,21 +47362,21 @@ static PHP_METHOD(Phalcon_Db_Adapter, dropColumn) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &columnName_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { ZEPHIR_INIT_VAR(tableName); ZVAL_EMPTY_STRING(tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(schemaName); @@ -47755,21 +47403,21 @@ static PHP_METHOD(Phalcon_Db_Adapter, addIndex) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &index); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { ZEPHIR_INIT_VAR(tableName); ZVAL_EMPTY_STRING(tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(schemaName); @@ -47795,21 +47443,21 @@ static PHP_METHOD(Phalcon_Db_Adapter, dropIndex) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &indexName); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { ZEPHIR_INIT_VAR(tableName); ZVAL_EMPTY_STRING(tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(schemaName); @@ -47835,21 +47483,21 @@ static PHP_METHOD(Phalcon_Db_Adapter, addPrimaryKey) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &index); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { ZEPHIR_INIT_VAR(tableName); ZVAL_EMPTY_STRING(tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(schemaName); @@ -47875,21 +47523,21 @@ static PHP_METHOD(Phalcon_Db_Adapter, dropPrimaryKey) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &tableName_param, &schemaName_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { ZEPHIR_INIT_VAR(tableName); ZVAL_EMPTY_STRING(tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(schemaName); @@ -47915,21 +47563,21 @@ static PHP_METHOD(Phalcon_Db_Adapter, addForeignKey) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &reference); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { ZEPHIR_INIT_VAR(tableName); ZVAL_EMPTY_STRING(tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(schemaName); @@ -47955,31 +47603,31 @@ static PHP_METHOD(Phalcon_Db_Adapter, dropForeignKey) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &referenceName_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { ZEPHIR_INIT_VAR(tableName); ZVAL_EMPTY_STRING(tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(schemaName); ZVAL_EMPTY_STRING(schemaName); } - if (unlikely(Z_TYPE_P(referenceName_param) != IS_STRING && Z_TYPE_P(referenceName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(referenceName_param) != IS_STRING && Z_TYPE_P(referenceName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'referenceName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(referenceName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(referenceName_param) == IS_STRING)) { zephir_get_strval(referenceName, referenceName_param); } else { ZEPHIR_INIT_VAR(referenceName); @@ -48028,11 +47676,11 @@ static PHP_METHOD(Phalcon_Db_Adapter, listTables) { ZEPHIR_INIT_VAR(schemaName); ZVAL_EMPTY_STRING(schemaName); } else { - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(schemaName); @@ -48052,8 +47700,8 @@ static PHP_METHOD(Phalcon_Db_Adapter, listTables) { zephir_check_call_status(); zephir_is_iterable(_0, &_5, &_4, 0, 0, "phalcon/db/adapter.zep", 869); for ( - ; zephir_hash_get_current_data_ex(_5, (void**) &_6, &_4) == SUCCESS - ; zephir_hash_move_forward_ex(_5, &_4) + ; zend_hash_get_current_data_ex(_5, (void**) &_6, &_4) == SUCCESS + ; zend_hash_move_forward_ex(_5, &_4) ) { ZEPHIR_GET_HVALUE(table, _6); zephir_array_fetch_long(&_7$$3, table, 0, PH_NOISY | PH_READONLY, "phalcon/db/adapter.zep", 867 TSRMLS_CC); @@ -48078,11 +47726,11 @@ static PHP_METHOD(Phalcon_Db_Adapter, listViews) { ZEPHIR_INIT_VAR(schemaName); ZVAL_EMPTY_STRING(schemaName); } else { - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(schemaName); @@ -48102,8 +47750,8 @@ static PHP_METHOD(Phalcon_Db_Adapter, listViews) { zephir_check_call_status(); zephir_is_iterable(_0, &_5, &_4, 0, 0, "phalcon/db/adapter.zep", 889); for ( - ; zephir_hash_get_current_data_ex(_5, (void**) &_6, &_4) == SUCCESS - ; zephir_hash_move_forward_ex(_5, &_4) + ; zend_hash_get_current_data_ex(_5, (void**) &_6, &_4) == SUCCESS + ; zend_hash_move_forward_ex(_5, &_4) ) { ZEPHIR_GET_HVALUE(table, _6); zephir_array_fetch_long(&_7$$3, table, 0, PH_NOISY | PH_READONLY, "phalcon/db/adapter.zep", 887 TSRMLS_CC); @@ -48125,11 +47773,11 @@ static PHP_METHOD(Phalcon_Db_Adapter, describeIndexes) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &table_param, &schema); - if (unlikely(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'table' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(table_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(table_param) == IS_STRING)) { zephir_get_strval(table, table_param); } else { ZEPHIR_INIT_VAR(table); @@ -48151,8 +47799,8 @@ static PHP_METHOD(Phalcon_Db_Adapter, describeIndexes) { zephir_check_call_status(); zephir_is_iterable(_0, &_5, &_4, 0, 0, "phalcon/db/adapter.zep", 923); for ( - ; zephir_hash_get_current_data_ex(_5, (void**) &_6, &_4) == SUCCESS - ; zephir_hash_move_forward_ex(_5, &_4) + ; zend_hash_get_current_data_ex(_5, (void**) &_6, &_4) == SUCCESS + ; zend_hash_move_forward_ex(_5, &_4) ) { ZEPHIR_GET_HVALUE(index, _6); zephir_array_fetch_long(&keyName, index, 2, PH_NOISY | PH_READONLY, "phalcon/db/adapter.zep", 912 TSRMLS_CC); @@ -48171,8 +47819,8 @@ static PHP_METHOD(Phalcon_Db_Adapter, describeIndexes) { array_init(indexObjects); zephir_is_iterable(indexes, &_9, &_8, 0, 0, "phalcon/db/adapter.zep", 932); for ( - ; zephir_hash_get_current_data_ex(_9, (void**) &_10, &_8) == SUCCESS - ; zephir_hash_move_forward_ex(_9, &_8) + ; zend_hash_get_current_data_ex(_9, (void**) &_10, &_8) == SUCCESS + ; zend_hash_move_forward_ex(_9, &_8) ) { ZEPHIR_GET_HMKEY(name, _9, _8); ZEPHIR_GET_HVALUE(indexColumns, _10); @@ -48199,11 +47847,11 @@ static PHP_METHOD(Phalcon_Db_Adapter, describeReferences) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &table_param, &schema_param); - if (unlikely(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'table' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(table_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(table_param) == IS_STRING)) { zephir_get_strval(table, table_param); } else { ZEPHIR_INIT_VAR(table); @@ -48213,11 +47861,11 @@ static PHP_METHOD(Phalcon_Db_Adapter, describeReferences) { ZEPHIR_INIT_VAR(schema); ZVAL_EMPTY_STRING(schema); } else { - if (unlikely(Z_TYPE_P(schema_param) != IS_STRING && Z_TYPE_P(schema_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schema_param) != IS_STRING && Z_TYPE_P(schema_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schema' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schema_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schema_param) == IS_STRING)) { zephir_get_strval(schema, schema_param); } else { ZEPHIR_INIT_VAR(schema); @@ -48237,8 +47885,8 @@ static PHP_METHOD(Phalcon_Db_Adapter, describeReferences) { zephir_check_call_status(); zephir_is_iterable(_0, &_5, &_4, 0, 0, "phalcon/db/adapter.zep", 978); for ( - ; zephir_hash_get_current_data_ex(_5, (void**) &_6, &_4) == SUCCESS - ; zephir_hash_move_forward_ex(_5, &_4) + ; zend_hash_get_current_data_ex(_5, (void**) &_6, &_4) == SUCCESS + ; zend_hash_move_forward_ex(_5, &_4) ) { ZEPHIR_GET_HVALUE(reference, _6); zephir_array_fetch_long(&constraintName, reference, 2, PH_NOISY | PH_READONLY, "phalcon/db/adapter.zep", 954 TSRMLS_CC); @@ -48281,8 +47929,8 @@ static PHP_METHOD(Phalcon_Db_Adapter, describeReferences) { array_init(referenceObjects); zephir_is_iterable(references, &_15, &_14, 0, 0, "phalcon/db/adapter.zep", 988); for ( - ; zephir_hash_get_current_data_ex(_15, (void**) &_16, &_14) == SUCCESS - ; zephir_hash_move_forward_ex(_15, &_14) + ; zend_hash_get_current_data_ex(_15, (void**) &_16, &_14) == SUCCESS + ; zend_hash_move_forward_ex(_15, &_14) ) { ZEPHIR_GET_HMKEY(name, _15, _14); ZEPHIR_GET_HVALUE(arrayReference, _16); @@ -48319,11 +47967,11 @@ static PHP_METHOD(Phalcon_Db_Adapter, tableOptions) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &tableName_param, &schemaName_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { ZEPHIR_INIT_VAR(tableName); @@ -48362,11 +48010,11 @@ static PHP_METHOD(Phalcon_Db_Adapter, createSavepoint) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -48399,11 +48047,11 @@ static PHP_METHOD(Phalcon_Db_Adapter, releaseSavepoint) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -48441,11 +48089,11 @@ static PHP_METHOD(Phalcon_Db_Adapter, rollbackSavepoint) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -48948,11 +48596,11 @@ static PHP_METHOD(Phalcon_Db_Column, __construct) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &name_param, &definition_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -49322,11 +48970,11 @@ static PHP_METHOD(Phalcon_Db_Dialect, escapeSchema) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &str_param, &escapeChar_param); - if (unlikely(Z_TYPE_P(str_param) != IS_STRING && Z_TYPE_P(str_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(str_param) != IS_STRING && Z_TYPE_P(str_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'str' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(str_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(str_param) == IS_STRING)) { zephir_get_strval(str, str_param); } else { ZEPHIR_INIT_VAR(str); @@ -49368,11 +49016,11 @@ static PHP_METHOD(Phalcon_Db_Dialect, escape) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &str_param, &escapeChar_param); - if (unlikely(Z_TYPE_P(str_param) != IS_STRING && Z_TYPE_P(str_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(str_param) != IS_STRING && Z_TYPE_P(str_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'str' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(str_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(str_param) == IS_STRING)) { zephir_get_strval(str, str_param); } else { ZEPHIR_INIT_VAR(str); @@ -49419,8 +49067,8 @@ static PHP_METHOD(Phalcon_Db_Dialect, escape) { ZEPHIR_CPY_WRT(newParts, parts); zephir_is_iterable(parts, &_9, &_8, 0, 0, "phalcon/db/dialect.zep", 105); for ( - ; zephir_hash_get_current_data_ex(_9, (void**) &_10, &_8) == SUCCESS - ; zephir_hash_move_forward_ex(_9, &_8) + ; zend_hash_get_current_data_ex(_9, (void**) &_10, &_8) == SUCCESS + ; zend_hash_move_forward_ex(_9, &_8) ) { ZEPHIR_GET_HMKEY(key, _9, _8); ZEPHIR_GET_HVALUE(part, _10); @@ -49457,11 +49105,11 @@ static PHP_METHOD(Phalcon_Db_Dialect, limit) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &sqlQuery_param, &number); - if (unlikely(Z_TYPE_P(sqlQuery_param) != IS_STRING && Z_TYPE_P(sqlQuery_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(sqlQuery_param) != IS_STRING && Z_TYPE_P(sqlQuery_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'sqlQuery' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(sqlQuery_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(sqlQuery_param) == IS_STRING)) { zephir_get_strval(sqlQuery, sqlQuery_param); } else { ZEPHIR_INIT_VAR(sqlQuery); @@ -49500,11 +49148,11 @@ static PHP_METHOD(Phalcon_Db_Dialect, forUpdate) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &sqlQuery_param); - if (unlikely(Z_TYPE_P(sqlQuery_param) != IS_STRING && Z_TYPE_P(sqlQuery_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(sqlQuery_param) != IS_STRING && Z_TYPE_P(sqlQuery_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'sqlQuery' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(sqlQuery_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(sqlQuery_param) == IS_STRING)) { zephir_get_strval(sqlQuery, sqlQuery_param); } else { ZEPHIR_INIT_VAR(sqlQuery); @@ -49525,11 +49173,11 @@ static PHP_METHOD(Phalcon_Db_Dialect, sharedLock) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &sqlQuery_param); - if (unlikely(Z_TYPE_P(sqlQuery_param) != IS_STRING && Z_TYPE_P(sqlQuery_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(sqlQuery_param) != IS_STRING && Z_TYPE_P(sqlQuery_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'sqlQuery' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(sqlQuery_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(sqlQuery_param) == IS_STRING)) { zephir_get_strval(sqlQuery, sqlQuery_param); } else { ZEPHIR_INIT_VAR(sqlQuery); @@ -49571,8 +49219,8 @@ static PHP_METHOD(Phalcon_Db_Dialect, getColumnList) { array_init(columns); zephir_is_iterable(columnList, &_1, &_0, 0, 0, "phalcon/db/dialect.zep", 182); for ( - ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS - ; zephir_hash_move_forward_ex(_1, &_0) + ; zend_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS + ; zend_hash_move_forward_ex(_1, &_0) ) { ZEPHIR_GET_HVALUE(column, _2); ZEPHIR_CALL_METHOD(&_3$$3, this_ptr, "getsqlcolumn", &_4, 40, column, escapeChar, bindCounts); @@ -50024,11 +49672,11 @@ static PHP_METHOD(Phalcon_Db_Dialect, createSavepoint) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -50049,11 +49697,11 @@ static PHP_METHOD(Phalcon_Db_Dialect, releaseSavepoint) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -50074,11 +49722,11 @@ static PHP_METHOD(Phalcon_Db_Dialect, rollbackSavepoint) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -50397,8 +50045,8 @@ static PHP_METHOD(Phalcon_Db_Dialect, getSqlExpressionList) { if (_1) { zephir_is_iterable(values, &_3$$4, &_2$$4, 0, 0, "phalcon/db/dialect.zep", 684); for ( - ; zephir_hash_get_current_data_ex(_3$$4, (void**) &_4$$4, &_2$$4) == SUCCESS - ; zephir_hash_move_forward_ex(_3$$4, &_2$$4) + ; zend_hash_get_current_data_ex(_3$$4, (void**) &_4$$4, &_2$$4) == SUCCESS + ; zend_hash_move_forward_ex(_3$$4, &_2$$4) ) { ZEPHIR_GET_HVALUE(item, _4$$4); ZEPHIR_CALL_METHOD(&_5$$5, this_ptr, "getsqlexpression", &_6, 0, item, escapeChar, bindCounts); @@ -50555,8 +50203,8 @@ static PHP_METHOD(Phalcon_Db_Dialect, getSqlExpressionCase) { zephir_array_fetch_string(&_3, expression, SL("when-clauses"), PH_NOISY | PH_READONLY, "phalcon/db/dialect.zep", 741 TSRMLS_CC); zephir_is_iterable(_3, &_5, &_4, 0, 0, "phalcon/db/dialect.zep", 752); for ( - ; zephir_hash_get_current_data_ex(_5, (void**) &_6, &_4) == SUCCESS - ; zephir_hash_move_forward_ex(_5, &_4) + ; zend_hash_get_current_data_ex(_5, (void**) &_6, &_4) == SUCCESS + ; zend_hash_move_forward_ex(_5, &_4) ) { ZEPHIR_GET_HVALUE(whenClause, _6); zephir_array_fetch_string(&_7$$3, whenClause, SL("type"), PH_NOISY | PH_READONLY, "phalcon/db/dialect.zep", 742 TSRMLS_CC); @@ -50609,8 +50257,8 @@ static PHP_METHOD(Phalcon_Db_Dialect, getSqlExpressionFrom) { array_init(tables); zephir_is_iterable(expression, &_1$$3, &_0$$3, 0, 0, "phalcon/db/dialect.zep", 770); for ( - ; zephir_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_1$$3, &_0$$3) + ; zend_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS + ; zend_hash_move_forward_ex(_1$$3, &_0$$3) ) { ZEPHIR_GET_HVALUE(table, _2$$3); ZEPHIR_CALL_METHOD(&_3$$4, this_ptr, "getsqltable", &_4, 62, table, escapeChar); @@ -50658,8 +50306,8 @@ static PHP_METHOD(Phalcon_Db_Dialect, getSqlExpressionJoins) { ZVAL_STRING(joinType, "", 1); zephir_is_iterable(expression, &_1, &_0, 0, 0, "phalcon/db/dialect.zep", 818); for ( - ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS - ; zephir_hash_move_forward_ex(_1, &_0) + ; zend_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS + ; zend_hash_move_forward_ex(_1, &_0) ) { ZEPHIR_GET_HVALUE(join, _2); ZEPHIR_OBS_NVAR(joinConditionsArray); @@ -50676,8 +50324,8 @@ static PHP_METHOD(Phalcon_Db_Dialect, getSqlExpressionJoins) { array_init(joinCondition); zephir_is_iterable(joinConditionsArray, &_6$$6, &_5$$6, 0, 0, "phalcon/db/dialect.zep", 803); for ( - ; zephir_hash_get_current_data_ex(_6$$6, (void**) &_7$$6, &_5$$6) == SUCCESS - ; zephir_hash_move_forward_ex(_6$$6, &_5$$6) + ; zend_hash_get_current_data_ex(_6$$6, (void**) &_7$$6, &_5$$6) == SUCCESS + ; zend_hash_move_forward_ex(_6$$6, &_5$$6) ) { ZEPHIR_GET_HVALUE(condition, _7$$6); ZEPHIR_CALL_METHOD(&_8$$7, this_ptr, "getsqlexpression", &_4, 46, condition, escapeChar, bindCounts); @@ -50770,11 +50418,11 @@ static PHP_METHOD(Phalcon_Db_Dialect, getSqlExpressionGroupBy) { array_init(fields); zephir_is_iterable(expression, &_1$$3, &_0$$3, 0, 0, "phalcon/db/dialect.zep", 856); for ( - ; zephir_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_1$$3, &_0$$3) + ; zend_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS + ; zend_hash_move_forward_ex(_1$$3, &_0$$3) ) { ZEPHIR_GET_HVALUE(field, _2$$3); - if (unlikely(Z_TYPE_P(field) != IS_ARRAY)) { + if (UNEXPECTED(Z_TYPE_P(field) != IS_ARRAY)) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Invalid SQL-GROUP-BY expression", "phalcon/db/dialect.zep", 850); return; } @@ -50853,11 +50501,11 @@ static PHP_METHOD(Phalcon_Db_Dialect, getSqlExpressionOrderBy) { array_init(fields); zephir_is_iterable(expression, &_1$$3, &_0$$3, 0, 0, "phalcon/db/dialect.zep", 902); for ( - ; zephir_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_1$$3, &_0$$3) + ; zend_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS + ; zend_hash_move_forward_ex(_1$$3, &_0$$3) ) { ZEPHIR_GET_HVALUE(field, _2$$3); - if (unlikely(Z_TYPE_P(field) != IS_ARRAY)) { + if (UNEXPECTED(Z_TYPE_P(field) != IS_ARRAY)) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_db_exception_ce, "Invalid SQL-ORDER-BY expression", "phalcon/db/dialect.zep", 887); return; } @@ -50963,11 +50611,11 @@ static PHP_METHOD(Phalcon_Db_Dialect, prepareColumnAlias) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &qualified_param, &alias_param, &escapeChar_param); - if (unlikely(Z_TYPE_P(qualified_param) != IS_STRING && Z_TYPE_P(qualified_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(qualified_param) != IS_STRING && Z_TYPE_P(qualified_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'qualified' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(qualified_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(qualified_param) == IS_STRING)) { zephir_get_strval(qualified, qualified_param); } else { ZEPHIR_INIT_VAR(qualified); @@ -51007,11 +50655,11 @@ static PHP_METHOD(Phalcon_Db_Dialect, prepareTable) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 3, &table_param, &schema_param, &alias_param, &escapeChar_param); - if (unlikely(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'table' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(table_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(table_param) == IS_STRING)) { zephir_get_strval(table, table_param); } else { ZEPHIR_INIT_VAR(table); @@ -51068,11 +50716,11 @@ static PHP_METHOD(Phalcon_Db_Dialect, prepareQualified) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &column_param, &domain_param, &escapeChar_param); - if (unlikely(Z_TYPE_P(column_param) != IS_STRING && Z_TYPE_P(column_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(column_param) != IS_STRING && Z_TYPE_P(column_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'column' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(column_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(column_param) == IS_STRING)) { zephir_get_strval(column, column_param); } else { ZEPHIR_INIT_VAR(column); @@ -51261,11 +50909,11 @@ static PHP_METHOD(Phalcon_Db_Index, __construct) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 1, &name_param, &columns_param, &type); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -51668,11 +51316,11 @@ static PHP_METHOD(Phalcon_Db_Reference, __construct) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &name_param, &definition_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -51955,8 +51603,8 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo, connect) { array_init(dsnParts); zephir_is_iterable(descriptor, &_3$$13, &_2$$13, 0, 0, "phalcon/db/adapter/pdo.zep", 156); for ( - ; zephir_hash_get_current_data_ex(_3$$13, (void**) &_4$$13, &_2$$13) == SUCCESS - ; zephir_hash_move_forward_ex(_3$$13, &_2$$13) + ; zend_hash_get_current_data_ex(_3$$13, (void**) &_4$$13, &_2$$13) == SUCCESS + ; zend_hash_move_forward_ex(_3$$13, &_2$$13) ) { ZEPHIR_GET_HMKEY(key, _3$$13, _2$$13); ZEPHIR_GET_HVALUE(value, _4$$13); @@ -51991,11 +51639,11 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo, prepare) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &sqlStatement_param); - if (unlikely(Z_TYPE_P(sqlStatement_param) != IS_STRING && Z_TYPE_P(sqlStatement_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(sqlStatement_param) != IS_STRING && Z_TYPE_P(sqlStatement_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'sqlStatement' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(sqlStatement_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(sqlStatement_param) == IS_STRING)) { zephir_get_strval(sqlStatement, sqlStatement_param); } else { ZEPHIR_INIT_VAR(sqlStatement); @@ -52029,8 +51677,8 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo, executePrepared) { zephir_is_iterable(placeholders, &_1, &_0, 0, 0, "phalcon/db/adapter/pdo.zep", 306); for ( - ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS - ; zephir_hash_move_forward_ex(_1, &_0) + ; zend_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS + ; zend_hash_move_forward_ex(_1, &_0) ) { ZEPHIR_GET_HMKEY(wildcard, _1, _0); ZEPHIR_GET_HVALUE(value, _2); @@ -52102,8 +51750,8 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo, executePrepared) { } else { zephir_is_iterable(castValue, &_9$$22, &_8$$22, 0, 0, "phalcon/db/adapter/pdo.zep", 294); for ( - ; zephir_hash_get_current_data_ex(_9$$22, (void**) &_10$$22, &_8$$22) == SUCCESS - ; zephir_hash_move_forward_ex(_9$$22, &_8$$22) + ; zend_hash_get_current_data_ex(_9$$22, (void**) &_10$$22, &_8$$22) == SUCCESS + ; zend_hash_move_forward_ex(_9$$22, &_8$$22) ) { ZEPHIR_GET_HMKEY(position, _9$$22, _8$$22); ZEPHIR_GET_HVALUE(itemValue, _10$$22); @@ -52127,8 +51775,8 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo, executePrepared) { } else { zephir_is_iterable(value, &_14$$28, &_13$$28, 0, 0, "phalcon/db/adapter/pdo.zep", 302); for ( - ; zephir_hash_get_current_data_ex(_14$$28, (void**) &_15$$28, &_13$$28) == SUCCESS - ; zephir_hash_move_forward_ex(_14$$28, &_13$$28) + ; zend_hash_get_current_data_ex(_14$$28, (void**) &_15$$28, &_13$$28) == SUCCESS + ; zend_hash_move_forward_ex(_14$$28, &_13$$28) ) { ZEPHIR_GET_HMKEY(position, _14$$28, _13$$28); ZEPHIR_GET_HVALUE(itemValue, _15$$28); @@ -52156,11 +51804,11 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo, query) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &sqlStatement_param, &bindParams, &bindTypes); - if (unlikely(Z_TYPE_P(sqlStatement_param) != IS_STRING && Z_TYPE_P(sqlStatement_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(sqlStatement_param) != IS_STRING && Z_TYPE_P(sqlStatement_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'sqlStatement' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(sqlStatement_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(sqlStatement_param) == IS_STRING)) { zephir_get_strval(sqlStatement, sqlStatement_param); } else { ZEPHIR_INIT_VAR(sqlStatement); @@ -52229,11 +51877,11 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo, execute) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &sqlStatement_param, &bindParams, &bindTypes); - if (unlikely(Z_TYPE_P(sqlStatement_param) != IS_STRING && Z_TYPE_P(sqlStatement_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(sqlStatement_param) != IS_STRING && Z_TYPE_P(sqlStatement_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'sqlStatement' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(sqlStatement_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(sqlStatement_param) == IS_STRING)) { zephir_get_strval(sqlStatement, sqlStatement_param); } else { ZEPHIR_INIT_VAR(sqlStatement); @@ -52345,11 +51993,11 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo, convertBoundParams) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &sql_param, ¶ms_param); - if (unlikely(Z_TYPE_P(sql_param) != IS_STRING && Z_TYPE_P(sql_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(sql_param) != IS_STRING && Z_TYPE_P(sql_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'sql' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(sql_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(sql_param) == IS_STRING)) { zephir_get_strval(sql, sql_param); } else { ZEPHIR_INIT_VAR(sql); @@ -52379,8 +52027,8 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo, convertBoundParams) { if (zephir_is_true(_1)) { zephir_is_iterable(matches, &_3$$3, &_2$$3, 0, 0, "phalcon/db/adapter/pdo.zep", 515); for ( - ; zephir_hash_get_current_data_ex(_3$$3, (void**) &_4$$3, &_2$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_3$$3, &_2$$3) + ; zend_hash_get_current_data_ex(_3$$3, (void**) &_4$$3, &_2$$3) == SUCCESS + ; zend_hash_move_forward_ex(_3$$3, &_2$$3) ) { ZEPHIR_GET_HVALUE(placeMatch, _4$$3); ZEPHIR_OBS_NVAR(value); @@ -52771,8 +52419,8 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Mysql, describeColumns) { zephir_check_call_status(); zephir_is_iterable(_0, &_5, &_4, 0, 0, "phalcon/db/adapter/pdo/mysql.zep", 263); for ( - ; zephir_hash_get_current_data_ex(_5, (void**) &_6, &_4) == SUCCESS - ; zephir_hash_move_forward_ex(_5, &_4) + ; zend_hash_get_current_data_ex(_5, (void**) &_6, &_4) == SUCCESS + ; zend_hash_move_forward_ex(_5, &_4) ) { ZEPHIR_GET_HVALUE(field, _6); ZEPHIR_INIT_NVAR(definition); @@ -52949,11 +52597,11 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Mysql, describeIndexes) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &table_param, &schema); - if (unlikely(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'table' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(table_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(table_param) == IS_STRING)) { zephir_get_strval(table, table_param); } else { ZEPHIR_INIT_VAR(table); @@ -52975,8 +52623,8 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Mysql, describeIndexes) { zephir_check_call_status(); zephir_is_iterable(_0, &_5, &_4, 0, 0, "phalcon/db/adapter/pdo/mysql.zep", 312); for ( - ; zephir_hash_get_current_data_ex(_5, (void**) &_6, &_4) == SUCCESS - ; zephir_hash_move_forward_ex(_5, &_4) + ; zend_hash_get_current_data_ex(_5, (void**) &_6, &_4) == SUCCESS + ; zend_hash_move_forward_ex(_5, &_4) ) { ZEPHIR_GET_HVALUE(index, _6); zephir_array_fetch_string(&keyName, index, SL("Key_name"), PH_NOISY | PH_READONLY, "phalcon/db/adapter/pdo/mysql.zep", 285 TSRMLS_CC); @@ -53019,8 +52667,8 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Mysql, describeIndexes) { array_init(indexObjects); zephir_is_iterable(indexes, &_16, &_15, 0, 0, "phalcon/db/adapter/pdo/mysql.zep", 317); for ( - ; zephir_hash_get_current_data_ex(_16, (void**) &_17, &_15) == SUCCESS - ; zephir_hash_move_forward_ex(_16, &_15) + ; zend_hash_get_current_data_ex(_16, (void**) &_17, &_15) == SUCCESS + ; zend_hash_move_forward_ex(_16, &_15) ) { ZEPHIR_GET_HMKEY(name, _16, _15); ZEPHIR_GET_HVALUE(index, _17); @@ -53049,11 +52697,11 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Mysql, describeReferences) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &table_param, &schema_param); - if (unlikely(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'table' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(table_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(table_param) == IS_STRING)) { zephir_get_strval(table, table_param); } else { ZEPHIR_INIT_VAR(table); @@ -53063,11 +52711,11 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Mysql, describeReferences) { ZEPHIR_INIT_VAR(schema); ZVAL_EMPTY_STRING(schema); } else { - if (unlikely(Z_TYPE_P(schema_param) != IS_STRING && Z_TYPE_P(schema_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schema_param) != IS_STRING && Z_TYPE_P(schema_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schema' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schema_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schema_param) == IS_STRING)) { zephir_get_strval(schema, schema_param); } else { ZEPHIR_INIT_VAR(schema); @@ -53087,8 +52735,8 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Mysql, describeReferences) { zephir_check_call_status(); zephir_is_iterable(_0, &_5, &_4, 0, 0, "phalcon/db/adapter/pdo/mysql.zep", 371); for ( - ; zephir_hash_get_current_data_ex(_5, (void**) &_6, &_4) == SUCCESS - ; zephir_hash_move_forward_ex(_5, &_4) + ; zend_hash_get_current_data_ex(_5, (void**) &_6, &_4) == SUCCESS + ; zend_hash_move_forward_ex(_5, &_4) ) { ZEPHIR_GET_HVALUE(reference, _6); zephir_array_fetch_long(&constraintName, reference, 2, PH_NOISY | PH_READONLY, "phalcon/db/adapter/pdo/mysql.zep", 340 TSRMLS_CC); @@ -53143,8 +52791,8 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Mysql, describeReferences) { array_init(referenceObjects); zephir_is_iterable(references, &_17, &_16, 0, 0, "phalcon/db/adapter/pdo/mysql.zep", 383); for ( - ; zephir_hash_get_current_data_ex(_17, (void**) &_18, &_16) == SUCCESS - ; zephir_hash_move_forward_ex(_17, &_16) + ; zend_hash_get_current_data_ex(_17, (void**) &_18, &_16) == SUCCESS + ; zend_hash_move_forward_ex(_17, &_16) ) { ZEPHIR_GET_HMKEY(name, _17, _16); ZEPHIR_GET_HVALUE(arrayReference, _18); @@ -53290,8 +52938,8 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Postgresql, describeColumns) { zephir_check_call_status(); zephir_is_iterable(_0, &_5, &_4, 0, 0, "phalcon/db/adapter/pdo/postgresql.zep", 281); for ( - ; zephir_hash_get_current_data_ex(_5, (void**) &_6, &_4) == SUCCESS - ; zephir_hash_move_forward_ex(_5, &_4) + ; zend_hash_get_current_data_ex(_5, (void**) &_6, &_4) == SUCCESS + ; zend_hash_move_forward_ex(_5, &_4) ) { ZEPHIR_GET_HVALUE(field, _6); ZEPHIR_INIT_NVAR(definition); @@ -53472,27 +53120,27 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Postgresql, createTable) { zephir_fcall_cache_entry *_5 = NULL; int ZEPHIR_LAST_CALL_STATUS; zval *definition = NULL; - zval *tableName_param = NULL, *schemaName_param = NULL, *definition_param = NULL, *sql = NULL, *queries = NULL, *query = NULL, *exception = NULL, *columns = NULL, *_0, **_3$$6, *_4$$7 = NULL, *_6$$10, *_7$$10; + zval *tableName_param = NULL, *schemaName_param = NULL, *definition_param = NULL, *sql = NULL, *queries = NULL, *query = NULL, *exception = NULL, *columns = NULL, *_0, **_3$$6, *_4$$7 = NULL, *_6$$5, *_7$$10, *_8$$10; zval *tableName = NULL, *schemaName = NULL; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &definition_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { ZEPHIR_INIT_VAR(tableName); ZVAL_EMPTY_STRING(tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(schemaName); @@ -53523,8 +53171,8 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Postgresql, createTable) { zephir_check_call_status_or_jump(try_end_1); zephir_is_iterable(queries, &_2$$6, &_1$$6, 0, 0, "phalcon/db/adapter/pdo/postgresql.zep", 312); for ( - ; zephir_hash_get_current_data_ex(_2$$6, (void**) &_3$$6, &_1$$6) == SUCCESS - ; zephir_hash_move_forward_ex(_2$$6, &_1$$6) + ; zend_hash_get_current_data_ex(_2$$6, (void**) &_3$$6, &_1$$6) == SUCCESS + ; zend_hash_move_forward_ex(_2$$6, &_1$$6) ) { ZEPHIR_GET_HVALUE(query, _3$$6); if (ZEPHIR_IS_EMPTY(query)) { @@ -53542,9 +53190,11 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Postgresql, createTable) { try_end_1: if (EG(exception)) { - ZEPHIR_CPY_WRT(exception, EG(exception)); - if (zephir_instance_of_ev(exception, zend_exception_get_default(TSRMLS_C) TSRMLS_CC)) { + ZEPHIR_INIT_VAR(_6$$5); + ZEPHIR_CPY_WRT(_6$$5, EG(exception)); + if (zephir_instance_of_ev(_6$$5, zend_exception_get_default(TSRMLS_C) TSRMLS_CC)) { zend_clear_exception(TSRMLS_C); + ZEPHIR_CPY_WRT(exception, _6$$5); ZEPHIR_CALL_METHOD(NULL, this_ptr, "rollback", NULL, 0); zephir_check_call_status(); zephir_throw_exception_debug(exception, "phalcon/db/adapter/pdo/postgresql.zep", 316 TSRMLS_CC); @@ -53553,10 +53203,10 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Postgresql, createTable) { } } } else { - zephir_array_fetch_long(&_6$$10, queries, 0, PH_NOISY | PH_READONLY, "phalcon/db/adapter/pdo/postgresql.zep", 319 TSRMLS_CC); - ZEPHIR_INIT_VAR(_7$$10); - ZEPHIR_CONCAT_VS(_7$$10, _6$$10, ";"); - ZEPHIR_RETURN_CALL_METHOD(this_ptr, "execute", NULL, 0, _7$$10); + zephir_array_fetch_long(&_7$$10, queries, 0, PH_NOISY | PH_READONLY, "phalcon/db/adapter/pdo/postgresql.zep", 319 TSRMLS_CC); + ZEPHIR_INIT_VAR(_8$$10); + ZEPHIR_CONCAT_VS(_8$$10, _7$$10, ";"); + ZEPHIR_RETURN_CALL_METHOD(this_ptr, "execute", NULL, 0, _8$$10); zephir_check_call_status(); RETURN_MM(); } @@ -53570,27 +53220,27 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Postgresql, modifyColumn) { HashPosition _1$$4; zephir_fcall_cache_entry *_5 = NULL; int ZEPHIR_LAST_CALL_STATUS; - zval *tableName_param = NULL, *schemaName_param = NULL, *column, *currentColumn = NULL, *sql = NULL, *queries = NULL, *query = NULL, *exception = NULL, *_0, **_3$$4, *_4$$5 = NULL, *_6$$8 = NULL, *_7$$8, *_8$$8; + zval *tableName_param = NULL, *schemaName_param = NULL, *column, *currentColumn = NULL, *sql = NULL, *queries = NULL, *query = NULL, *exception = NULL, *_0, **_3$$4, *_4$$5 = NULL, *_6$$3, *_7$$8 = NULL, *_8$$8, *_9$$8; zval *tableName = NULL, *schemaName = NULL; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 1, &tableName_param, &schemaName_param, &column, ¤tColumn); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { ZEPHIR_INIT_VAR(tableName); ZVAL_EMPTY_STRING(tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(schemaName); @@ -53614,8 +53264,8 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Postgresql, modifyColumn) { zephir_check_call_status_or_jump(try_end_1); zephir_is_iterable(queries, &_2$$4, &_1$$4, 0, 0, "phalcon/db/adapter/pdo/postgresql.zep", 344); for ( - ; zephir_hash_get_current_data_ex(_2$$4, (void**) &_3$$4, &_1$$4) == SUCCESS - ; zephir_hash_move_forward_ex(_2$$4, &_1$$4) + ; zend_hash_get_current_data_ex(_2$$4, (void**) &_3$$4, &_1$$4) == SUCCESS + ; zend_hash_move_forward_ex(_2$$4, &_1$$4) ) { ZEPHIR_GET_HVALUE(query, _3$$4); if (ZEPHIR_IS_EMPTY(query)) { @@ -53633,9 +53283,11 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Postgresql, modifyColumn) { try_end_1: if (EG(exception)) { - ZEPHIR_CPY_WRT(exception, EG(exception)); - if (zephir_instance_of_ev(exception, zend_exception_get_default(TSRMLS_C) TSRMLS_CC)) { + ZEPHIR_INIT_VAR(_6$$3); + ZEPHIR_CPY_WRT(_6$$3, EG(exception)); + if (zephir_instance_of_ev(_6$$3, zend_exception_get_default(TSRMLS_C) TSRMLS_CC)) { zend_clear_exception(TSRMLS_C); + ZEPHIR_CPY_WRT(exception, _6$$3); ZEPHIR_CALL_METHOD(NULL, this_ptr, "rollback", NULL, 0); zephir_check_call_status(); zephir_throw_exception_debug(exception, "phalcon/db/adapter/pdo/postgresql.zep", 349 TSRMLS_CC); @@ -53644,17 +53296,17 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Postgresql, modifyColumn) { } } } else { - ZEPHIR_INIT_VAR(_6$$8); + ZEPHIR_INIT_VAR(_7$$8); if (!(ZEPHIR_IS_EMPTY(sql))) { - zephir_array_fetch_long(&_7$$8, queries, 0, PH_NOISY | PH_READONLY, "phalcon/db/adapter/pdo/postgresql.zep", 353 TSRMLS_CC); - ZEPHIR_INIT_VAR(_8$$8); - ZEPHIR_CONCAT_VS(_8$$8, _7$$8, ";"); - ZEPHIR_CALL_METHOD(&_6$$8, this_ptr, "execute", NULL, 0, _8$$8); + zephir_array_fetch_long(&_8$$8, queries, 0, PH_NOISY | PH_READONLY, "phalcon/db/adapter/pdo/postgresql.zep", 353 TSRMLS_CC); + ZEPHIR_INIT_VAR(_9$$8); + ZEPHIR_CONCAT_VS(_9$$8, _8$$8, ";"); + ZEPHIR_CALL_METHOD(&_7$$8, this_ptr, "execute", NULL, 0, _9$$8); zephir_check_call_status(); } else { - ZVAL_BOOL(_6$$8, 1); + ZVAL_BOOL(_7$$8, 1); } - RETURN_CCTOR(_6$$8); + RETURN_CCTOR(_7$$8); } RETURN_MM_BOOL(1); @@ -53788,8 +53440,8 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Sqlite, describeColumns) { zephir_check_call_status(); zephir_is_iterable(_0, &_5, &_4, 0, 0, "phalcon/db/adapter/pdo/sqlite.zep", 252); for ( - ; zephir_hash_get_current_data_ex(_5, (void**) &_6, &_4) == SUCCESS - ; zephir_hash_move_forward_ex(_5, &_4) + ; zend_hash_get_current_data_ex(_5, (void**) &_6, &_4) == SUCCESS + ; zend_hash_move_forward_ex(_5, &_4) ) { ZEPHIR_GET_HVALUE(field, _6); ZEPHIR_INIT_NVAR(definition); @@ -53976,8 +53628,8 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Sqlite, describeIndexes) { zephir_check_call_status(); zephir_is_iterable(_0, &_5, &_4, 0, 0, "phalcon/db/adapter/pdo/sqlite.zep", 304); for ( - ; zephir_hash_get_current_data_ex(_5, (void**) &_6, &_4) == SUCCESS - ; zephir_hash_move_forward_ex(_5, &_4) + ; zend_hash_get_current_data_ex(_5, (void**) &_6, &_4) == SUCCESS + ; zend_hash_move_forward_ex(_5, &_4) ) { ZEPHIR_GET_HVALUE(index, _6); ZEPHIR_OBS_NVAR(keyName); @@ -54005,8 +53657,8 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Sqlite, describeIndexes) { zephir_check_call_status(); zephir_is_iterable(_10$$3, &_15$$3, &_14$$3, 0, 0, "phalcon/db/adapter/pdo/sqlite.zep", 290); for ( - ; zephir_hash_get_current_data_ex(_15$$3, (void**) &_16$$3, &_14$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_15$$3, &_14$$3) + ; zend_hash_get_current_data_ex(_15$$3, (void**) &_16$$3, &_14$$3) == SUCCESS + ; zend_hash_move_forward_ex(_15$$3, &_14$$3) ) { ZEPHIR_GET_HVALUE(describeIndex, _16$$3); zephir_array_fetch_string(&_17$$7, describeIndex, SL("name"), PH_NOISY | PH_READONLY, "phalcon/db/adapter/pdo/sqlite.zep", 287 TSRMLS_CC); @@ -54042,8 +53694,8 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Sqlite, describeIndexes) { array_init(indexObjects); zephir_is_iterable(indexes, &_28, &_27, 0, 0, "phalcon/db/adapter/pdo/sqlite.zep", 309); for ( - ; zephir_hash_get_current_data_ex(_28, (void**) &_29, &_27) == SUCCESS - ; zephir_hash_move_forward_ex(_28, &_27) + ; zend_hash_get_current_data_ex(_28, (void**) &_29, &_27) == SUCCESS + ; zend_hash_move_forward_ex(_28, &_27) ) { ZEPHIR_GET_HMKEY(name, _28, _27); ZEPHIR_GET_HVALUE(index, _29); @@ -54087,8 +53739,8 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Sqlite, describeReferences) { zephir_check_call_status(); zephir_is_iterable(_0, &_5, &_4, 0, 0, "phalcon/db/adapter/pdo/sqlite.zep", 354); for ( - ; zephir_hash_get_current_data_ex(_5, (void**) &_6, &_4) == SUCCESS - ; zephir_hash_move_forward_ex(_5, &_4) + ; zend_hash_get_current_data_ex(_5, (void**) &_6, &_4) == SUCCESS + ; zend_hash_move_forward_ex(_5, &_4) ) { ZEPHIR_GET_HMKEY(number, _5, _4); ZEPHIR_GET_HVALUE(reference, _6); @@ -54133,8 +53785,8 @@ static PHP_METHOD(Phalcon_Db_Adapter_Pdo_Sqlite, describeReferences) { array_init(referenceObjects); zephir_is_iterable(references, &_15, &_14, 0, 0, "phalcon/db/adapter/pdo/sqlite.zep", 364); for ( - ; zephir_hash_get_current_data_ex(_15, (void**) &_16, &_14) == SUCCESS - ; zephir_hash_move_forward_ex(_15, &_14) + ; zend_hash_get_current_data_ex(_15, (void**) &_16, &_14) == SUCCESS + ; zend_hash_move_forward_ex(_15, &_14) ) { ZEPHIR_GET_HMKEY(name, _15, _14); ZEPHIR_GET_HVALUE(arrayReference, _16); @@ -54434,8 +54086,8 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, getColumnDefinition) { ZVAL_STRING(valueSql$$51, "", 1); zephir_is_iterable(typeValues, &_24$$51, &_23$$51, 0, 0, "phalcon/db/dialect/mysql.zep", 208); for ( - ; zephir_hash_get_current_data_ex(_24$$51, (void**) &_25$$51, &_23$$51) == SUCCESS - ; zephir_hash_move_forward_ex(_24$$51, &_23$$51) + ; zend_hash_get_current_data_ex(_24$$51, (void**) &_25$$51, &_23$$51) == SUCCESS + ; zend_hash_move_forward_ex(_24$$51, &_23$$51) ) { ZEPHIR_GET_HVALUE(value$$51, _25$$51); ZEPHIR_SINIT_NVAR(_26$$52); @@ -54480,21 +54132,21 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, addColumn) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &column); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { ZEPHIR_INIT_VAR(tableName); ZVAL_EMPTY_STRING(tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(schemaName); @@ -54565,21 +54217,21 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, modifyColumn) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 1, &tableName_param, &schemaName_param, &column, ¤tColumn); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { ZEPHIR_INIT_VAR(tableName); ZVAL_EMPTY_STRING(tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(schemaName); @@ -54653,31 +54305,31 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, dropColumn) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &columnName_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { ZEPHIR_INIT_VAR(tableName); ZVAL_EMPTY_STRING(tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(schemaName); ZVAL_EMPTY_STRING(schemaName); } - if (unlikely(Z_TYPE_P(columnName_param) != IS_STRING && Z_TYPE_P(columnName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(columnName_param) != IS_STRING && Z_TYPE_P(columnName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'columnName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(columnName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(columnName_param) == IS_STRING)) { zephir_get_strval(columnName, columnName_param); } else { ZEPHIR_INIT_VAR(columnName); @@ -54701,21 +54353,21 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, addIndex) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &index); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { ZEPHIR_INIT_VAR(tableName); ZVAL_EMPTY_STRING(tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(schemaName); @@ -54758,31 +54410,31 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, dropIndex) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &indexName_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { ZEPHIR_INIT_VAR(tableName); ZVAL_EMPTY_STRING(tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(schemaName); ZVAL_EMPTY_STRING(schemaName); } - if (unlikely(Z_TYPE_P(indexName_param) != IS_STRING && Z_TYPE_P(indexName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(indexName_param) != IS_STRING && Z_TYPE_P(indexName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'indexName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(indexName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(indexName_param) == IS_STRING)) { zephir_get_strval(indexName, indexName_param); } else { ZEPHIR_INIT_VAR(indexName); @@ -54806,21 +54458,21 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, addPrimaryKey) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &index); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { ZEPHIR_INIT_VAR(tableName); ZVAL_EMPTY_STRING(tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(schemaName); @@ -54848,21 +54500,21 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, dropPrimaryKey) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &tableName_param, &schemaName_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { ZEPHIR_INIT_VAR(tableName); ZVAL_EMPTY_STRING(tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(schemaName); @@ -54886,21 +54538,21 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, addForeignKey) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &reference); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { ZEPHIR_INIT_VAR(tableName); ZVAL_EMPTY_STRING(tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(schemaName); @@ -54955,31 +54607,31 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, dropForeignKey) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &referenceName_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { ZEPHIR_INIT_VAR(tableName); ZVAL_EMPTY_STRING(tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(schemaName); ZVAL_EMPTY_STRING(schemaName); } - if (unlikely(Z_TYPE_P(referenceName_param) != IS_STRING && Z_TYPE_P(referenceName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(referenceName_param) != IS_STRING && Z_TYPE_P(referenceName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'referenceName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(referenceName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(referenceName_param) == IS_STRING)) { zephir_get_strval(referenceName, referenceName_param); } else { ZEPHIR_INIT_VAR(referenceName); @@ -55007,21 +54659,21 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, createTable) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &definition_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { ZEPHIR_INIT_VAR(tableName); ZVAL_EMPTY_STRING(tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(schemaName); @@ -55054,8 +54706,8 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, createTable) { array_init(createLines); zephir_is_iterable(columns, &_1, &_0, 0, 0, "phalcon/db/dialect/mysql.zep", 448); for ( - ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS - ; zephir_hash_move_forward_ex(_1, &_0) + ; zend_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS + ; zend_hash_move_forward_ex(_1, &_0) ) { ZEPHIR_GET_HVALUE(column, _2); ZEPHIR_CALL_METHOD(&_3$$7, column, "getname", NULL, 0); @@ -55104,8 +54756,8 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, createTable) { if (zephir_array_isset_string_fetch(&indexes, definition, SS("indexes"), 0 TSRMLS_CC)) { zephir_is_iterable(indexes, &_16$$14, &_15$$14, 0, 0, "phalcon/db/dialect/mysql.zep", 470); for ( - ; zephir_hash_get_current_data_ex(_16$$14, (void**) &_17$$14, &_15$$14) == SUCCESS - ; zephir_hash_move_forward_ex(_16$$14, &_15$$14) + ; zend_hash_get_current_data_ex(_16$$14, (void**) &_17$$14, &_15$$14) == SUCCESS + ; zend_hash_move_forward_ex(_16$$14, &_15$$14) ) { ZEPHIR_GET_HVALUE(index, _17$$14); ZEPHIR_CALL_METHOD(&indexName, index, "getname", NULL, 0); @@ -55142,8 +54794,8 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, createTable) { if (zephir_array_isset_string_fetch(&references, definition, SS("references"), 0 TSRMLS_CC)) { zephir_is_iterable(references, &_26$$20, &_25$$20, 0, 0, "phalcon/db/dialect/mysql.zep", 492); for ( - ; zephir_hash_get_current_data_ex(_26$$20, (void**) &_27$$20, &_25$$20) == SUCCESS - ; zephir_hash_move_forward_ex(_26$$20, &_25$$20) + ; zend_hash_get_current_data_ex(_26$$20, (void**) &_27$$20, &_25$$20) == SUCCESS + ; zend_hash_move_forward_ex(_26$$20, &_25$$20) ) { ZEPHIR_GET_HVALUE(reference, _27$$20); ZEPHIR_CALL_METHOD(&_28$$21, reference, "getname", NULL, 0); @@ -55201,21 +54853,21 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, truncateTable) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &tableName_param, &schemaName_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { ZEPHIR_INIT_VAR(tableName); ZVAL_EMPTY_STRING(tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(schemaName); @@ -55249,11 +54901,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, dropTable) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &tableName_param, &schemaName_param, &ifExists_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { ZEPHIR_INIT_VAR(tableName); @@ -55268,7 +54920,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, dropTable) { if (!ifExists_param) { ifExists = 1; } else { - if (unlikely(Z_TYPE_P(ifExists_param) != IS_BOOL)) { + if (UNEXPECTED(Z_TYPE_P(ifExists_param) != IS_BOOL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'ifExists' must be a bool") TSRMLS_CC); RETURN_MM_NULL(); } @@ -55298,11 +54950,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, createView) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 1, &viewName_param, &definition_param, &schemaName_param); - if (unlikely(Z_TYPE_P(viewName_param) != IS_STRING && Z_TYPE_P(viewName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(viewName_param) != IS_STRING && Z_TYPE_P(viewName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'viewName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(viewName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(viewName_param) == IS_STRING)) { zephir_get_strval(viewName, viewName_param); } else { ZEPHIR_INIT_VAR(viewName); @@ -55339,11 +54991,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, dropView) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &viewName_param, &schemaName_param, &ifExists_param); - if (unlikely(Z_TYPE_P(viewName_param) != IS_STRING && Z_TYPE_P(viewName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(viewName_param) != IS_STRING && Z_TYPE_P(viewName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'viewName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(viewName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(viewName_param) == IS_STRING)) { zephir_get_strval(viewName, viewName_param); } else { ZEPHIR_INIT_VAR(viewName); @@ -55358,7 +55010,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, dropView) { if (!ifExists_param) { ifExists = 1; } else { - if (unlikely(Z_TYPE_P(ifExists_param) != IS_BOOL)) { + if (UNEXPECTED(Z_TYPE_P(ifExists_param) != IS_BOOL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'ifExists' must be a bool") TSRMLS_CC); RETURN_MM_NULL(); } @@ -55386,11 +55038,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, tableExists) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &tableName_param, &schemaName_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { ZEPHIR_INIT_VAR(tableName); @@ -55421,11 +55073,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, viewExists) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &viewName_param, &schemaName_param); - if (unlikely(Z_TYPE_P(viewName_param) != IS_STRING && Z_TYPE_P(viewName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(viewName_param) != IS_STRING && Z_TYPE_P(viewName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'viewName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(viewName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(viewName_param) == IS_STRING)) { zephir_get_strval(viewName, viewName_param); } else { ZEPHIR_INIT_VAR(viewName); @@ -55457,11 +55109,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, describeColumns) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &table_param, &schema_param); - if (unlikely(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'table' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(table_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(table_param) == IS_STRING)) { zephir_get_strval(table, table_param); } else { ZEPHIR_INIT_VAR(table); @@ -55518,11 +55170,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, listViews) { ZEPHIR_INIT_VAR(schemaName); ZVAL_EMPTY_STRING(schemaName); } else { - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(schemaName); @@ -55548,11 +55200,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, describeIndexes) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &table_param, &schema_param); - if (unlikely(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'table' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(table_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(table_param) == IS_STRING)) { zephir_get_strval(table, table_param); } else { ZEPHIR_INIT_VAR(table); @@ -55581,11 +55233,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, describeReferences) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &table_param, &schema_param); - if (unlikely(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'table' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(table_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(table_param) == IS_STRING)) { zephir_get_strval(table, table_param); } else { ZEPHIR_INIT_VAR(table); @@ -55622,11 +55274,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Mysql, tableOptions) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &table_param, &schema_param); - if (unlikely(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'table' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(table_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(table_param) == IS_STRING)) { zephir_get_strval(table, table_param); } else { ZEPHIR_INIT_VAR(table); @@ -55872,8 +55524,8 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, getColumnDefinition) { ZVAL_STRING(valueSql$$37, "", 1); zephir_is_iterable(typeValues, &_10$$37, &_9$$37, 0, 0, "phalcon/db/dialect/postgresql.zep", 161); for ( - ; zephir_hash_get_current_data_ex(_10$$37, (void**) &_11$$37, &_9$$37) == SUCCESS - ; zephir_hash_move_forward_ex(_10$$37, &_9$$37) + ; zend_hash_get_current_data_ex(_10$$37, (void**) &_11$$37, &_9$$37) == SUCCESS + ; zend_hash_move_forward_ex(_10$$37, &_9$$37) ) { ZEPHIR_GET_HVALUE(value$$37, _11$$37); ZEPHIR_SINIT_NVAR(_12$$38); @@ -55918,21 +55570,21 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, addColumn) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &column); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { ZEPHIR_INIT_VAR(tableName); ZVAL_EMPTY_STRING(tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(schemaName); @@ -55979,21 +55631,21 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, modifyColumn) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 1, &tableName_param, &schemaName_param, &column, ¤tColumn); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { ZEPHIR_INIT_VAR(tableName); ZVAL_EMPTY_STRING(tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(schemaName); @@ -56117,31 +55769,31 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, dropColumn) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &columnName_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { ZEPHIR_INIT_VAR(tableName); ZVAL_EMPTY_STRING(tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(schemaName); ZVAL_EMPTY_STRING(schemaName); } - if (unlikely(Z_TYPE_P(columnName_param) != IS_STRING && Z_TYPE_P(columnName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(columnName_param) != IS_STRING && Z_TYPE_P(columnName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'columnName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(columnName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(columnName_param) == IS_STRING)) { zephir_get_strval(columnName, columnName_param); } else { ZEPHIR_INIT_VAR(columnName); @@ -56165,21 +55817,21 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, addIndex) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &index); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { ZEPHIR_INIT_VAR(tableName); ZVAL_EMPTY_STRING(tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(schemaName); @@ -56229,31 +55881,31 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, dropIndex) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &indexName_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { ZEPHIR_INIT_VAR(tableName); ZVAL_EMPTY_STRING(tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(schemaName); ZVAL_EMPTY_STRING(schemaName); } - if (unlikely(Z_TYPE_P(indexName_param) != IS_STRING && Z_TYPE_P(indexName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(indexName_param) != IS_STRING && Z_TYPE_P(indexName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'indexName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(indexName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(indexName_param) == IS_STRING)) { zephir_get_strval(indexName, indexName_param); } else { ZEPHIR_INIT_VAR(indexName); @@ -56275,21 +55927,21 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, addPrimaryKey) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &index); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { ZEPHIR_INIT_VAR(tableName); ZVAL_EMPTY_STRING(tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(schemaName); @@ -56317,21 +55969,21 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, dropPrimaryKey) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &tableName_param, &schemaName_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { ZEPHIR_INIT_VAR(tableName); ZVAL_EMPTY_STRING(tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(schemaName); @@ -56355,21 +56007,21 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, addForeignKey) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &reference); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { ZEPHIR_INIT_VAR(tableName); ZVAL_EMPTY_STRING(tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(schemaName); @@ -56420,31 +56072,31 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, dropForeignKey) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &referenceName_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { ZEPHIR_INIT_VAR(tableName); ZVAL_EMPTY_STRING(tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(schemaName); ZVAL_EMPTY_STRING(schemaName); } - if (unlikely(Z_TYPE_P(referenceName_param) != IS_STRING && Z_TYPE_P(referenceName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(referenceName_param) != IS_STRING && Z_TYPE_P(referenceName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'referenceName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(referenceName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(referenceName_param) == IS_STRING)) { zephir_get_strval(referenceName, referenceName_param); } else { ZEPHIR_INIT_VAR(referenceName); @@ -56472,21 +56124,21 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, createTable) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &definition_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { ZEPHIR_INIT_VAR(tableName); ZVAL_EMPTY_STRING(tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(schemaName); @@ -56521,8 +56173,8 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, createTable) { array_init(primaryColumns); zephir_is_iterable(columns, &_1, &_0, 0, 0, "phalcon/db/dialect/postgresql.zep", 399); for ( - ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS - ; zephir_hash_move_forward_ex(_1, &_0) + ; zend_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS + ; zend_hash_move_forward_ex(_1, &_0) ) { ZEPHIR_GET_HVALUE(column, _2); ZEPHIR_CALL_METHOD(&columnDefinition, this_ptr, "getcolumndefinition", &_3, 0, column); @@ -56575,8 +56227,8 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, createTable) { if (zephir_array_isset_string_fetch(&indexes, definition, SS("indexes"), 0 TSRMLS_CC)) { zephir_is_iterable(indexes, &_16$$14, &_15$$14, 0, 0, "phalcon/db/dialect/postgresql.zep", 434); for ( - ; zephir_hash_get_current_data_ex(_16$$14, (void**) &_17$$14, &_15$$14) == SUCCESS - ; zephir_hash_move_forward_ex(_16$$14, &_15$$14) + ; zend_hash_get_current_data_ex(_16$$14, (void**) &_17$$14, &_15$$14) == SUCCESS + ; zend_hash_move_forward_ex(_16$$14, &_15$$14) ) { ZEPHIR_GET_HVALUE(index, _17$$14); ZEPHIR_CALL_METHOD(&indexName, index, "getname", NULL, 0); @@ -56626,8 +56278,8 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, createTable) { if (zephir_array_isset_string_fetch(&references, definition, SS("references"), 0 TSRMLS_CC)) { zephir_is_iterable(references, &_29$$21, &_28$$21, 0, 0, "phalcon/db/dialect/postgresql.zep", 459); for ( - ; zephir_hash_get_current_data_ex(_29$$21, (void**) &_30$$21, &_28$$21) == SUCCESS - ; zephir_hash_move_forward_ex(_29$$21, &_28$$21) + ; zend_hash_get_current_data_ex(_29$$21, (void**) &_30$$21, &_28$$21) == SUCCESS + ; zend_hash_move_forward_ex(_29$$21, &_28$$21) ) { ZEPHIR_GET_HVALUE(reference, _30$$21); ZEPHIR_CALL_METHOD(&_31$$22, reference, "getname", NULL, 0); @@ -56694,21 +56346,21 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, truncateTable) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &tableName_param, &schemaName_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { ZEPHIR_INIT_VAR(tableName); ZVAL_EMPTY_STRING(tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(schemaName); @@ -56739,11 +56391,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, dropTable) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &tableName_param, &schemaName_param, &ifExists_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { ZEPHIR_INIT_VAR(tableName); @@ -56758,7 +56410,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, dropTable) { if (!ifExists_param) { ifExists = 1; } else { - if (unlikely(Z_TYPE_P(ifExists_param) != IS_BOOL)) { + if (UNEXPECTED(Z_TYPE_P(ifExists_param) != IS_BOOL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'ifExists' must be a bool") TSRMLS_CC); RETURN_MM_NULL(); } @@ -56788,11 +56440,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, createView) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 1, &viewName_param, &definition_param, &schemaName_param); - if (unlikely(Z_TYPE_P(viewName_param) != IS_STRING && Z_TYPE_P(viewName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(viewName_param) != IS_STRING && Z_TYPE_P(viewName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'viewName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(viewName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(viewName_param) == IS_STRING)) { zephir_get_strval(viewName, viewName_param); } else { ZEPHIR_INIT_VAR(viewName); @@ -56829,11 +56481,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, dropView) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &viewName_param, &schemaName_param, &ifExists_param); - if (unlikely(Z_TYPE_P(viewName_param) != IS_STRING && Z_TYPE_P(viewName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(viewName_param) != IS_STRING && Z_TYPE_P(viewName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'viewName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(viewName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(viewName_param) == IS_STRING)) { zephir_get_strval(viewName, viewName_param); } else { ZEPHIR_INIT_VAR(viewName); @@ -56848,7 +56500,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, dropView) { if (!ifExists_param) { ifExists = 1; } else { - if (unlikely(Z_TYPE_P(ifExists_param) != IS_BOOL)) { + if (UNEXPECTED(Z_TYPE_P(ifExists_param) != IS_BOOL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'ifExists' must be a bool") TSRMLS_CC); RETURN_MM_NULL(); } @@ -56876,11 +56528,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, tableExists) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &tableName_param, &schemaName_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { ZEPHIR_INIT_VAR(tableName); @@ -56911,11 +56563,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, viewExists) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &viewName_param, &schemaName_param); - if (unlikely(Z_TYPE_P(viewName_param) != IS_STRING && Z_TYPE_P(viewName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(viewName_param) != IS_STRING && Z_TYPE_P(viewName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'viewName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(viewName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(viewName_param) == IS_STRING)) { zephir_get_strval(viewName, viewName_param); } else { ZEPHIR_INIT_VAR(viewName); @@ -56946,11 +56598,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, describeColumns) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &table_param, &schema_param); - if (unlikely(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'table' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(table_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(table_param) == IS_STRING)) { zephir_get_strval(table, table_param); } else { ZEPHIR_INIT_VAR(table); @@ -57024,11 +56676,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, describeIndexes) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &table_param, &schema_param); - if (unlikely(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'table' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(table_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(table_param) == IS_STRING)) { zephir_get_strval(table, table_param); } else { ZEPHIR_INIT_VAR(table); @@ -57055,11 +56707,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, describeReferences) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &table_param, &schema_param); - if (unlikely(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'table' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(table_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(table_param) == IS_STRING)) { zephir_get_strval(table, table_param); } else { ZEPHIR_INIT_VAR(table); @@ -57096,11 +56748,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Postgresql, tableOptions) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &table_param, &schema_param); - if (unlikely(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'table' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(table_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(table_param) == IS_STRING)) { zephir_get_strval(table, table_param); } else { ZEPHIR_INIT_VAR(table); @@ -57384,8 +57036,8 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, getColumnDefinition) { ZVAL_STRING(valueSql$$41, "", 1); zephir_is_iterable(typeValues, &_13$$41, &_12$$41, 0, 0, "phalcon/db/dialect/sqlite.zep", 180); for ( - ; zephir_hash_get_current_data_ex(_13$$41, (void**) &_14$$41, &_12$$41) == SUCCESS - ; zephir_hash_move_forward_ex(_13$$41, &_12$$41) + ; zend_hash_get_current_data_ex(_13$$41, (void**) &_14$$41, &_12$$41) == SUCCESS + ; zend_hash_move_forward_ex(_13$$41, &_12$$41) ) { ZEPHIR_GET_HVALUE(value$$41, _14$$41); ZEPHIR_SINIT_NVAR(_15$$42); @@ -57430,21 +57082,21 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, addColumn) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &column); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { ZEPHIR_INIT_VAR(tableName); ZVAL_EMPTY_STRING(tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(schemaName); @@ -57504,21 +57156,21 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, modifyColumn) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 1, &tableName_param, &schemaName_param, &column, ¤tColumn); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { ZEPHIR_INIT_VAR(tableName); ZVAL_EMPTY_STRING(tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(schemaName); @@ -57542,31 +57194,31 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, dropColumn) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &columnName_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { ZEPHIR_INIT_VAR(tableName); ZVAL_EMPTY_STRING(tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(schemaName); ZVAL_EMPTY_STRING(schemaName); } - if (unlikely(Z_TYPE_P(columnName_param) != IS_STRING && Z_TYPE_P(columnName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(columnName_param) != IS_STRING && Z_TYPE_P(columnName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'columnName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(columnName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(columnName_param) == IS_STRING)) { zephir_get_strval(columnName, columnName_param); } else { ZEPHIR_INIT_VAR(columnName); @@ -57588,21 +57240,21 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, addIndex) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &index); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { ZEPHIR_INIT_VAR(tableName); ZVAL_EMPTY_STRING(tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(schemaName); @@ -57650,31 +57302,31 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, dropIndex) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &indexName_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { ZEPHIR_INIT_VAR(tableName); ZVAL_EMPTY_STRING(tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(schemaName); ZVAL_EMPTY_STRING(schemaName); } - if (unlikely(Z_TYPE_P(indexName_param) != IS_STRING && Z_TYPE_P(indexName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(indexName_param) != IS_STRING && Z_TYPE_P(indexName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'indexName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(indexName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(indexName_param) == IS_STRING)) { zephir_get_strval(indexName, indexName_param); } else { ZEPHIR_INIT_VAR(indexName); @@ -57699,21 +57351,21 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, addPrimaryKey) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &index); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { ZEPHIR_INIT_VAR(tableName); ZVAL_EMPTY_STRING(tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(schemaName); @@ -57734,21 +57386,21 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, dropPrimaryKey) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &tableName_param, &schemaName_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { ZEPHIR_INIT_VAR(tableName); ZVAL_EMPTY_STRING(tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(schemaName); @@ -57769,21 +57421,21 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, addForeignKey) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &reference); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { ZEPHIR_INIT_VAR(tableName); ZVAL_EMPTY_STRING(tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(schemaName); @@ -57804,31 +57456,31 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, dropForeignKey) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &referenceName_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { ZEPHIR_INIT_VAR(tableName); ZVAL_EMPTY_STRING(tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(schemaName); ZVAL_EMPTY_STRING(schemaName); } - if (unlikely(Z_TYPE_P(referenceName_param) != IS_STRING && Z_TYPE_P(referenceName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(referenceName_param) != IS_STRING && Z_TYPE_P(referenceName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'referenceName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(referenceName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(referenceName_param) == IS_STRING)) { zephir_get_strval(referenceName, referenceName_param); } else { ZEPHIR_INIT_VAR(referenceName); @@ -57855,21 +57507,21 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, createTable) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &tableName_param, &schemaName_param, &definition_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { ZEPHIR_INIT_VAR(tableName); ZVAL_EMPTY_STRING(tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(schemaName); @@ -57903,8 +57555,8 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, createTable) { array_init(createLines); zephir_is_iterable(columns, &_1, &_0, 0, 0, "phalcon/db/dialect/sqlite.zep", 380); for ( - ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS - ; zephir_hash_move_forward_ex(_1, &_0) + ; zend_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS + ; zend_hash_move_forward_ex(_1, &_0) ) { ZEPHIR_GET_HVALUE(column, _2); ZEPHIR_CALL_METHOD(&_3$$7, column, "getname", NULL, 0); @@ -57962,8 +57614,8 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, createTable) { if (zephir_array_isset_string_fetch(&indexes, definition, SS("indexes"), 0 TSRMLS_CC)) { zephir_is_iterable(indexes, &_18$$14, &_17$$14, 0, 0, "phalcon/db/dialect/sqlite.zep", 396); for ( - ; zephir_hash_get_current_data_ex(_18$$14, (void**) &_19$$14, &_17$$14) == SUCCESS - ; zephir_hash_move_forward_ex(_18$$14, &_17$$14) + ; zend_hash_get_current_data_ex(_18$$14, (void**) &_19$$14, &_17$$14) == SUCCESS + ; zend_hash_move_forward_ex(_18$$14, &_17$$14) ) { ZEPHIR_GET_HVALUE(index, _19$$14); ZEPHIR_CALL_METHOD(&indexName, index, "getname", NULL, 0); @@ -58003,8 +57655,8 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, createTable) { if (zephir_array_isset_string_fetch(&references, definition, SS("references"), 0 TSRMLS_CC)) { zephir_is_iterable(references, &_31$$18, &_30$$18, 0, 0, "phalcon/db/dialect/sqlite.zep", 418); for ( - ; zephir_hash_get_current_data_ex(_31$$18, (void**) &_32$$18, &_30$$18) == SUCCESS - ; zephir_hash_move_forward_ex(_31$$18, &_30$$18) + ; zend_hash_get_current_data_ex(_31$$18, (void**) &_32$$18, &_30$$18) == SUCCESS + ; zend_hash_move_forward_ex(_31$$18, &_30$$18) ) { ZEPHIR_GET_HVALUE(reference, _32$$18); ZEPHIR_CALL_METHOD(&_33$$19, reference, "getname", NULL, 0); @@ -58055,21 +57707,21 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, truncateTable) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &tableName_param, &schemaName_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { ZEPHIR_INIT_VAR(tableName); ZVAL_EMPTY_STRING(tableName); } - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(schemaName); @@ -58100,11 +57752,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, dropTable) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &tableName_param, &schemaName_param, &ifExists_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { ZEPHIR_INIT_VAR(tableName); @@ -58119,7 +57771,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, dropTable) { if (!ifExists_param) { ifExists = 1; } else { - if (unlikely(Z_TYPE_P(ifExists_param) != IS_BOOL)) { + if (UNEXPECTED(Z_TYPE_P(ifExists_param) != IS_BOOL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'ifExists' must be a bool") TSRMLS_CC); RETURN_MM_NULL(); } @@ -58149,11 +57801,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, createView) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 1, &viewName_param, &definition_param, &schemaName_param); - if (unlikely(Z_TYPE_P(viewName_param) != IS_STRING && Z_TYPE_P(viewName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(viewName_param) != IS_STRING && Z_TYPE_P(viewName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'viewName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(viewName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(viewName_param) == IS_STRING)) { zephir_get_strval(viewName, viewName_param); } else { ZEPHIR_INIT_VAR(viewName); @@ -58190,11 +57842,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, dropView) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &viewName_param, &schemaName_param, &ifExists_param); - if (unlikely(Z_TYPE_P(viewName_param) != IS_STRING && Z_TYPE_P(viewName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(viewName_param) != IS_STRING && Z_TYPE_P(viewName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'viewName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(viewName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(viewName_param) == IS_STRING)) { zephir_get_strval(viewName, viewName_param); } else { ZEPHIR_INIT_VAR(viewName); @@ -58209,7 +57861,7 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, dropView) { if (!ifExists_param) { ifExists = 1; } else { - if (unlikely(Z_TYPE_P(ifExists_param) != IS_BOOL)) { + if (UNEXPECTED(Z_TYPE_P(ifExists_param) != IS_BOOL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'ifExists' must be a bool") TSRMLS_CC); RETURN_MM_NULL(); } @@ -58236,11 +57888,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, tableExists) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &tableName_param, &schemaName_param); - if (unlikely(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(tableName_param) != IS_STRING && Z_TYPE_P(tableName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'tableName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(tableName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(tableName_param) == IS_STRING)) { zephir_get_strval(tableName, tableName_param); } else { ZEPHIR_INIT_VAR(tableName); @@ -58267,11 +57919,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, viewExists) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &viewName_param, &schemaName_param); - if (unlikely(Z_TYPE_P(viewName_param) != IS_STRING && Z_TYPE_P(viewName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(viewName_param) != IS_STRING && Z_TYPE_P(viewName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'viewName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(viewName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(viewName_param) == IS_STRING)) { zephir_get_strval(viewName, viewName_param); } else { ZEPHIR_INIT_VAR(viewName); @@ -58298,11 +57950,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, describeColumns) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &table_param, &schema_param); - if (unlikely(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'table' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(table_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(table_param) == IS_STRING)) { zephir_get_strval(table, table_param); } else { ZEPHIR_INIT_VAR(table); @@ -58353,11 +58005,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, listViews) { ZEPHIR_INIT_VAR(schemaName); ZVAL_EMPTY_STRING(schemaName); } else { - if (unlikely(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schemaName_param) != IS_STRING && Z_TYPE_P(schemaName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schemaName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schemaName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schemaName_param) == IS_STRING)) { zephir_get_strval(schemaName, schemaName_param); } else { ZEPHIR_INIT_VAR(schemaName); @@ -58379,11 +58031,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, listIndexesSql) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &table_param, &schema_param, &keyName_param); - if (unlikely(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'table' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(table_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(table_param) == IS_STRING)) { zephir_get_strval(table, table_param); } else { ZEPHIR_INIT_VAR(table); @@ -58427,11 +58079,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, describeIndexes) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &table_param, &schema_param); - if (unlikely(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'table' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(table_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(table_param) == IS_STRING)) { zephir_get_strval(table, table_param); } else { ZEPHIR_INIT_VAR(table); @@ -58458,11 +58110,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, describeIndex) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &index_param); - if (unlikely(Z_TYPE_P(index_param) != IS_STRING && Z_TYPE_P(index_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(index_param) != IS_STRING && Z_TYPE_P(index_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'index' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(index_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(index_param) == IS_STRING)) { zephir_get_strval(index, index_param); } else { ZEPHIR_INIT_VAR(index); @@ -58483,11 +58135,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, describeReferences) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &table_param, &schema_param); - if (unlikely(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'table' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(table_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(table_param) == IS_STRING)) { zephir_get_strval(table, table_param); } else { ZEPHIR_INIT_VAR(table); @@ -58514,11 +58166,11 @@ static PHP_METHOD(Phalcon_Db_Dialect_Sqlite, tableOptions) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &table_param, &schema_param); - if (unlikely(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(table_param) != IS_STRING && Z_TYPE_P(table_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'table' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(table_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(table_param) == IS_STRING)) { zephir_get_strval(table, table_param); } else { ZEPHIR_INIT_VAR(table); @@ -59147,8 +58799,7 @@ static PHP_METHOD(Phalcon_Debug_Dump, all) { ZVAL_STRING(_1, "variables", 1); zephir_array_fast_append(_0, _1); ZEPHIR_INIT_NVAR(_1); - array_init(_1); - zend_copy_parameters_array(ZEND_NUM_ARGS(), _1 TSRMLS_CC); + zephir_get_args(_1 TSRMLS_CC); ZEPHIR_CALL_USER_FUNC_ARRAY(return_value, _0, _1); zephir_check_call_status(); RETURN_MM(); @@ -59163,11 +58814,11 @@ static PHP_METHOD(Phalcon_Debug_Dump, getStyle) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &type_param); - if (unlikely(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'type' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(type_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(type_param) == IS_STRING)) { zephir_get_strval(type, type_param); } else { ZEPHIR_INIT_VAR(type); @@ -59304,8 +58955,8 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { zephir_concat_self(&output, _2$$4 TSRMLS_CC); zephir_is_iterable(variable, &_8$$4, &_7$$4, 0, 0, "phalcon/debug/dump.zep", 161); for ( - ; zephir_hash_get_current_data_ex(_8$$4, (void**) &_9$$4, &_7$$4) == SUCCESS - ; zephir_hash_move_forward_ex(_8$$4, &_7$$4) + ; zend_hash_get_current_data_ex(_8$$4, (void**) &_9$$4, &_7$$4) == SUCCESS + ; zend_hash_move_forward_ex(_8$$4, &_7$$4) ) { ZEPHIR_GET_HMKEY(key, _8$$4, _7$$4); ZEPHIR_GET_HVALUE(value, _9$$4); @@ -59415,8 +59066,8 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { zephir_check_call_status(); zephir_is_iterable(_40$$11, &_42$$11, &_41$$11, 0, 0, "phalcon/debug/dump.zep", 194); for ( - ; zephir_hash_get_current_data_ex(_42$$11, (void**) &_43$$11, &_41$$11) == SUCCESS - ; zephir_hash_move_forward_ex(_42$$11, &_41$$11) + ; zend_hash_get_current_data_ex(_42$$11, (void**) &_43$$11, &_41$$11) == SUCCESS + ; zend_hash_move_forward_ex(_42$$11, &_41$$11) ) { ZEPHIR_GET_HMKEY(key, _42$$11, _41$$11); ZEPHIR_GET_HVALUE(value, _43$$11); @@ -59562,8 +59213,8 @@ static PHP_METHOD(Phalcon_Debug_Dump, output) { } else { zephir_is_iterable(attr, &_76$$20, &_75$$20, 0, 0, "phalcon/debug/dump.zep", 243); for ( - ; zephir_hash_get_current_data_ex(_76$$20, (void**) &_77$$20, &_75$$20) == SUCCESS - ; zephir_hash_move_forward_ex(_76$$20, &_75$$20) + ; zend_hash_get_current_data_ex(_76$$20, (void**) &_77$$20, &_75$$20) == SUCCESS + ; zend_hash_move_forward_ex(_76$$20, &_75$$20) ) { ZEPHIR_GET_HVALUE(value, _77$$20); ZEPHIR_INIT_NVAR(_78$$21); @@ -59817,12 +59468,11 @@ static PHP_METHOD(Phalcon_Debug_Dump, variables) { ZEPHIR_INIT_VAR(output); ZVAL_STRING(output, "", 1); ZEPHIR_INIT_VAR(_0); - array_init(_0); - zend_copy_parameters_array(ZEND_NUM_ARGS(), _0 TSRMLS_CC); + zephir_get_args(_0 TSRMLS_CC); zephir_is_iterable(_0, &_2, &_1, 0, 0, "phalcon/debug/dump.zep", 315); for ( - ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS - ; zephir_hash_move_forward_ex(_2, &_1) + ; zend_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS + ; zend_hash_move_forward_ex(_2, &_1) ) { ZEPHIR_GET_HMKEY(key, _2, _1); ZEPHIR_GET_HVALUE(value, _3); @@ -60300,11 +59950,11 @@ static PHP_METHOD(Phalcon_Di_Injectable, __get) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &propertyName_param); - if (unlikely(Z_TYPE_P(propertyName_param) != IS_STRING && Z_TYPE_P(propertyName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(propertyName_param) != IS_STRING && Z_TYPE_P(propertyName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'propertyName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(propertyName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(propertyName_param) == IS_STRING)) { zephir_get_strval(propertyName, propertyName_param); } else { ZEPHIR_INIT_VAR(propertyName); @@ -60417,11 +60067,11 @@ static PHP_METHOD(Phalcon_Di_Service, __construct) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 1, &name_param, &definition, &shared_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -61076,8 +60726,8 @@ static PHP_METHOD(Phalcon_Di_Service_Builder, _buildParameters) { array_init(buildArguments); zephir_is_iterable(arguments, &_1, &_0, 0, 0, "phalcon/di/service/builder.zep", 119); for ( - ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS - ; zephir_hash_move_forward_ex(_1, &_0) + ; zend_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS + ; zend_hash_move_forward_ex(_1, &_0) ) { ZEPHIR_GET_HMKEY(position, _1, _0); ZEPHIR_GET_HVALUE(argument, _2); @@ -61148,8 +60798,8 @@ static PHP_METHOD(Phalcon_Di_Service_Builder, build) { } zephir_is_iterable(paramCalls, &_3$$10, &_2$$10, 0, 0, "phalcon/di/service/builder.zep", 235); for ( - ; zephir_hash_get_current_data_ex(_3$$10, (void**) &_4$$10, &_2$$10) == SUCCESS - ; zephir_hash_move_forward_ex(_3$$10, &_2$$10) + ; zend_hash_get_current_data_ex(_3$$10, (void**) &_4$$10, &_2$$10) == SUCCESS + ; zend_hash_move_forward_ex(_3$$10, &_2$$10) ) { ZEPHIR_GET_HMKEY(methodPosition, _3$$10, _2$$10); ZEPHIR_GET_HVALUE(method, _4$$10); @@ -61219,8 +60869,8 @@ static PHP_METHOD(Phalcon_Di_Service_Builder, build) { } zephir_is_iterable(paramCalls, &_16$$19, &_15$$19, 0, 0, "phalcon/di/service/builder.zep", 283); for ( - ; zephir_hash_get_current_data_ex(_16$$19, (void**) &_17$$19, &_15$$19) == SUCCESS - ; zephir_hash_move_forward_ex(_16$$19, &_15$$19) + ; zend_hash_get_current_data_ex(_16$$19, (void**) &_17$$19, &_15$$19) == SUCCESS + ; zend_hash_move_forward_ex(_16$$19, &_15$$19) ) { ZEPHIR_GET_HMKEY(propertyPosition, _16$$19, _15$$19); ZEPHIR_GET_HVALUE(property, _17$$19); @@ -61348,11 +60998,11 @@ static PHP_METHOD(Phalcon_Events_Event, __construct) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 2, &type_param, &source, &data, &cancelable_param); - if (unlikely(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'type' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(type_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(type_param) == IS_STRING)) { zephir_get_strval(type, type_param); } else { ZEPHIR_INIT_VAR(type); @@ -61408,11 +61058,11 @@ static PHP_METHOD(Phalcon_Events_Event, setType) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &type_param); - if (unlikely(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'type' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(type_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(type_param) == IS_STRING)) { zephir_get_strval(type, type_param); } else { ZEPHIR_INIT_VAR(type); @@ -61568,11 +61218,11 @@ static PHP_METHOD(Phalcon_Events_Manager, attach) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 1, &eventType_param, &handler, &priority_param); - if (unlikely(Z_TYPE_P(eventType_param) != IS_STRING && Z_TYPE_P(eventType_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(eventType_param) != IS_STRING && Z_TYPE_P(eventType_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'eventType' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(eventType_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(eventType_param) == IS_STRING)) { zephir_get_strval(eventType, eventType_param); } else { ZEPHIR_INIT_VAR(eventType); @@ -61581,7 +61231,7 @@ static PHP_METHOD(Phalcon_Events_Manager, attach) { if (!priority_param) { priority = 100; } else { - if (unlikely(Z_TYPE_P(priority_param) != IS_LONG)) { + if (UNEXPECTED(Z_TYPE_P(priority_param) != IS_LONG)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'priority' must be a int") TSRMLS_CC); RETURN_MM_NULL(); } @@ -61636,11 +61286,11 @@ static PHP_METHOD(Phalcon_Events_Manager, detach) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &eventType_param, &handler); - if (unlikely(Z_TYPE_P(eventType_param) != IS_STRING && Z_TYPE_P(eventType_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(eventType_param) != IS_STRING && Z_TYPE_P(eventType_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'eventType' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(eventType_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(eventType_param) == IS_STRING)) { zephir_get_strval(eventType, eventType_param); } else { ZEPHIR_INIT_VAR(eventType); @@ -61776,11 +61426,11 @@ static PHP_METHOD(Phalcon_Events_Manager, detachAll) { ZEPHIR_INIT_VAR(type); ZVAL_EMPTY_STRING(type); } else { - if (unlikely(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'type' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(type_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(type_param) == IS_STRING)) { zephir_get_strval(type, type_param); } else { ZEPHIR_INIT_VAR(type); @@ -61918,8 +61568,8 @@ static PHP_METHOD(Phalcon_Events_Manager, fireQueue) { } else { zephir_is_iterable(queue, &_12$$21, &_11$$21, 0, 0, "phalcon/events/manager.zep", 358); for ( - ; zephir_hash_get_current_data_ex(_12$$21, (void**) &_13$$21, &_11$$21) == SUCCESS - ; zephir_hash_move_forward_ex(_12$$21, &_11$$21) + ; zend_hash_get_current_data_ex(_12$$21, (void**) &_13$$21, &_11$$21) == SUCCESS + ; zend_hash_move_forward_ex(_12$$21, &_11$$21) ) { ZEPHIR_GET_HVALUE(handler, _13$$21); if (Z_TYPE_P(handler) == IS_OBJECT) { @@ -61978,11 +61628,11 @@ static PHP_METHOD(Phalcon_Events_Manager, fire) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 2, &eventType_param, &source, &data, &cancelable_param); - if (unlikely(Z_TYPE_P(eventType_param) != IS_STRING && Z_TYPE_P(eventType_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(eventType_param) != IS_STRING && Z_TYPE_P(eventType_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'eventType' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(eventType_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(eventType_param) == IS_STRING)) { zephir_get_strval(eventType, eventType_param); } else { ZEPHIR_INIT_VAR(eventType); @@ -62084,11 +61734,11 @@ static PHP_METHOD(Phalcon_Events_Manager, hasListeners) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &type_param); - if (unlikely(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'type' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(type_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(type_param) == IS_STRING)) { zephir_get_strval(type, type_param); } else { ZEPHIR_INIT_VAR(type); @@ -62109,11 +61759,11 @@ static PHP_METHOD(Phalcon_Events_Manager, getListeners) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &type_param); - if (unlikely(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'type' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(type_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(type_param) == IS_STRING)) { zephir_get_strval(type, type_param); } else { ZEPHIR_INIT_VAR(type); @@ -62258,8 +61908,8 @@ static PHP_METHOD(Phalcon_Flash_Direct, output) { if (Z_TYPE_P(messages) == IS_ARRAY) { zephir_is_iterable(messages, &_1$$3, &_0$$3, 0, 0, "phalcon/flash/direct.zep", 52); for ( - ; zephir_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_1$$3, &_0$$3) + ; zend_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS + ; zend_hash_move_forward_ex(_1$$3, &_0$$3) ) { ZEPHIR_GET_HVALUE(message, _2$$3); zend_print_zval(message, 0); @@ -62516,8 +62166,8 @@ static PHP_METHOD(Phalcon_Flash_Session, output) { if (Z_TYPE_P(messages) == IS_ARRAY) { zephir_is_iterable(messages, &_2$$3, &_1$$3, 0, 0, "phalcon/flash/session.zep", 136); for ( - ; zephir_hash_get_current_data_ex(_2$$3, (void**) &_3$$3, &_1$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_2$$3, &_1$$3) + ; zend_hash_get_current_data_ex(_2$$3, (void**) &_3$$3, &_1$$3) == SUCCESS + ; zend_hash_move_forward_ex(_2$$3, &_1$$3) ) { ZEPHIR_GET_HMKEY(type, _2$$3, _1$$3); ZEPHIR_GET_HVALUE(message, _3$$3); @@ -62645,11 +62295,11 @@ static PHP_METHOD(Phalcon_Forms_Element, setName) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -63420,11 +63070,11 @@ static PHP_METHOD(Phalcon_Forms_Form, setAction) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &action_param); - if (unlikely(Z_TYPE_P(action_param) != IS_STRING && Z_TYPE_P(action_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(action_param) != IS_STRING && Z_TYPE_P(action_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'action' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(action_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(action_param) == IS_STRING)) { zephir_get_strval(action, action_param); } else { ZEPHIR_INIT_VAR(action); @@ -63558,8 +63208,8 @@ static PHP_METHOD(Phalcon_Forms_Form, bind) { ZVAL_NULL(filter); zephir_is_iterable(data, &_2, &_1, 0, 0, "phalcon/forms/form.zep", 246); for ( - ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS - ; zephir_hash_move_forward_ex(_2, &_1) + ; zend_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS + ; zend_hash_move_forward_ex(_2, &_1) ) { ZEPHIR_GET_HMKEY(key, _2, _1); ZEPHIR_GET_HVALUE(value, _3); @@ -63673,8 +63323,8 @@ static PHP_METHOD(Phalcon_Forms_Form, isValid) { _6 = zephir_fetch_nproperty_this(this_ptr, SL("_elements"), PH_NOISY_CC); zephir_is_iterable(_6, &_8, &_7, 0, 0, "phalcon/forms/form.zep", 338); for ( - ; zephir_hash_get_current_data_ex(_8, (void**) &_9, &_7) == SUCCESS - ; zephir_hash_move_forward_ex(_8, &_7) + ; zend_hash_get_current_data_ex(_8, (void**) &_9, &_7) == SUCCESS + ; zend_hash_move_forward_ex(_8, &_7) ) { ZEPHIR_GET_HVALUE(element, _9); ZEPHIR_CALL_METHOD(&validators, element, "getvalidators", NULL, 0); @@ -63690,8 +63340,8 @@ static PHP_METHOD(Phalcon_Forms_Form, isValid) { zephir_check_call_status(); zephir_is_iterable(validators, &_12$$11, &_11$$11, 0, 0, "phalcon/forms/form.zep", 325); for ( - ; zephir_hash_get_current_data_ex(_12$$11, (void**) &_13$$11, &_11$$11) == SUCCESS - ; zephir_hash_move_forward_ex(_12$$11, &_11$$11) + ; zend_hash_get_current_data_ex(_12$$11, (void**) &_13$$11, &_11$$11) == SUCCESS + ; zend_hash_move_forward_ex(_12$$11, &_11$$11) ) { ZEPHIR_GET_HVALUE(validator, _13$$11); ZEPHIR_CALL_METHOD(NULL, validation, "add", &_14, 217, name, validator); @@ -63780,11 +63430,11 @@ static PHP_METHOD(Phalcon_Forms_Form, getMessagesFor) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -63817,11 +63467,11 @@ static PHP_METHOD(Phalcon_Forms_Form, hasMessagesFor) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -63879,8 +63529,8 @@ static PHP_METHOD(Phalcon_Forms_Form, add) { _2$$4 = zephir_fetch_nproperty_this(this_ptr, SL("_elements"), PH_NOISY_CC); zephir_is_iterable(_2$$4, &_4$$4, &_3$$4, 0, 0, "phalcon/forms/form.zep", 449); for ( - ; zephir_hash_get_current_data_ex(_4$$4, (void**) &_5$$4, &_3$$4) == SUCCESS - ; zephir_hash_move_forward_ex(_4$$4, &_3$$4) + ; zend_hash_get_current_data_ex(_4$$4, (void**) &_5$$4, &_3$$4) == SUCCESS + ; zend_hash_move_forward_ex(_4$$4, &_3$$4) ) { ZEPHIR_GET_HMKEY(key, _4$$4, _3$$4); ZEPHIR_GET_HVALUE(value, _5$$4); @@ -63911,11 +63561,11 @@ static PHP_METHOD(Phalcon_Forms_Form, render) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &name_param, &attributes); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -63954,11 +63604,11 @@ static PHP_METHOD(Phalcon_Forms_Form, get) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -63993,11 +63643,11 @@ static PHP_METHOD(Phalcon_Forms_Form, label) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &name_param, &attributes_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -64039,11 +63689,11 @@ static PHP_METHOD(Phalcon_Forms_Form, getLabel) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -64082,11 +63732,11 @@ static PHP_METHOD(Phalcon_Forms_Form, getValue) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -64164,11 +63814,11 @@ static PHP_METHOD(Phalcon_Forms_Form, has) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -64189,11 +63839,11 @@ static PHP_METHOD(Phalcon_Forms_Form, remove) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -64236,8 +63886,8 @@ static PHP_METHOD(Phalcon_Forms_Form, clear) { if (Z_TYPE_P(fields) == IS_ARRAY) { zephir_is_iterable(fields, &_1$$5, &_0$$5, 0, 0, "phalcon/forms/form.zep", 652); for ( - ; zephir_hash_get_current_data_ex(_1$$5, (void**) &_2$$5, &_0$$5) == SUCCESS - ; zephir_hash_move_forward_ex(_1$$5, &_0$$5) + ; zend_hash_get_current_data_ex(_1$$5, (void**) &_2$$5, &_0$$5) == SUCCESS + ; zend_hash_move_forward_ex(_1$$5, &_0$$5) ) { ZEPHIR_GET_HVALUE(field, _2$$5); if (zephir_array_isset(data, field)) { @@ -64256,8 +63906,8 @@ static PHP_METHOD(Phalcon_Forms_Form, clear) { if (Z_TYPE_P(elements) == IS_ARRAY) { zephir_is_iterable(elements, &_4$$10, &_3$$10, 0, 0, "phalcon/forms/form.zep", 672); for ( - ; zephir_hash_get_current_data_ex(_4$$10, (void**) &_5$$10, &_3$$10) == SUCCESS - ; zephir_hash_move_forward_ex(_4$$10, &_3$$10) + ; zend_hash_get_current_data_ex(_4$$10, (void**) &_5$$10, &_3$$10) == SUCCESS + ; zend_hash_move_forward_ex(_4$$10, &_3$$10) ) { ZEPHIR_GET_HVALUE(element, _5$$10); if (Z_TYPE_P(fields) != IS_ARRAY) { @@ -64891,8 +64541,8 @@ static PHP_METHOD(Phalcon_Forms_Element_Select, addOption) { if (Z_TYPE_P(option) == IS_ARRAY) { zephir_is_iterable(option, &_1$$3, &_0$$3, 0, 0, "phalcon/forms/element/select.zep", 84); for ( - ; zephir_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_1$$3, &_0$$3) + ; zend_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS + ; zend_hash_move_forward_ex(_1$$3, &_0$$3) ) { ZEPHIR_GET_HMKEY(key, _1$$3, _0$$3); ZEPHIR_GET_HVALUE(value, _2$$3); @@ -65101,11 +64751,11 @@ static PHP_METHOD(Phalcon_Http_Cookie, __construct) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 6, &name_param, &value, &expire, &path, &secure, &domain, &httpOnly); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -65537,11 +65187,11 @@ static PHP_METHOD(Phalcon_Http_Cookie, setPath) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &path_param); - if (unlikely(Z_TYPE_P(path_param) != IS_STRING && Z_TYPE_P(path_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(path_param) != IS_STRING && Z_TYPE_P(path_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'path' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(path_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(path_param) == IS_STRING)) { zephir_get_strval(path, path_param); } else { ZEPHIR_INIT_VAR(path); @@ -65592,11 +65242,11 @@ static PHP_METHOD(Phalcon_Http_Cookie, setDomain) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &domain_param); - if (unlikely(Z_TYPE_P(domain_param) != IS_STRING && Z_TYPE_P(domain_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(domain_param) != IS_STRING && Z_TYPE_P(domain_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'domain' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(domain_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(domain_param) == IS_STRING)) { zephir_get_strval(domain, domain_param); } else { ZEPHIR_INIT_VAR(domain); @@ -65868,11 +65518,11 @@ static PHP_METHOD(Phalcon_Http_Request, get) { ZEPHIR_INIT_VAR(name); ZVAL_EMPTY_STRING(name); } else { - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -65930,11 +65580,11 @@ static PHP_METHOD(Phalcon_Http_Request, getPost) { ZEPHIR_INIT_VAR(name); ZVAL_EMPTY_STRING(name); } else { - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -65991,11 +65641,11 @@ static PHP_METHOD(Phalcon_Http_Request, getPut) { ZEPHIR_INIT_VAR(name); ZVAL_EMPTY_STRING(name); } else { - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -66066,11 +65716,11 @@ static PHP_METHOD(Phalcon_Http_Request, getQuery) { ZEPHIR_INIT_VAR(name); ZVAL_EMPTY_STRING(name); } else { - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -66129,11 +65779,11 @@ static PHP_METHOD(Phalcon_Http_Request, getHelper) { ZEPHIR_INIT_VAR(name); ZVAL_EMPTY_STRING(name); } else { - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -66215,11 +65865,11 @@ static PHP_METHOD(Phalcon_Http_Request, getServer) { zephir_get_global(&_SERVER, SS("_SERVER") TSRMLS_CC); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -66243,11 +65893,11 @@ static PHP_METHOD(Phalcon_Http_Request, has) { zephir_get_global(&_REQUEST, SS("_REQUEST") TSRMLS_CC); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -66268,11 +65918,11 @@ static PHP_METHOD(Phalcon_Http_Request, hasPost) { zephir_get_global(&_POST, SS("_POST") TSRMLS_CC); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -66293,11 +65943,11 @@ static PHP_METHOD(Phalcon_Http_Request, hasPut) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -66320,11 +65970,11 @@ static PHP_METHOD(Phalcon_Http_Request, hasQuery) { zephir_get_global(&_GET, SS("_GET") TSRMLS_CC); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -66345,11 +65995,11 @@ static PHP_METHOD(Phalcon_Http_Request, hasServer) { zephir_get_global(&_SERVER, SS("_SERVER") TSRMLS_CC); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -66371,11 +66021,11 @@ static PHP_METHOD(Phalcon_Http_Request, getHeader) { zephir_get_global(&_SERVER, SS("_SERVER") TSRMLS_CC); zephir_fetch_params(1, 1, 0, &header_param); - if (unlikely(Z_TYPE_P(header_param) != IS_STRING && Z_TYPE_P(header_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(header_param) != IS_STRING && Z_TYPE_P(header_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'header' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(header_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(header_param) == IS_STRING)) { zephir_get_strval(header, header_param); } else { ZEPHIR_INIT_VAR(header); @@ -66816,7 +66466,7 @@ static PHP_METHOD(Phalcon_Http_Request, getMethod) { ZEPHIR_INIT_VAR(returnMethod); ZVAL_EMPTY_STRING(returnMethod); ZEPHIR_OBS_VAR(requestMethod); - if (likely(zephir_array_isset_string_fetch(&requestMethod, _SERVER, SS("REQUEST_METHOD"), 0 TSRMLS_CC))) { + if (EXPECTED(zephir_array_isset_string_fetch(&requestMethod, _SERVER, SS("REQUEST_METHOD"), 0 TSRMLS_CC))) { ZEPHIR_INIT_NVAR(returnMethod); zephir_fast_strtoupper(returnMethod, requestMethod); } else { @@ -66932,8 +66582,8 @@ static PHP_METHOD(Phalcon_Http_Request, isMethod) { if (Z_TYPE_P(methods) == IS_ARRAY) { zephir_is_iterable(methods, &_5$$5, &_4$$5, 0, 0, "phalcon/http/request.zep", 680); for ( - ; zephir_hash_get_current_data_ex(_5$$5, (void**) &_6$$5, &_4$$5) == SUCCESS - ; zephir_hash_move_forward_ex(_5$$5, &_4$$5) + ; zend_hash_get_current_data_ex(_5$$5, (void**) &_6$$5, &_4$$5) == SUCCESS + ; zend_hash_move_forward_ex(_5$$5, &_4$$5) ) { ZEPHIR_GET_HVALUE(method, _6$$5); ZEPHIR_INIT_NVAR(_8$$6); @@ -67115,8 +66765,8 @@ static PHP_METHOD(Phalcon_Http_Request, hasFiles) { } zephir_is_iterable(files, &_1, &_0, 0, 0, "phalcon/http/request.zep", 799); for ( - ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS - ; zephir_hash_move_forward_ex(_1, &_0) + ; zend_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS + ; zend_hash_move_forward_ex(_1, &_0) ) { ZEPHIR_GET_HVALUE(file, _2); ZEPHIR_OBS_NVAR(error); @@ -67168,8 +66818,8 @@ static PHP_METHOD(Phalcon_Http_Request, hasFileHelper) { } zephir_is_iterable(data, &_1, &_0, 0, 0, "phalcon/http/request.zep", 826); for ( - ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS - ; zephir_hash_move_forward_ex(_1, &_0) + ; zend_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS + ; zend_hash_move_forward_ex(_1, &_0) ) { ZEPHIR_GET_HVALUE(value, _2); if (Z_TYPE_P(value) != IS_ARRAY) { @@ -67224,8 +66874,8 @@ static PHP_METHOD(Phalcon_Http_Request, getUploadedFiles) { if (zephir_fast_count_int(superFiles TSRMLS_CC) > 0) { zephir_is_iterable(superFiles, &_1$$3, &_0$$3, 0, 0, "phalcon/http/request.zep", 871); for ( - ; zephir_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_1$$3, &_0$$3) + ; zend_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS + ; zend_hash_move_forward_ex(_1$$3, &_0$$3) ) { ZEPHIR_GET_HMKEY(prefix, _1$$3, _0$$3); ZEPHIR_GET_HVALUE(input, _2$$3); @@ -67241,8 +66891,8 @@ static PHP_METHOD(Phalcon_Http_Request, getUploadedFiles) { zephir_check_call_status(); zephir_is_iterable(smoothInput, &_11$$5, &_10$$5, 0, 0, "phalcon/http/request.zep", 865); for ( - ; zephir_hash_get_current_data_ex(_11$$5, (void**) &_12$$5, &_10$$5) == SUCCESS - ; zephir_hash_move_forward_ex(_11$$5, &_10$$5) + ; zend_hash_get_current_data_ex(_11$$5, (void**) &_12$$5, &_10$$5) == SUCCESS + ; zend_hash_move_forward_ex(_11$$5, &_10$$5) ) { ZEPHIR_GET_HVALUE(file, _12$$5); _13$$6 = onlySuccessful == 0; @@ -67321,8 +66971,8 @@ static PHP_METHOD(Phalcon_Http_Request, smoothFiles) { array_init(files); zephir_is_iterable(names, &_1, &_0, 0, 0, "phalcon/http/request.zep", 916); for ( - ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS - ; zephir_hash_move_forward_ex(_1, &_0) + ; zend_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS + ; zend_hash_move_forward_ex(_1, &_0) ) { ZEPHIR_GET_HMKEY(idx, _1, _0); ZEPHIR_GET_HVALUE(name, _2); @@ -67357,8 +67007,8 @@ static PHP_METHOD(Phalcon_Http_Request, smoothFiles) { zephir_check_call_status(); zephir_is_iterable(parentFiles, &_12$$5, &_11$$5, 0, 0, "phalcon/http/request.zep", 913); for ( - ; zephir_hash_get_current_data_ex(_12$$5, (void**) &_13$$5, &_11$$5) == SUCCESS - ; zephir_hash_move_forward_ex(_12$$5, &_11$$5) + ; zend_hash_get_current_data_ex(_12$$5, (void**) &_13$$5, &_11$$5) == SUCCESS + ; zend_hash_move_forward_ex(_12$$5, &_11$$5) ) { ZEPHIR_GET_HVALUE(file, _13$$5); zephir_array_append(&files, file, PH_SEPARATE, "phalcon/http/request.zep", 911); @@ -67393,8 +67043,8 @@ static PHP_METHOD(Phalcon_Http_Request, getHeaders) { zephir_array_update_string(&contentHeaders, SL("CONTENT_MD5"), &ZEPHIR_GLOBAL(global_true), PH_COPY | PH_SEPARATE); zephir_is_iterable(_SERVER, &_1, &_0, 0, 0, "phalcon/http/request.zep", 953); for ( - ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS - ; zephir_hash_move_forward_ex(_1, &_0) + ; zend_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS + ; zend_hash_move_forward_ex(_1, &_0) ) { ZEPHIR_GET_HMKEY(name, _1, _0); ZEPHIR_GET_HVALUE(value, _2); @@ -67548,11 +67198,11 @@ static PHP_METHOD(Phalcon_Http_Request, _getBestQuality) { zephir_fetch_params(1, 2, 0, &qualityParts_param, &name_param); zephir_get_arrval(qualityParts, qualityParts_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -67566,8 +67216,8 @@ static PHP_METHOD(Phalcon_Http_Request, _getBestQuality) { ZVAL_STRING(selectedName, "", 1); zephir_is_iterable(qualityParts, &_1, &_0, 0, 0, "phalcon/http/request.zep", 1029); for ( - ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS - ; zephir_hash_move_forward_ex(_1, &_0) + ; zend_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS + ; zend_hash_move_forward_ex(_1, &_0) ) { ZEPHIR_GET_HVALUE(accept, _2); if (i == 0) { @@ -67780,8 +67430,8 @@ static PHP_METHOD(Phalcon_Http_Request, getDigestAuth) { if (Z_TYPE_P(matches) == IS_ARRAY) { zephir_is_iterable(matches, &_4$$5, &_3$$5, 0, 0, "phalcon/http/request.zep", 1136); for ( - ; zephir_hash_get_current_data_ex(_4$$5, (void**) &_5$$5, &_3$$5) == SUCCESS - ; zephir_hash_move_forward_ex(_4$$5, &_3$$5) + ; zend_hash_get_current_data_ex(_4$$5, (void**) &_5$$5, &_3$$5) == SUCCESS + ; zend_hash_move_forward_ex(_4$$5, &_3$$5) ) { ZEPHIR_GET_HVALUE(match, _5$$5); zephir_array_fetch_long(&_6$$6, match, 3, PH_NOISY | PH_READONLY, "phalcon/http/request.zep", 1134 TSRMLS_CC); @@ -67807,21 +67457,21 @@ static PHP_METHOD(Phalcon_Http_Request, _getQualityHeader) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &serverIndex_param, &name_param); - if (unlikely(Z_TYPE_P(serverIndex_param) != IS_STRING && Z_TYPE_P(serverIndex_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(serverIndex_param) != IS_STRING && Z_TYPE_P(serverIndex_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'serverIndex' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(serverIndex_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(serverIndex_param) == IS_STRING)) { zephir_get_strval(serverIndex, serverIndex_param); } else { ZEPHIR_INIT_VAR(serverIndex); ZVAL_EMPTY_STRING(serverIndex); } - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -67843,8 +67493,8 @@ static PHP_METHOD(Phalcon_Http_Request, _getQualityHeader) { zephir_check_call_status(); zephir_is_iterable(_4, &_7, &_6, 0, 0, "phalcon/http/request.zep", 1170); for ( - ; zephir_hash_get_current_data_ex(_7, (void**) &_8, &_6) == SUCCESS - ; zephir_hash_move_forward_ex(_7, &_6) + ; zend_hash_get_current_data_ex(_7, (void**) &_8, &_6) == SUCCESS + ; zend_hash_move_forward_ex(_7, &_6) ) { ZEPHIR_GET_HVALUE(part, _8); ZEPHIR_INIT_NVAR(headerParts); @@ -67861,8 +67511,8 @@ static PHP_METHOD(Phalcon_Http_Request, _getQualityHeader) { zephir_check_call_status(); zephir_is_iterable(_13$$3, &_15$$3, &_14$$3, 0, 0, "phalcon/http/request.zep", 1167); for ( - ; zephir_hash_get_current_data_ex(_15$$3, (void**) &_16$$3, &_14$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_15$$3, &_14$$3) + ; zend_hash_get_current_data_ex(_15$$3, (void**) &_16$$3, &_14$$3) == SUCCESS + ; zend_hash_move_forward_ex(_15$$3, &_14$$3) ) { ZEPHIR_GET_HVALUE(headerPart, _16$$3); ZEPHIR_SINIT_NVAR(_17$$4); @@ -68136,8 +67786,8 @@ static PHP_METHOD(Phalcon_Http_Response, setStatusCode) { ZEPHIR_INIT_VAR(_0$$3); zephir_is_iterable(currentHeadersRaw, &_2$$3, &_1$$3, 0, 0, "phalcon/http/response.zep", 132); for ( - ; zephir_hash_get_current_data_ex(_2$$3, (void**) &_3$$3, &_1$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_2$$3, &_1$$3) + ; zend_hash_get_current_data_ex(_2$$3, (void**) &_3$$3, &_1$$3) == SUCCESS + ; zend_hash_move_forward_ex(_2$$3, &_1$$3) ) { ZEPHIR_GET_HMKEY(key, _2$$3, _1$$3); ZEPHIR_GET_HVALUE(_0$$3, _3$$3); @@ -68450,7 +68100,7 @@ static PHP_METHOD(Phalcon_Http_Response, setCache) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &minutes_param); - if (unlikely(Z_TYPE_P(minutes_param) != IS_LONG)) { + if (UNEXPECTED(Z_TYPE_P(minutes_param) != IS_LONG)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'minutes' must be a int") TSRMLS_CC); RETURN_MM_NULL(); } @@ -69181,11 +68831,11 @@ static PHP_METHOD(Phalcon_Http_Request_File, moveTo) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &destination_param); - if (unlikely(Z_TYPE_P(destination_param) != IS_STRING && Z_TYPE_P(destination_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(destination_param) != IS_STRING && Z_TYPE_P(destination_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'destination' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(destination_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(destination_param) == IS_STRING)) { zephir_get_strval(destination, destination_param); } else { ZEPHIR_INIT_VAR(destination); @@ -69316,11 +68966,11 @@ static PHP_METHOD(Phalcon_Http_Response_Cookies, set) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 6, &name_param, &value, &expire_param, &path_param, &secure_param, &domain_param, &httpOnly_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -69349,11 +68999,11 @@ static PHP_METHOD(Phalcon_Http_Response_Cookies, set) { ZEPHIR_INIT_VAR(domain); ZVAL_EMPTY_STRING(domain); } else { - if (unlikely(Z_TYPE_P(domain_param) != IS_STRING && Z_TYPE_P(domain_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(domain_param) != IS_STRING && Z_TYPE_P(domain_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'domain' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(domain_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(domain_param) == IS_STRING)) { zephir_get_strval(domain, domain_param); } else { ZEPHIR_INIT_VAR(domain); @@ -69465,11 +69115,11 @@ static PHP_METHOD(Phalcon_Http_Response_Cookies, get) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -69517,11 +69167,11 @@ static PHP_METHOD(Phalcon_Http_Response_Cookies, has) { zephir_get_global(&_COOKIE, SS("_COOKIE") TSRMLS_CC); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -69549,11 +69199,11 @@ static PHP_METHOD(Phalcon_Http_Response_Cookies, delete) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -69587,8 +69237,8 @@ static PHP_METHOD(Phalcon_Http_Response_Cookies, send) { _1$$3 = zephir_fetch_nproperty_this(this_ptr, SL("_cookies"), PH_NOISY_CC); zephir_is_iterable(_1$$3, &_3$$3, &_2$$3, 0, 0, "phalcon/http/response/cookies.zep", 242); for ( - ; zephir_hash_get_current_data_ex(_3$$3, (void**) &_4$$3, &_2$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_3$$3, &_2$$3) + ; zend_hash_get_current_data_ex(_3$$3, (void**) &_4$$3, &_2$$3) == SUCCESS + ; zend_hash_move_forward_ex(_3$$3, &_2$$3) ) { ZEPHIR_GET_HVALUE(cookie, _4$$3); ZEPHIR_CALL_METHOD(NULL, cookie, "send", NULL, 0); @@ -69776,8 +69426,8 @@ static PHP_METHOD(Phalcon_Http_Response_Headers, send) { _1$$3 = zephir_fetch_nproperty_this(this_ptr, SL("_headers"), PH_NOISY_CC); zephir_is_iterable(_1$$3, &_3$$3, &_2$$3, 0, 0, "phalcon/http/response/headers.zep", 94); for ( - ; zephir_hash_get_current_data_ex(_3$$3, (void**) &_4$$3, &_2$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_3$$3, &_2$$3) + ; zend_hash_get_current_data_ex(_3$$3, (void**) &_4$$3, &_2$$3) == SUCCESS + ; zend_hash_move_forward_ex(_3$$3, &_2$$3) ) { ZEPHIR_GET_HMKEY(header, _3$$3, _2$$3); ZEPHIR_GET_HVALUE(value, _4$$3); @@ -69860,8 +69510,8 @@ static PHP_METHOD(Phalcon_Http_Response_Headers, __set_state) { if (zephir_array_isset_string_fetch(&dataHeaders, data, SS("_headers"), 0 TSRMLS_CC)) { zephir_is_iterable(dataHeaders, &_1$$3, &_0$$3, 0, 0, "phalcon/http/response/headers.zep", 126); for ( - ; zephir_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_1$$3, &_0$$3) + ; zend_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS + ; zend_hash_move_forward_ex(_1$$3, &_0$$3) ) { ZEPHIR_GET_HMKEY(key, _1$$3, _0$$3); ZEPHIR_GET_HVALUE(value, _2$$3); @@ -70958,11 +70608,11 @@ static PHP_METHOD(Phalcon_Image_Adapter_Gd, __construct) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &file_param, &width_param, &height_param); - if (unlikely(Z_TYPE_P(file_param) != IS_STRING && Z_TYPE_P(file_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(file_param) != IS_STRING && Z_TYPE_P(file_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'file' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(file_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(file_param) == IS_STRING)) { zephir_get_strval(file, file_param); } else { ZEPHIR_INIT_VAR(file); @@ -72580,11 +72230,11 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, __construct) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &file_param, &width_param, &height_param); - if (unlikely(Z_TYPE_P(file_param) != IS_STRING && Z_TYPE_P(file_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(file_param) != IS_STRING && Z_TYPE_P(file_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'file' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(file_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(file_param) == IS_STRING)) { zephir_get_strval(file, file_param); } else { ZEPHIR_INIT_VAR(file); @@ -73254,10 +72904,9 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _reflection) { static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _watermark) { - zend_class_entry *_0$$3; - zephir_fcall_cache_entry *_8 = NULL; + zephir_fcall_cache_entry *_7 = NULL; int offsetX, offsetY, opacity, ZEPHIR_LAST_CALL_STATUS; - zval *image, *offsetX_param = NULL, *offsetY_param = NULL, *opacity_param = NULL, *watermark = NULL, *ret = NULL, *version = NULL, *method = NULL, *_2 = NULL, *_3 = NULL, *_4, *_1$$3, *_5$$5, _6$$5 = zval_used_for_init, *_7$$5 = NULL, *_9$$5 = NULL, *_10$$5 = NULL, *_11$$5, *_12$$5 = NULL; + zval *image, *offsetX_param = NULL, *offsetY_param = NULL, *opacity_param = NULL, *watermark = NULL, *ret = NULL, *version = NULL, *method = NULL, *_1 = NULL, *_2 = NULL, *_3, *_0$$3, *_4$$5, _5$$5 = zval_used_for_init, *_6$$5 = NULL, *_8$$5 = NULL, *_9$$5 = NULL, *_10$$5, *_11$$5 = NULL; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 4, 0, &image, &offsetX_param, &offsetY_param, &opacity_param); @@ -73274,49 +72923,48 @@ static PHP_METHOD(Phalcon_Image_Adapter_Imagick, _watermark) { zephir_check_call_status(); ZEPHIR_INIT_VAR(method); ZVAL_STRING(method, "setImageOpacity", 1); - if (likely((zephir_method_exists_ex(watermark, SS("getversion") TSRMLS_CC) == SUCCESS))) { - _0$$3 = zend_fetch_class(SL("Imagick"), ZEND_FETCH_CLASS_AUTO TSRMLS_CC); - ZEPHIR_CALL_CE_STATIC(&version, _0$$3, "getversion", NULL, 0); + if (EXPECTED((zephir_method_exists_ex(watermark, SS("getversion") TSRMLS_CC) == SUCCESS))) { + ZEPHIR_CALL_METHOD(&version, watermark, "getversion", NULL, 0); zephir_check_call_status(); - zephir_array_fetch_string(&_1$$3, version, SL("versionNumber"), PH_NOISY | PH_READONLY, "phalcon/image/adapter/imagick.zep", 365 TSRMLS_CC); - if (ZEPHIR_GE_LONG(_1$$3, 0x700)) { + zephir_array_fetch_string(&_0$$3, version, SL("versionNumber"), PH_NOISY | PH_READONLY, "phalcon/image/adapter/imagick.zep", 365 TSRMLS_CC); + if (ZEPHIR_GE_LONG(_0$$3, 0x700)) { ZEPHIR_INIT_NVAR(method); ZVAL_STRING(method, "setImageAlpha", 1); } } - ZEPHIR_CALL_METHOD(&_2, image, "render", NULL, 0); + ZEPHIR_CALL_METHOD(&_1, image, "render", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, watermark, "readimageblob", NULL, 0, _2); + ZEPHIR_CALL_METHOD(NULL, watermark, "readimageblob", NULL, 0, _1); zephir_check_call_status(); - ZEPHIR_INIT_VAR(_3); - ZVAL_LONG(_3, opacity); - ZEPHIR_CALL_METHOD_ZVAL(NULL, watermark, method, NULL, 0, _3); + ZEPHIR_INIT_VAR(_2); + ZVAL_LONG(_2, opacity); + ZEPHIR_CALL_METHOD_ZVAL(NULL, watermark, method, NULL, 0, _2); zephir_check_call_status(); - _4 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_INIT_NVAR(_3); - ZVAL_LONG(_3, 0); - ZEPHIR_CALL_METHOD(NULL, _4, "setiteratorindex", NULL, 0, _3); + _3 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); + ZEPHIR_INIT_NVAR(_2); + ZVAL_LONG(_2, 0); + ZEPHIR_CALL_METHOD(NULL, _3, "setiteratorindex", NULL, 0, _2); zephir_check_call_status(); while (1) { - _5$$5 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_SINIT_NVAR(_6$$5); - ZVAL_STRING(&_6$$5, "Imagick::COMPOSITE_OVER", 0); - ZEPHIR_CALL_FUNCTION(&_7$$5, "constant", &_8, 196, &_6$$5); + _4$$5 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); + ZEPHIR_SINIT_NVAR(_5$$5); + ZVAL_STRING(&_5$$5, "Imagick::COMPOSITE_OVER", 0); + ZEPHIR_CALL_FUNCTION(&_6$$5, "constant", &_7, 196, &_5$$5); zephir_check_call_status(); + ZEPHIR_INIT_NVAR(_8$$5); + ZVAL_LONG(_8$$5, offsetX); ZEPHIR_INIT_NVAR(_9$$5); - ZVAL_LONG(_9$$5, offsetX); - ZEPHIR_INIT_NVAR(_10$$5); - ZVAL_LONG(_10$$5, offsetY); - ZEPHIR_CALL_METHOD(&ret, _5$$5, "compositeimage", NULL, 0, watermark, _7$$5, _9$$5, _10$$5); + ZVAL_LONG(_9$$5, offsetY); + ZEPHIR_CALL_METHOD(&ret, _4$$5, "compositeimage", NULL, 0, watermark, _6$$5, _8$$5, _9$$5); zephir_check_call_status(); if (!ZEPHIR_IS_TRUE_IDENTICAL(ret)) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_image_exception_ce, "Imagick::compositeImage failed", "phalcon/image/adapter/imagick.zep", 379); return; } - _11$$5 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_METHOD(&_12$$5, _11$$5, "nextimage", NULL, 0); + _10$$5 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); + ZEPHIR_CALL_METHOD(&_11$$5, _10$$5, "nextimage", NULL, 0); zephir_check_call_status(); - if (ZEPHIR_IS_FALSE_IDENTICAL(_12$$5)) { + if (ZEPHIR_IS_FALSE_IDENTICAL(_11$$5)) { break; } } @@ -74163,8 +73811,8 @@ static PHP_METHOD(Phalcon_Logger_Adapter, commit) { _1 = zephir_fetch_nproperty_this(this_ptr, SL("_queue"), PH_NOISY_CC); zephir_is_iterable(_1, &_3, &_2, 0, 0, "phalcon/logger/adapter.zep", 125); for ( - ; zephir_hash_get_current_data_ex(_3, (void**) &_4, &_2) == SUCCESS - ; zephir_hash_move_forward_ex(_3, &_2) + ; zend_hash_get_current_data_ex(_3, (void**) &_4, &_2) == SUCCESS + ; zend_hash_move_forward_ex(_3, &_2) ) { ZEPHIR_GET_HVALUE(message, _4); ZEPHIR_CALL_METHOD(&_5$$4, message, "getmessage", NULL, 0); @@ -74227,11 +73875,11 @@ static PHP_METHOD(Phalcon_Logger_Adapter, critical) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &message_param, &context_param); - if (unlikely(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'message' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(message_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(message_param) == IS_STRING)) { zephir_get_strval(message, message_param); } else { ZEPHIR_INIT_VAR(message); @@ -74263,11 +73911,11 @@ static PHP_METHOD(Phalcon_Logger_Adapter, emergency) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &message_param, &context_param); - if (unlikely(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'message' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(message_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(message_param) == IS_STRING)) { zephir_get_strval(message, message_param); } else { ZEPHIR_INIT_VAR(message); @@ -74299,11 +73947,11 @@ static PHP_METHOD(Phalcon_Logger_Adapter, debug) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &message_param, &context_param); - if (unlikely(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'message' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(message_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(message_param) == IS_STRING)) { zephir_get_strval(message, message_param); } else { ZEPHIR_INIT_VAR(message); @@ -74335,11 +73983,11 @@ static PHP_METHOD(Phalcon_Logger_Adapter, error) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &message_param, &context_param); - if (unlikely(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'message' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(message_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(message_param) == IS_STRING)) { zephir_get_strval(message, message_param); } else { ZEPHIR_INIT_VAR(message); @@ -74371,11 +74019,11 @@ static PHP_METHOD(Phalcon_Logger_Adapter, info) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &message_param, &context_param); - if (unlikely(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'message' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(message_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(message_param) == IS_STRING)) { zephir_get_strval(message, message_param); } else { ZEPHIR_INIT_VAR(message); @@ -74407,11 +74055,11 @@ static PHP_METHOD(Phalcon_Logger_Adapter, notice) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &message_param, &context_param); - if (unlikely(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'message' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(message_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(message_param) == IS_STRING)) { zephir_get_strval(message, message_param); } else { ZEPHIR_INIT_VAR(message); @@ -74443,11 +74091,11 @@ static PHP_METHOD(Phalcon_Logger_Adapter, warning) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &message_param, &context_param); - if (unlikely(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'message' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(message_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(message_param) == IS_STRING)) { zephir_get_strval(message, message_param); } else { ZEPHIR_INIT_VAR(message); @@ -74479,11 +74127,11 @@ static PHP_METHOD(Phalcon_Logger_Adapter, alert) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &message_param, &context_param); - if (unlikely(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'message' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(message_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(message_param) == IS_STRING)) { zephir_get_strval(message, message_param); } else { ZEPHIR_INIT_VAR(message); @@ -74752,8 +74400,8 @@ static PHP_METHOD(Phalcon_Logger_Formatter, interpolate) { array_init(replace); zephir_is_iterable(context, &_2$$3, &_1$$3, 0, 0, "phalcon/logger/formatter.zep", 89); for ( - ; zephir_hash_get_current_data_ex(_2$$3, (void**) &_3$$3, &_1$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_2$$3, &_1$$3) + ; zend_hash_get_current_data_ex(_2$$3, (void**) &_3$$3, &_1$$3) == SUCCESS + ; zend_hash_move_forward_ex(_2$$3, &_1$$3) ) { ZEPHIR_GET_HMKEY(key, _2$$3, _1$$3); ZEPHIR_GET_HVALUE(value, _3$$3); @@ -74959,8 +74607,8 @@ static PHP_METHOD(Phalcon_Logger_Multiple, setFormatter) { if (Z_TYPE_P(loggers) == IS_ARRAY) { zephir_is_iterable(loggers, &_1$$3, &_0$$3, 0, 0, "phalcon/logger/multiple.zep", 61); for ( - ; zephir_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_1$$3, &_0$$3) + ; zend_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS + ; zend_hash_move_forward_ex(_1$$3, &_0$$3) ) { ZEPHIR_GET_HVALUE(logger, _2$$3); ZEPHIR_CALL_METHOD(NULL, logger, "setformatter", NULL, 0, formatter); @@ -74990,8 +74638,8 @@ static PHP_METHOD(Phalcon_Logger_Multiple, setLogLevel) { if (Z_TYPE_P(loggers) == IS_ARRAY) { zephir_is_iterable(loggers, &_1$$3, &_0$$3, 0, 0, "phalcon/logger/multiple.zep", 77); for ( - ; zephir_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_1$$3, &_0$$3) + ; zend_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS + ; zend_hash_move_forward_ex(_1$$3, &_0$$3) ) { ZEPHIR_GET_HVALUE(logger, _2$$3); ZEPHIR_INIT_NVAR(_3$$4); @@ -75034,8 +74682,8 @@ static PHP_METHOD(Phalcon_Logger_Multiple, log) { if (Z_TYPE_P(loggers) == IS_ARRAY) { zephir_is_iterable(loggers, &_1$$3, &_0$$3, 0, 0, "phalcon/logger/multiple.zep", 93); for ( - ; zephir_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_1$$3, &_0$$3) + ; zend_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS + ; zend_hash_move_forward_ex(_1$$3, &_0$$3) ) { ZEPHIR_GET_HVALUE(logger, _2$$3); ZEPHIR_CALL_METHOD(NULL, logger, "log", NULL, 0, type, message, context); @@ -75056,11 +74704,11 @@ static PHP_METHOD(Phalcon_Logger_Multiple, critical) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &message_param, &context_param); - if (unlikely(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'message' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(message_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(message_param) == IS_STRING)) { zephir_get_strval(message, message_param); } else { ZEPHIR_INIT_VAR(message); @@ -75092,11 +74740,11 @@ static PHP_METHOD(Phalcon_Logger_Multiple, emergency) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &message_param, &context_param); - if (unlikely(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'message' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(message_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(message_param) == IS_STRING)) { zephir_get_strval(message, message_param); } else { ZEPHIR_INIT_VAR(message); @@ -75128,11 +74776,11 @@ static PHP_METHOD(Phalcon_Logger_Multiple, debug) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &message_param, &context_param); - if (unlikely(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'message' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(message_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(message_param) == IS_STRING)) { zephir_get_strval(message, message_param); } else { ZEPHIR_INIT_VAR(message); @@ -75164,11 +74812,11 @@ static PHP_METHOD(Phalcon_Logger_Multiple, error) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &message_param, &context_param); - if (unlikely(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'message' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(message_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(message_param) == IS_STRING)) { zephir_get_strval(message, message_param); } else { ZEPHIR_INIT_VAR(message); @@ -75200,11 +74848,11 @@ static PHP_METHOD(Phalcon_Logger_Multiple, info) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &message_param, &context_param); - if (unlikely(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'message' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(message_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(message_param) == IS_STRING)) { zephir_get_strval(message, message_param); } else { ZEPHIR_INIT_VAR(message); @@ -75236,11 +74884,11 @@ static PHP_METHOD(Phalcon_Logger_Multiple, notice) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &message_param, &context_param); - if (unlikely(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'message' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(message_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(message_param) == IS_STRING)) { zephir_get_strval(message, message_param); } else { ZEPHIR_INIT_VAR(message); @@ -75272,11 +74920,11 @@ static PHP_METHOD(Phalcon_Logger_Multiple, warning) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &message_param, &context_param); - if (unlikely(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'message' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(message_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(message_param) == IS_STRING)) { zephir_get_strval(message, message_param); } else { ZEPHIR_INIT_VAR(message); @@ -75308,11 +74956,11 @@ static PHP_METHOD(Phalcon_Logger_Multiple, alert) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &message_param, &context_param); - if (unlikely(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'message' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(message_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(message_param) == IS_STRING)) { zephir_get_strval(message, message_param); } else { ZEPHIR_INIT_VAR(message); @@ -75375,11 +75023,11 @@ static PHP_METHOD(Phalcon_Logger_Adapter_File, __construct) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &name_param, &options); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -75623,8 +75271,8 @@ static PHP_METHOD(Phalcon_Logger_Adapter_Firephp, logInternal) { zephir_read_property_this(&index, this_ptr, SL("_index"), PH_NOISY_CC); zephir_is_iterable(chunk, &_8, &_7, 0, 0, "phalcon/logger/adapter/firephp.zep", 92); for ( - ; zephir_hash_get_current_data_ex(_8, (void**) &_9, &_7) == SUCCESS - ; zephir_hash_move_forward_ex(_8, &_7) + ; zend_hash_get_current_data_ex(_8, (void**) &_9, &_7) == SUCCESS + ; zend_hash_move_forward_ex(_8, &_7) ) { ZEPHIR_GET_HMKEY(key, _8, _7); ZEPHIR_GET_HVALUE(chString, _9); @@ -75681,11 +75329,11 @@ static PHP_METHOD(Phalcon_Logger_Adapter_Stream, __construct) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &name_param, &options); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -76086,8 +75734,8 @@ static PHP_METHOD(Phalcon_Logger_Formatter_Firephp, format) { } zephir_is_iterable(backtrace, &_7$$4, &_6$$4, 1, 0, "phalcon/logger/formatter/firephp.zep", 141); for ( - ; zephir_hash_get_current_data_ex(_7$$4, (void**) &_8$$4, &_6$$4) == SUCCESS - ; zephir_hash_move_forward_ex(_7$$4, &_6$$4) + ; zend_hash_get_current_data_ex(_7$$4, (void**) &_8$$4, &_6$$4) == SUCCESS + ; zend_hash_move_forward_ex(_7$$4, &_6$$4) ) { ZEPHIR_GET_HMKEY(key$$4, _7$$4, _6$$4); ZEPHIR_GET_HVALUE(backtraceItem$$4, _8$$4); @@ -77027,11 +76675,11 @@ static PHP_METHOD(Phalcon_Mvc_Collection, setSource) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &source_param); - if (unlikely(Z_TYPE_P(source_param) != IS_STRING && Z_TYPE_P(source_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(source_param) != IS_STRING && Z_TYPE_P(source_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'source' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(source_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(source_param) == IS_STRING)) { zephir_get_strval(source, source_param); } else { ZEPHIR_INIT_VAR(source); @@ -77072,11 +76720,11 @@ static PHP_METHOD(Phalcon_Mvc_Collection, setConnectionService) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &connectionService_param); - if (unlikely(Z_TYPE_P(connectionService_param) != IS_STRING && Z_TYPE_P(connectionService_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(connectionService_param) != IS_STRING && Z_TYPE_P(connectionService_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'connectionService' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(connectionService_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(connectionService_param) == IS_STRING)) { zephir_get_strval(connectionService, connectionService_param); } else { ZEPHIR_INIT_VAR(connectionService); @@ -77132,11 +76780,11 @@ static PHP_METHOD(Phalcon_Mvc_Collection, readAttribute) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &attribute_param); - if (unlikely(Z_TYPE_P(attribute_param) != IS_STRING && Z_TYPE_P(attribute_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(attribute_param) != IS_STRING && Z_TYPE_P(attribute_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'attribute' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(attribute_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(attribute_param) == IS_STRING)) { zephir_get_strval(attribute, attribute_param); } else { ZEPHIR_INIT_VAR(attribute); @@ -77190,8 +76838,8 @@ static PHP_METHOD(Phalcon_Mvc_Collection, cloneResult) { } zephir_is_iterable(document, &_1, &_0, 0, 0, "phalcon/mvc/collection.zep", 332); for ( - ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS - ; zephir_hash_move_forward_ex(_1, &_0) + ; zend_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS + ; zend_hash_move_forward_ex(_1, &_0) ) { ZEPHIR_GET_HMKEY(key, _1, _0); ZEPHIR_GET_HVALUE(value, _2); @@ -77321,8 +76969,8 @@ static PHP_METHOD(Phalcon_Mvc_Collection, _getResultset) { zephir_check_call_status(); zephir_is_iterable(_6, &_8, &_7, 0, 0, "phalcon/mvc/collection.zep", 457); for ( - ; zephir_hash_get_current_data_ex(_8, (void**) &_9, &_7) == SUCCESS - ; zephir_hash_move_forward_ex(_8, &_7) + ; zend_hash_get_current_data_ex(_8, (void**) &_9, &_7) == SUCCESS + ; zend_hash_move_forward_ex(_8, &_7) ) { ZEPHIR_GET_HVALUE(document, _9); ZEPHIR_CALL_STATIC(&_10$$19, "cloneresult", &_11, 0, base, document); @@ -77561,8 +77209,8 @@ static PHP_METHOD(Phalcon_Mvc_Collection, validate) { zephir_check_call_status(); zephir_is_iterable(_1$$4, &_3$$4, &_2$$4, 0, 0, "phalcon/mvc/collection.zep", 698); for ( - ; zephir_hash_get_current_data_ex(_3$$4, (void**) &_4$$4, &_2$$4) == SUCCESS - ; zephir_hash_move_forward_ex(_3$$4, &_2$$4) + ; zend_hash_get_current_data_ex(_3$$4, (void**) &_4$$4, &_2$$4) == SUCCESS + ; zend_hash_move_forward_ex(_3$$4, &_2$$4) ) { ZEPHIR_GET_HVALUE(message, _4$$4); zephir_update_property_array_append(this_ptr, SL("_errorMessages"), message TSRMLS_CC); @@ -77629,11 +77277,11 @@ static PHP_METHOD(Phalcon_Mvc_Collection, fireEvent) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &eventName_param); - if (unlikely(Z_TYPE_P(eventName_param) != IS_STRING && Z_TYPE_P(eventName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(eventName_param) != IS_STRING && Z_TYPE_P(eventName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'eventName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(eventName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(eventName_param) == IS_STRING)) { zephir_get_strval(eventName, eventName_param); } else { ZEPHIR_INIT_VAR(eventName); @@ -77661,11 +77309,11 @@ static PHP_METHOD(Phalcon_Mvc_Collection, fireEventCancel) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &eventName_param); - if (unlikely(Z_TYPE_P(eventName_param) != IS_STRING && Z_TYPE_P(eventName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(eventName_param) != IS_STRING && Z_TYPE_P(eventName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'eventName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(eventName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(eventName_param) == IS_STRING)) { zephir_get_strval(eventName, eventName_param); } else { ZEPHIR_INIT_VAR(eventName); @@ -78358,11 +78006,11 @@ static PHP_METHOD(Phalcon_Mvc_Collection, summatory) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &field_param, &conditions, &finalize); - if (unlikely(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'field' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(field_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(field_param) == IS_STRING)) { zephir_get_strval(field, field_param); } else { ZEPHIR_INIT_VAR(field); @@ -78589,8 +78237,8 @@ static PHP_METHOD(Phalcon_Mvc_Collection, toArray) { zephir_check_call_status(); zephir_is_iterable(_0, &_2, &_1, 0, 0, "phalcon/mvc/collection.zep", 1633); for ( - ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS - ; zephir_hash_move_forward_ex(_2, &_1) + ; zend_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS + ; zend_hash_move_forward_ex(_2, &_1) ) { ZEPHIR_GET_HMKEY(key, _2, _1); ZEPHIR_GET_HVALUE(value, _3); @@ -78635,11 +78283,11 @@ static PHP_METHOD(Phalcon_Mvc_Collection, unserialize) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &data_param); - if (unlikely(Z_TYPE_P(data_param) != IS_STRING && Z_TYPE_P(data_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(data_param) != IS_STRING && Z_TYPE_P(data_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'data' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(data_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(data_param) == IS_STRING)) { zephir_get_strval(data, data_param); } else { ZEPHIR_INIT_VAR(data); @@ -78669,8 +78317,8 @@ static PHP_METHOD(Phalcon_Mvc_Collection, unserialize) { zephir_update_property_this(this_ptr, SL("_modelsManager"), manager TSRMLS_CC); zephir_is_iterable(attributes, &_3$$3, &_2$$3, 0, 0, "phalcon/mvc/collection.zep", 1689); for ( - ; zephir_hash_get_current_data_ex(_3$$3, (void**) &_4$$3, &_2$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_3$$3, &_2$$3) + ; zend_hash_get_current_data_ex(_3$$3, (void**) &_4$$3, &_2$$3) == SUCCESS + ; zend_hash_move_forward_ex(_3$$3, &_2$$3) ) { ZEPHIR_GET_HMKEY(key, _3$$3, _2$$3); ZEPHIR_GET_HVALUE(value, _4$$3); @@ -78844,11 +78492,11 @@ static PHP_METHOD(Phalcon_Mvc_Dispatcher, setControllerSuffix) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &controllerSuffix_param); - if (unlikely(Z_TYPE_P(controllerSuffix_param) != IS_STRING && Z_TYPE_P(controllerSuffix_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(controllerSuffix_param) != IS_STRING && Z_TYPE_P(controllerSuffix_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'controllerSuffix' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(controllerSuffix_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(controllerSuffix_param) == IS_STRING)) { zephir_get_strval(controllerSuffix, controllerSuffix_param); } else { ZEPHIR_INIT_VAR(controllerSuffix); @@ -78869,11 +78517,11 @@ static PHP_METHOD(Phalcon_Mvc_Dispatcher, setDefaultController) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &controllerName_param); - if (unlikely(Z_TYPE_P(controllerName_param) != IS_STRING && Z_TYPE_P(controllerName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(controllerName_param) != IS_STRING && Z_TYPE_P(controllerName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'controllerName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(controllerName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(controllerName_param) == IS_STRING)) { zephir_get_strval(controllerName, controllerName_param); } else { ZEPHIR_INIT_VAR(controllerName); @@ -78894,11 +78542,11 @@ static PHP_METHOD(Phalcon_Mvc_Dispatcher, setControllerName) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &controllerName_param); - if (unlikely(Z_TYPE_P(controllerName_param) != IS_STRING && Z_TYPE_P(controllerName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(controllerName_param) != IS_STRING && Z_TYPE_P(controllerName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'controllerName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(controllerName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(controllerName_param) == IS_STRING)) { zephir_get_strval(controllerName, controllerName_param); } else { ZEPHIR_INIT_VAR(controllerName); @@ -78952,11 +78600,11 @@ static PHP_METHOD(Phalcon_Mvc_Dispatcher, _throwDispatchException) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &message_param, &exceptionCode_param); - if (unlikely(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'message' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(message_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(message_param) == IS_STRING)) { zephir_get_strval(message, message_param); } else { ZEPHIR_INIT_VAR(message); @@ -79228,11 +78876,11 @@ static PHP_METHOD(Phalcon_Mvc_Micro, map) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &routePattern_param, &handler); - if (unlikely(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'routePattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(routePattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(routePattern_param) == IS_STRING)) { zephir_get_strval(routePattern, routePattern_param); } else { ZEPHIR_INIT_VAR(routePattern); @@ -79260,11 +78908,11 @@ static PHP_METHOD(Phalcon_Mvc_Micro, get) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &routePattern_param, &handler); - if (unlikely(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'routePattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(routePattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(routePattern_param) == IS_STRING)) { zephir_get_strval(routePattern, routePattern_param); } else { ZEPHIR_INIT_VAR(routePattern); @@ -79292,11 +78940,11 @@ static PHP_METHOD(Phalcon_Mvc_Micro, post) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &routePattern_param, &handler); - if (unlikely(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'routePattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(routePattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(routePattern_param) == IS_STRING)) { zephir_get_strval(routePattern, routePattern_param); } else { ZEPHIR_INIT_VAR(routePattern); @@ -79324,11 +78972,11 @@ static PHP_METHOD(Phalcon_Mvc_Micro, put) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &routePattern_param, &handler); - if (unlikely(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'routePattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(routePattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(routePattern_param) == IS_STRING)) { zephir_get_strval(routePattern, routePattern_param); } else { ZEPHIR_INIT_VAR(routePattern); @@ -79356,11 +79004,11 @@ static PHP_METHOD(Phalcon_Mvc_Micro, patch) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &routePattern_param, &handler); - if (unlikely(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'routePattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(routePattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(routePattern_param) == IS_STRING)) { zephir_get_strval(routePattern, routePattern_param); } else { ZEPHIR_INIT_VAR(routePattern); @@ -79388,11 +79036,11 @@ static PHP_METHOD(Phalcon_Mvc_Micro, head) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &routePattern_param, &handler); - if (unlikely(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'routePattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(routePattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(routePattern_param) == IS_STRING)) { zephir_get_strval(routePattern, routePattern_param); } else { ZEPHIR_INIT_VAR(routePattern); @@ -79420,11 +79068,11 @@ static PHP_METHOD(Phalcon_Mvc_Micro, delete) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &routePattern_param, &handler); - if (unlikely(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'routePattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(routePattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(routePattern_param) == IS_STRING)) { zephir_get_strval(routePattern, routePattern_param); } else { ZEPHIR_INIT_VAR(routePattern); @@ -79452,11 +79100,11 @@ static PHP_METHOD(Phalcon_Mvc_Micro, options) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &routePattern_param, &handler); - if (unlikely(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'routePattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(routePattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(routePattern_param) == IS_STRING)) { zephir_get_strval(routePattern, routePattern_param); } else { ZEPHIR_INIT_VAR(routePattern); @@ -79516,8 +79164,8 @@ static PHP_METHOD(Phalcon_Mvc_Micro, mount) { zephir_check_call_status(); zephir_is_iterable(handlers, &_2$$5, &_1$$5, 0, 0, "phalcon/mvc/micro.zep", 444); for ( - ; zephir_hash_get_current_data_ex(_2$$5, (void**) &_3$$5, &_1$$5) == SUCCESS - ; zephir_hash_move_forward_ex(_2$$5, &_1$$5) + ; zend_hash_get_current_data_ex(_2$$5, (void**) &_3$$5, &_1$$5) == SUCCESS + ; zend_hash_move_forward_ex(_2$$5, &_1$$5) ) { ZEPHIR_GET_HVALUE(handler, _3$$5); if (Z_TYPE_P(handler) != IS_ARRAY) { @@ -79633,11 +79281,11 @@ static PHP_METHOD(Phalcon_Mvc_Micro, setService) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 1, &serviceName_param, &definition, &shared_param); - if (unlikely(Z_TYPE_P(serviceName_param) != IS_STRING && Z_TYPE_P(serviceName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(serviceName_param) != IS_STRING && Z_TYPE_P(serviceName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'serviceName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(serviceName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(serviceName_param) == IS_STRING)) { zephir_get_strval(serviceName, serviceName_param); } else { ZEPHIR_INIT_VAR(serviceName); @@ -79680,11 +79328,11 @@ static PHP_METHOD(Phalcon_Mvc_Micro, hasService) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &serviceName_param); - if (unlikely(Z_TYPE_P(serviceName_param) != IS_STRING && Z_TYPE_P(serviceName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(serviceName_param) != IS_STRING && Z_TYPE_P(serviceName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'serviceName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(serviceName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(serviceName_param) == IS_STRING)) { zephir_get_strval(serviceName, serviceName_param); } else { ZEPHIR_INIT_VAR(serviceName); @@ -79716,11 +79364,11 @@ static PHP_METHOD(Phalcon_Mvc_Micro, getService) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &serviceName_param); - if (unlikely(Z_TYPE_P(serviceName_param) != IS_STRING && Z_TYPE_P(serviceName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(serviceName_param) != IS_STRING && Z_TYPE_P(serviceName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'serviceName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(serviceName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(serviceName_param) == IS_STRING)) { zephir_get_strval(serviceName, serviceName_param); } else { ZEPHIR_INIT_VAR(serviceName); @@ -79770,13 +79418,13 @@ static PHP_METHOD(Phalcon_Mvc_Micro, getSharedService) { static PHP_METHOD(Phalcon_Mvc_Micro, handle) { - zval *_58$$59; + zval *_59$$59; zend_class_entry *_20$$20; HashTable *_11$$12, *_30$$30, *_40$$38, *_51$$49; HashPosition _10$$12, _29$$30, _39$$38, _50$$49; zend_bool _18$$7, _26$$7, _23$$24, _32$$31; int ZEPHIR_LAST_CALL_STATUS; - zval *uri = NULL, *dependencyInjector = NULL, *eventsManager = NULL, *status = NULL, *router = NULL, *matchedRoute = NULL, *handler = NULL, *beforeHandlers = NULL, *params = NULL, *returnedValue = NULL, *e = NULL, *errorHandler = NULL, *afterHandlers = NULL, *notFoundHandler = NULL, *finishHandlers = NULL, *finish = NULL, *before = NULL, *after = NULL, *response = NULL, *modelBinder = NULL, *bindCacheKey = NULL, *routeName = NULL, *realHandler = NULL, *methodName = NULL, *lazyReturned = NULL, *afterBindingHandlers = NULL, *afterBinding = NULL, *_0$$5 = NULL, *_1$$5, *_2$$4 = NULL, *_3$$4, *_4$$7, *_5$$7 = NULL, *_6$$8, *_7$$8, *_8$$9 = NULL, *_9$$9, **_12$$12, *_13$$15, *_14$$17 = NULL, *_15$$17 = NULL, *_16$$13 = NULL, *_17$$13, *_19$$20 = NULL, *_21$$23 = NULL, *_22$$21 = NULL, *_24$$25, *_25$$25 = NULL, *_27$$28 = NULL, *_28$$28, **_31$$30, *_36$$31 = NULL, *_37$$31, *_33$$32, *_34$$34 = NULL, *_35$$34 = NULL, *_38$$37, **_41$$38, *_42$$41, *_43$$43 = NULL, *_44$$43 = NULL, *_45$$45 = NULL, *_46$$45, *_47$$47, *_48$$47, *_49$$48, **_52$$49, *_53$$52, *_54$$54 = NULL, *_55$$54 = NULL, *_56$$50, *_57$$58, *_59$$67 = NULL, *_60$$67; + zval *uri = NULL, *dependencyInjector = NULL, *eventsManager = NULL, *status = NULL, *router = NULL, *matchedRoute = NULL, *handler = NULL, *beforeHandlers = NULL, *params = NULL, *returnedValue = NULL, *e = NULL, *errorHandler = NULL, *afterHandlers = NULL, *notFoundHandler = NULL, *finishHandlers = NULL, *finish = NULL, *before = NULL, *after = NULL, *response = NULL, *modelBinder = NULL, *bindCacheKey = NULL, *routeName = NULL, *realHandler = NULL, *methodName = NULL, *lazyReturned = NULL, *afterBindingHandlers = NULL, *afterBinding = NULL, *_57, *_0$$5 = NULL, *_1$$5, *_2$$4 = NULL, *_3$$4, *_4$$7, *_5$$7 = NULL, *_6$$8, *_7$$8, *_8$$9 = NULL, *_9$$9, **_12$$12, *_13$$15, *_14$$17 = NULL, *_15$$17 = NULL, *_16$$13 = NULL, *_17$$13, *_19$$20 = NULL, *_21$$23 = NULL, *_22$$21 = NULL, *_24$$25, *_25$$25 = NULL, *_27$$28 = NULL, *_28$$28, **_31$$30, *_36$$31 = NULL, *_37$$31, *_33$$32, *_34$$34 = NULL, *_35$$34 = NULL, *_38$$37, **_41$$38, *_42$$41, *_43$$43 = NULL, *_44$$43 = NULL, *_45$$45 = NULL, *_46$$45, *_47$$47, *_48$$47, *_49$$48, **_52$$49, *_53$$52, *_54$$54 = NULL, *_55$$54 = NULL, *_56$$50, *_58$$58, *_60$$67 = NULL, *_61$$67; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 0, 1, &uri); @@ -79864,8 +79512,8 @@ static PHP_METHOD(Phalcon_Mvc_Micro, handle) { } zephir_is_iterable(beforeHandlers, &_11$$12, &_10$$12, 0, 0, "phalcon/mvc/micro.zep", 696); for ( - ; zephir_hash_get_current_data_ex(_11$$12, (void**) &_12$$12, &_10$$12) == SUCCESS - ; zephir_hash_move_forward_ex(_11$$12, &_10$$12) + ; zend_hash_get_current_data_ex(_11$$12, (void**) &_12$$12, &_10$$12) == SUCCESS + ; zend_hash_move_forward_ex(_11$$12, &_10$$12) ) { ZEPHIR_GET_HVALUE(before, _12$$12); if (Z_TYPE_P(before) == IS_OBJECT) { @@ -79986,8 +79634,8 @@ static PHP_METHOD(Phalcon_Mvc_Micro, handle) { } zephir_is_iterable(afterBindingHandlers, &_30$$30, &_29$$30, 0, 0, "phalcon/mvc/micro.zep", 801); for ( - ; zephir_hash_get_current_data_ex(_30$$30, (void**) &_31$$30, &_29$$30) == SUCCESS - ; zephir_hash_move_forward_ex(_30$$30, &_29$$30) + ; zend_hash_get_current_data_ex(_30$$30, (void**) &_31$$30, &_29$$30) == SUCCESS + ; zend_hash_move_forward_ex(_30$$30, &_29$$30) ) { ZEPHIR_GET_HVALUE(afterBinding, _31$$30); _32$$31 = Z_TYPE_P(afterBinding) == IS_OBJECT; @@ -80045,8 +79693,8 @@ static PHP_METHOD(Phalcon_Mvc_Micro, handle) { } zephir_is_iterable(afterHandlers, &_40$$38, &_39$$38, 0, 0, "phalcon/mvc/micro.zep", 850); for ( - ; zephir_hash_get_current_data_ex(_40$$38, (void**) &_41$$38, &_39$$38) == SUCCESS - ; zephir_hash_move_forward_ex(_40$$38, &_39$$38) + ; zend_hash_get_current_data_ex(_40$$38, (void**) &_41$$38, &_39$$38) == SUCCESS + ; zend_hash_move_forward_ex(_40$$38, &_39$$38) ) { ZEPHIR_GET_HVALUE(after, _41$$38); if (Z_TYPE_P(after) == IS_OBJECT) { @@ -80127,8 +79775,8 @@ static PHP_METHOD(Phalcon_Mvc_Micro, handle) { ZVAL_NULL(params); zephir_is_iterable(finishHandlers, &_51$$49, &_50$$49, 0, 0, "phalcon/mvc/micro.zep", 940); for ( - ; zephir_hash_get_current_data_ex(_51$$49, (void**) &_52$$49, &_50$$49) == SUCCESS - ; zephir_hash_move_forward_ex(_51$$49, &_50$$49) + ; zend_hash_get_current_data_ex(_51$$49, (void**) &_52$$49, &_50$$49) == SUCCESS + ; zend_hash_move_forward_ex(_51$$49, &_50$$49) ) { ZEPHIR_GET_HVALUE(finish, _52$$49); if (Z_TYPE_P(finish) == IS_OBJECT) { @@ -80172,16 +79820,18 @@ static PHP_METHOD(Phalcon_Mvc_Micro, handle) { try_end_1: if (EG(exception)) { - ZEPHIR_CPY_WRT(e, EG(exception)); - if (zephir_instance_of_ev(e, zend_exception_get_default(TSRMLS_C) TSRMLS_CC)) { + ZEPHIR_INIT_VAR(_57); + ZEPHIR_CPY_WRT(_57, EG(exception)); + if (zephir_instance_of_ev(_57, zend_exception_get_default(TSRMLS_C) TSRMLS_CC)) { zend_clear_exception(TSRMLS_C); + ZEPHIR_CPY_WRT(e, _57); ZEPHIR_OBS_NVAR(eventsManager); zephir_read_property_this(&eventsManager, this_ptr, SL("_eventsManager"), PH_NOISY_CC); if (Z_TYPE_P(eventsManager) == IS_OBJECT) { - ZEPHIR_INIT_VAR(_57$$58); - ZVAL_STRING(_57$$58, "micro:beforeException", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(&returnedValue, eventsManager, "fire", NULL, 0, _57$$58, this_ptr, e); - zephir_check_temp_parameter(_57$$58); + ZEPHIR_INIT_VAR(_58$$58); + ZVAL_STRING(_58$$58, "micro:beforeException", ZEPHIR_TEMP_PARAM_COPY); + ZEPHIR_CALL_METHOD(&returnedValue, eventsManager, "fire", NULL, 0, _58$$58, this_ptr, e); + zephir_check_temp_parameter(_58$$58); zephir_check_call_status(); } ZEPHIR_OBS_VAR(errorHandler); @@ -80191,11 +79841,11 @@ static PHP_METHOD(Phalcon_Mvc_Micro, handle) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_micro_exception_ce, "Error handler is not callable", "phalcon/mvc/micro.zep", 959); return; } - ZEPHIR_INIT_VAR(_58$$59); - zephir_create_array(_58$$59, 1, 0 TSRMLS_CC); - zephir_array_fast_append(_58$$59, e); + ZEPHIR_INIT_VAR(_59$$59); + zephir_create_array(_59$$59, 1, 0 TSRMLS_CC); + zephir_array_fast_append(_59$$59, e); ZEPHIR_INIT_NVAR(returnedValue); - ZEPHIR_CALL_USER_FUNC_ARRAY(returnedValue, errorHandler, _58$$59); + ZEPHIR_CALL_USER_FUNC_ARRAY(returnedValue, errorHandler, _59$$59); zephir_check_call_status(); if (Z_TYPE_P(returnedValue) == IS_OBJECT) { if (!(zephir_instance_of_ev(returnedValue, phalcon_http_responseinterface_ce TSRMLS_CC))) { @@ -80220,12 +79870,12 @@ static PHP_METHOD(Phalcon_Mvc_Micro, handle) { } } if (Z_TYPE_P(returnedValue) == IS_STRING) { - ZEPHIR_INIT_VAR(_60$$67); - ZVAL_STRING(_60$$67, "response", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(&_59$$67, dependencyInjector, "getshared", NULL, 0, _60$$67); - zephir_check_temp_parameter(_60$$67); + ZEPHIR_INIT_VAR(_61$$67); + ZVAL_STRING(_61$$67, "response", ZEPHIR_TEMP_PARAM_COPY); + ZEPHIR_CALL_METHOD(&_60$$67, dependencyInjector, "getshared", NULL, 0, _61$$67); + zephir_check_temp_parameter(_61$$67); zephir_check_call_status(); - ZEPHIR_CPY_WRT(response, _59$$67); + ZEPHIR_CPY_WRT(response, _60$$67); ZEPHIR_CALL_METHOD(NULL, response, "setcontent", NULL, 0, returnedValue); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, response, "send", NULL, 0); @@ -80714,11 +80364,11 @@ static PHP_METHOD(Phalcon_Mvc_Model, setSource) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &source_param); - if (unlikely(Z_TYPE_P(source_param) != IS_STRING && Z_TYPE_P(source_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(source_param) != IS_STRING && Z_TYPE_P(source_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'source' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(source_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(source_param) == IS_STRING)) { zephir_get_strval(source, source_param); } else { ZEPHIR_INIT_VAR(source); @@ -80756,11 +80406,11 @@ static PHP_METHOD(Phalcon_Mvc_Model, setSchema) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &schema_param); - if (unlikely(Z_TYPE_P(schema_param) != IS_STRING && Z_TYPE_P(schema_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schema_param) != IS_STRING && Z_TYPE_P(schema_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schema' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schema_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schema_param) == IS_STRING)) { zephir_get_strval(schema, schema_param); } else { ZEPHIR_INIT_VAR(schema); @@ -80798,11 +80448,11 @@ static PHP_METHOD(Phalcon_Mvc_Model, setConnectionService) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &connectionService_param); - if (unlikely(Z_TYPE_P(connectionService_param) != IS_STRING && Z_TYPE_P(connectionService_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(connectionService_param) != IS_STRING && Z_TYPE_P(connectionService_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'connectionService' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(connectionService_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(connectionService_param) == IS_STRING)) { zephir_get_strval(connectionService, connectionService_param); } else { ZEPHIR_INIT_VAR(connectionService); @@ -80826,11 +80476,11 @@ static PHP_METHOD(Phalcon_Mvc_Model, setReadConnectionService) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &connectionService_param); - if (unlikely(Z_TYPE_P(connectionService_param) != IS_STRING && Z_TYPE_P(connectionService_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(connectionService_param) != IS_STRING && Z_TYPE_P(connectionService_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'connectionService' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(connectionService_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(connectionService_param) == IS_STRING)) { zephir_get_strval(connectionService, connectionService_param); } else { ZEPHIR_INIT_VAR(connectionService); @@ -80854,11 +80504,11 @@ static PHP_METHOD(Phalcon_Mvc_Model, setWriteConnectionService) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &connectionService_param); - if (unlikely(Z_TYPE_P(connectionService_param) != IS_STRING && Z_TYPE_P(connectionService_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(connectionService_param) != IS_STRING && Z_TYPE_P(connectionService_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'connectionService' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(connectionService_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(connectionService_param) == IS_STRING)) { zephir_get_strval(connectionService, connectionService_param); } else { ZEPHIR_INIT_VAR(connectionService); @@ -80994,8 +80644,8 @@ static PHP_METHOD(Phalcon_Mvc_Model, assign) { array_init(dataMapped); zephir_is_iterable(data, &_1$$3, &_0$$3, 0, 0, "phalcon/mvc/model.zep", 465); for ( - ; zephir_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_1$$3, &_0$$3) + ; zend_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS + ; zend_hash_move_forward_ex(_1$$3, &_0$$3) ) { ZEPHIR_GET_HMKEY(key, _1$$3, _0$$3); ZEPHIR_GET_HVALUE(value, _2$$3); @@ -81023,8 +80673,8 @@ static PHP_METHOD(Phalcon_Mvc_Model, assign) { zephir_check_call_status(); zephir_is_iterable(_3, &_5, &_4, 0, 0, "phalcon/mvc/model.zep", 514); for ( - ; zephir_hash_get_current_data_ex(_5, (void**) &_6, &_4) == SUCCESS - ; zephir_hash_move_forward_ex(_5, &_4) + ; zend_hash_get_current_data_ex(_5, (void**) &_6, &_4) == SUCCESS + ; zend_hash_move_forward_ex(_5, &_4) ) { ZEPHIR_GET_HVALUE(attribute, _6); if (Z_TYPE_P(columnMap) == IS_ARRAY) { @@ -81101,8 +80751,8 @@ static PHP_METHOD(Phalcon_Mvc_Model, cloneResultMap) { zephir_check_call_status(); zephir_is_iterable(data, &_2, &_1, 0, 0, "phalcon/mvc/model.zep", 616); for ( - ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS - ; zephir_hash_move_forward_ex(_2, &_1) + ; zend_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS + ; zend_hash_move_forward_ex(_2, &_1) ) { ZEPHIR_GET_HMKEY(key, _2, _1); ZEPHIR_GET_HVALUE(value, _3); @@ -81222,8 +80872,8 @@ static PHP_METHOD(Phalcon_Mvc_Model, cloneResultMapHydrate) { } zephir_is_iterable(data, &_1, &_0, 0, 0, "phalcon/mvc/model.zep", 701); for ( - ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS - ; zephir_hash_move_forward_ex(_1, &_0) + ; zend_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS + ; zend_hash_move_forward_ex(_1, &_0) ) { ZEPHIR_GET_HMKEY(key, _1, _0); ZEPHIR_GET_HVALUE(value, _2); @@ -81302,8 +80952,8 @@ static PHP_METHOD(Phalcon_Mvc_Model, cloneResult) { zephir_check_call_status(); zephir_is_iterable(data, &_2, &_1, 0, 0, "phalcon/mvc/model.zep", 751); for ( - ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS - ; zephir_hash_move_forward_ex(_2, &_1) + ; zend_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS + ; zend_hash_move_forward_ex(_2, &_1) ) { ZEPHIR_GET_HMKEY(key, _2, _1); ZEPHIR_GET_HVALUE(value, _3); @@ -81568,8 +81218,8 @@ static PHP_METHOD(Phalcon_Mvc_Model, _exists) { array_init(uniqueTypes); zephir_is_iterable(primaryKeys, &_1$$3, &_0$$3, 0, 0, "phalcon/mvc/model.zep", 1074); for ( - ; zephir_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_1$$3, &_0$$3) + ; zend_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS + ; zend_hash_move_forward_ex(_1$$3, &_0$$3) ) { ZEPHIR_GET_HVALUE(field, _2$$3); if (Z_TYPE_P(columnMap) == IS_ARRAY) { @@ -81694,21 +81344,21 @@ static PHP_METHOD(Phalcon_Mvc_Model, _groupResult) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &functionName_param, &alias_param, ¶meters); - if (unlikely(Z_TYPE_P(functionName_param) != IS_STRING && Z_TYPE_P(functionName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(functionName_param) != IS_STRING && Z_TYPE_P(functionName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'functionName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(functionName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(functionName_param) == IS_STRING)) { zephir_get_strval(functionName, functionName_param); } else { ZEPHIR_INIT_VAR(functionName); ZVAL_EMPTY_STRING(functionName); } - if (unlikely(Z_TYPE_P(alias_param) != IS_STRING && Z_TYPE_P(alias_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(alias_param) != IS_STRING && Z_TYPE_P(alias_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'alias' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(alias_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(alias_param) == IS_STRING)) { zephir_get_strval(alias, alias_param); } else { ZEPHIR_INIT_VAR(alias); @@ -81925,11 +81575,11 @@ static PHP_METHOD(Phalcon_Mvc_Model, fireEvent) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &eventName_param); - if (unlikely(Z_TYPE_P(eventName_param) != IS_STRING && Z_TYPE_P(eventName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(eventName_param) != IS_STRING && Z_TYPE_P(eventName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'eventName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(eventName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(eventName_param) == IS_STRING)) { zephir_get_strval(eventName, eventName_param); } else { ZEPHIR_INIT_VAR(eventName); @@ -81957,11 +81607,11 @@ static PHP_METHOD(Phalcon_Mvc_Model, fireEventCancel) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &eventName_param); - if (unlikely(Z_TYPE_P(eventName_param) != IS_STRING && Z_TYPE_P(eventName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(eventName_param) != IS_STRING && Z_TYPE_P(eventName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'eventName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(eventName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(eventName_param) == IS_STRING)) { zephir_get_strval(eventName, eventName_param); } else { ZEPHIR_INIT_VAR(eventName); @@ -82115,8 +81765,8 @@ static PHP_METHOD(Phalcon_Mvc_Model, getMessages) { _1$$3 = zephir_fetch_nproperty_this(this_ptr, SL("_errorMessages"), PH_NOISY_CC); zephir_is_iterable(_1$$3, &_3$$3, &_2$$3, 0, 0, "phalcon/mvc/model.zep", 1594); for ( - ; zephir_hash_get_current_data_ex(_3$$3, (void**) &_4$$3, &_2$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_3$$3, &_2$$3) + ; zend_hash_get_current_data_ex(_3$$3, (void**) &_4$$3, &_2$$3) == SUCCESS + ; zend_hash_move_forward_ex(_3$$3, &_2$$3) ) { ZEPHIR_GET_HVALUE(message, _4$$3); ZEPHIR_CALL_METHOD(&_5$$4, message, "getfield", NULL, 0); @@ -82150,8 +81800,8 @@ static PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysRestrict) { error = 0; zephir_is_iterable(belongsTo, &_2, &_1, 0, 0, "phalcon/mvc/model.zep", 1739); for ( - ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS - ; zephir_hash_move_forward_ex(_2, &_1) + ; zend_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS + ; zend_hash_move_forward_ex(_2, &_1) ) { ZEPHIR_GET_HVALUE(relation, _3); validateWithNulls = 0; @@ -82187,8 +81837,8 @@ static PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysRestrict) { if (Z_TYPE_P(fields) == IS_ARRAY) { zephir_is_iterable(fields, &_8$$8, &_7$$8, 0, 0, "phalcon/mvc/model.zep", 1679); for ( - ; zephir_hash_get_current_data_ex(_8$$8, (void**) &_9$$8, &_7$$8) == SUCCESS - ; zephir_hash_move_forward_ex(_8$$8, &_7$$8) + ; zend_hash_get_current_data_ex(_8$$8, (void**) &_9$$8, &_7$$8) == SUCCESS + ; zend_hash_move_forward_ex(_8$$8, &_7$$8) ) { ZEPHIR_GET_HMKEY(position, _8$$8, _7$$8); ZEPHIR_GET_HVALUE(field, _9$$8); @@ -82297,8 +81947,8 @@ static PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysReverseCascade) { zephir_check_call_status(); zephir_is_iterable(relations, &_2, &_1, 0, 0, "phalcon/mvc/model.zep", 1852); for ( - ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS - ; zephir_hash_move_forward_ex(_2, &_1) + ; zend_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS + ; zend_hash_move_forward_ex(_2, &_1) ) { ZEPHIR_GET_HVALUE(relation, _3); ZEPHIR_CALL_METHOD(&foreignKey, relation, "getforeignkey", NULL, 0); @@ -82332,8 +81982,8 @@ static PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysReverseCascade) { if (Z_TYPE_P(fields) == IS_ARRAY) { zephir_is_iterable(fields, &_8$$8, &_7$$8, 0, 0, "phalcon/mvc/model.zep", 1821); for ( - ; zephir_hash_get_current_data_ex(_8$$8, (void**) &_9$$8, &_7$$8) == SUCCESS - ; zephir_hash_move_forward_ex(_8$$8, &_7$$8) + ; zend_hash_get_current_data_ex(_8$$8, (void**) &_9$$8, &_7$$8) == SUCCESS + ; zend_hash_move_forward_ex(_8$$8, &_7$$8) ) { ZEPHIR_GET_HMKEY(position, _8$$8, _7$$8); ZEPHIR_GET_HVALUE(field, _9$$8); @@ -82394,8 +82044,8 @@ static PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysReverseRestrict) { error = 0; zephir_is_iterable(relations, &_2, &_1, 0, 0, "phalcon/mvc/model.zep", 1970); for ( - ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS - ; zephir_hash_move_forward_ex(_2, &_1) + ; zend_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS + ; zend_hash_move_forward_ex(_2, &_1) ) { ZEPHIR_GET_HVALUE(relation, _3); ZEPHIR_CALL_METHOD(&foreignKey, relation, "getforeignkey", NULL, 0); @@ -82429,8 +82079,8 @@ static PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysReverseRestrict) { if (Z_TYPE_P(fields) == IS_ARRAY) { zephir_is_iterable(fields, &_7$$8, &_6$$8, 0, 0, "phalcon/mvc/model.zep", 1932); for ( - ; zephir_hash_get_current_data_ex(_7$$8, (void**) &_8$$8, &_6$$8) == SUCCESS - ; zephir_hash_move_forward_ex(_7$$8, &_6$$8) + ; zend_hash_get_current_data_ex(_7$$8, (void**) &_8$$8, &_6$$8) == SUCCESS + ; zend_hash_move_forward_ex(_7$$8, &_6$$8) ) { ZEPHIR_GET_HMKEY(position, _7$$8, _6$$8); ZEPHIR_GET_HVALUE(field, _8$$8); @@ -82575,8 +82225,8 @@ static PHP_METHOD(Phalcon_Mvc_Model, _preSave) { error = 0; zephir_is_iterable(notNull, &_9$$12, &_8$$12, 0, 0, "phalcon/mvc/model.zep", 2136); for ( - ; zephir_hash_get_current_data_ex(_9$$12, (void**) &_10$$12, &_8$$12) == SUCCESS - ; zephir_hash_move_forward_ex(_9$$12, &_8$$12) + ; zend_hash_get_current_data_ex(_9$$12, (void**) &_10$$12, &_8$$12) == SUCCESS + ; zend_hash_move_forward_ex(_9$$12, &_8$$12) ) { ZEPHIR_GET_HVALUE(field, _10$$12); if (!(zephir_array_isset(automaticAttributes, field))) { @@ -82790,10 +82440,10 @@ static PHP_METHOD(Phalcon_Mvc_Model, _doLowInsert) { HashTable *_2; HashPosition _1; - zend_bool useExplicitIdentity = 0, _19, _7$$11, _16$$22; + zend_bool useExplicitIdentity = 0, _19, _7$$11, _16$$23; zephir_fcall_cache_entry *_6 = NULL, *_8 = NULL, *_12 = NULL; int ZEPHIR_LAST_CALL_STATUS; - zval *metaData, *connection, *table, *identityField, *bindSkip = NULL, *fields = NULL, *values = NULL, *bindTypes = NULL, *attributes = NULL, *bindDataTypes = NULL, *automaticAttributes = NULL, *field = NULL, *columnMap = NULL, *value = NULL, *attributeField = NULL, *success = NULL, *bindType = NULL, *defaultValue = NULL, *sequenceName = NULL, *defaultValues = NULL, *source = NULL, *schema = NULL, *snapshot = NULL, *lastInsertedId = NULL, *manager = NULL, *_0, **_3, *_4$$8 = NULL, *_5$$8 = NULL, *_9$$13 = NULL, *_10$$13 = NULL, *_11$$15 = NULL, *_13$$17 = NULL, *_14$$20, *_15$$20, *_17$$27, *_18$$27, *_20$$30 = NULL, *_21$$30 = NULL; + zval *metaData, *connection, *table, *identityField, *bindSkip = NULL, *fields = NULL, *values = NULL, *bindTypes = NULL, *attributes = NULL, *bindDataTypes = NULL, *automaticAttributes = NULL, *field = NULL, *columnMap = NULL, *value = NULL, *attributeField = NULL, *success = NULL, *bindType = NULL, *defaultValue = NULL, *sequenceName = NULL, *defaultValues = NULL, *source = NULL, *schema = NULL, *snapshot = NULL, *lastInsertedId = NULL, *manager = NULL, *_0, **_3, *_4$$8 = NULL, *_5$$8 = NULL, *_9$$14 = NULL, *_10$$14 = NULL, *_11$$16 = NULL, *_13$$18 = NULL, *_14$$21, *_15$$21, *_17$$28, *_18$$28, *_20$$31 = NULL, *_21$$31 = NULL; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 4, 0, &metaData, &connection, &table, &identityField); @@ -82827,10 +82477,10 @@ static PHP_METHOD(Phalcon_Mvc_Model, _doLowInsert) { ZEPHIR_INIT_NVAR(columnMap); ZVAL_NULL(columnMap); } - zephir_is_iterable(attributes, &_2, &_1, 0, 0, "phalcon/mvc/model.zep", 2327); + zephir_is_iterable(attributes, &_2, &_1, 0, 0, "phalcon/mvc/model.zep", 2329); for ( - ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS - ; zephir_hash_move_forward_ex(_2, &_1) + ; zend_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS + ; zend_hash_move_forward_ex(_2, &_1) ) { ZEPHIR_GET_HVALUE(field, _3); if (!(zephir_array_isset(automaticAttributes, field))) { @@ -82858,37 +82508,39 @@ static PHP_METHOD(Phalcon_Mvc_Model, _doLowInsert) { _7$$11 = zephir_array_isset(defaultValues, field); } if (_7$$11) { + zephir_array_update_zval(&snapshot, attributeField, &ZEPHIR_GLOBAL(global_null), PH_COPY | PH_SEPARATE); ZEPHIR_CALL_METHOD(&value, connection, "getdefaultvalue", &_8, 0); zephir_check_call_status(); + } else { + zephir_array_update_zval(&snapshot, attributeField, &value, PH_COPY | PH_SEPARATE); } ZEPHIR_OBS_NVAR(bindType); if (!(zephir_array_isset_fetch(&bindType, bindDataTypes, field, 0 TSRMLS_CC))) { - ZEPHIR_INIT_NVAR(_9$$13); - object_init_ex(_9$$13, phalcon_mvc_model_exception_ce); - ZEPHIR_INIT_LNVAR(_10$$13); - ZEPHIR_CONCAT_SVS(_10$$13, "Column '", field, "' have not defined a bind data type"); - ZEPHIR_CALL_METHOD(NULL, _9$$13, "__construct", &_6, 9, _10$$13); + ZEPHIR_INIT_NVAR(_9$$14); + object_init_ex(_9$$14, phalcon_mvc_model_exception_ce); + ZEPHIR_INIT_LNVAR(_10$$14); + ZEPHIR_CONCAT_SVS(_10$$14, "Column '", field, "' have not defined a bind data type"); + ZEPHIR_CALL_METHOD(NULL, _9$$14, "__construct", &_6, 9, _10$$14); zephir_check_call_status(); - zephir_throw_exception_debug(_9$$13, "phalcon/mvc/model.zep", 2300 TSRMLS_CC); + zephir_throw_exception_debug(_9$$14, "phalcon/mvc/model.zep", 2303 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } - zephir_array_append(&fields, field, PH_SEPARATE, "phalcon/mvc/model.zep", 2303); - zephir_array_append(&values, value, PH_SEPARATE, "phalcon/mvc/model.zep", 2303); - zephir_array_append(&bindTypes, bindType, PH_SEPARATE, "phalcon/mvc/model.zep", 2303); - zephir_array_update_zval(&snapshot, attributeField, &value, PH_COPY | PH_SEPARATE); + zephir_array_append(&fields, field, PH_SEPARATE, "phalcon/mvc/model.zep", 2306); + zephir_array_append(&values, value, PH_SEPARATE, "phalcon/mvc/model.zep", 2306); + zephir_array_append(&bindTypes, bindType, PH_SEPARATE, "phalcon/mvc/model.zep", 2306); } else { if (zephir_array_isset(defaultValues, field)) { - ZEPHIR_CALL_METHOD(&_11$$15, connection, "getdefaultvalue", &_12, 0); + ZEPHIR_CALL_METHOD(&_11$$16, connection, "getdefaultvalue", &_12, 0); zephir_check_call_status(); - zephir_array_append(&values, _11$$15, PH_SEPARATE, "phalcon/mvc/model.zep", 2308); + zephir_array_append(&values, _11$$16, PH_SEPARATE, "phalcon/mvc/model.zep", 2310); zephir_array_update_zval(&snapshot, attributeField, &ZEPHIR_GLOBAL(global_null), PH_COPY | PH_SEPARATE); } else { - zephir_array_append(&values, value, PH_SEPARATE, "phalcon/mvc/model.zep", 2314); + zephir_array_append(&values, value, PH_SEPARATE, "phalcon/mvc/model.zep", 2316); zephir_array_update_zval(&snapshot, attributeField, &value, PH_COPY | PH_SEPARATE); } - zephir_array_append(&fields, field, PH_SEPARATE, "phalcon/mvc/model.zep", 2318); - zephir_array_append(&bindTypes, bindSkip, PH_SEPARATE, "phalcon/mvc/model.zep", 2318); + zephir_array_append(&fields, field, PH_SEPARATE, "phalcon/mvc/model.zep", 2320); + zephir_array_append(&bindTypes, bindSkip, PH_SEPARATE, "phalcon/mvc/model.zep", 2320); } } } @@ -82896,22 +82548,22 @@ static PHP_METHOD(Phalcon_Mvc_Model, _doLowInsert) { if (!ZEPHIR_IS_FALSE_IDENTICAL(identityField)) { ZEPHIR_CALL_METHOD(&defaultValue, connection, "getdefaultidvalue", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_13$$17, connection, "useexplicitidvalue", NULL, 0); + ZEPHIR_CALL_METHOD(&_13$$18, connection, "useexplicitidvalue", NULL, 0); zephir_check_call_status(); - useExplicitIdentity = zephir_get_boolval(_13$$17); + useExplicitIdentity = zephir_get_boolval(_13$$18); if (useExplicitIdentity) { - zephir_array_append(&fields, identityField, PH_SEPARATE, "phalcon/mvc/model.zep", 2336); + zephir_array_append(&fields, identityField, PH_SEPARATE, "phalcon/mvc/model.zep", 2338); } if (Z_TYPE_P(columnMap) == IS_ARRAY) { ZEPHIR_OBS_NVAR(attributeField); if (!(zephir_array_isset_fetch(&attributeField, columnMap, identityField, 0 TSRMLS_CC))) { - ZEPHIR_INIT_VAR(_14$$20); - object_init_ex(_14$$20, phalcon_mvc_model_exception_ce); - ZEPHIR_INIT_VAR(_15$$20); - ZEPHIR_CONCAT_SVS(_15$$20, "Identity column '", identityField, "' isn't part of the column map"); - ZEPHIR_CALL_METHOD(NULL, _14$$20, "__construct", &_6, 9, _15$$20); + ZEPHIR_INIT_VAR(_14$$21); + object_init_ex(_14$$21, phalcon_mvc_model_exception_ce); + ZEPHIR_INIT_VAR(_15$$21); + ZEPHIR_CONCAT_SVS(_15$$21, "Identity column '", identityField, "' isn't part of the column map"); + ZEPHIR_CALL_METHOD(NULL, _14$$21, "__construct", &_6, 9, _15$$21); zephir_check_call_status(); - zephir_throw_exception_debug(_14$$20, "phalcon/mvc/model.zep", 2344 TSRMLS_CC); + zephir_throw_exception_debug(_14$$21, "phalcon/mvc/model.zep", 2346 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -82920,38 +82572,38 @@ static PHP_METHOD(Phalcon_Mvc_Model, _doLowInsert) { } ZEPHIR_OBS_NVAR(value); if (zephir_fetch_property_zval(&value, this_ptr, attributeField, PH_SILENT_CC)) { - _16$$22 = Z_TYPE_P(value) == IS_NULL; - if (!(_16$$22)) { - _16$$22 = ZEPHIR_IS_STRING_IDENTICAL(value, ""); + _16$$23 = Z_TYPE_P(value) == IS_NULL; + if (!(_16$$23)) { + _16$$23 = ZEPHIR_IS_STRING_IDENTICAL(value, ""); } - if (_16$$22) { + if (_16$$23) { if (useExplicitIdentity) { - zephir_array_append(&values, defaultValue, PH_SEPARATE, "phalcon/mvc/model.zep", 2357); - zephir_array_append(&bindTypes, bindSkip, PH_SEPARATE, "phalcon/mvc/model.zep", 2357); + zephir_array_append(&values, defaultValue, PH_SEPARATE, "phalcon/mvc/model.zep", 2359); + zephir_array_append(&bindTypes, bindSkip, PH_SEPARATE, "phalcon/mvc/model.zep", 2359); } } else { if (!(useExplicitIdentity)) { - zephir_array_append(&fields, identityField, PH_SEPARATE, "phalcon/mvc/model.zep", 2365); + zephir_array_append(&fields, identityField, PH_SEPARATE, "phalcon/mvc/model.zep", 2367); } ZEPHIR_OBS_NVAR(bindType); if (!(zephir_array_isset_fetch(&bindType, bindDataTypes, identityField, 0 TSRMLS_CC))) { - ZEPHIR_INIT_VAR(_17$$27); - object_init_ex(_17$$27, phalcon_mvc_model_exception_ce); - ZEPHIR_INIT_VAR(_18$$27); - ZEPHIR_CONCAT_SVS(_18$$27, "Identity column '", identityField, "' isn\\'t part of the table columns"); - ZEPHIR_CALL_METHOD(NULL, _17$$27, "__construct", &_6, 9, _18$$27); + ZEPHIR_INIT_VAR(_17$$28); + object_init_ex(_17$$28, phalcon_mvc_model_exception_ce); + ZEPHIR_INIT_VAR(_18$$28); + ZEPHIR_CONCAT_SVS(_18$$28, "Identity column '", identityField, "' isn\\'t part of the table columns"); + ZEPHIR_CALL_METHOD(NULL, _17$$28, "__construct", &_6, 9, _18$$28); zephir_check_call_status(); - zephir_throw_exception_debug(_17$$27, "phalcon/mvc/model.zep", 2372 TSRMLS_CC); + zephir_throw_exception_debug(_17$$28, "phalcon/mvc/model.zep", 2374 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } - zephir_array_append(&values, value, PH_SEPARATE, "phalcon/mvc/model.zep", 2375); - zephir_array_append(&bindTypes, bindType, PH_SEPARATE, "phalcon/mvc/model.zep", 2375); + zephir_array_append(&values, value, PH_SEPARATE, "phalcon/mvc/model.zep", 2377); + zephir_array_append(&bindTypes, bindType, PH_SEPARATE, "phalcon/mvc/model.zep", 2377); } } else { if (useExplicitIdentity) { - zephir_array_append(&values, defaultValue, PH_SEPARATE, "phalcon/mvc/model.zep", 2379); - zephir_array_append(&bindTypes, bindSkip, PH_SEPARATE, "phalcon/mvc/model.zep", 2379); + zephir_array_append(&values, defaultValue, PH_SEPARATE, "phalcon/mvc/model.zep", 2381); + zephir_array_append(&bindTypes, bindSkip, PH_SEPARATE, "phalcon/mvc/model.zep", 2381); } } } @@ -82964,9 +82616,9 @@ static PHP_METHOD(Phalcon_Mvc_Model, _doLowInsert) { if (_19) { ZEPHIR_INIT_VAR(sequenceName); ZVAL_NULL(sequenceName); - ZEPHIR_CALL_METHOD(&_20$$30, connection, "supportsequences", NULL, 0); + ZEPHIR_CALL_METHOD(&_20$$31, connection, "supportsequences", NULL, 0); zephir_check_call_status(); - if (ZEPHIR_IS_TRUE_IDENTICAL(_20$$30)) { + if (ZEPHIR_IS_TRUE_IDENTICAL(_20$$31)) { if ((zephir_method_exists_ex(this_ptr, SS("getsequencename") TSRMLS_CC) == SUCCESS)) { ZEPHIR_CALL_METHOD(&sequenceName, this_ptr, "getsequencename", NULL, 0); zephir_check_call_status(); @@ -82987,9 +82639,9 @@ static PHP_METHOD(Phalcon_Mvc_Model, _doLowInsert) { zephir_check_call_status(); zephir_update_property_zval_zval(this_ptr, attributeField, lastInsertedId TSRMLS_CC); zephir_array_update_zval(&snapshot, attributeField, &lastInsertedId, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(&_21$$30, manager, "iskeepingsnapshots", NULL, 0, this_ptr); + ZEPHIR_CALL_METHOD(&_21$$31, manager, "iskeepingsnapshots", NULL, 0, this_ptr); zephir_check_call_status(); - if (zephir_is_true(_21$$30)) { + if (zephir_is_true(_21$$31)) { zephir_update_property_this(this_ptr, SL("_snapshot"), snapshot TSRMLS_CC); } zephir_update_property_this(this_ptr, SL("_uniqueParams"), ZEPHIR_GLOBAL(global_null) TSRMLS_CC); @@ -83051,10 +82703,10 @@ static PHP_METHOD(Phalcon_Mvc_Model, _doLowUpdate) { ZEPHIR_INIT_NVAR(columnMap); ZVAL_NULL(columnMap); } - zephir_is_iterable(nonPrimary, &_3, &_2, 0, 0, "phalcon/mvc/model.zep", 2596); + zephir_is_iterable(nonPrimary, &_3, &_2, 0, 0, "phalcon/mvc/model.zep", 2598); for ( - ; zephir_hash_get_current_data_ex(_3, (void**) &_4, &_2) == SUCCESS - ; zephir_hash_move_forward_ex(_3, &_2) + ; zend_hash_get_current_data_ex(_3, (void**) &_4, &_2) == SUCCESS + ; zend_hash_move_forward_ex(_3, &_2) ) { ZEPHIR_GET_HVALUE(field, _4); if (!(zephir_array_isset(automaticAttributes, field))) { @@ -83066,7 +82718,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _doLowUpdate) { ZEPHIR_CONCAT_SVS(_6$$9, "Column '", field, "' have not defined a bind data type"); ZEPHIR_CALL_METHOD(NULL, _5$$9, "__construct", &_7, 9, _6$$9); zephir_check_call_status(); - zephir_throw_exception_debug(_5$$9, "phalcon/mvc/model.zep", 2488 TSRMLS_CC); + zephir_throw_exception_debug(_5$$9, "phalcon/mvc/model.zep", 2490 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -83079,7 +82731,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _doLowUpdate) { ZEPHIR_CONCAT_SVS(_9$$11, "Column '", field, "' isn't part of the column map"); ZEPHIR_CALL_METHOD(NULL, _8$$11, "__construct", &_7, 9, _9$$11); zephir_check_call_status(); - zephir_throw_exception_debug(_8$$11, "phalcon/mvc/model.zep", 2496 TSRMLS_CC); + zephir_throw_exception_debug(_8$$11, "phalcon/mvc/model.zep", 2498 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -83089,9 +82741,9 @@ static PHP_METHOD(Phalcon_Mvc_Model, _doLowUpdate) { ZEPHIR_OBS_NVAR(value); if (zephir_fetch_property_zval(&value, this_ptr, attributeField, PH_SILENT_CC)) { if (!(useDynamicUpdate)) { - zephir_array_append(&fields, field, PH_SEPARATE, "phalcon/mvc/model.zep", 2512); - zephir_array_append(&values, value, PH_SEPARATE, "phalcon/mvc/model.zep", 2512); - zephir_array_append(&bindTypes, bindType, PH_SEPARATE, "phalcon/mvc/model.zep", 2513); + zephir_array_append(&fields, field, PH_SEPARATE, "phalcon/mvc/model.zep", 2514); + zephir_array_append(&values, value, PH_SEPARATE, "phalcon/mvc/model.zep", 2514); + zephir_array_append(&bindTypes, bindType, PH_SEPARATE, "phalcon/mvc/model.zep", 2515); } else { ZEPHIR_OBS_NVAR(snapshotValue); if (!(zephir_array_isset_fetch(&snapshotValue, snapshot, attributeField, 0 TSRMLS_CC))) { @@ -83111,7 +82763,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _doLowUpdate) { ZEPHIR_CONCAT_SVS(_11$$22, "Column '", field, "' have not defined a data type"); ZEPHIR_CALL_METHOD(NULL, _10$$22, "__construct", &_7, 9, _11$$22); zephir_check_call_status(); - zephir_throw_exception_debug(_10$$22, "phalcon/mvc/model.zep", 2538 TSRMLS_CC); + zephir_throw_exception_debug(_10$$22, "phalcon/mvc/model.zep", 2540 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -83145,17 +82797,17 @@ static PHP_METHOD(Phalcon_Mvc_Model, _doLowUpdate) { } } if (changed) { - zephir_array_append(&fields, field, PH_SEPARATE, "phalcon/mvc/model.zep", 2580); - zephir_array_append(&values, value, PH_SEPARATE, "phalcon/mvc/model.zep", 2580); - zephir_array_append(&bindTypes, bindType, PH_SEPARATE, "phalcon/mvc/model.zep", 2581); + zephir_array_append(&fields, field, PH_SEPARATE, "phalcon/mvc/model.zep", 2582); + zephir_array_append(&values, value, PH_SEPARATE, "phalcon/mvc/model.zep", 2582); + zephir_array_append(&bindTypes, bindType, PH_SEPARATE, "phalcon/mvc/model.zep", 2583); } } zephir_array_update_zval(&newSnapshot, attributeField, &value, PH_COPY | PH_SEPARATE); } else { zephir_array_update_zval(&newSnapshot, attributeField, &ZEPHIR_GLOBAL(global_null), PH_COPY | PH_SEPARATE); - zephir_array_append(&fields, field, PH_SEPARATE, "phalcon/mvc/model.zep", 2588); - zephir_array_append(&values, ZEPHIR_GLOBAL(global_null), PH_SEPARATE, "phalcon/mvc/model.zep", 2588); - zephir_array_append(&bindTypes, bindSkip, PH_SEPARATE, "phalcon/mvc/model.zep", 2588); + zephir_array_append(&fields, field, PH_SEPARATE, "phalcon/mvc/model.zep", 2590); + zephir_array_append(&values, ZEPHIR_GLOBAL(global_null), PH_SEPARATE, "phalcon/mvc/model.zep", 2590); + zephir_array_append(&bindTypes, bindSkip, PH_SEPARATE, "phalcon/mvc/model.zep", 2590); } } } @@ -83172,15 +82824,15 @@ static PHP_METHOD(Phalcon_Mvc_Model, _doLowUpdate) { ZEPHIR_CALL_METHOD(&primaryKeys, metaData, "getprimarykeyattributes", NULL, 0, this_ptr); zephir_check_call_status(); if (!(zephir_fast_count_int(primaryKeys TSRMLS_CC))) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "A primary key must be defined in the model in order to perform the operation", "phalcon/mvc/model.zep", 2615); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "A primary key must be defined in the model in order to perform the operation", "phalcon/mvc/model.zep", 2617); return; } ZEPHIR_INIT_NVAR(uniqueParams); array_init(uniqueParams); - zephir_is_iterable(primaryKeys, &_18$$31, &_17$$31, 0, 0, "phalcon/mvc/model.zep", 2640); + zephir_is_iterable(primaryKeys, &_18$$31, &_17$$31, 0, 0, "phalcon/mvc/model.zep", 2642); for ( - ; zephir_hash_get_current_data_ex(_18$$31, (void**) &_19$$31, &_17$$31) == SUCCESS - ; zephir_hash_move_forward_ex(_18$$31, &_17$$31) + ; zend_hash_get_current_data_ex(_18$$31, (void**) &_19$$31, &_17$$31) == SUCCESS + ; zend_hash_move_forward_ex(_18$$31, &_17$$31) ) { ZEPHIR_GET_HVALUE(field, _19$$31); if (Z_TYPE_P(columnMap) == IS_ARRAY) { @@ -83192,7 +82844,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _doLowUpdate) { ZEPHIR_CONCAT_SVS(_21$$35, "Column '", field, "' isn't part of the column map"); ZEPHIR_CALL_METHOD(NULL, _20$$35, "__construct", &_7, 9, _21$$35); zephir_check_call_status(); - zephir_throw_exception_debug(_20$$35, "phalcon/mvc/model.zep", 2626 TSRMLS_CC); + zephir_throw_exception_debug(_20$$35, "phalcon/mvc/model.zep", 2628 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -83202,10 +82854,10 @@ static PHP_METHOD(Phalcon_Mvc_Model, _doLowUpdate) { ZEPHIR_OBS_NVAR(value); if (zephir_fetch_property_zval(&value, this_ptr, attributeField, PH_SILENT_CC)) { zephir_array_update_zval(&newSnapshot, attributeField, &value, PH_COPY | PH_SEPARATE); - zephir_array_append(&uniqueParams, value, PH_SEPARATE, "phalcon/mvc/model.zep", 2634); + zephir_array_append(&uniqueParams, value, PH_SEPARATE, "phalcon/mvc/model.zep", 2636); } else { zephir_array_update_zval(&newSnapshot, attributeField, &ZEPHIR_GLOBAL(global_null), PH_COPY | PH_SEPARATE); - zephir_array_append(&uniqueParams, ZEPHIR_GLOBAL(global_null), PH_SEPARATE, "phalcon/mvc/model.zep", 2637); + zephir_array_append(&uniqueParams, ZEPHIR_GLOBAL(global_null), PH_SEPARATE, "phalcon/mvc/model.zep", 2639); } } } @@ -83266,10 +82918,10 @@ static PHP_METHOD(Phalcon_Mvc_Model, _preSaveRelatedRecords) { ZEPHIR_CALL_METHOD(&_1, this_ptr, "getmodelsmanager", NULL, 0); zephir_check_call_status(); ZEPHIR_CPY_WRT(manager, _1); - zephir_is_iterable(related, &_3, &_2, 0, 0, "phalcon/mvc/model.zep", 2756); + zephir_is_iterable(related, &_3, &_2, 0, 0, "phalcon/mvc/model.zep", 2758); for ( - ; zephir_hash_get_current_data_ex(_3, (void**) &_4, &_2) == SUCCESS - ; zephir_hash_move_forward_ex(_3, &_2) + ; zend_hash_get_current_data_ex(_3, (void**) &_4, &_2) == SUCCESS + ; zend_hash_move_forward_ex(_3, &_2) ) { ZEPHIR_GET_HMKEY(name, _3, _2); ZEPHIR_GET_HVALUE(record, _4); @@ -83289,7 +82941,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _preSaveRelatedRecords) { } ZEPHIR_CALL_METHOD(NULL, connection, "rollback", &_8, 0, _7$$6); zephir_check_call_status(); - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Only objects can be stored as part of belongs-to relations", "phalcon/mvc/model.zep", 2705); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Only objects can be stored as part of belongs-to relations", "phalcon/mvc/model.zep", 2707); return; } ZEPHIR_CALL_METHOD(&columns, relation, "getfields", NULL, 0); @@ -83307,7 +82959,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _preSaveRelatedRecords) { } ZEPHIR_CALL_METHOD(NULL, connection, "rollback", &_10, 0, _9$$7); zephir_check_call_status(); - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Not implemented", "phalcon/mvc/model.zep", 2714); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Not implemented", "phalcon/mvc/model.zep", 2716); return; } ZEPHIR_CALL_METHOD(&_11$$5, record, "save", NULL, 0); @@ -83315,10 +82967,10 @@ static PHP_METHOD(Phalcon_Mvc_Model, _preSaveRelatedRecords) { if (!(zephir_is_true(_11$$5))) { ZEPHIR_CALL_METHOD(&_12$$8, record, "getmessages", NULL, 0); zephir_check_call_status(); - zephir_is_iterable(_12$$8, &_14$$8, &_13$$8, 0, 0, "phalcon/mvc/model.zep", 2743); + zephir_is_iterable(_12$$8, &_14$$8, &_13$$8, 0, 0, "phalcon/mvc/model.zep", 2745); for ( - ; zephir_hash_get_current_data_ex(_14$$8, (void**) &_15$$8, &_13$$8) == SUCCESS - ; zephir_hash_move_forward_ex(_14$$8, &_13$$8) + ; zend_hash_get_current_data_ex(_14$$8, (void**) &_15$$8, &_13$$8) == SUCCESS + ; zend_hash_move_forward_ex(_14$$8, &_13$$8) ) { ZEPHIR_GET_HVALUE(message, _15$$8); if (Z_TYPE_P(message) == IS_OBJECT) { @@ -83368,10 +83020,10 @@ static PHP_METHOD(Phalcon_Mvc_Model, _postSaveRelatedRecords) { ZEPHIR_CALL_METHOD(&_0, this_ptr, "getmodelsmanager", NULL, 0); zephir_check_call_status(); ZEPHIR_CPY_WRT(manager, _0); - zephir_is_iterable(related, &_2, &_1, 0, 0, "phalcon/mvc/model.zep", 2947); + zephir_is_iterable(related, &_2, &_1, 0, 0, "phalcon/mvc/model.zep", 2949); for ( - ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS - ; zephir_hash_move_forward_ex(_2, &_1) + ; zend_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS + ; zend_hash_move_forward_ex(_2, &_1) ) { ZEPHIR_GET_HMKEY(name, _2, _1); ZEPHIR_GET_HVALUE(record, _3); @@ -83397,7 +83049,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _postSaveRelatedRecords) { } ZEPHIR_CALL_METHOD(NULL, connection, "rollback", &_9, 0, _8$$6); zephir_check_call_status(); - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Only objects/arrays can be stored as part of has-many/has-one/has-many-to-many relations", "phalcon/mvc/model.zep", 2795); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Only objects/arrays can be stored as part of has-many/has-one/has-many-to-many relations", "phalcon/mvc/model.zep", 2797); return; } ZEPHIR_CALL_METHOD(&columns, relation, "getfields", NULL, 0); @@ -83415,7 +83067,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _postSaveRelatedRecords) { } ZEPHIR_CALL_METHOD(NULL, connection, "rollback", &_11, 0, _10$$7); zephir_check_call_status(); - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Not implemented", "phalcon/mvc/model.zep", 2804); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Not implemented", "phalcon/mvc/model.zep", 2806); return; } if (Z_TYPE_P(record) == IS_OBJECT) { @@ -83441,7 +83093,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _postSaveRelatedRecords) { ZEPHIR_CONCAT_SVS(_15$$10, "The column '", columns, "' needs to be present in the model"); ZEPHIR_CALL_METHOD(NULL, _14$$10, "__construct", &_16, 9, _15$$10); zephir_check_call_status(); - zephir_throw_exception_debug(_14$$10, "phalcon/mvc/model.zep", 2818 TSRMLS_CC); + zephir_throw_exception_debug(_14$$10, "phalcon/mvc/model.zep", 2820 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -83456,10 +83108,10 @@ static PHP_METHOD(Phalcon_Mvc_Model, _postSaveRelatedRecords) { ZEPHIR_CALL_METHOD(&intermediateReferencedFields, relation, "getintermediatereferencedfields", NULL, 0); zephir_check_call_status(); } - zephir_is_iterable(relatedRecords, &_19$$4, &_18$$4, 0, 0, "phalcon/mvc/model.zep", 2933); + zephir_is_iterable(relatedRecords, &_19$$4, &_18$$4, 0, 0, "phalcon/mvc/model.zep", 2935); for ( - ; zephir_hash_get_current_data_ex(_19$$4, (void**) &_20$$4, &_18$$4) == SUCCESS - ; zephir_hash_move_forward_ex(_19$$4, &_18$$4) + ; zend_hash_get_current_data_ex(_19$$4, (void**) &_20$$4, &_18$$4) == SUCCESS + ; zend_hash_move_forward_ex(_19$$4, &_18$$4) ) { ZEPHIR_GET_HVALUE(recordAfter, _20$$4); if (!(isThrough)) { @@ -83471,10 +83123,10 @@ static PHP_METHOD(Phalcon_Mvc_Model, _postSaveRelatedRecords) { if (!(zephir_is_true(_21$$12))) { ZEPHIR_CALL_METHOD(&_22$$14, recordAfter, "getmessages", NULL, 0); zephir_check_call_status(); - zephir_is_iterable(_22$$14, &_24$$14, &_23$$14, 0, 0, "phalcon/mvc/model.zep", 2875); + zephir_is_iterable(_22$$14, &_24$$14, &_23$$14, 0, 0, "phalcon/mvc/model.zep", 2877); for ( - ; zephir_hash_get_current_data_ex(_24$$14, (void**) &_25$$14, &_23$$14) == SUCCESS - ; zephir_hash_move_forward_ex(_24$$14, &_23$$14) + ; zend_hash_get_current_data_ex(_24$$14, (void**) &_25$$14, &_23$$14) == SUCCESS + ; zend_hash_move_forward_ex(_24$$14, &_23$$14) ) { ZEPHIR_GET_HVALUE(message, _25$$14); if (Z_TYPE_P(message) == IS_OBJECT) { @@ -83510,10 +83162,10 @@ static PHP_METHOD(Phalcon_Mvc_Model, _postSaveRelatedRecords) { if (!(zephir_is_true(_31$$17))) { ZEPHIR_CALL_METHOD(&_32$$18, intermediateModel, "getmessages", NULL, 0); zephir_check_call_status(); - zephir_is_iterable(_32$$18, &_34$$18, &_33$$18, 0, 0, "phalcon/mvc/model.zep", 2927); + zephir_is_iterable(_32$$18, &_34$$18, &_33$$18, 0, 0, "phalcon/mvc/model.zep", 2929); for ( - ; zephir_hash_get_current_data_ex(_34$$18, (void**) &_35$$18, &_33$$18) == SUCCESS - ; zephir_hash_move_forward_ex(_34$$18, &_33$$18) + ; zend_hash_get_current_data_ex(_34$$18, (void**) &_35$$18, &_33$$18) == SUCCESS + ; zend_hash_move_forward_ex(_34$$18, &_33$$18) ) { ZEPHIR_GET_HVALUE(message, _35$$18); if (Z_TYPE_P(message) == IS_OBJECT) { @@ -83551,7 +83203,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _postSaveRelatedRecords) { ZEPHIR_CONCAT_SVSVS(_41$$22, "There are no defined relations for the model '", className, "' using alias '", name, "'"); ZEPHIR_CALL_METHOD(NULL, _40$$22, "__construct", &_16, 9, _41$$22); zephir_check_call_status(); - zephir_throw_exception_debug(_40$$22, "phalcon/mvc/model.zep", 2939 TSRMLS_CC); + zephir_throw_exception_debug(_40$$22, "phalcon/mvc/model.zep", 2941 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -83661,7 +83313,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, save) { zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, _9$$12, "__construct", NULL, 319, this_ptr, _10$$12); zephir_check_call_status(); - zephir_throw_exception_debug(_9$$12, "phalcon/mvc/model.zep", 3061 TSRMLS_CC); + zephir_throw_exception_debug(_9$$12, "phalcon/mvc/model.zep", 3063 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -83853,13 +83505,13 @@ static PHP_METHOD(Phalcon_Mvc_Model, delete) { ZVAL_NULL(columnMap); } if (!(zephir_fast_count_int(primaryKeys TSRMLS_CC))) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "A primary key must be defined in the model in order to perform the operation", "phalcon/mvc/model.zep", 3262); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "A primary key must be defined in the model in order to perform the operation", "phalcon/mvc/model.zep", 3264); return; } - zephir_is_iterable(primaryKeys, &_4, &_3, 0, 0, "phalcon/mvc/model.zep", 3305); + zephir_is_iterable(primaryKeys, &_4, &_3, 0, 0, "phalcon/mvc/model.zep", 3307); for ( - ; zephir_hash_get_current_data_ex(_4, (void**) &_5, &_3) == SUCCESS - ; zephir_hash_move_forward_ex(_4, &_3) + ; zend_hash_get_current_data_ex(_4, (void**) &_5, &_3) == SUCCESS + ; zend_hash_move_forward_ex(_4, &_3) ) { ZEPHIR_GET_HVALUE(primaryKey, _5); ZEPHIR_OBS_NVAR(bindType); @@ -83870,7 +83522,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, delete) { ZEPHIR_CONCAT_SVS(_7$$9, "Column '", primaryKey, "' have not defined a bind data type"); ZEPHIR_CALL_METHOD(NULL, _6$$9, "__construct", &_8, 9, _7$$9); zephir_check_call_status(); - zephir_throw_exception_debug(_6$$9, "phalcon/mvc/model.zep", 3274 TSRMLS_CC); + zephir_throw_exception_debug(_6$$9, "phalcon/mvc/model.zep", 3276 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -83883,7 +83535,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, delete) { ZEPHIR_CONCAT_SVS(_10$$11, "Column '", primaryKey, "' isn't part of the column map"); ZEPHIR_CALL_METHOD(NULL, _9$$11, "__construct", &_8, 9, _10$$11); zephir_check_call_status(); - zephir_throw_exception_debug(_9$$11, "phalcon/mvc/model.zep", 3282 TSRMLS_CC); + zephir_throw_exception_debug(_9$$11, "phalcon/mvc/model.zep", 3284 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -83898,17 +83550,17 @@ static PHP_METHOD(Phalcon_Mvc_Model, delete) { ZEPHIR_CONCAT_SVS(_12$$13, "Cannot delete the record because the primary key attribute: '", attributeField, "' wasn't set"); ZEPHIR_CALL_METHOD(NULL, _11$$13, "__construct", &_8, 9, _12$$13); zephir_check_call_status(); - zephir_throw_exception_debug(_11$$13, "phalcon/mvc/model.zep", 3294 TSRMLS_CC); + zephir_throw_exception_debug(_11$$13, "phalcon/mvc/model.zep", 3296 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } - zephir_array_append(&values, value, PH_SEPARATE, "phalcon/mvc/model.zep", 3300); + zephir_array_append(&values, value, PH_SEPARATE, "phalcon/mvc/model.zep", 3302); ZEPHIR_CALL_METHOD(&_13$$8, writeConnection, "escapeidentifier", &_14, 0, primaryKey); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_15$$8); ZEPHIR_CONCAT_VS(_15$$8, _13$$8, " = ?"); - zephir_array_append(&conditions, _15$$8, PH_SEPARATE, "phalcon/mvc/model.zep", 3301); - zephir_array_append(&bindTypes, bindType, PH_SEPARATE, "phalcon/mvc/model.zep", 3302); + zephir_array_append(&conditions, _15$$8, PH_SEPARATE, "phalcon/mvc/model.zep", 3303); + zephir_array_append(&bindTypes, bindType, PH_SEPARATE, "phalcon/mvc/model.zep", 3304); } if (ZEPHIR_GLOBAL(orm).events) { if (0) { @@ -83989,7 +83641,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, refresh) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_dirtyState"), PH_NOISY_CC); if (!ZEPHIR_IS_LONG(_0, 0)) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The record cannot be refreshed because it does not exist or is deleted", "phalcon/mvc/model.zep", 3380); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The record cannot be refreshed because it does not exist or is deleted", "phalcon/mvc/model.zep", 3382); return; } ZEPHIR_CALL_METHOD(&metaData, this_ptr, "getmodelsmetadata", NULL, 0); @@ -84016,7 +83668,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, refresh) { ZEPHIR_CALL_METHOD(&_2$$6, this_ptr, "_exists", NULL, 0, metaData, readConnection, table); zephir_check_call_status(); if (!(zephir_is_true(_2$$6))) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The record cannot be refreshed because it does not exist or is deleted", "phalcon/mvc/model.zep", 3403); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The record cannot be refreshed because it does not exist or is deleted", "phalcon/mvc/model.zep", 3405); return; } ZEPHIR_OBS_NVAR(uniqueKey); @@ -84025,23 +83677,23 @@ static PHP_METHOD(Phalcon_Mvc_Model, refresh) { ZEPHIR_OBS_VAR(uniqueParams); zephir_read_property_this(&uniqueParams, this_ptr, SL("_uniqueParams"), PH_NOISY_CC); if (Z_TYPE_P(uniqueParams) != IS_ARRAY) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The record cannot be refreshed because it does not exist or is deleted", "phalcon/mvc/model.zep", 3411); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The record cannot be refreshed because it does not exist or is deleted", "phalcon/mvc/model.zep", 3413); return; } ZEPHIR_INIT_VAR(fields); array_init(fields); ZEPHIR_CALL_METHOD(&_3, metaData, "getattributes", NULL, 0, this_ptr); zephir_check_call_status(); - zephir_is_iterable(_3, &_5, &_4, 0, 0, "phalcon/mvc/model.zep", 3425); + zephir_is_iterable(_3, &_5, &_4, 0, 0, "phalcon/mvc/model.zep", 3427); for ( - ; zephir_hash_get_current_data_ex(_5, (void**) &_6, &_4) == SUCCESS - ; zephir_hash_move_forward_ex(_5, &_4) + ; zend_hash_get_current_data_ex(_5, (void**) &_6, &_4) == SUCCESS + ; zend_hash_move_forward_ex(_5, &_4) ) { ZEPHIR_GET_HVALUE(attribute, _6); ZEPHIR_INIT_NVAR(_7$$9); zephir_create_array(_7$$9, 1, 0 TSRMLS_CC); zephir_array_fast_append(_7$$9, attribute); - zephir_array_append(&fields, _7$$9, PH_SEPARATE, "phalcon/mvc/model.zep", 3419); + zephir_array_append(&fields, _7$$9, PH_SEPARATE, "phalcon/mvc/model.zep", 3421); } ZEPHIR_CALL_METHOD(&dialect, readConnection, "getdialect", NULL, 0); zephir_check_call_status(); @@ -84101,11 +83753,11 @@ static PHP_METHOD(Phalcon_Mvc_Model, readAttribute) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &attribute_param); - if (unlikely(Z_TYPE_P(attribute_param) != IS_STRING && Z_TYPE_P(attribute_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(attribute_param) != IS_STRING && Z_TYPE_P(attribute_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'attribute' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(attribute_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(attribute_param) == IS_STRING)) { zephir_get_strval(attribute, attribute_param); } else { ZEPHIR_INIT_VAR(attribute); @@ -84130,11 +83782,11 @@ static PHP_METHOD(Phalcon_Mvc_Model, writeAttribute) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &attribute_param, &value); - if (unlikely(Z_TYPE_P(attribute_param) != IS_STRING && Z_TYPE_P(attribute_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(attribute_param) != IS_STRING && Z_TYPE_P(attribute_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'attribute' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(attribute_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(attribute_param) == IS_STRING)) { zephir_get_strval(attribute, attribute_param); } else { ZEPHIR_INIT_VAR(attribute); @@ -84183,10 +83835,10 @@ static PHP_METHOD(Phalcon_Mvc_Model, skipAttributesOnCreate) { ZEPHIR_INIT_VAR(keysAttributes); array_init(keysAttributes); - zephir_is_iterable(attributes, &_1, &_0, 0, 0, "phalcon/mvc/model.zep", 3539); + zephir_is_iterable(attributes, &_1, &_0, 0, 0, "phalcon/mvc/model.zep", 3541); for ( - ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS - ; zephir_hash_move_forward_ex(_1, &_0) + ; zend_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS + ; zend_hash_move_forward_ex(_1, &_0) ) { ZEPHIR_GET_HVALUE(attribute, _2); zephir_array_update_zval(&keysAttributes, attribute, &ZEPHIR_GLOBAL(global_null), PH_COPY | PH_SEPARATE); @@ -84215,10 +83867,10 @@ static PHP_METHOD(Phalcon_Mvc_Model, skipAttributesOnUpdate) { ZEPHIR_INIT_VAR(keysAttributes); array_init(keysAttributes); - zephir_is_iterable(attributes, &_1, &_0, 0, 0, "phalcon/mvc/model.zep", 3571); + zephir_is_iterable(attributes, &_1, &_0, 0, 0, "phalcon/mvc/model.zep", 3573); for ( - ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS - ; zephir_hash_move_forward_ex(_1, &_0) + ; zend_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS + ; zend_hash_move_forward_ex(_1, &_0) ) { ZEPHIR_GET_HVALUE(attribute, _2); zephir_array_update_zval(&keysAttributes, attribute, &ZEPHIR_GLOBAL(global_null), PH_COPY | PH_SEPARATE); @@ -84247,10 +83899,10 @@ static PHP_METHOD(Phalcon_Mvc_Model, allowEmptyStringValues) { ZEPHIR_INIT_VAR(keysAttributes); array_init(keysAttributes); - zephir_is_iterable(attributes, &_1, &_0, 0, 0, "phalcon/mvc/model.zep", 3603); + zephir_is_iterable(attributes, &_1, &_0, 0, 0, "phalcon/mvc/model.zep", 3605); for ( - ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS - ; zephir_hash_move_forward_ex(_1, &_0) + ; zend_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS + ; zend_hash_move_forward_ex(_1, &_0) ) { ZEPHIR_GET_HVALUE(attribute, _2); zephir_array_update_zval(&keysAttributes, attribute, &ZEPHIR_GLOBAL(global_null), PH_COPY | PH_SEPARATE); @@ -84272,11 +83924,11 @@ static PHP_METHOD(Phalcon_Mvc_Model, hasOne) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 1, &fields, &referenceModel_param, &referencedFields, &options); - if (unlikely(Z_TYPE_P(referenceModel_param) != IS_STRING && Z_TYPE_P(referenceModel_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(referenceModel_param) != IS_STRING && Z_TYPE_P(referenceModel_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'referenceModel' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(referenceModel_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(referenceModel_param) == IS_STRING)) { zephir_get_strval(referenceModel, referenceModel_param); } else { ZEPHIR_INIT_VAR(referenceModel); @@ -84303,11 +83955,11 @@ static PHP_METHOD(Phalcon_Mvc_Model, belongsTo) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 1, &fields, &referenceModel_param, &referencedFields, &options); - if (unlikely(Z_TYPE_P(referenceModel_param) != IS_STRING && Z_TYPE_P(referenceModel_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(referenceModel_param) != IS_STRING && Z_TYPE_P(referenceModel_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'referenceModel' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(referenceModel_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(referenceModel_param) == IS_STRING)) { zephir_get_strval(referenceModel, referenceModel_param); } else { ZEPHIR_INIT_VAR(referenceModel); @@ -84334,11 +83986,11 @@ static PHP_METHOD(Phalcon_Mvc_Model, hasMany) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 1, &fields, &referenceModel_param, &referencedFields, &options); - if (unlikely(Z_TYPE_P(referenceModel_param) != IS_STRING && Z_TYPE_P(referenceModel_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(referenceModel_param) != IS_STRING && Z_TYPE_P(referenceModel_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'referenceModel' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(referenceModel_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(referenceModel_param) == IS_STRING)) { zephir_get_strval(referenceModel, referenceModel_param); } else { ZEPHIR_INIT_VAR(referenceModel); @@ -84365,21 +84017,21 @@ static PHP_METHOD(Phalcon_Mvc_Model, hasManyToMany) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 6, 1, &fields, &intermediateModel_param, &intermediateFields, &intermediateReferencedFields, &referenceModel_param, &referencedFields, &options); - if (unlikely(Z_TYPE_P(intermediateModel_param) != IS_STRING && Z_TYPE_P(intermediateModel_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(intermediateModel_param) != IS_STRING && Z_TYPE_P(intermediateModel_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'intermediateModel' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(intermediateModel_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(intermediateModel_param) == IS_STRING)) { zephir_get_strval(intermediateModel, intermediateModel_param); } else { ZEPHIR_INIT_VAR(intermediateModel); ZVAL_EMPTY_STRING(intermediateModel); } - if (unlikely(Z_TYPE_P(referenceModel_param) != IS_STRING && Z_TYPE_P(referenceModel_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(referenceModel_param) != IS_STRING && Z_TYPE_P(referenceModel_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'referenceModel' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(referenceModel_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(referenceModel_param) == IS_STRING)) { zephir_get_strval(referenceModel, referenceModel_param); } else { ZEPHIR_INIT_VAR(referenceModel); @@ -84460,10 +84112,10 @@ static PHP_METHOD(Phalcon_Mvc_Model, setSnapshotData) { if (Z_TYPE_P(columnMap) == IS_ARRAY) { ZEPHIR_INIT_VAR(snapshot); array_init(snapshot); - zephir_is_iterable(data, &_1$$3, &_0$$3, 0, 0, "phalcon/mvc/model.zep", 3828); + zephir_is_iterable(data, &_1$$3, &_0$$3, 0, 0, "phalcon/mvc/model.zep", 3830); for ( - ; zephir_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_1$$3, &_0$$3) + ; zend_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS + ; zend_hash_move_forward_ex(_1$$3, &_0$$3) ) { ZEPHIR_GET_HMKEY(key, _1$$3, _0$$3); ZEPHIR_GET_HVALUE(value, _2$$3); @@ -84479,7 +84131,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, setSnapshotData) { ZEPHIR_CONCAT_SVS(_4$$7, "Column '", key, "' doesn't make part of the column map"); ZEPHIR_CALL_METHOD(NULL, _3$$7, "__construct", &_5, 9, _4$$7); zephir_check_call_status(); - zephir_throw_exception_debug(_3$$7, "phalcon/mvc/model.zep", 3810 TSRMLS_CC); + zephir_throw_exception_debug(_3$$7, "phalcon/mvc/model.zep", 3812 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } else { @@ -84496,7 +84148,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, setSnapshotData) { ZEPHIR_CONCAT_SVS(_7$$11, "Column '", key, "' doesn't make part of the column map"); ZEPHIR_CALL_METHOD(NULL, _6$$11, "__construct", &_5, 9, _7$$11); zephir_check_call_status(); - zephir_throw_exception_debug(_6$$11, "phalcon/mvc/model.zep", 3819 TSRMLS_CC); + zephir_throw_exception_debug(_6$$11, "phalcon/mvc/model.zep", 3821 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } else { @@ -84566,12 +84218,12 @@ static PHP_METHOD(Phalcon_Mvc_Model, getChangedFields) { ZEPHIR_OBS_VAR(snapshot); zephir_read_property_this(&snapshot, this_ptr, SL("_snapshot"), PH_NOISY_CC); if (Z_TYPE_P(snapshot) != IS_ARRAY) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The record doesn't have a valid data snapshot", "phalcon/mvc/model.zep", 3896); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The record doesn't have a valid data snapshot", "phalcon/mvc/model.zep", 3898); return; } _0 = zephir_fetch_nproperty_this(this_ptr, SL("_dirtyState"), PH_NOISY_CC); if (!ZEPHIR_IS_LONG(_0, 0)) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Change checking cannot be performed because the object has not been persisted or is deleted", "phalcon/mvc/model.zep", 3903); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Change checking cannot be performed because the object has not been persisted or is deleted", "phalcon/mvc/model.zep", 3905); return; } ZEPHIR_CALL_METHOD(&metaData, this_ptr, "getmodelsmetadata", NULL, 0); @@ -84587,25 +84239,25 @@ static PHP_METHOD(Phalcon_Mvc_Model, getChangedFields) { ZEPHIR_INIT_VAR(changed); array_init(changed); ZEPHIR_INIT_VAR(_1); - zephir_is_iterable(allAttributes, &_3, &_2, 0, 0, "phalcon/mvc/model.zep", 3956); + zephir_is_iterable(allAttributes, &_3, &_2, 0, 0, "phalcon/mvc/model.zep", 3958); for ( - ; zephir_hash_get_current_data_ex(_3, (void**) &_4, &_2) == SUCCESS - ; zephir_hash_move_forward_ex(_3, &_2) + ; zend_hash_get_current_data_ex(_3, (void**) &_4, &_2) == SUCCESS + ; zend_hash_move_forward_ex(_3, &_2) ) { ZEPHIR_GET_HMKEY(name, _3, _2); ZEPHIR_GET_HVALUE(_1, _4); if (!(zephir_array_isset(snapshot, name))) { - zephir_array_append(&changed, name, PH_SEPARATE, "phalcon/mvc/model.zep", 3935); + zephir_array_append(&changed, name, PH_SEPARATE, "phalcon/mvc/model.zep", 3937); continue; } ZEPHIR_OBS_NVAR(value); if (!(zephir_fetch_property_zval(&value, this_ptr, name, PH_SILENT_CC))) { - zephir_array_append(&changed, name, PH_SEPARATE, "phalcon/mvc/model.zep", 3943); + zephir_array_append(&changed, name, PH_SEPARATE, "phalcon/mvc/model.zep", 3945); continue; } - zephir_array_fetch(&_5$$7, snapshot, name, PH_NOISY | PH_READONLY, "phalcon/mvc/model.zep", 3950 TSRMLS_CC); + zephir_array_fetch(&_5$$7, snapshot, name, PH_NOISY | PH_READONLY, "phalcon/mvc/model.zep", 3952 TSRMLS_CC); if (!ZEPHIR_IS_IDENTICAL(value, _5$$7)) { - zephir_array_append(&changed, name, PH_SEPARATE, "phalcon/mvc/model.zep", 3951); + zephir_array_append(&changed, name, PH_SEPARATE, "phalcon/mvc/model.zep", 3953); continue; } } @@ -84667,7 +84319,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, getRelated) { ZEPHIR_CONCAT_SVSVS(_3$$3, "There is no defined relations for the model '", className, "' using alias '", alias, "'"); ZEPHIR_CALL_METHOD(NULL, _2$$3, "__construct", NULL, 9, _3$$3); zephir_check_call_status(); - zephir_throw_exception_debug(_2$$3, "phalcon/mvc/model.zep", 3999 TSRMLS_CC); + zephir_throw_exception_debug(_2$$3, "phalcon/mvc/model.zep", 4001 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -84688,21 +84340,21 @@ static PHP_METHOD(Phalcon_Mvc_Model, _getRelatedRecords) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &modelName_param, &method_param, &arguments); - if (unlikely(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'modelName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(modelName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(modelName_param) == IS_STRING)) { zephir_get_strval(modelName, modelName_param); } else { ZEPHIR_INIT_VAR(modelName); ZVAL_EMPTY_STRING(modelName); } - if (unlikely(Z_TYPE_P(method_param) != IS_STRING && Z_TYPE_P(method_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(method_param) != IS_STRING && Z_TYPE_P(method_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'method' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(method_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(method_param) == IS_STRING)) { zephir_get_strval(method, method_param); } else { ZEPHIR_INIT_VAR(method); @@ -84795,7 +84447,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _invokeFinder) { ZEPHIR_CONCAT_SVS(_4$$7, "The static method '", method, "' requires one argument"); ZEPHIR_CALL_METHOD(NULL, _3$$7, "__construct", NULL, 9, _4$$7); zephir_check_call_status(); - zephir_throw_exception_debug(_3$$7, "phalcon/mvc/model.zep", 4105 TSRMLS_CC); + zephir_throw_exception_debug(_3$$7, "phalcon/mvc/model.zep", 4107 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -84832,7 +84484,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, _invokeFinder) { ZEPHIR_CONCAT_SVS(_8$$13, "Cannot resolve attribute '", extraMethod, "' in the model"); ZEPHIR_CALL_METHOD(NULL, _7$$13, "__construct", NULL, 9, _8$$13); zephir_check_call_status(); - zephir_throw_exception_debug(_7$$13, "phalcon/mvc/model.zep", 4139 TSRMLS_CC); + zephir_throw_exception_debug(_7$$13, "phalcon/mvc/model.zep", 4141 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -84891,7 +84543,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, __call) { ZEPHIR_CONCAT_SVSVS(_3, "The method '", method, "' doesn't exist on model '", modelName, "'"); ZEPHIR_CALL_METHOD(NULL, _2, "__construct", NULL, 9, _3); zephir_check_call_status(); - zephir_throw_exception_debug(_2, "phalcon/mvc/model.zep", 4190 TSRMLS_CC); + zephir_throw_exception_debug(_2, "phalcon/mvc/model.zep", 4192 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; @@ -84919,7 +84571,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, __callStatic) { ZEPHIR_CONCAT_SVS(_2$$3, "The static method '", method, "' doesn't exist"); ZEPHIR_CALL_METHOD(NULL, _1$$3, "__construct", NULL, 9, _2$$3); zephir_check_call_status(); - zephir_throw_exception_debug(_1$$3, "phalcon/mvc/model.zep", 4206 TSRMLS_CC); + zephir_throw_exception_debug(_1$$3, "phalcon/mvc/model.zep", 4208 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -84970,16 +84622,16 @@ static PHP_METHOD(Phalcon_Mvc_Model, __set) { zephir_check_call_status(); ZEPHIR_INIT_VAR(related); array_init(related); - zephir_is_iterable(value, &_3$$6, &_2$$6, 0, 0, "phalcon/mvc/model.zep", 4266); + zephir_is_iterable(value, &_3$$6, &_2$$6, 0, 0, "phalcon/mvc/model.zep", 4268); for ( - ; zephir_hash_get_current_data_ex(_3$$6, (void**) &_4$$6, &_2$$6) == SUCCESS - ; zephir_hash_move_forward_ex(_3$$6, &_2$$6) + ; zend_hash_get_current_data_ex(_3$$6, (void**) &_4$$6, &_2$$6) == SUCCESS + ; zend_hash_move_forward_ex(_3$$6, &_2$$6) ) { ZEPHIR_GET_HMKEY(key, _3$$6, _2$$6); ZEPHIR_GET_HVALUE(item, _4$$6); if (Z_TYPE_P(item) == IS_OBJECT) { if (zephir_instance_of_ev(item, phalcon_mvc_modelinterface_ce TSRMLS_CC)) { - zephir_array_append(&related, item, PH_SEPARATE, "phalcon/mvc/model.zep", 4253); + zephir_array_append(&related, item, PH_SEPARATE, "phalcon/mvc/model.zep", 4255); } } else { ZEPHIR_INIT_NVAR(lowerKey); @@ -85027,7 +84679,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, __set) { ZEPHIR_CONCAT_SVS(_14$$15, "Property '", property, "' does not have a setter."); ZEPHIR_CALL_METHOD(NULL, _13$$15, "__construct", NULL, 9, _14$$15); zephir_check_call_status(); - zephir_throw_exception_debug(_13$$15, "phalcon/mvc/model.zep", 4283 TSRMLS_CC); + zephir_throw_exception_debug(_13$$15, "phalcon/mvc/model.zep", 4285 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -85073,11 +84725,11 @@ static PHP_METHOD(Phalcon_Mvc_Model, __get) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &property_param); - if (unlikely(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'property' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(property_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(property_param) == IS_STRING)) { zephir_get_strval(property, property_param); } else { ZEPHIR_INIT_VAR(property); @@ -85146,11 +84798,11 @@ static PHP_METHOD(Phalcon_Mvc_Model, __isset) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &property_param); - if (unlikely(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'property' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(property_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(property_param) == IS_STRING)) { zephir_get_strval(property, property_param); } else { ZEPHIR_INIT_VAR(property); @@ -85222,11 +84874,11 @@ static PHP_METHOD(Phalcon_Mvc_Model, unserialize) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &data_param); - if (unlikely(Z_TYPE_P(data_param) != IS_STRING && Z_TYPE_P(data_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(data_param) != IS_STRING && Z_TYPE_P(data_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'data' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(data_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(data_param) == IS_STRING)) { zephir_get_strval(data, data_param); } else { ZEPHIR_INIT_VAR(data); @@ -85240,7 +84892,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, unserialize) { ZEPHIR_CALL_CE_STATIC(&dependencyInjector, phalcon_di_ce, "getdefault", &_0, 1); zephir_check_call_status(); if (Z_TYPE_P(dependencyInjector) != IS_OBJECT) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "A dependency injector container is required to obtain the services related to the ORM", "phalcon/mvc/model.zep", 4437); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "A dependency injector container is required to obtain the services related to the ORM", "phalcon/mvc/model.zep", 4439); return; } zephir_update_property_this(this_ptr, SL("_dependencyInjector"), dependencyInjector TSRMLS_CC); @@ -85251,7 +84903,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, unserialize) { zephir_check_call_status(); ZEPHIR_CPY_WRT(manager, _1$$3); if (Z_TYPE_P(manager) != IS_OBJECT) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The injected service 'modelsManager' is not valid", "phalcon/mvc/model.zep", 4450); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The injected service 'modelsManager' is not valid", "phalcon/mvc/model.zep", 4452); return; } zephir_update_property_this(this_ptr, SL("_modelsManager"), manager TSRMLS_CC); @@ -85262,16 +84914,16 @@ static PHP_METHOD(Phalcon_Mvc_Model, unserialize) { if (zephir_is_true(_1$$3)) { if (zephir_array_isset_string_fetch(&snapshot, attributes, SS("_snapshot"), 1 TSRMLS_CC)) { zephir_update_property_this(this_ptr, SL("_snapshot"), snapshot TSRMLS_CC); - zephir_array_fetch_string(&_3$$7, attributes, SL("_attributes"), PH_NOISY | PH_READONLY, "phalcon/mvc/model.zep", 4465 TSRMLS_CC); + zephir_array_fetch_string(&_3$$7, attributes, SL("_attributes"), PH_NOISY | PH_READONLY, "phalcon/mvc/model.zep", 4467 TSRMLS_CC); ZEPHIR_CPY_WRT(attributes, _3$$7); } else { zephir_update_property_this(this_ptr, SL("_snapshot"), attributes TSRMLS_CC); } } - zephir_is_iterable(attributes, &_5$$3, &_4$$3, 0, 0, "phalcon/mvc/model.zep", 4478); + zephir_is_iterable(attributes, &_5$$3, &_4$$3, 0, 0, "phalcon/mvc/model.zep", 4480); for ( - ; zephir_hash_get_current_data_ex(_5$$3, (void**) &_6$$3, &_4$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_5$$3, &_4$$3) + ; zend_hash_get_current_data_ex(_5$$3, (void**) &_6$$3, &_4$$3) == SUCCESS + ; zend_hash_move_forward_ex(_5$$3, &_4$$3) ) { ZEPHIR_GET_HMKEY(key, _5$$3, _4$$3); ZEPHIR_GET_HVALUE(value, _6$$3); @@ -85318,10 +84970,10 @@ static PHP_METHOD(Phalcon_Mvc_Model, toArray) { zephir_check_call_status(); ZEPHIR_CALL_METHOD(&_0, metaData, "getattributes", NULL, 0, this_ptr); zephir_check_call_status(); - zephir_is_iterable(_0, &_2, &_1, 0, 0, "phalcon/mvc/model.zep", 4546); + zephir_is_iterable(_0, &_2, &_1, 0, 0, "phalcon/mvc/model.zep", 4548); for ( - ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS - ; zephir_hash_move_forward_ex(_2, &_1) + ; zend_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS + ; zend_hash_move_forward_ex(_2, &_1) ) { ZEPHIR_GET_HVALUE(attribute, _3); if (Z_TYPE_P(columnMap) == IS_ARRAY) { @@ -85334,7 +84986,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, toArray) { ZEPHIR_CONCAT_SVS(_5$$6, "Column '", attribute, "' doesn't make part of the column map"); ZEPHIR_CALL_METHOD(NULL, _4$$6, "__construct", &_6, 9, _5$$6); zephir_check_call_status(); - zephir_throw_exception_debug(_4$$6, "phalcon/mvc/model.zep", 4524 TSRMLS_CC); + zephir_throw_exception_debug(_4$$6, "phalcon/mvc/model.zep", 4526 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } else { @@ -85632,7 +85284,7 @@ static PHP_METHOD(Phalcon_Mvc_Router, __construct) { if (!defaultRoutes_param) { defaultRoutes = 1; } else { - if (unlikely(Z_TYPE_P(defaultRoutes_param) != IS_BOOL)) { + if (UNEXPECTED(Z_TYPE_P(defaultRoutes_param) != IS_BOOL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'defaultRoutes' must be a bool") TSRMLS_CC); RETURN_MM_NULL(); } @@ -85764,7 +85416,7 @@ static PHP_METHOD(Phalcon_Mvc_Router, removeExtraSlashes) { zephir_fetch_params(0, 1, 0, &remove_param); - if (unlikely(Z_TYPE_P(remove_param) != IS_BOOL)) { + if (UNEXPECTED(Z_TYPE_P(remove_param) != IS_BOOL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'remove' must be a bool") TSRMLS_CC); RETURN_NULL(); } @@ -85788,11 +85440,11 @@ static PHP_METHOD(Phalcon_Mvc_Router, setDefaultNamespace) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &namespaceName_param); - if (unlikely(Z_TYPE_P(namespaceName_param) != IS_STRING && Z_TYPE_P(namespaceName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(namespaceName_param) != IS_STRING && Z_TYPE_P(namespaceName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'namespaceName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(namespaceName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(namespaceName_param) == IS_STRING)) { zephir_get_strval(namespaceName, namespaceName_param); } else { ZEPHIR_INIT_VAR(namespaceName); @@ -85813,11 +85465,11 @@ static PHP_METHOD(Phalcon_Mvc_Router, setDefaultModule) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &moduleName_param); - if (unlikely(Z_TYPE_P(moduleName_param) != IS_STRING && Z_TYPE_P(moduleName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(moduleName_param) != IS_STRING && Z_TYPE_P(moduleName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'moduleName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(moduleName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(moduleName_param) == IS_STRING)) { zephir_get_strval(moduleName, moduleName_param); } else { ZEPHIR_INIT_VAR(moduleName); @@ -85838,11 +85490,11 @@ static PHP_METHOD(Phalcon_Mvc_Router, setDefaultController) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &controllerName_param); - if (unlikely(Z_TYPE_P(controllerName_param) != IS_STRING && Z_TYPE_P(controllerName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(controllerName_param) != IS_STRING && Z_TYPE_P(controllerName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'controllerName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(controllerName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(controllerName_param) == IS_STRING)) { zephir_get_strval(controllerName, controllerName_param); } else { ZEPHIR_INIT_VAR(controllerName); @@ -85863,11 +85515,11 @@ static PHP_METHOD(Phalcon_Mvc_Router, setDefaultAction) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &actionName_param); - if (unlikely(Z_TYPE_P(actionName_param) != IS_STRING && Z_TYPE_P(actionName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(actionName_param) != IS_STRING && Z_TYPE_P(actionName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'actionName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(actionName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(actionName_param) == IS_STRING)) { zephir_get_strval(actionName, actionName_param); } else { ZEPHIR_INIT_VAR(actionName); @@ -86006,8 +85658,8 @@ static PHP_METHOD(Phalcon_Mvc_Router, handle) { _4 = zephir_fetch_nproperty_this(this_ptr, SL("_routes"), PH_NOISY_CC); zephir_is_iterable(_4, &_6, &_5, 0, 1, "phalcon/mvc/router.zep", 582); for ( - ; zephir_hash_get_current_data_ex(_6, (void**) &_7, &_5) == SUCCESS - ; zephir_hash_move_backwards_ex(_6, &_5) + ; zend_hash_get_current_data_ex(_6, (void**) &_7, &_5) == SUCCESS + ; zend_hash_move_backwards_ex(_6, &_5) ) { ZEPHIR_GET_HVALUE(route, _7); ZEPHIR_INIT_NVAR(params); @@ -86143,8 +85795,8 @@ static PHP_METHOD(Phalcon_Mvc_Router, handle) { zephir_check_call_status(); zephir_is_iterable(paths, &_25$$34, &_24$$34, 0, 0, "phalcon/mvc/router.zep", 571); for ( - ; zephir_hash_get_current_data_ex(_25$$34, (void**) &_26$$34, &_24$$34) == SUCCESS - ; zephir_hash_move_forward_ex(_25$$34, &_24$$34) + ; zend_hash_get_current_data_ex(_25$$34, (void**) &_26$$34, &_24$$34) == SUCCESS + ; zend_hash_move_forward_ex(_25$$34, &_24$$34) ) { ZEPHIR_GET_HMKEY(part, _25$$34, _24$$34); ZEPHIR_GET_HVALUE(position, _26$$34); @@ -86312,11 +85964,11 @@ static PHP_METHOD(Phalcon_Mvc_Router, add) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 3, &pattern_param, &paths, &httpMethods, &position); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(pattern, pattern_param); } else { ZEPHIR_INIT_VAR(pattern); @@ -86370,11 +86022,11 @@ static PHP_METHOD(Phalcon_Mvc_Router, addGet) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &pattern_param, &paths, &position); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(pattern, pattern_param); } else { ZEPHIR_INIT_VAR(pattern); @@ -86407,11 +86059,11 @@ static PHP_METHOD(Phalcon_Mvc_Router, addPost) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &pattern_param, &paths, &position); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(pattern, pattern_param); } else { ZEPHIR_INIT_VAR(pattern); @@ -86444,11 +86096,11 @@ static PHP_METHOD(Phalcon_Mvc_Router, addPut) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &pattern_param, &paths, &position); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(pattern, pattern_param); } else { ZEPHIR_INIT_VAR(pattern); @@ -86481,11 +86133,11 @@ static PHP_METHOD(Phalcon_Mvc_Router, addPatch) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &pattern_param, &paths, &position); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(pattern, pattern_param); } else { ZEPHIR_INIT_VAR(pattern); @@ -86518,11 +86170,11 @@ static PHP_METHOD(Phalcon_Mvc_Router, addDelete) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &pattern_param, &paths, &position); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(pattern, pattern_param); } else { ZEPHIR_INIT_VAR(pattern); @@ -86555,11 +86207,11 @@ static PHP_METHOD(Phalcon_Mvc_Router, addOptions) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &pattern_param, &paths, &position); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(pattern, pattern_param); } else { ZEPHIR_INIT_VAR(pattern); @@ -86592,11 +86244,11 @@ static PHP_METHOD(Phalcon_Mvc_Router, addHead) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &pattern_param, &paths, &position); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(pattern, pattern_param); } else { ZEPHIR_INIT_VAR(pattern); @@ -86629,11 +86281,11 @@ static PHP_METHOD(Phalcon_Mvc_Router, addPurge) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &pattern_param, &paths, &position); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(pattern, pattern_param); } else { ZEPHIR_INIT_VAR(pattern); @@ -86666,11 +86318,11 @@ static PHP_METHOD(Phalcon_Mvc_Router, addTrace) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &pattern_param, &paths, &position); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(pattern, pattern_param); } else { ZEPHIR_INIT_VAR(pattern); @@ -86703,11 +86355,11 @@ static PHP_METHOD(Phalcon_Mvc_Router, addConnect) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &pattern_param, &paths, &position); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(pattern, pattern_param); } else { ZEPHIR_INIT_VAR(pattern); @@ -86754,8 +86406,8 @@ static PHP_METHOD(Phalcon_Mvc_Router, mount) { if (Z_TYPE_P(beforeMatch) != IS_NULL) { zephir_is_iterable(groupRoutes, &_1$$4, &_0$$4, 0, 0, "phalcon/mvc/router.zep", 814); for ( - ; zephir_hash_get_current_data_ex(_1$$4, (void**) &_2$$4, &_0$$4) == SUCCESS - ; zephir_hash_move_forward_ex(_1$$4, &_0$$4) + ; zend_hash_get_current_data_ex(_1$$4, (void**) &_2$$4, &_0$$4) == SUCCESS + ; zend_hash_move_forward_ex(_1$$4, &_0$$4) ) { ZEPHIR_GET_HVALUE(route, _2$$4); ZEPHIR_CALL_METHOD(NULL, route, "beforematch", NULL, 0, beforeMatch); @@ -86767,8 +86419,8 @@ static PHP_METHOD(Phalcon_Mvc_Router, mount) { if (Z_TYPE_P(hostname) != IS_NULL) { zephir_is_iterable(groupRoutes, &_4$$6, &_3$$6, 0, 0, "phalcon/mvc/router.zep", 823); for ( - ; zephir_hash_get_current_data_ex(_4$$6, (void**) &_5$$6, &_3$$6) == SUCCESS - ; zephir_hash_move_forward_ex(_4$$6, &_3$$6) + ; zend_hash_get_current_data_ex(_4$$6, (void**) &_5$$6, &_3$$6) == SUCCESS + ; zend_hash_move_forward_ex(_4$$6, &_3$$6) ) { ZEPHIR_GET_HVALUE(route, _5$$6); ZEPHIR_CALL_METHOD(NULL, route, "sethostname", NULL, 0, hostname); @@ -86910,8 +86562,8 @@ static PHP_METHOD(Phalcon_Mvc_Router, getRouteById) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_routes"), PH_NOISY_CC); zephir_is_iterable(_0, &_2, &_1, 0, 0, "phalcon/mvc/router.zep", 941); for ( - ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS - ; zephir_hash_move_forward_ex(_2, &_1) + ; zend_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS + ; zend_hash_move_forward_ex(_2, &_1) ) { ZEPHIR_GET_HVALUE(route, _3); ZEPHIR_CALL_METHOD(&_4$$3, route, "getrouteid", NULL, 0); @@ -86935,11 +86587,11 @@ static PHP_METHOD(Phalcon_Mvc_Router, getRouteByName) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -86950,8 +86602,8 @@ static PHP_METHOD(Phalcon_Mvc_Router, getRouteByName) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_routes"), PH_NOISY_CC); zephir_is_iterable(_0, &_2, &_1, 0, 0, "phalcon/mvc/router.zep", 956); for ( - ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS - ; zephir_hash_move_forward_ex(_2, &_1) + ; zend_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS + ; zend_hash_move_forward_ex(_2, &_1) ) { ZEPHIR_GET_HVALUE(route, _3); ZEPHIR_CALL_METHOD(&_4$$3, route, "getname", NULL, 0); @@ -87133,11 +86785,11 @@ static PHP_METHOD(Phalcon_Mvc_Url, setBaseUri) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &baseUri_param); - if (unlikely(Z_TYPE_P(baseUri_param) != IS_STRING && Z_TYPE_P(baseUri_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(baseUri_param) != IS_STRING && Z_TYPE_P(baseUri_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'baseUri' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(baseUri_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(baseUri_param) == IS_STRING)) { zephir_get_strval(baseUri, baseUri_param); } else { ZEPHIR_INIT_VAR(baseUri); @@ -87162,11 +86814,11 @@ static PHP_METHOD(Phalcon_Mvc_Url, setStaticBaseUri) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &staticBaseUri_param); - if (unlikely(Z_TYPE_P(staticBaseUri_param) != IS_STRING && Z_TYPE_P(staticBaseUri_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(staticBaseUri_param) != IS_STRING && Z_TYPE_P(staticBaseUri_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'staticBaseUri' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(staticBaseUri_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(staticBaseUri_param) == IS_STRING)) { zephir_get_strval(staticBaseUri, staticBaseUri_param); } else { ZEPHIR_INIT_VAR(staticBaseUri); @@ -87235,11 +86887,11 @@ static PHP_METHOD(Phalcon_Mvc_Url, setBasePath) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &basePath_param); - if (unlikely(Z_TYPE_P(basePath_param) != IS_STRING && Z_TYPE_P(basePath_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(basePath_param) != IS_STRING && Z_TYPE_P(basePath_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'basePath' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(basePath_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(basePath_param) == IS_STRING)) { zephir_get_strval(basePath, basePath_param); } else { ZEPHIR_INIT_VAR(basePath); @@ -87718,8 +87370,8 @@ static PHP_METHOD(Phalcon_Mvc_View, setViewsDir) { array_init(newViewsDir); zephir_is_iterable(viewsDir, &_5$$6, &_4$$6, 0, 0, "phalcon/mvc/view.zep", 206); for ( - ; zephir_hash_get_current_data_ex(_5$$6, (void**) &_6$$6, &_4$$6) == SUCCESS - ; zephir_hash_move_forward_ex(_5$$6, &_4$$6) + ; zend_hash_get_current_data_ex(_5$$6, (void**) &_6$$6, &_4$$6) == SUCCESS + ; zend_hash_move_forward_ex(_5$$6, &_4$$6) ) { ZEPHIR_GET_HMKEY(position, _5$$6, _4$$6); ZEPHIR_GET_HVALUE(directory, _6$$6); @@ -87985,11 +87637,11 @@ static PHP_METHOD(Phalcon_Mvc_View, setParamToView) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &key_param, &value); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { ZEPHIR_INIT_VAR(key); @@ -88039,11 +87691,11 @@ static PHP_METHOD(Phalcon_Mvc_View, setVar) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &key_param, &value); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { ZEPHIR_INIT_VAR(key); @@ -88064,11 +87716,11 @@ static PHP_METHOD(Phalcon_Mvc_View, getVar) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &key_param); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { ZEPHIR_INIT_VAR(key); @@ -88165,8 +87817,8 @@ static PHP_METHOD(Phalcon_Mvc_View, _loadTemplateEngines) { zephir_array_fast_append(arguments, dependencyInjector); zephir_is_iterable(registeredEngines, &_3$$5, &_2$$5, 0, 0, "phalcon/mvc/view.zep", 569); for ( - ; zephir_hash_get_current_data_ex(_3$$5, (void**) &_4$$5, &_2$$5) == SUCCESS - ; zephir_hash_move_forward_ex(_3$$5, &_2$$5) + ; zend_hash_get_current_data_ex(_3$$5, (void**) &_4$$5, &_2$$5) == SUCCESS + ; zend_hash_move_forward_ex(_3$$5, &_2$$5) ) { ZEPHIR_GET_HMKEY(extension, _3$$5, _2$$5); ZEPHIR_GET_HVALUE(engineService, _4$$5); @@ -88238,8 +87890,8 @@ static PHP_METHOD(Phalcon_Mvc_View, _engineRender) { zephir_check_call_status(); zephir_is_iterable(_1, &_3, &_2, 0, 0, "phalcon/mvc/view.zep", 696); for ( - ; zephir_hash_get_current_data_ex(_3, (void**) &_4, &_2) == SUCCESS - ; zephir_hash_move_forward_ex(_3, &_2) + ; zend_hash_get_current_data_ex(_3, (void**) &_4, &_2) == SUCCESS + ; zend_hash_move_forward_ex(_3, &_2) ) { ZEPHIR_GET_HVALUE(viewsDir, _4); ZEPHIR_CALL_METHOD(&_5$$3, this_ptr, "_isabsolutepath", &_6, 386, viewPath); @@ -88296,8 +87948,8 @@ static PHP_METHOD(Phalcon_Mvc_View, _engineRender) { } zephir_is_iterable(engines, &_15$$3, &_14$$3, 0, 0, "phalcon/mvc/view.zep", 694); for ( - ; zephir_hash_get_current_data_ex(_15$$3, (void**) &_16$$3, &_14$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_15$$3, &_14$$3) + ; zend_hash_get_current_data_ex(_15$$3, (void**) &_16$$3, &_14$$3) == SUCCESS + ; zend_hash_move_forward_ex(_15$$3, &_14$$3) ) { ZEPHIR_GET_HMKEY(extension, _15$$3, _14$$3); ZEPHIR_GET_HVALUE(engine, _16$$3); @@ -88390,11 +88042,11 @@ static PHP_METHOD(Phalcon_Mvc_View, exists) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &view_param); - if (unlikely(Z_TYPE_P(view_param) != IS_STRING && Z_TYPE_P(view_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(view_param) != IS_STRING && Z_TYPE_P(view_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'view' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(view_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(view_param) == IS_STRING)) { zephir_get_strval(view, view_param); } else { ZEPHIR_INIT_VAR(view); @@ -88416,15 +88068,15 @@ static PHP_METHOD(Phalcon_Mvc_View, exists) { zephir_check_call_status(); zephir_is_iterable(_0, &_2, &_1, 0, 0, "phalcon/mvc/view.zep", 753); for ( - ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS - ; zephir_hash_move_forward_ex(_2, &_1) + ; zend_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS + ; zend_hash_move_forward_ex(_2, &_1) ) { ZEPHIR_GET_HVALUE(viewsDir, _3); ZEPHIR_INIT_NVAR(_4$$4); zephir_is_iterable(engines, &_6$$4, &_5$$4, 0, 0, "phalcon/mvc/view.zep", 751); for ( - ; zephir_hash_get_current_data_ex(_6$$4, (void**) &_7$$4, &_5$$4) == SUCCESS - ; zephir_hash_move_forward_ex(_6$$4, &_5$$4) + ; zend_hash_get_current_data_ex(_6$$4, (void**) &_7$$4, &_5$$4) == SUCCESS + ; zend_hash_move_forward_ex(_6$$4, &_5$$4) ) { ZEPHIR_GET_HMKEY(extension, _6$$4, _5$$4); ZEPHIR_GET_HVALUE(_4$$4, _7$$4); @@ -88452,21 +88104,21 @@ static PHP_METHOD(Phalcon_Mvc_View, render) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 1, &controllerName_param, &actionName_param, ¶ms); - if (unlikely(Z_TYPE_P(controllerName_param) != IS_STRING && Z_TYPE_P(controllerName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(controllerName_param) != IS_STRING && Z_TYPE_P(controllerName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'controllerName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(controllerName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(controllerName_param) == IS_STRING)) { zephir_get_strval(controllerName, controllerName_param); } else { ZEPHIR_INIT_VAR(controllerName); ZVAL_EMPTY_STRING(controllerName); } - if (unlikely(Z_TYPE_P(actionName_param) != IS_STRING && Z_TYPE_P(actionName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(actionName_param) != IS_STRING && Z_TYPE_P(actionName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'actionName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(actionName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(actionName_param) == IS_STRING)) { zephir_get_strval(actionName, actionName_param); } else { ZEPHIR_INIT_VAR(actionName); @@ -88590,8 +88242,8 @@ static PHP_METHOD(Phalcon_Mvc_View, render) { silence = 0; zephir_is_iterable(templatesBefore, &_18$$20, &_17$$20, 0, 0, "phalcon/mvc/view.zep", 904); for ( - ; zephir_hash_get_current_data_ex(_18$$20, (void**) &_19$$20, &_17$$20) == SUCCESS - ; zephir_hash_move_forward_ex(_18$$20, &_17$$20) + ; zend_hash_get_current_data_ex(_18$$20, (void**) &_19$$20, &_17$$20) == SUCCESS + ; zend_hash_move_forward_ex(_18$$20, &_17$$20) ) { ZEPHIR_GET_HVALUE(templateBefore, _19$$20); ZEPHIR_INIT_LNVAR(_20$$21); @@ -88647,8 +88299,8 @@ static PHP_METHOD(Phalcon_Mvc_View, render) { silence = 0; zephir_is_iterable(templatesAfter, &_29$$25, &_28$$25, 0, 0, "phalcon/mvc/view.zep", 931); for ( - ; zephir_hash_get_current_data_ex(_29$$25, (void**) &_30$$25, &_28$$25) == SUCCESS - ; zephir_hash_move_forward_ex(_29$$25, &_28$$25) + ; zend_hash_get_current_data_ex(_29$$25, (void**) &_30$$25, &_28$$25) == SUCCESS + ; zend_hash_move_forward_ex(_29$$25, &_28$$25) ) { ZEPHIR_GET_HVALUE(templateAfter, _30$$25); ZEPHIR_INIT_LNVAR(_31$$26); @@ -88766,11 +88418,11 @@ static PHP_METHOD(Phalcon_Mvc_View, getPartial) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &partialPath_param, ¶ms); - if (unlikely(Z_TYPE_P(partialPath_param) != IS_STRING && Z_TYPE_P(partialPath_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(partialPath_param) != IS_STRING && Z_TYPE_P(partialPath_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'partialPath' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(partialPath_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(partialPath_param) == IS_STRING)) { zephir_get_strval(partialPath, partialPath_param); } else { ZEPHIR_INIT_VAR(partialPath); @@ -88800,11 +88452,11 @@ static PHP_METHOD(Phalcon_Mvc_View, partial) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &partialPath_param, ¶ms); - if (unlikely(Z_TYPE_P(partialPath_param) != IS_STRING && Z_TYPE_P(partialPath_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(partialPath_param) != IS_STRING && Z_TYPE_P(partialPath_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'partialPath' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(partialPath_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(partialPath_param) == IS_STRING)) { zephir_get_strval(partialPath, partialPath_param); } else { ZEPHIR_INIT_VAR(partialPath); @@ -88853,21 +88505,21 @@ static PHP_METHOD(Phalcon_Mvc_View, getRender) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 2, &controllerName_param, &actionName_param, ¶ms, &configCallback); - if (unlikely(Z_TYPE_P(controllerName_param) != IS_STRING && Z_TYPE_P(controllerName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(controllerName_param) != IS_STRING && Z_TYPE_P(controllerName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'controllerName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(controllerName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(controllerName_param) == IS_STRING)) { zephir_get_strval(controllerName, controllerName_param); } else { ZEPHIR_INIT_VAR(controllerName); ZVAL_EMPTY_STRING(controllerName); } - if (unlikely(Z_TYPE_P(actionName_param) != IS_STRING && Z_TYPE_P(actionName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(actionName_param) != IS_STRING && Z_TYPE_P(actionName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'actionName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(actionName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(actionName_param) == IS_STRING)) { zephir_get_strval(actionName, actionName_param); } else { ZEPHIR_INIT_VAR(actionName); @@ -89020,8 +88672,8 @@ static PHP_METHOD(Phalcon_Mvc_View, cache) { } zephir_is_iterable(options, &_1$$3, &_0$$3, 0, 0, "phalcon/mvc/view.zep", 1262); for ( - ; zephir_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_1$$3, &_0$$3) + ; zend_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS + ; zend_hash_move_forward_ex(_1$$3, &_0$$3) ) { ZEPHIR_GET_HMKEY(key, _1$$3, _0$$3); ZEPHIR_GET_HVALUE(value, _2$$3); @@ -89171,11 +88823,11 @@ static PHP_METHOD(Phalcon_Mvc_View, __set) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &key_param, &value); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { ZEPHIR_INIT_VAR(key); @@ -89196,11 +88848,11 @@ static PHP_METHOD(Phalcon_Mvc_View, __get) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &key_param); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { ZEPHIR_INIT_VAR(key); @@ -89232,11 +88884,11 @@ static PHP_METHOD(Phalcon_Mvc_View, __isset) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &key_param); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { ZEPHIR_INIT_VAR(key); @@ -89482,11 +89134,11 @@ static PHP_METHOD(Phalcon_Mvc_Collection_Behavior, mustTakeAction) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &eventName_param); - if (unlikely(Z_TYPE_P(eventName_param) != IS_STRING && Z_TYPE_P(eventName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(eventName_param) != IS_STRING && Z_TYPE_P(eventName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'eventName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(eventName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(eventName_param) == IS_STRING)) { zephir_get_strval(eventName, eventName_param); } else { ZEPHIR_INIT_VAR(eventName); @@ -89511,11 +89163,11 @@ static PHP_METHOD(Phalcon_Mvc_Collection_Behavior, getOptions) { ZEPHIR_INIT_VAR(eventName); ZVAL_EMPTY_STRING(eventName); } else { - if (unlikely(Z_TYPE_P(eventName_param) != IS_STRING && Z_TYPE_P(eventName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(eventName_param) != IS_STRING && Z_TYPE_P(eventName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'eventName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(eventName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(eventName_param) == IS_STRING)) { zephir_get_strval(eventName, eventName_param); } else { ZEPHIR_INIT_VAR(eventName); @@ -89618,11 +89270,11 @@ static PHP_METHOD(Phalcon_Mvc_Collection_Document, offsetExists) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &index_param); - if (unlikely(Z_TYPE_P(index_param) != IS_STRING && Z_TYPE_P(index_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(index_param) != IS_STRING && Z_TYPE_P(index_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'index' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(index_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(index_param) == IS_STRING)) { zephir_get_strval(index, index_param); } else { ZEPHIR_INIT_VAR(index); @@ -89642,11 +89294,11 @@ static PHP_METHOD(Phalcon_Mvc_Collection_Document, offsetGet) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &index_param); - if (unlikely(Z_TYPE_P(index_param) != IS_STRING && Z_TYPE_P(index_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(index_param) != IS_STRING && Z_TYPE_P(index_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'index' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(index_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(index_param) == IS_STRING)) { zephir_get_strval(index, index_param); } else { ZEPHIR_INIT_VAR(index); @@ -89671,11 +89323,11 @@ static PHP_METHOD(Phalcon_Mvc_Collection_Document, offsetSet) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &index_param, &value); - if (unlikely(Z_TYPE_P(index_param) != IS_STRING && Z_TYPE_P(index_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(index_param) != IS_STRING && Z_TYPE_P(index_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'index' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(index_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(index_param) == IS_STRING)) { zephir_get_strval(index, index_param); } else { ZEPHIR_INIT_VAR(index); @@ -89726,11 +89378,11 @@ static PHP_METHOD(Phalcon_Mvc_Collection_Document, writeAttribute) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &attribute_param, &value); - if (unlikely(Z_TYPE_P(attribute_param) != IS_STRING && Z_TYPE_P(attribute_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(attribute_param) != IS_STRING && Z_TYPE_P(attribute_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'attribute' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(attribute_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(attribute_param) == IS_STRING)) { zephir_get_strval(attribute, attribute_param); } else { ZEPHIR_INIT_VAR(attribute); @@ -89953,11 +89605,11 @@ static PHP_METHOD(Phalcon_Mvc_Collection_Manager, isInitialized) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &modelName_param); - if (unlikely(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'modelName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(modelName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(modelName_param) == IS_STRING)) { zephir_get_strval(modelName, modelName_param); } else { ZEPHIR_INIT_VAR(modelName); @@ -89988,11 +89640,11 @@ static PHP_METHOD(Phalcon_Mvc_Collection_Manager, setConnectionService) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &model, &connectionService_param); - if (unlikely(Z_TYPE_P(connectionService_param) != IS_STRING && Z_TYPE_P(connectionService_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(connectionService_param) != IS_STRING && Z_TYPE_P(connectionService_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'connectionService' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(connectionService_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(connectionService_param) == IS_STRING)) { zephir_get_strval(connectionService, connectionService_param); } else { ZEPHIR_INIT_VAR(connectionService); @@ -90118,11 +89770,11 @@ static PHP_METHOD(Phalcon_Mvc_Collection_Manager, notifyEvent) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &eventName_param, &model); - if (unlikely(Z_TYPE_P(eventName_param) != IS_STRING && Z_TYPE_P(eventName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(eventName_param) != IS_STRING && Z_TYPE_P(eventName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'eventName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(eventName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(eventName_param) == IS_STRING)) { zephir_get_strval(eventName, eventName_param); } else { ZEPHIR_INIT_VAR(eventName); @@ -90141,8 +89793,8 @@ static PHP_METHOD(Phalcon_Mvc_Collection_Manager, notifyEvent) { if (zephir_array_isset_fetch(&modelsBehaviors, behaviors, _0$$3, 0 TSRMLS_CC)) { zephir_is_iterable(modelsBehaviors, &_2$$4, &_1$$4, 0, 0, "phalcon/mvc/collection/manager.zep", 289); for ( - ; zephir_hash_get_current_data_ex(_2$$4, (void**) &_3$$4, &_1$$4) == SUCCESS - ; zephir_hash_move_forward_ex(_2$$4, &_1$$4) + ; zend_hash_get_current_data_ex(_2$$4, (void**) &_3$$4, &_1$$4) == SUCCESS + ; zend_hash_move_forward_ex(_2$$4, &_1$$4) ) { ZEPHIR_GET_HVALUE(behavior, _3$$4); ZEPHIR_CALL_METHOD(&status, behavior, "notify", NULL, 0, eventName, model); @@ -90194,11 +89846,11 @@ static PHP_METHOD(Phalcon_Mvc_Collection_Manager, missingMethod) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &model, &eventName_param, &data); - if (unlikely(Z_TYPE_P(eventName_param) != IS_STRING && Z_TYPE_P(eventName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(eventName_param) != IS_STRING && Z_TYPE_P(eventName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'eventName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(eventName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(eventName_param) == IS_STRING)) { zephir_get_strval(eventName, eventName_param); } else { ZEPHIR_INIT_VAR(eventName); @@ -90215,8 +89867,8 @@ static PHP_METHOD(Phalcon_Mvc_Collection_Manager, missingMethod) { if (zephir_array_isset_fetch(&modelsBehaviors, behaviors, _0$$3, 0 TSRMLS_CC)) { zephir_is_iterable(modelsBehaviors, &_2$$4, &_1$$4, 0, 0, "phalcon/mvc/collection/manager.zep", 345); for ( - ; zephir_hash_get_current_data_ex(_2$$4, (void**) &_3$$4, &_1$$4) == SUCCESS - ; zephir_hash_move_forward_ex(_2$$4, &_1$$4) + ; zend_hash_get_current_data_ex(_2$$4, (void**) &_3$$4, &_1$$4) == SUCCESS + ; zend_hash_move_forward_ex(_2$$4, &_1$$4) ) { ZEPHIR_GET_HVALUE(behavior, _3$$4); ZEPHIR_CALL_METHOD(&result, behavior, "missingmethod", NULL, 0, model, eventName, data); @@ -90333,11 +89985,11 @@ static PHP_METHOD(Phalcon_Mvc_Collection_Behavior_SoftDelete, notify) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &type_param, &model); - if (unlikely(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'type' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(type_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(type_param) == IS_STRING)) { zephir_get_strval(type, type_param); } else { ZEPHIR_INIT_VAR(type); @@ -90378,8 +90030,8 @@ static PHP_METHOD(Phalcon_Mvc_Collection_Behavior_SoftDelete, notify) { zephir_check_call_status(); zephir_is_iterable(_3$$7, &_5$$7, &_4$$7, 0, 0, "phalcon/mvc/collection/behavior/softdelete.zep", 89); for ( - ; zephir_hash_get_current_data_ex(_5$$7, (void**) &_6$$7, &_4$$7) == SUCCESS - ; zephir_hash_move_forward_ex(_5$$7, &_4$$7) + ; zend_hash_get_current_data_ex(_5$$7, (void**) &_6$$7, &_4$$7) == SUCCESS + ; zend_hash_move_forward_ex(_5$$7, &_4$$7) ) { ZEPHIR_GET_HVALUE(message, _6$$7); ZEPHIR_CALL_METHOD(NULL, model, "appendmessage", &_7, 0, message); @@ -90425,11 +90077,11 @@ static PHP_METHOD(Phalcon_Mvc_Collection_Behavior_Timestampable, notify) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &type_param, &model); - if (unlikely(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'type' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(type_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(type_param) == IS_STRING)) { zephir_get_strval(type, type_param); } else { ZEPHIR_INIT_VAR(type); @@ -90475,8 +90127,8 @@ static PHP_METHOD(Phalcon_Mvc_Collection_Behavior_Timestampable, notify) { if (Z_TYPE_P(field) == IS_ARRAY) { zephir_is_iterable(field, &_2$$12, &_1$$12, 0, 0, "phalcon/mvc/collection/behavior/timestampable.zep", 94); for ( - ; zephir_hash_get_current_data_ex(_2$$12, (void**) &_3$$12, &_1$$12) == SUCCESS - ; zephir_hash_move_forward_ex(_2$$12, &_1$$12) + ; zend_hash_get_current_data_ex(_2$$12, (void**) &_3$$12, &_1$$12) == SUCCESS + ; zend_hash_move_forward_ex(_2$$12, &_1$$12) ) { ZEPHIR_GET_HVALUE(singleField, _3$$12); ZEPHIR_CALL_METHOD(NULL, model, "writeattribute", &_4, 0, singleField, timestamp); @@ -90565,11 +90217,11 @@ static PHP_METHOD(Phalcon_Mvc_Micro_Collection, _addMap) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 4, 0, &method_param, &routePattern, &handler, &name); - if (unlikely(Z_TYPE_P(method_param) != IS_STRING && Z_TYPE_P(method_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(method_param) != IS_STRING && Z_TYPE_P(method_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'method' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(method_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(method_param) == IS_STRING)) { zephir_get_strval(method, method_param); } else { ZEPHIR_INIT_VAR(method); @@ -90596,11 +90248,11 @@ static PHP_METHOD(Phalcon_Mvc_Micro_Collection, setPrefix) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &prefix_param); - if (unlikely(Z_TYPE_P(prefix_param) != IS_STRING && Z_TYPE_P(prefix_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(prefix_param) != IS_STRING && Z_TYPE_P(prefix_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'prefix' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(prefix_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(prefix_param) == IS_STRING)) { zephir_get_strval(prefix, prefix_param); } else { ZEPHIR_INIT_VAR(prefix); @@ -90660,7 +90312,7 @@ static PHP_METHOD(Phalcon_Mvc_Micro_Collection, setLazy) { zephir_fetch_params(0, 1, 0, &lazy_param); - if (unlikely(Z_TYPE_P(lazy_param) != IS_BOOL)) { + if (UNEXPECTED(Z_TYPE_P(lazy_param) != IS_BOOL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'lazy' must be a bool") TSRMLS_CC); RETURN_NULL(); } @@ -90701,11 +90353,11 @@ static PHP_METHOD(Phalcon_Mvc_Micro_Collection, map) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 1, &routePattern_param, &handler, &name); - if (unlikely(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'routePattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(routePattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(routePattern_param) == IS_STRING)) { zephir_get_strval(routePattern, routePattern_param); } else { ZEPHIR_INIT_VAR(routePattern); @@ -90733,11 +90385,11 @@ static PHP_METHOD(Phalcon_Mvc_Micro_Collection, get) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 1, &routePattern_param, &handler, &name); - if (unlikely(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'routePattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(routePattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(routePattern_param) == IS_STRING)) { zephir_get_strval(routePattern, routePattern_param); } else { ZEPHIR_INIT_VAR(routePattern); @@ -90766,11 +90418,11 @@ static PHP_METHOD(Phalcon_Mvc_Micro_Collection, post) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 1, &routePattern_param, &handler, &name); - if (unlikely(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'routePattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(routePattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(routePattern_param) == IS_STRING)) { zephir_get_strval(routePattern, routePattern_param); } else { ZEPHIR_INIT_VAR(routePattern); @@ -90799,11 +90451,11 @@ static PHP_METHOD(Phalcon_Mvc_Micro_Collection, put) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 1, &routePattern_param, &handler, &name); - if (unlikely(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'routePattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(routePattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(routePattern_param) == IS_STRING)) { zephir_get_strval(routePattern, routePattern_param); } else { ZEPHIR_INIT_VAR(routePattern); @@ -90832,11 +90484,11 @@ static PHP_METHOD(Phalcon_Mvc_Micro_Collection, patch) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 1, &routePattern_param, &handler, &name); - if (unlikely(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'routePattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(routePattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(routePattern_param) == IS_STRING)) { zephir_get_strval(routePattern, routePattern_param); } else { ZEPHIR_INIT_VAR(routePattern); @@ -90865,11 +90517,11 @@ static PHP_METHOD(Phalcon_Mvc_Micro_Collection, head) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 1, &routePattern_param, &handler, &name); - if (unlikely(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'routePattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(routePattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(routePattern_param) == IS_STRING)) { zephir_get_strval(routePattern, routePattern_param); } else { ZEPHIR_INIT_VAR(routePattern); @@ -90898,11 +90550,11 @@ static PHP_METHOD(Phalcon_Mvc_Micro_Collection, delete) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 1, &routePattern_param, &handler, &name); - if (unlikely(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'routePattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(routePattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(routePattern_param) == IS_STRING)) { zephir_get_strval(routePattern, routePattern_param); } else { ZEPHIR_INIT_VAR(routePattern); @@ -90931,11 +90583,11 @@ static PHP_METHOD(Phalcon_Mvc_Micro_Collection, options) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 1, &routePattern_param, &handler, &name); - if (unlikely(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'routePattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(routePattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(routePattern_param) == IS_STRING)) { zephir_get_strval(routePattern, routePattern_param); } else { ZEPHIR_INIT_VAR(routePattern); @@ -91061,11 +90713,11 @@ static PHP_METHOD(Phalcon_Mvc_Micro_LazyLoader, __construct) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &definition_param); - if (unlikely(Z_TYPE_P(definition_param) != IS_STRING && Z_TYPE_P(definition_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(definition_param) != IS_STRING && Z_TYPE_P(definition_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'definition' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(definition_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(definition_param) == IS_STRING)) { zephir_get_strval(definition, definition_param); } else { ZEPHIR_INIT_VAR(definition); @@ -91089,11 +90741,11 @@ static PHP_METHOD(Phalcon_Mvc_Micro_LazyLoader, __call) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &method_param, &arguments); - if (unlikely(Z_TYPE_P(method_param) != IS_STRING && Z_TYPE_P(method_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(method_param) != IS_STRING && Z_TYPE_P(method_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'method' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(method_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(method_param) == IS_STRING)) { zephir_get_strval(method, method_param); } else { ZEPHIR_INIT_VAR(method); @@ -91145,11 +90797,11 @@ static PHP_METHOD(Phalcon_Mvc_Micro_LazyLoader, callMethod) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 1, &method_param, &arguments, &modelBinder); - if (unlikely(Z_TYPE_P(method_param) != IS_STRING && Z_TYPE_P(method_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(method_param) != IS_STRING && Z_TYPE_P(method_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'method' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(method_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(method_param) == IS_STRING)) { zephir_get_strval(method, method_param); } else { ZEPHIR_INIT_VAR(method); @@ -91231,11 +90883,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Behavior, mustTakeAction) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &eventName_param); - if (unlikely(Z_TYPE_P(eventName_param) != IS_STRING && Z_TYPE_P(eventName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(eventName_param) != IS_STRING && Z_TYPE_P(eventName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'eventName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(eventName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(eventName_param) == IS_STRING)) { zephir_get_strval(eventName, eventName_param); } else { ZEPHIR_INIT_VAR(eventName); @@ -91260,11 +90912,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Behavior, getOptions) { ZEPHIR_INIT_VAR(eventName); ZVAL_EMPTY_STRING(eventName); } else { - if (unlikely(Z_TYPE_P(eventName_param) != IS_STRING && Z_TYPE_P(eventName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(eventName_param) != IS_STRING && Z_TYPE_P(eventName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'eventName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(eventName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(eventName_param) == IS_STRING)) { zephir_get_strval(eventName, eventName_param); } else { ZEPHIR_INIT_VAR(eventName); @@ -91457,8 +91109,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Binder, bindToHandler) { if (Z_TYPE_P(paramsCache) == IS_ARRAY) { zephir_is_iterable(paramsCache, &_4$$4, &_3$$4, 0, 0, "phalcon/mvc/model/binder.zep", 102); for ( - ; zephir_hash_get_current_data_ex(_4$$4, (void**) &_5$$4, &_3$$4) == SUCCESS - ; zephir_hash_move_forward_ex(_4$$4, &_3$$4) + ; zend_hash_get_current_data_ex(_4$$4, (void**) &_5$$4, &_3$$4) == SUCCESS + ; zend_hash_move_forward_ex(_4$$4, &_3$$4) ) { ZEPHIR_GET_HMKEY(paramKey, _4$$4, _3$$4); ZEPHIR_GET_HVALUE(className, _5$$4); @@ -91557,8 +91209,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Binder, getParamsFromReflection) { zephir_array_keys(paramsKeys, params TSRMLS_CC); zephir_is_iterable(methodParams, &_2, &_1, 0, 0, "phalcon/mvc/model/binder.zep", 197); for ( - ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS - ; zephir_hash_move_forward_ex(_2, &_1) + ; zend_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS + ; zend_hash_move_forward_ex(_2, &_1) ) { ZEPHIR_GET_HMKEY(paramKey, _2, _1); ZEPHIR_GET_HVALUE(methodParam, _3); @@ -91770,11 +91422,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, setModelName) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &modelName_param); - if (unlikely(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'modelName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(modelName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(modelName_param) == IS_STRING)) { zephir_get_strval(modelName, modelName_param); } else { ZEPHIR_INIT_VAR(modelName); @@ -91901,11 +91553,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, join) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 3, &model_param, &conditions, &alias, &type); - if (unlikely(Z_TYPE_P(model_param) != IS_STRING && Z_TYPE_P(model_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(model_param) != IS_STRING && Z_TYPE_P(model_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'model' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(model_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(model_param) == IS_STRING)) { zephir_get_strval(model, model_param); } else { ZEPHIR_INIT_VAR(model); @@ -91963,11 +91615,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, innerJoin) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &model_param, &conditions, &alias); - if (unlikely(Z_TYPE_P(model_param) != IS_STRING && Z_TYPE_P(model_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(model_param) != IS_STRING && Z_TYPE_P(model_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'model' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(model_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(model_param) == IS_STRING)) { zephir_get_strval(model, model_param); } else { ZEPHIR_INIT_VAR(model); @@ -91999,11 +91651,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, leftJoin) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &model_param, &conditions, &alias); - if (unlikely(Z_TYPE_P(model_param) != IS_STRING && Z_TYPE_P(model_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(model_param) != IS_STRING && Z_TYPE_P(model_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'model' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(model_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(model_param) == IS_STRING)) { zephir_get_strval(model, model_param); } else { ZEPHIR_INIT_VAR(model); @@ -92035,11 +91687,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, rightJoin) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &model_param, &conditions, &alias); - if (unlikely(Z_TYPE_P(model_param) != IS_STRING && Z_TYPE_P(model_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(model_param) != IS_STRING && Z_TYPE_P(model_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'model' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(model_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(model_param) == IS_STRING)) { zephir_get_strval(model, model_param); } else { ZEPHIR_INIT_VAR(model); @@ -92070,11 +91722,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, where) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &conditions_param, &bindParams, &bindTypes); - if (unlikely(Z_TYPE_P(conditions_param) != IS_STRING && Z_TYPE_P(conditions_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(conditions_param) != IS_STRING && Z_TYPE_P(conditions_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'conditions' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(conditions_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(conditions_param) == IS_STRING)) { zephir_get_strval(conditions, conditions_param); } else { ZEPHIR_INIT_VAR(conditions); @@ -92134,11 +91786,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, addWhere) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &conditions_param, &bindParams, &bindTypes); - if (unlikely(Z_TYPE_P(conditions_param) != IS_STRING && Z_TYPE_P(conditions_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(conditions_param) != IS_STRING && Z_TYPE_P(conditions_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'conditions' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(conditions_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(conditions_param) == IS_STRING)) { zephir_get_strval(conditions, conditions_param); } else { ZEPHIR_INIT_VAR(conditions); @@ -92167,11 +91819,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, andWhere) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &conditions_param, &bindParams, &bindTypes); - if (unlikely(Z_TYPE_P(conditions_param) != IS_STRING && Z_TYPE_P(conditions_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(conditions_param) != IS_STRING && Z_TYPE_P(conditions_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'conditions' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(conditions_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(conditions_param) == IS_STRING)) { zephir_get_strval(conditions, conditions_param); } else { ZEPHIR_INIT_VAR(conditions); @@ -92207,11 +91859,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, orWhere) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &conditions_param, &bindParams, &bindTypes); - if (unlikely(Z_TYPE_P(conditions_param) != IS_STRING && Z_TYPE_P(conditions_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(conditions_param) != IS_STRING && Z_TYPE_P(conditions_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'conditions' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(conditions_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(conditions_param) == IS_STRING)) { zephir_get_strval(conditions, conditions_param); } else { ZEPHIR_INIT_VAR(conditions); @@ -92248,11 +91900,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, betweenWhere) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &expr_param, &minimum, &maximum); - if (unlikely(Z_TYPE_P(expr_param) != IS_STRING && Z_TYPE_P(expr_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(expr_param) != IS_STRING && Z_TYPE_P(expr_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'expr' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(expr_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(expr_param) == IS_STRING)) { zephir_get_strval(expr, expr_param); } else { ZEPHIR_INIT_VAR(expr); @@ -92293,11 +91945,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, notBetweenWhere) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &expr_param, &minimum, &maximum); - if (unlikely(Z_TYPE_P(expr_param) != IS_STRING && Z_TYPE_P(expr_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(expr_param) != IS_STRING && Z_TYPE_P(expr_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'expr' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(expr_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(expr_param) == IS_STRING)) { zephir_get_strval(expr, expr_param); } else { ZEPHIR_INIT_VAR(expr); @@ -92341,11 +91993,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, inWhere) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &expr_param, &values_param); - if (unlikely(Z_TYPE_P(expr_param) != IS_STRING && Z_TYPE_P(expr_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(expr_param) != IS_STRING && Z_TYPE_P(expr_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'expr' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(expr_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(expr_param) == IS_STRING)) { zephir_get_strval(expr, expr_param); } else { ZEPHIR_INIT_VAR(expr); @@ -92369,8 +92021,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, inWhere) { array_init(bindKeys); zephir_is_iterable(values, &_3, &_2, 0, 0, "phalcon/mvc/model/criteria.zep", 418); for ( - ; zephir_hash_get_current_data_ex(_3, (void**) &_4, &_2) == SUCCESS - ; zephir_hash_move_forward_ex(_3, &_2) + ; zend_hash_get_current_data_ex(_3, (void**) &_4, &_2) == SUCCESS + ; zend_hash_move_forward_ex(_3, &_2) ) { ZEPHIR_GET_HVALUE(value, _4); ZEPHIR_INIT_NVAR(key); @@ -92405,11 +92057,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, notInWhere) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &expr_param, &values_param); - if (unlikely(Z_TYPE_P(expr_param) != IS_STRING && Z_TYPE_P(expr_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(expr_param) != IS_STRING && Z_TYPE_P(expr_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'expr' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(expr_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(expr_param) == IS_STRING)) { zephir_get_strval(expr, expr_param); } else { ZEPHIR_INIT_VAR(expr); @@ -92426,8 +92078,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, notInWhere) { array_init(bindKeys); zephir_is_iterable(values, &_1, &_0, 0, 0, "phalcon/mvc/model/criteria.zep", 455); for ( - ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS - ; zephir_hash_move_forward_ex(_1, &_0) + ; zend_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS + ; zend_hash_move_forward_ex(_1, &_0) ) { ZEPHIR_GET_HVALUE(value, _2); ZEPHIR_INIT_NVAR(key); @@ -92458,11 +92110,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, conditions) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &conditions_param); - if (unlikely(Z_TYPE_P(conditions_param) != IS_STRING && Z_TYPE_P(conditions_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(conditions_param) != IS_STRING && Z_TYPE_P(conditions_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'conditions' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(conditions_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(conditions_param) == IS_STRING)) { zephir_get_strval(conditions, conditions_param); } else { ZEPHIR_INIT_VAR(conditions); @@ -92485,11 +92137,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, order) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &orderColumns_param); - if (unlikely(Z_TYPE_P(orderColumns_param) != IS_STRING && Z_TYPE_P(orderColumns_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(orderColumns_param) != IS_STRING && Z_TYPE_P(orderColumns_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'orderColumns' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(orderColumns_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(orderColumns_param) == IS_STRING)) { zephir_get_strval(orderColumns, orderColumns_param); } else { ZEPHIR_INIT_VAR(orderColumns); @@ -92512,11 +92164,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, orderBy) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &orderColumns_param); - if (unlikely(Z_TYPE_P(orderColumns_param) != IS_STRING && Z_TYPE_P(orderColumns_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(orderColumns_param) != IS_STRING && Z_TYPE_P(orderColumns_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'orderColumns' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(orderColumns_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(orderColumns_param) == IS_STRING)) { zephir_get_strval(orderColumns, orderColumns_param); } else { ZEPHIR_INIT_VAR(orderColumns); @@ -92586,7 +92238,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, limit) { ZEPHIR_CALL_FUNCTION(&_1, "abs", &_2, 198, &_0); zephir_check_call_status(); limit = zephir_get_numberval(_1); - if (unlikely(limit == 0)) { + if (UNEXPECTED(limit == 0)) { RETURN_THIS(); } if (zephir_is_numeric(offset)) { @@ -92793,11 +92445,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, fromInput) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 1, &dependencyInjector, &modelName_param, &data_param, &operator_param); - if (unlikely(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'modelName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(modelName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(modelName_param) == IS_STRING)) { zephir_get_strval(modelName, modelName_param); } else { ZEPHIR_INIT_VAR(modelName); @@ -92808,11 +92460,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, fromInput) { ZEPHIR_INIT_VAR(operator); ZVAL_STRING(operator, "AND", 1); } else { - if (unlikely(Z_TYPE_P(operator_param) != IS_STRING && Z_TYPE_P(operator_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(operator_param) != IS_STRING && Z_TYPE_P(operator_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'operator' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(operator_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(operator_param) == IS_STRING)) { zephir_get_strval(operator, operator_param); } else { ZEPHIR_INIT_VAR(operator); @@ -92847,8 +92499,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Criteria, fromInput) { array_init(bind); zephir_is_iterable(data, &_4$$3, &_3$$3, 0, 0, "phalcon/mvc/model/criteria.zep", 711); for ( - ; zephir_hash_get_current_data_ex(_4$$3, (void**) &_5$$3, &_3$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_4$$3, &_3$$3) + ; zend_hash_get_current_data_ex(_4$$3, (void**) &_5$$3, &_3$$3) == SUCCESS + ; zend_hash_move_forward_ex(_4$$3, &_3$$3) ) { ZEPHIR_GET_HMKEY(field, _4$$3, _3$$3); ZEPHIR_GET_HVALUE(value, _5$$3); @@ -93203,11 +92855,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, isInitialized) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &modelName_param); - if (unlikely(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'modelName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(modelName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(modelName_param) == IS_STRING)) { zephir_get_strval(modelName, modelName_param); } else { ZEPHIR_INIT_VAR(modelName); @@ -93241,11 +92893,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, load) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &modelName_param, &newInstance_param); - if (unlikely(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'modelName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(modelName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(modelName_param) == IS_STRING)) { zephir_get_strval(modelName, modelName_param); } else { ZEPHIR_INIT_VAR(modelName); @@ -93321,11 +92973,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, setModelSource) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &model, &source_param); - if (unlikely(Z_TYPE_P(source_param) != IS_STRING && Z_TYPE_P(source_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(source_param) != IS_STRING && Z_TYPE_P(source_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'source' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(source_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(source_param) == IS_STRING)) { zephir_get_strval(source, source_param); } else { ZEPHIR_INIT_VAR(source); @@ -93400,11 +93052,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, setModelSchema) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &model, &schema_param); - if (unlikely(Z_TYPE_P(schema_param) != IS_STRING && Z_TYPE_P(schema_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schema_param) != IS_STRING && Z_TYPE_P(schema_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schema' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schema_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schema_param) == IS_STRING)) { zephir_get_strval(schema, schema_param); } else { ZEPHIR_INIT_VAR(schema); @@ -93447,11 +93099,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, setConnectionService) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &model, &connectionService_param); - if (unlikely(Z_TYPE_P(connectionService_param) != IS_STRING && Z_TYPE_P(connectionService_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(connectionService_param) != IS_STRING && Z_TYPE_P(connectionService_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'connectionService' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(connectionService_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(connectionService_param) == IS_STRING)) { zephir_get_strval(connectionService, connectionService_param); } else { ZEPHIR_INIT_VAR(connectionService); @@ -93475,11 +93127,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, setWriteConnectionService) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &model, &connectionService_param); - if (unlikely(Z_TYPE_P(connectionService_param) != IS_STRING && Z_TYPE_P(connectionService_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(connectionService_param) != IS_STRING && Z_TYPE_P(connectionService_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'connectionService' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(connectionService_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(connectionService_param) == IS_STRING)) { zephir_get_strval(connectionService, connectionService_param); } else { ZEPHIR_INIT_VAR(connectionService); @@ -93502,11 +93154,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, setReadConnectionService) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &model, &connectionService_param); - if (unlikely(Z_TYPE_P(connectionService_param) != IS_STRING && Z_TYPE_P(connectionService_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(connectionService_param) != IS_STRING && Z_TYPE_P(connectionService_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'connectionService' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(connectionService_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(connectionService_param) == IS_STRING)) { zephir_get_strval(connectionService, connectionService_param); } else { ZEPHIR_INIT_VAR(connectionService); @@ -93647,11 +93299,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, notifyEvent) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &eventName_param, &model); - if (unlikely(Z_TYPE_P(eventName_param) != IS_STRING && Z_TYPE_P(eventName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(eventName_param) != IS_STRING && Z_TYPE_P(eventName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'eventName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(eventName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(eventName_param) == IS_STRING)) { zephir_get_strval(eventName, eventName_param); } else { ZEPHIR_INIT_VAR(eventName); @@ -93668,8 +93320,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, notifyEvent) { if (zephir_array_isset_fetch(&modelsBehaviors, _0, _1, 0 TSRMLS_CC)) { zephir_is_iterable(modelsBehaviors, &_3$$3, &_2$$3, 0, 0, "phalcon/mvc/model/manager.zep", 508); for ( - ; zephir_hash_get_current_data_ex(_3$$3, (void**) &_4$$3, &_2$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_3$$3, &_2$$3) + ; zend_hash_get_current_data_ex(_3$$3, (void**) &_4$$3, &_2$$3) == SUCCESS + ; zend_hash_move_forward_ex(_3$$3, &_2$$3) ) { ZEPHIR_GET_HVALUE(behavior, _4$$3); ZEPHIR_CALL_METHOD(&status, behavior, "notify", NULL, 0, eventName, model); @@ -93718,11 +93370,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, missingMethod) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &model, &eventName_param, &data); - if (unlikely(Z_TYPE_P(eventName_param) != IS_STRING && Z_TYPE_P(eventName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(eventName_param) != IS_STRING && Z_TYPE_P(eventName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'eventName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(eventName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(eventName_param) == IS_STRING)) { zephir_get_strval(eventName, eventName_param); } else { ZEPHIR_INIT_VAR(eventName); @@ -93737,8 +93389,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, missingMethod) { if (zephir_array_isset_fetch(&modelsBehaviors, _0, _1, 0 TSRMLS_CC)) { zephir_is_iterable(modelsBehaviors, &_3$$3, &_2$$3, 0, 0, "phalcon/mvc/model/manager.zep", 557); for ( - ; zephir_hash_get_current_data_ex(_3$$3, (void**) &_4$$3, &_2$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_3$$3, &_2$$3) + ; zend_hash_get_current_data_ex(_3$$3, (void**) &_4$$3, &_2$$3) == SUCCESS + ; zend_hash_move_forward_ex(_3$$3, &_2$$3) ) { ZEPHIR_GET_HVALUE(behavior, _4$$3); ZEPHIR_CALL_METHOD(&result, behavior, "missingmethod", NULL, 0, model, eventName, data); @@ -93878,11 +93530,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, addHasOne) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 4, 1, &model, &fields, &referencedModel_param, &referencedFields, &options); - if (unlikely(Z_TYPE_P(referencedModel_param) != IS_STRING && Z_TYPE_P(referencedModel_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(referencedModel_param) != IS_STRING && Z_TYPE_P(referencedModel_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'referencedModel' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(referencedModel_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(referencedModel_param) == IS_STRING)) { zephir_get_strval(referencedModel, referencedModel_param); } else { ZEPHIR_INIT_VAR(referencedModel); @@ -93954,11 +93606,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, addBelongsTo) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 4, 1, &model, &fields, &referencedModel_param, &referencedFields, &options); - if (unlikely(Z_TYPE_P(referencedModel_param) != IS_STRING && Z_TYPE_P(referencedModel_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(referencedModel_param) != IS_STRING && Z_TYPE_P(referencedModel_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'referencedModel' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(referencedModel_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(referencedModel_param) == IS_STRING)) { zephir_get_strval(referencedModel, referencedModel_param); } else { ZEPHIR_INIT_VAR(referencedModel); @@ -94030,11 +93682,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, addHasMany) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 4, 1, &model, &fields, &referencedModel_param, &referencedFields, &options); - if (unlikely(Z_TYPE_P(referencedModel_param) != IS_STRING && Z_TYPE_P(referencedModel_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(referencedModel_param) != IS_STRING && Z_TYPE_P(referencedModel_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'referencedModel' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(referencedModel_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(referencedModel_param) == IS_STRING)) { zephir_get_strval(referencedModel, referencedModel_param); } else { ZEPHIR_INIT_VAR(referencedModel); @@ -94107,21 +93759,21 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, addHasManyToMany) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 7, 1, &model, &fields, &intermediateModel_param, &intermediateFields, &intermediateReferencedFields, &referencedModel_param, &referencedFields, &options); - if (unlikely(Z_TYPE_P(intermediateModel_param) != IS_STRING && Z_TYPE_P(intermediateModel_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(intermediateModel_param) != IS_STRING && Z_TYPE_P(intermediateModel_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'intermediateModel' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(intermediateModel_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(intermediateModel_param) == IS_STRING)) { zephir_get_strval(intermediateModel, intermediateModel_param); } else { ZEPHIR_INIT_VAR(intermediateModel); ZVAL_EMPTY_STRING(intermediateModel); } - if (unlikely(Z_TYPE_P(referencedModel_param) != IS_STRING && Z_TYPE_P(referencedModel_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(referencedModel_param) != IS_STRING && Z_TYPE_P(referencedModel_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'referencedModel' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(referencedModel_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(referencedModel_param) == IS_STRING)) { zephir_get_strval(referencedModel, referencedModel_param); } else { ZEPHIR_INIT_VAR(referencedModel); @@ -94204,21 +93856,21 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, existsBelongsTo) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &modelName_param, &modelRelation_param); - if (unlikely(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'modelName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(modelName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(modelName_param) == IS_STRING)) { zephir_get_strval(modelName, modelName_param); } else { ZEPHIR_INIT_VAR(modelName); ZVAL_EMPTY_STRING(modelName); } - if (unlikely(Z_TYPE_P(modelRelation_param) != IS_STRING && Z_TYPE_P(modelRelation_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(modelRelation_param) != IS_STRING && Z_TYPE_P(modelRelation_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'modelRelation' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(modelRelation_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(modelRelation_param) == IS_STRING)) { zephir_get_strval(modelRelation, modelRelation_param); } else { ZEPHIR_INIT_VAR(modelRelation); @@ -94251,21 +93903,21 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, existsHasMany) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &modelName_param, &modelRelation_param); - if (unlikely(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'modelName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(modelName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(modelName_param) == IS_STRING)) { zephir_get_strval(modelName, modelName_param); } else { ZEPHIR_INIT_VAR(modelName); ZVAL_EMPTY_STRING(modelName); } - if (unlikely(Z_TYPE_P(modelRelation_param) != IS_STRING && Z_TYPE_P(modelRelation_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(modelRelation_param) != IS_STRING && Z_TYPE_P(modelRelation_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'modelRelation' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(modelRelation_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(modelRelation_param) == IS_STRING)) { zephir_get_strval(modelRelation, modelRelation_param); } else { ZEPHIR_INIT_VAR(modelRelation); @@ -94298,21 +93950,21 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, existsHasOne) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &modelName_param, &modelRelation_param); - if (unlikely(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'modelName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(modelName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(modelName_param) == IS_STRING)) { zephir_get_strval(modelName, modelName_param); } else { ZEPHIR_INIT_VAR(modelName); ZVAL_EMPTY_STRING(modelName); } - if (unlikely(Z_TYPE_P(modelRelation_param) != IS_STRING && Z_TYPE_P(modelRelation_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(modelRelation_param) != IS_STRING && Z_TYPE_P(modelRelation_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'modelRelation' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(modelRelation_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(modelRelation_param) == IS_STRING)) { zephir_get_strval(modelRelation, modelRelation_param); } else { ZEPHIR_INIT_VAR(modelRelation); @@ -94345,21 +93997,21 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, existsHasManyToMany) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &modelName_param, &modelRelation_param); - if (unlikely(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'modelName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(modelName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(modelName_param) == IS_STRING)) { zephir_get_strval(modelName, modelName_param); } else { ZEPHIR_INIT_VAR(modelName); ZVAL_EMPTY_STRING(modelName); } - if (unlikely(Z_TYPE_P(modelRelation_param) != IS_STRING && Z_TYPE_P(modelRelation_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(modelRelation_param) != IS_STRING && Z_TYPE_P(modelRelation_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'modelRelation' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(modelRelation_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(modelRelation_param) == IS_STRING)) { zephir_get_strval(modelRelation, modelRelation_param); } else { ZEPHIR_INIT_VAR(modelRelation); @@ -94391,21 +94043,21 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, getRelationByAlias) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &modelName_param, &alias_param); - if (unlikely(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'modelName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(modelName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(modelName_param) == IS_STRING)) { zephir_get_strval(modelName, modelName_param); } else { ZEPHIR_INIT_VAR(modelName); ZVAL_EMPTY_STRING(modelName); } - if (unlikely(Z_TYPE_P(alias_param) != IS_STRING && Z_TYPE_P(alias_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(alias_param) != IS_STRING && Z_TYPE_P(alias_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'alias' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(alias_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(alias_param) == IS_STRING)) { zephir_get_strval(alias, alias_param); } else { ZEPHIR_INIT_VAR(alias); @@ -94453,8 +94105,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, _mergeFindParameters) { if (Z_TYPE_P(findParamsOne) == IS_ARRAY) { zephir_is_iterable(findParamsOne, &_3$$4, &_2$$4, 0, 0, "phalcon/mvc/model/manager.zep", 1149); for ( - ; zephir_hash_get_current_data_ex(_3$$4, (void**) &_4$$4, &_2$$4) == SUCCESS - ; zephir_hash_move_forward_ex(_3$$4, &_2$$4) + ; zend_hash_get_current_data_ex(_3$$4, (void**) &_4$$4, &_2$$4) == SUCCESS + ; zend_hash_move_forward_ex(_3$$4, &_2$$4) ) { ZEPHIR_GET_HMKEY(key, _3$$4, _2$$4); ZEPHIR_GET_HVALUE(value, _4$$4); @@ -94485,8 +94137,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, _mergeFindParameters) { if (Z_TYPE_P(findParamsTwo) == IS_ARRAY) { zephir_is_iterable(findParamsTwo, &_9$$11, &_8$$11, 0, 0, "phalcon/mvc/model/manager.zep", 1183); for ( - ; zephir_hash_get_current_data_ex(_9$$11, (void**) &_10$$11, &_8$$11) == SUCCESS - ; zephir_hash_move_forward_ex(_9$$11, &_8$$11) + ; zend_hash_get_current_data_ex(_9$$11, (void**) &_10$$11, &_8$$11) == SUCCESS + ; zend_hash_move_forward_ex(_9$$11, &_8$$11) ) { ZEPHIR_GET_HMKEY(key, _9$$11, _8$$11); ZEPHIR_GET_HVALUE(value, _10$$11); @@ -94556,11 +94208,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, getRelationRecords) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 1, &relation, &method_param, &record, ¶meters); - if (unlikely(Z_TYPE_P(method_param) != IS_STRING && Z_TYPE_P(method_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(method_param) != IS_STRING && Z_TYPE_P(method_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'method' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(method_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(method_param) == IS_STRING)) { zephir_get_strval(method, method_param); } else { ZEPHIR_INIT_VAR(method); @@ -94672,8 +94324,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, getRelationRecords) { zephir_check_call_status(); zephir_is_iterable(_16$$10, &_18$$10, &_17$$10, 0, 0, "phalcon/mvc/model/manager.zep", 1303); for ( - ; zephir_hash_get_current_data_ex(_18$$10, (void**) &_19$$10, &_17$$10) == SUCCESS - ; zephir_hash_move_forward_ex(_18$$10, &_17$$10) + ; zend_hash_get_current_data_ex(_18$$10, (void**) &_19$$10, &_17$$10) == SUCCESS + ; zend_hash_move_forward_ex(_18$$10, &_17$$10) ) { ZEPHIR_GET_HMKEY(refPosition, _18$$10, _17$$10); ZEPHIR_GET_HVALUE(field, _19$$10); @@ -94770,21 +94422,21 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, getReusableRecords) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &modelName_param, &key_param); - if (unlikely(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'modelName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(modelName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(modelName_param) == IS_STRING)) { zephir_get_strval(modelName, modelName_param); } else { ZEPHIR_INIT_VAR(modelName); ZVAL_EMPTY_STRING(modelName); } - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { ZEPHIR_INIT_VAR(key); @@ -94808,21 +94460,21 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, setReusableRecords) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &modelName_param, &key_param, &records); - if (unlikely(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'modelName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(modelName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(modelName_param) == IS_STRING)) { zephir_get_strval(modelName, modelName_param); } else { ZEPHIR_INIT_VAR(modelName); ZVAL_EMPTY_STRING(modelName); } - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { ZEPHIR_INIT_VAR(key); @@ -94852,21 +94504,21 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, getBelongsToRecords) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 4, 1, &method_param, &modelName_param, &modelRelation, &record, ¶meters); - if (unlikely(Z_TYPE_P(method_param) != IS_STRING && Z_TYPE_P(method_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(method_param) != IS_STRING && Z_TYPE_P(method_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'method' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(method_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(method_param) == IS_STRING)) { zephir_get_strval(method, method_param); } else { ZEPHIR_INIT_VAR(method); ZVAL_EMPTY_STRING(method); } - if (unlikely(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'modelName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(modelName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(modelName_param) == IS_STRING)) { zephir_get_strval(modelName, modelName_param); } else { ZEPHIR_INIT_VAR(modelName); @@ -94904,21 +94556,21 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, getHasManyRecords) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 4, 1, &method_param, &modelName_param, &modelRelation, &record, ¶meters); - if (unlikely(Z_TYPE_P(method_param) != IS_STRING && Z_TYPE_P(method_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(method_param) != IS_STRING && Z_TYPE_P(method_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'method' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(method_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(method_param) == IS_STRING)) { zephir_get_strval(method, method_param); } else { ZEPHIR_INIT_VAR(method); ZVAL_EMPTY_STRING(method); } - if (unlikely(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'modelName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(modelName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(modelName_param) == IS_STRING)) { zephir_get_strval(modelName, modelName_param); } else { ZEPHIR_INIT_VAR(modelName); @@ -94956,21 +94608,21 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, getHasOneRecords) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 4, 1, &method_param, &modelName_param, &modelRelation, &record, ¶meters); - if (unlikely(Z_TYPE_P(method_param) != IS_STRING && Z_TYPE_P(method_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(method_param) != IS_STRING && Z_TYPE_P(method_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'method' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(method_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(method_param) == IS_STRING)) { zephir_get_strval(method, method_param); } else { ZEPHIR_INIT_VAR(method); ZVAL_EMPTY_STRING(method); } - if (unlikely(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'modelName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(modelName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(modelName_param) == IS_STRING)) { zephir_get_strval(modelName, modelName_param); } else { ZEPHIR_INIT_VAR(modelName); @@ -95108,11 +94760,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, getRelations) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &modelName_param); - if (unlikely(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'modelName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(modelName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(modelName_param) == IS_STRING)) { zephir_get_strval(modelName, modelName_param); } else { ZEPHIR_INIT_VAR(modelName); @@ -95129,8 +94781,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, getRelations) { if (zephir_array_isset_fetch(&relations, _0, entityName, 0 TSRMLS_CC)) { zephir_is_iterable(relations, &_2$$3, &_1$$3, 0, 0, "phalcon/mvc/model/manager.zep", 1559); for ( - ; zephir_hash_get_current_data_ex(_2$$3, (void**) &_3$$3, &_1$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_2$$3, &_1$$3) + ; zend_hash_get_current_data_ex(_2$$3, (void**) &_3$$3, &_1$$3) == SUCCESS + ; zend_hash_move_forward_ex(_2$$3, &_1$$3) ) { ZEPHIR_GET_HVALUE(relation, _3$$3); zephir_array_append(&allRelations, relation, PH_SEPARATE, "phalcon/mvc/model/manager.zep", 1557); @@ -95141,8 +94793,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, getRelations) { if (zephir_array_isset_fetch(&relations, _4, entityName, 0 TSRMLS_CC)) { zephir_is_iterable(relations, &_6$$5, &_5$$5, 0, 0, "phalcon/mvc/model/manager.zep", 1568); for ( - ; zephir_hash_get_current_data_ex(_6$$5, (void**) &_7$$5, &_5$$5) == SUCCESS - ; zephir_hash_move_forward_ex(_6$$5, &_5$$5) + ; zend_hash_get_current_data_ex(_6$$5, (void**) &_7$$5, &_5$$5) == SUCCESS + ; zend_hash_move_forward_ex(_6$$5, &_5$$5) ) { ZEPHIR_GET_HVALUE(relation, _7$$5); zephir_array_append(&allRelations, relation, PH_SEPARATE, "phalcon/mvc/model/manager.zep", 1566); @@ -95153,8 +94805,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, getRelations) { if (zephir_array_isset_fetch(&relations, _8, entityName, 0 TSRMLS_CC)) { zephir_is_iterable(relations, &_10$$7, &_9$$7, 0, 0, "phalcon/mvc/model/manager.zep", 1577); for ( - ; zephir_hash_get_current_data_ex(_10$$7, (void**) &_11$$7, &_9$$7) == SUCCESS - ; zephir_hash_move_forward_ex(_10$$7, &_9$$7) + ; zend_hash_get_current_data_ex(_10$$7, (void**) &_11$$7, &_9$$7) == SUCCESS + ; zend_hash_move_forward_ex(_10$$7, &_9$$7) ) { ZEPHIR_GET_HVALUE(relation, _11$$7); zephir_array_append(&allRelations, relation, PH_SEPARATE, "phalcon/mvc/model/manager.zep", 1575); @@ -95172,21 +94824,21 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, getRelationsBetween) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &first_param, &second_param); - if (unlikely(Z_TYPE_P(first_param) != IS_STRING && Z_TYPE_P(first_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(first_param) != IS_STRING && Z_TYPE_P(first_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'first' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(first_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(first_param) == IS_STRING)) { zephir_get_strval(first, first_param); } else { ZEPHIR_INIT_VAR(first); ZVAL_EMPTY_STRING(first); } - if (unlikely(Z_TYPE_P(second_param) != IS_STRING && Z_TYPE_P(second_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(second_param) != IS_STRING && Z_TYPE_P(second_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'second' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(second_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(second_param) == IS_STRING)) { zephir_get_strval(second, second_param); } else { ZEPHIR_INIT_VAR(second); @@ -95229,11 +94881,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, createQuery) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &phql_param); - if (unlikely(Z_TYPE_P(phql_param) != IS_STRING && Z_TYPE_P(phql_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(phql_param) != IS_STRING && Z_TYPE_P(phql_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'phql' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(phql_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(phql_param) == IS_STRING)) { zephir_get_strval(phql, phql_param); } else { ZEPHIR_INIT_VAR(phql); @@ -95271,11 +94923,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, executeQuery) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &phql_param, &placeholders, &types); - if (unlikely(Z_TYPE_P(phql_param) != IS_STRING && Z_TYPE_P(phql_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(phql_param) != IS_STRING && Z_TYPE_P(phql_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'phql' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(phql_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(phql_param) == IS_STRING)) { zephir_get_strval(phql, phql_param); } else { ZEPHIR_INIT_VAR(phql); @@ -95372,11 +95024,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Manager, getNamespaceAlias) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &alias_param); - if (unlikely(Z_TYPE_P(alias_param) != IS_STRING && Z_TYPE_P(alias_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(alias_param) != IS_STRING && Z_TYPE_P(alias_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'alias' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(alias_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(alias_param) == IS_STRING)) { zephir_get_strval(alias, alias_param); } else { ZEPHIR_INIT_VAR(alias); @@ -95576,11 +95228,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Message, __construct) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 4, &message_param, &field, &type, &model, &code_param); - if (unlikely(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'message' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(message_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(message_param) == IS_STRING)) { zephir_get_strval(message, message_param); } else { ZEPHIR_INIT_VAR(message); @@ -95623,11 +95275,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Message, setType) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &type_param); - if (unlikely(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'type' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(type_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(type_param) == IS_STRING)) { zephir_get_strval(type, type_param); } else { ZEPHIR_INIT_VAR(type); @@ -95656,11 +95308,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Message, setMessage) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &message_param); - if (unlikely(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'message' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(message_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(message_param) == IS_STRING)) { zephir_get_strval(message, message_param); } else { ZEPHIR_INIT_VAR(message); @@ -97041,8 +96693,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getQualified) { _9$$12 = zephir_fetch_nproperty_this(this_ptr, SL("_modelsInstances"), PH_NOISY_CC); zephir_is_iterable(_9$$12, &_11$$12, &_10$$12, 0, 0, "phalcon/mvc/model/query.zep", 288); for ( - ; zephir_hash_get_current_data_ex(_11$$12, (void**) &_12$$12, &_10$$12) == SUCCESS - ; zephir_hash_move_forward_ex(_11$$12, &_10$$12) + ; zend_hash_get_current_data_ex(_11$$12, (void**) &_12$$12, &_10$$12) == SUCCESS + ; zend_hash_move_forward_ex(_11$$12, &_10$$12) ) { ZEPHIR_GET_HVALUE(model, _12$$12); ZEPHIR_CALL_METHOD(&_13$$13, metaData, "hasattribute", &_14, 0, model, columnName); @@ -97175,8 +96827,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getCaseExpression) { zephir_array_fetch_string(&_0, expr, SL("right"), PH_NOISY | PH_READONLY, "phalcon/mvc/model/query.zep", 365 TSRMLS_CC); zephir_is_iterable(_0, &_2, &_1, 0, 0, "phalcon/mvc/model/query.zep", 380); for ( - ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS - ; zephir_hash_move_forward_ex(_2, &_1) + ; zend_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS + ; zend_hash_move_forward_ex(_2, &_1) ) { ZEPHIR_GET_HVALUE(whenExpr, _3); if (zephir_array_isset_string(whenExpr, SS("right"))) { @@ -97241,8 +96893,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getFunctionCall) { array_init(functionArgs); zephir_is_iterable(arguments, &_1$$6, &_0$$6, 0, 0, "phalcon/mvc/model/query.zep", 408); for ( - ; zephir_hash_get_current_data_ex(_1$$6, (void**) &_2$$6, &_0$$6) == SUCCESS - ; zephir_hash_move_forward_ex(_1$$6, &_0$$6) + ; zend_hash_get_current_data_ex(_1$$6, (void**) &_2$$6, &_0$$6) == SUCCESS + ; zend_hash_move_forward_ex(_1$$6, &_0$$6) ) { ZEPHIR_GET_HVALUE(argument, _2$$6); ZEPHIR_CALL_METHOD(&_3$$7, this_ptr, "_getcallargument", &_4, 338, argument); @@ -97897,8 +97549,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getExpression) { array_init(listItems); zephir_is_iterable(expr, &_40$$71, &_39$$71, 0, 0, "phalcon/mvc/model/query.zep", 762); for ( - ; zephir_hash_get_current_data_ex(_40$$71, (void**) &_41$$71, &_39$$71) == SUCCESS - ; zephir_hash_move_forward_ex(_40$$71, &_39$$71) + ; zend_hash_get_current_data_ex(_40$$71, (void**) &_41$$71, &_39$$71) == SUCCESS + ; zend_hash_move_forward_ex(_40$$71, &_39$$71) ) { ZEPHIR_GET_HVALUE(exprListItem, _41$$71); ZEPHIR_CALL_METHOD(&_42$$72, this_ptr, "_getexpression", &_1, 337, exprListItem); @@ -97943,8 +97595,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getSelectColumn) { _0$$4 = zephir_fetch_nproperty_this(this_ptr, SL("_models"), PH_NOISY_CC); zephir_is_iterable(_0$$4, &_2$$4, &_1$$4, 0, 0, "phalcon/mvc/model/query.zep", 809); for ( - ; zephir_hash_get_current_data_ex(_2$$4, (void**) &_3$$4, &_1$$4) == SUCCESS - ; zephir_hash_move_forward_ex(_2$$4, &_1$$4) + ; zend_hash_get_current_data_ex(_2$$4, (void**) &_3$$4, &_1$$4) == SUCCESS + ; zend_hash_move_forward_ex(_2$$4, &_1$$4) ) { ZEPHIR_GET_HMKEY(modelName, _2$$4, _1$$4); ZEPHIR_GET_HVALUE(source, _3$$4); @@ -98189,11 +97841,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getSingleJoin) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 5, 0, &joinType_param, &joinSource, &modelAlias, &joinAlias, &relation); - if (unlikely(Z_TYPE_P(joinType_param) != IS_STRING && Z_TYPE_P(joinType_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(joinType_param) != IS_STRING && Z_TYPE_P(joinType_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'joinType' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(joinType_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(joinType_param) == IS_STRING)) { zephir_get_strval(joinType, joinType_param); } else { ZEPHIR_INIT_VAR(joinType); @@ -98236,8 +97888,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getSingleJoin) { array_init(sqlJoinPartialConditions); zephir_is_iterable(fields, &_6$$4, &_5$$4, 0, 0, "phalcon/mvc/model/query.zep", 1096); for ( - ; zephir_hash_get_current_data_ex(_6$$4, (void**) &_7$$4, &_5$$4) == SUCCESS - ; zephir_hash_move_forward_ex(_6$$4, &_5$$4) + ; zend_hash_get_current_data_ex(_6$$4, (void**) &_7$$4, &_5$$4) == SUCCESS + ; zend_hash_move_forward_ex(_6$$4, &_5$$4) ) { ZEPHIR_GET_HMKEY(position, _6$$4, _5$$4); ZEPHIR_GET_HVALUE(field, _7$$4); @@ -98326,8 +97978,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getMultiJoin) { if (Z_TYPE_P(fields) == IS_ARRAY) { zephir_is_iterable(fields, &_1$$3, &_0$$3, 0, 0, "phalcon/mvc/model/query.zep", 1223); for ( - ; zephir_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_1$$3, &_0$$3) + ; zend_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS + ; zend_hash_move_forward_ex(_1$$3, &_0$$3) ) { ZEPHIR_GET_HMKEY(field, _1$$3, _0$$3); ZEPHIR_GET_HVALUE(position, _2$$3); @@ -98493,8 +98145,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getJoins) { } zephir_is_iterable(selectJoins, &_1, &_0, 0, 0, "phalcon/mvc/model/query.zep", 1474); for ( - ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS - ; zephir_hash_move_forward_ex(_1, &_0) + ; zend_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS + ; zend_hash_move_forward_ex(_1, &_0) ) { ZEPHIR_GET_HVALUE(joinItem, _2); ZEPHIR_CALL_METHOD(&joinData, this_ptr, "_getjoin", &_3, 343, manager, joinItem); @@ -98572,8 +98224,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getJoins) { zephir_update_property_this(this_ptr, SL("_modelsInstances"), modelsInstances TSRMLS_CC); zephir_is_iterable(joinPrepared, &_13, &_12, 0, 0, "phalcon/mvc/model/query.zep", 1494); for ( - ; zephir_hash_get_current_data_ex(_13, (void**) &_14, &_12) == SUCCESS - ; zephir_hash_move_forward_ex(_13, &_12) + ; zend_hash_get_current_data_ex(_13, (void**) &_14, &_12) == SUCCESS + ; zend_hash_move_forward_ex(_13, &_12) ) { ZEPHIR_GET_HMKEY(joinAliasName, _13, _12); ZEPHIR_GET_HVALUE(joinItem, _14); @@ -98589,8 +98241,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getJoins) { ZEPHIR_INIT_VAR(_18$$14); zephir_is_iterable(joinPrepared, &_20$$14, &_19$$14, 0, 0, "phalcon/mvc/model/query.zep", 1505); for ( - ; zephir_hash_get_current_data_ex(_20$$14, (void**) &_21$$14, &_19$$14) == SUCCESS - ; zephir_hash_move_forward_ex(_20$$14, &_19$$14) + ; zend_hash_get_current_data_ex(_20$$14, (void**) &_21$$14, &_19$$14) == SUCCESS + ; zend_hash_move_forward_ex(_20$$14, &_19$$14) ) { ZEPHIR_GET_HMKEY(joinAliasName, _20$$14, _19$$14); ZEPHIR_GET_HVALUE(_18$$14, _21$$14); @@ -98616,8 +98268,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getJoins) { array_init(fromModels); zephir_is_iterable(selectTables, &_25, &_24, 0, 0, "phalcon/mvc/model/query.zep", 1519); for ( - ; zephir_hash_get_current_data_ex(_25, (void**) &_26, &_24) == SUCCESS - ; zephir_hash_move_forward_ex(_25, &_24) + ; zend_hash_get_current_data_ex(_25, (void**) &_26, &_24) == SUCCESS + ; zend_hash_move_forward_ex(_25, &_24) ) { ZEPHIR_GET_HVALUE(tableItem, _26); zephir_array_fetch_string(&_27$$16, tableItem, SL("qualifiedName"), PH_NOISY | PH_READONLY, "phalcon/mvc/model/query.zep", 1513 TSRMLS_CC); @@ -98628,15 +98280,15 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getJoins) { ZEPHIR_INIT_VAR(_29); zephir_is_iterable(fromModels, &_31, &_30, 0, 0, "phalcon/mvc/model/query.zep", 1627); for ( - ; zephir_hash_get_current_data_ex(_31, (void**) &_32, &_30) == SUCCESS - ; zephir_hash_move_forward_ex(_31, &_30) + ; zend_hash_get_current_data_ex(_31, (void**) &_32, &_30) == SUCCESS + ; zend_hash_move_forward_ex(_31, &_30) ) { ZEPHIR_GET_HMKEY(fromModelName, _31, _30); ZEPHIR_GET_HVALUE(_29, _32); zephir_is_iterable(joinModels, &_34$$17, &_33$$17, 0, 0, "phalcon/mvc/model/query.zep", 1625); for ( - ; zephir_hash_get_current_data_ex(_34$$17, (void**) &_35$$17, &_33$$17) == SUCCESS - ; zephir_hash_move_forward_ex(_34$$17, &_33$$17) + ; zend_hash_get_current_data_ex(_34$$17, (void**) &_35$$17, &_33$$17) == SUCCESS + ; zend_hash_move_forward_ex(_34$$17, &_33$$17) ) { ZEPHIR_GET_HMKEY(joinAlias, _34$$17, _33$$17); ZEPHIR_GET_HVALUE(joinModel, _35$$17); @@ -98685,8 +98337,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getJoins) { if (zephir_array_isset_long(sqlJoin, 0)) { zephir_is_iterable(sqlJoin, &_45$$26, &_44$$26, 0, 0, "phalcon/mvc/model/query.zep", 1597); for ( - ; zephir_hash_get_current_data_ex(_45$$26, (void**) &_46$$26, &_44$$26) == SUCCESS - ; zephir_hash_move_forward_ex(_45$$26, &_44$$26) + ; zend_hash_get_current_data_ex(_45$$26, (void**) &_46$$26, &_44$$26) == SUCCESS + ; zend_hash_move_forward_ex(_45$$26, &_44$$26) ) { ZEPHIR_GET_HVALUE(sqlJoinItem, _46$$26); zephir_array_append(&sqlJoins, sqlJoinItem, PH_SEPARATE, "phalcon/mvc/model/query.zep", 1595); @@ -98745,8 +98397,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getOrderClause) { array_init(orderParts); zephir_is_iterable(orderColumns, &_1, &_0, 0, 0, "phalcon/mvc/model/query.zep", 1668); for ( - ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS - ; zephir_hash_move_forward_ex(_1, &_0) + ; zend_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS + ; zend_hash_move_forward_ex(_1, &_0) ) { ZEPHIR_GET_HVALUE(orderItem, _2); zephir_array_fetch_string(&_3$$5, orderItem, SL("column"), PH_NOISY | PH_READONLY, "phalcon/mvc/model/query.zep", 1650 TSRMLS_CC); @@ -98798,8 +98450,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _getGroupClause) { array_init(groupParts); zephir_is_iterable(group, &_1$$3, &_0$$3, 0, 0, "phalcon/mvc/model/query.zep", 1686); for ( - ; zephir_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_1$$3, &_0$$3) + ; zend_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS + ; zend_hash_move_forward_ex(_1$$3, &_0$$3) ) { ZEPHIR_GET_HVALUE(groupItem, _2$$3); ZEPHIR_CALL_METHOD(&_3$$4, this_ptr, "_getexpression", &_4, 337, groupItem); @@ -98943,8 +98595,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _prepareSelect) { array_init(automaticJoins); zephir_is_iterable(selectedModels, &_1, &_0, 0, 0, "phalcon/mvc/model/query.zep", 1940); for ( - ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS - ; zephir_hash_move_forward_ex(_1, &_0) + ; zend_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS + ; zend_hash_move_forward_ex(_1, &_0) ) { ZEPHIR_GET_HVALUE(selectedModel, _2); ZEPHIR_OBS_NVAR(qualifiedName); @@ -99026,8 +98678,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _prepareSelect) { } zephir_is_iterable(withs, &_14$$24, &_13$$24, 0, 0, "phalcon/mvc/model/query.zep", 1932); for ( - ; zephir_hash_get_current_data_ex(_14$$24, (void**) &_15$$24, &_13$$24) == SUCCESS - ; zephir_hash_move_forward_ex(_14$$24, &_13$$24) + ; zend_hash_get_current_data_ex(_14$$24, (void**) &_15$$24, &_13$$24) == SUCCESS + ; zend_hash_move_forward_ex(_14$$24, &_13$$24) ) { ZEPHIR_GET_HVALUE(withItem, _15$$24); ZEPHIR_SINIT_NVAR(_16$$27); @@ -99179,16 +98831,16 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _prepareSelect) { array_init(sqlColumnAliases); zephir_is_iterable(selectColumns, &_43, &_42, 0, 0, "phalcon/mvc/model/query.zep", 2025); for ( - ; zephir_hash_get_current_data_ex(_43, (void**) &_44, &_42) == SUCCESS - ; zephir_hash_move_forward_ex(_43, &_42) + ; zend_hash_get_current_data_ex(_43, (void**) &_44, &_42) == SUCCESS + ; zend_hash_move_forward_ex(_43, &_42) ) { ZEPHIR_GET_HVALUE(column, _44); ZEPHIR_CALL_METHOD(&_45$$41, this_ptr, "_getselectcolumn", &_46, 348, column); zephir_check_call_status(); zephir_is_iterable(_45$$41, &_48$$41, &_47$$41, 0, 0, "phalcon/mvc/model/query.zep", 2024); for ( - ; zephir_hash_get_current_data_ex(_48$$41, (void**) &_49$$41, &_47$$41) == SUCCESS - ; zephir_hash_move_forward_ex(_48$$41, &_47$$41) + ; zend_hash_get_current_data_ex(_48$$41, (void**) &_49$$41, &_47$$41) == SUCCESS + ; zend_hash_move_forward_ex(_48$$41, &_47$$41) ) { ZEPHIR_GET_HVALUE(sqlColumn, _49$$41); ZEPHIR_OBS_NVAR(alias); @@ -99339,8 +98991,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _prepareInsert) { zephir_array_fetch_string(&_4, ast, SL("values"), PH_NOISY | PH_READONLY, "phalcon/mvc/model/query.zep", 2133 TSRMLS_CC); zephir_is_iterable(_4, &_6, &_5, 0, 0, "phalcon/mvc/model/query.zep", 2142); for ( - ; zephir_hash_get_current_data_ex(_6, (void**) &_7, &_5) == SUCCESS - ; zephir_hash_move_forward_ex(_6, &_5) + ; zend_hash_get_current_data_ex(_6, (void**) &_7, &_5) == SUCCESS + ; zend_hash_move_forward_ex(_6, &_5) ) { ZEPHIR_GET_HVALUE(exprValue, _7); ZEPHIR_INIT_NVAR(_8$$9); @@ -99371,8 +99023,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _prepareInsert) { array_init(sqlFields); zephir_is_iterable(fields, &_14$$10, &_13$$10, 0, 0, "phalcon/mvc/model/query.zep", 2166); for ( - ; zephir_hash_get_current_data_ex(_14$$10, (void**) &_15$$10, &_13$$10) == SUCCESS - ; zephir_hash_move_forward_ex(_14$$10, &_13$$10) + ; zend_hash_get_current_data_ex(_14$$10, (void**) &_15$$10, &_13$$10) == SUCCESS + ; zend_hash_move_forward_ex(_14$$10, &_13$$10) ) { ZEPHIR_GET_HVALUE(field, _15$$10); ZEPHIR_OBS_NVAR(name); @@ -99452,8 +99104,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _prepareUpdate) { zephir_read_property_this(&manager, this_ptr, SL("_manager"), PH_NOISY_CC); zephir_is_iterable(updateTables, &_1, &_0, 0, 0, "phalcon/mvc/model/query.zep", 2273); for ( - ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS - ; zephir_hash_move_forward_ex(_1, &_0) + ; zend_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS + ; zend_hash_move_forward_ex(_1, &_0) ) { ZEPHIR_GET_HVALUE(table, _2); ZEPHIR_OBS_NVAR(qualifiedName); @@ -99524,8 +99176,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _prepareUpdate) { notQuoting = 0; zephir_is_iterable(updateValues, &_10, &_9, 0, 0, "phalcon/mvc/model/query.zep", 2297); for ( - ; zephir_hash_get_current_data_ex(_10, (void**) &_11, &_9) == SUCCESS - ; zephir_hash_move_forward_ex(_10, &_9) + ; zend_hash_get_current_data_ex(_10, (void**) &_11, &_9) == SUCCESS + ; zend_hash_move_forward_ex(_10, &_9) ) { ZEPHIR_GET_HVALUE(updateValue, _11); zephir_array_fetch_string(&_13$$17, updateValue, SL("column"), PH_NOISY | PH_READONLY, "phalcon/mvc/model/query.zep", 2289 TSRMLS_CC); @@ -99625,8 +99277,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _prepareDelete) { zephir_read_property_this(&manager, this_ptr, SL("_manager"), PH_NOISY_CC); zephir_is_iterable(deleteTables, &_1, &_0, 0, 0, "phalcon/mvc/model/query.zep", 2403); for ( - ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS - ; zephir_hash_move_forward_ex(_1, &_0) + ; zend_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS + ; zend_hash_move_forward_ex(_1, &_0) ) { ZEPHIR_GET_HVALUE(table, _2); ZEPHIR_OBS_NVAR(qualifiedName); @@ -99827,8 +99479,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _executeSelect) { zephir_array_fetch_string(&models, intermediate, SL("models"), PH_NOISY, "phalcon/mvc/model/query.zep", 2536 TSRMLS_CC); zephir_is_iterable(models, &_1, &_0, 0, 0, "phalcon/mvc/model/query.zep", 2564); for ( - ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS - ; zephir_hash_move_forward_ex(_1, &_0) + ; zend_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS + ; zend_hash_move_forward_ex(_1, &_0) ) { ZEPHIR_GET_HVALUE(modelName, _2); ZEPHIR_OBS_NVAR(model); @@ -99868,8 +99520,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _executeSelect) { ZEPHIR_CPY_WRT(columns1, columns); zephir_is_iterable(columns, &_8, &_7, 0, 0, "phalcon/mvc/model/query.zep", 2591); for ( - ; zephir_hash_get_current_data_ex(_8, (void**) &_9, &_7) == SUCCESS - ; zephir_hash_move_forward_ex(_8, &_7) + ; zend_hash_get_current_data_ex(_8, (void**) &_9, &_7) == SUCCESS + ; zend_hash_move_forward_ex(_8, &_7) ) { ZEPHIR_GET_HVALUE(column, _9); if (Z_TYPE_P(column) != IS_ARRAY) { @@ -99912,8 +99564,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _executeSelect) { zephir_read_property_this(&metaData, this_ptr, SL("_metaData"), PH_NOISY_CC); zephir_is_iterable(columns, &_12, &_11, 0, 0, "phalcon/mvc/model/query.zep", 2690); for ( - ; zephir_hash_get_current_data_ex(_12, (void**) &_13, &_11) == SUCCESS - ; zephir_hash_move_forward_ex(_12, &_11) + ; zend_hash_get_current_data_ex(_12, (void**) &_13, &_11) == SUCCESS + ; zend_hash_move_forward_ex(_12, &_11) ) { ZEPHIR_GET_HMKEY(aliasCopy, _12, _11); ZEPHIR_GET_HVALUE(column, _13); @@ -99942,8 +99594,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _executeSelect) { } zephir_is_iterable(attributes, &_20$$24, &_19$$24, 0, 0, "phalcon/mvc/model/query.zep", 2646); for ( - ; zephir_hash_get_current_data_ex(_20$$24, (void**) &_21$$24, &_19$$24) == SUCCESS - ; zephir_hash_move_forward_ex(_20$$24, &_19$$24) + ; zend_hash_get_current_data_ex(_20$$24, (void**) &_21$$24, &_19$$24) == SUCCESS + ; zend_hash_move_forward_ex(_20$$24, &_19$$24) ) { ZEPHIR_GET_HVALUE(attribute, _21$$24); ZEPHIR_INIT_NVAR(_22$$27); @@ -99969,8 +99621,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _executeSelect) { } else { zephir_is_iterable(attributes, &_28$$29, &_27$$29, 0, 0, "phalcon/mvc/model/query.zep", 2664); for ( - ; zephir_hash_get_current_data_ex(_28$$29, (void**) &_29$$29, &_27$$29) == SUCCESS - ; zephir_hash_move_forward_ex(_28$$29, &_27$$29) + ; zend_hash_get_current_data_ex(_28$$29, (void**) &_29$$29, &_27$$29) == SUCCESS + ; zend_hash_move_forward_ex(_28$$29, &_27$$29) ) { ZEPHIR_GET_HVALUE(attribute, _29$$29); ZEPHIR_INIT_NVAR(_30$$30); @@ -100015,8 +99667,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _executeSelect) { array_init(processed); zephir_is_iterable(bindParams, &_33$$37, &_32$$37, 0, 0, "phalcon/mvc/model/query.zep", 2711); for ( - ; zephir_hash_get_current_data_ex(_33$$37, (void**) &_34$$37, &_32$$37) == SUCCESS - ; zephir_hash_move_forward_ex(_33$$37, &_32$$37) + ; zend_hash_get_current_data_ex(_33$$37, (void**) &_34$$37, &_32$$37) == SUCCESS + ; zend_hash_move_forward_ex(_33$$37, &_32$$37) ) { ZEPHIR_GET_HMKEY(wildcard, _33$$37, _32$$37); ZEPHIR_GET_HVALUE(value, _34$$37); @@ -100041,8 +99693,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _executeSelect) { array_init(processedTypes); zephir_is_iterable(bindTypes, &_37$$43, &_36$$43, 0, 0, "phalcon/mvc/model/query.zep", 2727); for ( - ; zephir_hash_get_current_data_ex(_37$$43, (void**) &_38$$43, &_36$$43) == SUCCESS - ; zephir_hash_move_forward_ex(_37$$43, &_36$$43) + ; zend_hash_get_current_data_ex(_37$$43, (void**) &_38$$43, &_36$$43) == SUCCESS + ; zend_hash_move_forward_ex(_37$$43, &_36$$43) ) { ZEPHIR_GET_HMKEY(typeWildcard, _37$$43, _36$$43); ZEPHIR_GET_HVALUE(value, _38$$43); @@ -100119,8 +99771,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _executeSelect) { zephir_check_call_status(); zephir_is_iterable(_43$$60, &_45$$60, &_44$$60, 0, 0, "phalcon/mvc/model/query.zep", 2813); for ( - ; zephir_hash_get_current_data_ex(_45$$60, (void**) &_46$$60, &_44$$60) == SUCCESS - ; zephir_hash_move_forward_ex(_45$$60, &_44$$60) + ; zend_hash_get_current_data_ex(_45$$60, (void**) &_46$$60, &_44$$60) == SUCCESS + ; zend_hash_move_forward_ex(_45$$60, &_44$$60) ) { ZEPHIR_GET_HVALUE(attribute, _46$$60); ZEPHIR_INIT_NVAR(_47$$61); @@ -100135,8 +99787,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _executeSelect) { array_init(simpleColumnMap); zephir_is_iterable(columnMap, &_50$$62, &_49$$62, 0, 0, "phalcon/mvc/model/query.zep", 2818); for ( - ; zephir_hash_get_current_data_ex(_50$$62, (void**) &_51$$62, &_49$$62) == SUCCESS - ; zephir_hash_move_forward_ex(_50$$62, &_49$$62) + ; zend_hash_get_current_data_ex(_50$$62, (void**) &_51$$62, &_49$$62) == SUCCESS + ; zend_hash_move_forward_ex(_50$$62, &_49$$62) ) { ZEPHIR_GET_HMKEY(column, _50$$62, _49$$62); ZEPHIR_GET_HVALUE(attribute, _51$$62); @@ -100288,8 +99940,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _executeInsert) { array_init(insertValues); zephir_is_iterable(values, &_3, &_2, 0, 0, "phalcon/mvc/model/query.zep", 2983); for ( - ; zephir_hash_get_current_data_ex(_3, (void**) &_4, &_2) == SUCCESS - ; zephir_hash_move_forward_ex(_3, &_2) + ; zend_hash_get_current_data_ex(_3, (void**) &_4, &_2) == SUCCESS + ; zend_hash_move_forward_ex(_3, &_2) ) { ZEPHIR_GET_HMKEY(number, _3, _2); ZEPHIR_GET_HVALUE(value, _4); @@ -100433,8 +100085,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query, _executeUpdate) { ZEPHIR_CPY_WRT(selectBindTypes, bindTypes); zephir_is_iterable(fields, &_3, &_2, 0, 0, "phalcon/mvc/model/query.zep", 3103); for ( - ; zephir_hash_get_current_data_ex(_3, (void**) &_4, &_2) == SUCCESS - ; zephir_hash_move_forward_ex(_3, &_2) + ; zend_hash_get_current_data_ex(_3, (void**) &_4, &_2) == SUCCESS + ; zend_hash_move_forward_ex(_3, &_2) ) { ZEPHIR_GET_HMKEY(number, _3, _2); ZEPHIR_GET_HVALUE(field, _4); @@ -101202,11 +100854,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Relation, __construct) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 4, 1, &type, &referencedModel_param, &fields, &referencedFields, &options); - if (unlikely(Z_TYPE_P(referencedModel_param) != IS_STRING && Z_TYPE_P(referencedModel_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(referencedModel_param) != IS_STRING && Z_TYPE_P(referencedModel_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'referencedModel' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(referencedModel_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(referencedModel_param) == IS_STRING)) { zephir_get_strval(referencedModel, referencedModel_param); } else { ZEPHIR_INIT_VAR(referencedModel); @@ -101234,11 +100886,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Relation, setIntermediateRelation) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &intermediateFields, &intermediateModel_param, &intermediateReferencedFields); - if (unlikely(Z_TYPE_P(intermediateModel_param) != IS_STRING && Z_TYPE_P(intermediateModel_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(intermediateModel_param) != IS_STRING && Z_TYPE_P(intermediateModel_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'intermediateModel' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(intermediateModel_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(intermediateModel_param) == IS_STRING)) { zephir_get_strval(intermediateModel, intermediateModel_param); } else { ZEPHIR_INIT_VAR(intermediateModel); @@ -101301,11 +100953,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Relation, getOption) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -101760,7 +101412,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Resultset, offsetGet) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &index_param); - if (unlikely(Z_TYPE_P(index_param) != IS_LONG)) { + if (UNEXPECTED(Z_TYPE_P(index_param) != IS_LONG)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'index' must be a int") TSRMLS_CC); RETURN_MM_NULL(); } @@ -102326,11 +101978,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Row, writeAttribute) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &attribute_param, &value); - if (unlikely(Z_TYPE_P(attribute_param) != IS_STRING && Z_TYPE_P(attribute_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(attribute_param) != IS_STRING && Z_TYPE_P(attribute_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'attribute' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(attribute_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(attribute_param) == IS_STRING)) { zephir_get_strval(attribute, attribute_param); } else { ZEPHIR_INIT_VAR(attribute); @@ -102793,11 +102445,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Validator, appendMessage) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &message_param, &field, &type); - if (unlikely(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'message' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(message_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(message_param) == IS_STRING)) { zephir_get_strval(message, message_param); } else { ZEPHIR_INIT_VAR(message); @@ -102856,11 +102508,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Validator, getOption) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &option_param, &defaultValue); - if (unlikely(Z_TYPE_P(option_param) != IS_STRING && Z_TYPE_P(option_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(option_param) != IS_STRING && Z_TYPE_P(option_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'option' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(option_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(option_param) == IS_STRING)) { zephir_get_strval(option, option_param); } else { ZEPHIR_INIT_VAR(option); @@ -102889,11 +102541,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Validator, isSetOption) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &option_param); - if (unlikely(Z_TYPE_P(option_param) != IS_STRING && Z_TYPE_P(option_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(option_param) != IS_STRING && Z_TYPE_P(option_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'option' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(option_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(option_param) == IS_STRING)) { zephir_get_strval(option, option_param); } else { ZEPHIR_INIT_VAR(option); @@ -102979,11 +102631,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Behavior_SoftDelete, notify) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &type_param, &model); - if (unlikely(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'type' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(type_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(type_param) == IS_STRING)) { zephir_get_strval(type, type_param); } else { ZEPHIR_INIT_VAR(type); @@ -103024,8 +102676,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Behavior_SoftDelete, notify) { zephir_check_call_status(); zephir_is_iterable(_3$$7, &_5$$7, &_4$$7, 0, 0, "phalcon/mvc/model/behavior/softdelete.zep", 89); for ( - ; zephir_hash_get_current_data_ex(_5$$7, (void**) &_6$$7, &_4$$7) == SUCCESS - ; zephir_hash_move_forward_ex(_5$$7, &_4$$7) + ; zend_hash_get_current_data_ex(_5$$7, (void**) &_6$$7, &_4$$7) == SUCCESS + ; zend_hash_move_forward_ex(_5$$7, &_4$$7) ) { ZEPHIR_GET_HVALUE(message, _6$$7); ZEPHIR_CALL_METHOD(NULL, model, "appendmessage", &_7, 0, message); @@ -103071,11 +102723,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Behavior_Timestampable, notify) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &type_param, &model); - if (unlikely(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'type' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(type_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(type_param) == IS_STRING)) { zephir_get_strval(type, type_param); } else { ZEPHIR_INIT_VAR(type); @@ -103121,8 +102773,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Behavior_Timestampable, notify) { if (Z_TYPE_P(field) == IS_ARRAY) { zephir_is_iterable(field, &_2$$12, &_1$$12, 0, 0, "phalcon/mvc/model/behavior/timestampable.zep", 94); for ( - ; zephir_hash_get_current_data_ex(_2$$12, (void**) &_3$$12, &_1$$12) == SUCCESS - ; zephir_hash_move_forward_ex(_2$$12, &_1$$12) + ; zend_hash_get_current_data_ex(_2$$12, (void**) &_3$$12, &_1$$12) == SUCCESS + ; zend_hash_move_forward_ex(_2$$12, &_1$$12) ) { ZEPHIR_GET_HVALUE(singleField, _3$$12); ZEPHIR_CALL_METHOD(NULL, model, "writeattribute", &_4, 0, singleField, timestamp); @@ -103213,11 +102865,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Apc, read) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &key_param); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { ZEPHIR_INIT_VAR(key); @@ -103246,11 +102898,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Apc, write) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &key_param, &data); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { ZEPHIR_INIT_VAR(key); @@ -103339,11 +102991,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Files, read) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &key_param); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { ZEPHIR_INIT_VAR(key); @@ -103377,11 +103029,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Files, write) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &key_param, &data); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { ZEPHIR_INIT_VAR(key); @@ -103516,11 +103168,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Libmemcached, read) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &key_param); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { ZEPHIR_INIT_VAR(key); @@ -103547,11 +103199,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Libmemcached, write) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &key_param, &data); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { ZEPHIR_INIT_VAR(key); @@ -103582,8 +103234,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Libmemcached, reset) { ZEPHIR_INIT_VAR(_0$$3); zephir_is_iterable(meta, &_2$$3, &_1$$3, 0, 0, "phalcon/mvc/model/metadata/libmemcached.zep", 132); for ( - ; zephir_hash_get_current_data_ex(_2$$3, (void**) &_3$$3, &_1$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_2$$3, &_1$$3) + ; zend_hash_get_current_data_ex(_2$$3, (void**) &_3$$3, &_1$$3) == SUCCESS + ; zend_hash_move_forward_ex(_2$$3, &_1$$3) ) { ZEPHIR_GET_HMKEY(key, _2$$3, _1$$3); ZEPHIR_GET_HVALUE(_0$$3, _3$$3); @@ -103716,11 +103368,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Memcache, read) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &key_param); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { ZEPHIR_INIT_VAR(key); @@ -103747,11 +103399,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Memcache, write) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &key_param, &data); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { ZEPHIR_INIT_VAR(key); @@ -103782,8 +103434,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Memcache, reset) { ZEPHIR_INIT_VAR(_0$$3); zephir_is_iterable(meta, &_2$$3, &_1$$3, 0, 0, "phalcon/mvc/model/metadata/memcache.zep", 131); for ( - ; zephir_hash_get_current_data_ex(_2$$3, (void**) &_3$$3, &_1$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_2$$3, &_1$$3) + ; zend_hash_get_current_data_ex(_2$$3, (void**) &_3$$3, &_1$$3) == SUCCESS + ; zend_hash_move_forward_ex(_2$$3, &_1$$3) ) { ZEPHIR_GET_HMKEY(key, _2$$3, _1$$3); ZEPHIR_GET_HVALUE(_0$$3, _3$$3); @@ -103864,11 +103516,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Memory, read) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &key_param); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { ZEPHIR_INIT_VAR(key); @@ -103888,11 +103540,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Memory, write) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &key_param, &data); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { ZEPHIR_INIT_VAR(key); @@ -104020,11 +103672,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Redis, read) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &key_param); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { ZEPHIR_INIT_VAR(key); @@ -104051,11 +103703,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Redis, write) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &key_param, &data); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { ZEPHIR_INIT_VAR(key); @@ -104086,8 +103738,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Redis, reset) { ZEPHIR_INIT_VAR(_0$$3); zephir_is_iterable(meta, &_2$$3, &_1$$3, 0, 0, "phalcon/mvc/model/metadata/redis.zep", 134); for ( - ; zephir_hash_get_current_data_ex(_2$$3, (void**) &_3$$3, &_1$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_2$$3, &_1$$3) + ; zend_hash_get_current_data_ex(_2$$3, (void**) &_3$$3, &_1$$3) == SUCCESS + ; zend_hash_move_forward_ex(_2$$3, &_1$$3) ) { ZEPHIR_GET_HMKEY(key, _2$$3, _1$$3); ZEPHIR_GET_HVALUE(_0$$3, _3$$3); @@ -104173,11 +103825,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Session, read) { zephir_get_global(&_SESSION, SS("_SESSION") TSRMLS_CC); zephir_fetch_params(1, 1, 0, &key_param); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { ZEPHIR_INIT_VAR(key); @@ -104205,11 +103857,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Session, write) { zephir_get_global(&_SESSION, SS("_SESSION") TSRMLS_CC); zephir_fetch_params(1, 2, 0, &key_param, &data); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { ZEPHIR_INIT_VAR(key); @@ -104303,11 +103955,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Xcache, read) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &key_param); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { ZEPHIR_INIT_VAR(key); @@ -104336,11 +103988,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Xcache, write) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &key_param, &data); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { ZEPHIR_INIT_VAR(key); @@ -104472,8 +104124,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Strategy_Annotations, getMetaData) array_init(emptyStringValues); zephir_is_iterable(propertiesAnnotations, &_6, &_5, 0, 0, "phalcon/mvc/model/metadata/strategy/annotations.zep", 184); for ( - ; zephir_hash_get_current_data_ex(_6, (void**) &_7, &_5) == SUCCESS - ; zephir_hash_move_forward_ex(_6, &_5) + ; zend_hash_get_current_data_ex(_6, (void**) &_7, &_5) == SUCCESS + ; zend_hash_move_forward_ex(_6, &_5) ) { ZEPHIR_GET_HMKEY(property, _6, _5); ZEPHIR_GET_HVALUE(propAnnotations, _7); @@ -104685,8 +104337,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Strategy_Annotations, getColumnMaps ZVAL_NULL(reversedColumnMap); zephir_is_iterable(propertiesAnnotations, &_6, &_5, 0, 0, "phalcon/mvc/model/metadata/strategy/annotations.zep", 262); for ( - ; zephir_hash_get_current_data_ex(_6, (void**) &_7, &_5) == SUCCESS - ; zephir_hash_move_forward_ex(_6, &_5) + ; zend_hash_get_current_data_ex(_6, (void**) &_7, &_5) == SUCCESS + ; zend_hash_move_forward_ex(_6, &_5) ) { ZEPHIR_GET_HMKEY(property, _6, _5); ZEPHIR_GET_HVALUE(propAnnotations, _7); @@ -104830,8 +104482,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Strategy_Introspection, getMetaData array_init(emptyStringValues); zephir_is_iterable(columns, &_8, &_7, 0, 0, "phalcon/mvc/model/metadata/strategy/introspection.zep", 165); for ( - ; zephir_hash_get_current_data_ex(_8, (void**) &_9, &_7) == SUCCESS - ; zephir_hash_move_forward_ex(_8, &_7) + ; zend_hash_get_current_data_ex(_8, (void**) &_9, &_7) == SUCCESS + ; zend_hash_move_forward_ex(_8, &_7) ) { ZEPHIR_GET_HVALUE(column, _9); ZEPHIR_CALL_METHOD(&fieldName, column, "getname", NULL, 0); @@ -104926,8 +104578,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_MetaData_Strategy_Introspection, getColumnMa ZEPHIR_CPY_WRT(orderedColumnMap, userColumnMap); zephir_is_iterable(userColumnMap, &_1$$3, &_0$$3, 0, 0, "phalcon/mvc/model/metadata/strategy/introspection.zep", 205); for ( - ; zephir_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_1$$3, &_0$$3) + ; zend_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS + ; zend_hash_move_forward_ex(_1$$3, &_0$$3) ) { ZEPHIR_GET_HMKEY(name, _1$$3, _0$$3); ZEPHIR_GET_HVALUE(userName, _2$$3); @@ -105032,8 +104684,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, __construct) { array_init(mergedTypes); zephir_is_iterable(conditions, &_1$$7, &_0$$7, 0, 0, "phalcon/mvc/model/query/builder.zep", 152); for ( - ; zephir_hash_get_current_data_ex(_1$$7, (void**) &_2$$7, &_0$$7) == SUCCESS - ; zephir_hash_move_forward_ex(_1$$7, &_0$$7) + ; zend_hash_get_current_data_ex(_1$$7, (void**) &_2$$7, &_0$$7) == SUCCESS + ; zend_hash_move_forward_ex(_1$$7, &_0$$7) ) { ZEPHIR_GET_HVALUE(singleConditionArray, _2$$7); if (Z_TYPE_P(singleConditionArray) == IS_ARRAY) { @@ -105285,11 +104937,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, join) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 3, &model_param, &conditions, &alias, &type); - if (unlikely(Z_TYPE_P(model_param) != IS_STRING && Z_TYPE_P(model_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(model_param) != IS_STRING && Z_TYPE_P(model_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'model' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(model_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(model_param) == IS_STRING)) { zephir_get_strval(model, model_param); } else { ZEPHIR_INIT_VAR(model); @@ -105326,11 +104978,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, innerJoin) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &model_param, &conditions, &alias); - if (unlikely(Z_TYPE_P(model_param) != IS_STRING && Z_TYPE_P(model_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(model_param) != IS_STRING && Z_TYPE_P(model_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'model' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(model_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(model_param) == IS_STRING)) { zephir_get_strval(model, model_param); } else { ZEPHIR_INIT_VAR(model); @@ -105366,11 +105018,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, leftJoin) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &model_param, &conditions, &alias); - if (unlikely(Z_TYPE_P(model_param) != IS_STRING && Z_TYPE_P(model_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(model_param) != IS_STRING && Z_TYPE_P(model_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'model' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(model_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(model_param) == IS_STRING)) { zephir_get_strval(model, model_param); } else { ZEPHIR_INIT_VAR(model); @@ -105406,11 +105058,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, rightJoin) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &model_param, &conditions, &alias); - if (unlikely(Z_TYPE_P(model_param) != IS_STRING && Z_TYPE_P(model_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(model_param) != IS_STRING && Z_TYPE_P(model_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'model' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(model_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(model_param) == IS_STRING)) { zephir_get_strval(model, model_param); } else { ZEPHIR_INIT_VAR(model); @@ -105494,11 +105146,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, andWhere) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &conditions_param, &bindParams, &bindTypes); - if (unlikely(Z_TYPE_P(conditions_param) != IS_STRING && Z_TYPE_P(conditions_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(conditions_param) != IS_STRING && Z_TYPE_P(conditions_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'conditions' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(conditions_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(conditions_param) == IS_STRING)) { zephir_get_strval(conditions, conditions_param); } else { ZEPHIR_INIT_VAR(conditions); @@ -105534,11 +105186,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, orWhere) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &conditions_param, &bindParams, &bindTypes); - if (unlikely(Z_TYPE_P(conditions_param) != IS_STRING && Z_TYPE_P(conditions_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(conditions_param) != IS_STRING && Z_TYPE_P(conditions_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'conditions' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(conditions_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(conditions_param) == IS_STRING)) { zephir_get_strval(conditions, conditions_param); } else { ZEPHIR_INIT_VAR(conditions); @@ -105576,11 +105228,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, betweenWhere) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 1, &expr_param, &minimum, &maximum, &operator_param); - if (unlikely(Z_TYPE_P(expr_param) != IS_STRING && Z_TYPE_P(expr_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(expr_param) != IS_STRING && Z_TYPE_P(expr_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'expr' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(expr_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(expr_param) == IS_STRING)) { zephir_get_strval(expr, expr_param); } else { ZEPHIR_INIT_VAR(expr); @@ -105590,11 +105242,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, betweenWhere) { ZEPHIR_INIT_VAR(operator); ZVAL_STRING(operator, "and", 1); } else { - if (unlikely(Z_TYPE_P(operator_param) != IS_STRING && Z_TYPE_P(operator_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(operator_param) != IS_STRING && Z_TYPE_P(operator_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'operator' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(operator_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(operator_param) == IS_STRING)) { zephir_get_strval(operator, operator_param); } else { ZEPHIR_INIT_VAR(operator); @@ -105657,11 +105309,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, notBetweenWhere) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 1, &expr_param, &minimum, &maximum, &operator_param); - if (unlikely(Z_TYPE_P(expr_param) != IS_STRING && Z_TYPE_P(expr_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(expr_param) != IS_STRING && Z_TYPE_P(expr_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'expr' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(expr_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(expr_param) == IS_STRING)) { zephir_get_strval(expr, expr_param); } else { ZEPHIR_INIT_VAR(expr); @@ -105671,11 +105323,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, notBetweenWhere) { ZEPHIR_INIT_VAR(operator); ZVAL_STRING(operator, "and", 1); } else { - if (unlikely(Z_TYPE_P(operator_param) != IS_STRING && Z_TYPE_P(operator_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(operator_param) != IS_STRING && Z_TYPE_P(operator_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'operator' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(operator_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(operator_param) == IS_STRING)) { zephir_get_strval(operator, operator_param); } else { ZEPHIR_INIT_VAR(operator); @@ -105740,11 +105392,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, inWhere) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 1, &expr_param, &values_param, &operator_param); - if (unlikely(Z_TYPE_P(expr_param) != IS_STRING && Z_TYPE_P(expr_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(expr_param) != IS_STRING && Z_TYPE_P(expr_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'expr' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(expr_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(expr_param) == IS_STRING)) { zephir_get_strval(expr, expr_param); } else { ZEPHIR_INIT_VAR(expr); @@ -105755,11 +105407,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, inWhere) { ZEPHIR_INIT_VAR(operator); ZVAL_STRING(operator, "and", 1); } else { - if (unlikely(Z_TYPE_P(operator_param) != IS_STRING && Z_TYPE_P(operator_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(operator_param) != IS_STRING && Z_TYPE_P(operator_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'operator' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(operator_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(operator_param) == IS_STRING)) { zephir_get_strval(operator, operator_param); } else { ZEPHIR_INIT_VAR(operator); @@ -105804,8 +105456,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, inWhere) { array_init(bindKeys); zephir_is_iterable(values, &_8, &_7, 0, 0, "phalcon/mvc/model/query/builder.zep", 804); for ( - ; zephir_hash_get_current_data_ex(_8, (void**) &_9, &_7) == SUCCESS - ; zephir_hash_move_forward_ex(_8, &_7) + ; zend_hash_get_current_data_ex(_8, (void**) &_9, &_7) == SUCCESS + ; zend_hash_move_forward_ex(_8, &_7) ) { ZEPHIR_GET_HVALUE(value, _9); ZEPHIR_SINIT_NVAR(_10$$5); @@ -105845,11 +105497,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, notInWhere) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 1, &expr_param, &values_param, &operator_param); - if (unlikely(Z_TYPE_P(expr_param) != IS_STRING && Z_TYPE_P(expr_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(expr_param) != IS_STRING && Z_TYPE_P(expr_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'expr' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(expr_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(expr_param) == IS_STRING)) { zephir_get_strval(expr, expr_param); } else { ZEPHIR_INIT_VAR(expr); @@ -105860,11 +105512,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, notInWhere) { ZEPHIR_INIT_VAR(operator); ZVAL_STRING(operator, "and", 1); } else { - if (unlikely(Z_TYPE_P(operator_param) != IS_STRING && Z_TYPE_P(operator_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(operator_param) != IS_STRING && Z_TYPE_P(operator_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'operator' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(operator_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(operator_param) == IS_STRING)) { zephir_get_strval(operator, operator_param); } else { ZEPHIR_INIT_VAR(operator); @@ -105909,8 +105561,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, notInWhere) { array_init(bindKeys); zephir_is_iterable(values, &_8, &_7, 0, 0, "phalcon/mvc/model/query/builder.zep", 853); for ( - ; zephir_hash_get_current_data_ex(_8, (void**) &_9, &_7) == SUCCESS - ; zephir_hash_move_forward_ex(_8, &_7) + ; zend_hash_get_current_data_ex(_8, (void**) &_9, &_7) == SUCCESS + ; zend_hash_move_forward_ex(_8, &_7) ) { ZEPHIR_GET_HVALUE(value, _9); ZEPHIR_SINIT_NVAR(_10$$5); @@ -105974,11 +105626,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, having) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &having_param); - if (unlikely(Z_TYPE_P(having_param) != IS_STRING && Z_TYPE_P(having_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(having_param) != IS_STRING && Z_TYPE_P(having_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'having' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(having_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(having_param) == IS_STRING)) { zephir_get_strval(having, having_param); } else { ZEPHIR_INIT_VAR(having); @@ -106038,7 +105690,7 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, limit) { ZEPHIR_CALL_FUNCTION(&_1, "abs", &_2, 198, &_0); zephir_check_call_status(); limit = zephir_get_numberval(_1); - if (unlikely(limit == 0)) { + if (UNEXPECTED(limit == 0)) { RETURN_THIS(); } ZEPHIR_INIT_ZVAL_NREF(_3); @@ -106238,8 +105890,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, getPhql) { array_init(selectedColumns); zephir_is_iterable(columns, &_12$$25, &_11$$25, 0, 0, "phalcon/mvc/model/query/builder.zep", 1141); for ( - ; zephir_hash_get_current_data_ex(_12$$25, (void**) &_13$$25, &_11$$25) == SUCCESS - ; zephir_hash_move_forward_ex(_12$$25, &_11$$25) + ; zend_hash_get_current_data_ex(_12$$25, (void**) &_13$$25, &_11$$25) == SUCCESS + ; zend_hash_move_forward_ex(_12$$25, &_11$$25) ) { ZEPHIR_GET_HMKEY(columnAlias, _12$$25, _11$$25); ZEPHIR_GET_HVALUE(column, _13$$25); @@ -106265,8 +105917,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, getPhql) { array_init(selectedColumns); zephir_is_iterable(models, &_18$$31, &_17$$31, 0, 0, "phalcon/mvc/model/query/builder.zep", 1164); for ( - ; zephir_hash_get_current_data_ex(_18$$31, (void**) &_19$$31, &_17$$31) == SUCCESS - ; zephir_hash_move_forward_ex(_18$$31, &_17$$31) + ; zend_hash_get_current_data_ex(_18$$31, (void**) &_19$$31, &_17$$31) == SUCCESS + ; zend_hash_move_forward_ex(_18$$31, &_17$$31) ) { ZEPHIR_GET_HMKEY(modelColumnAlias, _18$$31, _17$$31); ZEPHIR_GET_HVALUE(model, _19$$31); @@ -106298,8 +105950,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, getPhql) { array_init(selectedModels); zephir_is_iterable(models, &_26$$36, &_25$$36, 0, 0, "phalcon/mvc/model/query/builder.zep", 1187); for ( - ; zephir_hash_get_current_data_ex(_26$$36, (void**) &_27$$36, &_25$$36) == SUCCESS - ; zephir_hash_move_forward_ex(_26$$36, &_25$$36) + ; zend_hash_get_current_data_ex(_26$$36, (void**) &_27$$36, &_25$$36) == SUCCESS + ; zend_hash_move_forward_ex(_26$$36, &_25$$36) ) { ZEPHIR_GET_HMKEY(modelAlias, _26$$36, _25$$36); ZEPHIR_GET_HVALUE(model, _27$$36); @@ -106333,8 +105985,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, getPhql) { if (Z_TYPE_P(joins) == IS_ARRAY) { zephir_is_iterable(joins, &_35$$41, &_34$$41, 0, 0, "phalcon/mvc/model/query/builder.zep", 1244); for ( - ; zephir_hash_get_current_data_ex(_35$$41, (void**) &_36$$41, &_34$$41) == SUCCESS - ; zephir_hash_move_forward_ex(_35$$41, &_34$$41) + ; zend_hash_get_current_data_ex(_35$$41, (void**) &_36$$41, &_34$$41) == SUCCESS + ; zend_hash_move_forward_ex(_35$$41, &_34$$41) ) { ZEPHIR_GET_HVALUE(join, _36$$41); ZEPHIR_OBS_NVAR(joinModel); @@ -106400,8 +106052,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, getPhql) { array_init(groupItems); zephir_is_iterable(group, &_50$$49, &_49$$49, 0, 0, "phalcon/mvc/model/query/builder.zep", 1271); for ( - ; zephir_hash_get_current_data_ex(_50$$49, (void**) &_51$$49, &_49$$49) == SUCCESS - ; zephir_hash_move_forward_ex(_50$$49, &_49$$49) + ; zend_hash_get_current_data_ex(_50$$49, (void**) &_51$$49, &_49$$49) == SUCCESS + ; zend_hash_move_forward_ex(_50$$49, &_49$$49) ) { ZEPHIR_GET_HVALUE(groupItem, _51$$49); ZEPHIR_CALL_METHOD(&_52$$52, this_ptr, "autoescape", &_7, 369, groupItem); @@ -106431,8 +106083,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, getPhql) { array_init(orderItems); zephir_is_iterable(order, &_57$$56, &_56$$56, 0, 0, "phalcon/mvc/model/query/builder.zep", 1291); for ( - ; zephir_hash_get_current_data_ex(_57$$56, (void**) &_58$$56, &_56$$56) == SUCCESS - ; zephir_hash_move_forward_ex(_57$$56, &_56$$56) + ; zend_hash_get_current_data_ex(_57$$56, (void**) &_58$$56, &_56$$56) == SUCCESS + ; zend_hash_move_forward_ex(_57$$56, &_56$$56) ) { ZEPHIR_GET_HVALUE(orderItem, _58$$56); ZEPHIR_CALL_METHOD(&_59$$57, this_ptr, "autoescape", &_7, 369, orderItem); @@ -106701,11 +106353,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Query_Lang, parsePHQL) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &phql_param); - if (unlikely(Z_TYPE_P(phql_param) != IS_STRING && Z_TYPE_P(phql_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(phql_param) != IS_STRING && Z_TYPE_P(phql_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'phql' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(phql_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(phql_param) == IS_STRING)) { zephir_get_strval(phql, phql_param); } else { ZEPHIR_INIT_VAR(phql); @@ -118653,8 +118305,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Resultset_Complex, current) { _1 = zephir_fetch_nproperty_this(this_ptr, SL("_columnTypes"), PH_NOISY_CC); zephir_is_iterable(_1, &_3, &_2, 0, 0, "phalcon/mvc/model/resultset/complex.zep", 246); for ( - ; zephir_hash_get_current_data_ex(_3, (void**) &_4, &_2) == SUCCESS - ; zephir_hash_move_forward_ex(_3, &_2) + ; zend_hash_get_current_data_ex(_3, (void**) &_4, &_2) == SUCCESS + ; zend_hash_move_forward_ex(_3, &_2) ) { ZEPHIR_GET_HMKEY(alias, _3, _2); ZEPHIR_GET_HVALUE(column, _4); @@ -118675,8 +118327,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Resultset_Complex, current) { array_init(rowModel); zephir_is_iterable(attributes, &_6$$11, &_5$$11, 0, 0, "phalcon/mvc/model/resultset/complex.zep", 162); for ( - ; zephir_hash_get_current_data_ex(_6$$11, (void**) &_7$$11, &_5$$11) == SUCCESS - ; zephir_hash_move_forward_ex(_6$$11, &_5$$11) + ; zend_hash_get_current_data_ex(_6$$11, (void**) &_7$$11, &_5$$11) == SUCCESS + ; zend_hash_move_forward_ex(_6$$11, &_5$$11) ) { ZEPHIR_GET_HVALUE(attribute, _7$$11); ZEPHIR_OBS_NVAR(columnValue); @@ -118827,11 +118479,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Resultset_Complex, unserialize) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &data_param); - if (unlikely(Z_TYPE_P(data_param) != IS_STRING && Z_TYPE_P(data_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(data_param) != IS_STRING && Z_TYPE_P(data_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'data' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(data_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(data_param) == IS_STRING)) { zephir_get_strval(data, data_param); } else { ZEPHIR_INIT_VAR(data); @@ -119029,16 +118681,16 @@ static PHP_METHOD(Phalcon_Mvc_Model_Resultset_Simple, toArray) { if (Z_TYPE_P(records) == IS_ARRAY) { zephir_is_iterable(records, &_2$$7, &_1$$7, 0, 0, "phalcon/mvc/model/resultset/simple.zep", 217); for ( - ; zephir_hash_get_current_data_ex(_2$$7, (void**) &_3$$7, &_1$$7) == SUCCESS - ; zephir_hash_move_forward_ex(_2$$7, &_1$$7) + ; zend_hash_get_current_data_ex(_2$$7, (void**) &_3$$7, &_1$$7) == SUCCESS + ; zend_hash_move_forward_ex(_2$$7, &_1$$7) ) { ZEPHIR_GET_HVALUE(record, _3$$7); ZEPHIR_INIT_NVAR(renamed); array_init(renamed); zephir_is_iterable(record, &_5$$8, &_4$$8, 0, 0, "phalcon/mvc/model/resultset/simple.zep", 215); for ( - ; zephir_hash_get_current_data_ex(_5$$8, (void**) &_6$$8, &_4$$8) == SUCCESS - ; zephir_hash_move_forward_ex(_5$$8, &_4$$8) + ; zend_hash_get_current_data_ex(_5$$8, (void**) &_6$$8, &_4$$8) == SUCCESS + ; zend_hash_move_forward_ex(_5$$8, &_4$$8) ) { ZEPHIR_GET_HMKEY(key, _5$$8, _4$$8); ZEPHIR_GET_HVALUE(value, _6$$8); @@ -119124,11 +118776,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Resultset_Simple, unserialize) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &data_param); - if (unlikely(Z_TYPE_P(data_param) != IS_STRING && Z_TYPE_P(data_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(data_param) != IS_STRING && Z_TYPE_P(data_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'data' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(data_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(data_param) == IS_STRING)) { zephir_get_strval(data, data_param); } else { ZEPHIR_INIT_VAR(data); @@ -119210,11 +118862,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Transaction_Failed, __construct) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &message_param, &record); - if (unlikely(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'message' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(message_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(message_param) == IS_STRING)) { zephir_get_strval(message, message_param); } else { ZEPHIR_INIT_VAR(message); @@ -119349,11 +119001,11 @@ static PHP_METHOD(Phalcon_Mvc_Model_Transaction_Manager, setDbService) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &service_param); - if (unlikely(Z_TYPE_P(service_param) != IS_STRING && Z_TYPE_P(service_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(service_param) != IS_STRING && Z_TYPE_P(service_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'service' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(service_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(service_param) == IS_STRING)) { zephir_get_strval(service, service_param); } else { ZEPHIR_INIT_VAR(service); @@ -119490,8 +119142,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Transaction_Manager, getOrCreateTransaction) if (Z_TYPE_P(transactions) == IS_ARRAY) { zephir_is_iterable(transactions, &_2$$5, &_1$$5, 0, 1, "phalcon/mvc/model/transaction/manager.zep", 201); for ( - ; zephir_hash_get_current_data_ex(_2$$5, (void**) &_3$$5, &_1$$5) == SUCCESS - ; zephir_hash_move_backwards_ex(_2$$5, &_1$$5) + ; zend_hash_get_current_data_ex(_2$$5, (void**) &_3$$5, &_1$$5) == SUCCESS + ; zend_hash_move_backwards_ex(_2$$5, &_1$$5) ) { ZEPHIR_GET_HVALUE(transaction, _3$$5); if (Z_TYPE_P(transaction) == IS_OBJECT) { @@ -119549,8 +119201,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Transaction_Manager, commit) { if (Z_TYPE_P(transactions) == IS_ARRAY) { zephir_is_iterable(transactions, &_1$$3, &_0$$3, 0, 0, "phalcon/mvc/model/transaction/manager.zep", 234); for ( - ; zephir_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_1$$3, &_0$$3) + ; zend_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS + ; zend_hash_move_forward_ex(_1$$3, &_0$$3) ) { ZEPHIR_GET_HVALUE(transaction, _2$$3); ZEPHIR_CALL_METHOD(&connection, transaction, "getconnection", NULL, 0); @@ -119588,8 +119240,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Transaction_Manager, rollback) { if (Z_TYPE_P(transactions) == IS_ARRAY) { zephir_is_iterable(transactions, &_1$$3, &_0$$3, 0, 0, "phalcon/mvc/model/transaction/manager.zep", 259); for ( - ; zephir_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_1$$3, &_0$$3) + ; zend_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS + ; zend_hash_move_forward_ex(_1$$3, &_0$$3) ) { ZEPHIR_GET_HVALUE(transaction, _2$$3); ZEPHIR_CALL_METHOD(&connection, transaction, "getconnection", NULL, 0); @@ -119662,8 +119314,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Transaction_Manager, _collectTransaction) { array_init(newTransactions); zephir_is_iterable(transactions, &_1$$3, &_0$$3, 0, 0, "phalcon/mvc/model/transaction/manager.zep", 296); for ( - ; zephir_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_1$$3, &_0$$3) + ; zend_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS + ; zend_hash_move_forward_ex(_1$$3, &_0$$3) ) { ZEPHIR_GET_HVALUE(managedTransaction, _2$$3); if (!ZEPHIR_IS_EQUAL(managedTransaction, transaction)) { @@ -119692,8 +119344,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Transaction_Manager, collectTransactions) { ZEPHIR_INIT_VAR(_0$$3); zephir_is_iterable(transactions, &_2$$3, &_1$$3, 0, 0, "phalcon/mvc/model/transaction/manager.zep", 312); for ( - ; zephir_hash_get_current_data_ex(_2$$3, (void**) &_3$$3, &_1$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_2$$3, &_1$$3) + ; zend_hash_get_current_data_ex(_2$$3, (void**) &_3$$3, &_1$$3) == SUCCESS + ; zend_hash_move_forward_ex(_2$$3, &_1$$3) ) { ZEPHIR_GET_HVALUE(_0$$3, _3$$3); RETURN_ON_FAILURE(zephir_property_decr(this_ptr, SL("_number") TSRMLS_CC)); @@ -120635,8 +120287,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Validator_Uniqueness, validate) { if (Z_TYPE_P(field) == IS_ARRAY) { zephir_is_iterable(field, &_2$$5, &_1$$5, 0, 0, "phalcon/mvc/model/validator/uniqueness.zep", 130); for ( - ; zephir_hash_get_current_data_ex(_2$$5, (void**) &_3$$5, &_1$$5) == SUCCESS - ; zephir_hash_move_forward_ex(_2$$5, &_1$$5) + ; zend_hash_get_current_data_ex(_2$$5, (void**) &_3$$5, &_1$$5) == SUCCESS + ; zend_hash_move_forward_ex(_2$$5, &_1$$5) ) { ZEPHIR_GET_HVALUE(composeField, _3$$5); if (Z_TYPE_P(columnMap) == IS_ARRAY) { @@ -120730,8 +120382,8 @@ static PHP_METHOD(Phalcon_Mvc_Model_Validator_Uniqueness, validate) { zephir_check_call_status(); zephir_is_iterable(_20$$16, &_22$$16, &_21$$16, 0, 0, "phalcon/mvc/model/validator/uniqueness.zep", 200); for ( - ; zephir_hash_get_current_data_ex(_22$$16, (void**) &_23$$16, &_21$$16) == SUCCESS - ; zephir_hash_move_forward_ex(_22$$16, &_21$$16) + ; zend_hash_get_current_data_ex(_22$$16, (void**) &_23$$16, &_21$$16) == SUCCESS + ; zend_hash_move_forward_ex(_22$$16, &_21$$16) ) { ZEPHIR_GET_HVALUE(primaryField, _23$$16); ZEPHIR_OBS_NVAR(bindType); @@ -120943,11 +120595,11 @@ static PHP_METHOD(Phalcon_Mvc_Router_Annotations, addResource) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &handler_param, &prefix_param); - if (unlikely(Z_TYPE_P(handler_param) != IS_STRING && Z_TYPE_P(handler_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(handler_param) != IS_STRING && Z_TYPE_P(handler_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'handler' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(handler_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(handler_param) == IS_STRING)) { zephir_get_strval(handler, handler_param); } else { ZEPHIR_INIT_VAR(handler); @@ -120957,11 +120609,11 @@ static PHP_METHOD(Phalcon_Mvc_Router_Annotations, addResource) { ZEPHIR_INIT_VAR(prefix); ZVAL_EMPTY_STRING(prefix); } else { - if (unlikely(Z_TYPE_P(prefix_param) != IS_STRING && Z_TYPE_P(prefix_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(prefix_param) != IS_STRING && Z_TYPE_P(prefix_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'prefix' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(prefix_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(prefix_param) == IS_STRING)) { zephir_get_strval(prefix, prefix_param); } else { ZEPHIR_INIT_VAR(prefix); @@ -120988,21 +120640,21 @@ static PHP_METHOD(Phalcon_Mvc_Router_Annotations, addModuleResource) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 1, &module_param, &handler_param, &prefix_param); - if (unlikely(Z_TYPE_P(module_param) != IS_STRING && Z_TYPE_P(module_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(module_param) != IS_STRING && Z_TYPE_P(module_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'module' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(module_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(module_param) == IS_STRING)) { zephir_get_strval(module, module_param); } else { ZEPHIR_INIT_VAR(module); ZVAL_EMPTY_STRING(module); } - if (unlikely(Z_TYPE_P(handler_param) != IS_STRING && Z_TYPE_P(handler_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(handler_param) != IS_STRING && Z_TYPE_P(handler_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'handler' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(handler_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(handler_param) == IS_STRING)) { zephir_get_strval(handler, handler_param); } else { ZEPHIR_INIT_VAR(handler); @@ -121012,11 +120664,11 @@ static PHP_METHOD(Phalcon_Mvc_Router_Annotations, addModuleResource) { ZEPHIR_INIT_VAR(prefix); ZVAL_EMPTY_STRING(prefix); } else { - if (unlikely(Z_TYPE_P(prefix_param) != IS_STRING && Z_TYPE_P(prefix_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(prefix_param) != IS_STRING && Z_TYPE_P(prefix_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'prefix' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(prefix_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(prefix_param) == IS_STRING)) { zephir_get_strval(prefix, prefix_param); } else { ZEPHIR_INIT_VAR(prefix); @@ -121052,11 +120704,11 @@ static PHP_METHOD(Phalcon_Mvc_Router_Annotations, handle) { ZEPHIR_INIT_VAR(uri); ZVAL_EMPTY_STRING(uri); } else { - if (unlikely(Z_TYPE_P(uri_param) != IS_STRING && Z_TYPE_P(uri_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(uri_param) != IS_STRING && Z_TYPE_P(uri_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'uri' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(uri_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(uri_param) == IS_STRING)) { zephir_get_strval(uri, uri_param); } else { ZEPHIR_INIT_VAR(uri); @@ -121088,8 +120740,8 @@ static PHP_METHOD(Phalcon_Mvc_Router_Annotations, handle) { zephir_read_property_this(&controllerSuffix, this_ptr, SL("_controllerSuffix"), PH_NOISY_CC); zephir_is_iterable(handlers, &_3, &_2, 0, 0, "phalcon/mvc/router/annotations.zep", 205); for ( - ; zephir_hash_get_current_data_ex(_3, (void**) &_4, &_2) == SUCCESS - ; zephir_hash_move_forward_ex(_3, &_2) + ; zend_hash_get_current_data_ex(_3, (void**) &_4, &_2) == SUCCESS + ; zend_hash_move_forward_ex(_3, &_2) ) { ZEPHIR_GET_HVALUE(scope, _4); if (Z_TYPE_P(scope) != IS_ARRAY) { @@ -121139,8 +120791,8 @@ static PHP_METHOD(Phalcon_Mvc_Router_Annotations, handle) { if (Z_TYPE_P(annotations) == IS_ARRAY) { zephir_is_iterable(annotations, &_9$$14, &_8$$14, 0, 0, "phalcon/mvc/router/annotations.zep", 182); for ( - ; zephir_hash_get_current_data_ex(_9$$14, (void**) &_10$$14, &_8$$14) == SUCCESS - ; zephir_hash_move_forward_ex(_9$$14, &_8$$14) + ; zend_hash_get_current_data_ex(_9$$14, (void**) &_10$$14, &_8$$14) == SUCCESS + ; zend_hash_move_forward_ex(_9$$14, &_8$$14) ) { ZEPHIR_GET_HVALUE(annotation, _10$$14); ZEPHIR_CALL_METHOD(NULL, this_ptr, "processcontrollerannotation", &_11, 0, controllerName, annotation); @@ -121155,8 +120807,8 @@ static PHP_METHOD(Phalcon_Mvc_Router_Annotations, handle) { zephir_uncamelize(lowerControllerName, controllerName, NULL ); zephir_is_iterable(methodAnnotations, &_13$$16, &_12$$16, 0, 0, "phalcon/mvc/router/annotations.zep", 199); for ( - ; zephir_hash_get_current_data_ex(_13$$16, (void**) &_14$$16, &_12$$16) == SUCCESS - ; zephir_hash_move_forward_ex(_13$$16, &_12$$16) + ; zend_hash_get_current_data_ex(_13$$16, (void**) &_14$$16, &_12$$16) == SUCCESS + ; zend_hash_move_forward_ex(_13$$16, &_12$$16) ) { ZEPHIR_GET_HMKEY(method, _13$$16, _12$$16); ZEPHIR_GET_HVALUE(collection, _14$$16); @@ -121165,8 +120817,8 @@ static PHP_METHOD(Phalcon_Mvc_Router_Annotations, handle) { zephir_check_call_status(); zephir_is_iterable(_15$$18, &_17$$18, &_16$$18, 0, 0, "phalcon/mvc/router/annotations.zep", 197); for ( - ; zephir_hash_get_current_data_ex(_17$$18, (void**) &_18$$18, &_16$$18) == SUCCESS - ; zephir_hash_move_forward_ex(_17$$18, &_16$$18) + ; zend_hash_get_current_data_ex(_17$$18, (void**) &_18$$18, &_16$$18) == SUCCESS + ; zend_hash_move_forward_ex(_17$$18, &_16$$18) ) { ZEPHIR_GET_HVALUE(annotation, _18$$18); ZEPHIR_CALL_METHOD(NULL, this_ptr, "processactionannotation", &_19, 0, moduleName, namespaceName, lowerControllerName, method, annotation); @@ -121191,11 +120843,11 @@ static PHP_METHOD(Phalcon_Mvc_Router_Annotations, processControllerAnnotation) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &handler_param, &annotation); - if (unlikely(Z_TYPE_P(handler_param) != IS_STRING && Z_TYPE_P(handler_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(handler_param) != IS_STRING && Z_TYPE_P(handler_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'handler' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(handler_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(handler_param) == IS_STRING)) { zephir_get_strval(handler, handler_param); } else { ZEPHIR_INIT_VAR(handler); @@ -121229,41 +120881,41 @@ static PHP_METHOD(Phalcon_Mvc_Router_Annotations, processActionAnnotation) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 5, 0, &module_param, &namespaceName_param, &controller_param, &action_param, &annotation); - if (unlikely(Z_TYPE_P(module_param) != IS_STRING && Z_TYPE_P(module_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(module_param) != IS_STRING && Z_TYPE_P(module_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'module' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(module_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(module_param) == IS_STRING)) { zephir_get_strval(module, module_param); } else { ZEPHIR_INIT_VAR(module); ZVAL_EMPTY_STRING(module); } - if (unlikely(Z_TYPE_P(namespaceName_param) != IS_STRING && Z_TYPE_P(namespaceName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(namespaceName_param) != IS_STRING && Z_TYPE_P(namespaceName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'namespaceName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(namespaceName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(namespaceName_param) == IS_STRING)) { zephir_get_strval(namespaceName, namespaceName_param); } else { ZEPHIR_INIT_VAR(namespaceName); ZVAL_EMPTY_STRING(namespaceName); } - if (unlikely(Z_TYPE_P(controller_param) != IS_STRING && Z_TYPE_P(controller_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(controller_param) != IS_STRING && Z_TYPE_P(controller_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'controller' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(controller_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(controller_param) == IS_STRING)) { zephir_get_strval(controller, controller_param); } else { ZEPHIR_INIT_VAR(controller); ZVAL_EMPTY_STRING(controller); } - if (unlikely(Z_TYPE_P(action_param) != IS_STRING && Z_TYPE_P(action_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(action_param) != IS_STRING && Z_TYPE_P(action_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'action' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(action_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(action_param) == IS_STRING)) { zephir_get_strval(action, action_param); } else { ZEPHIR_INIT_VAR(action); @@ -121387,8 +121039,8 @@ static PHP_METHOD(Phalcon_Mvc_Router_Annotations, processActionAnnotation) { if (Z_TYPE_P(converts) == IS_ARRAY) { zephir_is_iterable(converts, &_7$$22, &_6$$22, 0, 0, "phalcon/mvc/router/annotations.zep", 339); for ( - ; zephir_hash_get_current_data_ex(_7$$22, (void**) &_8$$22, &_6$$22) == SUCCESS - ; zephir_hash_move_forward_ex(_7$$22, &_6$$22) + ; zend_hash_get_current_data_ex(_7$$22, (void**) &_8$$22, &_6$$22) == SUCCESS + ; zend_hash_move_forward_ex(_7$$22, &_6$$22) ) { ZEPHIR_GET_HMKEY(param, _7$$22, _6$$22); ZEPHIR_GET_HVALUE(convert, _8$$22); @@ -121404,8 +121056,8 @@ static PHP_METHOD(Phalcon_Mvc_Router_Annotations, processActionAnnotation) { if (Z_TYPE_P(converts) == IS_ARRAY) { zephir_is_iterable(converts, &_11$$24, &_10$$24, 0, 0, "phalcon/mvc/router/annotations.zep", 349); for ( - ; zephir_hash_get_current_data_ex(_11$$24, (void**) &_12$$24, &_10$$24) == SUCCESS - ; zephir_hash_move_forward_ex(_11$$24, &_10$$24) + ; zend_hash_get_current_data_ex(_11$$24, (void**) &_12$$24, &_10$$24) == SUCCESS + ; zend_hash_move_forward_ex(_11$$24, &_10$$24) ) { ZEPHIR_GET_HMKEY(conversorParam, _11$$24, _10$$24); ZEPHIR_GET_HVALUE(convert, _12$$24); @@ -121449,11 +121101,11 @@ static PHP_METHOD(Phalcon_Mvc_Router_Annotations, setControllerSuffix) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &controllerSuffix_param); - if (unlikely(Z_TYPE_P(controllerSuffix_param) != IS_STRING && Z_TYPE_P(controllerSuffix_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(controllerSuffix_param) != IS_STRING && Z_TYPE_P(controllerSuffix_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'controllerSuffix' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(controllerSuffix_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(controllerSuffix_param) == IS_STRING)) { zephir_get_strval(controllerSuffix, controllerSuffix_param); } else { ZEPHIR_INIT_VAR(controllerSuffix); @@ -121474,11 +121126,11 @@ static PHP_METHOD(Phalcon_Mvc_Router_Annotations, setActionSuffix) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &actionSuffix_param); - if (unlikely(Z_TYPE_P(actionSuffix_param) != IS_STRING && Z_TYPE_P(actionSuffix_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(actionSuffix_param) != IS_STRING && Z_TYPE_P(actionSuffix_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'actionSuffix' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(actionSuffix_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(actionSuffix_param) == IS_STRING)) { zephir_get_strval(actionSuffix, actionSuffix_param); } else { ZEPHIR_INIT_VAR(actionSuffix); @@ -121715,11 +121367,11 @@ static PHP_METHOD(Phalcon_Mvc_Router_Group, add) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &pattern_param, &paths, &httpMethods); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(pattern, pattern_param); } else { ZEPHIR_INIT_VAR(pattern); @@ -121748,11 +121400,11 @@ static PHP_METHOD(Phalcon_Mvc_Router_Group, addGet) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &pattern_param, &paths); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(pattern, pattern_param); } else { ZEPHIR_INIT_VAR(pattern); @@ -121781,11 +121433,11 @@ static PHP_METHOD(Phalcon_Mvc_Router_Group, addPost) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &pattern_param, &paths); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(pattern, pattern_param); } else { ZEPHIR_INIT_VAR(pattern); @@ -121814,11 +121466,11 @@ static PHP_METHOD(Phalcon_Mvc_Router_Group, addPut) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &pattern_param, &paths); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(pattern, pattern_param); } else { ZEPHIR_INIT_VAR(pattern); @@ -121847,11 +121499,11 @@ static PHP_METHOD(Phalcon_Mvc_Router_Group, addPatch) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &pattern_param, &paths); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(pattern, pattern_param); } else { ZEPHIR_INIT_VAR(pattern); @@ -121880,11 +121532,11 @@ static PHP_METHOD(Phalcon_Mvc_Router_Group, addDelete) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &pattern_param, &paths); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(pattern, pattern_param); } else { ZEPHIR_INIT_VAR(pattern); @@ -121913,11 +121565,11 @@ static PHP_METHOD(Phalcon_Mvc_Router_Group, addOptions) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &pattern_param, &paths); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(pattern, pattern_param); } else { ZEPHIR_INIT_VAR(pattern); @@ -121946,11 +121598,11 @@ static PHP_METHOD(Phalcon_Mvc_Router_Group, addHead) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &pattern_param, &paths); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(pattern, pattern_param); } else { ZEPHIR_INIT_VAR(pattern); @@ -121993,11 +121645,11 @@ static PHP_METHOD(Phalcon_Mvc_Router_Group, _addRoute) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &pattern_param, &paths, &httpMethods); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(pattern, pattern_param); } else { ZEPHIR_INIT_VAR(pattern); @@ -122149,11 +121801,11 @@ static PHP_METHOD(Phalcon_Mvc_Router_Route, __construct) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &pattern_param, &paths, &httpMethods); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(pattern, pattern_param); } else { ZEPHIR_INIT_VAR(pattern); @@ -122193,11 +121845,11 @@ static PHP_METHOD(Phalcon_Mvc_Router_Route, compilePattern) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &pattern_param); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(pattern, pattern_param); } else { ZEPHIR_INIT_VAR(pattern); @@ -122292,11 +121944,11 @@ static PHP_METHOD(Phalcon_Mvc_Router_Route, extractNamedParams) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &pattern_param); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(pattern, pattern_param); } else { ZEPHIR_INIT_VAR(pattern); @@ -122534,11 +122186,11 @@ static PHP_METHOD(Phalcon_Mvc_Router_Route, reConfigure) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &pattern_param, &paths); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(pattern, pattern_param); } else { ZEPHIR_INIT_VAR(pattern); @@ -122774,8 +122426,8 @@ static PHP_METHOD(Phalcon_Mvc_Router_Route, getReversedPaths) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_paths"), PH_NOISY_CC); zephir_is_iterable(_0, &_2, &_1, 0, 0, "phalcon/mvc/router/route.zep", 566); for ( - ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS - ; zephir_hash_move_forward_ex(_2, &_1) + ; zend_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS + ; zend_hash_move_forward_ex(_2, &_1) ) { ZEPHIR_GET_HMKEY(path, _2, _1); ZEPHIR_GET_HVALUE(position, _3); @@ -122814,11 +122466,11 @@ static PHP_METHOD(Phalcon_Mvc_Router_Route, setHostname) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &hostname_param); - if (unlikely(Z_TYPE_P(hostname_param) != IS_STRING && Z_TYPE_P(hostname_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(hostname_param) != IS_STRING && Z_TYPE_P(hostname_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'hostname' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(hostname_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(hostname_param) == IS_STRING)) { zephir_get_strval(hostname, hostname_param); } else { ZEPHIR_INIT_VAR(hostname); @@ -122868,11 +122520,11 @@ static PHP_METHOD(Phalcon_Mvc_Router_Route, convert) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &name_param, &converter); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -123420,11 +123072,11 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine, partial) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &partialPath_param, ¶ms); - if (unlikely(Z_TYPE_P(partialPath_param) != IS_STRING && Z_TYPE_P(partialPath_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(partialPath_param) != IS_STRING && Z_TYPE_P(partialPath_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'partialPath' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(partialPath_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(partialPath_param) == IS_STRING)) { zephir_get_strval(partialPath, partialPath_param); } else { ZEPHIR_INIT_VAR(partialPath); @@ -123568,11 +123220,11 @@ static PHP_METHOD(Phalcon_Mvc_View_Simple, setViewsDir) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &viewsDir_param); - if (unlikely(Z_TYPE_P(viewsDir_param) != IS_STRING && Z_TYPE_P(viewsDir_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(viewsDir_param) != IS_STRING && Z_TYPE_P(viewsDir_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'viewsDir' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(viewsDir_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(viewsDir_param) == IS_STRING)) { zephir_get_strval(viewsDir, viewsDir_param); } else { ZEPHIR_INIT_VAR(viewsDir); @@ -123643,8 +123295,8 @@ static PHP_METHOD(Phalcon_Mvc_View_Simple, _loadTemplateEngines) { zephir_array_fast_append(arguments, dependencyInjector); zephir_is_iterable(registeredEngines, &_2$$5, &_1$$5, 0, 0, "phalcon/mvc/view/simple.zep", 191); for ( - ; zephir_hash_get_current_data_ex(_2$$5, (void**) &_3$$5, &_1$$5) == SUCCESS - ; zephir_hash_move_forward_ex(_2$$5, &_1$$5) + ; zend_hash_get_current_data_ex(_2$$5, (void**) &_3$$5, &_1$$5) == SUCCESS + ; zend_hash_move_forward_ex(_2$$5, &_1$$5) ) { ZEPHIR_GET_HMKEY(extension, _2$$5, _1$$5); ZEPHIR_GET_HVALUE(engineService, _3$$5); @@ -123697,11 +123349,11 @@ static PHP_METHOD(Phalcon_Mvc_View_Simple, _internalRender) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &path_param, ¶ms); - if (unlikely(Z_TYPE_P(path_param) != IS_STRING && Z_TYPE_P(path_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(path_param) != IS_STRING && Z_TYPE_P(path_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'path' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(path_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(path_param) == IS_STRING)) { zephir_get_strval(path, path_param); } else { ZEPHIR_INIT_VAR(path); @@ -123733,8 +123385,8 @@ static PHP_METHOD(Phalcon_Mvc_View_Simple, _internalRender) { zephir_check_call_status(); zephir_is_iterable(engines, &_4, &_3, 0, 0, "phalcon/mvc/view/simple.zep", 282); for ( - ; zephir_hash_get_current_data_ex(_4, (void**) &_5, &_3) == SUCCESS - ; zephir_hash_move_forward_ex(_4, &_3) + ; zend_hash_get_current_data_ex(_4, (void**) &_5, &_3) == SUCCESS + ; zend_hash_move_forward_ex(_4, &_3) ) { ZEPHIR_GET_HMKEY(extension, _4, _3); ZEPHIR_GET_HVALUE(engine, _5); @@ -123825,11 +123477,11 @@ static PHP_METHOD(Phalcon_Mvc_View_Simple, render) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &path_param, ¶ms); - if (unlikely(Z_TYPE_P(path_param) != IS_STRING && Z_TYPE_P(path_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(path_param) != IS_STRING && Z_TYPE_P(path_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'path' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(path_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(path_param) == IS_STRING)) { zephir_get_strval(path, path_param); } else { ZEPHIR_INIT_VAR(path); @@ -123921,11 +123573,11 @@ static PHP_METHOD(Phalcon_Mvc_View_Simple, partial) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &partialPath_param, ¶ms); - if (unlikely(Z_TYPE_P(partialPath_param) != IS_STRING && Z_TYPE_P(partialPath_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(partialPath_param) != IS_STRING && Z_TYPE_P(partialPath_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'partialPath' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(partialPath_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(partialPath_param) == IS_STRING)) { zephir_get_strval(partialPath, partialPath_param); } else { ZEPHIR_INIT_VAR(partialPath); @@ -124093,11 +123745,11 @@ static PHP_METHOD(Phalcon_Mvc_View_Simple, setParamToView) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &key_param, &value); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { ZEPHIR_INIT_VAR(key); @@ -124153,11 +123805,11 @@ static PHP_METHOD(Phalcon_Mvc_View_Simple, setVar) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &key_param, &value); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { ZEPHIR_INIT_VAR(key); @@ -124178,11 +123830,11 @@ static PHP_METHOD(Phalcon_Mvc_View_Simple, getVar) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &key_param); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { ZEPHIR_INIT_VAR(key); @@ -124214,11 +123866,11 @@ static PHP_METHOD(Phalcon_Mvc_View_Simple, setContent) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &content_param); - if (unlikely(Z_TYPE_P(content_param) != IS_STRING && Z_TYPE_P(content_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(content_param) != IS_STRING && Z_TYPE_P(content_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'content' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(content_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(content_param) == IS_STRING)) { zephir_get_strval(content, content_param); } else { ZEPHIR_INIT_VAR(content); @@ -124255,11 +123907,11 @@ static PHP_METHOD(Phalcon_Mvc_View_Simple, __set) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &key_param, &value); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { ZEPHIR_INIT_VAR(key); @@ -124280,11 +123932,11 @@ static PHP_METHOD(Phalcon_Mvc_View_Simple, __get) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &key_param); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { ZEPHIR_INIT_VAR(key); @@ -124330,11 +123982,11 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Php, render) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 1, &path_param, ¶ms, &mustClean_param); - if (unlikely(Z_TYPE_P(path_param) != IS_STRING && Z_TYPE_P(path_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(path_param) != IS_STRING && Z_TYPE_P(path_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'path' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(path_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(path_param) == IS_STRING)) { zephir_get_strval(path, path_param); } else { ZEPHIR_INIT_VAR(path); @@ -124354,8 +124006,8 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Php, render) { if (Z_TYPE_P(params) == IS_ARRAY) { zephir_is_iterable(params, &_1$$4, &_0$$4, 0, 0, "phalcon/mvc/view/engine/php.zep", 50); for ( - ; zephir_hash_get_current_data_ex(_1$$4, (void**) &_2$$4, &_0$$4) == SUCCESS - ; zephir_hash_move_forward_ex(_1$$4, &_0$$4) + ; zend_hash_get_current_data_ex(_1$$4, (void**) &_2$$4, &_0$$4) == SUCCESS + ; zend_hash_move_forward_ex(_1$$4, &_0$$4) ) { ZEPHIR_GET_HMKEY(key, _1$$4, _0$$4); ZEPHIR_GET_HVALUE(value, _2$$4); @@ -124470,11 +124122,11 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt, render) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 1, &templatePath_param, ¶ms, &mustClean_param); - if (unlikely(Z_TYPE_P(templatePath_param) != IS_STRING && Z_TYPE_P(templatePath_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(templatePath_param) != IS_STRING && Z_TYPE_P(templatePath_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'templatePath' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(templatePath_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(templatePath_param) == IS_STRING)) { zephir_get_strval(templatePath, templatePath_param); } else { ZEPHIR_INIT_VAR(templatePath); @@ -124500,8 +124152,8 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt, render) { if (Z_TYPE_P(params) == IS_ARRAY) { zephir_is_iterable(params, &_1$$4, &_0$$4, 0, 0, "phalcon/mvc/view/engine/volt.zep", 116); for ( - ; zephir_hash_get_current_data_ex(_1$$4, (void**) &_2$$4, &_0$$4) == SUCCESS - ; zephir_hash_move_forward_ex(_1$$4, &_0$$4) + ; zend_hash_get_current_data_ex(_1$$4, (void**) &_2$$4, &_0$$4) == SUCCESS + ; zend_hash_move_forward_ex(_1$$4, &_0$$4) ) { ZEPHIR_GET_HMKEY(key, _1$$4, _0$$4); ZEPHIR_GET_HVALUE(value, _2$$4); @@ -124591,21 +124243,21 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt, convertEncoding) { zephir_fetch_params(1, 3, 0, &text_param, &from_param, &to_param); zephir_get_strval(text, text_param); - if (unlikely(Z_TYPE_P(from_param) != IS_STRING && Z_TYPE_P(from_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(from_param) != IS_STRING && Z_TYPE_P(from_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'from' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(from_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(from_param) == IS_STRING)) { zephir_get_strval(from, from_param); } else { ZEPHIR_INIT_VAR(from); ZVAL_EMPTY_STRING(from); } - if (unlikely(Z_TYPE_P(to_param) != IS_STRING && Z_TYPE_P(to_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(to_param) != IS_STRING && Z_TYPE_P(to_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'to' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(to_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(to_param) == IS_STRING)) { zephir_get_strval(to, to_param); } else { ZEPHIR_INIT_VAR(to); @@ -124769,11 +124421,11 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt, callMacro) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &name_param, &arguments_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -124928,11 +124580,11 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, setOption) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &option_param, &value); - if (unlikely(Z_TYPE_P(option_param) != IS_STRING && Z_TYPE_P(option_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(option_param) != IS_STRING && Z_TYPE_P(option_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'option' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(option_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(option_param) == IS_STRING)) { zephir_get_strval(option, option_param); } else { ZEPHIR_INIT_VAR(option); @@ -124953,11 +124605,11 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, getOption) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &option_param); - if (unlikely(Z_TYPE_P(option_param) != IS_STRING && Z_TYPE_P(option_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(option_param) != IS_STRING && Z_TYPE_P(option_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'option' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(option_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(option_param) == IS_STRING)) { zephir_get_strval(option, option_param); } else { ZEPHIR_INIT_VAR(option); @@ -124993,11 +124645,11 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, fireExtensionEvent) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &name_param, &arguments); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -125013,8 +124665,8 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, fireExtensionEvent) { if (Z_TYPE_P(extensions) == IS_ARRAY) { zephir_is_iterable(extensions, &_1$$3, &_0$$3, 0, 0, "phalcon/mvc/view/engine/volt/compiler.zep", 189); for ( - ; zephir_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_1$$3, &_0$$3) + ; zend_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS + ; zend_hash_move_forward_ex(_1$$3, &_0$$3) ) { ZEPHIR_GET_HVALUE(extension, _2$$3); if ((zephir_method_exists(extension, name TSRMLS_CC) == SUCCESS)) { @@ -125084,11 +124736,11 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, addFunction) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &name_param, &definition); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -125117,11 +124769,11 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, addFilter) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &name_param, &definition); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -125150,11 +124802,11 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, setUniquePrefix) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &prefix_param); - if (unlikely(Z_TYPE_P(prefix_param) != IS_STRING && Z_TYPE_P(prefix_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(prefix_param) != IS_STRING && Z_TYPE_P(prefix_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'prefix' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(prefix_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(prefix_param) == IS_STRING)) { zephir_get_strval(prefix, prefix_param); } else { ZEPHIR_INIT_VAR(prefix); @@ -125870,8 +125522,8 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, expression) { array_init(items); zephir_is_iterable(expr, &_4$$6, &_3$$6, 0, 0, "phalcon/mvc/view/engine/volt/compiler.zep", 993); for ( - ; zephir_hash_get_current_data_ex(_4$$6, (void**) &_5$$6, &_3$$6) == SUCCESS - ; zephir_hash_move_forward_ex(_4$$6, &_3$$6) + ; zend_hash_get_current_data_ex(_4$$6, (void**) &_5$$6, &_3$$6) == SUCCESS + ; zend_hash_move_forward_ex(_4$$6, &_3$$6) ) { ZEPHIR_GET_HVALUE(singleExpr, _5$$6); zephir_array_fetch_string(&_6$$7, singleExpr, SL("expr"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 986 TSRMLS_CC); @@ -126252,8 +125904,8 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, _statementListOrExtends if (!(zephir_array_isset_string(statements, SS("type")))) { zephir_is_iterable(statements, &_1$$4, &_0$$4, 0, 0, "phalcon/mvc/view/engine/volt/compiler.zep", 1310); for ( - ; zephir_hash_get_current_data_ex(_1$$4, (void**) &_2$$4, &_0$$4) == SUCCESS - ; zephir_hash_move_forward_ex(_1$$4, &_0$$4) + ; zend_hash_get_current_data_ex(_1$$4, (void**) &_2$$4, &_0$$4) == SUCCESS + ; zend_hash_move_forward_ex(_1$$4, &_0$$4) ) { ZEPHIR_GET_HVALUE(statement, _2$$4); if (Z_TYPE_P(statement) != IS_ARRAY) { @@ -126319,8 +125971,8 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileForeach) { if (Z_TYPE_P(blockStatements) == IS_ARRAY) { zephir_is_iterable(blockStatements, &_2$$4, &_1$$4, 0, 0, "phalcon/mvc/view/engine/volt/compiler.zep", 1388); for ( - ; zephir_hash_get_current_data_ex(_2$$4, (void**) &_3$$4, &_1$$4) == SUCCESS - ; zephir_hash_move_forward_ex(_2$$4, &_1$$4) + ; zend_hash_get_current_data_ex(_2$$4, (void**) &_3$$4, &_1$$4) == SUCCESS + ; zend_hash_move_forward_ex(_2$$4, &_1$$4) ) { ZEPHIR_GET_HVALUE(bstatement, _3$$4); if (Z_TYPE_P(bstatement) != IS_ARRAY) { @@ -126665,8 +126317,8 @@ static PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileSet) { ZVAL_STRING(compilation, "> 1))); @@ -142038,7 +141690,6 @@ static PHP_METHOD(Phalcon_Session_Adapter, get) { static PHP_METHOD(Phalcon_Session_Adapter, set) { - int _2, _1$$3; zval *index_param = NULL, *value, *_SESSION, *uniqueId = NULL, *_0$$3; zval *index = NULL; @@ -142053,18 +141704,10 @@ static PHP_METHOD(Phalcon_Session_Adapter, set) { if (!(ZEPHIR_IS_EMPTY(uniqueId))) { ZEPHIR_INIT_VAR(_0$$3); ZEPHIR_CONCAT_VSV(_0$$3, uniqueId, "#", index); - _1$$3 = zephir_maybe_separate_zval(&_SESSION); - zephir_array_update_zval(&_SESSION, _0$$3, &value, PH_COPY | PH_SEPARATE); - if (_1$$3) { - ZEND_SET_SYMBOL(&EG(symbol_table), "_SESSION", _SESSION); - } + zephir_array_update_zval(&_SESSION, _0$$3, &value, PH_COPY); RETURN_MM_NULL(); } - _2 = zephir_maybe_separate_zval(&_SESSION); - zephir_array_update_zval(&_SESSION, index, &value, PH_COPY | PH_SEPARATE); - if (_2) { - ZEND_SET_SYMBOL(&EG(symbol_table), "_SESSION", _SESSION); - } + zephir_array_update_zval(&_SESSION, index, &value, PH_COPY); ZEPHIR_MM_RESTORE(); } @@ -142179,8 +141822,8 @@ static PHP_METHOD(Phalcon_Session_Adapter, destroy) { ZEPHIR_INIT_VAR(_0$$4); zephir_is_iterable(_SESSION, &_2$$4, &_1$$4, 1, 0, "phalcon/session/adapter.zep", 275); for ( - ; zephir_hash_get_current_data_ex(_2$$4, (void**) &_3$$4, &_1$$4) == SUCCESS - ; zephir_hash_move_forward_ex(_2$$4, &_1$$4) + ; zend_hash_get_current_data_ex(_2$$4, (void**) &_3$$4, &_1$$4) == SUCCESS + ; zend_hash_move_forward_ex(_2$$4, &_1$$4) ) { ZEPHIR_GET_HMKEY(key, _2$$4, _1$$4); ZEPHIR_GET_HVALUE(_0$$4, _3$$4); @@ -142408,11 +142051,11 @@ static PHP_METHOD(Phalcon_Session_Bag, __construct) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -142522,11 +142165,11 @@ static PHP_METHOD(Phalcon_Session_Bag, set) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &property_param, &value); - if (unlikely(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'property' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(property_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(property_param) == IS_STRING)) { zephir_get_strval(property, property_param); } else { ZEPHIR_INIT_VAR(property); @@ -142558,11 +142201,11 @@ static PHP_METHOD(Phalcon_Session_Bag, __set) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &property_param, &value); - if (unlikely(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'property' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(property_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(property_param) == IS_STRING)) { zephir_get_strval(property, property_param); } else { ZEPHIR_INIT_VAR(property); @@ -142585,11 +142228,11 @@ static PHP_METHOD(Phalcon_Session_Bag, get) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &property_param, &defaultValue); - if (unlikely(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'property' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(property_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(property_param) == IS_STRING)) { zephir_get_strval(property, property_param); } else { ZEPHIR_INIT_VAR(property); @@ -142623,11 +142266,11 @@ static PHP_METHOD(Phalcon_Session_Bag, __get) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &property_param); - if (unlikely(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'property' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(property_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(property_param) == IS_STRING)) { zephir_get_strval(property, property_param); } else { ZEPHIR_INIT_VAR(property); @@ -142650,11 +142293,11 @@ static PHP_METHOD(Phalcon_Session_Bag, has) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &property_param); - if (unlikely(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'property' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(property_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(property_param) == IS_STRING)) { zephir_get_strval(property, property_param); } else { ZEPHIR_INIT_VAR(property); @@ -142681,11 +142324,11 @@ static PHP_METHOD(Phalcon_Session_Bag, __isset) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &property_param); - if (unlikely(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'property' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(property_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(property_param) == IS_STRING)) { zephir_get_strval(property, property_param); } else { ZEPHIR_INIT_VAR(property); @@ -142708,11 +142351,11 @@ static PHP_METHOD(Phalcon_Session_Bag, remove) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &property_param); - if (unlikely(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'property' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(property_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(property_param) == IS_STRING)) { zephir_get_strval(property, property_param); } else { ZEPHIR_INIT_VAR(property); @@ -142749,11 +142392,11 @@ static PHP_METHOD(Phalcon_Session_Bag, __unset) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &property_param); - if (unlikely(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'property' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(property_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(property_param) == IS_STRING)) { zephir_get_strval(property, property_param); } else { ZEPHIR_INIT_VAR(property); @@ -142813,11 +142456,11 @@ static PHP_METHOD(Phalcon_Session_Bag, offsetSet) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &property_param, &value); - if (unlikely(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'property' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(property_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(property_param) == IS_STRING)) { zephir_get_strval(property, property_param); } else { ZEPHIR_INIT_VAR(property); @@ -142840,11 +142483,11 @@ static PHP_METHOD(Phalcon_Session_Bag, offsetExists) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &property_param); - if (unlikely(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'property' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(property_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(property_param) == IS_STRING)) { zephir_get_strval(property, property_param); } else { ZEPHIR_INIT_VAR(property); @@ -142867,11 +142510,11 @@ static PHP_METHOD(Phalcon_Session_Bag, offsetUnset) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &property_param); - if (unlikely(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'property' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(property_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(property_param) == IS_STRING)) { zephir_get_strval(property, property_param); } else { ZEPHIR_INIT_VAR(property); @@ -142894,11 +142537,11 @@ static PHP_METHOD(Phalcon_Session_Bag, offsetGet) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &property_param); - if (unlikely(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'property' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(property_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(property_param) == IS_STRING)) { zephir_get_strval(property, property_param); } else { ZEPHIR_INIT_VAR(property); @@ -143220,8 +142863,8 @@ static PHP_METHOD(Phalcon_Session_Adapter_Libmemcached, destroy) { ZEPHIR_INIT_VAR(_0); zephir_is_iterable(_SESSION, &_2, &_1, 1, 0, "phalcon/session/adapter/libmemcached.zep", 168); for ( - ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS - ; zephir_hash_move_forward_ex(_2, &_1) + ; zend_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS + ; zend_hash_move_forward_ex(_2, &_1) ) { ZEPHIR_GET_HMKEY(key, _2, _1); ZEPHIR_GET_HVALUE(_0, _3); @@ -144021,8 +143664,8 @@ static PHP_METHOD(Phalcon_Tag_Select, _optionsFromArray) { ZVAL_STRING(code, "", 1); zephir_is_iterable(data, &_1, &_0, 0, 0, "phalcon/tag/select.zep", 274); for ( - ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS - ; zephir_hash_move_forward_ex(_1, &_0) + ; zend_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS + ; zend_hash_move_forward_ex(_1, &_0) ) { ZEPHIR_GET_HMKEY(optionValue, _1, _0); ZEPHIR_GET_HVALUE(optionText, _2); @@ -144140,11 +143783,11 @@ static PHP_METHOD(Phalcon_Translate_Adapter, t) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &translateKey_param, &placeholders); - if (unlikely(Z_TYPE_P(translateKey_param) != IS_STRING && Z_TYPE_P(translateKey_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(translateKey_param) != IS_STRING && Z_TYPE_P(translateKey_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'translateKey' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(translateKey_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(translateKey_param) == IS_STRING)) { zephir_get_strval(translateKey, translateKey_param); } else { ZEPHIR_INIT_VAR(translateKey); @@ -144170,11 +143813,11 @@ static PHP_METHOD(Phalcon_Translate_Adapter, _) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &translateKey_param, &placeholders); - if (unlikely(Z_TYPE_P(translateKey_param) != IS_STRING && Z_TYPE_P(translateKey_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(translateKey_param) != IS_STRING && Z_TYPE_P(translateKey_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'translateKey' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(translateKey_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(translateKey_param) == IS_STRING)) { zephir_get_strval(translateKey, translateKey_param); } else { ZEPHIR_INIT_VAR(translateKey); @@ -144213,11 +143856,11 @@ static PHP_METHOD(Phalcon_Translate_Adapter, offsetExists) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &translateKey_param); - if (unlikely(Z_TYPE_P(translateKey_param) != IS_STRING && Z_TYPE_P(translateKey_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(translateKey_param) != IS_STRING && Z_TYPE_P(translateKey_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'translateKey' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(translateKey_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(translateKey_param) == IS_STRING)) { zephir_get_strval(translateKey, translateKey_param); } else { ZEPHIR_INIT_VAR(translateKey); @@ -144253,11 +143896,11 @@ static PHP_METHOD(Phalcon_Translate_Adapter, offsetGet) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &translateKey_param); - if (unlikely(Z_TYPE_P(translateKey_param) != IS_STRING && Z_TYPE_P(translateKey_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(translateKey_param) != IS_STRING && Z_TYPE_P(translateKey_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'translateKey' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(translateKey_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(translateKey_param) == IS_STRING)) { zephir_get_strval(translateKey, translateKey_param); } else { ZEPHIR_INIT_VAR(translateKey); @@ -144282,11 +143925,11 @@ static PHP_METHOD(Phalcon_Translate_Adapter, replacePlaceholders) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &translation_param, &placeholders); - if (unlikely(Z_TYPE_P(translation_param) != IS_STRING && Z_TYPE_P(translation_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(translation_param) != IS_STRING && Z_TYPE_P(translation_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'translation' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(translation_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(translation_param) == IS_STRING)) { zephir_get_strval(translation, translation_param); } else { ZEPHIR_INIT_VAR(translation); @@ -144402,7 +144045,7 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Csv, __construct) { options = options_param; - ZEPHIR_CALL_PARENT(NULL, phalcon_translate_adapter_csv_ce, this_ptr, "__construct", &_0, 453, options); + ZEPHIR_CALL_PARENT(NULL, phalcon_translate_adapter_csv_ce, this_ptr, "__construct", &_0, 452, options); zephir_check_call_status(); if (!(zephir_array_isset_string(options, SS("content")))) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_translate_exception_ce, "Parameter 'content' is required", "phalcon/translate/adapter/csv.zep", 42); @@ -144415,7 +144058,7 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Csv, __construct) { ZVAL_STRING(_3, ";", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_VAR(_4); ZVAL_STRING(_4, "\"", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, this_ptr, "_load", NULL, 454, _1, _2, _3, _4); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "_load", NULL, 453, _1, _2, _3, _4); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -144451,7 +144094,7 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Csv, _load) { return; } while (1) { - ZEPHIR_CALL_FUNCTION(&data, "fgetcsv", &_3, 455, fileHandler, length, delimiter, enclosure); + ZEPHIR_CALL_FUNCTION(&data, "fgetcsv", &_3, 454, fileHandler, length, delimiter, enclosure); zephir_check_call_status(); if (ZEPHIR_IS_FALSE_IDENTICAL(data)) { break; @@ -144489,11 +144132,11 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Csv, query) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &index_param, &placeholders); - if (unlikely(Z_TYPE_P(index_param) != IS_STRING && Z_TYPE_P(index_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(index_param) != IS_STRING && Z_TYPE_P(index_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'index' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(index_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(index_param) == IS_STRING)) { zephir_get_strval(index, index_param); } else { ZEPHIR_INIT_VAR(index); @@ -144523,11 +144166,11 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Csv, exists) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &index_param); - if (unlikely(Z_TYPE_P(index_param) != IS_STRING && Z_TYPE_P(index_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(index_param) != IS_STRING && Z_TYPE_P(index_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'index' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(index_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(index_param) == IS_STRING)) { zephir_get_strval(index, index_param); } else { ZEPHIR_INIT_VAR(index); @@ -144637,7 +144280,7 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, __construct) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_translate_exception_ce, "This class requires the gettext extension for PHP", "phalcon/translate/adapter/gettext.zep", 72); return; } - ZEPHIR_CALL_PARENT(NULL, phalcon_translate_adapter_gettext_ce, this_ptr, "__construct", &_0, 453, options); + ZEPHIR_CALL_PARENT(NULL, phalcon_translate_adapter_gettext_ce, this_ptr, "__construct", &_0, 452, options); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, this_ptr, "prepareoptions", NULL, 0, options); zephir_check_call_status(); @@ -144654,11 +144297,11 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, query) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &index_param, &placeholders); - if (unlikely(Z_TYPE_P(index_param) != IS_STRING && Z_TYPE_P(index_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(index_param) != IS_STRING && Z_TYPE_P(index_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'index' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(index_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(index_param) == IS_STRING)) { zephir_get_strval(index, index_param); } else { ZEPHIR_INIT_VAR(index); @@ -144669,7 +144312,7 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, query) { } - ZEPHIR_CALL_FUNCTION(&translation, "gettext", NULL, 456, index); + ZEPHIR_CALL_FUNCTION(&translation, "gettext", NULL, 455, index); zephir_check_call_status(); ZEPHIR_RETURN_CALL_METHOD(this_ptr, "replaceplaceholders", NULL, 0, translation, placeholders); zephir_check_call_status(); @@ -144686,11 +144329,11 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, exists) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &index_param); - if (unlikely(Z_TYPE_P(index_param) != IS_STRING && Z_TYPE_P(index_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(index_param) != IS_STRING && Z_TYPE_P(index_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'index' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(index_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(index_param) == IS_STRING)) { zephir_get_strval(index, index_param); } else { ZEPHIR_INIT_VAR(index); @@ -144713,27 +144356,27 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, nquery) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 2, &msgid1_param, &msgid2_param, &count_param, &placeholders, &domain_param); - if (unlikely(Z_TYPE_P(msgid1_param) != IS_STRING && Z_TYPE_P(msgid1_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(msgid1_param) != IS_STRING && Z_TYPE_P(msgid1_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'msgid1' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(msgid1_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(msgid1_param) == IS_STRING)) { zephir_get_strval(msgid1, msgid1_param); } else { ZEPHIR_INIT_VAR(msgid1); ZVAL_EMPTY_STRING(msgid1); } - if (unlikely(Z_TYPE_P(msgid2_param) != IS_STRING && Z_TYPE_P(msgid2_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(msgid2_param) != IS_STRING && Z_TYPE_P(msgid2_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'msgid2' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(msgid2_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(msgid2_param) == IS_STRING)) { zephir_get_strval(msgid2, msgid2_param); } else { ZEPHIR_INIT_VAR(msgid2); ZVAL_EMPTY_STRING(msgid2); } - if (unlikely(Z_TYPE_P(count_param) != IS_LONG)) { + if (UNEXPECTED(Z_TYPE_P(count_param) != IS_LONG)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'count' must be a int") TSRMLS_CC); RETURN_MM_NULL(); } @@ -144745,11 +144388,11 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, nquery) { ZEPHIR_INIT_VAR(domain); ZVAL_EMPTY_STRING(domain); } else { - if (unlikely(Z_TYPE_P(domain_param) != IS_STRING && Z_TYPE_P(domain_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(domain_param) != IS_STRING && Z_TYPE_P(domain_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'domain' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(domain_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(domain_param) == IS_STRING)) { zephir_get_strval(domain, domain_param); } else { ZEPHIR_INIT_VAR(domain); @@ -144761,12 +144404,12 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, nquery) { if (!(!(!domain) && Z_STRLEN_P(domain))) { ZEPHIR_SINIT_VAR(_0$$3); ZVAL_LONG(&_0$$3, count); - ZEPHIR_CALL_FUNCTION(&translation, "ngettext", NULL, 457, msgid1, msgid2, &_0$$3); + ZEPHIR_CALL_FUNCTION(&translation, "ngettext", NULL, 456, msgid1, msgid2, &_0$$3); zephir_check_call_status(); } else { ZEPHIR_SINIT_VAR(_1$$4); ZVAL_LONG(&_1$$4, count); - ZEPHIR_CALL_FUNCTION(&translation, "dngettext", NULL, 458, domain, msgid1, msgid2, &_1$$4); + ZEPHIR_CALL_FUNCTION(&translation, "dngettext", NULL, 457, domain, msgid1, msgid2, &_1$$4); zephir_check_call_status(); } ZEPHIR_RETURN_CALL_METHOD(this_ptr, "replaceplaceholders", NULL, 0, translation, placeholders); @@ -144785,7 +144428,7 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, setDomain) { - ZEPHIR_RETURN_CALL_FUNCTION("textdomain", NULL, 459, domain); + ZEPHIR_RETURN_CALL_FUNCTION("textdomain", NULL, 458, domain); zephir_check_call_status(); RETURN_MM(); @@ -144800,7 +144443,7 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, resetDomain) { ZEPHIR_CALL_METHOD(&_0, this_ptr, "getdefaultdomain", NULL, 0); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_FUNCTION("textdomain", NULL, 459, _0); + ZEPHIR_RETURN_CALL_FUNCTION("textdomain", NULL, 458, _0); zephir_check_call_status(); RETURN_MM(); @@ -144814,11 +144457,11 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, setDefaultDomain) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &domain_param); - if (unlikely(Z_TYPE_P(domain_param) != IS_STRING && Z_TYPE_P(domain_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(domain_param) != IS_STRING && Z_TYPE_P(domain_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'domain' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(domain_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(domain_param) == IS_STRING)) { zephir_get_strval(domain, domain_param); } else { ZEPHIR_INIT_VAR(domain); @@ -144851,18 +144494,18 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, setDirectory) { if (Z_TYPE_P(directory) == IS_ARRAY) { zephir_is_iterable(directory, &_1$$4, &_0$$4, 0, 0, "phalcon/translate/adapter/gettext.zep", 180); for ( - ; zephir_hash_get_current_data_ex(_1$$4, (void**) &_2$$4, &_0$$4) == SUCCESS - ; zephir_hash_move_forward_ex(_1$$4, &_0$$4) + ; zend_hash_get_current_data_ex(_1$$4, (void**) &_2$$4, &_0$$4) == SUCCESS + ; zend_hash_move_forward_ex(_1$$4, &_0$$4) ) { ZEPHIR_GET_HMKEY(key, _1$$4, _0$$4); ZEPHIR_GET_HVALUE(value, _2$$4); - ZEPHIR_CALL_FUNCTION(NULL, "bindtextdomain", &_3, 460, key, value); + ZEPHIR_CALL_FUNCTION(NULL, "bindtextdomain", &_3, 459, key, value); zephir_check_call_status(); } } else { ZEPHIR_CALL_METHOD(&_4$$6, this_ptr, "getdefaultdomain", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(NULL, "bindtextdomain", &_3, 460, _4$$6, directory); + ZEPHIR_CALL_FUNCTION(NULL, "bindtextdomain", &_3, 459, _4$$6, directory); zephir_check_call_status(); } ZEPHIR_MM_RESTORE(); @@ -144879,16 +144522,16 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, setLocale) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &category_param, &locale_param); - if (unlikely(Z_TYPE_P(category_param) != IS_LONG)) { + if (UNEXPECTED(Z_TYPE_P(category_param) != IS_LONG)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'category' must be a int") TSRMLS_CC); RETURN_MM_NULL(); } category = Z_LVAL_P(category_param); - if (unlikely(Z_TYPE_P(locale_param) != IS_STRING && Z_TYPE_P(locale_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(locale_param) != IS_STRING && Z_TYPE_P(locale_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'locale' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(locale_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(locale_param) == IS_STRING)) { zephir_get_strval(locale, locale_param); } else { ZEPHIR_INIT_VAR(locale); @@ -144898,8 +144541,7 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, setLocale) { ZEPHIR_INIT_VAR(_0); ZEPHIR_INIT_VAR(_1); - array_init(_1); - zend_copy_parameters_array(ZEND_NUM_ARGS(), _1 TSRMLS_CC); + zephir_get_args(_1 TSRMLS_CC); ZEPHIR_SINIT_VAR(_2); ZVAL_STRING(&_2, "setlocale", 0); ZEPHIR_CALL_USER_FUNC_ARRAY(_0, &_2, _1); @@ -144911,17 +144553,17 @@ static PHP_METHOD(Phalcon_Translate_Adapter_Gettext, setLocale) { _3 = zephir_fetch_nproperty_this(this_ptr, SL("_locale"), PH_NOISY_CC); ZEPHIR_INIT_VAR(_4); ZEPHIR_CONCAT_SV(_4, "LC_ALL=", _3); - ZEPHIR_CALL_FUNCTION(NULL, "putenv", &_5, 461, _4); + ZEPHIR_CALL_FUNCTION(NULL, "putenv", &_5, 460, _4); zephir_check_call_status(); _6 = zephir_fetch_nproperty_this(this_ptr, SL("_locale"), PH_NOISY_CC); ZEPHIR_INIT_VAR(_7); ZEPHIR_CONCAT_SV(_7, "LANG=", _6); - ZEPHIR_CALL_FUNCTION(NULL, "putenv", &_5, 461, _7); + ZEPHIR_CALL_FUNCTION(NULL, "putenv", &_5, 460, _7); zephir_check_call_status(); _8 = zephir_fetch_nproperty_this(this_ptr, SL("_locale"), PH_NOISY_CC); ZEPHIR_INIT_VAR(_9); ZEPHIR_CONCAT_SV(_9, "LANGUAGE=", _8); - ZEPHIR_CALL_FUNCTION(NULL, "putenv", &_5, 461, _9); + ZEPHIR_CALL_FUNCTION(NULL, "putenv", &_5, 460, _9); zephir_check_call_status(); _10 = zephir_fetch_nproperty_this(this_ptr, SL("_locale"), PH_NOISY_CC); ZEPHIR_SINIT_VAR(_11); @@ -145019,7 +144661,7 @@ static PHP_METHOD(Phalcon_Translate_Adapter_NativeArray, __construct) { options = options_param; - ZEPHIR_CALL_PARENT(NULL, phalcon_translate_adapter_nativearray_ce, this_ptr, "__construct", &_0, 453, options); + ZEPHIR_CALL_PARENT(NULL, phalcon_translate_adapter_nativearray_ce, this_ptr, "__construct", &_0, 452, options); zephir_check_call_status(); ZEPHIR_OBS_VAR(data); if (!(zephir_array_isset_string_fetch(&data, options, SS("content"), 0 TSRMLS_CC))) { @@ -145044,11 +144686,11 @@ static PHP_METHOD(Phalcon_Translate_Adapter_NativeArray, query) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &index_param, &placeholders); - if (unlikely(Z_TYPE_P(index_param) != IS_STRING && Z_TYPE_P(index_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(index_param) != IS_STRING && Z_TYPE_P(index_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'index' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(index_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(index_param) == IS_STRING)) { zephir_get_strval(index, index_param); } else { ZEPHIR_INIT_VAR(index); @@ -145078,11 +144720,11 @@ static PHP_METHOD(Phalcon_Translate_Adapter_NativeArray, exists) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &index_param); - if (unlikely(Z_TYPE_P(index_param) != IS_STRING && Z_TYPE_P(index_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(index_param) != IS_STRING && Z_TYPE_P(index_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'index' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(index_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(index_param) == IS_STRING)) { zephir_get_strval(index, index_param); } else { ZEPHIR_INIT_VAR(index); @@ -145125,11 +144767,11 @@ static PHP_METHOD(Phalcon_Translate_Interpolator_AssociativeArray, replacePlaceh ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &translation_param, &placeholders); - if (unlikely(Z_TYPE_P(translation_param) != IS_STRING && Z_TYPE_P(translation_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(translation_param) != IS_STRING && Z_TYPE_P(translation_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'translation' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(translation_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(translation_param) == IS_STRING)) { zephir_get_strval(translation, translation_param); } else { ZEPHIR_INIT_VAR(translation); @@ -145147,8 +144789,8 @@ static PHP_METHOD(Phalcon_Translate_Interpolator_AssociativeArray, replacePlaceh if (_0) { zephir_is_iterable(placeholders, &_2$$3, &_1$$3, 0, 0, "phalcon/translate/interpolator/associativearray.zep", 38); for ( - ; zephir_hash_get_current_data_ex(_2$$3, (void**) &_3$$3, &_1$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_2$$3, &_1$$3) + ; zend_hash_get_current_data_ex(_2$$3, (void**) &_3$$3, &_1$$3) == SUCCESS + ; zend_hash_move_forward_ex(_2$$3, &_1$$3) ) { ZEPHIR_GET_HMKEY(key, _2$$3, _1$$3); ZEPHIR_GET_HVALUE(value, _3$$3); @@ -145192,11 +144834,11 @@ static PHP_METHOD(Phalcon_Translate_Interpolator_IndexedArray, replacePlaceholde ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &translation_param, &placeholders); - if (unlikely(Z_TYPE_P(translation_param) != IS_STRING && Z_TYPE_P(translation_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(translation_param) != IS_STRING && Z_TYPE_P(translation_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'translation' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(translation_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(translation_param) == IS_STRING)) { zephir_get_strval(translation, translation_param); } else { ZEPHIR_INIT_VAR(translation); @@ -145298,11 +144940,11 @@ static PHP_METHOD(Phalcon_Validation_Message, __construct) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 3, &message_param, &field, &type_param, &code_param); - if (unlikely(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'message' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(message_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(message_param) == IS_STRING)) { zephir_get_strval(message, message_param); } else { ZEPHIR_INIT_VAR(message); @@ -145342,11 +144984,11 @@ static PHP_METHOD(Phalcon_Validation_Message, setType) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &type_param); - if (unlikely(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'type' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(type_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(type_param) == IS_STRING)) { zephir_get_strval(type, type_param); } else { ZEPHIR_INIT_VAR(type); @@ -145375,11 +145017,11 @@ static PHP_METHOD(Phalcon_Validation_Message, setMessage) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &message_param); - if (unlikely(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'message' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(message_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(message_param) == IS_STRING)) { zephir_get_strval(message, message_param); } else { ZEPHIR_INIT_VAR(message); @@ -145470,7 +145112,7 @@ static PHP_METHOD(Phalcon_Validation_Message, __set_state) { zephir_array_fetch_string(&_0, message, SL("_message"), PH_NOISY | PH_READONLY, "phalcon/validation/message.zep", 134 TSRMLS_CC); zephir_array_fetch_string(&_1, message, SL("_field"), PH_NOISY | PH_READONLY, "phalcon/validation/message.zep", 134 TSRMLS_CC); zephir_array_fetch_string(&_2, message, SL("_type"), PH_NOISY | PH_READONLY, "phalcon/validation/message.zep", 134 TSRMLS_CC); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 465, _0, _1, _2); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 464, _0, _1, _2); zephir_check_call_status(); RETURN_MM(); @@ -145560,11 +145202,11 @@ static PHP_METHOD(Phalcon_Validation_Validator, isSetOption) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &key_param); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { ZEPHIR_INIT_VAR(key); @@ -145585,11 +145227,11 @@ static PHP_METHOD(Phalcon_Validation_Validator, hasOption) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &key_param); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { ZEPHIR_INIT_VAR(key); @@ -145611,11 +145253,11 @@ static PHP_METHOD(Phalcon_Validation_Validator, getOption) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &key_param, &defaultValue); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { ZEPHIR_INIT_VAR(key); @@ -145654,11 +145296,11 @@ static PHP_METHOD(Phalcon_Validation_Validator, setOption) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &key_param, &value); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { ZEPHIR_INIT_VAR(key); @@ -145750,7 +145392,7 @@ static PHP_METHOD(Phalcon_Validation_Message_Group, offsetGet) { zephir_fetch_params(0, 1, 0, &index_param); - if (unlikely(Z_TYPE_P(index_param) != IS_LONG)) { + if (UNEXPECTED(Z_TYPE_P(index_param) != IS_LONG)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'index' must be a int") TSRMLS_CC); RETURN_NULL(); } @@ -145773,7 +145415,7 @@ static PHP_METHOD(Phalcon_Validation_Message_Group, offsetSet) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &index_param, &message); - if (unlikely(Z_TYPE_P(index_param) != IS_LONG)) { + if (UNEXPECTED(Z_TYPE_P(index_param) != IS_LONG)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'index' must be a int") TSRMLS_CC); RETURN_MM_NULL(); } @@ -145823,7 +145465,7 @@ static PHP_METHOD(Phalcon_Validation_Message_Group, offsetUnset) { ZEPHIR_INIT_VAR(_2$$3); ZVAL_LONG(_2$$3, 1); ZEPHIR_MAKE_REF(_1$$3); - ZEPHIR_CALL_FUNCTION(NULL, "array_splice", NULL, 466, _1$$3, index, _2$$3); + ZEPHIR_CALL_FUNCTION(NULL, "array_splice", NULL, 465, _1$$3, index, _2$$3); ZEPHIR_UNREF(_1$$3); zephir_check_call_status(); } @@ -145905,11 +145547,11 @@ static PHP_METHOD(Phalcon_Validation_Message_Group, filter) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &fieldName_param); - if (unlikely(Z_TYPE_P(fieldName_param) != IS_STRING && Z_TYPE_P(fieldName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(fieldName_param) != IS_STRING && Z_TYPE_P(fieldName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'fieldName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(fieldName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(fieldName_param) == IS_STRING)) { zephir_get_strval(fieldName, fieldName_param); } else { ZEPHIR_INIT_VAR(fieldName); @@ -145924,8 +145566,8 @@ static PHP_METHOD(Phalcon_Validation_Message_Group, filter) { if (Z_TYPE_P(messages) == IS_ARRAY) { zephir_is_iterable(messages, &_1$$3, &_0$$3, 0, 0, "phalcon/validation/message/group.zep", 210); for ( - ; zephir_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_1$$3, &_0$$3) + ; zend_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS + ; zend_hash_move_forward_ex(_1$$3, &_0$$3) ) { ZEPHIR_GET_HVALUE(message, _2$$3); if ((zephir_method_exists_ex(message, SS("getfield") TSRMLS_CC) == SUCCESS)) { @@ -146069,11 +145711,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_Alnum, validate) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &validation, &field_param); - if (unlikely(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'field' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(field_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(field_param) == IS_STRING)) { zephir_get_strval(field, field_param); } else { ZEPHIR_INIT_VAR(field); @@ -146083,7 +145725,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Alnum, validate) { ZEPHIR_CALL_METHOD(&value, validation, "getvalue", NULL, 0, field); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_0, "ctype_alnum", NULL, 467, value); + ZEPHIR_CALL_FUNCTION(&_0, "ctype_alnum", NULL, 466, value); zephir_check_call_status(); if (!(zephir_is_true(_0))) { ZEPHIR_INIT_VAR(_1$$3); @@ -146133,7 +145775,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Alnum, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_7$$3); ZVAL_STRING(_7$$3, "Alnum", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _1$$3, "__construct", NULL, 465, _6$$3, field, _7$$3, code); + ZEPHIR_CALL_METHOD(NULL, _1$$3, "__construct", NULL, 464, _6$$3, field, _7$$3, code); zephir_check_temp_parameter(_7$$3); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _1$$3); @@ -146171,11 +145813,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_Alpha, validate) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &validation, &field_param); - if (unlikely(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'field' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(field_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(field_param) == IS_STRING)) { zephir_get_strval(field, field_param); } else { ZEPHIR_INIT_VAR(field); @@ -146238,7 +145880,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Alpha, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_9$$3); ZVAL_STRING(_9$$3, "Alpha", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _3$$3, "__construct", NULL, 465, _8$$3, field, _9$$3, code); + ZEPHIR_CALL_METHOD(NULL, _3$$3, "__construct", NULL, 464, _8$$3, field, _9$$3, code); zephir_check_temp_parameter(_9$$3); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _3$$3); @@ -146277,11 +145919,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_Between, validate) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &validation, &field_param); - if (unlikely(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'field' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(field_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(field_param) == IS_STRING)) { zephir_get_strval(field, field_param); } else { ZEPHIR_INIT_VAR(field); @@ -146363,7 +146005,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Between, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_10$$5); ZVAL_STRING(_10$$5, "Between", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _4$$5, "__construct", NULL, 465, _9$$5, field, _10$$5, code); + ZEPHIR_CALL_METHOD(NULL, _4$$5, "__construct", NULL, 464, _9$$5, field, _10$$5, code); zephir_check_temp_parameter(_10$$5); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _4$$5); @@ -146402,11 +146044,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_Callback, validate) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &validation, &field_param); - if (unlikely(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'field' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(field_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(field_param) == IS_STRING)) { zephir_get_strval(field, field_param); } else { ZEPHIR_INIT_VAR(field); @@ -146481,7 +146123,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Callback, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_8$$6); ZVAL_STRING(_8$$6, "Callback", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _2$$6, "__construct", NULL, 465, _7$$6, field, _8$$6, code); + ZEPHIR_CALL_METHOD(NULL, _2$$6, "__construct", NULL, 464, _7$$6, field, _8$$6, code); zephir_check_temp_parameter(_8$$6); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _2$$6); @@ -146528,11 +146170,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_Confirmation, validate) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &validation, &field_param); - if (unlikely(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'field' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(field_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(field_param) == IS_STRING)) { zephir_get_strval(field, field_param); } else { ZEPHIR_INIT_VAR(field); @@ -146553,7 +146195,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Confirmation, validate) { zephir_check_call_status(); ZEPHIR_CALL_METHOD(&valueWith, validation, "getvalue", NULL, 0, fieldWith); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_2, this_ptr, "compare", NULL, 468, value, valueWith); + ZEPHIR_CALL_METHOD(&_2, this_ptr, "compare", NULL, 467, value, valueWith); zephir_check_call_status(); if (!(zephir_is_true(_2))) { ZEPHIR_INIT_VAR(_3$$4); @@ -146617,7 +146259,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Confirmation, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_10$$4); ZVAL_STRING(_10$$4, "Confirmation", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _3$$4, "__construct", NULL, 465, _9$$4, field, _10$$4, code); + ZEPHIR_CALL_METHOD(NULL, _3$$4, "__construct", NULL, 464, _9$$4, field, _10$$4, code); zephir_check_temp_parameter(_10$$4); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _3$$4); @@ -146696,11 +146338,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_CreditCard, validate) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &validation, &field_param); - if (unlikely(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'field' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(field_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(field_param) == IS_STRING)) { zephir_get_strval(field, field_param); } else { ZEPHIR_INIT_VAR(field); @@ -146710,7 +146352,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_CreditCard, validate) { ZEPHIR_CALL_METHOD(&value, validation, "getvalue", NULL, 0, field); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&valid, this_ptr, "verifybyluhnalgorithm", NULL, 469, value); + ZEPHIR_CALL_METHOD(&valid, this_ptr, "verifybyluhnalgorithm", NULL, 468, value); zephir_check_call_status(); if (!(zephir_is_true(valid))) { ZEPHIR_INIT_VAR(_0$$3); @@ -146760,7 +146402,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_CreditCard, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_6$$3); ZVAL_STRING(_6$$3, "CreditCard", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _0$$3, "__construct", NULL, 465, _5$$3, field, _6$$3, code); + ZEPHIR_CALL_METHOD(NULL, _0$$3, "__construct", NULL, 464, _5$$3, field, _6$$3, code); zephir_check_temp_parameter(_6$$3); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _0$$3); @@ -146795,8 +146437,8 @@ static PHP_METHOD(Phalcon_Validation_Validator_CreditCard, verifyByLuhnAlgorithm zephir_check_call_status(); zephir_is_iterable(_4, &_6, &_5, 0, 0, "phalcon/validation/validator/creditcard.zep", 118); for ( - ; zephir_hash_get_current_data_ex(_6, (void**) &_7, &_5) == SUCCESS - ; zephir_hash_move_forward_ex(_6, &_5) + ; zend_hash_get_current_data_ex(_6, (void**) &_7, &_5) == SUCCESS + ; zend_hash_move_forward_ex(_6, &_5) ) { ZEPHIR_GET_HMKEY(position, _6, _5); ZEPHIR_GET_HVALUE(digit, _7); @@ -146811,7 +146453,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_CreditCard, verifyByLuhnAlgorithm } ZEPHIR_CALL_FUNCTION(&_9, "str_split", &_1, 71, hash); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&result, "array_sum", NULL, 470, _9); + ZEPHIR_CALL_FUNCTION(&result, "array_sum", NULL, 469, _9); zephir_check_call_status(); RETURN_MM_BOOL((zephir_safe_mod_zval_long(result, 10 TSRMLS_CC) == 0)); @@ -146844,11 +146486,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_Date, validate) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &validation, &field_param); - if (unlikely(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'field' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(field_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(field_param) == IS_STRING)) { zephir_get_strval(field, field_param); } else { ZEPHIR_INIT_VAR(field); @@ -146871,7 +146513,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Date, validate) { ZEPHIR_INIT_NVAR(format); ZVAL_STRING(format, "Y-m-d", 1); } - ZEPHIR_CALL_METHOD(&_2, this_ptr, "checkdate", NULL, 471, value, format); + ZEPHIR_CALL_METHOD(&_2, this_ptr, "checkdate", NULL, 470, value, format); zephir_check_call_status(); if (!(zephir_is_true(_2))) { ZEPHIR_INIT_VAR(_3$$5); @@ -146912,7 +146554,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Date, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_8$$5); ZVAL_STRING(_8$$5, "Date", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _3$$5, "__construct", NULL, 465, _7$$5, field, _8$$5); + ZEPHIR_CALL_METHOD(NULL, _3$$5, "__construct", NULL, 464, _7$$5, field, _8$$5); zephir_check_temp_parameter(_8$$5); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _3$$5); @@ -146985,11 +146627,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_Digit, validate) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &validation, &field_param); - if (unlikely(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'field' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(field_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(field_param) == IS_STRING)) { zephir_get_strval(field, field_param); } else { ZEPHIR_INIT_VAR(field); @@ -147001,7 +146643,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Digit, validate) { zephir_check_call_status(); _0 = Z_TYPE_P(value) == IS_LONG; if (!(_0)) { - ZEPHIR_CALL_FUNCTION(&_1, "ctype_digit", NULL, 472, value); + ZEPHIR_CALL_FUNCTION(&_1, "ctype_digit", NULL, 471, value); zephir_check_call_status(); _0 = zephir_is_true(_1); } @@ -147055,7 +146697,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Digit, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_8); ZVAL_STRING(_8, "Digit", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", NULL, 465, _7, field, _8, code); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", NULL, 464, _7, field, _8, code); zephir_check_temp_parameter(_8); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _2); @@ -147091,11 +146733,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_Email, validate) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &validation, &field_param); - if (unlikely(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'field' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(field_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(field_param) == IS_STRING)) { zephir_get_strval(field, field_param); } else { ZEPHIR_INIT_VAR(field); @@ -147157,7 +146799,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Email, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_8$$3); ZVAL_STRING(_8$$3, "Email", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _2$$3, "__construct", NULL, 465, _7$$3, field, _8$$3, code); + ZEPHIR_CALL_METHOD(NULL, _2$$3, "__construct", NULL, 464, _7$$3, field, _8$$3, code); zephir_check_temp_parameter(_8$$3); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _2$$3); @@ -147213,11 +146855,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_ExclusionIn, validate) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &validation, &field_param); - if (unlikely(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'field' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(field_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(field_param) == IS_STRING)) { zephir_get_strval(field, field_param); } else { ZEPHIR_INIT_VAR(field); @@ -147317,7 +146959,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_ExclusionIn, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_11$$9); ZVAL_STRING(_11$$9, "ExclusionIn", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _5$$9, "__construct", NULL, 465, _10$$9, field, _11$$9, code); + ZEPHIR_CALL_METHOD(NULL, _5$$9, "__construct", NULL, 464, _10$$9, field, _11$$9, code); zephir_check_temp_parameter(_11$$9); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _5$$9); @@ -147360,11 +147002,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, validate) { zephir_get_global(&_SERVER, SS("_SERVER") TSRMLS_CC); zephir_fetch_params(1, 2, 0, &validation, &field_param); - if (unlikely(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'field' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(field_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(field_param) == IS_STRING)) { zephir_get_strval(field, field_param); } else { ZEPHIR_INIT_VAR(field); @@ -147445,7 +147087,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_16$$6); ZVAL_STRING(_16$$6, "FileIniSize", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _11$$6, "__construct", &_17, 465, _14$$6, field, _16$$6, code); + ZEPHIR_CALL_METHOD(NULL, _11$$6, "__construct", &_17, 464, _14$$6, field, _16$$6, code); zephir_check_temp_parameter(_16$$6); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _11$$6); @@ -147494,7 +147136,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_28$$9); ZVAL_STRING(_28$$9, "FileEmpty", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _24$$9, "__construct", &_17, 465, _27$$9, field, _28$$9, code); + ZEPHIR_CALL_METHOD(NULL, _24$$9, "__construct", &_17, 464, _27$$9, field, _28$$9, code); zephir_check_temp_parameter(_28$$9); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _24$$9); @@ -147535,7 +147177,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_35$$12); ZVAL_STRING(_35$$12, "FileValid", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _31$$12, "__construct", &_17, 465, _34$$12, field, _35$$12, code); + ZEPHIR_CALL_METHOD(NULL, _31$$12, "__construct", &_17, 464, _34$$12, field, _35$$12, code); zephir_check_temp_parameter(_35$$12); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _31$$12); @@ -147626,7 +147268,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_54$$18); ZVAL_STRING(_54$$18, "FileSize", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _50$$18, "__construct", &_17, 465, _53$$18, field, _54$$18, code); + ZEPHIR_CALL_METHOD(NULL, _50$$18, "__construct", &_17, 464, _53$$18, field, _54$$18, code); zephir_check_temp_parameter(_54$$18); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _50$$18); @@ -147696,7 +147338,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_63$$26); ZVAL_STRING(_63$$26, "FileType", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _59$$26, "__construct", &_17, 465, _62$$26, field, _63$$26, code); + ZEPHIR_CALL_METHOD(NULL, _59$$26, "__construct", &_17, 464, _62$$26, field, _63$$26, code); zephir_check_temp_parameter(_63$$26); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _59$$26); @@ -147784,7 +147426,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_77$$33); ZVAL_STRING(_77$$33, "FileMinResolution", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _73$$33, "__construct", &_17, 465, _76$$33, field, _77$$33, code); + ZEPHIR_CALL_METHOD(NULL, _73$$33, "__construct", &_17, 464, _76$$33, field, _77$$33, code); zephir_check_temp_parameter(_77$$33); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _73$$33); @@ -147843,7 +147485,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_86$$38); ZVAL_STRING(_86$$38, "FileMaxResolution", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _82$$38, "__construct", &_17, 465, _85$$38, field, _86$$38, code); + ZEPHIR_CALL_METHOD(NULL, _82$$38, "__construct", &_17, 464, _85$$38, field, _86$$38, code); zephir_check_temp_parameter(_86$$38); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _82$$38); @@ -147866,11 +147508,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_File, isAllowEmpty) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &validation, &field_param); - if (unlikely(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'field' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(field_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(field_param) == IS_STRING)) { zephir_get_strval(field, field_param); } else { ZEPHIR_INIT_VAR(field); @@ -147921,11 +147563,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_Identical, validate) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &validation, &field_param); - if (unlikely(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'field' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(field_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(field_param) == IS_STRING)) { zephir_get_strval(field, field_param); } else { ZEPHIR_INIT_VAR(field); @@ -148018,7 +147660,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Identical, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_14$$8); ZVAL_STRING(_14$$8, "Identical", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _8$$8, "__construct", NULL, 465, _13$$8, field, _14$$8, code); + ZEPHIR_CALL_METHOD(NULL, _8$$8, "__construct", NULL, 464, _13$$8, field, _14$$8, code); zephir_check_temp_parameter(_14$$8); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _8$$8); @@ -148056,11 +147698,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_InclusionIn, validate) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &validation, &field_param); - if (unlikely(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'field' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(field_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(field_param) == IS_STRING)) { zephir_get_strval(field, field_param); } else { ZEPHIR_INIT_VAR(field); @@ -148160,7 +147802,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_InclusionIn, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_11$$9); ZVAL_STRING(_11$$9, "InclusionIn", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _5$$9, "__construct", NULL, 465, _10$$9, field, _11$$9, code); + ZEPHIR_CALL_METHOD(NULL, _5$$9, "__construct", NULL, 464, _10$$9, field, _11$$9, code); zephir_check_temp_parameter(_11$$9); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _5$$9); @@ -148198,11 +147840,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_Numericality, validate) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &validation, &field_param); - if (unlikely(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'field' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(field_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(field_param) == IS_STRING)) { zephir_get_strval(field, field_param); } else { ZEPHIR_INIT_VAR(field); @@ -148265,7 +147907,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Numericality, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_9$$3); ZVAL_STRING(_9$$3, "Numericality", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _3$$3, "__construct", NULL, 465, _8$$3, field, _9$$3, code); + ZEPHIR_CALL_METHOD(NULL, _3$$3, "__construct", NULL, 464, _8$$3, field, _9$$3, code); zephir_check_temp_parameter(_9$$3); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _3$$3); @@ -148304,11 +147946,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_PresenceOf, validate) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &validation, &field_param); - if (unlikely(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'field' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(field_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(field_param) == IS_STRING)) { zephir_get_strval(field, field_param); } else { ZEPHIR_INIT_VAR(field); @@ -148370,7 +148012,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_PresenceOf, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_7$$3); ZVAL_STRING(_7$$3, "PresenceOf", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _1$$3, "__construct", NULL, 465, _6$$3, field, _7$$3, code); + ZEPHIR_CALL_METHOD(NULL, _1$$3, "__construct", NULL, 464, _6$$3, field, _7$$3, code); zephir_check_temp_parameter(_7$$3); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _1$$3); @@ -148409,11 +148051,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_Regex, validate) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &validation, &field_param); - if (unlikely(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'field' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(field_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(field_param) == IS_STRING)) { zephir_get_strval(field, field_param); } else { ZEPHIR_INIT_VAR(field); @@ -148490,7 +148132,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Regex, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_9$$6); ZVAL_STRING(_9$$6, "Regex", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _3$$6, "__construct", NULL, 465, _8$$6, field, _9$$6, code); + ZEPHIR_CALL_METHOD(NULL, _3$$6, "__construct", NULL, 464, _8$$6, field, _9$$6, code); zephir_check_temp_parameter(_9$$6); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _3$$6); @@ -148530,11 +148172,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_StringLength, validate) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &validation, &field_param); - if (unlikely(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'field' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(field_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(field_param) == IS_STRING)) { zephir_get_strval(field, field_param); } else { ZEPHIR_INIT_VAR(field); @@ -148628,7 +148270,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_StringLength, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_11$$11); ZVAL_STRING(_11$$11, "TooLong", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _6$$11, "__construct", &_12, 465, _9$$11, field, _11$$11, code); + ZEPHIR_CALL_METHOD(NULL, _6$$11, "__construct", &_12, 464, _9$$11, field, _11$$11, code); zephir_check_temp_parameter(_11$$11); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _6$$11); @@ -148673,7 +148315,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_StringLength, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_19$$16); ZVAL_STRING(_19$$16, "TooShort", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _15$$16, "__construct", &_12, 465, _18$$16, field, _19$$16, code); + ZEPHIR_CALL_METHOD(NULL, _15$$16, "__construct", &_12, 464, _18$$16, field, _19$$16, code); zephir_check_temp_parameter(_19$$16); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _15$$16); @@ -148754,7 +148396,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Uniqueness, validate) { zephir_check_call_status(); ZEPHIR_INIT_NVAR(_6$$3); ZVAL_STRING(_6$$3, "Uniqueness", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _1$$3, "__construct", NULL, 465, _4$$3, field, _6$$3, _5$$3); + ZEPHIR_CALL_METHOD(NULL, _1$$3, "__construct", NULL, 464, _4$$3, field, _6$$3, _5$$3); zephir_check_temp_parameter(_6$$3); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _1$$3); @@ -148796,8 +148438,8 @@ static PHP_METHOD(Phalcon_Validation_Validator_Uniqueness, isUniqueness) { zephir_check_call_status(); zephir_is_iterable(field, &_2, &_1, 0, 0, "phalcon/validation/validator/uniqueness.zep", 151); for ( - ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS - ; zephir_hash_move_forward_ex(_2, &_1) + ; zend_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS + ; zend_hash_move_forward_ex(_2, &_1) ) { ZEPHIR_GET_HVALUE(singleField, _3); ZEPHIR_CALL_METHOD(&_4$$4, validation, "getvalue", &_5, 0, singleField); @@ -148861,11 +148503,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_Uniqueness, getColumnNameReal) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &record, &field_param); - if (unlikely(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'field' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(field_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(field_param) == IS_STRING)) { zephir_get_strval(field, field_param); } else { ZEPHIR_INIT_VAR(field); @@ -148942,8 +148584,8 @@ static PHP_METHOD(Phalcon_Validation_Validator_Uniqueness, isUniquenessModel) { zephir_check_call_status(); zephir_is_iterable(field, &_2, &_1, 0, 0, "phalcon/validation/validator/uniqueness.zep", 290); for ( - ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS - ; zephir_hash_move_forward_ex(_2, &_1) + ; zend_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS + ; zend_hash_move_forward_ex(_2, &_1) ) { ZEPHIR_GET_HVALUE(singleField, _3); ZEPHIR_INIT_NVAR(fieldExcept); @@ -148989,8 +148631,8 @@ static PHP_METHOD(Phalcon_Validation_Validator_Uniqueness, isUniquenessModel) { if (_10$$6) { zephir_is_iterable(except, &_17$$7, &_16$$7, 0, 0, "phalcon/validation/validator/uniqueness.zep", 253); for ( - ; zephir_hash_get_current_data_ex(_17$$7, (void**) &_18$$7, &_16$$7) == SUCCESS - ; zephir_hash_move_forward_ex(_17$$7, &_16$$7) + ; zend_hash_get_current_data_ex(_17$$7, (void**) &_18$$7, &_16$$7) == SUCCESS + ; zend_hash_move_forward_ex(_17$$7, &_16$$7) ) { ZEPHIR_GET_HMKEY(singleField, _17$$7, _16$$7); ZEPHIR_GET_HVALUE(fieldExcept, _18$$7); @@ -149004,8 +148646,8 @@ static PHP_METHOD(Phalcon_Validation_Validator_Uniqueness, isUniquenessModel) { if (Z_TYPE_P(fieldExcept) == IS_ARRAY) { zephir_is_iterable(fieldExcept, &_22$$9, &_21$$9, 0, 0, "phalcon/validation/validator/uniqueness.zep", 246); for ( - ; zephir_hash_get_current_data_ex(_22$$9, (void**) &_23$$9, &_21$$9) == SUCCESS - ; zephir_hash_move_forward_ex(_22$$9, &_21$$9) + ; zend_hash_get_current_data_ex(_22$$9, (void**) &_23$$9, &_21$$9) == SUCCESS + ; zend_hash_move_forward_ex(_22$$9, &_21$$9) ) { ZEPHIR_GET_HVALUE(singleExcept, _23$$9); ZEPHIR_SINIT_NVAR(_24$$10); @@ -149043,8 +148685,8 @@ static PHP_METHOD(Phalcon_Validation_Validator_Uniqueness, isUniquenessModel) { if (Z_TYPE_P(except) == IS_ARRAY) { zephir_is_iterable(except, &_34$$13, &_33$$13, 0, 0, "phalcon/validation/validator/uniqueness.zep", 261); for ( - ; zephir_hash_get_current_data_ex(_34$$13, (void**) &_35$$13, &_33$$13) == SUCCESS - ; zephir_hash_move_forward_ex(_34$$13, &_33$$13) + ; zend_hash_get_current_data_ex(_34$$13, (void**) &_35$$13, &_33$$13) == SUCCESS + ; zend_hash_move_forward_ex(_34$$13, &_33$$13) ) { ZEPHIR_GET_HVALUE(singleExcept, _35$$13); ZEPHIR_SINIT_NVAR(_36$$14); @@ -149072,8 +148714,8 @@ static PHP_METHOD(Phalcon_Validation_Validator_Uniqueness, isUniquenessModel) { } else if (zephir_fast_count_int(field TSRMLS_CC) > 1) { zephir_is_iterable(field, &_43$$16, &_42$$16, 0, 0, "phalcon/validation/validator/uniqueness.zep", 283); for ( - ; zephir_hash_get_current_data_ex(_43$$16, (void**) &_44$$16, &_42$$16) == SUCCESS - ; zephir_hash_move_forward_ex(_43$$16, &_42$$16) + ; zend_hash_get_current_data_ex(_43$$16, (void**) &_44$$16, &_42$$16) == SUCCESS + ; zend_hash_move_forward_ex(_43$$16, &_42$$16) ) { ZEPHIR_GET_HVALUE(singleField, _44$$16); ZEPHIR_INIT_NVAR(_46$$17); @@ -149086,8 +148728,8 @@ static PHP_METHOD(Phalcon_Validation_Validator_Uniqueness, isUniquenessModel) { if (Z_TYPE_P(except) == IS_ARRAY) { zephir_is_iterable(except, &_48$$18, &_47$$18, 0, 0, "phalcon/validation/validator/uniqueness.zep", 276); for ( - ; zephir_hash_get_current_data_ex(_48$$18, (void**) &_49$$18, &_47$$18) == SUCCESS - ; zephir_hash_move_forward_ex(_48$$18, &_47$$18) + ; zend_hash_get_current_data_ex(_48$$18, (void**) &_49$$18, &_47$$18) == SUCCESS + ; zend_hash_move_forward_ex(_48$$18, &_47$$18) ) { ZEPHIR_GET_HVALUE(singleExcept, _49$$18); ZEPHIR_SINIT_NVAR(_50$$19); @@ -149130,8 +148772,8 @@ static PHP_METHOD(Phalcon_Validation_Validator_Uniqueness, isUniquenessModel) { zephir_check_call_status(); zephir_is_iterable(_59$$21, &_61$$21, &_60$$21, 0, 0, "phalcon/validation/validator/uniqueness.zep", 298); for ( - ; zephir_hash_get_current_data_ex(_61$$21, (void**) &_62$$21, &_60$$21) == SUCCESS - ; zephir_hash_move_forward_ex(_61$$21, &_60$$21) + ; zend_hash_get_current_data_ex(_61$$21, (void**) &_62$$21, &_60$$21) == SUCCESS + ; zend_hash_move_forward_ex(_61$$21, &_60$$21) ) { ZEPHIR_GET_HVALUE(primaryField, _62$$21); ZEPHIR_CALL_METHOD(&_63$$22, this_ptr, "getcolumnnamereal", &_6, 0, record, primaryField); @@ -149188,8 +148830,8 @@ static PHP_METHOD(Phalcon_Validation_Validator_Uniqueness, isUniquenessCollectio zephir_array_update_string(¶ms, SL("conditions"), &_0, PH_COPY | PH_SEPARATE); zephir_is_iterable(field, &_2, &_1, 0, 0, "phalcon/validation/validator/uniqueness.zep", 363); for ( - ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS - ; zephir_hash_move_forward_ex(_2, &_1) + ; zend_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS + ; zend_hash_move_forward_ex(_2, &_1) ) { ZEPHIR_GET_HVALUE(singleField, _3); ZEPHIR_INIT_NVAR(fieldExcept); @@ -149227,8 +148869,8 @@ static PHP_METHOD(Phalcon_Validation_Validator_Uniqueness, isUniquenessCollectio if (Z_TYPE_P(fieldExcept) == IS_ARRAY) { zephir_is_iterable(fieldExcept, &_9$$10, &_8$$10, 0, 0, "phalcon/validation/validator/uniqueness.zep", 344); for ( - ; zephir_hash_get_current_data_ex(_9$$10, (void**) &_10$$10, &_8$$10) == SUCCESS - ; zephir_hash_move_forward_ex(_9$$10, &_8$$10) + ; zend_hash_get_current_data_ex(_9$$10, (void**) &_10$$10, &_8$$10) == SUCCESS + ; zend_hash_move_forward_ex(_9$$10, &_8$$10) ) { ZEPHIR_GET_HVALUE(singleExcept, _10$$10); zephir_array_append(¬InValues, singleExcept, PH_SEPARATE, "phalcon/validation/validator/uniqueness.zep", 342); @@ -149246,8 +148888,8 @@ static PHP_METHOD(Phalcon_Validation_Validator_Uniqueness, isUniquenessCollectio } else if (_7$$6) { zephir_is_iterable(except, &_12$$13, &_11$$13, 0, 0, "phalcon/validation/validator/uniqueness.zep", 354); for ( - ; zephir_hash_get_current_data_ex(_12$$13, (void**) &_13$$13, &_11$$13) == SUCCESS - ; zephir_hash_move_forward_ex(_12$$13, &_11$$13) + ; zend_hash_get_current_data_ex(_12$$13, (void**) &_13$$13, &_11$$13) == SUCCESS + ; zend_hash_move_forward_ex(_12$$13, &_11$$13) ) { ZEPHIR_GET_HVALUE(singleExcept, _13$$13); zephir_array_append(¬InValues, singleExcept, PH_SEPARATE, "phalcon/validation/validator/uniqueness.zep", 352); @@ -149311,11 +148953,11 @@ static PHP_METHOD(Phalcon_Validation_Validator_Url, validate) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &validation, &field_param); - if (unlikely(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'field' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(field_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(field_param) == IS_STRING)) { zephir_get_strval(field, field_param); } else { ZEPHIR_INIT_VAR(field); @@ -149377,7 +149019,7 @@ static PHP_METHOD(Phalcon_Validation_Validator_Url, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_8$$3); ZVAL_STRING(_8$$3, "Url", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _2$$3, "__construct", NULL, 465, _7$$3, field, _8$$3, code); + ZEPHIR_CALL_METHOD(NULL, _2$$3, "__construct", NULL, 464, _7$$3, field, _8$$3, code); zephir_check_temp_parameter(_8$$3); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _2$$3); diff --git a/build/php5/safe/phalcon.zep.h b/build/php5/safe/phalcon.zep.h index ff2a8a493d5..a7b13fc5a00 100644 --- a/build/php5/safe/phalcon.zep.h +++ b/build/php5/safe/phalcon.zep.h @@ -17490,7 +17490,7 @@ ZEPHIR_INIT_FUNCS(phalcon_queue_beanstalk_method_entry) { PHP_ME(Phalcon_Queue_Beanstalk, readStatus, NULL, ZEND_ACC_FINAL|ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Queue_Beanstalk, readYaml, NULL, ZEND_ACC_FINAL|ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Queue_Beanstalk, read, arginfo_phalcon_queue_beanstalk_read, ZEND_ACC_PUBLIC) - PHP_ME(Phalcon_Queue_Beanstalk, write, arginfo_phalcon_queue_beanstalk_write, ZEND_ACC_PROTECTED) + PHP_ME(Phalcon_Queue_Beanstalk, write, arginfo_phalcon_queue_beanstalk_write, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Queue_Beanstalk, disconnect, NULL, ZEND_ACC_PUBLIC) PHP_ME(Phalcon_Queue_Beanstalk, quit, NULL, ZEND_ACC_PUBLIC) PHP_FE_END diff --git a/build/php5/safe/php_phalcon.h b/build/php5/safe/php_phalcon.h index a9da85ec94c..4523ebe8a59 100644 --- a/build/php5/safe/php_phalcon.h +++ b/build/php5/safe/php_phalcon.h @@ -13,7 +13,7 @@ +------------------------------------------------------------------------+ | Zephir Language | +------------------------------------------------------------------------+ - | Copyright (c) 2011-2016 Zephir Team (http://www.zephir-lang.com) | + | Copyright (c) 2011-2017 Zephir Team (http://www.zephir-lang.com) | +------------------------------------------------------------------------+ | This source file is subject to the New BSD License that is bundled | | with this package in the file docs/LICENSE.txt. | @@ -122,10 +122,6 @@ typedef zend_function zephir_fcall_cache_entry; # define HASH_KEY_NON_EXISTENT HASH_KEY_NON_EXISTANT #endif -/** Macros for branch prediction */ -#define likely(x) EXPECTED(x) -#define unlikely(x) UNEXPECTED(x) - #if defined(__GNUC__) && (defined(__clang__) || ((__GNUC__ * 100 + __GNUC_MINOR__) >= 405)) # define UNREACHABLE() __builtin_unreachable() # define ASSUME(x) if (x) {} else __builtin_unreachable() @@ -156,10 +152,6 @@ typedef zend_function zephir_fcall_cache_entry; # define __builtin_constant_p(s) (0) #endif -#ifndef ZEND_MOD_END -# define ZEND_MOD_END { NULL, NULL, NULL, 0 } -#endif - #ifndef __func__ # define __func__ __FUNCTION__ #endif @@ -170,22 +162,17 @@ typedef zend_function zephir_fcall_cache_entry; # define ZEPHIR_NO_OPT #endif -#ifdef ZTS -#define zephir_nts_static -#else -#define zephir_nts_static -#endif - -#define ZEPHIR_STATIC +#define likely(x) EXPECTED(x) +#define unlikely(x) UNEXPECTED(x) #endif #define PHP_PHALCON_NAME "phalcon" -#define PHP_PHALCON_VERSION "3.1.1" +#define PHP_PHALCON_VERSION "3.1.2" #define PHP_PHALCON_EXTNAME "phalcon" #define PHP_PHALCON_AUTHOR "Phalcon Team and contributors" -#define PHP_PHALCON_ZEPVERSION "0.9.6a-dev-3a72ba9bb5" +#define PHP_PHALCON_ZEPVERSION "0.9.7-1fae5e50ac" #define PHP_PHALCON_DESCRIPTION "Web framework delivered as a C-extension for PHP" typedef struct _zephir_struct_db { diff --git a/ext/phalcon/mvc/model.zep.c b/ext/phalcon/mvc/model.zep.c index 2d6c8043df0..dc4d99b5857 100644 --- a/ext/phalcon/mvc/model.zep.c +++ b/ext/phalcon/mvc/model.zep.c @@ -2902,10 +2902,10 @@ PHP_METHOD(Phalcon_Mvc_Model, _doLowInsert) { HashTable *_2; HashPosition _1; - zend_bool useExplicitIdentity = 0, _19, _7$$11, _16$$22; + zend_bool useExplicitIdentity = 0, _19, _7$$11, _16$$23; zephir_fcall_cache_entry *_6 = NULL, *_8 = NULL, *_12 = NULL; int ZEPHIR_LAST_CALL_STATUS; - zval *metaData, *connection, *table, *identityField, *bindSkip = NULL, *fields = NULL, *values = NULL, *bindTypes = NULL, *attributes = NULL, *bindDataTypes = NULL, *automaticAttributes = NULL, *field = NULL, *columnMap = NULL, *value = NULL, *attributeField = NULL, *success = NULL, *bindType = NULL, *defaultValue = NULL, *sequenceName = NULL, *defaultValues = NULL, *source = NULL, *schema = NULL, *snapshot = NULL, *lastInsertedId = NULL, *manager = NULL, *_0, **_3, *_4$$8 = NULL, *_5$$8 = NULL, *_9$$13 = NULL, *_10$$13 = NULL, *_11$$15 = NULL, *_13$$17 = NULL, *_14$$20, *_15$$20, *_17$$27, *_18$$27, *_20$$30 = NULL, *_21$$30 = NULL; + zval *metaData, *connection, *table, *identityField, *bindSkip = NULL, *fields = NULL, *values = NULL, *bindTypes = NULL, *attributes = NULL, *bindDataTypes = NULL, *automaticAttributes = NULL, *field = NULL, *columnMap = NULL, *value = NULL, *attributeField = NULL, *success = NULL, *bindType = NULL, *defaultValue = NULL, *sequenceName = NULL, *defaultValues = NULL, *source = NULL, *schema = NULL, *snapshot = NULL, *lastInsertedId = NULL, *manager = NULL, *_0, **_3, *_4$$8 = NULL, *_5$$8 = NULL, *_9$$14 = NULL, *_10$$14 = NULL, *_11$$16 = NULL, *_13$$18 = NULL, *_14$$21, *_15$$21, *_17$$28, *_18$$28, *_20$$31 = NULL, *_21$$31 = NULL; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 4, 0, &metaData, &connection, &table, &identityField); @@ -2939,7 +2939,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _doLowInsert) { ZEPHIR_INIT_NVAR(columnMap); ZVAL_NULL(columnMap); } - zephir_is_iterable(attributes, &_2, &_1, 0, 0, "phalcon/mvc/model.zep", 2327); + zephir_is_iterable(attributes, &_2, &_1, 0, 0, "phalcon/mvc/model.zep", 2329); for ( ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS ; zephir_hash_move_forward_ex(_2, &_1) @@ -2970,37 +2970,39 @@ PHP_METHOD(Phalcon_Mvc_Model, _doLowInsert) { _7$$11 = zephir_array_isset(defaultValues, field); } if (_7$$11) { + zephir_array_update_zval(&snapshot, attributeField, &ZEPHIR_GLOBAL(global_null), PH_COPY | PH_SEPARATE); ZEPHIR_CALL_METHOD(&value, connection, "getdefaultvalue", &_8, 0); zephir_check_call_status(); + } else { + zephir_array_update_zval(&snapshot, attributeField, &value, PH_COPY | PH_SEPARATE); } ZEPHIR_OBS_NVAR(bindType); if (!(zephir_array_isset_fetch(&bindType, bindDataTypes, field, 0 TSRMLS_CC))) { - ZEPHIR_INIT_NVAR(_9$$13); - object_init_ex(_9$$13, phalcon_mvc_model_exception_ce); - ZEPHIR_INIT_LNVAR(_10$$13); - ZEPHIR_CONCAT_SVS(_10$$13, "Column '", field, "' have not defined a bind data type"); - ZEPHIR_CALL_METHOD(NULL, _9$$13, "__construct", &_6, 9, _10$$13); + ZEPHIR_INIT_NVAR(_9$$14); + object_init_ex(_9$$14, phalcon_mvc_model_exception_ce); + ZEPHIR_INIT_LNVAR(_10$$14); + ZEPHIR_CONCAT_SVS(_10$$14, "Column '", field, "' have not defined a bind data type"); + ZEPHIR_CALL_METHOD(NULL, _9$$14, "__construct", &_6, 9, _10$$14); zephir_check_call_status(); - zephir_throw_exception_debug(_9$$13, "phalcon/mvc/model.zep", 2300 TSRMLS_CC); + zephir_throw_exception_debug(_9$$14, "phalcon/mvc/model.zep", 2303 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } - zephir_array_append(&fields, field, PH_SEPARATE, "phalcon/mvc/model.zep", 2303); - zephir_array_append(&values, value, PH_SEPARATE, "phalcon/mvc/model.zep", 2303); - zephir_array_append(&bindTypes, bindType, PH_SEPARATE, "phalcon/mvc/model.zep", 2303); - zephir_array_update_zval(&snapshot, attributeField, &value, PH_COPY | PH_SEPARATE); + zephir_array_append(&fields, field, PH_SEPARATE, "phalcon/mvc/model.zep", 2306); + zephir_array_append(&values, value, PH_SEPARATE, "phalcon/mvc/model.zep", 2306); + zephir_array_append(&bindTypes, bindType, PH_SEPARATE, "phalcon/mvc/model.zep", 2306); } else { if (zephir_array_isset(defaultValues, field)) { - ZEPHIR_CALL_METHOD(&_11$$15, connection, "getdefaultvalue", &_12, 0); + ZEPHIR_CALL_METHOD(&_11$$16, connection, "getdefaultvalue", &_12, 0); zephir_check_call_status(); - zephir_array_append(&values, _11$$15, PH_SEPARATE, "phalcon/mvc/model.zep", 2308); + zephir_array_append(&values, _11$$16, PH_SEPARATE, "phalcon/mvc/model.zep", 2310); zephir_array_update_zval(&snapshot, attributeField, &ZEPHIR_GLOBAL(global_null), PH_COPY | PH_SEPARATE); } else { - zephir_array_append(&values, value, PH_SEPARATE, "phalcon/mvc/model.zep", 2314); + zephir_array_append(&values, value, PH_SEPARATE, "phalcon/mvc/model.zep", 2316); zephir_array_update_zval(&snapshot, attributeField, &value, PH_COPY | PH_SEPARATE); } - zephir_array_append(&fields, field, PH_SEPARATE, "phalcon/mvc/model.zep", 2318); - zephir_array_append(&bindTypes, bindSkip, PH_SEPARATE, "phalcon/mvc/model.zep", 2318); + zephir_array_append(&fields, field, PH_SEPARATE, "phalcon/mvc/model.zep", 2320); + zephir_array_append(&bindTypes, bindSkip, PH_SEPARATE, "phalcon/mvc/model.zep", 2320); } } } @@ -3008,22 +3010,22 @@ PHP_METHOD(Phalcon_Mvc_Model, _doLowInsert) { if (!ZEPHIR_IS_FALSE_IDENTICAL(identityField)) { ZEPHIR_CALL_METHOD(&defaultValue, connection, "getdefaultidvalue", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_13$$17, connection, "useexplicitidvalue", NULL, 0); + ZEPHIR_CALL_METHOD(&_13$$18, connection, "useexplicitidvalue", NULL, 0); zephir_check_call_status(); - useExplicitIdentity = zephir_get_boolval(_13$$17); + useExplicitIdentity = zephir_get_boolval(_13$$18); if (useExplicitIdentity) { - zephir_array_append(&fields, identityField, PH_SEPARATE, "phalcon/mvc/model.zep", 2336); + zephir_array_append(&fields, identityField, PH_SEPARATE, "phalcon/mvc/model.zep", 2338); } if (Z_TYPE_P(columnMap) == IS_ARRAY) { ZEPHIR_OBS_NVAR(attributeField); if (!(zephir_array_isset_fetch(&attributeField, columnMap, identityField, 0 TSRMLS_CC))) { - ZEPHIR_INIT_VAR(_14$$20); - object_init_ex(_14$$20, phalcon_mvc_model_exception_ce); - ZEPHIR_INIT_VAR(_15$$20); - ZEPHIR_CONCAT_SVS(_15$$20, "Identity column '", identityField, "' isn't part of the column map"); - ZEPHIR_CALL_METHOD(NULL, _14$$20, "__construct", &_6, 9, _15$$20); + ZEPHIR_INIT_VAR(_14$$21); + object_init_ex(_14$$21, phalcon_mvc_model_exception_ce); + ZEPHIR_INIT_VAR(_15$$21); + ZEPHIR_CONCAT_SVS(_15$$21, "Identity column '", identityField, "' isn't part of the column map"); + ZEPHIR_CALL_METHOD(NULL, _14$$21, "__construct", &_6, 9, _15$$21); zephir_check_call_status(); - zephir_throw_exception_debug(_14$$20, "phalcon/mvc/model.zep", 2344 TSRMLS_CC); + zephir_throw_exception_debug(_14$$21, "phalcon/mvc/model.zep", 2346 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -3032,38 +3034,38 @@ PHP_METHOD(Phalcon_Mvc_Model, _doLowInsert) { } ZEPHIR_OBS_NVAR(value); if (zephir_fetch_property_zval(&value, this_ptr, attributeField, PH_SILENT_CC)) { - _16$$22 = Z_TYPE_P(value) == IS_NULL; - if (!(_16$$22)) { - _16$$22 = ZEPHIR_IS_STRING_IDENTICAL(value, ""); + _16$$23 = Z_TYPE_P(value) == IS_NULL; + if (!(_16$$23)) { + _16$$23 = ZEPHIR_IS_STRING_IDENTICAL(value, ""); } - if (_16$$22) { + if (_16$$23) { if (useExplicitIdentity) { - zephir_array_append(&values, defaultValue, PH_SEPARATE, "phalcon/mvc/model.zep", 2357); - zephir_array_append(&bindTypes, bindSkip, PH_SEPARATE, "phalcon/mvc/model.zep", 2357); + zephir_array_append(&values, defaultValue, PH_SEPARATE, "phalcon/mvc/model.zep", 2359); + zephir_array_append(&bindTypes, bindSkip, PH_SEPARATE, "phalcon/mvc/model.zep", 2359); } } else { if (!(useExplicitIdentity)) { - zephir_array_append(&fields, identityField, PH_SEPARATE, "phalcon/mvc/model.zep", 2365); + zephir_array_append(&fields, identityField, PH_SEPARATE, "phalcon/mvc/model.zep", 2367); } ZEPHIR_OBS_NVAR(bindType); if (!(zephir_array_isset_fetch(&bindType, bindDataTypes, identityField, 0 TSRMLS_CC))) { - ZEPHIR_INIT_VAR(_17$$27); - object_init_ex(_17$$27, phalcon_mvc_model_exception_ce); - ZEPHIR_INIT_VAR(_18$$27); - ZEPHIR_CONCAT_SVS(_18$$27, "Identity column '", identityField, "' isn\\'t part of the table columns"); - ZEPHIR_CALL_METHOD(NULL, _17$$27, "__construct", &_6, 9, _18$$27); + ZEPHIR_INIT_VAR(_17$$28); + object_init_ex(_17$$28, phalcon_mvc_model_exception_ce); + ZEPHIR_INIT_VAR(_18$$28); + ZEPHIR_CONCAT_SVS(_18$$28, "Identity column '", identityField, "' isn\\'t part of the table columns"); + ZEPHIR_CALL_METHOD(NULL, _17$$28, "__construct", &_6, 9, _18$$28); zephir_check_call_status(); - zephir_throw_exception_debug(_17$$27, "phalcon/mvc/model.zep", 2372 TSRMLS_CC); + zephir_throw_exception_debug(_17$$28, "phalcon/mvc/model.zep", 2374 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } - zephir_array_append(&values, value, PH_SEPARATE, "phalcon/mvc/model.zep", 2375); - zephir_array_append(&bindTypes, bindType, PH_SEPARATE, "phalcon/mvc/model.zep", 2375); + zephir_array_append(&values, value, PH_SEPARATE, "phalcon/mvc/model.zep", 2377); + zephir_array_append(&bindTypes, bindType, PH_SEPARATE, "phalcon/mvc/model.zep", 2377); } } else { if (useExplicitIdentity) { - zephir_array_append(&values, defaultValue, PH_SEPARATE, "phalcon/mvc/model.zep", 2379); - zephir_array_append(&bindTypes, bindSkip, PH_SEPARATE, "phalcon/mvc/model.zep", 2379); + zephir_array_append(&values, defaultValue, PH_SEPARATE, "phalcon/mvc/model.zep", 2381); + zephir_array_append(&bindTypes, bindSkip, PH_SEPARATE, "phalcon/mvc/model.zep", 2381); } } } @@ -3076,9 +3078,9 @@ PHP_METHOD(Phalcon_Mvc_Model, _doLowInsert) { if (_19) { ZEPHIR_INIT_VAR(sequenceName); ZVAL_NULL(sequenceName); - ZEPHIR_CALL_METHOD(&_20$$30, connection, "supportsequences", NULL, 0); + ZEPHIR_CALL_METHOD(&_20$$31, connection, "supportsequences", NULL, 0); zephir_check_call_status(); - if (ZEPHIR_IS_TRUE_IDENTICAL(_20$$30)) { + if (ZEPHIR_IS_TRUE_IDENTICAL(_20$$31)) { if ((zephir_method_exists_ex(this_ptr, SS("getsequencename") TSRMLS_CC) == SUCCESS)) { ZEPHIR_CALL_METHOD(&sequenceName, this_ptr, "getsequencename", NULL, 0); zephir_check_call_status(); @@ -3099,9 +3101,9 @@ PHP_METHOD(Phalcon_Mvc_Model, _doLowInsert) { zephir_check_call_status(); zephir_update_property_zval_zval(this_ptr, attributeField, lastInsertedId TSRMLS_CC); zephir_array_update_zval(&snapshot, attributeField, &lastInsertedId, PH_COPY | PH_SEPARATE); - ZEPHIR_CALL_METHOD(&_21$$30, manager, "iskeepingsnapshots", NULL, 0, this_ptr); + ZEPHIR_CALL_METHOD(&_21$$31, manager, "iskeepingsnapshots", NULL, 0, this_ptr); zephir_check_call_status(); - if (zephir_is_true(_21$$30)) { + if (zephir_is_true(_21$$31)) { zephir_update_property_this(this_ptr, SL("_snapshot"), snapshot TSRMLS_CC); } zephir_update_property_this(this_ptr, SL("_uniqueParams"), ZEPHIR_GLOBAL(global_null) TSRMLS_CC); @@ -3171,7 +3173,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _doLowUpdate) { ZEPHIR_INIT_NVAR(columnMap); ZVAL_NULL(columnMap); } - zephir_is_iterable(nonPrimary, &_3, &_2, 0, 0, "phalcon/mvc/model.zep", 2596); + zephir_is_iterable(nonPrimary, &_3, &_2, 0, 0, "phalcon/mvc/model.zep", 2598); for ( ; zephir_hash_get_current_data_ex(_3, (void**) &_4, &_2) == SUCCESS ; zephir_hash_move_forward_ex(_3, &_2) @@ -3186,7 +3188,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _doLowUpdate) { ZEPHIR_CONCAT_SVS(_6$$9, "Column '", field, "' have not defined a bind data type"); ZEPHIR_CALL_METHOD(NULL, _5$$9, "__construct", &_7, 9, _6$$9); zephir_check_call_status(); - zephir_throw_exception_debug(_5$$9, "phalcon/mvc/model.zep", 2488 TSRMLS_CC); + zephir_throw_exception_debug(_5$$9, "phalcon/mvc/model.zep", 2490 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -3199,7 +3201,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _doLowUpdate) { ZEPHIR_CONCAT_SVS(_9$$11, "Column '", field, "' isn't part of the column map"); ZEPHIR_CALL_METHOD(NULL, _8$$11, "__construct", &_7, 9, _9$$11); zephir_check_call_status(); - zephir_throw_exception_debug(_8$$11, "phalcon/mvc/model.zep", 2496 TSRMLS_CC); + zephir_throw_exception_debug(_8$$11, "phalcon/mvc/model.zep", 2498 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -3209,9 +3211,9 @@ PHP_METHOD(Phalcon_Mvc_Model, _doLowUpdate) { ZEPHIR_OBS_NVAR(value); if (zephir_fetch_property_zval(&value, this_ptr, attributeField, PH_SILENT_CC)) { if (!(useDynamicUpdate)) { - zephir_array_append(&fields, field, PH_SEPARATE, "phalcon/mvc/model.zep", 2512); - zephir_array_append(&values, value, PH_SEPARATE, "phalcon/mvc/model.zep", 2512); - zephir_array_append(&bindTypes, bindType, PH_SEPARATE, "phalcon/mvc/model.zep", 2513); + zephir_array_append(&fields, field, PH_SEPARATE, "phalcon/mvc/model.zep", 2514); + zephir_array_append(&values, value, PH_SEPARATE, "phalcon/mvc/model.zep", 2514); + zephir_array_append(&bindTypes, bindType, PH_SEPARATE, "phalcon/mvc/model.zep", 2515); } else { ZEPHIR_OBS_NVAR(snapshotValue); if (!(zephir_array_isset_fetch(&snapshotValue, snapshot, attributeField, 0 TSRMLS_CC))) { @@ -3231,7 +3233,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _doLowUpdate) { ZEPHIR_CONCAT_SVS(_11$$22, "Column '", field, "' have not defined a data type"); ZEPHIR_CALL_METHOD(NULL, _10$$22, "__construct", &_7, 9, _11$$22); zephir_check_call_status(); - zephir_throw_exception_debug(_10$$22, "phalcon/mvc/model.zep", 2538 TSRMLS_CC); + zephir_throw_exception_debug(_10$$22, "phalcon/mvc/model.zep", 2540 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -3265,17 +3267,17 @@ PHP_METHOD(Phalcon_Mvc_Model, _doLowUpdate) { } } if (changed) { - zephir_array_append(&fields, field, PH_SEPARATE, "phalcon/mvc/model.zep", 2580); - zephir_array_append(&values, value, PH_SEPARATE, "phalcon/mvc/model.zep", 2580); - zephir_array_append(&bindTypes, bindType, PH_SEPARATE, "phalcon/mvc/model.zep", 2581); + zephir_array_append(&fields, field, PH_SEPARATE, "phalcon/mvc/model.zep", 2582); + zephir_array_append(&values, value, PH_SEPARATE, "phalcon/mvc/model.zep", 2582); + zephir_array_append(&bindTypes, bindType, PH_SEPARATE, "phalcon/mvc/model.zep", 2583); } } zephir_array_update_zval(&newSnapshot, attributeField, &value, PH_COPY | PH_SEPARATE); } else { zephir_array_update_zval(&newSnapshot, attributeField, &ZEPHIR_GLOBAL(global_null), PH_COPY | PH_SEPARATE); - zephir_array_append(&fields, field, PH_SEPARATE, "phalcon/mvc/model.zep", 2588); - zephir_array_append(&values, ZEPHIR_GLOBAL(global_null), PH_SEPARATE, "phalcon/mvc/model.zep", 2588); - zephir_array_append(&bindTypes, bindSkip, PH_SEPARATE, "phalcon/mvc/model.zep", 2588); + zephir_array_append(&fields, field, PH_SEPARATE, "phalcon/mvc/model.zep", 2590); + zephir_array_append(&values, ZEPHIR_GLOBAL(global_null), PH_SEPARATE, "phalcon/mvc/model.zep", 2590); + zephir_array_append(&bindTypes, bindSkip, PH_SEPARATE, "phalcon/mvc/model.zep", 2590); } } } @@ -3292,12 +3294,12 @@ PHP_METHOD(Phalcon_Mvc_Model, _doLowUpdate) { ZEPHIR_CALL_METHOD(&primaryKeys, metaData, "getprimarykeyattributes", NULL, 0, this_ptr); zephir_check_call_status(); if (!(zephir_fast_count_int(primaryKeys TSRMLS_CC))) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "A primary key must be defined in the model in order to perform the operation", "phalcon/mvc/model.zep", 2615); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "A primary key must be defined in the model in order to perform the operation", "phalcon/mvc/model.zep", 2617); return; } ZEPHIR_INIT_NVAR(uniqueParams); array_init(uniqueParams); - zephir_is_iterable(primaryKeys, &_18$$31, &_17$$31, 0, 0, "phalcon/mvc/model.zep", 2640); + zephir_is_iterable(primaryKeys, &_18$$31, &_17$$31, 0, 0, "phalcon/mvc/model.zep", 2642); for ( ; zephir_hash_get_current_data_ex(_18$$31, (void**) &_19$$31, &_17$$31) == SUCCESS ; zephir_hash_move_forward_ex(_18$$31, &_17$$31) @@ -3312,7 +3314,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _doLowUpdate) { ZEPHIR_CONCAT_SVS(_21$$35, "Column '", field, "' isn't part of the column map"); ZEPHIR_CALL_METHOD(NULL, _20$$35, "__construct", &_7, 9, _21$$35); zephir_check_call_status(); - zephir_throw_exception_debug(_20$$35, "phalcon/mvc/model.zep", 2626 TSRMLS_CC); + zephir_throw_exception_debug(_20$$35, "phalcon/mvc/model.zep", 2628 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -3322,10 +3324,10 @@ PHP_METHOD(Phalcon_Mvc_Model, _doLowUpdate) { ZEPHIR_OBS_NVAR(value); if (zephir_fetch_property_zval(&value, this_ptr, attributeField, PH_SILENT_CC)) { zephir_array_update_zval(&newSnapshot, attributeField, &value, PH_COPY | PH_SEPARATE); - zephir_array_append(&uniqueParams, value, PH_SEPARATE, "phalcon/mvc/model.zep", 2634); + zephir_array_append(&uniqueParams, value, PH_SEPARATE, "phalcon/mvc/model.zep", 2636); } else { zephir_array_update_zval(&newSnapshot, attributeField, &ZEPHIR_GLOBAL(global_null), PH_COPY | PH_SEPARATE); - zephir_array_append(&uniqueParams, ZEPHIR_GLOBAL(global_null), PH_SEPARATE, "phalcon/mvc/model.zep", 2637); + zephir_array_append(&uniqueParams, ZEPHIR_GLOBAL(global_null), PH_SEPARATE, "phalcon/mvc/model.zep", 2639); } } } @@ -3393,7 +3395,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _preSaveRelatedRecords) { ZEPHIR_CALL_METHOD(&_1, this_ptr, "getmodelsmanager", NULL, 0); zephir_check_call_status(); ZEPHIR_CPY_WRT(manager, _1); - zephir_is_iterable(related, &_3, &_2, 0, 0, "phalcon/mvc/model.zep", 2756); + zephir_is_iterable(related, &_3, &_2, 0, 0, "phalcon/mvc/model.zep", 2758); for ( ; zephir_hash_get_current_data_ex(_3, (void**) &_4, &_2) == SUCCESS ; zephir_hash_move_forward_ex(_3, &_2) @@ -3416,7 +3418,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _preSaveRelatedRecords) { } ZEPHIR_CALL_METHOD(NULL, connection, "rollback", &_8, 0, _7$$6); zephir_check_call_status(); - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Only objects can be stored as part of belongs-to relations", "phalcon/mvc/model.zep", 2705); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Only objects can be stored as part of belongs-to relations", "phalcon/mvc/model.zep", 2707); return; } ZEPHIR_CALL_METHOD(&columns, relation, "getfields", NULL, 0); @@ -3434,7 +3436,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _preSaveRelatedRecords) { } ZEPHIR_CALL_METHOD(NULL, connection, "rollback", &_10, 0, _9$$7); zephir_check_call_status(); - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Not implemented", "phalcon/mvc/model.zep", 2714); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Not implemented", "phalcon/mvc/model.zep", 2716); return; } ZEPHIR_CALL_METHOD(&_11$$5, record, "save", NULL, 0); @@ -3442,7 +3444,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _preSaveRelatedRecords) { if (!(zephir_is_true(_11$$5))) { ZEPHIR_CALL_METHOD(&_12$$8, record, "getmessages", NULL, 0); zephir_check_call_status(); - zephir_is_iterable(_12$$8, &_14$$8, &_13$$8, 0, 0, "phalcon/mvc/model.zep", 2743); + zephir_is_iterable(_12$$8, &_14$$8, &_13$$8, 0, 0, "phalcon/mvc/model.zep", 2745); for ( ; zephir_hash_get_current_data_ex(_14$$8, (void**) &_15$$8, &_13$$8) == SUCCESS ; zephir_hash_move_forward_ex(_14$$8, &_13$$8) @@ -3502,7 +3504,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _postSaveRelatedRecords) { ZEPHIR_CALL_METHOD(&_0, this_ptr, "getmodelsmanager", NULL, 0); zephir_check_call_status(); ZEPHIR_CPY_WRT(manager, _0); - zephir_is_iterable(related, &_2, &_1, 0, 0, "phalcon/mvc/model.zep", 2947); + zephir_is_iterable(related, &_2, &_1, 0, 0, "phalcon/mvc/model.zep", 2949); for ( ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS ; zephir_hash_move_forward_ex(_2, &_1) @@ -3531,7 +3533,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _postSaveRelatedRecords) { } ZEPHIR_CALL_METHOD(NULL, connection, "rollback", &_9, 0, _8$$6); zephir_check_call_status(); - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Only objects/arrays can be stored as part of has-many/has-one/has-many-to-many relations", "phalcon/mvc/model.zep", 2795); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Only objects/arrays can be stored as part of has-many/has-one/has-many-to-many relations", "phalcon/mvc/model.zep", 2797); return; } ZEPHIR_CALL_METHOD(&columns, relation, "getfields", NULL, 0); @@ -3549,7 +3551,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _postSaveRelatedRecords) { } ZEPHIR_CALL_METHOD(NULL, connection, "rollback", &_11, 0, _10$$7); zephir_check_call_status(); - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Not implemented", "phalcon/mvc/model.zep", 2804); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Not implemented", "phalcon/mvc/model.zep", 2806); return; } if (Z_TYPE_P(record) == IS_OBJECT) { @@ -3575,7 +3577,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _postSaveRelatedRecords) { ZEPHIR_CONCAT_SVS(_15$$10, "The column '", columns, "' needs to be present in the model"); ZEPHIR_CALL_METHOD(NULL, _14$$10, "__construct", &_16, 9, _15$$10); zephir_check_call_status(); - zephir_throw_exception_debug(_14$$10, "phalcon/mvc/model.zep", 2818 TSRMLS_CC); + zephir_throw_exception_debug(_14$$10, "phalcon/mvc/model.zep", 2820 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -3590,7 +3592,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _postSaveRelatedRecords) { ZEPHIR_CALL_METHOD(&intermediateReferencedFields, relation, "getintermediatereferencedfields", NULL, 0); zephir_check_call_status(); } - zephir_is_iterable(relatedRecords, &_19$$4, &_18$$4, 0, 0, "phalcon/mvc/model.zep", 2933); + zephir_is_iterable(relatedRecords, &_19$$4, &_18$$4, 0, 0, "phalcon/mvc/model.zep", 2935); for ( ; zephir_hash_get_current_data_ex(_19$$4, (void**) &_20$$4, &_18$$4) == SUCCESS ; zephir_hash_move_forward_ex(_19$$4, &_18$$4) @@ -3605,7 +3607,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _postSaveRelatedRecords) { if (!(zephir_is_true(_21$$12))) { ZEPHIR_CALL_METHOD(&_22$$14, recordAfter, "getmessages", NULL, 0); zephir_check_call_status(); - zephir_is_iterable(_22$$14, &_24$$14, &_23$$14, 0, 0, "phalcon/mvc/model.zep", 2875); + zephir_is_iterable(_22$$14, &_24$$14, &_23$$14, 0, 0, "phalcon/mvc/model.zep", 2877); for ( ; zephir_hash_get_current_data_ex(_24$$14, (void**) &_25$$14, &_23$$14) == SUCCESS ; zephir_hash_move_forward_ex(_24$$14, &_23$$14) @@ -3644,7 +3646,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _postSaveRelatedRecords) { if (!(zephir_is_true(_31$$17))) { ZEPHIR_CALL_METHOD(&_32$$18, intermediateModel, "getmessages", NULL, 0); zephir_check_call_status(); - zephir_is_iterable(_32$$18, &_34$$18, &_33$$18, 0, 0, "phalcon/mvc/model.zep", 2927); + zephir_is_iterable(_32$$18, &_34$$18, &_33$$18, 0, 0, "phalcon/mvc/model.zep", 2929); for ( ; zephir_hash_get_current_data_ex(_34$$18, (void**) &_35$$18, &_33$$18) == SUCCESS ; zephir_hash_move_forward_ex(_34$$18, &_33$$18) @@ -3685,7 +3687,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _postSaveRelatedRecords) { ZEPHIR_CONCAT_SVSVS(_41$$22, "There are no defined relations for the model '", className, "' using alias '", name, "'"); ZEPHIR_CALL_METHOD(NULL, _40$$22, "__construct", &_16, 9, _41$$22); zephir_check_call_status(); - zephir_throw_exception_debug(_40$$22, "phalcon/mvc/model.zep", 2939 TSRMLS_CC); + zephir_throw_exception_debug(_40$$22, "phalcon/mvc/model.zep", 2941 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -3820,7 +3822,7 @@ PHP_METHOD(Phalcon_Mvc_Model, save) { zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, _9$$12, "__construct", NULL, 319, this_ptr, _10$$12); zephir_check_call_status(); - zephir_throw_exception_debug(_9$$12, "phalcon/mvc/model.zep", 3061 TSRMLS_CC); + zephir_throw_exception_debug(_9$$12, "phalcon/mvc/model.zep", 3063 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -4066,10 +4068,10 @@ PHP_METHOD(Phalcon_Mvc_Model, delete) { ZVAL_NULL(columnMap); } if (!(zephir_fast_count_int(primaryKeys TSRMLS_CC))) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "A primary key must be defined in the model in order to perform the operation", "phalcon/mvc/model.zep", 3262); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "A primary key must be defined in the model in order to perform the operation", "phalcon/mvc/model.zep", 3264); return; } - zephir_is_iterable(primaryKeys, &_4, &_3, 0, 0, "phalcon/mvc/model.zep", 3305); + zephir_is_iterable(primaryKeys, &_4, &_3, 0, 0, "phalcon/mvc/model.zep", 3307); for ( ; zephir_hash_get_current_data_ex(_4, (void**) &_5, &_3) == SUCCESS ; zephir_hash_move_forward_ex(_4, &_3) @@ -4083,7 +4085,7 @@ PHP_METHOD(Phalcon_Mvc_Model, delete) { ZEPHIR_CONCAT_SVS(_7$$9, "Column '", primaryKey, "' have not defined a bind data type"); ZEPHIR_CALL_METHOD(NULL, _6$$9, "__construct", &_8, 9, _7$$9); zephir_check_call_status(); - zephir_throw_exception_debug(_6$$9, "phalcon/mvc/model.zep", 3274 TSRMLS_CC); + zephir_throw_exception_debug(_6$$9, "phalcon/mvc/model.zep", 3276 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -4096,7 +4098,7 @@ PHP_METHOD(Phalcon_Mvc_Model, delete) { ZEPHIR_CONCAT_SVS(_10$$11, "Column '", primaryKey, "' isn't part of the column map"); ZEPHIR_CALL_METHOD(NULL, _9$$11, "__construct", &_8, 9, _10$$11); zephir_check_call_status(); - zephir_throw_exception_debug(_9$$11, "phalcon/mvc/model.zep", 3282 TSRMLS_CC); + zephir_throw_exception_debug(_9$$11, "phalcon/mvc/model.zep", 3284 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -4111,17 +4113,17 @@ PHP_METHOD(Phalcon_Mvc_Model, delete) { ZEPHIR_CONCAT_SVS(_12$$13, "Cannot delete the record because the primary key attribute: '", attributeField, "' wasn't set"); ZEPHIR_CALL_METHOD(NULL, _11$$13, "__construct", &_8, 9, _12$$13); zephir_check_call_status(); - zephir_throw_exception_debug(_11$$13, "phalcon/mvc/model.zep", 3294 TSRMLS_CC); + zephir_throw_exception_debug(_11$$13, "phalcon/mvc/model.zep", 3296 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } - zephir_array_append(&values, value, PH_SEPARATE, "phalcon/mvc/model.zep", 3300); + zephir_array_append(&values, value, PH_SEPARATE, "phalcon/mvc/model.zep", 3302); ZEPHIR_CALL_METHOD(&_13$$8, writeConnection, "escapeidentifier", &_14, 0, primaryKey); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_15$$8); ZEPHIR_CONCAT_VS(_15$$8, _13$$8, " = ?"); - zephir_array_append(&conditions, _15$$8, PH_SEPARATE, "phalcon/mvc/model.zep", 3301); - zephir_array_append(&bindTypes, bindType, PH_SEPARATE, "phalcon/mvc/model.zep", 3302); + zephir_array_append(&conditions, _15$$8, PH_SEPARATE, "phalcon/mvc/model.zep", 3303); + zephir_array_append(&bindTypes, bindType, PH_SEPARATE, "phalcon/mvc/model.zep", 3304); } if (ZEPHIR_GLOBAL(orm).events) { if (0) { @@ -4209,7 +4211,7 @@ PHP_METHOD(Phalcon_Mvc_Model, refresh) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_dirtyState"), PH_NOISY_CC); if (!ZEPHIR_IS_LONG(_0, 0)) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The record cannot be refreshed because it does not exist or is deleted", "phalcon/mvc/model.zep", 3380); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The record cannot be refreshed because it does not exist or is deleted", "phalcon/mvc/model.zep", 3382); return; } ZEPHIR_CALL_METHOD(&metaData, this_ptr, "getmodelsmetadata", NULL, 0); @@ -4236,7 +4238,7 @@ PHP_METHOD(Phalcon_Mvc_Model, refresh) { ZEPHIR_CALL_METHOD(&_2$$6, this_ptr, "_exists", NULL, 0, metaData, readConnection, table); zephir_check_call_status(); if (!(zephir_is_true(_2$$6))) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The record cannot be refreshed because it does not exist or is deleted", "phalcon/mvc/model.zep", 3403); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The record cannot be refreshed because it does not exist or is deleted", "phalcon/mvc/model.zep", 3405); return; } ZEPHIR_OBS_NVAR(uniqueKey); @@ -4245,14 +4247,14 @@ PHP_METHOD(Phalcon_Mvc_Model, refresh) { ZEPHIR_OBS_VAR(uniqueParams); zephir_read_property_this(&uniqueParams, this_ptr, SL("_uniqueParams"), PH_NOISY_CC); if (Z_TYPE_P(uniqueParams) != IS_ARRAY) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The record cannot be refreshed because it does not exist or is deleted", "phalcon/mvc/model.zep", 3411); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The record cannot be refreshed because it does not exist or is deleted", "phalcon/mvc/model.zep", 3413); return; } ZEPHIR_INIT_VAR(fields); array_init(fields); ZEPHIR_CALL_METHOD(&_3, metaData, "getattributes", NULL, 0, this_ptr); zephir_check_call_status(); - zephir_is_iterable(_3, &_5, &_4, 0, 0, "phalcon/mvc/model.zep", 3425); + zephir_is_iterable(_3, &_5, &_4, 0, 0, "phalcon/mvc/model.zep", 3427); for ( ; zephir_hash_get_current_data_ex(_5, (void**) &_6, &_4) == SUCCESS ; zephir_hash_move_forward_ex(_5, &_4) @@ -4261,7 +4263,7 @@ PHP_METHOD(Phalcon_Mvc_Model, refresh) { ZEPHIR_INIT_NVAR(_7$$9); zephir_create_array(_7$$9, 1, 0 TSRMLS_CC); zephir_array_fast_append(_7$$9, attribute); - zephir_array_append(&fields, _7$$9, PH_SEPARATE, "phalcon/mvc/model.zep", 3419); + zephir_array_append(&fields, _7$$9, PH_SEPARATE, "phalcon/mvc/model.zep", 3421); } ZEPHIR_CALL_METHOD(&dialect, readConnection, "getdialect", NULL, 0); zephir_check_call_status(); @@ -4460,7 +4462,7 @@ PHP_METHOD(Phalcon_Mvc_Model, skipAttributesOnCreate) { ZEPHIR_INIT_VAR(keysAttributes); array_init(keysAttributes); - zephir_is_iterable(attributes, &_1, &_0, 0, 0, "phalcon/mvc/model.zep", 3539); + zephir_is_iterable(attributes, &_1, &_0, 0, 0, "phalcon/mvc/model.zep", 3541); for ( ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS ; zephir_hash_move_forward_ex(_1, &_0) @@ -4512,7 +4514,7 @@ PHP_METHOD(Phalcon_Mvc_Model, skipAttributesOnUpdate) { ZEPHIR_INIT_VAR(keysAttributes); array_init(keysAttributes); - zephir_is_iterable(attributes, &_1, &_0, 0, 0, "phalcon/mvc/model.zep", 3571); + zephir_is_iterable(attributes, &_1, &_0, 0, 0, "phalcon/mvc/model.zep", 3573); for ( ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS ; zephir_hash_move_forward_ex(_1, &_0) @@ -4564,7 +4566,7 @@ PHP_METHOD(Phalcon_Mvc_Model, allowEmptyStringValues) { ZEPHIR_INIT_VAR(keysAttributes); array_init(keysAttributes); - zephir_is_iterable(attributes, &_1, &_0, 0, 0, "phalcon/mvc/model.zep", 3603); + zephir_is_iterable(attributes, &_1, &_0, 0, 0, "phalcon/mvc/model.zep", 3605); for ( ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS ; zephir_hash_move_forward_ex(_1, &_0) @@ -4905,7 +4907,7 @@ PHP_METHOD(Phalcon_Mvc_Model, setSnapshotData) { if (Z_TYPE_P(columnMap) == IS_ARRAY) { ZEPHIR_INIT_VAR(snapshot); array_init(snapshot); - zephir_is_iterable(data, &_1$$3, &_0$$3, 0, 0, "phalcon/mvc/model.zep", 3828); + zephir_is_iterable(data, &_1$$3, &_0$$3, 0, 0, "phalcon/mvc/model.zep", 3830); for ( ; zephir_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS ; zephir_hash_move_forward_ex(_1$$3, &_0$$3) @@ -4924,7 +4926,7 @@ PHP_METHOD(Phalcon_Mvc_Model, setSnapshotData) { ZEPHIR_CONCAT_SVS(_4$$7, "Column '", key, "' doesn't make part of the column map"); ZEPHIR_CALL_METHOD(NULL, _3$$7, "__construct", &_5, 9, _4$$7); zephir_check_call_status(); - zephir_throw_exception_debug(_3$$7, "phalcon/mvc/model.zep", 3810 TSRMLS_CC); + zephir_throw_exception_debug(_3$$7, "phalcon/mvc/model.zep", 3812 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } else { @@ -4941,7 +4943,7 @@ PHP_METHOD(Phalcon_Mvc_Model, setSnapshotData) { ZEPHIR_CONCAT_SVS(_7$$11, "Column '", key, "' doesn't make part of the column map"); ZEPHIR_CALL_METHOD(NULL, _6$$11, "__construct", &_5, 9, _7$$11); zephir_check_call_status(); - zephir_throw_exception_debug(_6$$11, "phalcon/mvc/model.zep", 3819 TSRMLS_CC); + zephir_throw_exception_debug(_6$$11, "phalcon/mvc/model.zep", 3821 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } else { @@ -5036,12 +5038,12 @@ PHP_METHOD(Phalcon_Mvc_Model, getChangedFields) { ZEPHIR_OBS_VAR(snapshot); zephir_read_property_this(&snapshot, this_ptr, SL("_snapshot"), PH_NOISY_CC); if (Z_TYPE_P(snapshot) != IS_ARRAY) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The record doesn't have a valid data snapshot", "phalcon/mvc/model.zep", 3896); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The record doesn't have a valid data snapshot", "phalcon/mvc/model.zep", 3898); return; } _0 = zephir_fetch_nproperty_this(this_ptr, SL("_dirtyState"), PH_NOISY_CC); if (!ZEPHIR_IS_LONG(_0, 0)) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Change checking cannot be performed because the object has not been persisted or is deleted", "phalcon/mvc/model.zep", 3903); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Change checking cannot be performed because the object has not been persisted or is deleted", "phalcon/mvc/model.zep", 3905); return; } ZEPHIR_CALL_METHOD(&metaData, this_ptr, "getmodelsmetadata", NULL, 0); @@ -5057,7 +5059,7 @@ PHP_METHOD(Phalcon_Mvc_Model, getChangedFields) { ZEPHIR_INIT_VAR(changed); array_init(changed); ZEPHIR_INIT_VAR(_1); - zephir_is_iterable(allAttributes, &_3, &_2, 0, 0, "phalcon/mvc/model.zep", 3956); + zephir_is_iterable(allAttributes, &_3, &_2, 0, 0, "phalcon/mvc/model.zep", 3958); for ( ; zephir_hash_get_current_data_ex(_3, (void**) &_4, &_2) == SUCCESS ; zephir_hash_move_forward_ex(_3, &_2) @@ -5065,17 +5067,17 @@ PHP_METHOD(Phalcon_Mvc_Model, getChangedFields) { ZEPHIR_GET_HMKEY(name, _3, _2); ZEPHIR_GET_HVALUE(_1, _4); if (!(zephir_array_isset(snapshot, name))) { - zephir_array_append(&changed, name, PH_SEPARATE, "phalcon/mvc/model.zep", 3935); + zephir_array_append(&changed, name, PH_SEPARATE, "phalcon/mvc/model.zep", 3937); continue; } ZEPHIR_OBS_NVAR(value); if (!(zephir_fetch_property_zval(&value, this_ptr, name, PH_SILENT_CC))) { - zephir_array_append(&changed, name, PH_SEPARATE, "phalcon/mvc/model.zep", 3943); + zephir_array_append(&changed, name, PH_SEPARATE, "phalcon/mvc/model.zep", 3945); continue; } - zephir_array_fetch(&_5$$7, snapshot, name, PH_NOISY | PH_READONLY, "phalcon/mvc/model.zep", 3950 TSRMLS_CC); + zephir_array_fetch(&_5$$7, snapshot, name, PH_NOISY | PH_READONLY, "phalcon/mvc/model.zep", 3952 TSRMLS_CC); if (!ZEPHIR_IS_IDENTICAL(value, _5$$7)) { - zephir_array_append(&changed, name, PH_SEPARATE, "phalcon/mvc/model.zep", 3951); + zephir_array_append(&changed, name, PH_SEPARATE, "phalcon/mvc/model.zep", 3953); continue; } } @@ -5161,7 +5163,7 @@ PHP_METHOD(Phalcon_Mvc_Model, getRelated) { ZEPHIR_CONCAT_SVSVS(_3$$3, "There is no defined relations for the model '", className, "' using alias '", alias, "'"); ZEPHIR_CALL_METHOD(NULL, _2$$3, "__construct", NULL, 9, _3$$3); zephir_check_call_status(); - zephir_throw_exception_debug(_2$$3, "phalcon/mvc/model.zep", 3999 TSRMLS_CC); + zephir_throw_exception_debug(_2$$3, "phalcon/mvc/model.zep", 4001 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -5304,7 +5306,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _invokeFinder) { ZEPHIR_CONCAT_SVS(_4$$7, "The static method '", method, "' requires one argument"); ZEPHIR_CALL_METHOD(NULL, _3$$7, "__construct", NULL, 9, _4$$7); zephir_check_call_status(); - zephir_throw_exception_debug(_3$$7, "phalcon/mvc/model.zep", 4105 TSRMLS_CC); + zephir_throw_exception_debug(_3$$7, "phalcon/mvc/model.zep", 4107 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -5341,7 +5343,7 @@ PHP_METHOD(Phalcon_Mvc_Model, _invokeFinder) { ZEPHIR_CONCAT_SVS(_8$$13, "Cannot resolve attribute '", extraMethod, "' in the model"); ZEPHIR_CALL_METHOD(NULL, _7$$13, "__construct", NULL, 9, _8$$13); zephir_check_call_status(); - zephir_throw_exception_debug(_7$$13, "phalcon/mvc/model.zep", 4139 TSRMLS_CC); + zephir_throw_exception_debug(_7$$13, "phalcon/mvc/model.zep", 4141 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -5407,7 +5409,7 @@ PHP_METHOD(Phalcon_Mvc_Model, __call) { ZEPHIR_CONCAT_SVSVS(_3, "The method '", method, "' doesn't exist on model '", modelName, "'"); ZEPHIR_CALL_METHOD(NULL, _2, "__construct", NULL, 9, _3); zephir_check_call_status(); - zephir_throw_exception_debug(_2, "phalcon/mvc/model.zep", 4190 TSRMLS_CC); + zephir_throw_exception_debug(_2, "phalcon/mvc/model.zep", 4192 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; @@ -5442,7 +5444,7 @@ PHP_METHOD(Phalcon_Mvc_Model, __callStatic) { ZEPHIR_CONCAT_SVS(_2$$3, "The static method '", method, "' doesn't exist"); ZEPHIR_CALL_METHOD(NULL, _1$$3, "__construct", NULL, 9, _2$$3); zephir_check_call_status(); - zephir_throw_exception_debug(_1$$3, "phalcon/mvc/model.zep", 4206 TSRMLS_CC); + zephir_throw_exception_debug(_1$$3, "phalcon/mvc/model.zep", 4208 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -5499,7 +5501,7 @@ PHP_METHOD(Phalcon_Mvc_Model, __set) { zephir_check_call_status(); ZEPHIR_INIT_VAR(related); array_init(related); - zephir_is_iterable(value, &_3$$6, &_2$$6, 0, 0, "phalcon/mvc/model.zep", 4266); + zephir_is_iterable(value, &_3$$6, &_2$$6, 0, 0, "phalcon/mvc/model.zep", 4268); for ( ; zephir_hash_get_current_data_ex(_3$$6, (void**) &_4$$6, &_2$$6) == SUCCESS ; zephir_hash_move_forward_ex(_3$$6, &_2$$6) @@ -5508,7 +5510,7 @@ PHP_METHOD(Phalcon_Mvc_Model, __set) { ZEPHIR_GET_HVALUE(item, _4$$6); if (Z_TYPE_P(item) == IS_OBJECT) { if (zephir_instance_of_ev(item, phalcon_mvc_modelinterface_ce TSRMLS_CC)) { - zephir_array_append(&related, item, PH_SEPARATE, "phalcon/mvc/model.zep", 4253); + zephir_array_append(&related, item, PH_SEPARATE, "phalcon/mvc/model.zep", 4255); } } else { ZEPHIR_INIT_NVAR(lowerKey); @@ -5556,7 +5558,7 @@ PHP_METHOD(Phalcon_Mvc_Model, __set) { ZEPHIR_CONCAT_SVS(_14$$15, "Property '", property, "' does not have a setter."); ZEPHIR_CALL_METHOD(NULL, _13$$15, "__construct", NULL, 9, _14$$15); zephir_check_call_status(); - zephir_throw_exception_debug(_13$$15, "phalcon/mvc/model.zep", 4283 TSRMLS_CC); + zephir_throw_exception_debug(_13$$15, "phalcon/mvc/model.zep", 4285 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } @@ -5791,7 +5793,7 @@ PHP_METHOD(Phalcon_Mvc_Model, unserialize) { ZEPHIR_CALL_CE_STATIC(&dependencyInjector, phalcon_di_ce, "getdefault", &_0, 1); zephir_check_call_status(); if (Z_TYPE_P(dependencyInjector) != IS_OBJECT) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "A dependency injector container is required to obtain the services related to the ORM", "phalcon/mvc/model.zep", 4437); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "A dependency injector container is required to obtain the services related to the ORM", "phalcon/mvc/model.zep", 4439); return; } zephir_update_property_this(this_ptr, SL("_dependencyInjector"), dependencyInjector TSRMLS_CC); @@ -5802,7 +5804,7 @@ PHP_METHOD(Phalcon_Mvc_Model, unserialize) { zephir_check_call_status(); ZEPHIR_CPY_WRT(manager, _1$$3); if (Z_TYPE_P(manager) != IS_OBJECT) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The injected service 'modelsManager' is not valid", "phalcon/mvc/model.zep", 4450); + ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The injected service 'modelsManager' is not valid", "phalcon/mvc/model.zep", 4452); return; } zephir_update_property_this(this_ptr, SL("_modelsManager"), manager TSRMLS_CC); @@ -5813,13 +5815,13 @@ PHP_METHOD(Phalcon_Mvc_Model, unserialize) { if (zephir_is_true(_1$$3)) { if (zephir_array_isset_string_fetch(&snapshot, attributes, SS("_snapshot"), 1 TSRMLS_CC)) { zephir_update_property_this(this_ptr, SL("_snapshot"), snapshot TSRMLS_CC); - zephir_array_fetch_string(&_3$$7, attributes, SL("_attributes"), PH_NOISY | PH_READONLY, "phalcon/mvc/model.zep", 4465 TSRMLS_CC); + zephir_array_fetch_string(&_3$$7, attributes, SL("_attributes"), PH_NOISY | PH_READONLY, "phalcon/mvc/model.zep", 4467 TSRMLS_CC); ZEPHIR_CPY_WRT(attributes, _3$$7); } else { zephir_update_property_this(this_ptr, SL("_snapshot"), attributes TSRMLS_CC); } } - zephir_is_iterable(attributes, &_5$$3, &_4$$3, 0, 0, "phalcon/mvc/model.zep", 4478); + zephir_is_iterable(attributes, &_5$$3, &_4$$3, 0, 0, "phalcon/mvc/model.zep", 4480); for ( ; zephir_hash_get_current_data_ex(_5$$3, (void**) &_6$$3, &_4$$3) == SUCCESS ; zephir_hash_move_forward_ex(_5$$3, &_4$$3) @@ -5890,7 +5892,7 @@ PHP_METHOD(Phalcon_Mvc_Model, toArray) { zephir_check_call_status(); ZEPHIR_CALL_METHOD(&_0, metaData, "getattributes", NULL, 0, this_ptr); zephir_check_call_status(); - zephir_is_iterable(_0, &_2, &_1, 0, 0, "phalcon/mvc/model.zep", 4546); + zephir_is_iterable(_0, &_2, &_1, 0, 0, "phalcon/mvc/model.zep", 4548); for ( ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS ; zephir_hash_move_forward_ex(_2, &_1) @@ -5906,7 +5908,7 @@ PHP_METHOD(Phalcon_Mvc_Model, toArray) { ZEPHIR_CONCAT_SVS(_5$$6, "Column '", attribute, "' doesn't make part of the column map"); ZEPHIR_CALL_METHOD(NULL, _4$$6, "__construct", &_6, 9, _5$$6); zephir_check_call_status(); - zephir_throw_exception_debug(_4$$6, "phalcon/mvc/model.zep", 4524 TSRMLS_CC); + zephir_throw_exception_debug(_4$$6, "phalcon/mvc/model.zep", 4526 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } else { From 6ef079c60fceff495cbed4f1a428226c4502a65e Mon Sep 17 00:00:00 2001 From: Serghei Iakovlev Date: Sun, 2 Apr 2017 21:03:27 +0300 Subject: [PATCH 20/21] Used latest Zephir --- ext/config.m4 | 2 +- ext/config.w32 | 177 ++++----- ext/kernel/array.c | 54 ++- ext/kernel/array.h | 2 +- ext/kernel/assert.c | 47 --- ext/kernel/assert.h | 31 -- ext/kernel/backtrace.c | 2 +- ext/kernel/backtrace.h | 4 +- ext/kernel/debug.c | 2 +- ext/kernel/debug.h | 4 +- ext/kernel/exception.c | 2 +- ext/kernel/exception.h | 2 +- ext/kernel/exit.c | 6 +- ext/kernel/exit.h | 2 +- ext/kernel/extended/array.c | 18 - ext/kernel/extended/array.h | 18 - ext/kernel/extended/fcall.c | 3 +- ext/kernel/extended/fcall.h | 2 +- ext/kernel/fcall.c | 32 +- ext/kernel/fcall.h | 2 +- ext/kernel/file.c | 12 +- ext/kernel/file.h | 2 +- ext/kernel/filter.c | 2 +- ext/kernel/filter.h | 4 +- ext/kernel/globals.h | 19 +- ext/kernel/hash.c | 362 ------------------ ext/kernel/hash.h | 86 ----- ext/kernel/iterator.c | 2 +- ext/kernel/iterator.h | 2 +- ext/kernel/main.c | 50 ++- ext/kernel/main.h | 5 +- ext/kernel/math.c | 2 +- ext/kernel/math.h | 2 +- ext/kernel/memory.c | 2 +- ext/kernel/memory.h | 2 +- ext/kernel/object.c | 61 ++- ext/kernel/object.h | 2 +- ext/kernel/operators.c | 2 +- ext/kernel/operators.h | 2 +- ext/kernel/output.c | 2 +- ext/kernel/output.h | 2 +- ext/kernel/persistent.c | 58 --- ext/kernel/persistent.h | 28 -- ext/kernel/require.c | 6 +- ext/kernel/require.h | 2 +- ext/kernel/session.c | 6 +- ext/kernel/session.h | 2 +- ext/kernel/string.c | 81 ++-- ext/kernel/string.h | 4 +- ext/kernel/time.c | 2 +- ext/kernel/time.h | 2 +- ext/kernel/variables.c | 12 +- ext/kernel/variables.h | 6 +- ext/phalcon/acl/adapter/memory.zep.c | 45 ++- ext/phalcon/acl/resource.zep.c | 4 +- ext/phalcon/acl/role.zep.c | 4 +- ext/phalcon/annotations/adapter.zep.c | 5 +- ext/phalcon/annotations/adapter/apc.zep.c | 8 +- ext/phalcon/annotations/adapter/files.zep.c | 4 +- ext/phalcon/annotations/adapter/memory.zep.c | 8 +- ext/phalcon/annotations/adapter/xcache.zep.c | 8 +- ext/phalcon/annotations/annotation.zep.c | 17 +- ext/phalcon/annotations/collection.zep.c | 17 +- ext/phalcon/annotations/reader.zep.c | 9 +- ext/phalcon/annotations/reflection.zep.c | 9 +- ext/phalcon/application.zep.c | 8 +- ext/phalcon/assets/collection.zep.c | 32 +- ext/phalcon/assets/filters/cssmin.zep.c | 4 +- ext/phalcon/assets/filters/jsmin.zep.c | 4 +- ext/phalcon/assets/filters/none.zep.c | 4 +- ext/phalcon/assets/manager.zep.c | 45 ++- ext/phalcon/assets/resource/css.zep.c | 4 +- ext/phalcon/cache/backend/apc.zep.c | 4 +- ext/phalcon/cache/backend/file.zep.c | 4 +- ext/phalcon/cache/backend/libmemcached.zep.c | 13 +- ext/phalcon/cache/backend/memcache.zep.c | 17 +- ext/phalcon/cache/backend/memory.zep.c | 5 +- ext/phalcon/cache/backend/mongo.zep.c | 5 +- ext/phalcon/cache/backend/redis.zep.c | 15 +- ext/phalcon/cache/backend/xcache.zep.c | 9 +- ext/phalcon/cache/multiple.zep.c | 25 +- ext/phalcon/cli/console.zep.c | 9 +- ext/phalcon/cli/router.zep.c | 25 +- ext/phalcon/cli/router/route.zep.c | 33 +- ext/phalcon/config.zep.c | 13 +- ext/phalcon/config/adapter/ini.zep.c | 21 +- ext/phalcon/config/adapter/json.zep.c | 4 +- ext/phalcon/config/adapter/php.zep.c | 4 +- ext/phalcon/config/adapter/yaml.zep.c | 4 +- ext/phalcon/crypt.zep.c | 50 +-- ext/phalcon/db/adapter.zep.c | 221 ++++++----- ext/phalcon/db/adapter/pdo.zep.c | 37 +- ext/phalcon/db/adapter/pdo/mysql.zep.c | 33 +- ext/phalcon/db/adapter/pdo/postgresql.zep.c | 67 ++-- ext/phalcon/db/adapter/pdo/sqlite.zep.c | 25 +- ext/phalcon/db/column.zep.c | 4 +- ext/phalcon/db/dialect.zep.c | 85 ++-- ext/phalcon/db/dialect/mysql.zep.c | 161 ++++---- ext/phalcon/db/dialect/postgresql.zep.c | 157 ++++---- ext/phalcon/db/dialect/sqlite.zep.c | 169 ++++---- ext/phalcon/db/index.zep.c | 4 +- ext/phalcon/db/reference.zep.c | 4 +- ext/phalcon/debug.zep.c | 33 +- ext/phalcon/debug/dump.zep.c | 28 +- ext/phalcon/di.zep.c | 60 +-- ext/phalcon/di/injectable.zep.c | 4 +- ext/phalcon/di/service.zep.c | 4 +- ext/phalcon/di/service/builder.zep.c | 13 +- ext/phalcon/dispatcher.zep.c | 68 ++-- ext/phalcon/escaper.zep.c | 5 +- ext/phalcon/events/event.zep.c | 8 +- ext/phalcon/events/manager.zep.c | 31 +- ext/phalcon/filter.zep.c | 21 +- ext/phalcon/flash.zep.c | 5 +- ext/phalcon/flash/direct.zep.c | 5 +- ext/phalcon/flash/session.zep.c | 5 +- ext/phalcon/forms/element.zep.c | 4 +- ext/phalcon/forms/element/select.zep.c | 5 +- ext/phalcon/forms/form.zep.c | 65 ++-- ext/phalcon/http/cookie.zep.c | 12 +- ext/phalcon/http/request.zep.c | 111 +++--- ext/phalcon/http/request/file.zep.c | 4 +- ext/phalcon/http/response.zep.c | 7 +- ext/phalcon/http/response/cookies.zep.c | 25 +- ext/phalcon/http/response/headers.zep.c | 9 +- ext/phalcon/image/adapter/gd.zep.c | 4 +- ext/phalcon/image/adapter/imagick.zep.c | 58 ++- ext/phalcon/kernel.zep.c | 4 +- ext/phalcon/loader.zep.c | 37 +- ext/phalcon/logger/adapter.zep.c | 37 +- ext/phalcon/logger/adapter/file.zep.c | 4 +- ext/phalcon/logger/adapter/firephp.zep.c | 5 +- ext/phalcon/logger/adapter/stream.zep.c | 4 +- ext/phalcon/logger/formatter.zep.c | 5 +- ext/phalcon/logger/formatter/firephp.zep.c | 5 +- ext/phalcon/logger/multiple.zep.c | 45 ++- ext/phalcon/mvc/collection.zep.c | 49 ++- ext/phalcon/mvc/collection/behavior.zep.c | 8 +- .../mvc/collection/behavior/softdelete.zep.c | 9 +- .../collection/behavior/timestampable.zep.c | 9 +- ext/phalcon/mvc/collection/document.zep.c | 16 +- ext/phalcon/mvc/collection/manager.zep.c | 25 +- ext/phalcon/mvc/dispatcher.zep.c | 16 +- ext/phalcon/mvc/micro.zep.c | 101 ++--- ext/phalcon/mvc/micro/collection.zep.c | 42 +- ext/phalcon/mvc/micro/lazyloader.zep.c | 12 +- ext/phalcon/mvc/model.zep.c | 217 ++++++----- ext/phalcon/mvc/model/behavior.zep.c | 8 +- .../mvc/model/behavior/softdelete.zep.c | 9 +- .../mvc/model/behavior/timestampable.zep.c | 9 +- ext/phalcon/mvc/model/binder.zep.c | 9 +- ext/phalcon/mvc/model/criteria.zep.c | 87 +++-- ext/phalcon/mvc/model/manager.zep.c | 197 +++++----- ext/phalcon/mvc/model/message.zep.c | 12 +- ext/phalcon/mvc/model/metadata/apc.zep.c | 8 +- ext/phalcon/mvc/model/metadata/files.zep.c | 8 +- .../mvc/model/metadata/libmemcached.zep.c | 13 +- ext/phalcon/mvc/model/metadata/memcache.zep.c | 13 +- ext/phalcon/mvc/model/metadata/memory.zep.c | 8 +- ext/phalcon/mvc/model/metadata/redis.zep.c | 13 +- ext/phalcon/mvc/model/metadata/session.zep.c | 8 +- .../model/metadata/strategy/annotations.zep.c | 9 +- .../metadata/strategy/introspection.zep.c | 9 +- ext/phalcon/mvc/model/metadata/xcache.zep.c | 8 +- ext/phalcon/mvc/model/query.zep.c | 149 ++++--- ext/phalcon/mvc/model/query/builder.zep.c | 99 +++-- ext/phalcon/mvc/model/query/lang.zep.c | 4 +- ext/phalcon/mvc/model/relation.zep.c | 12 +- ext/phalcon/mvc/model/resultset.zep.c | 2 +- ext/phalcon/mvc/model/resultset/complex.zep.c | 13 +- ext/phalcon/mvc/model/resultset/simple.zep.c | 13 +- ext/phalcon/mvc/model/row.zep.c | 4 +- .../mvc/model/transaction/failed.zep.c | 4 +- .../mvc/model/transaction/manager.zep.c | 25 +- ext/phalcon/mvc/model/validator.zep.c | 12 +- .../mvc/model/validator/uniqueness.zep.c | 9 +- ext/phalcon/mvc/router.zep.c | 93 +++-- ext/phalcon/mvc/router/annotations.zep.c | 77 ++-- ext/phalcon/mvc/router/group.zep.c | 36 +- ext/phalcon/mvc/router/route.zep.c | 29 +- ext/phalcon/mvc/url.zep.c | 12 +- ext/phalcon/mvc/view.zep.c | 89 +++-- ext/phalcon/mvc/view/engine.zep.c | 4 +- ext/phalcon/mvc/view/engine/php.zep.c | 9 +- ext/phalcon/mvc/view/engine/volt.zep.c | 21 +- .../mvc/view/engine/volt/compiler.zep.c | 85 ++-- ext/phalcon/mvc/view/simple.zep.c | 49 ++- ext/phalcon/queue/beanstalk.zep.c | 20 +- ext/phalcon/queue/beanstalk.zep.h | 2 +- ext/phalcon/registry.zep.c | 32 +- ext/phalcon/security.zep.c | 2 +- ext/phalcon/security/random.zep.c | 7 +- ext/phalcon/session/adapter.zep.c | 18 +- .../session/adapter/libmemcached.zep.c | 5 +- ext/phalcon/session/bag.zep.c | 52 +-- ext/phalcon/tag.zep.c | 33 +- ext/phalcon/tag/select.zep.c | 5 +- ext/phalcon/text.zep.c | 134 ++++--- ext/phalcon/translate/adapter.zep.c | 20 +- ext/phalcon/translate/adapter/csv.zep.c | 14 +- ext/phalcon/translate/adapter/gettext.zep.c | 63 ++- .../translate/adapter/nativearray.zep.c | 10 +- .../interpolator/associativearray.zep.c | 9 +- .../translate/interpolator/indexedarray.zep.c | 4 +- ext/phalcon/validation.zep.c | 41 +- ext/phalcon/validation/message.zep.c | 14 +- ext/phalcon/validation/message/group.zep.c | 15 +- ext/phalcon/validation/validator.zep.c | 16 +- ext/phalcon/validation/validator/alnum.zep.c | 8 +- ext/phalcon/validation/validator/alpha.zep.c | 6 +- .../validation/validator/between.zep.c | 6 +- .../validation/validator/callback.zep.c | 6 +- .../validation/validator/confirmation.zep.c | 8 +- .../validation/validator/creditcard.zep.c | 15 +- ext/phalcon/validation/validator/date.zep.c | 8 +- ext/phalcon/validation/validator/digit.zep.c | 8 +- ext/phalcon/validation/validator/email.zep.c | 6 +- .../validation/validator/exclusionin.zep.c | 6 +- ext/phalcon/validation/validator/file.zep.c | 22 +- .../validation/validator/identical.zep.c | 6 +- .../validation/validator/inclusionin.zep.c | 6 +- .../validation/validator/numericality.zep.c | 6 +- .../validation/validator/presenceof.zep.c | 6 +- ext/phalcon/validation/validator/regex.zep.c | 6 +- .../validation/validator/stringlength.zep.c | 8 +- .../validation/validator/uniqueness.zep.c | 51 ++- ext/phalcon/validation/validator/url.zep.c | 6 +- ext/phalcon/version.zep.c | 6 +- ext/php_phalcon.h | 4 +- 229 files changed, 2643 insertions(+), 3311 deletions(-) delete mode 100644 ext/kernel/assert.c delete mode 100644 ext/kernel/assert.h delete mode 100644 ext/kernel/extended/array.c delete mode 100644 ext/kernel/extended/array.h delete mode 100644 ext/kernel/hash.c delete mode 100644 ext/kernel/hash.h delete mode 100644 ext/kernel/persistent.c delete mode 100644 ext/kernel/persistent.h diff --git a/ext/config.m4 b/ext/config.m4 index 9e0c13272a5..bebf09b4cea 100644 --- a/ext/config.m4 +++ b/ext/config.m4 @@ -9,7 +9,7 @@ if test "$PHP_PHALCON" = "yes"; then fi AC_DEFINE(HAVE_PHALCON, 1, [Whether you have Phalcon]) - phalcon_sources="phalcon.c kernel/main.c kernel/memory.c kernel/exception.c kernel/hash.c kernel/debug.c kernel/backtrace.c kernel/object.c kernel/array.c kernel/extended/array.c kernel/string.c kernel/fcall.c kernel/extended/fcall.c kernel/require.c kernel/file.c kernel/operators.c kernel/math.c kernel/concat.c kernel/variables.c kernel/filter.c kernel/iterator.c kernel/time.c kernel/exit.c phalcon/di/injectionawareinterface.zep.c + phalcon_sources="phalcon.c kernel/main.c kernel/memory.c kernel/exception.c kernel/debug.c kernel/backtrace.c kernel/object.c kernel/array.c kernel/string.c kernel/fcall.c kernel/extended/fcall.c kernel/require.c kernel/file.c kernel/operators.c kernel/math.c kernel/concat.c kernel/variables.c kernel/filter.c kernel/iterator.c kernel/time.c kernel/exit.c phalcon/di/injectionawareinterface.zep.c phalcon/exception.zep.c phalcon/events/eventsawareinterface.zep.c phalcon/validation/validatorinterface.zep.c diff --git a/ext/config.w32 b/ext/config.w32 index 0f553dba35d..87d8a80e463 100644 --- a/ext/config.w32 +++ b/ext/config.w32 @@ -1,101 +1,102 @@ ARG_ENABLE("phalcon", "enable phalcon", "no"); + if (PHP_PHALCON != "no") { EXTENSION("phalcon", "phalcon.c", null, "-I"+configure_module_dirname); - ADD_SOURCES(configure_module_dirname + "/kernel", "main.c memory.c exception.c hash.c debug.c backtrace.c object.c array.c string.c fcall.c require.c file.c operators.c math.c concat.c variables.c filter.c iterator.c exit.c time.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/kernel/extended", "array.c fcall.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/kernel", "main.c memory.c exception.c debug.c backtrace.c object.c array.c string.c fcall.c require.c file.c operators.c math.c concat.c variables.c filter.c iterator.c exit.c time.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/kernel/extended", "fcall.c", "phalcon"); /* PCRE is always included on WIN32 */ AC_DEFINE("ZEPHIR_USE_PHP_PCRE", 1, "Whether PHP pcre extension is present at compile time"); if (PHP_JSON != "no") { ADD_EXTENSION_DEP("phalcon", "json"); AC_DEFINE("ZEPHIR_USE_PHP_JSON", 1, "Whether PHP json extension is present at compile time"); } - ADD_SOURCES(configure_module_dirname + "/phalcon/annotations", "scanner.c parser.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/mvc/model", "orm.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/mvc/model/query", "scanner.c parser.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/mvc/view/engine/volt", "parser.c scanner.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/assets/filters", "jsminifier.c cssminifier.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/annotations", "scanner.c parser.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/mvc/model", "orm.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/mvc/model/query", "scanner.c parser.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/mvc/view/engine/volt", "parser.c scanner.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/assets/filters", "jsminifier.c cssminifier.c", "phalcon"); ADD_SOURCES(configure_module_dirname + "/phalcon/mvc/url", "utils.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/di", "injectionawareinterface.zep.c injectable.zep.c factorydefault.zep.c serviceinterface.zep.c exception.zep.c service.zep.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon", "exception.zep.c dispatcherinterface.zep.c config.zep.c diinterface.zep.c flashinterface.zep.c application.zep.c di.zep.c dispatcher.zep.c flash.zep.c cryptinterface.zep.c escaperinterface.zep.c filterinterface.zep.c validationinterface.zep.c acl.zep.c crypt.zep.c db.zep.c debug.zep.c escaper.zep.c filter.zep.c image.zep.c kernel.zep.c loader.zep.c logger.zep.c registry.zep.c security.zep.c tag.zep.c text.zep.c translate.zep.c validation.zep.c version.zep.c 0__closure.zep.c 1__closure.zep.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/events", "eventsawareinterface.zep.c eventinterface.zep.c managerinterface.zep.c event.zep.c exception.zep.c manager.zep.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/validation", "validatorinterface.zep.c validator.zep.c combinedfieldsvalidator.zep.c messageinterface.zep.c exception.zep.c message.zep.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/forms", "elementinterface.zep.c element.zep.c exception.zep.c form.zep.c manager.zep.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/mvc/model", "validatorinterface.zep.c validator.zep.c metadatainterface.zep.c metadata.zep.c resultsetinterface.zep.c behaviorinterface.zep.c exception.zep.c behavior.zep.c resultinterface.zep.c resultset.zep.c binderinterface.zep.c criteriainterface.zep.c managerinterface.zep.c messageinterface.zep.c queryinterface.zep.c relationinterface.zep.c transactioninterface.zep.c binder.zep.c criteria.zep.c manager.zep.c message.zep.c query.zep.c relation.zep.c row.zep.c transaction.zep.c validationfailed.zep.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/cache", "backendinterface.zep.c frontendinterface.zep.c backend.zep.c exception.zep.c multiple.zep.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/annotations", "adapterinterface.zep.c adapter.zep.c readerinterface.zep.c annotation.zep.c collection.zep.c exception.zep.c reader.zep.c reflection.zep.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/db", "adapterinterface.zep.c adapter.zep.c dialectinterface.zep.c dialect.zep.c columninterface.zep.c indexinterface.zep.c referenceinterface.zep.c resultinterface.zep.c column.zep.c exception.zep.c index.zep.c profiler.zep.c rawvalue.zep.c reference.zep.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/logger", "adapterinterface.zep.c formatterinterface.zep.c adapter.zep.c formatter.zep.c exception.zep.c item.zep.c multiple.zep.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/session", "adapterinterface.zep.c adapter.zep.c baginterface.zep.c bag.zep.c exception.zep.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/mvc", "entityinterface.zep.c viewbaseinterface.zep.c routerinterface.zep.c collectioninterface.zep.c controllerinterface.zep.c dispatcherinterface.zep.c modelinterface.zep.c router.zep.c urlinterface.zep.c viewinterface.zep.c application.zep.c collection.zep.c controller.zep.c dispatcher.zep.c micro.zep.c model.zep.c moduledefinitioninterface.zep.c url.zep.c view.zep.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/paginator", "adapterinterface.zep.c adapter.zep.c exception.zep.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/translate", "adapterinterface.zep.c adapter.zep.c interpolatorinterface.zep.c exception.zep.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/assets", "filterinterface.zep.c inline.zep.c resource.zep.c collection.zep.c exception.zep.c manager.zep.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/db/adapter", "pdo.zep.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/image", "adapterinterface.zep.c adapter.zep.c exception.zep.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/mvc/collection", "behaviorinterface.zep.c behavior.zep.c document.zep.c exception.zep.c manager.zep.c managerinterface.zep.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/mvc/view", "engineinterface.zep.c engine.zep.c exception.zep.c simple.zep.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/acl", "adapterinterface.zep.c adapter.zep.c resourceinterface.zep.c roleinterface.zep.c exception.zep.c resource.zep.c resourceaware.zep.c role.zep.c roleaware.zep.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/application", "exception.zep.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/cache/frontend", "data.zep.c base64.zep.c igbinary.zep.c json.zep.c msgpack.zep.c none.zep.c output.zep.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/mvc/model/metadata", "strategyinterface.zep.c apc.zep.c files.zep.c libmemcached.zep.c memcache.zep.c memory.zep.c redis.zep.c session.zep.c xcache.zep.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/cli", "dispatcherinterface.zep.c taskinterface.zep.c console.zep.c dispatcher.zep.c router.zep.c routerinterface.zep.c task.zep.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/http", "cookieinterface.zep.c requestinterface.zep.c responseinterface.zep.c cookie.zep.c request.zep.c response.zep.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/http/request", "fileinterface.zep.c exception.zep.c file.zep.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/http/response", "cookiesinterface.zep.c headersinterface.zep.c cookies.zep.c exception.zep.c headers.zep.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/mvc/micro", "collectioninterface.zep.c collection.zep.c exception.zep.c lazyloader.zep.c middlewareinterface.zep.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/mvc/model/query", "builderinterface.zep.c statusinterface.zep.c builder.zep.c lang.zep.c status.zep.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/mvc/model/transaction", "exception.zep.c managerinterface.zep.c failed.zep.c manager.zep.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/mvc/router", "groupinterface.zep.c routeinterface.zep.c annotations.zep.c exception.zep.c group.zep.c route.zep.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/acl/adapter", "memory.zep.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/annotations/adapter", "apc.zep.c files.zep.c memory.zep.c xcache.zep.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/assets/filters", "cssmin.zep.c jsmin.zep.c none.zep.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/assets/inline", "css.zep.c js.zep.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/assets/resource", "css.zep.c js.zep.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/cache/backend", "apc.zep.c file.zep.c libmemcached.zep.c memcache.zep.c memory.zep.c mongo.zep.c redis.zep.c xcache.zep.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/cli/console", "exception.zep.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/cli/dispatcher", "exception.zep.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/cli/router", "exception.zep.c route.zep.c routeinterface.zep.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/config/adapter", "ini.zep.c json.zep.c php.zep.c yaml.zep.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/config", "exception.zep.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/crypt", "exception.zep.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/db/adapter/pdo", "mysql.zep.c postgresql.zep.c sqlite.zep.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/db/dialect", "mysql.zep.c postgresql.zep.c sqlite.zep.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/db/profiler", "item.zep.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/db/result", "pdo.zep.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/debug", "dump.zep.c exception.zep.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/di/factorydefault", "cli.zep.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/di/service", "builder.zep.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/escaper", "exception.zep.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/filter", "exception.zep.c userfilterinterface.zep.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/flash", "direct.zep.c exception.zep.c session.zep.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/forms/element", "check.zep.c date.zep.c email.zep.c file.zep.c hidden.zep.c numeric.zep.c password.zep.c radio.zep.c select.zep.c submit.zep.c text.zep.c textarea.zep.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/http/cookie", "exception.zep.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/image/adapter", "gd.zep.c imagick.zep.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/loader", "exception.zep.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/logger/adapter", "file.zep.c firephp.zep.c stream.zep.c syslog.zep.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/logger/formatter", "firephp.zep.c json.zep.c line.zep.c syslog.zep.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/mvc/application", "exception.zep.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/mvc/collection/behavior", "softdelete.zep.c timestampable.zep.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/mvc/controller", "bindmodelinterface.zep.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/mvc/dispatcher", "exception.zep.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/mvc/model/behavior", "softdelete.zep.c timestampable.zep.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/mvc/model/binder", "bindableinterface.zep.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/mvc/model/metadata/strategy", "annotations.zep.c introspection.zep.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/mvc/model/resultset", "complex.zep.c simple.zep.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/mvc/model/validator", "email.zep.c exclusionin.zep.c inclusionin.zep.c ip.zep.c numericality.zep.c presenceof.zep.c regex.zep.c stringlength.zep.c uniqueness.zep.c url.zep.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/mvc/url", "exception.zep.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/mvc/user", "component.zep.c module.zep.c plugin.zep.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/mvc/view/engine", "php.zep.c volt.zep.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/mvc/view/engine/volt", "compiler.zep.c exception.zep.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/paginator/adapter", "model.zep.c nativearray.zep.c querybuilder.zep.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/queue", "beanstalk.zep.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/queue/beanstalk", "exception.zep.c job.zep.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/security", "exception.zep.c random.zep.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/session/adapter", "files.zep.c libmemcached.zep.c memcache.zep.c redis.zep.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/tag", "exception.zep.c select.zep.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/translate/adapter", "csv.zep.c gettext.zep.c nativearray.zep.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/translate/interpolator", "associativearray.zep.c indexedarray.zep.c", "phalcon"); - ADD_SOURCES(configure_module_dirname + "/phalcon/validation/message", "group.zep.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/di", "injectionawareinterface.zep.c injectable.zep.c factorydefault.zep.c serviceinterface.zep.c exception.zep.c service.zep.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon", "exception.zep.c dispatcherinterface.zep.c config.zep.c diinterface.zep.c flashinterface.zep.c application.zep.c di.zep.c dispatcher.zep.c flash.zep.c cryptinterface.zep.c escaperinterface.zep.c filterinterface.zep.c validationinterface.zep.c acl.zep.c crypt.zep.c db.zep.c debug.zep.c escaper.zep.c filter.zep.c image.zep.c kernel.zep.c loader.zep.c logger.zep.c registry.zep.c security.zep.c tag.zep.c text.zep.c translate.zep.c validation.zep.c version.zep.c 0__closure.zep.c 1__closure.zep.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/events", "eventsawareinterface.zep.c eventinterface.zep.c managerinterface.zep.c event.zep.c exception.zep.c manager.zep.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/validation", "validatorinterface.zep.c validator.zep.c combinedfieldsvalidator.zep.c messageinterface.zep.c exception.zep.c message.zep.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/forms", "elementinterface.zep.c element.zep.c exception.zep.c form.zep.c manager.zep.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/mvc/model", "validatorinterface.zep.c validator.zep.c metadatainterface.zep.c metadata.zep.c resultsetinterface.zep.c behaviorinterface.zep.c exception.zep.c behavior.zep.c resultinterface.zep.c resultset.zep.c binderinterface.zep.c criteriainterface.zep.c managerinterface.zep.c messageinterface.zep.c queryinterface.zep.c relationinterface.zep.c transactioninterface.zep.c binder.zep.c criteria.zep.c manager.zep.c message.zep.c query.zep.c relation.zep.c row.zep.c transaction.zep.c validationfailed.zep.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/cache", "backendinterface.zep.c frontendinterface.zep.c backend.zep.c exception.zep.c multiple.zep.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/annotations", "adapterinterface.zep.c adapter.zep.c readerinterface.zep.c annotation.zep.c collection.zep.c exception.zep.c reader.zep.c reflection.zep.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/db", "adapterinterface.zep.c adapter.zep.c dialectinterface.zep.c dialect.zep.c columninterface.zep.c indexinterface.zep.c referenceinterface.zep.c resultinterface.zep.c column.zep.c exception.zep.c index.zep.c profiler.zep.c rawvalue.zep.c reference.zep.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/logger", "adapterinterface.zep.c formatterinterface.zep.c adapter.zep.c formatter.zep.c exception.zep.c item.zep.c multiple.zep.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/session", "adapterinterface.zep.c adapter.zep.c baginterface.zep.c bag.zep.c exception.zep.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/mvc", "entityinterface.zep.c viewbaseinterface.zep.c routerinterface.zep.c collectioninterface.zep.c controllerinterface.zep.c dispatcherinterface.zep.c modelinterface.zep.c router.zep.c urlinterface.zep.c viewinterface.zep.c application.zep.c collection.zep.c controller.zep.c dispatcher.zep.c micro.zep.c model.zep.c moduledefinitioninterface.zep.c url.zep.c view.zep.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/paginator", "adapterinterface.zep.c adapter.zep.c exception.zep.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/translate", "adapterinterface.zep.c adapter.zep.c interpolatorinterface.zep.c exception.zep.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/assets", "filterinterface.zep.c inline.zep.c resource.zep.c collection.zep.c exception.zep.c manager.zep.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/db/adapter", "pdo.zep.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/image", "adapterinterface.zep.c adapter.zep.c exception.zep.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/mvc/collection", "behaviorinterface.zep.c behavior.zep.c document.zep.c exception.zep.c manager.zep.c managerinterface.zep.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/mvc/view", "engineinterface.zep.c engine.zep.c exception.zep.c simple.zep.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/acl", "adapterinterface.zep.c adapter.zep.c resourceinterface.zep.c roleinterface.zep.c exception.zep.c resource.zep.c resourceaware.zep.c role.zep.c roleaware.zep.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/application", "exception.zep.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/cache/frontend", "data.zep.c base64.zep.c igbinary.zep.c json.zep.c msgpack.zep.c none.zep.c output.zep.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/mvc/model/metadata", "strategyinterface.zep.c apc.zep.c files.zep.c libmemcached.zep.c memcache.zep.c memory.zep.c redis.zep.c session.zep.c xcache.zep.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/cli", "dispatcherinterface.zep.c taskinterface.zep.c console.zep.c dispatcher.zep.c router.zep.c routerinterface.zep.c task.zep.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/http", "cookieinterface.zep.c requestinterface.zep.c responseinterface.zep.c cookie.zep.c request.zep.c response.zep.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/http/request", "fileinterface.zep.c exception.zep.c file.zep.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/http/response", "cookiesinterface.zep.c headersinterface.zep.c cookies.zep.c exception.zep.c headers.zep.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/mvc/micro", "collectioninterface.zep.c collection.zep.c exception.zep.c lazyloader.zep.c middlewareinterface.zep.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/mvc/model/query", "builderinterface.zep.c statusinterface.zep.c builder.zep.c lang.zep.c status.zep.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/mvc/model/transaction", "exception.zep.c managerinterface.zep.c failed.zep.c manager.zep.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/mvc/router", "groupinterface.zep.c routeinterface.zep.c annotations.zep.c exception.zep.c group.zep.c route.zep.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/acl/adapter", "memory.zep.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/annotations/adapter", "apc.zep.c files.zep.c memory.zep.c xcache.zep.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/assets/filters", "cssmin.zep.c jsmin.zep.c none.zep.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/assets/inline", "css.zep.c js.zep.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/assets/resource", "css.zep.c js.zep.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/cache/backend", "apc.zep.c file.zep.c libmemcached.zep.c memcache.zep.c memory.zep.c mongo.zep.c redis.zep.c xcache.zep.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/cli/console", "exception.zep.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/cli/dispatcher", "exception.zep.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/cli/router", "exception.zep.c route.zep.c routeinterface.zep.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/config/adapter", "ini.zep.c json.zep.c php.zep.c yaml.zep.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/config", "exception.zep.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/crypt", "exception.zep.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/db/adapter/pdo", "mysql.zep.c postgresql.zep.c sqlite.zep.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/db/dialect", "mysql.zep.c postgresql.zep.c sqlite.zep.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/db/profiler", "item.zep.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/db/result", "pdo.zep.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/debug", "dump.zep.c exception.zep.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/di/factorydefault", "cli.zep.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/di/service", "builder.zep.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/escaper", "exception.zep.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/filter", "exception.zep.c userfilterinterface.zep.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/flash", "direct.zep.c exception.zep.c session.zep.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/forms/element", "check.zep.c date.zep.c email.zep.c file.zep.c hidden.zep.c numeric.zep.c password.zep.c radio.zep.c select.zep.c submit.zep.c text.zep.c textarea.zep.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/http/cookie", "exception.zep.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/image/adapter", "gd.zep.c imagick.zep.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/loader", "exception.zep.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/logger/adapter", "file.zep.c firephp.zep.c stream.zep.c syslog.zep.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/logger/formatter", "firephp.zep.c json.zep.c line.zep.c syslog.zep.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/mvc/application", "exception.zep.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/mvc/collection/behavior", "softdelete.zep.c timestampable.zep.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/mvc/controller", "bindmodelinterface.zep.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/mvc/dispatcher", "exception.zep.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/mvc/model/behavior", "softdelete.zep.c timestampable.zep.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/mvc/model/binder", "bindableinterface.zep.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/mvc/model/metadata/strategy", "annotations.zep.c introspection.zep.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/mvc/model/resultset", "complex.zep.c simple.zep.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/mvc/model/validator", "email.zep.c exclusionin.zep.c inclusionin.zep.c ip.zep.c numericality.zep.c presenceof.zep.c regex.zep.c stringlength.zep.c uniqueness.zep.c url.zep.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/mvc/url", "exception.zep.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/mvc/user", "component.zep.c module.zep.c plugin.zep.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/mvc/view/engine", "php.zep.c volt.zep.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/mvc/view/engine/volt", "compiler.zep.c exception.zep.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/paginator/adapter", "model.zep.c nativearray.zep.c querybuilder.zep.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/queue", "beanstalk.zep.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/queue/beanstalk", "exception.zep.c job.zep.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/security", "exception.zep.c random.zep.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/session/adapter", "files.zep.c libmemcached.zep.c memcache.zep.c redis.zep.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/tag", "exception.zep.c select.zep.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/translate/adapter", "csv.zep.c gettext.zep.c nativearray.zep.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/translate/interpolator", "associativearray.zep.c indexedarray.zep.c", "phalcon"); + ADD_SOURCES(configure_module_dirname + "/phalcon/validation/message", "group.zep.c", "phalcon"); ADD_SOURCES(configure_module_dirname + "/phalcon/validation/validator", "alnum.zep.c alpha.zep.c between.zep.c callback.zep.c confirmation.zep.c creditcard.zep.c date.zep.c digit.zep.c email.zep.c exception.zep.c exclusionin.zep.c file.zep.c identical.zep.c inclusionin.zep.c numericality.zep.c presenceof.zep.c regex.zep.c stringlength.zep.c uniqueness.zep.c url.zep.c", "phalcon"); ADD_FLAG("CFLAGS_PHALCON", "/D ZEPHIR_RELEASE /Oi /Ot /Oy /Ob2 /Gs /GF /Gy /GL"); ADD_FLAG("CFLAGS", "/D ZEPHIR_RELEASE /Oi /Ot /Oy /Ob2 /Gs /GF /Gy /GL"); diff --git a/ext/kernel/array.c b/ext/kernel/array.c index 5e361b5393a..d7c5fcf56ae 100644 --- a/ext/kernel/array.c +++ b/ext/kernel/array.c @@ -3,7 +3,7 @@ +------------------------------------------------------------------------+ | Zephir Language | +------------------------------------------------------------------------+ - | Copyright (c) 2011-2016 Zephir Team (http://www.zephir-lang.com) | + | Copyright (c) 2011-2017 Zephir Team (http://www.zephir-lang.com) | +------------------------------------------------------------------------+ | This source file is subject to the New BSD License that is bundled | | with this package in the file docs/LICENSE.txt. | @@ -32,9 +32,27 @@ #include "kernel/debug.h" #include "kernel/array.h" #include "kernel/operators.h" -#include "kernel/hash.h" #include "kernel/backtrace.h" +static zval zephir_get_current_key_w(const HashTable *hash_table, HashPosition *hash_position) +{ + Bucket *p; + zval result; + + INIT_ZVAL(result); + p = hash_position ? (*hash_position) : hash_table->pInternalPointer; + + if (p) { + if (p->nKeyLength) { + ZVAL_STRINGL(&result, (char *) p->arKey, p->nKeyLength - 1, 0); + } else { + ZVAL_LONG(&result, p->h); + } + } + + return result; +} + /** * @brief Fetches @a index if it exists from the array @a arr * @param[out] fetched &$arr[$index]; @a fetched is modified only when the function returns 1 @@ -64,7 +82,7 @@ int zephir_array_isset_fetch(zval **fetched, const zval *arr, zval *index, int r h = Z_ARRVAL_P(arr); switch (Z_TYPE_P(index)) { case IS_NULL: - result = zephir_hash_find(h, SS(""), (void**)&val); + result = zend_hash_find(h, SS(""), (void**)&val); break; case IS_DOUBLE: @@ -109,8 +127,8 @@ int zephir_array_isset_quick_string_fetch(zval **fetched, zval *arr, char *index zval **zv; - if (likely(Z_TYPE_P(arr) == IS_ARRAY)) { - if (zephir_hash_quick_find(Z_ARRVAL_P(arr), index, index_length, key, (void**) &zv) == SUCCESS) { + if (EXPECTED(Z_TYPE_P(arr) == IS_ARRAY)) { + if (zend_hash_quick_find(Z_ARRVAL_P(arr), index, index_length, key, (void**) &zv) == SUCCESS) { *fetched = *zv; if (!readonly) { Z_ADDREF_P(*fetched); @@ -135,7 +153,7 @@ int zephir_array_isset_long_fetch(zval **fetched, zval *arr, unsigned long index zval **zv; - if (likely(Z_TYPE_P(arr) == IS_ARRAY)) { + if (EXPECTED(Z_TYPE_P(arr) == IS_ARRAY)) { if (zend_hash_index_find(Z_ARRVAL_P(arr), index, (void**)&zv) == SUCCESS) { *fetched = *zv; if (!readonly) { @@ -173,7 +191,7 @@ int ZEPHIR_FASTCALL zephir_array_isset(const zval *arr, zval *index) { h = Z_ARRVAL_P(arr); switch (Z_TYPE_P(index)) { case IS_NULL: - return zephir_hash_exists(h, SS("")); + return zend_hash_exists(h, SS("")); case IS_DOUBLE: return zend_hash_index_exists(h, (ulong)Z_DVAL_P(index)); @@ -220,7 +238,7 @@ int ZEPHIR_FASTCALL zephir_array_isset_string(const zval *arr, const char *index */ int ZEPHIR_FASTCALL zephir_array_isset_quick_string(const zval *arr, const char *index, uint index_length, unsigned long key) { - if (likely(Z_TYPE_P(arr) == IS_ARRAY)) { + if (EXPECTED(Z_TYPE_P(arr) == IS_ARRAY)) { return zend_hash_quick_exists(Z_ARRVAL_P(arr), index, index_length, key); } @@ -237,7 +255,7 @@ int ZEPHIR_FASTCALL zephir_array_isset_quick_string(const zval *arr, const char */ int ZEPHIR_FASTCALL zephir_array_isset_long(const zval *arr, unsigned long index) { - if (likely(Z_TYPE_P(arr) == IS_ARRAY)) { + if (EXPECTED(Z_TYPE_P(arr) == IS_ARRAY)) { return zend_hash_index_exists(Z_ARRVAL_P(arr), index); } @@ -807,7 +825,7 @@ int zephir_array_fetch(zval **return_value, zval *arr, zval *index, int flags ZE ht = Z_ARRVAL_P(arr); switch (Z_TYPE_P(index)) { case IS_NULL: - result = zephir_hash_find(ht, SS(""), (void**) &zv); + result = zend_hash_find(ht, SS(""), (void**) &zv); sidx = ""; break; @@ -879,8 +897,8 @@ int zephir_array_fetch_quick_string(zval **return_value, zval *arr, const char * zval **zv; - if (likely(Z_TYPE_P(arr) == IS_ARRAY)) { - if (zephir_hash_quick_find(Z_ARRVAL_P(arr), index, index_length, key, (void**) &zv) == SUCCESS) { + if (EXPECTED(Z_TYPE_P(arr) == IS_ARRAY)) { + if (zend_hash_quick_find(Z_ARRVAL_P(arr), index, index_length, key, (void**) &zv) == SUCCESS) { *return_value = *zv; if ((flags & PH_READONLY) != PH_READONLY) { Z_ADDREF_PP(return_value); @@ -942,7 +960,7 @@ int zephir_array_fetch_long(zval **return_value, zval *arr, unsigned long index, zval **zv; - if (likely(Z_TYPE_P(arr) == IS_ARRAY)) { + if (EXPECTED(Z_TYPE_P(arr) == IS_ARRAY)) { if (zend_hash_index_find(Z_ARRVAL_P(arr), index, (void**)&zv) == SUCCESS) { *return_value = *zv; if ((flags & PH_READONLY) != PH_READONLY) { @@ -1135,7 +1153,7 @@ void zephir_array_merge_recursive_n(zval **a1, zval *a2 TSRMLS_DC) */ void zephir_array_unshift(zval *arr, zval *arg TSRMLS_DC) { - if (likely(Z_TYPE_P(arr) == IS_ARRAY)) { + if (EXPECTED(Z_TYPE_P(arr) == IS_ARRAY)) { zval** args[1] = { &arg }; @@ -1167,7 +1185,7 @@ void zephir_array_keys(zval *return_value, zval *input TSRMLS_DC) ulong num_key; HashPosition pos; - if (likely(Z_TYPE_P(input) == IS_ARRAY)) { + if (EXPECTED(Z_TYPE_P(input) == IS_ARRAY)) { array_init_size(return_value, zend_hash_num_elements(Z_ARRVAL_P(input))); @@ -1197,7 +1215,7 @@ void zephir_array_keys(zval *return_value, zval *input TSRMLS_DC) void zephir_array_values(zval *return_value, zval *arr) { - if (likely(Z_TYPE_P(arr) == IS_ARRAY)) { + if (EXPECTED(Z_TYPE_P(arr) == IS_ARRAY)) { zval **entry; HashPosition pos; @@ -1238,7 +1256,7 @@ int zephir_array_key_exists(zval *arr, zval *key TSRMLS_DC) int zephir_array_is_associative(zval *arr) { - if (likely(Z_TYPE_P(arr) == IS_ARRAY)) { + if (EXPECTED(Z_TYPE_P(arr) == IS_ARRAY)) { HashPosition pos; zval **entry; char *skey; @@ -1481,7 +1499,7 @@ void ZEPHIR_FASTCALL zephir_create_array(zval *return_value, uint size, int init if (size > 0) { hashTable = (HashTable *) emalloc(sizeof(HashTable)); - zephir_hash_init(hashTable, size, NULL, ZVAL_PTR_DTOR, 0); + zend_hash_init(hashTable, size, NULL, ZVAL_PTR_DTOR, 0); if (initialize) { diff --git a/ext/kernel/array.h b/ext/kernel/array.h index 68444af46a2..926fa0d36fa 100644 --- a/ext/kernel/array.h +++ b/ext/kernel/array.h @@ -3,7 +3,7 @@ +------------------------------------------------------------------------+ | Zephir Language | +------------------------------------------------------------------------+ - | Copyright (c) 2011-2016 Zephir Team (http://www.zephir-lang.com) | + | Copyright (c) 2011-2017 Zephir Team (http://www.zephir-lang.com) | +------------------------------------------------------------------------+ | This source file is subject to the New BSD License that is bundled | | with this package in the file docs/LICENSE.txt. | diff --git a/ext/kernel/assert.c b/ext/kernel/assert.c deleted file mode 100644 index d94d9a1d03a..00000000000 --- a/ext/kernel/assert.c +++ /dev/null @@ -1,47 +0,0 @@ - -/* - +------------------------------------------------------------------------+ - | Zephir Language | - +------------------------------------------------------------------------+ - | Copyright (c) 2011-2016 Zephir Team (http://www.zephir-lang.com) | - +------------------------------------------------------------------------+ - | This source file is subject to the New BSD License that is bundled | - | with this package in the file docs/LICENSE.txt. | - | | - | If you did not receive a copy of the license and are unable to | - | obtain it through the world-wide-web, please send an email | - | to license@zephir-lang.com so we can send you a copy immediately. | - +------------------------------------------------------------------------+ - | Authors: Andres Gutierrez | - | Eduar Carvajal | - +------------------------------------------------------------------------+ -*/ - -#ifdef HAVE_CONFIG_H -#include "config.h" -#endif - -#include -#include "php_ext.h" -#include "kernel/debug.h" - -#ifndef ZEPHIR_RELEASE - -int zephir_assert_class(zval *object, char *class_name TSRMLS_DC) { - if (object) { - if (Z_TYPE_P(object) != IS_OBJECT) { - zephir_error_space(); - fprintf(zephir_log, "AssertClass: [Failed] Value is not an object\n"); - return FAILURE; - } else { - if (strcmp(Z_OBJCE_P(object)->name, class_name)) { - zephir_error_space(); - fprintf(zephir_log, "AssertClass: [Failed] Object is not class %s, is %s\n", class_name, Z_OBJCE_P(object)->name); - return FAILURE; - } - } - } - return SUCCESS; -} - -#endif diff --git a/ext/kernel/assert.h b/ext/kernel/assert.h deleted file mode 100644 index 91ae569df6c..00000000000 --- a/ext/kernel/assert.h +++ /dev/null @@ -1,31 +0,0 @@ - -/* - +------------------------------------------------------------------------+ - | Zephir Language | - +------------------------------------------------------------------------+ - | Copyright (c) 2011-2016 Zephir Team (http://www.zephir-lang.com) | - +------------------------------------------------------------------------+ - | This source file is subject to the New BSD License that is bundled | - | with this package in the file docs/LICENSE.txt. | - | | - | If you did not receive a copy of the license and are unable to | - | obtain it through the world-wide-web, please send an email | - | to license@zephir-lang.com so we can send you a copy immediately. | - +------------------------------------------------------------------------+ - | Authors: Andres Gutierrez | - | Eduar Carvajal | - +------------------------------------------------------------------------+ -*/ - -#ifndef ZEPHIR_KERNEL_ASSERT_H -#define ZEPHIR_KERNEL_ASSERT_H - -#ifndef ZEPHIR_RELEASE - -#include -#include - -extern int zephir_assert_class(zval *object, char *class_name TSRMLS_DC); - -#endif -#endif /* ZEPHIR_KERNEL_ASSERT_H */ diff --git a/ext/kernel/backtrace.c b/ext/kernel/backtrace.c index a424f92649c..527ebdbb0ed 100644 --- a/ext/kernel/backtrace.c +++ b/ext/kernel/backtrace.c @@ -3,7 +3,7 @@ +------------------------------------------------------------------------+ | Zephir Language | +------------------------------------------------------------------------+ - | Copyright (c) 2011-2016 Zephir Team (http://www.zephir-lang.com) | + | Copyright (c) 2011-2017 Zephir Team (http://www.zephir-lang.com) | +------------------------------------------------------------------------+ | This source file is subject to the New BSD License that is bundled | | with this package in the file docs/LICENSE.txt. | diff --git a/ext/kernel/backtrace.h b/ext/kernel/backtrace.h index 3f1cf23c193..45723a94734 100644 --- a/ext/kernel/backtrace.h +++ b/ext/kernel/backtrace.h @@ -3,7 +3,7 @@ +------------------------------------------------------------------------+ | Zephir Language | +------------------------------------------------------------------------+ - | Copyright (c) 2011-2016 Zephir Team (http://www.zephir-lang.com) | + | Copyright (c) 2011-2017 Zephir Team (http://www.zephir-lang.com) | +------------------------------------------------------------------------+ | This source file is subject to the New BSD License that is bundled | | with this package in the file docs/LICENSE.txt. | @@ -23,7 +23,7 @@ #ifndef ZEPHIR_RELEASE -extern void zephir_print_backtrace(void); +void zephir_print_backtrace(void); #else diff --git a/ext/kernel/debug.c b/ext/kernel/debug.c index f5ee1d7f65c..55a007ee50c 100644 --- a/ext/kernel/debug.c +++ b/ext/kernel/debug.c @@ -3,7 +3,7 @@ +------------------------------------------------------------------------+ | Zephir Language | +------------------------------------------------------------------------+ - | Copyright (c) 2011-2016 Zephir Team (http://www.zephir-lang.com) | + | Copyright (c) 2011-2017 Zephir Team (http://www.zephir-lang.com) | +------------------------------------------------------------------------+ | This source file is subject to the New BSD License that is bundled | | with this package in the file docs/LICENSE.txt. | diff --git a/ext/kernel/debug.h b/ext/kernel/debug.h index ac0f6c64467..f34b86f7e05 100644 --- a/ext/kernel/debug.h +++ b/ext/kernel/debug.h @@ -3,7 +3,7 @@ +------------------------------------------------------------------------+ | Zephir Language | +------------------------------------------------------------------------+ - | Copyright (c) 2011-2016 Zephir Team (http://www.zephir-lang.com) | + | Copyright (c) 2011-2017 Zephir Team (http://www.zephir-lang.com) | +------------------------------------------------------------------------+ | This source file is subject to the New BSD License that is bundled | | with this package in the file docs/LICENSE.txt. | @@ -65,4 +65,4 @@ int zephir_error_space(); int zephir_debug_space(); #endif -#endif \ No newline at end of file +#endif diff --git a/ext/kernel/exception.c b/ext/kernel/exception.c index d613f8d94b4..8478cbedc13 100644 --- a/ext/kernel/exception.c +++ b/ext/kernel/exception.c @@ -3,7 +3,7 @@ +------------------------------------------------------------------------+ | Zephir Language | +------------------------------------------------------------------------+ - | Copyright (c) 2011-2016 Zephir Team (http://www.zephir-lang.com) | + | Copyright (c) 2011-2017 Zephir Team (http://www.zephir-lang.com) | +------------------------------------------------------------------------+ | This source file is subject to the New BSD License that is bundled | | with this package in the file docs/LICENSE.txt. | diff --git a/ext/kernel/exception.h b/ext/kernel/exception.h index 3f4746912c0..bfaedd467c5 100644 --- a/ext/kernel/exception.h +++ b/ext/kernel/exception.h @@ -3,7 +3,7 @@ +------------------------------------------------------------------------+ | Zephir Language | +------------------------------------------------------------------------+ - | Copyright (c) 2011-2016 Zephir Team (http://www.zephir-lang.com) | + | Copyright (c) 2011-2017 Zephir Team (http://www.zephir-lang.com) | +------------------------------------------------------------------------+ | This source file is subject to the New BSD License that is bundled | | with this package in the file docs/LICENSE.txt. | diff --git a/ext/kernel/exit.c b/ext/kernel/exit.c index 60711990a6e..1484ff25b50 100644 --- a/ext/kernel/exit.c +++ b/ext/kernel/exit.c @@ -2,7 +2,7 @@ +------------------------------------------------------------------------+ | Zephir Language | +------------------------------------------------------------------------+ - | Copyright (c) 2011-2016 Zephir Team (http://www.zephir-lang.com) | + | Copyright (c) 2011-2017 Zephir Team (http://www.zephir-lang.com) | +------------------------------------------------------------------------+ | This source file is subject to the New BSD License that is bundled | | with this package in the file docs/LICENSE.txt. | @@ -26,8 +26,8 @@ #include "kernel/main.h" #include "kernel/exit.h" -void zephir_exit_empty() { - TSRMLS_FETCH(); +void zephir_exit_empty() +{ zend_bailout(); } diff --git a/ext/kernel/exit.h b/ext/kernel/exit.h index 23cd28be39d..e2730eaf7b7 100644 --- a/ext/kernel/exit.h +++ b/ext/kernel/exit.h @@ -3,7 +3,7 @@ +------------------------------------------------------------------------+ | Zephir Language | +------------------------------------------------------------------------+ - | Copyright (c) 2011-2016 Zephir Team (http://www.zephir-lang.com) | + | Copyright (c) 2011-2017 Zephir Team (http://www.zephir-lang.com) | +------------------------------------------------------------------------+ | This source file is subject to the New BSD License that is bundled | | with this package in the file docs/LICENSE.txt. | diff --git a/ext/kernel/extended/array.c b/ext/kernel/extended/array.c deleted file mode 100644 index 0593ca58ad5..00000000000 --- a/ext/kernel/extended/array.c +++ /dev/null @@ -1,18 +0,0 @@ - -/* - +------------------------------------------------------------------------+ - | Zephir Language | - +------------------------------------------------------------------------+ - | Copyright (c) 2011-2016 Zephir Team (http://www.zephir-lang.com) | - +------------------------------------------------------------------------+ - | This source file is subject to the New BSD License that is bundled | - | with this package in the file docs/LICENSE.txt. | - | | - | If you did not receive a copy of the license and are unable to | - | obtain it through the world-wide-web, please send an email | - | to license@zephir-lang.com so we can send you a copy immediately. | - +------------------------------------------------------------------------+ - | Authors: Andres Gutierrez | - | Eduar Carvajal | - +------------------------------------------------------------------------+ -*/ diff --git a/ext/kernel/extended/array.h b/ext/kernel/extended/array.h deleted file mode 100644 index 0593ca58ad5..00000000000 --- a/ext/kernel/extended/array.h +++ /dev/null @@ -1,18 +0,0 @@ - -/* - +------------------------------------------------------------------------+ - | Zephir Language | - +------------------------------------------------------------------------+ - | Copyright (c) 2011-2016 Zephir Team (http://www.zephir-lang.com) | - +------------------------------------------------------------------------+ - | This source file is subject to the New BSD License that is bundled | - | with this package in the file docs/LICENSE.txt. | - | | - | If you did not receive a copy of the license and are unable to | - | obtain it through the world-wide-web, please send an email | - | to license@zephir-lang.com so we can send you a copy immediately. | - +------------------------------------------------------------------------+ - | Authors: Andres Gutierrez | - | Eduar Carvajal | - +------------------------------------------------------------------------+ -*/ diff --git a/ext/kernel/extended/fcall.c b/ext/kernel/extended/fcall.c index a98660ba42f..2fd1d6892a0 100644 --- a/ext/kernel/extended/fcall.c +++ b/ext/kernel/extended/fcall.c @@ -3,7 +3,7 @@ +------------------------------------------------------------------------+ | Zephir Language | +------------------------------------------------------------------------+ - | Copyright (c) 2011-2016 Zephir Team (http://www.zephir-lang.com) | + | Copyright (c) 2011-2017 Zephir Team (http://www.zephir-lang.com) | +------------------------------------------------------------------------+ | This source file is subject to the New BSD License that is bundled | | with this package in the file docs/LICENSE.txt. | @@ -26,7 +26,6 @@ #include "kernel/main.h" #include "kernel/fcall.h" #include "kernel/memory.h" -#include "kernel/hash.h" #include "kernel/string.h" #include "kernel/operators.h" #include "kernel/exception.h" diff --git a/ext/kernel/extended/fcall.h b/ext/kernel/extended/fcall.h index fdfe164f32d..7b0feedc38c 100644 --- a/ext/kernel/extended/fcall.h +++ b/ext/kernel/extended/fcall.h @@ -3,7 +3,7 @@ +------------------------------------------------------------------------+ | Zephir Language | +------------------------------------------------------------------------+ - | Copyright (c) 2011-2016 Zephir Team (http://www.zephir-lang.com) | + | Copyright (c) 2011-2017 Zephir Team (http://www.zephir-lang.com) | +------------------------------------------------------------------------+ | This source file is subject to the New BSD License that is bundled | | with this package in the file docs/LICENSE.txt. | diff --git a/ext/kernel/fcall.c b/ext/kernel/fcall.c index f3dd181a1cf..8555ee34c15 100644 --- a/ext/kernel/fcall.c +++ b/ext/kernel/fcall.c @@ -3,7 +3,7 @@ +------------------------------------------------------------------------+ | Zephir Language | +------------------------------------------------------------------------+ - | Copyright (c) 2011-2016 Zephir Team (http://www.zephir-lang.com) | + | Copyright (c) 2011-2017 Zephir Team (https://www.zephir-lang.com) | +------------------------------------------------------------------------+ | This source file is subject to the New BSD License that is bundled | | with this package in the file docs/LICENSE.txt. | @@ -26,10 +26,9 @@ #include #include "kernel/main.h" -#include "kernel/fcall.h" #include "kernel/extended/fcall.h" #include "kernel/memory.h" -#include "kernel/hash.h" +#include "kernel/fcall.h" #include "kernel/operators.h" #include "kernel/exception.h" #include "kernel/backtrace.h" @@ -753,7 +752,6 @@ int zephir_call_class_method_aparams(zval **return_value_ptr, zend_class_entry * zephir_fcall_cache_entry **cache_entry, int cache_slot, uint param_count, zval **params TSRMLS_DC) { - char *possible_method; zval *rv = NULL, **rvp = return_value_ptr ? return_value_ptr : &rv; zval *fn = NULL; #if PHP_VERSION_ID < 50600 @@ -860,29 +858,13 @@ int zephir_call_class_method_aparams(zval **return_value_ptr, zend_class_entry * #endif if (status == FAILURE && !EG(exception)) { - - if (ce) { - possible_method = zephir_fcall_possible_method(ce, method_name TSRMLS_CC); - } else { - possible_method = "undefined"; - } - switch (type) { - case zephir_fcall_parent: - if (possible_method) { - zephir_throw_exception_format(spl_ce_RuntimeException TSRMLS_CC, "Call to undefined method parent::%s(), did you mean '%s'?", method_name, possible_method); - } else { - zephir_throw_exception_format(spl_ce_RuntimeException TSRMLS_CC, "Call to undefined method parent::%s()", method_name); - } + zephir_throw_exception_format(spl_ce_RuntimeException TSRMLS_CC, "Call to undefined method parent::%s()", method_name); break; case zephir_fcall_self: - if (possible_method) { - zephir_throw_exception_format(spl_ce_RuntimeException TSRMLS_CC, "Call to undefined method self::%s(), did you mean '%s'?", method_name, possible_method); - } else { - zephir_throw_exception_format(spl_ce_RuntimeException TSRMLS_CC, "Call to undefined method self::%s()", method_name); - } + zephir_throw_exception_format(spl_ce_RuntimeException TSRMLS_CC, "Call to undefined method self::%s()", method_name); break; case zephir_fcall_static: @@ -894,11 +876,7 @@ int zephir_call_class_method_aparams(zval **return_value_ptr, zend_class_entry * break; case zephir_fcall_method: - if (possible_method) { - zephir_throw_exception_format(spl_ce_RuntimeException TSRMLS_CC, "Call to undefined method %s::%s(), did you mean '%s'?", ce->name, method_name, possible_method); - } else { - zephir_throw_exception_format(spl_ce_RuntimeException TSRMLS_CC, "Call to undefined method %s::%s()", ce->name, method_name); - } + zephir_throw_exception_format(spl_ce_RuntimeException TSRMLS_CC, "Call to undefined method %s::%s()", ce->name, method_name); break; default: diff --git a/ext/kernel/fcall.h b/ext/kernel/fcall.h index f612db28c64..4a06fb6567b 100644 --- a/ext/kernel/fcall.h +++ b/ext/kernel/fcall.h @@ -3,7 +3,7 @@ +------------------------------------------------------------------------+ | Zephir Language | +------------------------------------------------------------------------+ - | Copyright (c) 2011-2016 Zephir Team (http://www.zephir-lang.com) | + | Copyright (c) 2011-2017 Zephir Team (http://www.zephir-lang.com) | +------------------------------------------------------------------------+ | This source file is subject to the New BSD License that is bundled | | with this package in the file docs/LICENSE.txt. | diff --git a/ext/kernel/file.c b/ext/kernel/file.c index 4de3c9b9c79..8845df50e33 100644 --- a/ext/kernel/file.c +++ b/ext/kernel/file.c @@ -3,7 +3,7 @@ +------------------------------------------------------------------------+ | Zephir Language | +------------------------------------------------------------------------+ - | Copyright (c) 2011-2016 Zephir Team (http://www.zephir-lang.com) | + | Copyright (c) 2011-2017 Zephir Team (http://www.zephir-lang.com) | +------------------------------------------------------------------------+ | This source file is subject to the New BSD License that is bundled | | with this package in the file docs/LICENSE.txt. | @@ -417,7 +417,7 @@ void zephir_file_put_contents(zval *return_value, zval *filename, zval *data TSR void zephir_is_dir(zval *return_value, zval *path TSRMLS_DC) { - if (likely(Z_TYPE_P(path) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(path) == IS_STRING)) { php_stat(Z_STRVAL_P(path), (php_stat_len)(Z_STRLEN_P(path)), FS_IS_DIR, return_value TSRMLS_CC); } else { ZVAL_FALSE(return_value); @@ -426,12 +426,12 @@ void zephir_is_dir(zval *return_value, zval *path TSRMLS_DC) void zephir_unlink(zval *return_value, zval *path TSRMLS_DC) { - if (likely(Z_TYPE_P(path) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(path) == IS_STRING)) { php_stream_context *context; php_stream_wrapper *wrapper; zval *zctx = NULL; - if (unlikely(strlen(Z_STRVAL_P(path)) != Z_STRLEN_P(path))) { + if (UNEXPECTED(strlen(Z_STRVAL_P(path)) != Z_STRLEN_P(path))) { ZVAL_FALSE(return_value); return; } @@ -454,7 +454,7 @@ void zephir_unlink(zval *return_value, zval *path TSRMLS_DC) void zephir_filemtime(zval *return_value, zval *path TSRMLS_DC) { - if (likely(Z_TYPE_P(path) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(path) == IS_STRING)) { php_stat(Z_STRVAL_P(path), (php_stat_len)(Z_STRLEN_P(path)), FS_MTIME, return_value TSRMLS_CC); } else { ZVAL_FALSE(return_value); @@ -463,7 +463,7 @@ void zephir_filemtime(zval *return_value, zval *path TSRMLS_DC) void zephir_basename(zval *return_value, zval *path TSRMLS_DC) { - if (likely(Z_TYPE_P(path) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(path) == IS_STRING)) { char *ret; size_t ret_len; diff --git a/ext/kernel/file.h b/ext/kernel/file.h index 5429c1d4e4d..6a11b171e2c 100644 --- a/ext/kernel/file.h +++ b/ext/kernel/file.h @@ -3,7 +3,7 @@ +------------------------------------------------------------------------+ | Zephir Language | +------------------------------------------------------------------------+ - | Copyright (c) 2011-2016 Zephir Team (http://www.zephir-lang.com) | + | Copyright (c) 2011-2017 Zephir Team (http://www.zephir-lang.com) | +------------------------------------------------------------------------+ | This source file is subject to the New BSD License that is bundled | | with this package in the file docs/LICENSE.txt. | diff --git a/ext/kernel/filter.c b/ext/kernel/filter.c index 8a9b2ffccf9..2ddae44a3e2 100644 --- a/ext/kernel/filter.c +++ b/ext/kernel/filter.c @@ -3,7 +3,7 @@ +------------------------------------------------------------------------+ | Zephir Language | +------------------------------------------------------------------------+ - | Copyright (c) 2011-2016 Zephir Team (http://www.zephir-lang.com) | + | Copyright (c) 2011-2017 Zephir Team (http://www.zephir-lang.com) | +------------------------------------------------------------------------+ | This source file is subject to the New BSD License that is bundled | | with this package in the file docs/LICENSE.txt. | diff --git a/ext/kernel/filter.h b/ext/kernel/filter.h index b86b1ea4970..ed8d794baab 100644 --- a/ext/kernel/filter.h +++ b/ext/kernel/filter.h @@ -3,7 +3,7 @@ +------------------------------------------------------------------------+ | Zephir Language | +------------------------------------------------------------------------+ - | Copyright (c) 2011-2016 Zephir Team (http://www.zephir-lang.com) | + | Copyright (c) 2011-2017 Zephir Team (http://www.zephir-lang.com) | +------------------------------------------------------------------------+ | This source file is subject to the New BSD License that is bundled | | with this package in the file docs/LICENSE.txt. | @@ -35,4 +35,4 @@ void zephir_escape_js(zval *return_value, zval *param); void zephir_escape_htmlattr(zval *return_value, zval *param); void zephir_escape_html(zval *return_value, zval *str, zval *quote_style, zval *charset TSRMLS_DC); -#endif \ No newline at end of file +#endif diff --git a/ext/kernel/globals.h b/ext/kernel/globals.h index a8dce4f14bc..6a5988f97ea 100644 --- a/ext/kernel/globals.h +++ b/ext/kernel/globals.h @@ -3,7 +3,7 @@ +------------------------------------------------------------------------+ | Zephir Language | +------------------------------------------------------------------------+ - | Copyright (c) 2011-2016 Zephir Team (http://www.zephir-lang.com) | + | Copyright (c) 2011-2017 Zephir Team (http://www.zephir-lang.com) | +------------------------------------------------------------------------+ | This source file is subject to the New BSD License that is bundled | | with this package in the file docs/LICENSE.txt. | @@ -112,10 +112,6 @@ typedef zend_function zephir_fcall_cache_entry; # define HASH_KEY_NON_EXISTENT HASH_KEY_NON_EXISTANT #endif -/** Macros for branch prediction */ -#define likely(x) EXPECTED(x) -#define unlikely(x) UNEXPECTED(x) - #if defined(__GNUC__) && (defined(__clang__) || ((__GNUC__ * 100 + __GNUC_MINOR__) >= 405)) # define UNREACHABLE() __builtin_unreachable() # define ASSUME(x) if (x) {} else __builtin_unreachable() @@ -146,10 +142,6 @@ typedef zend_function zephir_fcall_cache_entry; # define __builtin_constant_p(s) (0) #endif -#ifndef ZEND_MOD_END -# define ZEND_MOD_END { NULL, NULL, NULL, 0 } -#endif - #ifndef __func__ # define __func__ __FUNCTION__ #endif @@ -160,12 +152,7 @@ typedef zend_function zephir_fcall_cache_entry; # define ZEPHIR_NO_OPT #endif -#ifdef ZTS -#define zephir_nts_static -#else -#define zephir_nts_static -#endif - -#define ZEPHIR_STATIC +#define likely(x) EXPECTED(x) +#define unlikely(x) UNEXPECTED(x) #endif diff --git a/ext/kernel/hash.c b/ext/kernel/hash.c deleted file mode 100644 index eac4ab522d7..00000000000 --- a/ext/kernel/hash.c +++ /dev/null @@ -1,362 +0,0 @@ - -/* - +------------------------------------------------------------------------+ - | Zephir Language | - +------------------------------------------------------------------------+ - | Copyright (c) 2011-2016 Zephir Team (http://www.zephir-lang.com) | - +------------------------------------------------------------------------+ - | This source file is subject to the New BSD License that is bundled | - | with this package in the file docs/LICENSE.txt. | - | | - | If you did not receive a copy of the license and are unable to | - | obtain it through the world-wide-web, please send an email | - | to license@zephir-lang.com so we can send you a copy immediately. | - +------------------------------------------------------------------------+ - | Authors: Andres Gutierrez | - | Eduar Carvajal | - | Vladimir Kolesnikov | - +------------------------------------------------------------------------+ -*/ - -#ifdef HAVE_CONFIG_H -#include "config.h" -#endif - -#include "php.h" -#include "php_ext.h" -#include - -#include "kernel/memory.h" - -int zephir_hash_init(HashTable *ht, uint nSize, hash_func_t pHashFunction, dtor_func_t pDestructor, zend_bool persistent) -{ - if (nSize >= 0x80000000) { - ht->nTableSize = 0x80000000; - } else { - if (nSize > 3) { - ht->nTableSize = nSize + (nSize >> 2); - } else { - ht->nTableSize = 3; - } - } - -#if ZEND_DEBUG - ht->inconsistent = 0; -#endif - - ht->nTableMask = 0; /* 0 means that ht->arBuckets is uninitialized */ - ht->pDestructor = pDestructor; - ht->arBuckets = NULL; - ht->pListHead = NULL; - ht->pListTail = NULL; - ht->nNumOfElements = 0; - ht->nNextFreeElement = 0; - ht->pInternalPointer = NULL; - ht->persistent = persistent; - ht->nApplyCount = 0; - ht->bApplyProtection = 1; - - return SUCCESS; -} - -int zephir_hash_exists(const HashTable *ht, const char *arKey, uint nKeyLength) -{ - ulong h; - uint nIndex; - Bucket *p; - - h = zend_inline_hash_func(arKey, nKeyLength); - nIndex = h & ht->nTableMask; - - p = ht->arBuckets[nIndex]; - while (p != NULL) { - if (p->arKey == arKey || ((p->h == h) && (p->nKeyLength == nKeyLength))) { - if (!memcmp(p->arKey, arKey, nKeyLength)) { - return 1; - } - } - p = p->pNext; - } - return 0; -} - -int zephir_hash_quick_exists(const HashTable *ht, const char *arKey, uint nKeyLength, ulong h) -{ - uint nIndex; - Bucket *p; - - if (nKeyLength == 0) { - return zend_hash_index_exists(ht, h); - } - - nIndex = h & ht->nTableMask; - - p = ht->arBuckets[nIndex]; - while (p != NULL) { - if (p->arKey == arKey || ((p->h == h) && (p->nKeyLength == nKeyLength))) { - if (!memcmp(p->arKey, arKey, nKeyLength)) { - return 1; - } - } - p = p->pNext; - } - return 0; -} - -int zephir_hash_find(const HashTable *ht, const char *arKey, uint nKeyLength, void **pData) -{ - ulong h; - uint nIndex; - Bucket *p; - - h = zend_inline_hash_func(arKey, nKeyLength); - nIndex = h & ht->nTableMask; - - p = ht->arBuckets[nIndex]; - while (p != NULL) { - if (p->arKey == arKey || ((p->h == h) && (p->nKeyLength == nKeyLength))) { - if (!memcmp(p->arKey, arKey, nKeyLength)) { - *pData = p->pData; - return SUCCESS; - } - } - p = p->pNext; - } - return FAILURE; -} - -int zephir_hash_quick_find(const HashTable *ht, const char *arKey, uint nKeyLength, ulong h, void **pData) -{ - uint nIndex; - Bucket *p; - - if (nKeyLength == 0) { - return zend_hash_index_find(ht, h, pData); - } - - nIndex = h & ht->nTableMask; - - p = ht->arBuckets[nIndex]; - while (p != NULL) { - if (p->arKey == arKey || ((p->h == h) && (p->nKeyLength == nKeyLength))) { - if (!memcmp(p->arKey, arKey, nKeyLength)) { - *pData = p->pData; - return SUCCESS; - } - } - p = p->pNext; - } - return FAILURE; -} - -/** - * Assigns the current value in a hash traversing to a zval - */ -void zephir_get_current_key(zval **key, const HashTable *hash_table, HashPosition *hash_position TSRMLS_DC) -{ - Bucket *p; - - ZEPHIR_INIT_NVAR_PNULL(*key); - - p = hash_position ? (*hash_position) : hash_table->pInternalPointer; - - if (p) { - if (p->nKeyLength) { - ZVAL_STRINGL(*key, (char *) p->arKey, p->nKeyLength - 1, 0); - } else { - ZVAL_LONG(*key, p->h); - } - } - -} - -zval zephir_get_current_key_w(const HashTable *hash_table, HashPosition *hash_position) -{ - Bucket *p; - zval result; - - INIT_ZVAL(result); - p = hash_position ? (*hash_position) : hash_table->pInternalPointer; - - if (p) { - if (p->nKeyLength) { - ZVAL_STRINGL(&result, (char *) p->arKey, p->nKeyLength - 1, 0); - } else { - ZVAL_LONG(&result, p->h); - } - } - - return result; -} - -/** - * Traverses the hash checking if at least one of the keys is numeric - */ -int zephir_has_numeric_keys(const zval *data) -{ - HashTable *ht; - - if (Z_TYPE_P(data) == IS_ARRAY) { - - ht = Z_ARRVAL_P(data); - - ht->pInternalPointer = ht->pListHead; - while (ht->pInternalPointer) { - if (!ht->pInternalPointer->nKeyLength) { - return 1; - } - ht->pInternalPointer = ht->pInternalPointer->pListNext; - } - - } - - return 0; -} - -/** - * @brief Adds or updates item @a key in the hash table @a ht - * @param ht Hash table - * @param[in] key Key - * @param[in] value Value - * @note @a value's reference count in not updated - * @note If @a key is @c NULL or is @c IS_NULL, @a value is appended to @a ht - * @throw E_WARNING if @a key type is not supported - */ -void zephir_hash_update_or_insert(HashTable *ht, zval *key, zval *value) -{ - if (!key || Z_TYPE_P(key) == IS_NULL) { - zend_hash_next_index_insert(ht, (void**)&value, sizeof(zval*), NULL); - return; - } - - switch (Z_TYPE_P(key)) { - case IS_STRING: - zend_symtable_update(ht, Z_STRVAL_P(key), Z_STRLEN_P(key)+1, (void**)&value, sizeof(zval*), NULL); - return; - - case IS_RESOURCE: - case IS_DOUBLE: - case IS_BOOL: - case IS_LONG: - zend_hash_index_update(ht, ((Z_TYPE_P(key) == IS_DOUBLE) ? (ulong)Z_DVAL_P(key) : Z_LVAL_P(key)), (void*)&value, sizeof(zval*), NULL); - return; - - default: - zend_error(E_WARNING, "Illegal offset type"); - return; - } -} - -/** - * @brief Returns the entry @a ht identified by @a key - * @param[in] ht Hash table - * @param[in] key - * @param[in] type One of @c BP_VAR_XXX values - * @return Pointer to the stored value or a pointer to the special variable / @c NULL if @a key was not found - * @retval &EG(error_zval_ptr) when @a key was not found and @a type is one of @c BP_VAR_W, @c BP_VAR_RW - * @retval &EG(uninitialized_zval_ptr) when @a key was not found and @a type is one of @c BP_VAR_R, @c BP_VAR_UNSET, @c BP_VAR_IS - * @retval @c NULL when @a key was not found and @a type is not any of the above - * @throw @c E_WARNING when @a key is of not supported typel in this case the function never returns @c NULL - * @throw @c E_STRICT when @a key is a resource - * @throw @c E_NOTICE if @a key was not found and @a type is @c BP_VAR_R or @c BP_VAR_RW - * @note Reference count of the returned item is not modified - * @note The implementation is suitable for @c read_property, @c get_property_ptr_ptr and @c read_dimension object handlers - * @warning If @a type is @c BP_VAR_W or @c BP_VAR_RW and @a key was not found, it is added to @a ht and its value is set to @c IS_NULL - */ -zval** zephir_hash_get(HashTable *ht, zval *key, int type) -{ - zval **ret = NULL; - - switch (Z_TYPE_P(key)) { - case IS_RESOURCE: - zend_error(E_STRICT, "Resource ID#%ld used as offset, casting to integer (%ld)", Z_LVAL_P(key), Z_LVAL_P(key)); - /* no break */ - case IS_LONG: - case IS_DOUBLE: - case IS_BOOL: { - ulong index = (Z_TYPE_P(key) == IS_DOUBLE) ? ((long int)Z_DVAL_P(key)) : Z_LVAL_P(key); - if (FAILURE == zend_hash_index_find(ht, index, (void**)&ret)) { - switch (type) { - case BP_VAR_R: - zend_error(E_NOTICE, "Undefined offset: %ld", index); - /* no break */ - case BP_VAR_UNSET: - case BP_VAR_IS: { - TSRMLS_FETCH(); - ret = &EG(uninitialized_zval_ptr); - break; - } - - case BP_VAR_RW: - zend_error(E_NOTICE, "Undefined offset: %ld", index); - /* no break */ - case BP_VAR_W: { - zval *value; - ALLOC_INIT_ZVAL(value); - zend_hash_index_update(ht, index, (void**)&value, sizeof(void*), (void**)&ret); - break; - } - } - } - - return ret; - } - - case IS_STRING: - if (FAILURE == zend_symtable_find(ht, Z_STRVAL_P(key), Z_STRLEN_P(key)+1, (void**)&ret)) { - switch (type) { - case BP_VAR_R: - zend_error(E_NOTICE, "Undefined offset: %s", Z_STRVAL_P(key)); - /* no break */ - case BP_VAR_UNSET: - case BP_VAR_IS: { - TSRMLS_FETCH(); - ret = &EG(uninitialized_zval_ptr); - break; - } - - case BP_VAR_RW: - zend_error(E_NOTICE, "Undefined offset: %s", Z_STRVAL_P(key)); - /* no break */ - case BP_VAR_W: { - zval *value; - ALLOC_INIT_ZVAL(value); - zend_symtable_update(ht, Z_STRVAL_P(key), Z_STRLEN_P(key)+1, (void**)&value, sizeof(void*), (void**)&ret); - break; - } - } - } - - return ret; - - default: { - TSRMLS_FETCH(); - zend_error(E_WARNING, "Illegal offset type"); - return (type == BP_VAR_W || type == BP_VAR_RW) ? &EG(error_zval_ptr) : &EG(uninitialized_zval_ptr); - } - } -} - -/** - * @brief Unset @a key from @a ht - * @param ht - * @param key - * @return - */ -int zephir_hash_unset(HashTable *ht, zval *key) -{ - switch (Z_TYPE_P(key)) { - case IS_LONG: - case IS_DOUBLE: - case IS_BOOL: - case IS_RESOURCE: - return (zend_hash_index_del(ht, (Z_TYPE_P(key) == IS_DOUBLE) ? ((long int)Z_DVAL_P(key)) : Z_LVAL_P(key)) == SUCCESS); - - case IS_STRING: - return (zend_symtable_del(ht, Z_STRVAL_P(key), Z_STRLEN_P(key) + 1) == SUCCESS); - - default: - zend_error(E_WARNING, "Illegal offset type"); - return 0; - } -} diff --git a/ext/kernel/hash.h b/ext/kernel/hash.h deleted file mode 100644 index 83b0f796ac1..00000000000 --- a/ext/kernel/hash.h +++ /dev/null @@ -1,86 +0,0 @@ - -/* - +------------------------------------------------------------------------+ - | Zephir Language | - +------------------------------------------------------------------------+ - | Copyright (c) 2011-2016 Zephir Team (http://www.zephir-lang.com) | - +------------------------------------------------------------------------+ - | This source file is subject to the New BSD License that is bundled | - | with this package in the file docs/LICENSE.txt. | - | | - | If you did not receive a copy of the license and are unable to | - | obtain it through the world-wide-web, please send an email | - | to license@zephir-lang.com so we can send you a copy immediately. | - +------------------------------------------------------------------------+ - | Authors: Andres Gutierrez | - | Eduar Carvajal | - | Vladimir Kolesnikov | - +------------------------------------------------------------------------+ -*/ - -#ifndef ZEPHIR_KERNEL_HASH_H -#define ZEPHIR_KERNEL_HASH_H - -#include -#include -#include - -int zephir_hash_init(HashTable *ht, uint nSize, hash_func_t pHashFunction, dtor_func_t pDestructor, zend_bool persistent); - -int zephir_hash_exists(const HashTable *ht, const char *arKey, uint nKeyLength); -int zephir_hash_quick_exists(const HashTable *ht, const char *arKey, uint nKeyLength, ulong h); -int zephir_hash_find(const HashTable *ht, const char *arKey, uint nKeyLength, void **pData); -int zephir_hash_quick_find(const HashTable *ht, const char *arKey, uint nKeyLength, ulong h, void **pData); -void zephir_get_current_key(zval **key, const HashTable *hash_table, HashPosition *hash_position TSRMLS_DC); -zval zephir_get_current_key_w(const HashTable *hash_table, HashPosition *hash_position); -int zephir_has_numeric_keys(const zval *data); -void zephir_hash_update_or_insert(HashTable *ht, zval *offset, zval *value); -zval** zephir_hash_get(HashTable *ht, zval *key, int type); -int zephir_hash_unset(HashTable *ht, zval *offset); - -#define zephir_hash_move_forward_ex(ht, pos) *pos = (*pos ? (*pos)->pListNext : NULL) - -static zend_always_inline int zephir_hash_get_current_data_ex(HashTable *ht, void **pData, HashPosition *pos) -{ - Bucket *p; - p = pos ? (*pos) : ht->pInternalPointer; - if (p) { - *pData = p->pData; - return SUCCESS; - } else { - return FAILURE; - } -} - -static zend_always_inline int zephir_hash_move_backwards_ex(HashTable *ht, HashPosition *pos) -{ -#if PHP_VERSION_ID < 70000 - HashPosition *current = pos ? pos : &ht->pInternalPointer; - if (*current) { - *current = (*current)->pListLast; - return SUCCESS; - } else { - return FAILURE; - } -#else - uint idx = *pos; - - IS_CONSISTENT(ht); - - if (idx != INVALID_IDX) { - while (idx > 0) { - idx--; - if (Z_TYPE(ht->arData[idx].val) != IS_UNDEF) { - *pos = idx; - return SUCCESS; - } - } - *pos = INVALID_IDX; - return SUCCESS; - } else { - return FAILURE; - } -#endif -} - -#endif diff --git a/ext/kernel/iterator.c b/ext/kernel/iterator.c index 26a3e46f988..b5d0e037d5a 100644 --- a/ext/kernel/iterator.c +++ b/ext/kernel/iterator.c @@ -3,7 +3,7 @@ +------------------------------------------------------------------------+ | Zephir Language | +------------------------------------------------------------------------+ - | Copyright (c) 2011-2016 Zephir Team (http://www.zephir-lang.com) | + | Copyright (c) 2011-2017 Zephir Team (http://www.zephir-lang.com) | +------------------------------------------------------------------------+ | This source file is subject to the New BSD License that is bundled | | with this package in the file docs/LICENSE.txt. | diff --git a/ext/kernel/iterator.h b/ext/kernel/iterator.h index 1645823fbf6..0969ae53f8c 100644 --- a/ext/kernel/iterator.h +++ b/ext/kernel/iterator.h @@ -3,7 +3,7 @@ +------------------------------------------------------------------------+ | Zephir Language | +------------------------------------------------------------------------+ - | Copyright (c) 2011-2016 Zephir Team (http://www.zephir-lang.com) | + | Copyright (c) 2011-2017 Zephir Team (http://www.zephir-lang.com) | +------------------------------------------------------------------------+ | This source file is subject to the New BSD License that is bundled | | with this package in the file docs/LICENSE.txt. | diff --git a/ext/kernel/main.c b/ext/kernel/main.c index c87504996ed..9cc42517ed6 100644 --- a/ext/kernel/main.c +++ b/ext/kernel/main.c @@ -3,7 +3,7 @@ +------------------------------------------------------------------------+ | Zephir Language | +------------------------------------------------------------------------+ - | Copyright (c) 2011-2016 Zephir Team (http://www.zephir-lang.com) | + | Copyright (c) 2011-2017 Zephir Team (http://www.zephir-lang.com) | +------------------------------------------------------------------------+ | This source file is subject to the New BSD License that is bundled | | with this package in the file docs/LICENSE.txt. | @@ -301,7 +301,7 @@ int zephir_is_scalar(zval *var) { */ int zephir_is_iterable_ex(zval *arr, HashTable **arr_hash, HashPosition *hash_position, int duplicate, int reverse) { - if (unlikely(Z_TYPE_P(arr) != IS_ARRAY)) { + if (UNEXPECTED(Z_TYPE_P(arr) != IS_ARRAY)) { return 0; } @@ -439,3 +439,49 @@ zend_class_entry* zephir_get_internal_ce(const char *class_name, unsigned int cl return *temp_ce; } + +void zephir_get_args(zval *return_value TSRMLS_DC) +{ + zend_execute_data *ex = EG(current_execute_data); + void **p = ex->function_state.arguments; + int arg_count = (int)(zend_uintptr_t)*p; + int i; + + array_init_size(return_value, arg_count); + for (i=0; ifunction_state.arguments; + int arg_count = (int)(zend_uintptr_t)*p; + zval *arg; + + if (UNEXPECTED(idx < 0)) { + zend_error(E_WARNING, "zephir_get_arg(): The argument number should be >= 0"); + RETURN_FALSE; + } + + if (UNEXPECTED((zend_ulong)idx >= arg_count)) { + zend_error(E_WARNING, "zephir_get_arg(): Argument %d not passed to function", idx); + RETURN_FALSE; + } + + arg = *((zval**)(p - arg_count + idx)); + RETURN_ZVAL(arg, 1, 0); +} diff --git a/ext/kernel/main.h b/ext/kernel/main.h index cc3970ef269..c0e340338dd 100644 --- a/ext/kernel/main.h +++ b/ext/kernel/main.h @@ -3,7 +3,7 @@ +------------------------------------------------------------------------+ | Zephir Language | +------------------------------------------------------------------------+ - | Copyright (c) 2011-2016 Zephir Team (http://www.zephir-lang.com) | + | Copyright (c) 2011-2017 Zephir Team (http://www.zephir-lang.com) | +------------------------------------------------------------------------+ | This source file is subject to the New BSD License that is bundled | | with this package in the file docs/LICENSE.txt. | @@ -567,4 +567,7 @@ static inline char *_str_erealloc(char *str, size_t new_len, size_t old_len) { #define zephir_is_php_version(id) (PHP_VERSION_ID / 10 == id / 10 ? 1 : 0) +void zephir_get_args(zval* return_value TSRMLS_DC); +void zephir_get_arg(zval* return_value, int idx TSRMLS_DC); + #endif /* ZEPHIR_KERNEL_MAIN_H */ diff --git a/ext/kernel/math.c b/ext/kernel/math.c index f5593c58ce8..8f3cac03ce9 100644 --- a/ext/kernel/math.c +++ b/ext/kernel/math.c @@ -3,7 +3,7 @@ +------------------------------------------------------------------------+ | Zephir Language | +------------------------------------------------------------------------+ - | Copyright (c) 2011-2016 Zephir Team (http://www.zephir-lang.com) | + | Copyright (c) 2011-2017 Zephir Team (http://www.zephir-lang.com) | +------------------------------------------------------------------------+ | This source file is subject to the New BSD License that is bundled | | with this package in the file docs/LICENSE.txt. | diff --git a/ext/kernel/math.h b/ext/kernel/math.h index bbcae53f1cc..9720bf864e7 100644 --- a/ext/kernel/math.h +++ b/ext/kernel/math.h @@ -3,7 +3,7 @@ +------------------------------------------------------------------------+ | Zephir Language | +------------------------------------------------------------------------+ - | Copyright (c) 2011-2016 Zephir Team (http://www.zephir-lang.com) | + | Copyright (c) 2011-2017 Zephir Team (http://www.zephir-lang.com) | +------------------------------------------------------------------------+ | This source file is subject to the New BSD License that is bundled | | with this package in the file docs/LICENSE.txt. | diff --git a/ext/kernel/memory.c b/ext/kernel/memory.c index ec9b0b3c312..7db8bc368f5 100644 --- a/ext/kernel/memory.c +++ b/ext/kernel/memory.c @@ -3,7 +3,7 @@ +------------------------------------------------------------------------+ | Zephir Language | +------------------------------------------------------------------------+ - | Copyright (c) 2011-2016 Zephir Team (http://www.zephir-lang.com) | + | Copyright (c) 2011-2017 Zephir Team (http://www.zephir-lang.com) | +------------------------------------------------------------------------+ | This source file is subject to the New BSD License that is bundled | | with this package in the file docs/LICENSE.txt. | diff --git a/ext/kernel/memory.h b/ext/kernel/memory.h index c9f79a33993..592458cbb13 100644 --- a/ext/kernel/memory.h +++ b/ext/kernel/memory.h @@ -3,7 +3,7 @@ +------------------------------------------------------------------------+ | Zephir Language | +------------------------------------------------------------------------+ - | Copyright (c) 2011-2016 Zephir Team (http://www.zephir-lang.com) | + | Copyright (c) 2011-2017 Zephir Team (http://www.zephir-lang.com) | +------------------------------------------------------------------------+ | This source file is subject to the New BSD License that is bundled | | with this package in the file docs/LICENSE.txt. | diff --git a/ext/kernel/object.c b/ext/kernel/object.c index 4d583bae667..f197185f7a2 100644 --- a/ext/kernel/object.c +++ b/ext/kernel/object.c @@ -3,7 +3,7 @@ +------------------------------------------------------------------------+ | Zephir Language | +------------------------------------------------------------------------+ - | Copyright (c) 2011-2016 Zephir Team (http://www.zephir-lang.com) | + | Copyright (c) 2011-2017 Zephir Team (http://www.zephir-lang.com) | +------------------------------------------------------------------------+ | This source file is subject to the New BSD License that is bundled | | with this package in the file docs/LICENSE.txt. | @@ -32,7 +32,6 @@ #include "kernel/object.h" #include "kernel/exception.h" #include "kernel/fcall.h" -#include "kernel/hash.h" #include "kernel/array.h" #include "kernel/operators.h" @@ -44,7 +43,7 @@ int zephir_get_class_constant(zval *return_value, zend_class_entry *ce, char *co zval **result_ptr; - if (zephir_hash_find(&ce->constants_table, constant_name, constant_length, (void **) &result_ptr) != SUCCESS) { + if (zend_hash_find(&ce->constants_table, constant_name, constant_length, (void **) &result_ptr) != SUCCESS) { php_error_docref(NULL TSRMLS_CC, E_ERROR, "Undefined class constant '%s::%s'", ce->name, constant_name); return FAILURE; } @@ -400,10 +399,10 @@ int zephir_clone(zval *destination, zval *obj TSRMLS_DC) { int zephir_isset_property_quick(zval *object, const char *property_name, unsigned int property_length, unsigned long hash TSRMLS_DC) { if (Z_TYPE_P(object) == IS_OBJECT) { - if (likely(zephir_hash_quick_exists(&Z_OBJCE_P(object)->properties_info, property_name, property_length, hash))) { + if (EXPECTED(zend_hash_quick_exists(&Z_OBJCE_P(object)->properties_info, property_name, property_length, hash))) { return 1; } else { - return zephir_hash_quick_exists(Z_OBJ_HT_P(object)->get_properties(object TSRMLS_CC), property_name, property_length, hash); + return zend_hash_quick_exists(Z_OBJ_HT_P(object)->get_properties(object TSRMLS_CC), property_name, property_length, hash); } } @@ -430,10 +429,10 @@ int zephir_isset_property_zval(zval *object, const zval *property TSRMLS_DC) { hash = zend_inline_hash_func(Z_STRVAL_P(property), Z_STRLEN_P(property) + 1); - if (likely(zephir_hash_quick_exists(&Z_OBJCE_P(object)->properties_info, Z_STRVAL_P(property), Z_STRLEN_P(property) + 1, hash))) { + if (EXPECTED(zend_hash_quick_exists(&Z_OBJCE_P(object)->properties_info, Z_STRVAL_P(property), Z_STRLEN_P(property) + 1, hash))) { return 1; } else { - return zephir_hash_quick_exists(Z_OBJ_HT_P(object)->get_properties(object TSRMLS_CC), Z_STRVAL_P(property), Z_STRLEN_P(property) + 1, hash); + return zend_hash_quick_exists(Z_OBJ_HT_P(object)->get_properties(object TSRMLS_CC), Z_STRVAL_P(property), Z_STRLEN_P(property) + 1, hash); } } } @@ -450,7 +449,7 @@ static inline zend_class_entry *zephir_lookup_class_ce_quick(zend_class_entry *c zend_class_entry *original_ce = ce; while (ce) { - if (zephir_hash_quick_exists(&ce->properties_info, property_name, property_length + 1, hash)) { + if (zend_hash_quick_exists(&ce->properties_info, property_name, property_length + 1, hash)) { return ce; } ce = ce->parent; @@ -528,7 +527,7 @@ zval* zephir_fetch_property_this_quick(zval *object, const char *property_name, zend_property_info *property_info; zend_class_entry *ce, *old_scope; - if (likely(Z_TYPE_P(object) == IS_OBJECT)) { + if (EXPECTED(Z_TYPE_P(object) == IS_OBJECT)) { ce = Z_OBJCE_P(object); if (ce->parent) { @@ -540,7 +539,7 @@ zval* zephir_fetch_property_this_quick(zval *object, const char *property_name, zobj = zend_objects_get_address(object TSRMLS_CC); - if (zephir_hash_quick_find(&ce->properties_info, property_name, property_length + 1, key, (void **) &property_info) == SUCCESS) { + if (zend_hash_quick_find(&ce->properties_info, property_name, property_length + 1, key, (void **) &property_info) == SUCCESS) { int flag; if (EXPECTED((property_info->flags & ZEND_ACC_STATIC) == 0) && property_info->offset >= 0) { if (zobj->properties) { @@ -552,22 +551,22 @@ zval* zephir_fetch_property_this_quick(zval *object, const char *property_name, } } else if (UNEXPECTED(!zobj->properties)) { flag = 1; - } else if (UNEXPECTED(zephir_hash_quick_find(zobj->properties, property_info->name, property_info->name_length+1, property_info->h, (void **) &zv) == FAILURE)) { + } else if (UNEXPECTED(zend_hash_quick_find(zobj->properties, property_info->name, property_info->name_length+1, property_info->h, (void **) &zv) == FAILURE)) { flag = 2; } else { flag = 0; } - if (unlikely(flag) && zobj->properties) { + if (UNEXPECTED(flag) && zobj->properties) { if ( - (flag == 2 || zephir_hash_quick_find(zobj->properties, property_info->name, property_info->name_length+1, property_info->h, (void **) &zv) == FAILURE) + (flag == 2 || zend_hash_quick_find(zobj->properties, property_info->name, property_info->name_length+1, property_info->h, (void **) &zv) == FAILURE) && zv && *zv ) { flag = 0; } } - if (likely(!flag)) { + if (EXPECTED(!flag)) { EG(scope) = old_scope; return *zv; } @@ -594,7 +593,7 @@ int zephir_return_property_quick(zval *return_value, zval **return_value_ptr, zv zend_property_info *property_info; zend_class_entry *ce, *old_scope; - if (likely(Z_TYPE_P(object) == IS_OBJECT)) { + if (EXPECTED(Z_TYPE_P(object) == IS_OBJECT)) { ce = Z_OBJCE_P(object); if (ce->parent) { @@ -606,7 +605,7 @@ int zephir_return_property_quick(zval *return_value, zval **return_value_ptr, zv zobj = zend_objects_get_address(object TSRMLS_CC); - if (zephir_hash_quick_find(&ce->properties_info, property_name, property_length + 1, key, (void **) &property_info) == SUCCESS) { + if (zend_hash_quick_find(&ce->properties_info, property_name, property_length + 1, key, (void **) &property_info) == SUCCESS) { int flag; if (EXPECTED((property_info->flags & ZEND_ACC_STATIC) == 0) && property_info->offset >= 0) { if (zobj->properties) { @@ -618,22 +617,22 @@ int zephir_return_property_quick(zval *return_value, zval **return_value_ptr, zv } } else if (UNEXPECTED(!zobj->properties)) { flag = 1; - } else if (UNEXPECTED(zephir_hash_quick_find(zobj->properties, property_info->name, property_info->name_length+1, property_info->h, (void **) &zv) == FAILURE)) { + } else if (UNEXPECTED(zend_hash_quick_find(zobj->properties, property_info->name, property_info->name_length+1, property_info->h, (void **) &zv) == FAILURE)) { flag = 2; } else { flag = 0; } - if (unlikely(flag) && zobj->properties) { + if (UNEXPECTED(flag) && zobj->properties) { if ( - (flag == 2 || zephir_hash_quick_find(zobj->properties, property_info->name, property_info->name_length+1, property_info->h, (void **) &zv) == FAILURE) + (flag == 2 || zend_hash_quick_find(zobj->properties, property_info->name, property_info->name_length+1, property_info->h, (void **) &zv) == FAILURE) && zv && *zv ) { flag = 0; } } - if (likely(!flag)) { + if (EXPECTED(!flag)) { EG(scope) = old_scope; if (return_value_ptr) { @@ -672,7 +671,7 @@ int zephir_return_property(zval *return_value, zval **return_value_ptr, zval *ob */ int zephir_read_property_zval(zval **result, zval *object, zval *property, int flags TSRMLS_DC) { - if (unlikely(Z_TYPE_P(property) != IS_STRING)) { + if (UNEXPECTED(Z_TYPE_P(property) != IS_STRING)) { if ((flags & PH_NOISY) == PH_NOISY) { php_error_docref(NULL TSRMLS_CC, E_NOTICE, "Cannot access empty property %d", Z_TYPE_P(property)); @@ -791,7 +790,7 @@ int zephir_update_property_this_quick(zval *object, const char *property_name, z zend_class_entry *ce, *old_scope; - if (unlikely(Z_TYPE_P(object) != IS_OBJECT)) { + if (UNEXPECTED(Z_TYPE_P(object) != IS_OBJECT)) { php_error_docref(NULL TSRMLS_CC, E_WARNING, "Attempt to assign property of non-object"); return FAILURE; } @@ -811,11 +810,11 @@ int zephir_update_property_this_quick(zval *object, const char *property_name, z zobj = zend_objects_get_address(object TSRMLS_CC); - if (likely(zephir_hash_quick_find(&ce->properties_info, property_name, property_length + 1, key, (void **) &property_info) == SUCCESS)) { + if (EXPECTED(zend_hash_quick_find(&ce->properties_info, property_name, property_length + 1, key, (void **) &property_info) == SUCCESS)) { assert(property_info != NULL); /** This is as zend_std_write_property, but we're not interesed in validate properties visibility */ - if (property_info->offset >= 0 ? (zobj->properties ? ((variable_ptr = (zval**) zobj->properties_table[property_info->offset]) != NULL) : (*(variable_ptr = &zobj->properties_table[property_info->offset]) != NULL)) : (EXPECTED(zobj->properties != NULL) && EXPECTED(zephir_hash_quick_find(zobj->properties, property_info->name, property_info->name_length + 1, property_info->h, (void **) &variable_ptr) == SUCCESS))) { + if (property_info->offset >= 0 ? (zobj->properties ? ((variable_ptr = (zval**) zobj->properties_table[property_info->offset]) != NULL) : (*(variable_ptr = &zobj->properties_table[property_info->offset]) != NULL)) : (EXPECTED(zobj->properties != NULL) && EXPECTED(zend_hash_quick_find(zobj->properties, property_info->name, property_info->name_length + 1, property_info->h, (void **) &variable_ptr) == SUCCESS))) { if (EXPECTED(*variable_ptr != value)) { @@ -1009,7 +1008,7 @@ int zephir_update_property_array_string(zval *object, char *property, unsigned i zval *tmp; int separated = 0; - if (likely(Z_TYPE_P(object) == IS_OBJECT)) { + if (EXPECTED(Z_TYPE_P(object) == IS_OBJECT)) { zephir_read_property(&tmp, object, property, property_length, PH_NOISY_CC); @@ -1220,7 +1219,7 @@ int zephir_method_quick_exists_ex(const zval *object, const char *method_name, u zend_class_entry *ce; - if (likely(Z_TYPE_P(object) == IS_OBJECT)) { + if (EXPECTED(Z_TYPE_P(object) == IS_OBJECT)) { ce = Z_OBJCE_P(object); } else { if (Z_TYPE_P(object) == IS_STRING) { @@ -1231,7 +1230,7 @@ int zephir_method_quick_exists_ex(const zval *object, const char *method_name, u } while (ce) { - if (zephir_hash_quick_exists(&ce->function_table, method_name, method_len, hash)) { + if (zend_hash_quick_exists(&ce->function_table, method_name, method_len, hash)) { return SUCCESS; } ce = ce->parent; @@ -1482,7 +1481,7 @@ int zephir_read_class_property(zval **result, int type, const char *property, in type &= ZEND_FETCH_CLASS_MASK; ce = zend_fetch_class(NULL, 0, type TSRMLS_CC); - if (likely(ce != NULL)) { + if (EXPECTED(ce != NULL)) { return zephir_read_static_property_ce(result, ce, property, len TSRMLS_CC); } @@ -1553,7 +1552,7 @@ int zephir_create_instance_params(zval *return_value, const zval *class_name, zv zval **item; int i = 0; - if (likely(param_count) <= 10) { + if (EXPECTED(param_count <= 10)) { params_ptr = static_params; } else { params_arr = emalloc(param_count * sizeof(zval*)); @@ -1573,7 +1572,7 @@ int zephir_create_instance_params(zval *return_value, const zval *class_name, zv outcome = zephir_call_class_method_aparams(NULL, ce, zephir_fcall_method, return_value, SL("__construct"), NULL, 0, param_count, params_ptr TSRMLS_CC); - if (unlikely(params_arr != NULL)) { + if (UNEXPECTED(params_arr != NULL)) { efree(params_arr); } } @@ -1697,7 +1696,7 @@ int zephir_fetch_property(zval **result, zval *object, const char *property_name */ int zephir_fetch_property_zval(zval **result, zval *object, zval *property, int silent TSRMLS_DC) { - if (unlikely(Z_TYPE_P(property) != IS_STRING)) { + if (UNEXPECTED(Z_TYPE_P(property) != IS_STRING)) { *result = ZEPHIR_GLOBAL(global_null); Z_ADDREF_P(*result); return 0; diff --git a/ext/kernel/object.h b/ext/kernel/object.h index 3c429af7560..1cd3a54a266 100644 --- a/ext/kernel/object.h +++ b/ext/kernel/object.h @@ -3,7 +3,7 @@ +------------------------------------------------------------------------+ | Zephir Language | +------------------------------------------------------------------------+ - | Copyright (c) 2011-2016 Zephir Team (http://www.zephir-lang.com) | + | Copyright (c) 2011-2017 Zephir Team (http://www.zephir-lang.com) | +------------------------------------------------------------------------+ | This source file is subject to the New BSD License that is bundled | | with this package in the file docs/LICENSE.txt. | diff --git a/ext/kernel/operators.c b/ext/kernel/operators.c index 68260b62a38..ff811c09bb9 100644 --- a/ext/kernel/operators.c +++ b/ext/kernel/operators.c @@ -3,7 +3,7 @@ +------------------------------------------------------------------------+ | Zephir Language | +------------------------------------------------------------------------+ - | Copyright (c) 2011-2016 Zephir Team (http://www.zephir-lang.com) | + | Copyright (c) 2011-2017 Zephir Team (http://www.zephir-lang.com) | +------------------------------------------------------------------------+ | This source file is subject to the New BSD License that is bundled | | with this package in the file docs/LICENSE.txt. | diff --git a/ext/kernel/operators.h b/ext/kernel/operators.h index 300afd0d089..64a9d1e6cd9 100644 --- a/ext/kernel/operators.h +++ b/ext/kernel/operators.h @@ -3,7 +3,7 @@ +------------------------------------------------------------------------+ | Zephir Language | +------------------------------------------------------------------------+ - | Copyright (c) 2011-2016 Zephir Team (http://www.zephir-lang.com) | + | Copyright (c) 2011-2017 Zephir Team (http://www.zephir-lang.com) | +------------------------------------------------------------------------+ | This source file is subject to the New BSD License that is bundled | | with this package in the file docs/LICENSE.txt. | diff --git a/ext/kernel/output.c b/ext/kernel/output.c index dfae7334b51..8facd517ea5 100644 --- a/ext/kernel/output.c +++ b/ext/kernel/output.c @@ -3,7 +3,7 @@ +------------------------------------------------------------------------+ | Zephir Language | +------------------------------------------------------------------------+ - | Copyright (c) 2011-2016 Zephir Team (http://www.zephir-lang.com) | + | Copyright (c) 2011-2017 Zephir Team (http://www.zephir-lang.com) | +------------------------------------------------------------------------+ | This source file is subject to the New BSD License that is bundled | | with this package in the file docs/LICENSE.txt. | diff --git a/ext/kernel/output.h b/ext/kernel/output.h index d3c0bf32665..d6c05095f6d 100644 --- a/ext/kernel/output.h +++ b/ext/kernel/output.h @@ -3,7 +3,7 @@ +------------------------------------------------------------------------+ | Zephir Language | +------------------------------------------------------------------------+ - | Copyright (c) 2011-2016 Zephir Team (http://www.zephir-lang.com) | + | Copyright (c) 2011-2017 Zephir Team (http://www.zephir-lang.com) | +------------------------------------------------------------------------+ | This source file is subject to the New BSD License that is bundled | | with this package in the file docs/LICENSE.txt. | diff --git a/ext/kernel/persistent.c b/ext/kernel/persistent.c deleted file mode 100644 index 4fc9dbd5016..00000000000 --- a/ext/kernel/persistent.c +++ /dev/null @@ -1,58 +0,0 @@ - -/* - +------------------------------------------------------------------------+ - | Zephir Language | - +------------------------------------------------------------------------+ - | Copyright (c) 2011-2016 Zephir Team (http://www.zephir-lang.com) | - +------------------------------------------------------------------------+ - | This source file is subject to the New BSD License that is bundled | - | with this package in the file docs/LICENSE.txt. | - | | - | If you did not receive a copy of the license and are unable to | - | obtain it through the world-wide-web, please send an email | - | to license@zephir-lang.com so we can send you a copy immediately. | - +------------------------------------------------------------------------+ - | Authors: Andres Gutierrez | - | Eduar Carvajal | - +------------------------------------------------------------------------+ -*/ - -#ifdef HAVE_CONFIG_H -#include "config.h" -#endif - -#include "php.h" -#include "php_ext.h" - -/* represents a connection to a database */ -struct _zephir_persist_obj { - char *data; -} zephir_persist_obj; - -int zephir_persistent_fetch(zval *return_value, zval *service TSRMLS_DC){ - zend_rsrc_list_entry *le; - - /* try to find if we already have this link in our persistent list */ - if (zend_hash_find(&EG(persistent_list), Z_STRVAL_P(service), Z_STRLEN_P(service)+1, (void **) &le)==FAILURE) { - - } -} - -int zephir_persistent_store(zval *service, zval *object TSRMLS_DC){ - - //pdo_dbh_t *dbh = NULL; - - //zend_object_store_set_object(object, dbh TSRMLS_CC); - - - zend_rsrc_list_entry new_le; - - Z_TYPE(new_le) = 1; - new_le.ptr = pestrdup("hello", 1); - if (zend_hash_update(&EG(persistent_list), Z_STRVAL_P(service), Z_STRLEN_P(service)+1, (void *) &new_le, sizeof(zend_rsrc_list_entry), NULL)==FAILURE) { - //goto err; - } - - //zephir_persistent_store - -} diff --git a/ext/kernel/persistent.h b/ext/kernel/persistent.h deleted file mode 100644 index 35bf4fed83d..00000000000 --- a/ext/kernel/persistent.h +++ /dev/null @@ -1,28 +0,0 @@ - -/* - +------------------------------------------------------------------------+ - | Zephir Language | - +------------------------------------------------------------------------+ - | Copyright (c) 2011-2016 Zephir Team (http://www.zephir-lang.com) | - +------------------------------------------------------------------------+ - | This source file is subject to the New BSD License that is bundled | - | with this package in the file docs/LICENSE.txt. | - | | - | If you did not receive a copy of the license and are unable to | - | obtain it through the world-wide-web, please send an email | - | to license@zephir-lang.com so we can send you a copy immediately. | - +------------------------------------------------------------------------+ - | Authors: Andres Gutierrez | - | Eduar Carvajal | - +------------------------------------------------------------------------+ -*/ - -#ifndef ZEPHIR_KERNEL_PERSISTENT_H -#define ZEPHIR_KERNEL_PERSISTENT_H - -#include - -int zephir_persistent_store(zval *service, zval *object TSRMLS_DC); -int zephir_persistent_fetch(zval *return_value, zval *service TSRMLS_DC); - -#endif \ No newline at end of file diff --git a/ext/kernel/require.c b/ext/kernel/require.c index 1c23125e4a7..1880553168a 100644 --- a/ext/kernel/require.c +++ b/ext/kernel/require.c @@ -3,7 +3,7 @@ +------------------------------------------------------------------------+ | Zephir Language | +------------------------------------------------------------------------+ - | Copyright (c) 2011-2016 Zephir Team (http://www.zephir-lang.com) | + | Copyright (c) 2011-2017 Zephir Team (http://www.zephir-lang.com) | +------------------------------------------------------------------------+ | This source file is subject to the New BSD License that is bundled | | with this package in the file docs/LICENSE.txt. | @@ -40,7 +40,7 @@ int zephir_require_ret(zval **return_value_ptr, const char *require_path TSRMLS_DC) { zend_file_handle file_handle; - int ret, use_ret; + int ret; zend_op_array *new_op_array; #ifndef ZEPHIR_RELEASE @@ -56,8 +56,6 @@ int zephir_require_ret(zval **return_value_ptr, const char *require_path TSRMLS_ return FAILURE; } - use_ret = !!return_value_ptr; - file_handle.filename = require_path; file_handle.free_filename = 0; file_handle.type = ZEND_HANDLE_FILENAME; diff --git a/ext/kernel/require.h b/ext/kernel/require.h index a74daafc7c1..c3bdb7b5a5c 100644 --- a/ext/kernel/require.h +++ b/ext/kernel/require.h @@ -3,7 +3,7 @@ +------------------------------------------------------------------------+ | Zephir Language | +------------------------------------------------------------------------+ - | Copyright (c) 2011-2016 Zephir Team (http://www.zephir-lang.com) | + | Copyright (c) 2011-2017 Zephir Team (http://www.zephir-lang.com) | +------------------------------------------------------------------------+ | This source file is subject to the New BSD License that is bundled | | with this package in the file docs/LICENSE.txt. | diff --git a/ext/kernel/session.c b/ext/kernel/session.c index 28a0e732be0..714b84d5ad6 100644 --- a/ext/kernel/session.c +++ b/ext/kernel/session.c @@ -3,7 +3,7 @@ +------------------------------------------------------------------------+ | Zephir Language | +------------------------------------------------------------------------+ - | Copyright (c) 2011-2016 Zephir Team (http://www.zephir-lang.com) | + | Copyright (c) 2011-2017 Zephir Team (http://www.zephir-lang.com) | +------------------------------------------------------------------------+ | This source file is subject to the New BSD License that is bundled | | with this package in the file docs/LICENSE.txt. | @@ -66,7 +66,7 @@ void zephir_set_session_id(zval *sid TSRMLS_DC) zval copy; int use_copy = 0; - if (unlikely(Z_TYPE_P(sid) != IS_STRING)) { + if (UNEXPECTED(Z_TYPE_P(sid) != IS_STRING)) { zend_make_printable_zval(sid, ©, &use_copy); if (use_copy) { sid = © @@ -79,7 +79,7 @@ void zephir_set_session_id(zval *sid TSRMLS_DC) PS(id) = estrndup(Z_STRVAL_P(sid), Z_STRLEN_P(sid)); - if (unlikely(use_copy)) { + if (UNEXPECTED(use_copy)) { zval_dtor(©); } #else diff --git a/ext/kernel/session.h b/ext/kernel/session.h index 6e3e38e5917..7239a00e35a 100644 --- a/ext/kernel/session.h +++ b/ext/kernel/session.h @@ -3,7 +3,7 @@ +------------------------------------------------------------------------+ | Zephir Language | +------------------------------------------------------------------------+ - | Copyright (c) 2011-2016 Zephir Team (http://www.zephir-lang.com) | + | Copyright (c) 2011-2017 Zephir Team (http://www.zephir-lang.com) | +------------------------------------------------------------------------+ | This source file is subject to the New BSD License that is bundled | | with this package in the file docs/LICENSE.txt. | diff --git a/ext/kernel/string.c b/ext/kernel/string.c index 0919d878789..1f4b8481794 100644 --- a/ext/kernel/string.c +++ b/ext/kernel/string.c @@ -2,7 +2,7 @@ +------------------------------------------------------------------------+ | Zephir Language | +------------------------------------------------------------------------+ - | Copyright (c) 2011-2016 Zephir Team (http://www.zephir-lang.com) | + | Copyright (c) 2011-2017 Zephir Team (http://www.zephir-lang.com) | +------------------------------------------------------------------------+ | This source file is subject to the New BSD License that is bundled | | with this package in the file docs/LICENSE.txt. | @@ -133,7 +133,7 @@ void zephir_fast_strtolower(zval *return_value, zval *str){ } void zephir_strtolower_inplace(zval *s) { - if (likely(Z_TYPE_P(s) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(s) == IS_STRING)) { php_strtolower(Z_STRVAL_P(s), Z_STRLEN_P(s)); } } @@ -261,7 +261,7 @@ void zephir_camelize(zval *return_value, const zval *str, const zval *delimiter) smart_str camelize_str = {0}; char *marker, ch, *delim; - if (unlikely(Z_TYPE_P(str) != IS_STRING)) { + if (UNEXPECTED(Z_TYPE_P(str) != IS_STRING)) { zend_error(E_WARNING, "Invalid arguments supplied for camelize()"); RETURN_EMPTY_STRING(); } @@ -361,7 +361,7 @@ void zephir_uncamelize(zval *return_value, const zval *str, const zval *delimite */ void zephir_fast_explode(zval *return_value, zval *delimiter, zval *str, long limit TSRMLS_DC) { - if (unlikely(Z_TYPE_P(str) != IS_STRING || Z_TYPE_P(delimiter) != IS_STRING)) { + if (UNEXPECTED(Z_TYPE_P(str) != IS_STRING || Z_TYPE_P(delimiter) != IS_STRING)) { zend_error(E_WARNING, "Invalid arguments supplied for explode()"); RETURN_EMPTY_STRING(); } @@ -377,7 +377,7 @@ void zephir_fast_explode_str(zval *return_value, const char *delimiter, int deli zval delimiter_zval; - if (unlikely(Z_TYPE_P(str) != IS_STRING)) { + if (UNEXPECTED(Z_TYPE_P(str) != IS_STRING)) { zend_error(E_WARNING, "Invalid arguments supplied for explode()"); RETURN_EMPTY_STRING(); } @@ -437,7 +437,7 @@ void zephir_fast_strpos(zval *return_value, const zval *haystack, const zval *ne const char *found = NULL; - if (unlikely(Z_TYPE_P(haystack) != IS_STRING || Z_TYPE_P(needle) != IS_STRING)) { + if (UNEXPECTED(Z_TYPE_P(haystack) != IS_STRING || Z_TYPE_P(needle) != IS_STRING)) { ZVAL_NULL(return_value); zend_error(E_WARNING, "Invalid arguments supplied for strpos()"); return; @@ -472,7 +472,7 @@ void zephir_fast_strpos_str(zval *return_value, const zval *haystack, char *need const char *found = NULL; - if (unlikely(Z_TYPE_P(haystack) != IS_STRING)) { + if (UNEXPECTED(Z_TYPE_P(haystack) != IS_STRING)) { ZVAL_NULL(return_value); zend_error(E_WARNING, "Invalid arguments supplied for strpos()"); return; @@ -495,7 +495,7 @@ void zephir_fast_stripos_str(zval *return_value, zval *haystack, char *needle, u const char *found = NULL; char *needle_dup, *haystack_dup; - if (unlikely(Z_TYPE_P(haystack) != IS_STRING)) { + if (UNEXPECTED(Z_TYPE_P(haystack) != IS_STRING)) { ZVAL_NULL(return_value); zend_error(E_WARNING, "Invalid arguments supplied for stripos()"); return; @@ -1360,7 +1360,7 @@ int zephir_json_decode(zval *return_value, zval **return_value_ptr, zval *v, zen zval copy; int use_copy = 0; - if (unlikely(Z_TYPE_P(v) != IS_STRING)) { + if (UNEXPECTED(Z_TYPE_P(v) != IS_STRING)) { zend_make_printable_zval(v, ©, &use_copy); if (use_copy) { v = © @@ -1369,7 +1369,7 @@ int zephir_json_decode(zval *return_value, zval **return_value_ptr, zval *v, zen php_json_decode(return_value, Z_STRVAL_P(v), Z_STRLEN_P(v), assoc, 512 /* JSON_PARSER_DEFAULT_DEPTH */ TSRMLS_CC); - if (unlikely(use_copy)) { + if (UNEXPECTED(use_copy)) { zval_dtor(©); } @@ -1414,7 +1414,7 @@ void zephir_lcfirst(zval *return_value, zval *s) { char *c; int use_copy = 0; - if (unlikely(Z_TYPE_P(s) != IS_STRING)) { + if (UNEXPECTED(Z_TYPE_P(s) != IS_STRING)) { zend_make_printable_zval(s, ©, &use_copy); if (use_copy) { s = © @@ -1430,7 +1430,7 @@ void zephir_lcfirst(zval *return_value, zval *s) { *c = tolower((unsigned char)*c); } - if (unlikely(use_copy)) { + if (UNEXPECTED(use_copy)) { zval_dtor(©); } } @@ -1441,7 +1441,7 @@ void zephir_ucfirst(zval *return_value, zval *s) { char *c; int use_copy = 0; - if (unlikely(Z_TYPE_P(s) != IS_STRING)) { + if (UNEXPECTED(Z_TYPE_P(s) != IS_STRING)) { zend_make_printable_zval(s, ©, &use_copy); if (use_copy) { s = © @@ -1457,7 +1457,7 @@ void zephir_ucfirst(zval *return_value, zval *s) { *c = toupper((unsigned char)*c); } - if (unlikely(use_copy)) { + if (UNEXPECTED(use_copy)) { zval_dtor(©); } } @@ -1498,7 +1498,7 @@ void zephir_htmlspecialchars(zval *return_value, zval *string, zval *quoting, zv int qs, use_copy = 0; size_t escaped_len; - if (unlikely(Z_TYPE_P(string) != IS_STRING)) { + if (UNEXPECTED(Z_TYPE_P(string) != IS_STRING)) { zend_make_printable_zval(string, ©, &use_copy); if (use_copy) { string = © @@ -1511,7 +1511,7 @@ void zephir_htmlspecialchars(zval *return_value, zval *string, zval *quoting, zv escaped = php_escape_html_entities_ex((unsigned char *)(Z_STRVAL_P(string)), Z_STRLEN_P(string), &escaped_len, 0, qs, cs, 1 TSRMLS_CC); ZVAL_STRINGL(return_value, escaped, escaped_len, 0); - if (unlikely(use_copy)) { + if (UNEXPECTED(use_copy)) { zval_dtor(©); } } @@ -1523,7 +1523,7 @@ void zephir_htmlentities(zval *return_value, zval *string, zval *quoting, zval * int qs, use_copy = 0; size_t escaped_len; - if (unlikely(Z_TYPE_P(string) != IS_STRING)) { + if (UNEXPECTED(Z_TYPE_P(string) != IS_STRING)) { zend_make_printable_zval(string, ©, &use_copy); if (use_copy) { string = © @@ -1536,7 +1536,7 @@ void zephir_htmlentities(zval *return_value, zval *string, zval *quoting, zval * escaped = php_escape_html_entities_ex((unsigned char *)(Z_STRVAL_P(string)), Z_STRLEN_P(string), &escaped_len, 1, qs, cs, 1 TSRMLS_CC); ZVAL_STRINGL(return_value, escaped, escaped_len, 0); - if (unlikely(use_copy)) { + if (UNEXPECTED(use_copy)) { zval_dtor(©); } } @@ -1562,7 +1562,7 @@ void zephir_date(zval *return_value, zval *format, zval *timestamp TSRMLS_DC) int use_copy = 0; char *formatted; - if (unlikely(Z_TYPE_P(format) != IS_STRING)) { + if (UNEXPECTED(Z_TYPE_P(format) != IS_STRING)) { zend_make_printable_zval(format, ©, &use_copy); if (use_copy) { format = © @@ -1574,7 +1574,7 @@ void zephir_date(zval *return_value, zval *format, zval *timestamp TSRMLS_DC) formatted = php_format_date(Z_STRVAL_P(format), Z_STRLEN_P(format), ts, 1 TSRMLS_CC); ZVAL_STRING(return_value, formatted, 0); - if (unlikely(use_copy)) { + if (UNEXPECTED(use_copy)) { zval_dtor(©); } } @@ -1584,7 +1584,7 @@ void zephir_addslashes(zval *return_value, zval *str TSRMLS_DC) zval copy; int use_copy = 0; - if (unlikely(Z_TYPE_P(str) != IS_STRING)) { + if (UNEXPECTED(Z_TYPE_P(str) != IS_STRING)) { zend_make_printable_zval(str, ©, &use_copy); if (use_copy) { str = © @@ -1593,7 +1593,7 @@ void zephir_addslashes(zval *return_value, zval *str TSRMLS_DC) ZVAL_STRING(return_value, php_addslashes(Z_STRVAL_P(str), Z_STRLEN_P(str), &Z_STRLEN_P(return_value), 0 TSRMLS_CC), 0); - if (unlikely(use_copy)) { + if (UNEXPECTED(use_copy)) { zval_dtor(©); } } @@ -1603,7 +1603,7 @@ void zephir_stripslashes(zval *return_value, zval *str TSRMLS_DC) zval copy; int use_copy = 0; - if (unlikely(Z_TYPE_P(str) != IS_STRING)) { + if (UNEXPECTED(Z_TYPE_P(str) != IS_STRING)) { zend_make_printable_zval(str, ©, &use_copy); if (use_copy) { str = © @@ -1613,7 +1613,7 @@ void zephir_stripslashes(zval *return_value, zval *str TSRMLS_DC) ZVAL_STRINGL(return_value, Z_STRVAL_P(str), Z_STRLEN_P(str), 1); php_stripslashes(Z_STRVAL_P(return_value), &Z_STRLEN_P(return_value) TSRMLS_CC); - if (unlikely(use_copy)) { + if (UNEXPECTED(use_copy)) { zval_dtor(©); } } @@ -1624,7 +1624,7 @@ void zephir_stripcslashes(zval *return_value, zval *str TSRMLS_DC) zval copy; int use_copy = 0; - if (unlikely(Z_TYPE_P(str) != IS_STRING)) { + if (UNEXPECTED(Z_TYPE_P(str) != IS_STRING)) { zend_make_printable_zval(str, ©, &use_copy); if (use_copy) { str = © @@ -1634,7 +1634,7 @@ void zephir_stripcslashes(zval *return_value, zval *str TSRMLS_DC) ZVAL_STRINGL(return_value, Z_STRVAL_P(str), Z_STRLEN_P(str), 1); php_stripcslashes(Z_STRVAL_P(return_value), &Z_STRLEN_P(return_value)); - if (unlikely(use_copy)) { + if (UNEXPECTED(use_copy)) { zval_dtor(©); } } @@ -1666,3 +1666,32 @@ int zephir_hash_equals(const zval *known_zval, const zval *user_zval) return (int) (result == 0); } + +void zephir_string_to_hex(zval *return_value, zval *var) +{ + int use_copy = 0; + zval copy; + size_t i; + char *s; + char *res; + + if (Z_TYPE_P(var) != IS_STRING) { + zend_make_printable_zval(var, ©, &use_copy); + if (use_copy) { + var = © + } + } + + res = emalloc(2*Z_STRLEN_P(var) + 1); + s = Z_STRVAL_P(var); + for (i=0; i") TSRMLS_CC); zephir_is_iterable(_REQUEST, &_17$$5, &_16$$5, 0, 0, "phalcon/debug.zep", 673); for ( - ; zephir_hash_get_current_data_ex(_17$$5, (void**) &_18$$5, &_16$$5) == SUCCESS - ; zephir_hash_move_forward_ex(_17$$5, &_16$$5) + ; zend_hash_get_current_data_ex(_17$$5, (void**) &_18$$5, &_16$$5) == SUCCESS + ; zend_hash_move_forward_ex(_17$$5, &_16$$5) ) { ZEPHIR_GET_HMKEY(keyRequest, _17$$5, _16$$5); ZEPHIR_GET_HVALUE(value, _18$$5); @@ -950,8 +949,8 @@ PHP_METHOD(Phalcon_Debug, onUncaughtException) { zephir_concat_self_str(&html, SL("") TSRMLS_CC); zephir_is_iterable(_SERVER, &_24$$5, &_23$$5, 0, 0, "phalcon/debug.zep", 683); for ( - ; zephir_hash_get_current_data_ex(_24$$5, (void**) &_25$$5, &_23$$5) == SUCCESS - ; zephir_hash_move_forward_ex(_24$$5, &_23$$5) + ; zend_hash_get_current_data_ex(_24$$5, (void**) &_25$$5, &_23$$5) == SUCCESS + ; zend_hash_move_forward_ex(_24$$5, &_23$$5) ) { ZEPHIR_GET_HMKEY(keyServer, _24$$5, _23$$5); ZEPHIR_GET_HVALUE(value, _25$$5); @@ -968,8 +967,8 @@ PHP_METHOD(Phalcon_Debug, onUncaughtException) { zephir_check_call_status(); zephir_is_iterable(_29$$5, &_31$$5, &_30$$5, 0, 0, "phalcon/debug.zep", 693); for ( - ; zephir_hash_get_current_data_ex(_31$$5, (void**) &_32$$5, &_30$$5) == SUCCESS - ; zephir_hash_move_forward_ex(_31$$5, &_30$$5) + ; zend_hash_get_current_data_ex(_31$$5, (void**) &_32$$5, &_30$$5) == SUCCESS + ; zend_hash_move_forward_ex(_31$$5, &_30$$5) ) { ZEPHIR_GET_HMKEY(keyFile, _31$$5, _30$$5); ZEPHIR_GET_HVALUE(value, _32$$5); @@ -990,8 +989,8 @@ PHP_METHOD(Phalcon_Debug, onUncaughtException) { zephir_concat_self_str(&html, SL("") TSRMLS_CC); zephir_is_iterable(dataVars, &_37$$13, &_36$$13, 0, 0, "phalcon/debug.zep", 711); for ( - ; zephir_hash_get_current_data_ex(_37$$13, (void**) &_38$$13, &_36$$13) == SUCCESS - ; zephir_hash_move_forward_ex(_37$$13, &_36$$13) + ; zend_hash_get_current_data_ex(_37$$13, (void**) &_38$$13, &_36$$13) == SUCCESS + ; zend_hash_move_forward_ex(_37$$13, &_36$$13) ) { ZEPHIR_GET_HMKEY(keyVar, _37$$13, _36$$13); ZEPHIR_GET_HVALUE(dataVar, _38$$13); diff --git a/ext/phalcon/debug/dump.zep.c b/ext/phalcon/debug/dump.zep.c index d8ff6cef692..6a70f74944b 100644 --- a/ext/phalcon/debug/dump.zep.c +++ b/ext/phalcon/debug/dump.zep.c @@ -17,10 +17,10 @@ #include "kernel/fcall.h" #include "kernel/operators.h" #include "kernel/array.h" +#include "kernel/main.h" #include "ext/spl/spl_exceptions.h" #include "kernel/exception.h" #include "kernel/concat.h" -#include "kernel/hash.h" #include "kernel/string.h" @@ -138,8 +138,7 @@ PHP_METHOD(Phalcon_Debug_Dump, all) { ZVAL_STRING(_1, "variables", 1); zephir_array_fast_append(_0, _1); ZEPHIR_INIT_NVAR(_1); - array_init(_1); - zend_copy_parameters_array(ZEND_NUM_ARGS(), _1 TSRMLS_CC); + zephir_get_args(_1 TSRMLS_CC); ZEPHIR_CALL_USER_FUNC_ARRAY(return_value, _0, _1); zephir_check_call_status(); RETURN_MM(); @@ -157,11 +156,11 @@ PHP_METHOD(Phalcon_Debug_Dump, getStyle) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &type_param); - if (unlikely(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'type' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(type_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(type_param) == IS_STRING)) { zephir_get_strval(type, type_param); } else { ZEPHIR_INIT_VAR(type); @@ -307,8 +306,8 @@ PHP_METHOD(Phalcon_Debug_Dump, output) { zephir_concat_self(&output, _2$$4 TSRMLS_CC); zephir_is_iterable(variable, &_8$$4, &_7$$4, 0, 0, "phalcon/debug/dump.zep", 161); for ( - ; zephir_hash_get_current_data_ex(_8$$4, (void**) &_9$$4, &_7$$4) == SUCCESS - ; zephir_hash_move_forward_ex(_8$$4, &_7$$4) + ; zend_hash_get_current_data_ex(_8$$4, (void**) &_9$$4, &_7$$4) == SUCCESS + ; zend_hash_move_forward_ex(_8$$4, &_7$$4) ) { ZEPHIR_GET_HMKEY(key, _8$$4, _7$$4); ZEPHIR_GET_HVALUE(value, _9$$4); @@ -418,8 +417,8 @@ PHP_METHOD(Phalcon_Debug_Dump, output) { zephir_check_call_status(); zephir_is_iterable(_40$$11, &_42$$11, &_41$$11, 0, 0, "phalcon/debug/dump.zep", 194); for ( - ; zephir_hash_get_current_data_ex(_42$$11, (void**) &_43$$11, &_41$$11) == SUCCESS - ; zephir_hash_move_forward_ex(_42$$11, &_41$$11) + ; zend_hash_get_current_data_ex(_42$$11, (void**) &_43$$11, &_41$$11) == SUCCESS + ; zend_hash_move_forward_ex(_42$$11, &_41$$11) ) { ZEPHIR_GET_HMKEY(key, _42$$11, _41$$11); ZEPHIR_GET_HVALUE(value, _43$$11); @@ -565,8 +564,8 @@ PHP_METHOD(Phalcon_Debug_Dump, output) { } else { zephir_is_iterable(attr, &_76$$20, &_75$$20, 0, 0, "phalcon/debug/dump.zep", 243); for ( - ; zephir_hash_get_current_data_ex(_76$$20, (void**) &_77$$20, &_75$$20) == SUCCESS - ; zephir_hash_move_forward_ex(_76$$20, &_75$$20) + ; zend_hash_get_current_data_ex(_76$$20, (void**) &_77$$20, &_75$$20) == SUCCESS + ; zend_hash_move_forward_ex(_76$$20, &_75$$20) ) { ZEPHIR_GET_HVALUE(value, _77$$20); ZEPHIR_INIT_NVAR(_78$$21); @@ -842,12 +841,11 @@ PHP_METHOD(Phalcon_Debug_Dump, variables) { ZEPHIR_INIT_VAR(output); ZVAL_STRING(output, "", 1); ZEPHIR_INIT_VAR(_0); - array_init(_0); - zend_copy_parameters_array(ZEND_NUM_ARGS(), _0 TSRMLS_CC); + zephir_get_args(_0 TSRMLS_CC); zephir_is_iterable(_0, &_2, &_1, 0, 0, "phalcon/debug/dump.zep", 315); for ( - ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS - ; zephir_hash_move_forward_ex(_2, &_1) + ; zend_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS + ; zend_hash_move_forward_ex(_2, &_1) ) { ZEPHIR_GET_HMKEY(key, _2, _1); ZEPHIR_GET_HVALUE(value, _3); diff --git a/ext/phalcon/di.zep.c b/ext/phalcon/di.zep.c index da2c7a1ed7b..99d3b931711 100644 --- a/ext/phalcon/di.zep.c +++ b/ext/phalcon/di.zep.c @@ -153,11 +153,11 @@ PHP_METHOD(Phalcon_Di, set) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 1, &name_param, &definition, &shared_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -197,11 +197,11 @@ PHP_METHOD(Phalcon_Di, setShared) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &name_param, &definition); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -229,11 +229,11 @@ PHP_METHOD(Phalcon_Di, remove) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -264,11 +264,11 @@ PHP_METHOD(Phalcon_Di, attempt) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 1, &name_param, &definition, &shared_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -311,11 +311,11 @@ PHP_METHOD(Phalcon_Di, setRaw) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &name_param, &rawDefinition); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -341,11 +341,11 @@ PHP_METHOD(Phalcon_Di, getRaw) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -384,11 +384,11 @@ PHP_METHOD(Phalcon_Di, getService) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -427,11 +427,11 @@ PHP_METHOD(Phalcon_Di, get) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &name_param, ¶meters); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -529,11 +529,11 @@ PHP_METHOD(Phalcon_Di, getShared) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &name_param, ¶meters); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -577,11 +577,11 @@ PHP_METHOD(Phalcon_Di, has) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -628,11 +628,11 @@ PHP_METHOD(Phalcon_Di, offsetExists) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -662,11 +662,11 @@ PHP_METHOD(Phalcon_Di, offsetSet) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &name_param, &definition); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -696,11 +696,11 @@ PHP_METHOD(Phalcon_Di, offsetGet) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -725,11 +725,11 @@ PHP_METHOD(Phalcon_Di, offsetUnset) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -754,11 +754,11 @@ PHP_METHOD(Phalcon_Di, __call) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &method_param, &arguments); - if (unlikely(Z_TYPE_P(method_param) != IS_STRING && Z_TYPE_P(method_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(method_param) != IS_STRING && Z_TYPE_P(method_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'method' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(method_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(method_param) == IS_STRING)) { zephir_get_strval(method, method_param); } else { ZEPHIR_INIT_VAR(method); diff --git a/ext/phalcon/di/injectable.zep.c b/ext/phalcon/di/injectable.zep.c index 332d57217dd..12ec61dcad7 100644 --- a/ext/phalcon/di/injectable.zep.c +++ b/ext/phalcon/di/injectable.zep.c @@ -153,11 +153,11 @@ PHP_METHOD(Phalcon_Di_Injectable, __get) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &propertyName_param); - if (unlikely(Z_TYPE_P(propertyName_param) != IS_STRING && Z_TYPE_P(propertyName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(propertyName_param) != IS_STRING && Z_TYPE_P(propertyName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'propertyName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(propertyName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(propertyName_param) == IS_STRING)) { zephir_get_strval(propertyName, propertyName_param); } else { ZEPHIR_INIT_VAR(propertyName); diff --git a/ext/phalcon/di/service.zep.c b/ext/phalcon/di/service.zep.c index 4630b1442e7..52b81fb5502 100644 --- a/ext/phalcon/di/service.zep.c +++ b/ext/phalcon/di/service.zep.c @@ -72,11 +72,11 @@ PHP_METHOD(Phalcon_Di_Service, __construct) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 1, &name_param, &definition, &shared_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); diff --git a/ext/phalcon/di/service/builder.zep.c b/ext/phalcon/di/service/builder.zep.c index f76f922bedc..cbff86bc885 100644 --- a/ext/phalcon/di/service/builder.zep.c +++ b/ext/phalcon/di/service/builder.zep.c @@ -19,7 +19,6 @@ #include "kernel/concat.h" #include "kernel/operators.h" #include "ext/spl/spl_exceptions.h" -#include "kernel/hash.h" #include "kernel/object.h" @@ -181,8 +180,8 @@ PHP_METHOD(Phalcon_Di_Service_Builder, _buildParameters) { array_init(buildArguments); zephir_is_iterable(arguments, &_1, &_0, 0, 0, "phalcon/di/service/builder.zep", 119); for ( - ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS - ; zephir_hash_move_forward_ex(_1, &_0) + ; zend_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS + ; zend_hash_move_forward_ex(_1, &_0) ) { ZEPHIR_GET_HMKEY(position, _1, _0); ZEPHIR_GET_HVALUE(argument, _2); @@ -261,8 +260,8 @@ PHP_METHOD(Phalcon_Di_Service_Builder, build) { } zephir_is_iterable(paramCalls, &_3$$10, &_2$$10, 0, 0, "phalcon/di/service/builder.zep", 235); for ( - ; zephir_hash_get_current_data_ex(_3$$10, (void**) &_4$$10, &_2$$10) == SUCCESS - ; zephir_hash_move_forward_ex(_3$$10, &_2$$10) + ; zend_hash_get_current_data_ex(_3$$10, (void**) &_4$$10, &_2$$10) == SUCCESS + ; zend_hash_move_forward_ex(_3$$10, &_2$$10) ) { ZEPHIR_GET_HMKEY(methodPosition, _3$$10, _2$$10); ZEPHIR_GET_HVALUE(method, _4$$10); @@ -332,8 +331,8 @@ PHP_METHOD(Phalcon_Di_Service_Builder, build) { } zephir_is_iterable(paramCalls, &_16$$19, &_15$$19, 0, 0, "phalcon/di/service/builder.zep", 283); for ( - ; zephir_hash_get_current_data_ex(_16$$19, (void**) &_17$$19, &_15$$19) == SUCCESS - ; zephir_hash_move_forward_ex(_16$$19, &_15$$19) + ; zend_hash_get_current_data_ex(_16$$19, (void**) &_17$$19, &_15$$19) == SUCCESS + ; zend_hash_move_forward_ex(_16$$19, &_15$$19) ) { ZEPHIR_GET_HMKEY(propertyPosition, _16$$19, _15$$19); ZEPHIR_GET_HVALUE(property, _17$$19); diff --git a/ext/phalcon/dispatcher.zep.c b/ext/phalcon/dispatcher.zep.c index 52356ed6126..f945522f09f 100644 --- a/ext/phalcon/dispatcher.zep.c +++ b/ext/phalcon/dispatcher.zep.c @@ -628,7 +628,7 @@ PHP_METHOD(Phalcon_Dispatcher, getModelBinder) { */ PHP_METHOD(Phalcon_Dispatcher, dispatch) { - zval *handler = NULL, *e = NULL, *_0$$4 = NULL; + zval *handler = NULL, *e = NULL, *_0, *_1$$4 = NULL; int ZEPHIR_LAST_CALL_STATUS; ZEPHIR_MM_GROW(); @@ -642,12 +642,14 @@ PHP_METHOD(Phalcon_Dispatcher, dispatch) { try_end_1: if (EG(exception)) { - ZEPHIR_CPY_WRT(e, EG(exception)); - if (zephir_instance_of_ev(e, zend_exception_get_default(TSRMLS_C) TSRMLS_CC)) { + ZEPHIR_INIT_VAR(_0); + ZEPHIR_CPY_WRT(_0, EG(exception)); + if (zephir_instance_of_ev(_0, zend_exception_get_default(TSRMLS_C) TSRMLS_CC)) { zend_clear_exception(TSRMLS_C); - ZEPHIR_CALL_METHOD(&_0$$4, this_ptr, "_handleexception", NULL, 0, e); + ZEPHIR_CPY_WRT(e, _0); + ZEPHIR_CALL_METHOD(&_1$$4, this_ptr, "_handleexception", NULL, 0, e); zephir_check_call_status(); - if (ZEPHIR_IS_FALSE_IDENTICAL(_0$$4)) { + if (ZEPHIR_IS_FALSE_IDENTICAL(_1$$4)) { RETURN_MM_BOOL(0); } zephir_throw_exception_debug(e, "phalcon/dispatcher.zep", 413 TSRMLS_CC); @@ -667,9 +669,9 @@ PHP_METHOD(Phalcon_Dispatcher, dispatch) { PHP_METHOD(Phalcon_Dispatcher, _dispatch) { zval *_30$$6 = NULL; - zval *value = NULL, *handler = NULL, *dependencyInjector = NULL, *namespaceName = NULL, *handlerName = NULL, *actionName = NULL, *params = NULL, *eventsManager = NULL, *actionSuffix = NULL, *handlerClass = NULL, *status = NULL, *actionMethod = NULL, *modelBinder = NULL, *e = NULL, *bindCacheKey = NULL, *_0, *_1$$3, *_2$$3, *_3$$4 = NULL, *_4$$4, *_5$$7 = NULL, *_6$$7 = NULL, *_10$$8 = NULL, *_11$$8 = NULL, *_13$$8, *_14$$6 = NULL, *_49$$6, *_16$$12 = NULL, *_17$$12 = NULL, *_19$$13, *_22$$16 = NULL, *_23$$16 = NULL, *_25$$17, *_26$$19 = NULL, *_27$$19 = NULL, *_29$$20, *_31$$23 = NULL, *_32$$23 = NULL, *_34$$23, *_35$$22 = NULL, *_36$$22 = NULL, *_38$$26, *_39$$28 = NULL, *_40$$28 = NULL, *_42$$28, *_43$$31 = NULL, *_44$$31, *_45$$36 = NULL, *_46$$36 = NULL, *_48$$36, *_50$$39 = NULL, *_51$$40 = NULL, *_52$$40 = NULL, *_54$$40, *_55$$43 = NULL, *_56$$43, *_57$$46 = NULL, *_59$$47 = NULL, *_61$$48, *_62$$51 = NULL, *_63$$51 = NULL, *_65$$51, *_67$$54 = NULL, *_68$$54, *_69$$57; + zval *value = NULL, *handler = NULL, *dependencyInjector = NULL, *namespaceName = NULL, *handlerName = NULL, *actionName = NULL, *params = NULL, *eventsManager = NULL, *actionSuffix = NULL, *handlerClass = NULL, *status = NULL, *actionMethod = NULL, *modelBinder = NULL, *e = NULL, *bindCacheKey = NULL, *_0, *_1$$3, *_2$$3, *_3$$4 = NULL, *_4$$4, *_5$$7 = NULL, *_6$$7 = NULL, *_10$$8 = NULL, *_11$$8 = NULL, *_13$$8, *_14$$6 = NULL, *_49$$6, *_59$$6 = NULL, *_16$$12 = NULL, *_17$$12 = NULL, *_19$$13, *_22$$16 = NULL, *_23$$16 = NULL, *_25$$17, *_26$$19 = NULL, *_27$$19 = NULL, *_29$$20, *_31$$23 = NULL, *_32$$23 = NULL, *_34$$23, *_35$$22 = NULL, *_36$$22 = NULL, *_38$$26, *_39$$28 = NULL, *_40$$28 = NULL, *_42$$28, *_43$$31 = NULL, *_44$$31, *_45$$36 = NULL, *_46$$36 = NULL, *_48$$36, *_50$$39 = NULL, *_51$$40 = NULL, *_52$$40 = NULL, *_54$$40, *_55$$43 = NULL, *_56$$43, *_57$$46 = NULL, *_60$$47 = NULL, *_62$$48, *_63$$51 = NULL, *_64$$51 = NULL, *_66$$51, *_68$$54 = NULL, *_69$$54, *_70$$57; zend_bool hasService = 0, wasFresh; - zephir_fcall_cache_entry *_7 = NULL, *_8 = NULL, *_9 = NULL, *_12 = NULL, *_15 = NULL, *_18 = NULL, *_20 = NULL, *_21 = NULL, *_24 = NULL, *_28 = NULL, *_33 = NULL, *_37 = NULL, *_41 = NULL, *_47 = NULL, *_53 = NULL, *_58 = NULL, *_60 = NULL, *_64 = NULL, *_66 = NULL; + zephir_fcall_cache_entry *_7 = NULL, *_8 = NULL, *_9 = NULL, *_12 = NULL, *_15 = NULL, *_18 = NULL, *_20 = NULL, *_21 = NULL, *_24 = NULL, *_28 = NULL, *_33 = NULL, *_37 = NULL, *_41 = NULL, *_47 = NULL, *_53 = NULL, *_58 = NULL, *_61 = NULL, *_65 = NULL, *_67 = NULL; int ZEPHIR_LAST_CALL_STATUS, numberDispatches = 0; ZEPHIR_MM_GROW(); @@ -945,14 +947,16 @@ PHP_METHOD(Phalcon_Dispatcher, _dispatch) { try_end_1: if (EG(exception)) { - ZEPHIR_CPY_WRT(e, EG(exception)); - if (zephir_instance_of_ev(e, zend_exception_get_default(TSRMLS_C) TSRMLS_CC)) { + ZEPHIR_INIT_NVAR(_59$$6); + ZEPHIR_CPY_WRT(_59$$6, EG(exception)); + if (zephir_instance_of_ev(_59$$6, zend_exception_get_default(TSRMLS_C) TSRMLS_CC)) { zend_clear_exception(TSRMLS_C); - ZEPHIR_CALL_METHOD(&_59$$47, this_ptr, "_handleexception", &_60, 0, e); + ZEPHIR_CPY_WRT(e, _59$$6); + ZEPHIR_CALL_METHOD(&_60$$47, this_ptr, "_handleexception", &_61, 0, e); zephir_check_call_status(); - if (ZEPHIR_IS_FALSE_IDENTICAL(_59$$47)) { - _61$$48 = zephir_fetch_nproperty_this(this_ptr, SL("_finished"), PH_NOISY_CC); - if (ZEPHIR_IS_FALSE_IDENTICAL(_61$$48)) { + if (ZEPHIR_IS_FALSE_IDENTICAL(_60$$47)) { + _62$$48 = zephir_fetch_nproperty_this(this_ptr, SL("_finished"), PH_NOISY_CC); + if (ZEPHIR_IS_FALSE_IDENTICAL(_62$$48)) { continue; } } else { @@ -963,41 +967,41 @@ PHP_METHOD(Phalcon_Dispatcher, _dispatch) { } } if (Z_TYPE_P(eventsManager) == IS_OBJECT) { - ZEPHIR_INIT_NVAR(_63$$51); - ZVAL_STRING(_63$$51, "dispatch:afterExecuteRoute", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(&_62$$51, eventsManager, "fire", &_64, 0, _63$$51, this_ptr, value); - zephir_check_temp_parameter(_63$$51); + ZEPHIR_INIT_NVAR(_64$$51); + ZVAL_STRING(_64$$51, "dispatch:afterExecuteRoute", ZEPHIR_TEMP_PARAM_COPY); + ZEPHIR_CALL_METHOD(&_63$$51, eventsManager, "fire", &_65, 0, _64$$51, this_ptr, value); + zephir_check_temp_parameter(_64$$51); zephir_check_call_status(); - if (ZEPHIR_IS_FALSE_IDENTICAL(_62$$51)) { + if (ZEPHIR_IS_FALSE_IDENTICAL(_63$$51)) { continue; } - _65$$51 = zephir_fetch_nproperty_this(this_ptr, SL("_finished"), PH_NOISY_CC); - if (ZEPHIR_IS_FALSE_IDENTICAL(_65$$51)) { + _66$$51 = zephir_fetch_nproperty_this(this_ptr, SL("_finished"), PH_NOISY_CC); + if (ZEPHIR_IS_FALSE_IDENTICAL(_66$$51)) { continue; } - ZEPHIR_INIT_NVAR(_63$$51); - ZVAL_STRING(_63$$51, "dispatch:afterDispatch", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, eventsManager, "fire", &_66, 0, _63$$51, this_ptr); - zephir_check_temp_parameter(_63$$51); + ZEPHIR_INIT_NVAR(_64$$51); + ZVAL_STRING(_64$$51, "dispatch:afterDispatch", ZEPHIR_TEMP_PARAM_COPY); + ZEPHIR_CALL_METHOD(NULL, eventsManager, "fire", &_67, 0, _64$$51, this_ptr); + zephir_check_temp_parameter(_64$$51); zephir_check_call_status(); } if ((zephir_method_exists_ex(handler, SS("afterexecuteroute") TSRMLS_CC) == SUCCESS)) { - ZEPHIR_CALL_METHOD(&_67$$54, handler, "afterexecuteroute", NULL, 0, this_ptr, value); + ZEPHIR_CALL_METHOD(&_68$$54, handler, "afterexecuteroute", NULL, 0, this_ptr, value); zephir_check_call_status(); - if (ZEPHIR_IS_FALSE_IDENTICAL(_67$$54)) { + if (ZEPHIR_IS_FALSE_IDENTICAL(_68$$54)) { continue; } - _68$$54 = zephir_fetch_nproperty_this(this_ptr, SL("_finished"), PH_NOISY_CC); - if (ZEPHIR_IS_FALSE_IDENTICAL(_68$$54)) { + _69$$54 = zephir_fetch_nproperty_this(this_ptr, SL("_finished"), PH_NOISY_CC); + if (ZEPHIR_IS_FALSE_IDENTICAL(_69$$54)) { continue; } } } if (Z_TYPE_P(eventsManager) == IS_OBJECT) { - ZEPHIR_INIT_VAR(_69$$57); - ZVAL_STRING(_69$$57, "dispatch:afterDispatchLoop", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, eventsManager, "fire", NULL, 0, _69$$57, this_ptr); - zephir_check_temp_parameter(_69$$57); + ZEPHIR_INIT_VAR(_70$$57); + ZVAL_STRING(_70$$57, "dispatch:afterDispatchLoop", ZEPHIR_TEMP_PARAM_COPY); + ZEPHIR_CALL_METHOD(NULL, eventsManager, "fire", NULL, 0, _70$$57, this_ptr); + zephir_check_temp_parameter(_70$$57); zephir_check_call_status(); } RETURN_CCTOR(handler); diff --git a/ext/phalcon/escaper.zep.c b/ext/phalcon/escaper.zep.c index 25163a384b2..16d06c67ffb 100644 --- a/ext/phalcon/escaper.zep.c +++ b/ext/phalcon/escaper.zep.c @@ -17,7 +17,6 @@ #include "kernel/memory.h" #include "kernel/filter.h" #include "kernel/array.h" -#include "kernel/hash.h" #include "kernel/fcall.h" #include "kernel/exception.h" @@ -181,8 +180,8 @@ PHP_METHOD(Phalcon_Escaper, detectEncoding) { zephir_array_fast_append(_0, _1); zephir_is_iterable(_0, &_3, &_2, 0, 0, "phalcon/escaper.zep", 132); for ( - ; zephir_hash_get_current_data_ex(_3, (void**) &_4, &_2) == SUCCESS - ; zephir_hash_move_forward_ex(_3, &_2) + ; zend_hash_get_current_data_ex(_3, (void**) &_4, &_2) == SUCCESS + ; zend_hash_move_forward_ex(_3, &_2) ) { ZEPHIR_GET_HVALUE(charset, _4); ZEPHIR_CALL_FUNCTION(&_5$$5, "mb_detect_encoding", &_6, 184, str, charset, ZEPHIR_GLOBAL(global_true)); diff --git a/ext/phalcon/events/event.zep.c b/ext/phalcon/events/event.zep.c index 9172982ccca..264354f77f0 100644 --- a/ext/phalcon/events/event.zep.c +++ b/ext/phalcon/events/event.zep.c @@ -118,11 +118,11 @@ PHP_METHOD(Phalcon_Events_Event, __construct) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 2, &type_param, &source, &data, &cancelable_param); - if (unlikely(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'type' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(type_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(type_param) == IS_STRING)) { zephir_get_strval(type, type_param); } else { ZEPHIR_INIT_VAR(type); @@ -185,11 +185,11 @@ PHP_METHOD(Phalcon_Events_Event, setType) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &type_param); - if (unlikely(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'type' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(type_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(type_param) == IS_STRING)) { zephir_get_strval(type, type_param); } else { ZEPHIR_INIT_VAR(type); diff --git a/ext/phalcon/events/manager.zep.c b/ext/phalcon/events/manager.zep.c index 6b3092de500..d8d5fe0f9a3 100644 --- a/ext/phalcon/events/manager.zep.c +++ b/ext/phalcon/events/manager.zep.c @@ -21,7 +21,6 @@ #include "kernel/fcall.h" #include "ext/spl/spl_exceptions.h" #include "Zend/zend_closures.h" -#include "kernel/hash.h" #include "kernel/string.h" #include "kernel/concat.h" @@ -67,11 +66,11 @@ PHP_METHOD(Phalcon_Events_Manager, attach) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 1, &eventType_param, &handler, &priority_param); - if (unlikely(Z_TYPE_P(eventType_param) != IS_STRING && Z_TYPE_P(eventType_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(eventType_param) != IS_STRING && Z_TYPE_P(eventType_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'eventType' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(eventType_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(eventType_param) == IS_STRING)) { zephir_get_strval(eventType, eventType_param); } else { ZEPHIR_INIT_VAR(eventType); @@ -80,7 +79,7 @@ PHP_METHOD(Phalcon_Events_Manager, attach) { if (!priority_param) { priority = 100; } else { - if (unlikely(Z_TYPE_P(priority_param) != IS_LONG)) { + if (UNEXPECTED(Z_TYPE_P(priority_param) != IS_LONG)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'priority' must be a int") TSRMLS_CC); RETURN_MM_NULL(); } @@ -141,11 +140,11 @@ PHP_METHOD(Phalcon_Events_Manager, detach) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &eventType_param, &handler); - if (unlikely(Z_TYPE_P(eventType_param) != IS_STRING && Z_TYPE_P(eventType_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(eventType_param) != IS_STRING && Z_TYPE_P(eventType_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'eventType' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(eventType_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(eventType_param) == IS_STRING)) { zephir_get_strval(eventType, eventType_param); } else { ZEPHIR_INIT_VAR(eventType); @@ -303,11 +302,11 @@ PHP_METHOD(Phalcon_Events_Manager, detachAll) { ZEPHIR_INIT_VAR(type); ZVAL_EMPTY_STRING(type); } else { - if (unlikely(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'type' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(type_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(type_param) == IS_STRING)) { zephir_get_strval(type, type_param); } else { ZEPHIR_INIT_VAR(type); @@ -452,8 +451,8 @@ PHP_METHOD(Phalcon_Events_Manager, fireQueue) { } else { zephir_is_iterable(queue, &_12$$21, &_11$$21, 0, 0, "phalcon/events/manager.zep", 358); for ( - ; zephir_hash_get_current_data_ex(_12$$21, (void**) &_13$$21, &_11$$21) == SUCCESS - ; zephir_hash_move_forward_ex(_12$$21, &_11$$21) + ; zend_hash_get_current_data_ex(_12$$21, (void**) &_13$$21, &_11$$21) == SUCCESS + ; zend_hash_move_forward_ex(_12$$21, &_11$$21) ) { ZEPHIR_GET_HVALUE(handler, _13$$21); if (Z_TYPE_P(handler) == IS_OBJECT) { @@ -525,11 +524,11 @@ PHP_METHOD(Phalcon_Events_Manager, fire) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 2, &eventType_param, &source, &data, &cancelable_param); - if (unlikely(Z_TYPE_P(eventType_param) != IS_STRING && Z_TYPE_P(eventType_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(eventType_param) != IS_STRING && Z_TYPE_P(eventType_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'eventType' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(eventType_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(eventType_param) == IS_STRING)) { zephir_get_strval(eventType, eventType_param); } else { ZEPHIR_INIT_VAR(eventType); @@ -634,11 +633,11 @@ PHP_METHOD(Phalcon_Events_Manager, hasListeners) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &type_param); - if (unlikely(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'type' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(type_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(type_param) == IS_STRING)) { zephir_get_strval(type, type_param); } else { ZEPHIR_INIT_VAR(type); @@ -665,11 +664,11 @@ PHP_METHOD(Phalcon_Events_Manager, getListeners) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &type_param); - if (unlikely(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'type' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(type_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(type_param) == IS_STRING)) { zephir_get_strval(type, type_param); } else { ZEPHIR_INIT_VAR(type); diff --git a/ext/phalcon/filter.zep.c b/ext/phalcon/filter.zep.c index 7caad0eca85..097b783d5da 100644 --- a/ext/phalcon/filter.zep.c +++ b/ext/phalcon/filter.zep.c @@ -17,7 +17,6 @@ #include "ext/spl/spl_exceptions.h" #include "kernel/operators.h" #include "kernel/memory.h" -#include "kernel/hash.h" #include "kernel/fcall.h" #include "kernel/array.h" #include "Zend/zend_closures.h" @@ -88,11 +87,11 @@ PHP_METHOD(Phalcon_Filter, add) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &name_param, &handler); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -140,8 +139,8 @@ PHP_METHOD(Phalcon_Filter, sanitize) { if (Z_TYPE_P(value) != IS_NULL) { zephir_is_iterable(filters, &_1$$4, &_0$$4, 0, 0, "phalcon/filter.zep", 108); for ( - ; zephir_hash_get_current_data_ex(_1$$4, (void**) &_2$$4, &_0$$4) == SUCCESS - ; zephir_hash_move_forward_ex(_1$$4, &_0$$4) + ; zend_hash_get_current_data_ex(_1$$4, (void**) &_2$$4, &_0$$4) == SUCCESS + ; zend_hash_move_forward_ex(_1$$4, &_0$$4) ) { ZEPHIR_GET_HVALUE(filter, _2$$4); _3$$5 = Z_TYPE_P(value) == IS_ARRAY; @@ -153,8 +152,8 @@ PHP_METHOD(Phalcon_Filter, sanitize) { array_init(arrayValue); zephir_is_iterable(value, &_5$$6, &_4$$6, 0, 0, "phalcon/filter.zep", 103); for ( - ; zephir_hash_get_current_data_ex(_5$$6, (void**) &_6$$6, &_4$$6) == SUCCESS - ; zephir_hash_move_forward_ex(_5$$6, &_4$$6) + ; zend_hash_get_current_data_ex(_5$$6, (void**) &_6$$6, &_4$$6) == SUCCESS + ; zend_hash_move_forward_ex(_5$$6, &_4$$6) ) { ZEPHIR_GET_HMKEY(itemKey, _5$$6, _4$$6); ZEPHIR_GET_HVALUE(itemValue, _6$$6); @@ -182,8 +181,8 @@ PHP_METHOD(Phalcon_Filter, sanitize) { array_init(sanitizedValue); zephir_is_iterable(value, &_12$$9, &_11$$9, 0, 0, "phalcon/filter.zep", 120); for ( - ; zephir_hash_get_current_data_ex(_12$$9, (void**) &_13$$9, &_11$$9) == SUCCESS - ; zephir_hash_move_forward_ex(_12$$9, &_11$$9) + ; zend_hash_get_current_data_ex(_12$$9, (void**) &_13$$9, &_11$$9) == SUCCESS + ; zend_hash_move_forward_ex(_12$$9, &_11$$9) ) { ZEPHIR_GET_HMKEY(itemKey, _12$$9, _11$$9); ZEPHIR_GET_HVALUE(itemValue, _13$$9); @@ -214,11 +213,11 @@ PHP_METHOD(Phalcon_Filter, _sanitize) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &value, &filter_param); - if (unlikely(Z_TYPE_P(filter_param) != IS_STRING && Z_TYPE_P(filter_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(filter_param) != IS_STRING && Z_TYPE_P(filter_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'filter' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(filter_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(filter_param) == IS_STRING)) { zephir_get_strval(filter, filter_param); } else { ZEPHIR_INIT_VAR(filter); diff --git a/ext/phalcon/flash.zep.c b/ext/phalcon/flash.zep.c index 3844222bf46..2c9a81d77f4 100644 --- a/ext/phalcon/flash.zep.c +++ b/ext/phalcon/flash.zep.c @@ -21,7 +21,6 @@ #include "kernel/exception.h" #include "kernel/concat.h" #include "kernel/string.h" -#include "kernel/hash.h" /** @@ -434,8 +433,8 @@ PHP_METHOD(Phalcon_Flash, outputMessage) { } zephir_is_iterable(message, &_3$$9, &_2$$9, 0, 0, "phalcon/flash.zep", 288); for ( - ; zephir_hash_get_current_data_ex(_3$$9, (void**) &_4$$9, &_2$$9) == SUCCESS - ; zephir_hash_move_forward_ex(_3$$9, &_2$$9) + ; zend_hash_get_current_data_ex(_3$$9, (void**) &_4$$9, &_2$$9) == SUCCESS + ; zend_hash_move_forward_ex(_3$$9, &_2$$9) ) { ZEPHIR_GET_HVALUE(msg, _4$$9); if (autoEscape == 1) { diff --git a/ext/phalcon/flash/direct.zep.c b/ext/phalcon/flash/direct.zep.c index de9ae166a72..b9e557a32fe 100644 --- a/ext/phalcon/flash/direct.zep.c +++ b/ext/phalcon/flash/direct.zep.c @@ -16,7 +16,6 @@ #include "kernel/operators.h" #include "kernel/memory.h" #include "kernel/object.h" -#include "kernel/hash.h" /** @@ -80,8 +79,8 @@ PHP_METHOD(Phalcon_Flash_Direct, output) { if (Z_TYPE_P(messages) == IS_ARRAY) { zephir_is_iterable(messages, &_1$$3, &_0$$3, 0, 0, "phalcon/flash/direct.zep", 52); for ( - ; zephir_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_1$$3, &_0$$3) + ; zend_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS + ; zend_hash_move_forward_ex(_1$$3, &_0$$3) ) { ZEPHIR_GET_HVALUE(message, _2$$3); zend_print_zval(message, 0); diff --git a/ext/phalcon/flash/session.zep.c b/ext/phalcon/flash/session.zep.c index 746a28fbca4..aa6fa7e6075 100644 --- a/ext/phalcon/flash/session.zep.c +++ b/ext/phalcon/flash/session.zep.c @@ -18,7 +18,6 @@ #include "kernel/operators.h" #include "ext/spl/spl_exceptions.h" #include "kernel/exception.h" -#include "kernel/hash.h" /** @@ -259,8 +258,8 @@ PHP_METHOD(Phalcon_Flash_Session, output) { if (Z_TYPE_P(messages) == IS_ARRAY) { zephir_is_iterable(messages, &_2$$3, &_1$$3, 0, 0, "phalcon/flash/session.zep", 136); for ( - ; zephir_hash_get_current_data_ex(_2$$3, (void**) &_3$$3, &_1$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_2$$3, &_1$$3) + ; zend_hash_get_current_data_ex(_2$$3, (void**) &_3$$3, &_1$$3) == SUCCESS + ; zend_hash_move_forward_ex(_2$$3, &_1$$3) ) { ZEPHIR_GET_HMKEY(type, _2$$3, _1$$3); ZEPHIR_GET_HVALUE(message, _3$$3); diff --git a/ext/phalcon/forms/element.zep.c b/ext/phalcon/forms/element.zep.c index 31cde5cac38..e6e7903235b 100644 --- a/ext/phalcon/forms/element.zep.c +++ b/ext/phalcon/forms/element.zep.c @@ -128,11 +128,11 @@ PHP_METHOD(Phalcon_Forms_Element, setName) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); diff --git a/ext/phalcon/forms/element/select.zep.c b/ext/phalcon/forms/element/select.zep.c index 23a63cfc88f..c8796206115 100644 --- a/ext/phalcon/forms/element/select.zep.c +++ b/ext/phalcon/forms/element/select.zep.c @@ -16,7 +16,6 @@ #include "kernel/fcall.h" #include "kernel/operators.h" #include "kernel/memory.h" -#include "kernel/hash.h" /** @@ -119,8 +118,8 @@ PHP_METHOD(Phalcon_Forms_Element_Select, addOption) { if (Z_TYPE_P(option) == IS_ARRAY) { zephir_is_iterable(option, &_1$$3, &_0$$3, 0, 0, "phalcon/forms/element/select.zep", 84); for ( - ; zephir_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_1$$3, &_0$$3) + ; zend_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS + ; zend_hash_move_forward_ex(_1$$3, &_0$$3) ) { ZEPHIR_GET_HMKEY(key, _1$$3, _0$$3); ZEPHIR_GET_HVALUE(value, _2$$3); diff --git a/ext/phalcon/forms/form.zep.c b/ext/phalcon/forms/form.zep.c index 7b457971b98..a6211804e23 100644 --- a/ext/phalcon/forms/form.zep.c +++ b/ext/phalcon/forms/form.zep.c @@ -20,7 +20,6 @@ #include "ext/spl/spl_exceptions.h" #include "kernel/operators.h" #include "kernel/array.h" -#include "kernel/hash.h" #include "kernel/concat.h" #include "kernel/string.h" #include "kernel/iterator.h" @@ -132,11 +131,11 @@ PHP_METHOD(Phalcon_Forms_Form, setAction) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &action_param); - if (unlikely(Z_TYPE_P(action_param) != IS_STRING && Z_TYPE_P(action_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(action_param) != IS_STRING && Z_TYPE_P(action_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'action' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(action_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(action_param) == IS_STRING)) { zephir_get_strval(action, action_param); } else { ZEPHIR_INIT_VAR(action); @@ -311,8 +310,8 @@ PHP_METHOD(Phalcon_Forms_Form, bind) { ZVAL_NULL(filter); zephir_is_iterable(data, &_2, &_1, 0, 0, "phalcon/forms/form.zep", 246); for ( - ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS - ; zephir_hash_move_forward_ex(_2, &_1) + ; zend_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS + ; zend_hash_move_forward_ex(_2, &_1) ) { ZEPHIR_GET_HMKEY(key, _2, _1); ZEPHIR_GET_HVALUE(value, _3); @@ -432,8 +431,8 @@ PHP_METHOD(Phalcon_Forms_Form, isValid) { _6 = zephir_fetch_nproperty_this(this_ptr, SL("_elements"), PH_NOISY_CC); zephir_is_iterable(_6, &_8, &_7, 0, 0, "phalcon/forms/form.zep", 338); for ( - ; zephir_hash_get_current_data_ex(_8, (void**) &_9, &_7) == SUCCESS - ; zephir_hash_move_forward_ex(_8, &_7) + ; zend_hash_get_current_data_ex(_8, (void**) &_9, &_7) == SUCCESS + ; zend_hash_move_forward_ex(_8, &_7) ) { ZEPHIR_GET_HVALUE(element, _9); ZEPHIR_CALL_METHOD(&validators, element, "getvalidators", NULL, 0); @@ -449,8 +448,8 @@ PHP_METHOD(Phalcon_Forms_Form, isValid) { zephir_check_call_status(); zephir_is_iterable(validators, &_12$$11, &_11$$11, 0, 0, "phalcon/forms/form.zep", 325); for ( - ; zephir_hash_get_current_data_ex(_12$$11, (void**) &_13$$11, &_11$$11) == SUCCESS - ; zephir_hash_move_forward_ex(_12$$11, &_11$$11) + ; zend_hash_get_current_data_ex(_12$$11, (void**) &_13$$11, &_11$$11) == SUCCESS + ; zend_hash_move_forward_ex(_12$$11, &_11$$11) ) { ZEPHIR_GET_HVALUE(validator, _13$$11); ZEPHIR_CALL_METHOD(NULL, validation, "add", &_14, 217, name, validator); @@ -545,11 +544,11 @@ PHP_METHOD(Phalcon_Forms_Form, getMessagesFor) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -585,11 +584,11 @@ PHP_METHOD(Phalcon_Forms_Form, hasMessagesFor) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -650,8 +649,8 @@ PHP_METHOD(Phalcon_Forms_Form, add) { _2$$4 = zephir_fetch_nproperty_this(this_ptr, SL("_elements"), PH_NOISY_CC); zephir_is_iterable(_2$$4, &_4$$4, &_3$$4, 0, 0, "phalcon/forms/form.zep", 449); for ( - ; zephir_hash_get_current_data_ex(_4$$4, (void**) &_5$$4, &_3$$4) == SUCCESS - ; zephir_hash_move_forward_ex(_4$$4, &_3$$4) + ; zend_hash_get_current_data_ex(_4$$4, (void**) &_5$$4, &_3$$4) == SUCCESS + ; zend_hash_move_forward_ex(_4$$4, &_3$$4) ) { ZEPHIR_GET_HMKEY(key, _4$$4, _3$$4); ZEPHIR_GET_HVALUE(value, _5$$4); @@ -688,11 +687,11 @@ PHP_METHOD(Phalcon_Forms_Form, render) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &name_param, &attributes); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -734,11 +733,11 @@ PHP_METHOD(Phalcon_Forms_Form, get) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -776,11 +775,11 @@ PHP_METHOD(Phalcon_Forms_Form, label) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &name_param, &attributes_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -825,11 +824,11 @@ PHP_METHOD(Phalcon_Forms_Form, getLabel) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -871,11 +870,11 @@ PHP_METHOD(Phalcon_Forms_Form, getValue) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -956,11 +955,11 @@ PHP_METHOD(Phalcon_Forms_Form, has) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -984,11 +983,11 @@ PHP_METHOD(Phalcon_Forms_Form, remove) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -1036,8 +1035,8 @@ PHP_METHOD(Phalcon_Forms_Form, clear) { if (Z_TYPE_P(fields) == IS_ARRAY) { zephir_is_iterable(fields, &_1$$5, &_0$$5, 0, 0, "phalcon/forms/form.zep", 652); for ( - ; zephir_hash_get_current_data_ex(_1$$5, (void**) &_2$$5, &_0$$5) == SUCCESS - ; zephir_hash_move_forward_ex(_1$$5, &_0$$5) + ; zend_hash_get_current_data_ex(_1$$5, (void**) &_2$$5, &_0$$5) == SUCCESS + ; zend_hash_move_forward_ex(_1$$5, &_0$$5) ) { ZEPHIR_GET_HVALUE(field, _2$$5); if (zephir_array_isset(data, field)) { @@ -1056,8 +1055,8 @@ PHP_METHOD(Phalcon_Forms_Form, clear) { if (Z_TYPE_P(elements) == IS_ARRAY) { zephir_is_iterable(elements, &_4$$10, &_3$$10, 0, 0, "phalcon/forms/form.zep", 672); for ( - ; zephir_hash_get_current_data_ex(_4$$10, (void**) &_5$$10, &_3$$10) == SUCCESS - ; zephir_hash_move_forward_ex(_4$$10, &_3$$10) + ; zend_hash_get_current_data_ex(_4$$10, (void**) &_5$$10, &_3$$10) == SUCCESS + ; zend_hash_move_forward_ex(_4$$10, &_3$$10) ) { ZEPHIR_GET_HVALUE(element, _5$$10); if (Z_TYPE_P(fields) != IS_ARRAY) { diff --git a/ext/phalcon/http/cookie.zep.c b/ext/phalcon/http/cookie.zep.c index b3097a8dc33..676bf8bee95 100644 --- a/ext/phalcon/http/cookie.zep.c +++ b/ext/phalcon/http/cookie.zep.c @@ -82,11 +82,11 @@ PHP_METHOD(Phalcon_Http_Cookie, __construct) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 6, &name_param, &value, &expire, &path, &secure, &domain, &httpOnly); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -563,11 +563,11 @@ PHP_METHOD(Phalcon_Http_Cookie, setPath) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &path_param); - if (unlikely(Z_TYPE_P(path_param) != IS_STRING && Z_TYPE_P(path_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(path_param) != IS_STRING && Z_TYPE_P(path_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'path' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(path_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(path_param) == IS_STRING)) { zephir_get_strval(path, path_param); } else { ZEPHIR_INIT_VAR(path); @@ -627,11 +627,11 @@ PHP_METHOD(Phalcon_Http_Cookie, setDomain) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &domain_param); - if (unlikely(Z_TYPE_P(domain_param) != IS_STRING && Z_TYPE_P(domain_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(domain_param) != IS_STRING && Z_TYPE_P(domain_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'domain' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(domain_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(domain_param) == IS_STRING)) { zephir_get_strval(domain, domain_param); } else { ZEPHIR_INIT_VAR(domain); diff --git a/ext/phalcon/http/request.zep.c b/ext/phalcon/http/request.zep.c index 717662ad3da..72fe5a64365 100644 --- a/ext/phalcon/http/request.zep.c +++ b/ext/phalcon/http/request.zep.c @@ -22,7 +22,6 @@ #include "kernel/string.h" #include "kernel/concat.h" #include "kernel/file.h" -#include "kernel/hash.h" /** @@ -142,11 +141,11 @@ PHP_METHOD(Phalcon_Http_Request, get) { ZEPHIR_INIT_VAR(name); ZVAL_EMPTY_STRING(name); } else { - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -216,11 +215,11 @@ PHP_METHOD(Phalcon_Http_Request, getPost) { ZEPHIR_INIT_VAR(name); ZVAL_EMPTY_STRING(name); } else { - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -288,11 +287,11 @@ PHP_METHOD(Phalcon_Http_Request, getPut) { ZEPHIR_INIT_VAR(name); ZVAL_EMPTY_STRING(name); } else { - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -378,11 +377,11 @@ PHP_METHOD(Phalcon_Http_Request, getQuery) { ZEPHIR_INIT_VAR(name); ZVAL_EMPTY_STRING(name); } else { - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -445,11 +444,11 @@ PHP_METHOD(Phalcon_Http_Request, getHelper) { ZEPHIR_INIT_VAR(name); ZVAL_EMPTY_STRING(name); } else { - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -534,11 +533,11 @@ PHP_METHOD(Phalcon_Http_Request, getServer) { zephir_get_global(&_SERVER, SS("_SERVER") TSRMLS_CC); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -565,11 +564,11 @@ PHP_METHOD(Phalcon_Http_Request, has) { zephir_get_global(&_REQUEST, SS("_REQUEST") TSRMLS_CC); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -593,11 +592,11 @@ PHP_METHOD(Phalcon_Http_Request, hasPost) { zephir_get_global(&_POST, SS("_POST") TSRMLS_CC); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -621,11 +620,11 @@ PHP_METHOD(Phalcon_Http_Request, hasPut) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -651,11 +650,11 @@ PHP_METHOD(Phalcon_Http_Request, hasQuery) { zephir_get_global(&_GET, SS("_GET") TSRMLS_CC); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -679,11 +678,11 @@ PHP_METHOD(Phalcon_Http_Request, hasServer) { zephir_get_global(&_SERVER, SS("_SERVER") TSRMLS_CC); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -708,11 +707,11 @@ PHP_METHOD(Phalcon_Http_Request, getHeader) { zephir_get_global(&_SERVER, SS("_SERVER") TSRMLS_CC); zephir_fetch_params(1, 1, 0, &header_param); - if (unlikely(Z_TYPE_P(header_param) != IS_STRING && Z_TYPE_P(header_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(header_param) != IS_STRING && Z_TYPE_P(header_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'header' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(header_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(header_param) == IS_STRING)) { zephir_get_strval(header, header_param); } else { ZEPHIR_INIT_VAR(header); @@ -1244,7 +1243,7 @@ PHP_METHOD(Phalcon_Http_Request, getMethod) { ZEPHIR_INIT_VAR(returnMethod); ZVAL_EMPTY_STRING(returnMethod); ZEPHIR_OBS_VAR(requestMethod); - if (likely(zephir_array_isset_string_fetch(&requestMethod, _SERVER, SS("REQUEST_METHOD"), 0 TSRMLS_CC))) { + if (EXPECTED(zephir_array_isset_string_fetch(&requestMethod, _SERVER, SS("REQUEST_METHOD"), 0 TSRMLS_CC))) { ZEPHIR_INIT_NVAR(returnMethod); zephir_fast_strtoupper(returnMethod, requestMethod); } else { @@ -1370,8 +1369,8 @@ PHP_METHOD(Phalcon_Http_Request, isMethod) { if (Z_TYPE_P(methods) == IS_ARRAY) { zephir_is_iterable(methods, &_5$$5, &_4$$5, 0, 0, "phalcon/http/request.zep", 680); for ( - ; zephir_hash_get_current_data_ex(_5$$5, (void**) &_6$$5, &_4$$5) == SUCCESS - ; zephir_hash_move_forward_ex(_5$$5, &_4$$5) + ; zend_hash_get_current_data_ex(_5$$5, (void**) &_6$$5, &_4$$5) == SUCCESS + ; zend_hash_move_forward_ex(_5$$5, &_4$$5) ) { ZEPHIR_GET_HVALUE(method, _6$$5); ZEPHIR_INIT_NVAR(_8$$6); @@ -1586,8 +1585,8 @@ PHP_METHOD(Phalcon_Http_Request, hasFiles) { } zephir_is_iterable(files, &_1, &_0, 0, 0, "phalcon/http/request.zep", 799); for ( - ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS - ; zephir_hash_move_forward_ex(_1, &_0) + ; zend_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS + ; zend_hash_move_forward_ex(_1, &_0) ) { ZEPHIR_GET_HVALUE(file, _2); ZEPHIR_OBS_NVAR(error); @@ -1642,8 +1641,8 @@ PHP_METHOD(Phalcon_Http_Request, hasFileHelper) { } zephir_is_iterable(data, &_1, &_0, 0, 0, "phalcon/http/request.zep", 826); for ( - ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS - ; zephir_hash_move_forward_ex(_1, &_0) + ; zend_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS + ; zend_hash_move_forward_ex(_1, &_0) ) { ZEPHIR_GET_HVALUE(value, _2); if (Z_TYPE_P(value) != IS_ARRAY) { @@ -1701,8 +1700,8 @@ PHP_METHOD(Phalcon_Http_Request, getUploadedFiles) { if (zephir_fast_count_int(superFiles TSRMLS_CC) > 0) { zephir_is_iterable(superFiles, &_1$$3, &_0$$3, 0, 0, "phalcon/http/request.zep", 871); for ( - ; zephir_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_1$$3, &_0$$3) + ; zend_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS + ; zend_hash_move_forward_ex(_1$$3, &_0$$3) ) { ZEPHIR_GET_HMKEY(prefix, _1$$3, _0$$3); ZEPHIR_GET_HVALUE(input, _2$$3); @@ -1718,8 +1717,8 @@ PHP_METHOD(Phalcon_Http_Request, getUploadedFiles) { zephir_check_call_status(); zephir_is_iterable(smoothInput, &_11$$5, &_10$$5, 0, 0, "phalcon/http/request.zep", 865); for ( - ; zephir_hash_get_current_data_ex(_11$$5, (void**) &_12$$5, &_10$$5) == SUCCESS - ; zephir_hash_move_forward_ex(_11$$5, &_10$$5) + ; zend_hash_get_current_data_ex(_11$$5, (void**) &_12$$5, &_10$$5) == SUCCESS + ; zend_hash_move_forward_ex(_11$$5, &_10$$5) ) { ZEPHIR_GET_HVALUE(file, _12$$5); _13$$6 = onlySuccessful == 0; @@ -1801,8 +1800,8 @@ PHP_METHOD(Phalcon_Http_Request, smoothFiles) { array_init(files); zephir_is_iterable(names, &_1, &_0, 0, 0, "phalcon/http/request.zep", 916); for ( - ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS - ; zephir_hash_move_forward_ex(_1, &_0) + ; zend_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS + ; zend_hash_move_forward_ex(_1, &_0) ) { ZEPHIR_GET_HMKEY(idx, _1, _0); ZEPHIR_GET_HVALUE(name, _2); @@ -1837,8 +1836,8 @@ PHP_METHOD(Phalcon_Http_Request, smoothFiles) { zephir_check_call_status(); zephir_is_iterable(parentFiles, &_12$$5, &_11$$5, 0, 0, "phalcon/http/request.zep", 913); for ( - ; zephir_hash_get_current_data_ex(_12$$5, (void**) &_13$$5, &_11$$5) == SUCCESS - ; zephir_hash_move_forward_ex(_12$$5, &_11$$5) + ; zend_hash_get_current_data_ex(_12$$5, (void**) &_13$$5, &_11$$5) == SUCCESS + ; zend_hash_move_forward_ex(_12$$5, &_11$$5) ) { ZEPHIR_GET_HVALUE(file, _13$$5); zephir_array_append(&files, file, PH_SEPARATE, "phalcon/http/request.zep", 911); @@ -1887,8 +1886,8 @@ PHP_METHOD(Phalcon_Http_Request, getHeaders) { zephir_array_update_string(&contentHeaders, SL("CONTENT_MD5"), &ZEPHIR_GLOBAL(global_true), PH_COPY | PH_SEPARATE); zephir_is_iterable(_SERVER, &_1, &_0, 0, 0, "phalcon/http/request.zep", 953); for ( - ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS - ; zephir_hash_move_forward_ex(_1, &_0) + ; zend_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS + ; zend_hash_move_forward_ex(_1, &_0) ) { ZEPHIR_GET_HMKEY(name, _1, _0); ZEPHIR_GET_HVALUE(value, _2); @@ -2048,11 +2047,11 @@ PHP_METHOD(Phalcon_Http_Request, _getBestQuality) { zephir_fetch_params(1, 2, 0, &qualityParts_param, &name_param); zephir_get_arrval(qualityParts, qualityParts_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -2066,8 +2065,8 @@ PHP_METHOD(Phalcon_Http_Request, _getBestQuality) { ZVAL_STRING(selectedName, "", 1); zephir_is_iterable(qualityParts, &_1, &_0, 0, 0, "phalcon/http/request.zep", 1029); for ( - ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS - ; zephir_hash_move_forward_ex(_1, &_0) + ; zend_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS + ; zend_hash_move_forward_ex(_1, &_0) ) { ZEPHIR_GET_HVALUE(accept, _2); if (i == 0) { @@ -2307,8 +2306,8 @@ PHP_METHOD(Phalcon_Http_Request, getDigestAuth) { if (Z_TYPE_P(matches) == IS_ARRAY) { zephir_is_iterable(matches, &_4$$5, &_3$$5, 0, 0, "phalcon/http/request.zep", 1136); for ( - ; zephir_hash_get_current_data_ex(_4$$5, (void**) &_5$$5, &_3$$5) == SUCCESS - ; zephir_hash_move_forward_ex(_4$$5, &_3$$5) + ; zend_hash_get_current_data_ex(_4$$5, (void**) &_5$$5, &_3$$5) == SUCCESS + ; zend_hash_move_forward_ex(_4$$5, &_3$$5) ) { ZEPHIR_GET_HVALUE(match, _5$$5); zephir_array_fetch_long(&_6$$6, match, 3, PH_NOISY | PH_READONLY, "phalcon/http/request.zep", 1134 TSRMLS_CC); @@ -2337,21 +2336,21 @@ PHP_METHOD(Phalcon_Http_Request, _getQualityHeader) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &serverIndex_param, &name_param); - if (unlikely(Z_TYPE_P(serverIndex_param) != IS_STRING && Z_TYPE_P(serverIndex_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(serverIndex_param) != IS_STRING && Z_TYPE_P(serverIndex_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'serverIndex' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(serverIndex_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(serverIndex_param) == IS_STRING)) { zephir_get_strval(serverIndex, serverIndex_param); } else { ZEPHIR_INIT_VAR(serverIndex); ZVAL_EMPTY_STRING(serverIndex); } - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -2373,8 +2372,8 @@ PHP_METHOD(Phalcon_Http_Request, _getQualityHeader) { zephir_check_call_status(); zephir_is_iterable(_4, &_7, &_6, 0, 0, "phalcon/http/request.zep", 1170); for ( - ; zephir_hash_get_current_data_ex(_7, (void**) &_8, &_6) == SUCCESS - ; zephir_hash_move_forward_ex(_7, &_6) + ; zend_hash_get_current_data_ex(_7, (void**) &_8, &_6) == SUCCESS + ; zend_hash_move_forward_ex(_7, &_6) ) { ZEPHIR_GET_HVALUE(part, _8); ZEPHIR_INIT_NVAR(headerParts); @@ -2391,8 +2390,8 @@ PHP_METHOD(Phalcon_Http_Request, _getQualityHeader) { zephir_check_call_status(); zephir_is_iterable(_13$$3, &_15$$3, &_14$$3, 0, 0, "phalcon/http/request.zep", 1167); for ( - ; zephir_hash_get_current_data_ex(_15$$3, (void**) &_16$$3, &_14$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_15$$3, &_14$$3) + ; zend_hash_get_current_data_ex(_15$$3, (void**) &_16$$3, &_14$$3) == SUCCESS + ; zend_hash_move_forward_ex(_15$$3, &_14$$3) ) { ZEPHIR_GET_HVALUE(headerPart, _16$$3); ZEPHIR_SINIT_NVAR(_17$$4); diff --git a/ext/phalcon/http/request/file.zep.c b/ext/phalcon/http/request/file.zep.c index 482e570ccd4..2a8c3704eb0 100644 --- a/ext/phalcon/http/request/file.zep.c +++ b/ext/phalcon/http/request/file.zep.c @@ -266,11 +266,11 @@ PHP_METHOD(Phalcon_Http_Request_File, moveTo) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &destination_param); - if (unlikely(Z_TYPE_P(destination_param) != IS_STRING && Z_TYPE_P(destination_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(destination_param) != IS_STRING && Z_TYPE_P(destination_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'destination' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(destination_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(destination_param) == IS_STRING)) { zephir_get_strval(destination, destination_param); } else { ZEPHIR_INIT_VAR(destination); diff --git a/ext/phalcon/http/response.zep.c b/ext/phalcon/http/response.zep.c index 8d49dcf825c..a1d44293827 100644 --- a/ext/phalcon/http/response.zep.c +++ b/ext/phalcon/http/response.zep.c @@ -17,7 +17,6 @@ #include "kernel/object.h" #include "kernel/operators.h" #include "kernel/exception.h" -#include "kernel/hash.h" #include "kernel/array.h" #include "kernel/concat.h" #include "ext/date/php_date.h" @@ -182,8 +181,8 @@ PHP_METHOD(Phalcon_Http_Response, setStatusCode) { ZEPHIR_INIT_VAR(_0$$3); zephir_is_iterable(currentHeadersRaw, &_2$$3, &_1$$3, 0, 0, "phalcon/http/response.zep", 132); for ( - ; zephir_hash_get_current_data_ex(_2$$3, (void**) &_3$$3, &_1$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_2$$3, &_1$$3) + ; zend_hash_get_current_data_ex(_2$$3, (void**) &_3$$3, &_1$$3) == SUCCESS + ; zend_hash_move_forward_ex(_2$$3, &_1$$3) ) { ZEPHIR_GET_HMKEY(key, _2$$3, _1$$3); ZEPHIR_GET_HVALUE(_0$$3, _3$$3); @@ -561,7 +560,7 @@ PHP_METHOD(Phalcon_Http_Response, setCache) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &minutes_param); - if (unlikely(Z_TYPE_P(minutes_param) != IS_LONG)) { + if (UNEXPECTED(Z_TYPE_P(minutes_param) != IS_LONG)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'minutes' must be a int") TSRMLS_CC); RETURN_MM_NULL(); } diff --git a/ext/phalcon/http/response/cookies.zep.c b/ext/phalcon/http/response/cookies.zep.c index c6e86eb4119..6f1f4374157 100644 --- a/ext/phalcon/http/response/cookies.zep.c +++ b/ext/phalcon/http/response/cookies.zep.c @@ -19,7 +19,6 @@ #include "kernel/fcall.h" #include "kernel/exception.h" #include "ext/spl/spl_exceptions.h" -#include "kernel/hash.h" /** @@ -120,11 +119,11 @@ PHP_METHOD(Phalcon_Http_Response_Cookies, set) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 6, &name_param, &value, &expire_param, &path_param, &secure_param, &domain_param, &httpOnly_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -153,11 +152,11 @@ PHP_METHOD(Phalcon_Http_Response_Cookies, set) { ZEPHIR_INIT_VAR(domain); ZVAL_EMPTY_STRING(domain); } else { - if (unlikely(Z_TYPE_P(domain_param) != IS_STRING && Z_TYPE_P(domain_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(domain_param) != IS_STRING && Z_TYPE_P(domain_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'domain' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(domain_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(domain_param) == IS_STRING)) { zephir_get_strval(domain, domain_param); } else { ZEPHIR_INIT_VAR(domain); @@ -272,11 +271,11 @@ PHP_METHOD(Phalcon_Http_Response_Cookies, get) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -327,11 +326,11 @@ PHP_METHOD(Phalcon_Http_Response_Cookies, has) { zephir_get_global(&_COOKIE, SS("_COOKIE") TSRMLS_CC); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -363,11 +362,11 @@ PHP_METHOD(Phalcon_Http_Response_Cookies, delete) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -405,8 +404,8 @@ PHP_METHOD(Phalcon_Http_Response_Cookies, send) { _1$$3 = zephir_fetch_nproperty_this(this_ptr, SL("_cookies"), PH_NOISY_CC); zephir_is_iterable(_1$$3, &_3$$3, &_2$$3, 0, 0, "phalcon/http/response/cookies.zep", 242); for ( - ; zephir_hash_get_current_data_ex(_3$$3, (void**) &_4$$3, &_2$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_3$$3, &_2$$3) + ; zend_hash_get_current_data_ex(_3$$3, (void**) &_4$$3, &_2$$3) == SUCCESS + ; zend_hash_move_forward_ex(_3$$3, &_2$$3) ) { ZEPHIR_GET_HVALUE(cookie, _4$$3); ZEPHIR_CALL_METHOD(NULL, cookie, "send", NULL, 0); diff --git a/ext/phalcon/http/response/headers.zep.c b/ext/phalcon/http/response/headers.zep.c index 42df7382248..9f7d95e01f8 100644 --- a/ext/phalcon/http/response/headers.zep.c +++ b/ext/phalcon/http/response/headers.zep.c @@ -17,7 +17,6 @@ #include "kernel/memory.h" #include "kernel/array.h" #include "kernel/fcall.h" -#include "kernel/hash.h" #include "kernel/concat.h" #include "kernel/string.h" #include "ext/spl/spl_exceptions.h" @@ -145,8 +144,8 @@ PHP_METHOD(Phalcon_Http_Response_Headers, send) { _1$$3 = zephir_fetch_nproperty_this(this_ptr, SL("_headers"), PH_NOISY_CC); zephir_is_iterable(_1$$3, &_3$$3, &_2$$3, 0, 0, "phalcon/http/response/headers.zep", 94); for ( - ; zephir_hash_get_current_data_ex(_3$$3, (void**) &_4$$3, &_2$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_3$$3, &_2$$3) + ; zend_hash_get_current_data_ex(_3$$3, (void**) &_4$$3, &_2$$3) == SUCCESS + ; zend_hash_move_forward_ex(_3$$3, &_2$$3) ) { ZEPHIR_GET_HMKEY(header, _3$$3, _2$$3); ZEPHIR_GET_HVALUE(value, _4$$3); @@ -238,8 +237,8 @@ PHP_METHOD(Phalcon_Http_Response_Headers, __set_state) { if (zephir_array_isset_string_fetch(&dataHeaders, data, SS("_headers"), 0 TSRMLS_CC)) { zephir_is_iterable(dataHeaders, &_1$$3, &_0$$3, 0, 0, "phalcon/http/response/headers.zep", 126); for ( - ; zephir_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_1$$3, &_0$$3) + ; zend_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS + ; zend_hash_move_forward_ex(_1$$3, &_0$$3) ) { ZEPHIR_GET_HMKEY(key, _1$$3, _0$$3); ZEPHIR_GET_HVALUE(value, _2$$3); diff --git a/ext/phalcon/image/adapter/gd.zep.c b/ext/phalcon/image/adapter/gd.zep.c index 6a56ec0928b..a5e0bc79a7a 100644 --- a/ext/phalcon/image/adapter/gd.zep.c +++ b/ext/phalcon/image/adapter/gd.zep.c @@ -108,11 +108,11 @@ PHP_METHOD(Phalcon_Image_Adapter_Gd, __construct) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &file_param, &width_param, &height_param); - if (unlikely(Z_TYPE_P(file_param) != IS_STRING && Z_TYPE_P(file_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(file_param) != IS_STRING && Z_TYPE_P(file_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'file' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(file_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(file_param) == IS_STRING)) { zephir_get_strval(file, file_param); } else { ZEPHIR_INIT_VAR(file); diff --git a/ext/phalcon/image/adapter/imagick.zep.c b/ext/phalcon/image/adapter/imagick.zep.c index 24a42ff7080..6614030f719 100644 --- a/ext/phalcon/image/adapter/imagick.zep.c +++ b/ext/phalcon/image/adapter/imagick.zep.c @@ -100,11 +100,11 @@ PHP_METHOD(Phalcon_Image_Adapter_Imagick, __construct) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &file_param, &width_param, &height_param); - if (unlikely(Z_TYPE_P(file_param) != IS_STRING && Z_TYPE_P(file_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(file_param) != IS_STRING && Z_TYPE_P(file_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'file' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(file_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(file_param) == IS_STRING)) { zephir_get_strval(file, file_param); } else { ZEPHIR_INIT_VAR(file); @@ -803,10 +803,9 @@ PHP_METHOD(Phalcon_Image_Adapter_Imagick, _reflection) { */ PHP_METHOD(Phalcon_Image_Adapter_Imagick, _watermark) { - zend_class_entry *_0$$3; - zephir_fcall_cache_entry *_8 = NULL; + zephir_fcall_cache_entry *_7 = NULL; int offsetX, offsetY, opacity, ZEPHIR_LAST_CALL_STATUS; - zval *image, *offsetX_param = NULL, *offsetY_param = NULL, *opacity_param = NULL, *watermark = NULL, *ret = NULL, *version = NULL, *method = NULL, *_2 = NULL, *_3 = NULL, *_4, *_1$$3, *_5$$5, _6$$5 = zval_used_for_init, *_7$$5 = NULL, *_9$$5 = NULL, *_10$$5 = NULL, *_11$$5, *_12$$5 = NULL; + zval *image, *offsetX_param = NULL, *offsetY_param = NULL, *opacity_param = NULL, *watermark = NULL, *ret = NULL, *version = NULL, *method = NULL, *_1 = NULL, *_2 = NULL, *_3, *_0$$3, *_4$$5, _5$$5 = zval_used_for_init, *_6$$5 = NULL, *_8$$5 = NULL, *_9$$5 = NULL, *_10$$5, *_11$$5 = NULL; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 4, 0, &image, &offsetX_param, &offsetY_param, &opacity_param); @@ -823,49 +822,48 @@ PHP_METHOD(Phalcon_Image_Adapter_Imagick, _watermark) { zephir_check_call_status(); ZEPHIR_INIT_VAR(method); ZVAL_STRING(method, "setImageOpacity", 1); - if (likely((zephir_method_exists_ex(watermark, SS("getversion") TSRMLS_CC) == SUCCESS))) { - _0$$3 = zend_fetch_class(SL("Imagick"), ZEND_FETCH_CLASS_AUTO TSRMLS_CC); - ZEPHIR_CALL_CE_STATIC(&version, _0$$3, "getversion", NULL, 0); + if (EXPECTED((zephir_method_exists_ex(watermark, SS("getversion") TSRMLS_CC) == SUCCESS))) { + ZEPHIR_CALL_METHOD(&version, watermark, "getversion", NULL, 0); zephir_check_call_status(); - zephir_array_fetch_string(&_1$$3, version, SL("versionNumber"), PH_NOISY | PH_READONLY, "phalcon/image/adapter/imagick.zep", 365 TSRMLS_CC); - if (ZEPHIR_GE_LONG(_1$$3, 0x700)) { + zephir_array_fetch_string(&_0$$3, version, SL("versionNumber"), PH_NOISY | PH_READONLY, "phalcon/image/adapter/imagick.zep", 365 TSRMLS_CC); + if (ZEPHIR_GE_LONG(_0$$3, 0x700)) { ZEPHIR_INIT_NVAR(method); ZVAL_STRING(method, "setImageAlpha", 1); } } - ZEPHIR_CALL_METHOD(&_2, image, "render", NULL, 0); + ZEPHIR_CALL_METHOD(&_1, image, "render", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(NULL, watermark, "readimageblob", NULL, 0, _2); + ZEPHIR_CALL_METHOD(NULL, watermark, "readimageblob", NULL, 0, _1); zephir_check_call_status(); - ZEPHIR_INIT_VAR(_3); - ZVAL_LONG(_3, opacity); - ZEPHIR_CALL_METHOD_ZVAL(NULL, watermark, method, NULL, 0, _3); + ZEPHIR_INIT_VAR(_2); + ZVAL_LONG(_2, opacity); + ZEPHIR_CALL_METHOD_ZVAL(NULL, watermark, method, NULL, 0, _2); zephir_check_call_status(); - _4 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_INIT_NVAR(_3); - ZVAL_LONG(_3, 0); - ZEPHIR_CALL_METHOD(NULL, _4, "setiteratorindex", NULL, 0, _3); + _3 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); + ZEPHIR_INIT_NVAR(_2); + ZVAL_LONG(_2, 0); + ZEPHIR_CALL_METHOD(NULL, _3, "setiteratorindex", NULL, 0, _2); zephir_check_call_status(); while (1) { - _5$$5 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_SINIT_NVAR(_6$$5); - ZVAL_STRING(&_6$$5, "Imagick::COMPOSITE_OVER", 0); - ZEPHIR_CALL_FUNCTION(&_7$$5, "constant", &_8, 196, &_6$$5); + _4$$5 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); + ZEPHIR_SINIT_NVAR(_5$$5); + ZVAL_STRING(&_5$$5, "Imagick::COMPOSITE_OVER", 0); + ZEPHIR_CALL_FUNCTION(&_6$$5, "constant", &_7, 196, &_5$$5); zephir_check_call_status(); + ZEPHIR_INIT_NVAR(_8$$5); + ZVAL_LONG(_8$$5, offsetX); ZEPHIR_INIT_NVAR(_9$$5); - ZVAL_LONG(_9$$5, offsetX); - ZEPHIR_INIT_NVAR(_10$$5); - ZVAL_LONG(_10$$5, offsetY); - ZEPHIR_CALL_METHOD(&ret, _5$$5, "compositeimage", NULL, 0, watermark, _7$$5, _9$$5, _10$$5); + ZVAL_LONG(_9$$5, offsetY); + ZEPHIR_CALL_METHOD(&ret, _4$$5, "compositeimage", NULL, 0, watermark, _6$$5, _8$$5, _9$$5); zephir_check_call_status(); if (!ZEPHIR_IS_TRUE_IDENTICAL(ret)) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_image_exception_ce, "Imagick::compositeImage failed", "phalcon/image/adapter/imagick.zep", 379); return; } - _11$$5 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); - ZEPHIR_CALL_METHOD(&_12$$5, _11$$5, "nextimage", NULL, 0); + _10$$5 = zephir_fetch_nproperty_this(this_ptr, SL("_image"), PH_NOISY_CC); + ZEPHIR_CALL_METHOD(&_11$$5, _10$$5, "nextimage", NULL, 0); zephir_check_call_status(); - if (ZEPHIR_IS_FALSE_IDENTICAL(_12$$5)) { + if (ZEPHIR_IS_FALSE_IDENTICAL(_11$$5)) { break; } } diff --git a/ext/phalcon/kernel.zep.c b/ext/phalcon/kernel.zep.c index c5ba35f0e29..f197ff14019 100644 --- a/ext/phalcon/kernel.zep.c +++ b/ext/phalcon/kernel.zep.c @@ -46,11 +46,11 @@ PHP_METHOD(Phalcon_Kernel, preComputeHashKey) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &key_param); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { ZEPHIR_INIT_VAR(key); diff --git a/ext/phalcon/loader.zep.c b/ext/phalcon/loader.zep.c index 15ac917d8e2..c121e4ceb4f 100644 --- a/ext/phalcon/loader.zep.c +++ b/ext/phalcon/loader.zep.c @@ -17,7 +17,6 @@ #include "ext/spl/spl_exceptions.h" #include "kernel/exception.h" #include "kernel/fcall.h" -#include "kernel/hash.h" #include "kernel/array.h" #include "kernel/operators.h" #include "kernel/require.h" @@ -164,8 +163,8 @@ PHP_METHOD(Phalcon_Loader, registerNamespaces) { if (merge) { zephir_is_iterable(preparedNamespaces, &_1$$3, &_0$$3, 0, 0, "phalcon/loader.zep", 123); for ( - ; zephir_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_1$$3, &_0$$3) + ; zend_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS + ; zend_hash_move_forward_ex(_1$$3, &_0$$3) ) { ZEPHIR_GET_HMKEY(name, _1$$3, _0$$3); ZEPHIR_GET_HVALUE(paths, _2$$3); @@ -205,8 +204,8 @@ PHP_METHOD(Phalcon_Loader, prepareNamespace) { array_init(prepared); zephir_is_iterable(namespace, &_1, &_0, 0, 0, "phalcon/loader.zep", 145); for ( - ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS - ; zephir_hash_move_forward_ex(_1, &_0) + ; zend_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS + ; zend_hash_move_forward_ex(_1, &_0) ) { ZEPHIR_GET_HMKEY(name, _1, _0); ZEPHIR_GET_HVALUE(paths, _2); @@ -455,8 +454,8 @@ PHP_METHOD(Phalcon_Loader, loadFiles) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_files"), PH_NOISY_CC); zephir_is_iterable(_0, &_2, &_1, 0, 0, "phalcon/loader.zep", 288); for ( - ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS - ; zephir_hash_move_forward_ex(_2, &_1) + ; zend_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS + ; zend_hash_move_forward_ex(_2, &_1) ) { ZEPHIR_GET_HVALUE(filePath, _3); ZEPHIR_OBS_NVAR(_4$$3); @@ -508,11 +507,11 @@ PHP_METHOD(Phalcon_Loader, autoLoad) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &className_param); - if (unlikely(Z_TYPE_P(className_param) != IS_STRING && Z_TYPE_P(className_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(className_param) != IS_STRING && Z_TYPE_P(className_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'className' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(className_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(className_param) == IS_STRING)) { zephir_get_strval(className, className_param); } else { ZEPHIR_INIT_VAR(className); @@ -556,8 +555,8 @@ PHP_METHOD(Phalcon_Loader, autoLoad) { zephir_read_property_this(&namespaces, this_ptr, SL("_namespaces"), PH_NOISY_CC); zephir_is_iterable(namespaces, &_3, &_2, 0, 0, "phalcon/loader.zep", 392); for ( - ; zephir_hash_get_current_data_ex(_3, (void**) &_4, &_2) == SUCCESS - ; zephir_hash_move_forward_ex(_3, &_2) + ; zend_hash_get_current_data_ex(_3, (void**) &_4, &_2) == SUCCESS + ; zend_hash_move_forward_ex(_3, &_2) ) { ZEPHIR_GET_HMKEY(nsPrefix, _3, _2); ZEPHIR_GET_HVALUE(directories, _4); @@ -578,8 +577,8 @@ PHP_METHOD(Phalcon_Loader, autoLoad) { ZEPHIR_CPY_WRT(fileName, _7$$6); zephir_is_iterable(directories, &_9$$6, &_8$$6, 0, 0, "phalcon/loader.zep", 387); for ( - ; zephir_hash_get_current_data_ex(_9$$6, (void**) &_10$$6, &_8$$6) == SUCCESS - ; zephir_hash_move_forward_ex(_9$$6, &_8$$6) + ; zend_hash_get_current_data_ex(_9$$6, (void**) &_10$$6, &_8$$6) == SUCCESS + ; zend_hash_move_forward_ex(_9$$6, &_8$$6) ) { ZEPHIR_GET_HVALUE(directory, _10$$6); ZEPHIR_INIT_NVAR(_11$$9); @@ -588,8 +587,8 @@ PHP_METHOD(Phalcon_Loader, autoLoad) { ZEPHIR_CONCAT_VV(fixedDirectory, _11$$9, ds); zephir_is_iterable(extensions, &_13$$9, &_12$$9, 0, 0, "phalcon/loader.zep", 386); for ( - ; zephir_hash_get_current_data_ex(_13$$9, (void**) &_14$$9, &_12$$9) == SUCCESS - ; zephir_hash_move_forward_ex(_13$$9, &_12$$9) + ; zend_hash_get_current_data_ex(_13$$9, (void**) &_14$$9, &_12$$9) == SUCCESS + ; zend_hash_move_forward_ex(_13$$9, &_12$$9) ) { ZEPHIR_GET_HVALUE(extension, _14$$9); ZEPHIR_INIT_NVAR(filePath); @@ -629,8 +628,8 @@ PHP_METHOD(Phalcon_Loader, autoLoad) { zephir_read_property_this(&directories, this_ptr, SL("_directories"), PH_NOISY_CC); zephir_is_iterable(directories, &_23, &_22, 0, 0, "phalcon/loader.zep", 447); for ( - ; zephir_hash_get_current_data_ex(_23, (void**) &_24, &_22) == SUCCESS - ; zephir_hash_move_forward_ex(_23, &_22) + ; zend_hash_get_current_data_ex(_23, (void**) &_24, &_22) == SUCCESS + ; zend_hash_move_forward_ex(_23, &_22) ) { ZEPHIR_GET_HVALUE(directory, _24); ZEPHIR_INIT_NVAR(_25$$14); @@ -639,8 +638,8 @@ PHP_METHOD(Phalcon_Loader, autoLoad) { ZEPHIR_CONCAT_VV(fixedDirectory, _25$$14, ds); zephir_is_iterable(extensions, &_27$$14, &_26$$14, 0, 0, "phalcon/loader.zep", 442); for ( - ; zephir_hash_get_current_data_ex(_27$$14, (void**) &_28$$14, &_26$$14) == SUCCESS - ; zephir_hash_move_forward_ex(_27$$14, &_26$$14) + ; zend_hash_get_current_data_ex(_27$$14, (void**) &_28$$14, &_26$$14) == SUCCESS + ; zend_hash_move_forward_ex(_27$$14, &_26$$14) ) { ZEPHIR_GET_HVALUE(extension, _28$$14); ZEPHIR_INIT_NVAR(filePath); diff --git a/ext/phalcon/logger/adapter.zep.c b/ext/phalcon/logger/adapter.zep.c index e3b77f9533f..a17efa236c3 100644 --- a/ext/phalcon/logger/adapter.zep.c +++ b/ext/phalcon/logger/adapter.zep.c @@ -16,7 +16,6 @@ #include "kernel/memory.h" #include "kernel/operators.h" #include "kernel/exception.h" -#include "kernel/hash.h" #include "kernel/fcall.h" #include "ext/spl/spl_exceptions.h" #include "kernel/time.h" @@ -155,8 +154,8 @@ PHP_METHOD(Phalcon_Logger_Adapter, commit) { _1 = zephir_fetch_nproperty_this(this_ptr, SL("_queue"), PH_NOISY_CC); zephir_is_iterable(_1, &_3, &_2, 0, 0, "phalcon/logger/adapter.zep", 125); for ( - ; zephir_hash_get_current_data_ex(_3, (void**) &_4, &_2) == SUCCESS - ; zephir_hash_move_forward_ex(_3, &_2) + ; zend_hash_get_current_data_ex(_3, (void**) &_4, &_2) == SUCCESS + ; zend_hash_move_forward_ex(_3, &_2) ) { ZEPHIR_GET_HVALUE(message, _4); ZEPHIR_CALL_METHOD(&_5$$4, message, "getmessage", NULL, 0); @@ -228,11 +227,11 @@ PHP_METHOD(Phalcon_Logger_Adapter, critical) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &message_param, &context_param); - if (unlikely(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'message' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(message_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(message_param) == IS_STRING)) { zephir_get_strval(message, message_param); } else { ZEPHIR_INIT_VAR(message); @@ -267,11 +266,11 @@ PHP_METHOD(Phalcon_Logger_Adapter, emergency) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &message_param, &context_param); - if (unlikely(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'message' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(message_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(message_param) == IS_STRING)) { zephir_get_strval(message, message_param); } else { ZEPHIR_INIT_VAR(message); @@ -306,11 +305,11 @@ PHP_METHOD(Phalcon_Logger_Adapter, debug) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &message_param, &context_param); - if (unlikely(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'message' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(message_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(message_param) == IS_STRING)) { zephir_get_strval(message, message_param); } else { ZEPHIR_INIT_VAR(message); @@ -345,11 +344,11 @@ PHP_METHOD(Phalcon_Logger_Adapter, error) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &message_param, &context_param); - if (unlikely(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'message' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(message_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(message_param) == IS_STRING)) { zephir_get_strval(message, message_param); } else { ZEPHIR_INIT_VAR(message); @@ -384,11 +383,11 @@ PHP_METHOD(Phalcon_Logger_Adapter, info) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &message_param, &context_param); - if (unlikely(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'message' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(message_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(message_param) == IS_STRING)) { zephir_get_strval(message, message_param); } else { ZEPHIR_INIT_VAR(message); @@ -423,11 +422,11 @@ PHP_METHOD(Phalcon_Logger_Adapter, notice) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &message_param, &context_param); - if (unlikely(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'message' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(message_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(message_param) == IS_STRING)) { zephir_get_strval(message, message_param); } else { ZEPHIR_INIT_VAR(message); @@ -462,11 +461,11 @@ PHP_METHOD(Phalcon_Logger_Adapter, warning) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &message_param, &context_param); - if (unlikely(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'message' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(message_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(message_param) == IS_STRING)) { zephir_get_strval(message, message_param); } else { ZEPHIR_INIT_VAR(message); @@ -501,11 +500,11 @@ PHP_METHOD(Phalcon_Logger_Adapter, alert) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &message_param, &context_param); - if (unlikely(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'message' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(message_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(message_param) == IS_STRING)) { zephir_get_strval(message, message_param); } else { ZEPHIR_INIT_VAR(message); diff --git a/ext/phalcon/logger/adapter/file.zep.c b/ext/phalcon/logger/adapter/file.zep.c index 87d148737ca..691d13b414a 100644 --- a/ext/phalcon/logger/adapter/file.zep.c +++ b/ext/phalcon/logger/adapter/file.zep.c @@ -90,11 +90,11 @@ PHP_METHOD(Phalcon_Logger_Adapter_File, __construct) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &name_param, &options); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); diff --git a/ext/phalcon/logger/adapter/firephp.zep.c b/ext/phalcon/logger/adapter/firephp.zep.c index 5baa5ac5aeb..4310cd1af1a 100644 --- a/ext/phalcon/logger/adapter/firephp.zep.c +++ b/ext/phalcon/logger/adapter/firephp.zep.c @@ -16,7 +16,6 @@ #include "kernel/object.h" #include "kernel/fcall.h" #include "kernel/operators.h" -#include "kernel/hash.h" #include "kernel/concat.h" #include "kernel/array.h" @@ -131,8 +130,8 @@ PHP_METHOD(Phalcon_Logger_Adapter_Firephp, logInternal) { zephir_read_property_this(&index, this_ptr, SL("_index"), PH_NOISY_CC); zephir_is_iterable(chunk, &_8, &_7, 0, 0, "phalcon/logger/adapter/firephp.zep", 92); for ( - ; zephir_hash_get_current_data_ex(_8, (void**) &_9, &_7) == SUCCESS - ; zephir_hash_move_forward_ex(_8, &_7) + ; zend_hash_get_current_data_ex(_8, (void**) &_9, &_7) == SUCCESS + ; zend_hash_move_forward_ex(_8, &_7) ) { ZEPHIR_GET_HMKEY(key, _8, _7); ZEPHIR_GET_HVALUE(chString, _9); diff --git a/ext/phalcon/logger/adapter/stream.zep.c b/ext/phalcon/logger/adapter/stream.zep.c index 842759acba8..2cb67f45478 100644 --- a/ext/phalcon/logger/adapter/stream.zep.c +++ b/ext/phalcon/logger/adapter/stream.zep.c @@ -70,11 +70,11 @@ PHP_METHOD(Phalcon_Logger_Adapter_Stream, __construct) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &name_param, &options); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); diff --git a/ext/phalcon/logger/formatter.zep.c b/ext/phalcon/logger/formatter.zep.c index 605687d6c78..23df28e942b 100644 --- a/ext/phalcon/logger/formatter.zep.c +++ b/ext/phalcon/logger/formatter.zep.c @@ -14,7 +14,6 @@ #include "kernel/main.h" #include "kernel/operators.h" #include "kernel/memory.h" -#include "kernel/hash.h" #include "kernel/concat.h" #include "kernel/array.h" #include "kernel/fcall.h" @@ -118,8 +117,8 @@ PHP_METHOD(Phalcon_Logger_Formatter, interpolate) { array_init(replace); zephir_is_iterable(context, &_2$$3, &_1$$3, 0, 0, "phalcon/logger/formatter.zep", 89); for ( - ; zephir_hash_get_current_data_ex(_2$$3, (void**) &_3$$3, &_1$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_2$$3, &_1$$3) + ; zend_hash_get_current_data_ex(_2$$3, (void**) &_3$$3, &_1$$3) == SUCCESS + ; zend_hash_move_forward_ex(_2$$3, &_1$$3) ) { ZEPHIR_GET_HMKEY(key, _2$$3, _1$$3); ZEPHIR_GET_HVALUE(value, _3$$3); diff --git a/ext/phalcon/logger/formatter/firephp.zep.c b/ext/phalcon/logger/formatter/firephp.zep.c index daa2412a2ff..926dce6c5ce 100644 --- a/ext/phalcon/logger/formatter/firephp.zep.c +++ b/ext/phalcon/logger/formatter/firephp.zep.c @@ -17,7 +17,6 @@ #include "kernel/object.h" #include "kernel/fcall.h" #include "kernel/array.h" -#include "kernel/hash.h" #include "kernel/string.h" #include "kernel/concat.h" @@ -208,8 +207,8 @@ PHP_METHOD(Phalcon_Logger_Formatter_Firephp, format) { } zephir_is_iterable(backtrace, &_7$$4, &_6$$4, 1, 0, "phalcon/logger/formatter/firephp.zep", 141); for ( - ; zephir_hash_get_current_data_ex(_7$$4, (void**) &_8$$4, &_6$$4) == SUCCESS - ; zephir_hash_move_forward_ex(_7$$4, &_6$$4) + ; zend_hash_get_current_data_ex(_7$$4, (void**) &_8$$4, &_6$$4) == SUCCESS + ; zend_hash_move_forward_ex(_7$$4, &_6$$4) ) { ZEPHIR_GET_HMKEY(key$$4, _7$$4, _6$$4); ZEPHIR_GET_HVALUE(backtraceItem$$4, _8$$4); diff --git a/ext/phalcon/logger/multiple.zep.c b/ext/phalcon/logger/multiple.zep.c index e2c646fb16b..bf603d1329d 100644 --- a/ext/phalcon/logger/multiple.zep.c +++ b/ext/phalcon/logger/multiple.zep.c @@ -14,7 +14,6 @@ #include "kernel/main.h" #include "kernel/object.h" #include "kernel/memory.h" -#include "kernel/hash.h" #include "kernel/fcall.h" #include "kernel/operators.h" #include "ext/spl/spl_exceptions.h" @@ -99,8 +98,8 @@ PHP_METHOD(Phalcon_Logger_Multiple, setFormatter) { if (Z_TYPE_P(loggers) == IS_ARRAY) { zephir_is_iterable(loggers, &_1$$3, &_0$$3, 0, 0, "phalcon/logger/multiple.zep", 61); for ( - ; zephir_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_1$$3, &_0$$3) + ; zend_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS + ; zend_hash_move_forward_ex(_1$$3, &_0$$3) ) { ZEPHIR_GET_HVALUE(logger, _2$$3); ZEPHIR_CALL_METHOD(NULL, logger, "setformatter", NULL, 0, formatter); @@ -133,8 +132,8 @@ PHP_METHOD(Phalcon_Logger_Multiple, setLogLevel) { if (Z_TYPE_P(loggers) == IS_ARRAY) { zephir_is_iterable(loggers, &_1$$3, &_0$$3, 0, 0, "phalcon/logger/multiple.zep", 77); for ( - ; zephir_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_1$$3, &_0$$3) + ; zend_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS + ; zend_hash_move_forward_ex(_1$$3, &_0$$3) ) { ZEPHIR_GET_HVALUE(logger, _2$$3); ZEPHIR_INIT_NVAR(_3$$4); @@ -180,8 +179,8 @@ PHP_METHOD(Phalcon_Logger_Multiple, log) { if (Z_TYPE_P(loggers) == IS_ARRAY) { zephir_is_iterable(loggers, &_1$$3, &_0$$3, 0, 0, "phalcon/logger/multiple.zep", 93); for ( - ; zephir_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_1$$3, &_0$$3) + ; zend_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS + ; zend_hash_move_forward_ex(_1$$3, &_0$$3) ) { ZEPHIR_GET_HVALUE(logger, _2$$3); ZEPHIR_CALL_METHOD(NULL, logger, "log", NULL, 0, type, message, context); @@ -205,11 +204,11 @@ PHP_METHOD(Phalcon_Logger_Multiple, critical) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &message_param, &context_param); - if (unlikely(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'message' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(message_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(message_param) == IS_STRING)) { zephir_get_strval(message, message_param); } else { ZEPHIR_INIT_VAR(message); @@ -244,11 +243,11 @@ PHP_METHOD(Phalcon_Logger_Multiple, emergency) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &message_param, &context_param); - if (unlikely(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'message' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(message_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(message_param) == IS_STRING)) { zephir_get_strval(message, message_param); } else { ZEPHIR_INIT_VAR(message); @@ -283,11 +282,11 @@ PHP_METHOD(Phalcon_Logger_Multiple, debug) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &message_param, &context_param); - if (unlikely(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'message' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(message_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(message_param) == IS_STRING)) { zephir_get_strval(message, message_param); } else { ZEPHIR_INIT_VAR(message); @@ -322,11 +321,11 @@ PHP_METHOD(Phalcon_Logger_Multiple, error) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &message_param, &context_param); - if (unlikely(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'message' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(message_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(message_param) == IS_STRING)) { zephir_get_strval(message, message_param); } else { ZEPHIR_INIT_VAR(message); @@ -361,11 +360,11 @@ PHP_METHOD(Phalcon_Logger_Multiple, info) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &message_param, &context_param); - if (unlikely(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'message' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(message_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(message_param) == IS_STRING)) { zephir_get_strval(message, message_param); } else { ZEPHIR_INIT_VAR(message); @@ -400,11 +399,11 @@ PHP_METHOD(Phalcon_Logger_Multiple, notice) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &message_param, &context_param); - if (unlikely(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'message' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(message_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(message_param) == IS_STRING)) { zephir_get_strval(message, message_param); } else { ZEPHIR_INIT_VAR(message); @@ -439,11 +438,11 @@ PHP_METHOD(Phalcon_Logger_Multiple, warning) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &message_param, &context_param); - if (unlikely(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'message' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(message_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(message_param) == IS_STRING)) { zephir_get_strval(message, message_param); } else { ZEPHIR_INIT_VAR(message); @@ -478,11 +477,11 @@ PHP_METHOD(Phalcon_Logger_Multiple, alert) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &message_param, &context_param); - if (unlikely(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'message' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(message_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(message_param) == IS_STRING)) { zephir_get_strval(message, message_param); } else { ZEPHIR_INIT_VAR(message); diff --git a/ext/phalcon/mvc/collection.zep.c b/ext/phalcon/mvc/collection.zep.c index 7d3a3e17f4d..9fd4f2c7fdd 100644 --- a/ext/phalcon/mvc/collection.zep.c +++ b/ext/phalcon/mvc/collection.zep.c @@ -20,7 +20,6 @@ #include "kernel/array.h" #include "ext/spl/spl_exceptions.h" #include "kernel/string.h" -#include "kernel/hash.h" #include "kernel/concat.h" @@ -321,11 +320,11 @@ PHP_METHOD(Phalcon_Mvc_Collection, setSource) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &source_param); - if (unlikely(Z_TYPE_P(source_param) != IS_STRING && Z_TYPE_P(source_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(source_param) != IS_STRING && Z_TYPE_P(source_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'source' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(source_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(source_param) == IS_STRING)) { zephir_get_strval(source, source_param); } else { ZEPHIR_INIT_VAR(source); @@ -372,11 +371,11 @@ PHP_METHOD(Phalcon_Mvc_Collection, setConnectionService) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &connectionService_param); - if (unlikely(Z_TYPE_P(connectionService_param) != IS_STRING && Z_TYPE_P(connectionService_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(connectionService_param) != IS_STRING && Z_TYPE_P(connectionService_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'connectionService' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(connectionService_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(connectionService_param) == IS_STRING)) { zephir_get_strval(connectionService, connectionService_param); } else { ZEPHIR_INIT_VAR(connectionService); @@ -450,11 +449,11 @@ PHP_METHOD(Phalcon_Mvc_Collection, readAttribute) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &attribute_param); - if (unlikely(Z_TYPE_P(attribute_param) != IS_STRING && Z_TYPE_P(attribute_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(attribute_param) != IS_STRING && Z_TYPE_P(attribute_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'attribute' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(attribute_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(attribute_param) == IS_STRING)) { zephir_get_strval(attribute, attribute_param); } else { ZEPHIR_INIT_VAR(attribute); @@ -521,8 +520,8 @@ PHP_METHOD(Phalcon_Mvc_Collection, cloneResult) { } zephir_is_iterable(document, &_1, &_0, 0, 0, "phalcon/mvc/collection.zep", 332); for ( - ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS - ; zephir_hash_move_forward_ex(_1, &_0) + ; zend_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS + ; zend_hash_move_forward_ex(_1, &_0) ) { ZEPHIR_GET_HMKEY(key, _1, _0); ZEPHIR_GET_HVALUE(value, _2); @@ -661,8 +660,8 @@ PHP_METHOD(Phalcon_Mvc_Collection, _getResultset) { zephir_check_call_status(); zephir_is_iterable(_6, &_8, &_7, 0, 0, "phalcon/mvc/collection.zep", 457); for ( - ; zephir_hash_get_current_data_ex(_8, (void**) &_9, &_7) == SUCCESS - ; zephir_hash_move_forward_ex(_8, &_7) + ; zend_hash_get_current_data_ex(_8, (void**) &_9, &_7) == SUCCESS + ; zend_hash_move_forward_ex(_8, &_7) ) { ZEPHIR_GET_HVALUE(document, _9); ZEPHIR_CALL_STATIC(&_10$$19, "cloneresult", &_11, 0, base, document); @@ -969,8 +968,8 @@ PHP_METHOD(Phalcon_Mvc_Collection, validate) { zephir_check_call_status(); zephir_is_iterable(_1$$4, &_3$$4, &_2$$4, 0, 0, "phalcon/mvc/collection.zep", 698); for ( - ; zephir_hash_get_current_data_ex(_3$$4, (void**) &_4$$4, &_2$$4) == SUCCESS - ; zephir_hash_move_forward_ex(_3$$4, &_2$$4) + ; zend_hash_get_current_data_ex(_3$$4, (void**) &_4$$4, &_2$$4) == SUCCESS + ; zend_hash_move_forward_ex(_3$$4, &_2$$4) ) { ZEPHIR_GET_HVALUE(message, _4$$4); zephir_update_property_array_append(this_ptr, SL("_errorMessages"), message TSRMLS_CC); @@ -1066,11 +1065,11 @@ PHP_METHOD(Phalcon_Mvc_Collection, fireEvent) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &eventName_param); - if (unlikely(Z_TYPE_P(eventName_param) != IS_STRING && Z_TYPE_P(eventName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(eventName_param) != IS_STRING && Z_TYPE_P(eventName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'eventName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(eventName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(eventName_param) == IS_STRING)) { zephir_get_strval(eventName, eventName_param); } else { ZEPHIR_INIT_VAR(eventName); @@ -1101,11 +1100,11 @@ PHP_METHOD(Phalcon_Mvc_Collection, fireEventCancel) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &eventName_param); - if (unlikely(Z_TYPE_P(eventName_param) != IS_STRING && Z_TYPE_P(eventName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(eventName_param) != IS_STRING && Z_TYPE_P(eventName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'eventName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(eventName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(eventName_param) == IS_STRING)) { zephir_get_strval(eventName, eventName_param); } else { ZEPHIR_INIT_VAR(eventName); @@ -2014,11 +2013,11 @@ PHP_METHOD(Phalcon_Mvc_Collection, summatory) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &field_param, &conditions, &finalize); - if (unlikely(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'field' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(field_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(field_param) == IS_STRING)) { zephir_get_strval(field, field_param); } else { ZEPHIR_INIT_VAR(field); @@ -2281,8 +2280,8 @@ PHP_METHOD(Phalcon_Mvc_Collection, toArray) { zephir_check_call_status(); zephir_is_iterable(_0, &_2, &_1, 0, 0, "phalcon/mvc/collection.zep", 1633); for ( - ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS - ; zephir_hash_move_forward_ex(_2, &_1) + ; zend_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS + ; zend_hash_move_forward_ex(_2, &_1) ) { ZEPHIR_GET_HMKEY(key, _2, _1); ZEPHIR_GET_HVALUE(value, _3); @@ -2333,11 +2332,11 @@ PHP_METHOD(Phalcon_Mvc_Collection, unserialize) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &data_param); - if (unlikely(Z_TYPE_P(data_param) != IS_STRING && Z_TYPE_P(data_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(data_param) != IS_STRING && Z_TYPE_P(data_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'data' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(data_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(data_param) == IS_STRING)) { zephir_get_strval(data, data_param); } else { ZEPHIR_INIT_VAR(data); @@ -2367,8 +2366,8 @@ PHP_METHOD(Phalcon_Mvc_Collection, unserialize) { zephir_update_property_this(this_ptr, SL("_modelsManager"), manager TSRMLS_CC); zephir_is_iterable(attributes, &_3$$3, &_2$$3, 0, 0, "phalcon/mvc/collection.zep", 1689); for ( - ; zephir_hash_get_current_data_ex(_3$$3, (void**) &_4$$3, &_2$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_3$$3, &_2$$3) + ; zend_hash_get_current_data_ex(_3$$3, (void**) &_4$$3, &_2$$3) == SUCCESS + ; zend_hash_move_forward_ex(_3$$3, &_2$$3) ) { ZEPHIR_GET_HMKEY(key, _3$$3, _2$$3); ZEPHIR_GET_HVALUE(value, _4$$3); diff --git a/ext/phalcon/mvc/collection/behavior.zep.c b/ext/phalcon/mvc/collection/behavior.zep.c index 5de124a1daf..c1da0c4c2f1 100644 --- a/ext/phalcon/mvc/collection/behavior.zep.c +++ b/ext/phalcon/mvc/collection/behavior.zep.c @@ -67,11 +67,11 @@ PHP_METHOD(Phalcon_Mvc_Collection_Behavior, mustTakeAction) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &eventName_param); - if (unlikely(Z_TYPE_P(eventName_param) != IS_STRING && Z_TYPE_P(eventName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(eventName_param) != IS_STRING && Z_TYPE_P(eventName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'eventName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(eventName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(eventName_param) == IS_STRING)) { zephir_get_strval(eventName, eventName_param); } else { ZEPHIR_INIT_VAR(eventName); @@ -102,11 +102,11 @@ PHP_METHOD(Phalcon_Mvc_Collection_Behavior, getOptions) { ZEPHIR_INIT_VAR(eventName); ZVAL_EMPTY_STRING(eventName); } else { - if (unlikely(Z_TYPE_P(eventName_param) != IS_STRING && Z_TYPE_P(eventName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(eventName_param) != IS_STRING && Z_TYPE_P(eventName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'eventName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(eventName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(eventName_param) == IS_STRING)) { zephir_get_strval(eventName, eventName_param); } else { ZEPHIR_INIT_VAR(eventName); diff --git a/ext/phalcon/mvc/collection/behavior/softdelete.zep.c b/ext/phalcon/mvc/collection/behavior/softdelete.zep.c index 2ef7a8b3a1f..48a6c1e6419 100644 --- a/ext/phalcon/mvc/collection/behavior/softdelete.zep.c +++ b/ext/phalcon/mvc/collection/behavior/softdelete.zep.c @@ -18,7 +18,6 @@ #include "kernel/memory.h" #include "kernel/exception.h" #include "kernel/object.h" -#include "kernel/hash.h" #include "ext/spl/spl_exceptions.h" @@ -51,11 +50,11 @@ PHP_METHOD(Phalcon_Mvc_Collection_Behavior_SoftDelete, notify) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &type_param, &model); - if (unlikely(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'type' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(type_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(type_param) == IS_STRING)) { zephir_get_strval(type, type_param); } else { ZEPHIR_INIT_VAR(type); @@ -96,8 +95,8 @@ PHP_METHOD(Phalcon_Mvc_Collection_Behavior_SoftDelete, notify) { zephir_check_call_status(); zephir_is_iterable(_3$$7, &_5$$7, &_4$$7, 0, 0, "phalcon/mvc/collection/behavior/softdelete.zep", 89); for ( - ; zephir_hash_get_current_data_ex(_5$$7, (void**) &_6$$7, &_4$$7) == SUCCESS - ; zephir_hash_move_forward_ex(_5$$7, &_4$$7) + ; zend_hash_get_current_data_ex(_5$$7, (void**) &_6$$7, &_4$$7) == SUCCESS + ; zend_hash_move_forward_ex(_5$$7, &_4$$7) ) { ZEPHIR_GET_HVALUE(message, _6$$7); ZEPHIR_CALL_METHOD(NULL, model, "appendmessage", &_7, 0, message); diff --git a/ext/phalcon/mvc/collection/behavior/timestampable.zep.c b/ext/phalcon/mvc/collection/behavior/timestampable.zep.c index 843777d91c8..e3f511424b7 100644 --- a/ext/phalcon/mvc/collection/behavior/timestampable.zep.c +++ b/ext/phalcon/mvc/collection/behavior/timestampable.zep.c @@ -20,7 +20,6 @@ #include "Zend/zend_closures.h" #include "kernel/object.h" #include "kernel/time.h" -#include "kernel/hash.h" #include "ext/spl/spl_exceptions.h" @@ -53,11 +52,11 @@ PHP_METHOD(Phalcon_Mvc_Collection_Behavior_Timestampable, notify) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &type_param, &model); - if (unlikely(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'type' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(type_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(type_param) == IS_STRING)) { zephir_get_strval(type, type_param); } else { ZEPHIR_INIT_VAR(type); @@ -103,8 +102,8 @@ PHP_METHOD(Phalcon_Mvc_Collection_Behavior_Timestampable, notify) { if (Z_TYPE_P(field) == IS_ARRAY) { zephir_is_iterable(field, &_2$$12, &_1$$12, 0, 0, "phalcon/mvc/collection/behavior/timestampable.zep", 94); for ( - ; zephir_hash_get_current_data_ex(_2$$12, (void**) &_3$$12, &_1$$12) == SUCCESS - ; zephir_hash_move_forward_ex(_2$$12, &_1$$12) + ; zend_hash_get_current_data_ex(_2$$12, (void**) &_3$$12, &_1$$12) == SUCCESS + ; zend_hash_move_forward_ex(_2$$12, &_1$$12) ) { ZEPHIR_GET_HVALUE(singleField, _3$$12); ZEPHIR_CALL_METHOD(NULL, model, "writeattribute", &_4, 0, singleField, timestamp); diff --git a/ext/phalcon/mvc/collection/document.zep.c b/ext/phalcon/mvc/collection/document.zep.c index 78baf468c29..91ca7b65a79 100644 --- a/ext/phalcon/mvc/collection/document.zep.c +++ b/ext/phalcon/mvc/collection/document.zep.c @@ -51,11 +51,11 @@ PHP_METHOD(Phalcon_Mvc_Collection_Document, offsetExists) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &index_param); - if (unlikely(Z_TYPE_P(index_param) != IS_STRING && Z_TYPE_P(index_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(index_param) != IS_STRING && Z_TYPE_P(index_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'index' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(index_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(index_param) == IS_STRING)) { zephir_get_strval(index, index_param); } else { ZEPHIR_INIT_VAR(index); @@ -78,11 +78,11 @@ PHP_METHOD(Phalcon_Mvc_Collection_Document, offsetGet) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &index_param); - if (unlikely(Z_TYPE_P(index_param) != IS_STRING && Z_TYPE_P(index_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(index_param) != IS_STRING && Z_TYPE_P(index_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'index' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(index_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(index_param) == IS_STRING)) { zephir_get_strval(index, index_param); } else { ZEPHIR_INIT_VAR(index); @@ -110,11 +110,11 @@ PHP_METHOD(Phalcon_Mvc_Collection_Document, offsetSet) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &index_param, &value); - if (unlikely(Z_TYPE_P(index_param) != IS_STRING && Z_TYPE_P(index_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(index_param) != IS_STRING && Z_TYPE_P(index_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'index' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(index_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(index_param) == IS_STRING)) { zephir_get_strval(index, index_param); } else { ZEPHIR_INIT_VAR(index); @@ -190,11 +190,11 @@ PHP_METHOD(Phalcon_Mvc_Collection_Document, writeAttribute) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &attribute_param, &value); - if (unlikely(Z_TYPE_P(attribute_param) != IS_STRING && Z_TYPE_P(attribute_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(attribute_param) != IS_STRING && Z_TYPE_P(attribute_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'attribute' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(attribute_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(attribute_param) == IS_STRING)) { zephir_get_strval(attribute, attribute_param); } else { ZEPHIR_INIT_VAR(attribute); diff --git a/ext/phalcon/mvc/collection/manager.zep.c b/ext/phalcon/mvc/collection/manager.zep.c index e6cad7b9630..478127cdda6 100644 --- a/ext/phalcon/mvc/collection/manager.zep.c +++ b/ext/phalcon/mvc/collection/manager.zep.c @@ -20,7 +20,6 @@ #include "ext/spl/spl_exceptions.h" #include "kernel/exception.h" #include "kernel/operators.h" -#include "kernel/hash.h" #include "kernel/concat.h" @@ -239,11 +238,11 @@ PHP_METHOD(Phalcon_Mvc_Collection_Manager, isInitialized) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &modelName_param); - if (unlikely(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'modelName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(modelName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(modelName_param) == IS_STRING)) { zephir_get_strval(modelName, modelName_param); } else { ZEPHIR_INIT_VAR(modelName); @@ -280,11 +279,11 @@ PHP_METHOD(Phalcon_Mvc_Collection_Manager, setConnectionService) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &model, &connectionService_param); - if (unlikely(Z_TYPE_P(connectionService_param) != IS_STRING && Z_TYPE_P(connectionService_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(connectionService_param) != IS_STRING && Z_TYPE_P(connectionService_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'connectionService' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(connectionService_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(connectionService_param) == IS_STRING)) { zephir_get_strval(connectionService, connectionService_param); } else { ZEPHIR_INIT_VAR(connectionService); @@ -429,11 +428,11 @@ PHP_METHOD(Phalcon_Mvc_Collection_Manager, notifyEvent) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &eventName_param, &model); - if (unlikely(Z_TYPE_P(eventName_param) != IS_STRING && Z_TYPE_P(eventName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(eventName_param) != IS_STRING && Z_TYPE_P(eventName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'eventName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(eventName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(eventName_param) == IS_STRING)) { zephir_get_strval(eventName, eventName_param); } else { ZEPHIR_INIT_VAR(eventName); @@ -452,8 +451,8 @@ PHP_METHOD(Phalcon_Mvc_Collection_Manager, notifyEvent) { if (zephir_array_isset_fetch(&modelsBehaviors, behaviors, _0$$3, 0 TSRMLS_CC)) { zephir_is_iterable(modelsBehaviors, &_2$$4, &_1$$4, 0, 0, "phalcon/mvc/collection/manager.zep", 289); for ( - ; zephir_hash_get_current_data_ex(_2$$4, (void**) &_3$$4, &_1$$4) == SUCCESS - ; zephir_hash_move_forward_ex(_2$$4, &_1$$4) + ; zend_hash_get_current_data_ex(_2$$4, (void**) &_3$$4, &_1$$4) == SUCCESS + ; zend_hash_move_forward_ex(_2$$4, &_1$$4) ) { ZEPHIR_GET_HVALUE(behavior, _3$$4); ZEPHIR_CALL_METHOD(&status, behavior, "notify", NULL, 0, eventName, model); @@ -510,11 +509,11 @@ PHP_METHOD(Phalcon_Mvc_Collection_Manager, missingMethod) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &model, &eventName_param, &data); - if (unlikely(Z_TYPE_P(eventName_param) != IS_STRING && Z_TYPE_P(eventName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(eventName_param) != IS_STRING && Z_TYPE_P(eventName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'eventName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(eventName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(eventName_param) == IS_STRING)) { zephir_get_strval(eventName, eventName_param); } else { ZEPHIR_INIT_VAR(eventName); @@ -531,8 +530,8 @@ PHP_METHOD(Phalcon_Mvc_Collection_Manager, missingMethod) { if (zephir_array_isset_fetch(&modelsBehaviors, behaviors, _0$$3, 0 TSRMLS_CC)) { zephir_is_iterable(modelsBehaviors, &_2$$4, &_1$$4, 0, 0, "phalcon/mvc/collection/manager.zep", 345); for ( - ; zephir_hash_get_current_data_ex(_2$$4, (void**) &_3$$4, &_1$$4) == SUCCESS - ; zephir_hash_move_forward_ex(_2$$4, &_1$$4) + ; zend_hash_get_current_data_ex(_2$$4, (void**) &_3$$4, &_1$$4) == SUCCESS + ; zend_hash_move_forward_ex(_2$$4, &_1$$4) ) { ZEPHIR_GET_HVALUE(behavior, _3$$4); ZEPHIR_CALL_METHOD(&result, behavior, "missingmethod", NULL, 0, model, eventName, data); diff --git a/ext/phalcon/mvc/dispatcher.zep.c b/ext/phalcon/mvc/dispatcher.zep.c index 535cb2e47fb..fdc561e59c1 100644 --- a/ext/phalcon/mvc/dispatcher.zep.c +++ b/ext/phalcon/mvc/dispatcher.zep.c @@ -67,11 +67,11 @@ PHP_METHOD(Phalcon_Mvc_Dispatcher, setControllerSuffix) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &controllerSuffix_param); - if (unlikely(Z_TYPE_P(controllerSuffix_param) != IS_STRING && Z_TYPE_P(controllerSuffix_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(controllerSuffix_param) != IS_STRING && Z_TYPE_P(controllerSuffix_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'controllerSuffix' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(controllerSuffix_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(controllerSuffix_param) == IS_STRING)) { zephir_get_strval(controllerSuffix, controllerSuffix_param); } else { ZEPHIR_INIT_VAR(controllerSuffix); @@ -95,11 +95,11 @@ PHP_METHOD(Phalcon_Mvc_Dispatcher, setDefaultController) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &controllerName_param); - if (unlikely(Z_TYPE_P(controllerName_param) != IS_STRING && Z_TYPE_P(controllerName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(controllerName_param) != IS_STRING && Z_TYPE_P(controllerName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'controllerName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(controllerName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(controllerName_param) == IS_STRING)) { zephir_get_strval(controllerName, controllerName_param); } else { ZEPHIR_INIT_VAR(controllerName); @@ -123,11 +123,11 @@ PHP_METHOD(Phalcon_Mvc_Dispatcher, setControllerName) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &controllerName_param); - if (unlikely(Z_TYPE_P(controllerName_param) != IS_STRING && Z_TYPE_P(controllerName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(controllerName_param) != IS_STRING && Z_TYPE_P(controllerName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'controllerName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(controllerName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(controllerName_param) == IS_STRING)) { zephir_get_strval(controllerName, controllerName_param); } else { ZEPHIR_INIT_VAR(controllerName); @@ -196,11 +196,11 @@ PHP_METHOD(Phalcon_Mvc_Dispatcher, _throwDispatchException) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &message_param, &exceptionCode_param); - if (unlikely(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'message' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(message_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(message_param) == IS_STRING)) { zephir_get_strval(message, message_param); } else { ZEPHIR_INIT_VAR(message); diff --git a/ext/phalcon/mvc/micro.zep.c b/ext/phalcon/mvc/micro.zep.c index a18c5d2eae3..0ccd127a1b8 100644 --- a/ext/phalcon/mvc/micro.zep.c +++ b/ext/phalcon/mvc/micro.zep.c @@ -18,7 +18,6 @@ #include "kernel/operators.h" #include "ext/spl/spl_exceptions.h" #include "kernel/exception.h" -#include "kernel/hash.h" #include "kernel/array.h" #include "kernel/concat.h" #include "Zend/zend_closures.h" @@ -153,11 +152,11 @@ PHP_METHOD(Phalcon_Mvc_Micro, map) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &routePattern_param, &handler); - if (unlikely(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'routePattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(routePattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(routePattern_param) == IS_STRING)) { zephir_get_strval(routePattern, routePattern_param); } else { ZEPHIR_INIT_VAR(routePattern); @@ -192,11 +191,11 @@ PHP_METHOD(Phalcon_Mvc_Micro, get) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &routePattern_param, &handler); - if (unlikely(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'routePattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(routePattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(routePattern_param) == IS_STRING)) { zephir_get_strval(routePattern, routePattern_param); } else { ZEPHIR_INIT_VAR(routePattern); @@ -231,11 +230,11 @@ PHP_METHOD(Phalcon_Mvc_Micro, post) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &routePattern_param, &handler); - if (unlikely(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'routePattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(routePattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(routePattern_param) == IS_STRING)) { zephir_get_strval(routePattern, routePattern_param); } else { ZEPHIR_INIT_VAR(routePattern); @@ -270,11 +269,11 @@ PHP_METHOD(Phalcon_Mvc_Micro, put) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &routePattern_param, &handler); - if (unlikely(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'routePattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(routePattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(routePattern_param) == IS_STRING)) { zephir_get_strval(routePattern, routePattern_param); } else { ZEPHIR_INIT_VAR(routePattern); @@ -309,11 +308,11 @@ PHP_METHOD(Phalcon_Mvc_Micro, patch) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &routePattern_param, &handler); - if (unlikely(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'routePattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(routePattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(routePattern_param) == IS_STRING)) { zephir_get_strval(routePattern, routePattern_param); } else { ZEPHIR_INIT_VAR(routePattern); @@ -348,11 +347,11 @@ PHP_METHOD(Phalcon_Mvc_Micro, head) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &routePattern_param, &handler); - if (unlikely(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'routePattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(routePattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(routePattern_param) == IS_STRING)) { zephir_get_strval(routePattern, routePattern_param); } else { ZEPHIR_INIT_VAR(routePattern); @@ -387,11 +386,11 @@ PHP_METHOD(Phalcon_Mvc_Micro, delete) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &routePattern_param, &handler); - if (unlikely(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'routePattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(routePattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(routePattern_param) == IS_STRING)) { zephir_get_strval(routePattern, routePattern_param); } else { ZEPHIR_INIT_VAR(routePattern); @@ -426,11 +425,11 @@ PHP_METHOD(Phalcon_Mvc_Micro, options) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &routePattern_param, &handler); - if (unlikely(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'routePattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(routePattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(routePattern_param) == IS_STRING)) { zephir_get_strval(routePattern, routePattern_param); } else { ZEPHIR_INIT_VAR(routePattern); @@ -493,8 +492,8 @@ PHP_METHOD(Phalcon_Mvc_Micro, mount) { zephir_check_call_status(); zephir_is_iterable(handlers, &_2$$5, &_1$$5, 0, 0, "phalcon/mvc/micro.zep", 444); for ( - ; zephir_hash_get_current_data_ex(_2$$5, (void**) &_3$$5, &_1$$5) == SUCCESS - ; zephir_hash_move_forward_ex(_2$$5, &_1$$5) + ; zend_hash_get_current_data_ex(_2$$5, (void**) &_3$$5, &_1$$5) == SUCCESS + ; zend_hash_move_forward_ex(_2$$5, &_1$$5) ) { ZEPHIR_GET_HVALUE(handler, _3$$5); if (Z_TYPE_P(handler) != IS_ARRAY) { @@ -633,11 +632,11 @@ PHP_METHOD(Phalcon_Mvc_Micro, setService) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 1, &serviceName_param, &definition, &shared_param); - if (unlikely(Z_TYPE_P(serviceName_param) != IS_STRING && Z_TYPE_P(serviceName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(serviceName_param) != IS_STRING && Z_TYPE_P(serviceName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'serviceName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(serviceName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(serviceName_param) == IS_STRING)) { zephir_get_strval(serviceName, serviceName_param); } else { ZEPHIR_INIT_VAR(serviceName); @@ -683,11 +682,11 @@ PHP_METHOD(Phalcon_Mvc_Micro, hasService) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &serviceName_param); - if (unlikely(Z_TYPE_P(serviceName_param) != IS_STRING && Z_TYPE_P(serviceName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(serviceName_param) != IS_STRING && Z_TYPE_P(serviceName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'serviceName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(serviceName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(serviceName_param) == IS_STRING)) { zephir_get_strval(serviceName, serviceName_param); } else { ZEPHIR_INIT_VAR(serviceName); @@ -725,11 +724,11 @@ PHP_METHOD(Phalcon_Mvc_Micro, getService) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &serviceName_param); - if (unlikely(Z_TYPE_P(serviceName_param) != IS_STRING && Z_TYPE_P(serviceName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(serviceName_param) != IS_STRING && Z_TYPE_P(serviceName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'serviceName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(serviceName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(serviceName_param) == IS_STRING)) { zephir_get_strval(serviceName, serviceName_param); } else { ZEPHIR_INIT_VAR(serviceName); @@ -791,13 +790,13 @@ PHP_METHOD(Phalcon_Mvc_Micro, getSharedService) { */ PHP_METHOD(Phalcon_Mvc_Micro, handle) { - zval *_58$$59; + zval *_59$$59; zend_class_entry *_20$$20; HashTable *_11$$12, *_30$$30, *_40$$38, *_51$$49; HashPosition _10$$12, _29$$30, _39$$38, _50$$49; zend_bool _18$$7, _26$$7, _23$$24, _32$$31; int ZEPHIR_LAST_CALL_STATUS; - zval *uri = NULL, *dependencyInjector = NULL, *eventsManager = NULL, *status = NULL, *router = NULL, *matchedRoute = NULL, *handler = NULL, *beforeHandlers = NULL, *params = NULL, *returnedValue = NULL, *e = NULL, *errorHandler = NULL, *afterHandlers = NULL, *notFoundHandler = NULL, *finishHandlers = NULL, *finish = NULL, *before = NULL, *after = NULL, *response = NULL, *modelBinder = NULL, *bindCacheKey = NULL, *routeName = NULL, *realHandler = NULL, *methodName = NULL, *lazyReturned = NULL, *afterBindingHandlers = NULL, *afterBinding = NULL, *_0$$5 = NULL, *_1$$5, *_2$$4 = NULL, *_3$$4, *_4$$7, *_5$$7 = NULL, *_6$$8, *_7$$8, *_8$$9 = NULL, *_9$$9, **_12$$12, *_13$$15, *_14$$17 = NULL, *_15$$17 = NULL, *_16$$13 = NULL, *_17$$13, *_19$$20 = NULL, *_21$$23 = NULL, *_22$$21 = NULL, *_24$$25, *_25$$25 = NULL, *_27$$28 = NULL, *_28$$28, **_31$$30, *_36$$31 = NULL, *_37$$31, *_33$$32, *_34$$34 = NULL, *_35$$34 = NULL, *_38$$37, **_41$$38, *_42$$41, *_43$$43 = NULL, *_44$$43 = NULL, *_45$$45 = NULL, *_46$$45, *_47$$47, *_48$$47, *_49$$48, **_52$$49, *_53$$52, *_54$$54 = NULL, *_55$$54 = NULL, *_56$$50, *_57$$58, *_59$$67 = NULL, *_60$$67; + zval *uri = NULL, *dependencyInjector = NULL, *eventsManager = NULL, *status = NULL, *router = NULL, *matchedRoute = NULL, *handler = NULL, *beforeHandlers = NULL, *params = NULL, *returnedValue = NULL, *e = NULL, *errorHandler = NULL, *afterHandlers = NULL, *notFoundHandler = NULL, *finishHandlers = NULL, *finish = NULL, *before = NULL, *after = NULL, *response = NULL, *modelBinder = NULL, *bindCacheKey = NULL, *routeName = NULL, *realHandler = NULL, *methodName = NULL, *lazyReturned = NULL, *afterBindingHandlers = NULL, *afterBinding = NULL, *_57, *_0$$5 = NULL, *_1$$5, *_2$$4 = NULL, *_3$$4, *_4$$7, *_5$$7 = NULL, *_6$$8, *_7$$8, *_8$$9 = NULL, *_9$$9, **_12$$12, *_13$$15, *_14$$17 = NULL, *_15$$17 = NULL, *_16$$13 = NULL, *_17$$13, *_19$$20 = NULL, *_21$$23 = NULL, *_22$$21 = NULL, *_24$$25, *_25$$25 = NULL, *_27$$28 = NULL, *_28$$28, **_31$$30, *_36$$31 = NULL, *_37$$31, *_33$$32, *_34$$34 = NULL, *_35$$34 = NULL, *_38$$37, **_41$$38, *_42$$41, *_43$$43 = NULL, *_44$$43 = NULL, *_45$$45 = NULL, *_46$$45, *_47$$47, *_48$$47, *_49$$48, **_52$$49, *_53$$52, *_54$$54 = NULL, *_55$$54 = NULL, *_56$$50, *_58$$58, *_60$$67 = NULL, *_61$$67; ZEPHIR_MM_GROW(); zephir_fetch_params(1, 0, 1, &uri); @@ -885,8 +884,8 @@ PHP_METHOD(Phalcon_Mvc_Micro, handle) { } zephir_is_iterable(beforeHandlers, &_11$$12, &_10$$12, 0, 0, "phalcon/mvc/micro.zep", 696); for ( - ; zephir_hash_get_current_data_ex(_11$$12, (void**) &_12$$12, &_10$$12) == SUCCESS - ; zephir_hash_move_forward_ex(_11$$12, &_10$$12) + ; zend_hash_get_current_data_ex(_11$$12, (void**) &_12$$12, &_10$$12) == SUCCESS + ; zend_hash_move_forward_ex(_11$$12, &_10$$12) ) { ZEPHIR_GET_HVALUE(before, _12$$12); if (Z_TYPE_P(before) == IS_OBJECT) { @@ -1007,8 +1006,8 @@ PHP_METHOD(Phalcon_Mvc_Micro, handle) { } zephir_is_iterable(afterBindingHandlers, &_30$$30, &_29$$30, 0, 0, "phalcon/mvc/micro.zep", 801); for ( - ; zephir_hash_get_current_data_ex(_30$$30, (void**) &_31$$30, &_29$$30) == SUCCESS - ; zephir_hash_move_forward_ex(_30$$30, &_29$$30) + ; zend_hash_get_current_data_ex(_30$$30, (void**) &_31$$30, &_29$$30) == SUCCESS + ; zend_hash_move_forward_ex(_30$$30, &_29$$30) ) { ZEPHIR_GET_HVALUE(afterBinding, _31$$30); _32$$31 = Z_TYPE_P(afterBinding) == IS_OBJECT; @@ -1066,8 +1065,8 @@ PHP_METHOD(Phalcon_Mvc_Micro, handle) { } zephir_is_iterable(afterHandlers, &_40$$38, &_39$$38, 0, 0, "phalcon/mvc/micro.zep", 850); for ( - ; zephir_hash_get_current_data_ex(_40$$38, (void**) &_41$$38, &_39$$38) == SUCCESS - ; zephir_hash_move_forward_ex(_40$$38, &_39$$38) + ; zend_hash_get_current_data_ex(_40$$38, (void**) &_41$$38, &_39$$38) == SUCCESS + ; zend_hash_move_forward_ex(_40$$38, &_39$$38) ) { ZEPHIR_GET_HVALUE(after, _41$$38); if (Z_TYPE_P(after) == IS_OBJECT) { @@ -1148,8 +1147,8 @@ PHP_METHOD(Phalcon_Mvc_Micro, handle) { ZVAL_NULL(params); zephir_is_iterable(finishHandlers, &_51$$49, &_50$$49, 0, 0, "phalcon/mvc/micro.zep", 940); for ( - ; zephir_hash_get_current_data_ex(_51$$49, (void**) &_52$$49, &_50$$49) == SUCCESS - ; zephir_hash_move_forward_ex(_51$$49, &_50$$49) + ; zend_hash_get_current_data_ex(_51$$49, (void**) &_52$$49, &_50$$49) == SUCCESS + ; zend_hash_move_forward_ex(_51$$49, &_50$$49) ) { ZEPHIR_GET_HVALUE(finish, _52$$49); if (Z_TYPE_P(finish) == IS_OBJECT) { @@ -1193,16 +1192,18 @@ PHP_METHOD(Phalcon_Mvc_Micro, handle) { try_end_1: if (EG(exception)) { - ZEPHIR_CPY_WRT(e, EG(exception)); - if (zephir_instance_of_ev(e, zend_exception_get_default(TSRMLS_C) TSRMLS_CC)) { + ZEPHIR_INIT_VAR(_57); + ZEPHIR_CPY_WRT(_57, EG(exception)); + if (zephir_instance_of_ev(_57, zend_exception_get_default(TSRMLS_C) TSRMLS_CC)) { zend_clear_exception(TSRMLS_C); + ZEPHIR_CPY_WRT(e, _57); ZEPHIR_OBS_NVAR(eventsManager); zephir_read_property_this(&eventsManager, this_ptr, SL("_eventsManager"), PH_NOISY_CC); if (Z_TYPE_P(eventsManager) == IS_OBJECT) { - ZEPHIR_INIT_VAR(_57$$58); - ZVAL_STRING(_57$$58, "micro:beforeException", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(&returnedValue, eventsManager, "fire", NULL, 0, _57$$58, this_ptr, e); - zephir_check_temp_parameter(_57$$58); + ZEPHIR_INIT_VAR(_58$$58); + ZVAL_STRING(_58$$58, "micro:beforeException", ZEPHIR_TEMP_PARAM_COPY); + ZEPHIR_CALL_METHOD(&returnedValue, eventsManager, "fire", NULL, 0, _58$$58, this_ptr, e); + zephir_check_temp_parameter(_58$$58); zephir_check_call_status(); } ZEPHIR_OBS_VAR(errorHandler); @@ -1212,11 +1213,11 @@ PHP_METHOD(Phalcon_Mvc_Micro, handle) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_micro_exception_ce, "Error handler is not callable", "phalcon/mvc/micro.zep", 959); return; } - ZEPHIR_INIT_VAR(_58$$59); - zephir_create_array(_58$$59, 1, 0 TSRMLS_CC); - zephir_array_fast_append(_58$$59, e); + ZEPHIR_INIT_VAR(_59$$59); + zephir_create_array(_59$$59, 1, 0 TSRMLS_CC); + zephir_array_fast_append(_59$$59, e); ZEPHIR_INIT_NVAR(returnedValue); - ZEPHIR_CALL_USER_FUNC_ARRAY(returnedValue, errorHandler, _58$$59); + ZEPHIR_CALL_USER_FUNC_ARRAY(returnedValue, errorHandler, _59$$59); zephir_check_call_status(); if (Z_TYPE_P(returnedValue) == IS_OBJECT) { if (!(zephir_instance_of_ev(returnedValue, phalcon_http_responseinterface_ce TSRMLS_CC))) { @@ -1241,12 +1242,12 @@ PHP_METHOD(Phalcon_Mvc_Micro, handle) { } } if (Z_TYPE_P(returnedValue) == IS_STRING) { - ZEPHIR_INIT_VAR(_60$$67); - ZVAL_STRING(_60$$67, "response", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(&_59$$67, dependencyInjector, "getshared", NULL, 0, _60$$67); - zephir_check_temp_parameter(_60$$67); + ZEPHIR_INIT_VAR(_61$$67); + ZVAL_STRING(_61$$67, "response", ZEPHIR_TEMP_PARAM_COPY); + ZEPHIR_CALL_METHOD(&_60$$67, dependencyInjector, "getshared", NULL, 0, _61$$67); + zephir_check_temp_parameter(_61$$67); zephir_check_call_status(); - ZEPHIR_CPY_WRT(response, _59$$67); + ZEPHIR_CPY_WRT(response, _60$$67); ZEPHIR_CALL_METHOD(NULL, response, "setcontent", NULL, 0, returnedValue); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, response, "send", NULL, 0); diff --git a/ext/phalcon/mvc/micro/collection.zep.c b/ext/phalcon/mvc/micro/collection.zep.c index 0fb3f0fa847..c109c42ac95 100644 --- a/ext/phalcon/mvc/micro/collection.zep.c +++ b/ext/phalcon/mvc/micro/collection.zep.c @@ -74,11 +74,11 @@ PHP_METHOD(Phalcon_Mvc_Micro_Collection, _addMap) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 4, 0, &method_param, &routePattern, &handler, &name); - if (unlikely(Z_TYPE_P(method_param) != IS_STRING && Z_TYPE_P(method_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(method_param) != IS_STRING && Z_TYPE_P(method_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'method' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(method_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(method_param) == IS_STRING)) { zephir_get_strval(method, method_param); } else { ZEPHIR_INIT_VAR(method); @@ -108,11 +108,11 @@ PHP_METHOD(Phalcon_Mvc_Micro_Collection, setPrefix) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &prefix_param); - if (unlikely(Z_TYPE_P(prefix_param) != IS_STRING && Z_TYPE_P(prefix_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(prefix_param) != IS_STRING && Z_TYPE_P(prefix_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'prefix' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(prefix_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(prefix_param) == IS_STRING)) { zephir_get_strval(prefix, prefix_param); } else { ZEPHIR_INIT_VAR(prefix); @@ -190,7 +190,7 @@ PHP_METHOD(Phalcon_Mvc_Micro_Collection, setLazy) { zephir_fetch_params(0, 1, 0, &lazy_param); - if (unlikely(Z_TYPE_P(lazy_param) != IS_BOOL)) { + if (UNEXPECTED(Z_TYPE_P(lazy_param) != IS_BOOL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'lazy' must be a bool") TSRMLS_CC); RETURN_NULL(); } @@ -247,11 +247,11 @@ PHP_METHOD(Phalcon_Mvc_Micro_Collection, map) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 1, &routePattern_param, &handler, &name); - if (unlikely(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'routePattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(routePattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(routePattern_param) == IS_STRING)) { zephir_get_strval(routePattern, routePattern_param); } else { ZEPHIR_INIT_VAR(routePattern); @@ -287,11 +287,11 @@ PHP_METHOD(Phalcon_Mvc_Micro_Collection, get) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 1, &routePattern_param, &handler, &name); - if (unlikely(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'routePattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(routePattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(routePattern_param) == IS_STRING)) { zephir_get_strval(routePattern, routePattern_param); } else { ZEPHIR_INIT_VAR(routePattern); @@ -328,11 +328,11 @@ PHP_METHOD(Phalcon_Mvc_Micro_Collection, post) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 1, &routePattern_param, &handler, &name); - if (unlikely(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'routePattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(routePattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(routePattern_param) == IS_STRING)) { zephir_get_strval(routePattern, routePattern_param); } else { ZEPHIR_INIT_VAR(routePattern); @@ -369,11 +369,11 @@ PHP_METHOD(Phalcon_Mvc_Micro_Collection, put) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 1, &routePattern_param, &handler, &name); - if (unlikely(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'routePattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(routePattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(routePattern_param) == IS_STRING)) { zephir_get_strval(routePattern, routePattern_param); } else { ZEPHIR_INIT_VAR(routePattern); @@ -410,11 +410,11 @@ PHP_METHOD(Phalcon_Mvc_Micro_Collection, patch) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 1, &routePattern_param, &handler, &name); - if (unlikely(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'routePattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(routePattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(routePattern_param) == IS_STRING)) { zephir_get_strval(routePattern, routePattern_param); } else { ZEPHIR_INIT_VAR(routePattern); @@ -451,11 +451,11 @@ PHP_METHOD(Phalcon_Mvc_Micro_Collection, head) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 1, &routePattern_param, &handler, &name); - if (unlikely(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'routePattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(routePattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(routePattern_param) == IS_STRING)) { zephir_get_strval(routePattern, routePattern_param); } else { ZEPHIR_INIT_VAR(routePattern); @@ -492,11 +492,11 @@ PHP_METHOD(Phalcon_Mvc_Micro_Collection, delete) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 1, &routePattern_param, &handler, &name); - if (unlikely(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'routePattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(routePattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(routePattern_param) == IS_STRING)) { zephir_get_strval(routePattern, routePattern_param); } else { ZEPHIR_INIT_VAR(routePattern); @@ -532,11 +532,11 @@ PHP_METHOD(Phalcon_Mvc_Micro_Collection, options) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 1, &routePattern_param, &handler, &name); - if (unlikely(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(routePattern_param) != IS_STRING && Z_TYPE_P(routePattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'routePattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(routePattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(routePattern_param) == IS_STRING)) { zephir_get_strval(routePattern, routePattern_param); } else { ZEPHIR_INIT_VAR(routePattern); diff --git a/ext/phalcon/mvc/micro/lazyloader.zep.c b/ext/phalcon/mvc/micro/lazyloader.zep.c index 165c0376a0b..b5e31bc1345 100644 --- a/ext/phalcon/mvc/micro/lazyloader.zep.c +++ b/ext/phalcon/mvc/micro/lazyloader.zep.c @@ -60,11 +60,11 @@ PHP_METHOD(Phalcon_Mvc_Micro_LazyLoader, __construct) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &definition_param); - if (unlikely(Z_TYPE_P(definition_param) != IS_STRING && Z_TYPE_P(definition_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(definition_param) != IS_STRING && Z_TYPE_P(definition_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'definition' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(definition_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(definition_param) == IS_STRING)) { zephir_get_strval(definition, definition_param); } else { ZEPHIR_INIT_VAR(definition); @@ -95,11 +95,11 @@ PHP_METHOD(Phalcon_Mvc_Micro_LazyLoader, __call) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &method_param, &arguments); - if (unlikely(Z_TYPE_P(method_param) != IS_STRING && Z_TYPE_P(method_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(method_param) != IS_STRING && Z_TYPE_P(method_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'method' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(method_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(method_param) == IS_STRING)) { zephir_get_strval(method, method_param); } else { ZEPHIR_INIT_VAR(method); @@ -158,11 +158,11 @@ PHP_METHOD(Phalcon_Mvc_Micro_LazyLoader, callMethod) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 1, &method_param, &arguments, &modelBinder); - if (unlikely(Z_TYPE_P(method_param) != IS_STRING && Z_TYPE_P(method_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(method_param) != IS_STRING && Z_TYPE_P(method_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'method' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(method_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(method_param) == IS_STRING)) { zephir_get_strval(method, method_param); } else { ZEPHIR_INIT_VAR(method); diff --git a/ext/phalcon/mvc/model.zep.c b/ext/phalcon/mvc/model.zep.c index dc4d99b5857..2282c349547 100644 --- a/ext/phalcon/mvc/model.zep.c +++ b/ext/phalcon/mvc/model.zep.c @@ -18,7 +18,6 @@ #include "kernel/memory.h" #include "ext/spl/spl_exceptions.h" #include "kernel/operators.h" -#include "kernel/hash.h" #include "kernel/array.h" #include "kernel/concat.h" #include "kernel/string.h" @@ -346,11 +345,11 @@ PHP_METHOD(Phalcon_Mvc_Model, setSource) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &source_param); - if (unlikely(Z_TYPE_P(source_param) != IS_STRING && Z_TYPE_P(source_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(source_param) != IS_STRING && Z_TYPE_P(source_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'source' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(source_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(source_param) == IS_STRING)) { zephir_get_strval(source, source_param); } else { ZEPHIR_INIT_VAR(source); @@ -394,11 +393,11 @@ PHP_METHOD(Phalcon_Mvc_Model, setSchema) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &schema_param); - if (unlikely(Z_TYPE_P(schema_param) != IS_STRING && Z_TYPE_P(schema_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schema_param) != IS_STRING && Z_TYPE_P(schema_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schema' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schema_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schema_param) == IS_STRING)) { zephir_get_strval(schema, schema_param); } else { ZEPHIR_INIT_VAR(schema); @@ -442,11 +441,11 @@ PHP_METHOD(Phalcon_Mvc_Model, setConnectionService) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &connectionService_param); - if (unlikely(Z_TYPE_P(connectionService_param) != IS_STRING && Z_TYPE_P(connectionService_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(connectionService_param) != IS_STRING && Z_TYPE_P(connectionService_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'connectionService' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(connectionService_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(connectionService_param) == IS_STRING)) { zephir_get_strval(connectionService, connectionService_param); } else { ZEPHIR_INIT_VAR(connectionService); @@ -473,11 +472,11 @@ PHP_METHOD(Phalcon_Mvc_Model, setReadConnectionService) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &connectionService_param); - if (unlikely(Z_TYPE_P(connectionService_param) != IS_STRING && Z_TYPE_P(connectionService_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(connectionService_param) != IS_STRING && Z_TYPE_P(connectionService_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'connectionService' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(connectionService_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(connectionService_param) == IS_STRING)) { zephir_get_strval(connectionService, connectionService_param); } else { ZEPHIR_INIT_VAR(connectionService); @@ -504,11 +503,11 @@ PHP_METHOD(Phalcon_Mvc_Model, setWriteConnectionService) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &connectionService_param); - if (unlikely(Z_TYPE_P(connectionService_param) != IS_STRING && Z_TYPE_P(connectionService_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(connectionService_param) != IS_STRING && Z_TYPE_P(connectionService_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'connectionService' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(connectionService_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(connectionService_param) == IS_STRING)) { zephir_get_strval(connectionService, connectionService_param); } else { ZEPHIR_INIT_VAR(connectionService); @@ -700,8 +699,8 @@ PHP_METHOD(Phalcon_Mvc_Model, assign) { array_init(dataMapped); zephir_is_iterable(data, &_1$$3, &_0$$3, 0, 0, "phalcon/mvc/model.zep", 465); for ( - ; zephir_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_1$$3, &_0$$3) + ; zend_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS + ; zend_hash_move_forward_ex(_1$$3, &_0$$3) ) { ZEPHIR_GET_HMKEY(key, _1$$3, _0$$3); ZEPHIR_GET_HVALUE(value, _2$$3); @@ -729,8 +728,8 @@ PHP_METHOD(Phalcon_Mvc_Model, assign) { zephir_check_call_status(); zephir_is_iterable(_3, &_5, &_4, 0, 0, "phalcon/mvc/model.zep", 514); for ( - ; zephir_hash_get_current_data_ex(_5, (void**) &_6, &_4) == SUCCESS - ; zephir_hash_move_forward_ex(_5, &_4) + ; zend_hash_get_current_data_ex(_5, (void**) &_6, &_4) == SUCCESS + ; zend_hash_move_forward_ex(_5, &_4) ) { ZEPHIR_GET_HVALUE(attribute, _6); if (Z_TYPE_P(columnMap) == IS_ARRAY) { @@ -827,8 +826,8 @@ PHP_METHOD(Phalcon_Mvc_Model, cloneResultMap) { zephir_check_call_status(); zephir_is_iterable(data, &_2, &_1, 0, 0, "phalcon/mvc/model.zep", 616); for ( - ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS - ; zephir_hash_move_forward_ex(_2, &_1) + ; zend_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS + ; zend_hash_move_forward_ex(_2, &_1) ) { ZEPHIR_GET_HMKEY(key, _2, _1); ZEPHIR_GET_HVALUE(value, _3); @@ -956,8 +955,8 @@ PHP_METHOD(Phalcon_Mvc_Model, cloneResultMapHydrate) { } zephir_is_iterable(data, &_1, &_0, 0, 0, "phalcon/mvc/model.zep", 701); for ( - ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS - ; zephir_hash_move_forward_ex(_1, &_0) + ; zend_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS + ; zend_hash_move_forward_ex(_1, &_0) ) { ZEPHIR_GET_HMKEY(key, _1, _0); ZEPHIR_GET_HVALUE(value, _2); @@ -1055,8 +1054,8 @@ PHP_METHOD(Phalcon_Mvc_Model, cloneResult) { zephir_check_call_status(); zephir_is_iterable(data, &_2, &_1, 0, 0, "phalcon/mvc/model.zep", 751); for ( - ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS - ; zephir_hash_move_forward_ex(_2, &_1) + ; zend_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS + ; zend_hash_move_forward_ex(_2, &_1) ) { ZEPHIR_GET_HMKEY(key, _2, _1); ZEPHIR_GET_HVALUE(value, _3); @@ -1404,8 +1403,8 @@ PHP_METHOD(Phalcon_Mvc_Model, _exists) { array_init(uniqueTypes); zephir_is_iterable(primaryKeys, &_1$$3, &_0$$3, 0, 0, "phalcon/mvc/model.zep", 1074); for ( - ; zephir_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_1$$3, &_0$$3) + ; zend_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS + ; zend_hash_move_forward_ex(_1$$3, &_0$$3) ) { ZEPHIR_GET_HVALUE(field, _2$$3); if (Z_TYPE_P(columnMap) == IS_ARRAY) { @@ -1538,21 +1537,21 @@ PHP_METHOD(Phalcon_Mvc_Model, _groupResult) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &functionName_param, &alias_param, ¶meters); - if (unlikely(Z_TYPE_P(functionName_param) != IS_STRING && Z_TYPE_P(functionName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(functionName_param) != IS_STRING && Z_TYPE_P(functionName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'functionName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(functionName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(functionName_param) == IS_STRING)) { zephir_get_strval(functionName, functionName_param); } else { ZEPHIR_INIT_VAR(functionName); ZVAL_EMPTY_STRING(functionName); } - if (unlikely(Z_TYPE_P(alias_param) != IS_STRING && Z_TYPE_P(alias_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(alias_param) != IS_STRING && Z_TYPE_P(alias_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'alias' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(alias_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(alias_param) == IS_STRING)) { zephir_get_strval(alias, alias_param); } else { ZEPHIR_INIT_VAR(alias); @@ -1898,11 +1897,11 @@ PHP_METHOD(Phalcon_Mvc_Model, fireEvent) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &eventName_param); - if (unlikely(Z_TYPE_P(eventName_param) != IS_STRING && Z_TYPE_P(eventName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(eventName_param) != IS_STRING && Z_TYPE_P(eventName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'eventName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(eventName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(eventName_param) == IS_STRING)) { zephir_get_strval(eventName, eventName_param); } else { ZEPHIR_INIT_VAR(eventName); @@ -1934,11 +1933,11 @@ PHP_METHOD(Phalcon_Mvc_Model, fireEventCancel) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &eventName_param); - if (unlikely(Z_TYPE_P(eventName_param) != IS_STRING && Z_TYPE_P(eventName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(eventName_param) != IS_STRING && Z_TYPE_P(eventName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'eventName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(eventName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(eventName_param) == IS_STRING)) { zephir_get_strval(eventName, eventName_param); } else { ZEPHIR_INIT_VAR(eventName); @@ -2202,8 +2201,8 @@ PHP_METHOD(Phalcon_Mvc_Model, getMessages) { _1$$3 = zephir_fetch_nproperty_this(this_ptr, SL("_errorMessages"), PH_NOISY_CC); zephir_is_iterable(_1$$3, &_3$$3, &_2$$3, 0, 0, "phalcon/mvc/model.zep", 1594); for ( - ; zephir_hash_get_current_data_ex(_3$$3, (void**) &_4$$3, &_2$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_3$$3, &_2$$3) + ; zend_hash_get_current_data_ex(_3$$3, (void**) &_4$$3, &_2$$3) == SUCCESS + ; zend_hash_move_forward_ex(_3$$3, &_2$$3) ) { ZEPHIR_GET_HVALUE(message, _4$$3); ZEPHIR_CALL_METHOD(&_5$$4, message, "getfield", NULL, 0); @@ -2241,8 +2240,8 @@ PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysRestrict) { error = 0; zephir_is_iterable(belongsTo, &_2, &_1, 0, 0, "phalcon/mvc/model.zep", 1739); for ( - ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS - ; zephir_hash_move_forward_ex(_2, &_1) + ; zend_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS + ; zend_hash_move_forward_ex(_2, &_1) ) { ZEPHIR_GET_HVALUE(relation, _3); validateWithNulls = 0; @@ -2278,8 +2277,8 @@ PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysRestrict) { if (Z_TYPE_P(fields) == IS_ARRAY) { zephir_is_iterable(fields, &_8$$8, &_7$$8, 0, 0, "phalcon/mvc/model.zep", 1679); for ( - ; zephir_hash_get_current_data_ex(_8$$8, (void**) &_9$$8, &_7$$8) == SUCCESS - ; zephir_hash_move_forward_ex(_8$$8, &_7$$8) + ; zend_hash_get_current_data_ex(_8$$8, (void**) &_9$$8, &_7$$8) == SUCCESS + ; zend_hash_move_forward_ex(_8$$8, &_7$$8) ) { ZEPHIR_GET_HMKEY(position, _8$$8, _7$$8); ZEPHIR_GET_HVALUE(field, _9$$8); @@ -2391,8 +2390,8 @@ PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysReverseCascade) { zephir_check_call_status(); zephir_is_iterable(relations, &_2, &_1, 0, 0, "phalcon/mvc/model.zep", 1852); for ( - ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS - ; zephir_hash_move_forward_ex(_2, &_1) + ; zend_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS + ; zend_hash_move_forward_ex(_2, &_1) ) { ZEPHIR_GET_HVALUE(relation, _3); ZEPHIR_CALL_METHOD(&foreignKey, relation, "getforeignkey", NULL, 0); @@ -2426,8 +2425,8 @@ PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysReverseCascade) { if (Z_TYPE_P(fields) == IS_ARRAY) { zephir_is_iterable(fields, &_8$$8, &_7$$8, 0, 0, "phalcon/mvc/model.zep", 1821); for ( - ; zephir_hash_get_current_data_ex(_8$$8, (void**) &_9$$8, &_7$$8) == SUCCESS - ; zephir_hash_move_forward_ex(_8$$8, &_7$$8) + ; zend_hash_get_current_data_ex(_8$$8, (void**) &_9$$8, &_7$$8) == SUCCESS + ; zend_hash_move_forward_ex(_8$$8, &_7$$8) ) { ZEPHIR_GET_HMKEY(position, _8$$8, _7$$8); ZEPHIR_GET_HVALUE(field, _9$$8); @@ -2491,8 +2490,8 @@ PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysReverseRestrict) { error = 0; zephir_is_iterable(relations, &_2, &_1, 0, 0, "phalcon/mvc/model.zep", 1970); for ( - ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS - ; zephir_hash_move_forward_ex(_2, &_1) + ; zend_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS + ; zend_hash_move_forward_ex(_2, &_1) ) { ZEPHIR_GET_HVALUE(relation, _3); ZEPHIR_CALL_METHOD(&foreignKey, relation, "getforeignkey", NULL, 0); @@ -2526,8 +2525,8 @@ PHP_METHOD(Phalcon_Mvc_Model, _checkForeignKeysReverseRestrict) { if (Z_TYPE_P(fields) == IS_ARRAY) { zephir_is_iterable(fields, &_7$$8, &_6$$8, 0, 0, "phalcon/mvc/model.zep", 1932); for ( - ; zephir_hash_get_current_data_ex(_7$$8, (void**) &_8$$8, &_6$$8) == SUCCESS - ; zephir_hash_move_forward_ex(_7$$8, &_6$$8) + ; zend_hash_get_current_data_ex(_7$$8, (void**) &_8$$8, &_6$$8) == SUCCESS + ; zend_hash_move_forward_ex(_7$$8, &_6$$8) ) { ZEPHIR_GET_HMKEY(position, _7$$8, _6$$8); ZEPHIR_GET_HVALUE(field, _8$$8); @@ -2675,8 +2674,8 @@ PHP_METHOD(Phalcon_Mvc_Model, _preSave) { error = 0; zephir_is_iterable(notNull, &_9$$12, &_8$$12, 0, 0, "phalcon/mvc/model.zep", 2136); for ( - ; zephir_hash_get_current_data_ex(_9$$12, (void**) &_10$$12, &_8$$12) == SUCCESS - ; zephir_hash_move_forward_ex(_9$$12, &_8$$12) + ; zend_hash_get_current_data_ex(_9$$12, (void**) &_10$$12, &_8$$12) == SUCCESS + ; zend_hash_move_forward_ex(_9$$12, &_8$$12) ) { ZEPHIR_GET_HVALUE(field, _10$$12); if (!(zephir_array_isset(automaticAttributes, field))) { @@ -2941,8 +2940,8 @@ PHP_METHOD(Phalcon_Mvc_Model, _doLowInsert) { } zephir_is_iterable(attributes, &_2, &_1, 0, 0, "phalcon/mvc/model.zep", 2329); for ( - ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS - ; zephir_hash_move_forward_ex(_2, &_1) + ; zend_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS + ; zend_hash_move_forward_ex(_2, &_1) ) { ZEPHIR_GET_HVALUE(field, _3); if (!(zephir_array_isset(automaticAttributes, field))) { @@ -3175,8 +3174,8 @@ PHP_METHOD(Phalcon_Mvc_Model, _doLowUpdate) { } zephir_is_iterable(nonPrimary, &_3, &_2, 0, 0, "phalcon/mvc/model.zep", 2598); for ( - ; zephir_hash_get_current_data_ex(_3, (void**) &_4, &_2) == SUCCESS - ; zephir_hash_move_forward_ex(_3, &_2) + ; zend_hash_get_current_data_ex(_3, (void**) &_4, &_2) == SUCCESS + ; zend_hash_move_forward_ex(_3, &_2) ) { ZEPHIR_GET_HVALUE(field, _4); if (!(zephir_array_isset(automaticAttributes, field))) { @@ -3301,8 +3300,8 @@ PHP_METHOD(Phalcon_Mvc_Model, _doLowUpdate) { array_init(uniqueParams); zephir_is_iterable(primaryKeys, &_18$$31, &_17$$31, 0, 0, "phalcon/mvc/model.zep", 2642); for ( - ; zephir_hash_get_current_data_ex(_18$$31, (void**) &_19$$31, &_17$$31) == SUCCESS - ; zephir_hash_move_forward_ex(_18$$31, &_17$$31) + ; zend_hash_get_current_data_ex(_18$$31, (void**) &_19$$31, &_17$$31) == SUCCESS + ; zend_hash_move_forward_ex(_18$$31, &_17$$31) ) { ZEPHIR_GET_HVALUE(field, _19$$31); if (Z_TYPE_P(columnMap) == IS_ARRAY) { @@ -3397,8 +3396,8 @@ PHP_METHOD(Phalcon_Mvc_Model, _preSaveRelatedRecords) { ZEPHIR_CPY_WRT(manager, _1); zephir_is_iterable(related, &_3, &_2, 0, 0, "phalcon/mvc/model.zep", 2758); for ( - ; zephir_hash_get_current_data_ex(_3, (void**) &_4, &_2) == SUCCESS - ; zephir_hash_move_forward_ex(_3, &_2) + ; zend_hash_get_current_data_ex(_3, (void**) &_4, &_2) == SUCCESS + ; zend_hash_move_forward_ex(_3, &_2) ) { ZEPHIR_GET_HMKEY(name, _3, _2); ZEPHIR_GET_HVALUE(record, _4); @@ -3446,8 +3445,8 @@ PHP_METHOD(Phalcon_Mvc_Model, _preSaveRelatedRecords) { zephir_check_call_status(); zephir_is_iterable(_12$$8, &_14$$8, &_13$$8, 0, 0, "phalcon/mvc/model.zep", 2745); for ( - ; zephir_hash_get_current_data_ex(_14$$8, (void**) &_15$$8, &_13$$8) == SUCCESS - ; zephir_hash_move_forward_ex(_14$$8, &_13$$8) + ; zend_hash_get_current_data_ex(_14$$8, (void**) &_15$$8, &_13$$8) == SUCCESS + ; zend_hash_move_forward_ex(_14$$8, &_13$$8) ) { ZEPHIR_GET_HVALUE(message, _15$$8); if (Z_TYPE_P(message) == IS_OBJECT) { @@ -3506,8 +3505,8 @@ PHP_METHOD(Phalcon_Mvc_Model, _postSaveRelatedRecords) { ZEPHIR_CPY_WRT(manager, _0); zephir_is_iterable(related, &_2, &_1, 0, 0, "phalcon/mvc/model.zep", 2949); for ( - ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS - ; zephir_hash_move_forward_ex(_2, &_1) + ; zend_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS + ; zend_hash_move_forward_ex(_2, &_1) ) { ZEPHIR_GET_HMKEY(name, _2, _1); ZEPHIR_GET_HVALUE(record, _3); @@ -3594,8 +3593,8 @@ PHP_METHOD(Phalcon_Mvc_Model, _postSaveRelatedRecords) { } zephir_is_iterable(relatedRecords, &_19$$4, &_18$$4, 0, 0, "phalcon/mvc/model.zep", 2935); for ( - ; zephir_hash_get_current_data_ex(_19$$4, (void**) &_20$$4, &_18$$4) == SUCCESS - ; zephir_hash_move_forward_ex(_19$$4, &_18$$4) + ; zend_hash_get_current_data_ex(_19$$4, (void**) &_20$$4, &_18$$4) == SUCCESS + ; zend_hash_move_forward_ex(_19$$4, &_18$$4) ) { ZEPHIR_GET_HVALUE(recordAfter, _20$$4); if (!(isThrough)) { @@ -3609,8 +3608,8 @@ PHP_METHOD(Phalcon_Mvc_Model, _postSaveRelatedRecords) { zephir_check_call_status(); zephir_is_iterable(_22$$14, &_24$$14, &_23$$14, 0, 0, "phalcon/mvc/model.zep", 2877); for ( - ; zephir_hash_get_current_data_ex(_24$$14, (void**) &_25$$14, &_23$$14) == SUCCESS - ; zephir_hash_move_forward_ex(_24$$14, &_23$$14) + ; zend_hash_get_current_data_ex(_24$$14, (void**) &_25$$14, &_23$$14) == SUCCESS + ; zend_hash_move_forward_ex(_24$$14, &_23$$14) ) { ZEPHIR_GET_HVALUE(message, _25$$14); if (Z_TYPE_P(message) == IS_OBJECT) { @@ -3648,8 +3647,8 @@ PHP_METHOD(Phalcon_Mvc_Model, _postSaveRelatedRecords) { zephir_check_call_status(); zephir_is_iterable(_32$$18, &_34$$18, &_33$$18, 0, 0, "phalcon/mvc/model.zep", 2929); for ( - ; zephir_hash_get_current_data_ex(_34$$18, (void**) &_35$$18, &_33$$18) == SUCCESS - ; zephir_hash_move_forward_ex(_34$$18, &_33$$18) + ; zend_hash_get_current_data_ex(_34$$18, (void**) &_35$$18, &_33$$18) == SUCCESS + ; zend_hash_move_forward_ex(_34$$18, &_33$$18) ) { ZEPHIR_GET_HVALUE(message, _35$$18); if (Z_TYPE_P(message) == IS_OBJECT) { @@ -4073,8 +4072,8 @@ PHP_METHOD(Phalcon_Mvc_Model, delete) { } zephir_is_iterable(primaryKeys, &_4, &_3, 0, 0, "phalcon/mvc/model.zep", 3307); for ( - ; zephir_hash_get_current_data_ex(_4, (void**) &_5, &_3) == SUCCESS - ; zephir_hash_move_forward_ex(_4, &_3) + ; zend_hash_get_current_data_ex(_4, (void**) &_5, &_3) == SUCCESS + ; zend_hash_move_forward_ex(_4, &_3) ) { ZEPHIR_GET_HVALUE(primaryKey, _5); ZEPHIR_OBS_NVAR(bindType); @@ -4256,8 +4255,8 @@ PHP_METHOD(Phalcon_Mvc_Model, refresh) { zephir_check_call_status(); zephir_is_iterable(_3, &_5, &_4, 0, 0, "phalcon/mvc/model.zep", 3427); for ( - ; zephir_hash_get_current_data_ex(_5, (void**) &_6, &_4) == SUCCESS - ; zephir_hash_move_forward_ex(_5, &_4) + ; zend_hash_get_current_data_ex(_5, (void**) &_6, &_4) == SUCCESS + ; zend_hash_move_forward_ex(_5, &_4) ) { ZEPHIR_GET_HVALUE(attribute, _6); ZEPHIR_INIT_NVAR(_7$$9); @@ -4333,11 +4332,11 @@ PHP_METHOD(Phalcon_Mvc_Model, readAttribute) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &attribute_param); - if (unlikely(Z_TYPE_P(attribute_param) != IS_STRING && Z_TYPE_P(attribute_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(attribute_param) != IS_STRING && Z_TYPE_P(attribute_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'attribute' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(attribute_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(attribute_param) == IS_STRING)) { zephir_get_strval(attribute, attribute_param); } else { ZEPHIR_INIT_VAR(attribute); @@ -4369,11 +4368,11 @@ PHP_METHOD(Phalcon_Mvc_Model, writeAttribute) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &attribute_param, &value); - if (unlikely(Z_TYPE_P(attribute_param) != IS_STRING && Z_TYPE_P(attribute_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(attribute_param) != IS_STRING && Z_TYPE_P(attribute_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'attribute' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(attribute_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(attribute_param) == IS_STRING)) { zephir_get_strval(attribute, attribute_param); } else { ZEPHIR_INIT_VAR(attribute); @@ -4464,8 +4463,8 @@ PHP_METHOD(Phalcon_Mvc_Model, skipAttributesOnCreate) { array_init(keysAttributes); zephir_is_iterable(attributes, &_1, &_0, 0, 0, "phalcon/mvc/model.zep", 3541); for ( - ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS - ; zephir_hash_move_forward_ex(_1, &_0) + ; zend_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS + ; zend_hash_move_forward_ex(_1, &_0) ) { ZEPHIR_GET_HVALUE(attribute, _2); zephir_array_update_zval(&keysAttributes, attribute, &ZEPHIR_GLOBAL(global_null), PH_COPY | PH_SEPARATE); @@ -4516,8 +4515,8 @@ PHP_METHOD(Phalcon_Mvc_Model, skipAttributesOnUpdate) { array_init(keysAttributes); zephir_is_iterable(attributes, &_1, &_0, 0, 0, "phalcon/mvc/model.zep", 3573); for ( - ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS - ; zephir_hash_move_forward_ex(_1, &_0) + ; zend_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS + ; zend_hash_move_forward_ex(_1, &_0) ) { ZEPHIR_GET_HVALUE(attribute, _2); zephir_array_update_zval(&keysAttributes, attribute, &ZEPHIR_GLOBAL(global_null), PH_COPY | PH_SEPARATE); @@ -4568,8 +4567,8 @@ PHP_METHOD(Phalcon_Mvc_Model, allowEmptyStringValues) { array_init(keysAttributes); zephir_is_iterable(attributes, &_1, &_0, 0, 0, "phalcon/mvc/model.zep", 3605); for ( - ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS - ; zephir_hash_move_forward_ex(_1, &_0) + ; zend_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS + ; zend_hash_move_forward_ex(_1, &_0) ) { ZEPHIR_GET_HVALUE(attribute, _2); zephir_array_update_zval(&keysAttributes, attribute, &ZEPHIR_GLOBAL(global_null), PH_COPY | PH_SEPARATE); @@ -4606,11 +4605,11 @@ PHP_METHOD(Phalcon_Mvc_Model, hasOne) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 1, &fields, &referenceModel_param, &referencedFields, &options); - if (unlikely(Z_TYPE_P(referenceModel_param) != IS_STRING && Z_TYPE_P(referenceModel_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(referenceModel_param) != IS_STRING && Z_TYPE_P(referenceModel_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'referenceModel' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(referenceModel_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(referenceModel_param) == IS_STRING)) { zephir_get_strval(referenceModel, referenceModel_param); } else { ZEPHIR_INIT_VAR(referenceModel); @@ -4652,11 +4651,11 @@ PHP_METHOD(Phalcon_Mvc_Model, belongsTo) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 1, &fields, &referenceModel_param, &referencedFields, &options); - if (unlikely(Z_TYPE_P(referenceModel_param) != IS_STRING && Z_TYPE_P(referenceModel_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(referenceModel_param) != IS_STRING && Z_TYPE_P(referenceModel_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'referenceModel' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(referenceModel_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(referenceModel_param) == IS_STRING)) { zephir_get_strval(referenceModel, referenceModel_param); } else { ZEPHIR_INIT_VAR(referenceModel); @@ -4698,11 +4697,11 @@ PHP_METHOD(Phalcon_Mvc_Model, hasMany) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 1, &fields, &referenceModel_param, &referencedFields, &options); - if (unlikely(Z_TYPE_P(referenceModel_param) != IS_STRING && Z_TYPE_P(referenceModel_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(referenceModel_param) != IS_STRING && Z_TYPE_P(referenceModel_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'referenceModel' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(referenceModel_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(referenceModel_param) == IS_STRING)) { zephir_get_strval(referenceModel, referenceModel_param); } else { ZEPHIR_INIT_VAR(referenceModel); @@ -4761,21 +4760,21 @@ PHP_METHOD(Phalcon_Mvc_Model, hasManyToMany) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 6, 1, &fields, &intermediateModel_param, &intermediateFields, &intermediateReferencedFields, &referenceModel_param, &referencedFields, &options); - if (unlikely(Z_TYPE_P(intermediateModel_param) != IS_STRING && Z_TYPE_P(intermediateModel_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(intermediateModel_param) != IS_STRING && Z_TYPE_P(intermediateModel_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'intermediateModel' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(intermediateModel_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(intermediateModel_param) == IS_STRING)) { zephir_get_strval(intermediateModel, intermediateModel_param); } else { ZEPHIR_INIT_VAR(intermediateModel); ZVAL_EMPTY_STRING(intermediateModel); } - if (unlikely(Z_TYPE_P(referenceModel_param) != IS_STRING && Z_TYPE_P(referenceModel_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(referenceModel_param) != IS_STRING && Z_TYPE_P(referenceModel_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'referenceModel' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(referenceModel_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(referenceModel_param) == IS_STRING)) { zephir_get_strval(referenceModel, referenceModel_param); } else { ZEPHIR_INIT_VAR(referenceModel); @@ -4909,8 +4908,8 @@ PHP_METHOD(Phalcon_Mvc_Model, setSnapshotData) { array_init(snapshot); zephir_is_iterable(data, &_1$$3, &_0$$3, 0, 0, "phalcon/mvc/model.zep", 3830); for ( - ; zephir_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_1$$3, &_0$$3) + ; zend_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS + ; zend_hash_move_forward_ex(_1$$3, &_0$$3) ) { ZEPHIR_GET_HMKEY(key, _1$$3, _0$$3); ZEPHIR_GET_HVALUE(value, _2$$3); @@ -5061,8 +5060,8 @@ PHP_METHOD(Phalcon_Mvc_Model, getChangedFields) { ZEPHIR_INIT_VAR(_1); zephir_is_iterable(allAttributes, &_3, &_2, 0, 0, "phalcon/mvc/model.zep", 3958); for ( - ; zephir_hash_get_current_data_ex(_3, (void**) &_4, &_2) == SUCCESS - ; zephir_hash_move_forward_ex(_3, &_2) + ; zend_hash_get_current_data_ex(_3, (void**) &_4, &_2) == SUCCESS + ; zend_hash_move_forward_ex(_3, &_2) ) { ZEPHIR_GET_HMKEY(name, _3, _2); ZEPHIR_GET_HVALUE(_1, _4); @@ -5192,21 +5191,21 @@ PHP_METHOD(Phalcon_Mvc_Model, _getRelatedRecords) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &modelName_param, &method_param, &arguments); - if (unlikely(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'modelName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(modelName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(modelName_param) == IS_STRING)) { zephir_get_strval(modelName, modelName_param); } else { ZEPHIR_INIT_VAR(modelName); ZVAL_EMPTY_STRING(modelName); } - if (unlikely(Z_TYPE_P(method_param) != IS_STRING && Z_TYPE_P(method_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(method_param) != IS_STRING && Z_TYPE_P(method_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'method' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(method_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(method_param) == IS_STRING)) { zephir_get_strval(method, method_param); } else { ZEPHIR_INIT_VAR(method); @@ -5503,8 +5502,8 @@ PHP_METHOD(Phalcon_Mvc_Model, __set) { array_init(related); zephir_is_iterable(value, &_3$$6, &_2$$6, 0, 0, "phalcon/mvc/model.zep", 4268); for ( - ; zephir_hash_get_current_data_ex(_3$$6, (void**) &_4$$6, &_2$$6) == SUCCESS - ; zephir_hash_move_forward_ex(_3$$6, &_2$$6) + ; zend_hash_get_current_data_ex(_3$$6, (void**) &_4$$6, &_2$$6) == SUCCESS + ; zend_hash_move_forward_ex(_3$$6, &_2$$6) ) { ZEPHIR_GET_HMKEY(key, _3$$6, _2$$6); ZEPHIR_GET_HVALUE(item, _4$$6); @@ -5617,11 +5616,11 @@ PHP_METHOD(Phalcon_Mvc_Model, __get) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &property_param); - if (unlikely(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'property' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(property_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(property_param) == IS_STRING)) { zephir_get_strval(property, property_param); } else { ZEPHIR_INIT_VAR(property); @@ -5693,11 +5692,11 @@ PHP_METHOD(Phalcon_Mvc_Model, __isset) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &property_param); - if (unlikely(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'property' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(property_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(property_param) == IS_STRING)) { zephir_get_strval(property, property_param); } else { ZEPHIR_INIT_VAR(property); @@ -5775,11 +5774,11 @@ PHP_METHOD(Phalcon_Mvc_Model, unserialize) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &data_param); - if (unlikely(Z_TYPE_P(data_param) != IS_STRING && Z_TYPE_P(data_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(data_param) != IS_STRING && Z_TYPE_P(data_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'data' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(data_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(data_param) == IS_STRING)) { zephir_get_strval(data, data_param); } else { ZEPHIR_INIT_VAR(data); @@ -5823,8 +5822,8 @@ PHP_METHOD(Phalcon_Mvc_Model, unserialize) { } zephir_is_iterable(attributes, &_5$$3, &_4$$3, 0, 0, "phalcon/mvc/model.zep", 4480); for ( - ; zephir_hash_get_current_data_ex(_5$$3, (void**) &_6$$3, &_4$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_5$$3, &_4$$3) + ; zend_hash_get_current_data_ex(_5$$3, (void**) &_6$$3, &_4$$3) == SUCCESS + ; zend_hash_move_forward_ex(_5$$3, &_4$$3) ) { ZEPHIR_GET_HMKEY(key, _5$$3, _4$$3); ZEPHIR_GET_HVALUE(value, _6$$3); @@ -5894,8 +5893,8 @@ PHP_METHOD(Phalcon_Mvc_Model, toArray) { zephir_check_call_status(); zephir_is_iterable(_0, &_2, &_1, 0, 0, "phalcon/mvc/model.zep", 4548); for ( - ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS - ; zephir_hash_move_forward_ex(_2, &_1) + ; zend_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS + ; zend_hash_move_forward_ex(_2, &_1) ) { ZEPHIR_GET_HVALUE(attribute, _3); if (Z_TYPE_P(columnMap) == IS_ARRAY) { diff --git a/ext/phalcon/mvc/model/behavior.zep.c b/ext/phalcon/mvc/model/behavior.zep.c index bccc1104e89..eee39d1294c 100644 --- a/ext/phalcon/mvc/model/behavior.zep.c +++ b/ext/phalcon/mvc/model/behavior.zep.c @@ -67,11 +67,11 @@ PHP_METHOD(Phalcon_Mvc_Model_Behavior, mustTakeAction) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &eventName_param); - if (unlikely(Z_TYPE_P(eventName_param) != IS_STRING && Z_TYPE_P(eventName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(eventName_param) != IS_STRING && Z_TYPE_P(eventName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'eventName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(eventName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(eventName_param) == IS_STRING)) { zephir_get_strval(eventName, eventName_param); } else { ZEPHIR_INIT_VAR(eventName); @@ -102,11 +102,11 @@ PHP_METHOD(Phalcon_Mvc_Model_Behavior, getOptions) { ZEPHIR_INIT_VAR(eventName); ZVAL_EMPTY_STRING(eventName); } else { - if (unlikely(Z_TYPE_P(eventName_param) != IS_STRING && Z_TYPE_P(eventName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(eventName_param) != IS_STRING && Z_TYPE_P(eventName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'eventName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(eventName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(eventName_param) == IS_STRING)) { zephir_get_strval(eventName, eventName_param); } else { ZEPHIR_INIT_VAR(eventName); diff --git a/ext/phalcon/mvc/model/behavior/softdelete.zep.c b/ext/phalcon/mvc/model/behavior/softdelete.zep.c index 88c63e0e445..0bfcfdf529a 100644 --- a/ext/phalcon/mvc/model/behavior/softdelete.zep.c +++ b/ext/phalcon/mvc/model/behavior/softdelete.zep.c @@ -18,7 +18,6 @@ #include "kernel/memory.h" #include "kernel/exception.h" #include "kernel/object.h" -#include "kernel/hash.h" #include "ext/spl/spl_exceptions.h" @@ -51,11 +50,11 @@ PHP_METHOD(Phalcon_Mvc_Model_Behavior_SoftDelete, notify) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &type_param, &model); - if (unlikely(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'type' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(type_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(type_param) == IS_STRING)) { zephir_get_strval(type, type_param); } else { ZEPHIR_INIT_VAR(type); @@ -96,8 +95,8 @@ PHP_METHOD(Phalcon_Mvc_Model_Behavior_SoftDelete, notify) { zephir_check_call_status(); zephir_is_iterable(_3$$7, &_5$$7, &_4$$7, 0, 0, "phalcon/mvc/model/behavior/softdelete.zep", 89); for ( - ; zephir_hash_get_current_data_ex(_5$$7, (void**) &_6$$7, &_4$$7) == SUCCESS - ; zephir_hash_move_forward_ex(_5$$7, &_4$$7) + ; zend_hash_get_current_data_ex(_5$$7, (void**) &_6$$7, &_4$$7) == SUCCESS + ; zend_hash_move_forward_ex(_5$$7, &_4$$7) ) { ZEPHIR_GET_HVALUE(message, _6$$7); ZEPHIR_CALL_METHOD(NULL, model, "appendmessage", &_7, 0, message); diff --git a/ext/phalcon/mvc/model/behavior/timestampable.zep.c b/ext/phalcon/mvc/model/behavior/timestampable.zep.c index 45279942e0a..e71d82d442b 100644 --- a/ext/phalcon/mvc/model/behavior/timestampable.zep.c +++ b/ext/phalcon/mvc/model/behavior/timestampable.zep.c @@ -20,7 +20,6 @@ #include "Zend/zend_closures.h" #include "kernel/object.h" #include "kernel/time.h" -#include "kernel/hash.h" #include "ext/spl/spl_exceptions.h" @@ -53,11 +52,11 @@ PHP_METHOD(Phalcon_Mvc_Model_Behavior_Timestampable, notify) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &type_param, &model); - if (unlikely(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'type' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(type_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(type_param) == IS_STRING)) { zephir_get_strval(type, type_param); } else { ZEPHIR_INIT_VAR(type); @@ -103,8 +102,8 @@ PHP_METHOD(Phalcon_Mvc_Model_Behavior_Timestampable, notify) { if (Z_TYPE_P(field) == IS_ARRAY) { zephir_is_iterable(field, &_2$$12, &_1$$12, 0, 0, "phalcon/mvc/model/behavior/timestampable.zep", 94); for ( - ; zephir_hash_get_current_data_ex(_2$$12, (void**) &_3$$12, &_1$$12) == SUCCESS - ; zephir_hash_move_forward_ex(_2$$12, &_1$$12) + ; zend_hash_get_current_data_ex(_2$$12, (void**) &_3$$12, &_1$$12) == SUCCESS + ; zend_hash_move_forward_ex(_2$$12, &_1$$12) ) { ZEPHIR_GET_HVALUE(singleField, _3$$12); ZEPHIR_CALL_METHOD(NULL, model, "writeattribute", &_4, 0, singleField, timestamp); diff --git a/ext/phalcon/mvc/model/binder.zep.c b/ext/phalcon/mvc/model/binder.zep.c index 853fabdb18f..8f0a0d8ecc3 100644 --- a/ext/phalcon/mvc/model/binder.zep.c +++ b/ext/phalcon/mvc/model/binder.zep.c @@ -17,7 +17,6 @@ #include "Zend/zend_closures.h" #include "kernel/operators.h" #include "kernel/fcall.h" -#include "kernel/hash.h" #include "kernel/array.h" #include "kernel/exception.h" #include "kernel/concat.h" @@ -168,8 +167,8 @@ PHP_METHOD(Phalcon_Mvc_Model_Binder, bindToHandler) { if (Z_TYPE_P(paramsCache) == IS_ARRAY) { zephir_is_iterable(paramsCache, &_4$$4, &_3$$4, 0, 0, "phalcon/mvc/model/binder.zep", 102); for ( - ; zephir_hash_get_current_data_ex(_4$$4, (void**) &_5$$4, &_3$$4) == SUCCESS - ; zephir_hash_move_forward_ex(_4$$4, &_3$$4) + ; zend_hash_get_current_data_ex(_4$$4, (void**) &_5$$4, &_3$$4) == SUCCESS + ; zend_hash_move_forward_ex(_4$$4, &_3$$4) ) { ZEPHIR_GET_HMKEY(paramKey, _4$$4, _3$$4); ZEPHIR_GET_HVALUE(className, _5$$4); @@ -274,8 +273,8 @@ PHP_METHOD(Phalcon_Mvc_Model_Binder, getParamsFromReflection) { zephir_array_keys(paramsKeys, params TSRMLS_CC); zephir_is_iterable(methodParams, &_2, &_1, 0, 0, "phalcon/mvc/model/binder.zep", 197); for ( - ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS - ; zephir_hash_move_forward_ex(_2, &_1) + ; zend_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS + ; zend_hash_move_forward_ex(_2, &_1) ) { ZEPHIR_GET_HMKEY(paramKey, _2, _1); ZEPHIR_GET_HVALUE(methodParam, _3); diff --git a/ext/phalcon/mvc/model/criteria.zep.c b/ext/phalcon/mvc/model/criteria.zep.c index 94dd0266218..aa48373d7e8 100644 --- a/ext/phalcon/mvc/model/criteria.zep.c +++ b/ext/phalcon/mvc/model/criteria.zep.c @@ -20,7 +20,6 @@ #include "kernel/operators.h" #include "kernel/fcall.h" #include "kernel/concat.h" -#include "kernel/hash.h" #include "kernel/string.h" @@ -107,11 +106,11 @@ PHP_METHOD(Phalcon_Mvc_Model_Criteria, setModelName) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &modelName_param); - if (unlikely(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'modelName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(modelName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(modelName_param) == IS_STRING)) { zephir_get_strval(modelName, modelName_param); } else { ZEPHIR_INIT_VAR(modelName); @@ -277,11 +276,11 @@ PHP_METHOD(Phalcon_Mvc_Model_Criteria, join) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 3, &model_param, &conditions, &alias, &type); - if (unlikely(Z_TYPE_P(model_param) != IS_STRING && Z_TYPE_P(model_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(model_param) != IS_STRING && Z_TYPE_P(model_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'model' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(model_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(model_param) == IS_STRING)) { zephir_get_strval(model, model_param); } else { ZEPHIR_INIT_VAR(model); @@ -348,11 +347,11 @@ PHP_METHOD(Phalcon_Mvc_Model_Criteria, innerJoin) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &model_param, &conditions, &alias); - if (unlikely(Z_TYPE_P(model_param) != IS_STRING && Z_TYPE_P(model_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(model_param) != IS_STRING && Z_TYPE_P(model_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'model' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(model_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(model_param) == IS_STRING)) { zephir_get_strval(model, model_param); } else { ZEPHIR_INIT_VAR(model); @@ -391,11 +390,11 @@ PHP_METHOD(Phalcon_Mvc_Model_Criteria, leftJoin) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &model_param, &conditions, &alias); - if (unlikely(Z_TYPE_P(model_param) != IS_STRING && Z_TYPE_P(model_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(model_param) != IS_STRING && Z_TYPE_P(model_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'model' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(model_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(model_param) == IS_STRING)) { zephir_get_strval(model, model_param); } else { ZEPHIR_INIT_VAR(model); @@ -434,11 +433,11 @@ PHP_METHOD(Phalcon_Mvc_Model_Criteria, rightJoin) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &model_param, &conditions, &alias); - if (unlikely(Z_TYPE_P(model_param) != IS_STRING && Z_TYPE_P(model_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(model_param) != IS_STRING && Z_TYPE_P(model_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'model' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(model_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(model_param) == IS_STRING)) { zephir_get_strval(model, model_param); } else { ZEPHIR_INIT_VAR(model); @@ -472,11 +471,11 @@ PHP_METHOD(Phalcon_Mvc_Model_Criteria, where) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &conditions_param, &bindParams, &bindTypes); - if (unlikely(Z_TYPE_P(conditions_param) != IS_STRING && Z_TYPE_P(conditions_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(conditions_param) != IS_STRING && Z_TYPE_P(conditions_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'conditions' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(conditions_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(conditions_param) == IS_STRING)) { zephir_get_strval(conditions, conditions_param); } else { ZEPHIR_INIT_VAR(conditions); @@ -542,11 +541,11 @@ PHP_METHOD(Phalcon_Mvc_Model_Criteria, addWhere) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &conditions_param, &bindParams, &bindTypes); - if (unlikely(Z_TYPE_P(conditions_param) != IS_STRING && Z_TYPE_P(conditions_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(conditions_param) != IS_STRING && Z_TYPE_P(conditions_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'conditions' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(conditions_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(conditions_param) == IS_STRING)) { zephir_get_strval(conditions, conditions_param); } else { ZEPHIR_INIT_VAR(conditions); @@ -578,11 +577,11 @@ PHP_METHOD(Phalcon_Mvc_Model_Criteria, andWhere) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &conditions_param, &bindParams, &bindTypes); - if (unlikely(Z_TYPE_P(conditions_param) != IS_STRING && Z_TYPE_P(conditions_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(conditions_param) != IS_STRING && Z_TYPE_P(conditions_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'conditions' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(conditions_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(conditions_param) == IS_STRING)) { zephir_get_strval(conditions, conditions_param); } else { ZEPHIR_INIT_VAR(conditions); @@ -621,11 +620,11 @@ PHP_METHOD(Phalcon_Mvc_Model_Criteria, orWhere) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &conditions_param, &bindParams, &bindTypes); - if (unlikely(Z_TYPE_P(conditions_param) != IS_STRING && Z_TYPE_P(conditions_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(conditions_param) != IS_STRING && Z_TYPE_P(conditions_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'conditions' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(conditions_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(conditions_param) == IS_STRING)) { zephir_get_strval(conditions, conditions_param); } else { ZEPHIR_INIT_VAR(conditions); @@ -669,11 +668,11 @@ PHP_METHOD(Phalcon_Mvc_Model_Criteria, betweenWhere) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &expr_param, &minimum, &maximum); - if (unlikely(Z_TYPE_P(expr_param) != IS_STRING && Z_TYPE_P(expr_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(expr_param) != IS_STRING && Z_TYPE_P(expr_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'expr' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(expr_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(expr_param) == IS_STRING)) { zephir_get_strval(expr, expr_param); } else { ZEPHIR_INIT_VAR(expr); @@ -721,11 +720,11 @@ PHP_METHOD(Phalcon_Mvc_Model_Criteria, notBetweenWhere) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &expr_param, &minimum, &maximum); - if (unlikely(Z_TYPE_P(expr_param) != IS_STRING && Z_TYPE_P(expr_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(expr_param) != IS_STRING && Z_TYPE_P(expr_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'expr' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(expr_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(expr_param) == IS_STRING)) { zephir_get_strval(expr, expr_param); } else { ZEPHIR_INIT_VAR(expr); @@ -776,11 +775,11 @@ PHP_METHOD(Phalcon_Mvc_Model_Criteria, inWhere) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &expr_param, &values_param); - if (unlikely(Z_TYPE_P(expr_param) != IS_STRING && Z_TYPE_P(expr_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(expr_param) != IS_STRING && Z_TYPE_P(expr_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'expr' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(expr_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(expr_param) == IS_STRING)) { zephir_get_strval(expr, expr_param); } else { ZEPHIR_INIT_VAR(expr); @@ -804,8 +803,8 @@ PHP_METHOD(Phalcon_Mvc_Model_Criteria, inWhere) { array_init(bindKeys); zephir_is_iterable(values, &_3, &_2, 0, 0, "phalcon/mvc/model/criteria.zep", 418); for ( - ; zephir_hash_get_current_data_ex(_3, (void**) &_4, &_2) == SUCCESS - ; zephir_hash_move_forward_ex(_3, &_2) + ; zend_hash_get_current_data_ex(_3, (void**) &_4, &_2) == SUCCESS + ; zend_hash_move_forward_ex(_3, &_2) ) { ZEPHIR_GET_HVALUE(value, _4); ZEPHIR_INIT_NVAR(key); @@ -847,11 +846,11 @@ PHP_METHOD(Phalcon_Mvc_Model_Criteria, notInWhere) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &expr_param, &values_param); - if (unlikely(Z_TYPE_P(expr_param) != IS_STRING && Z_TYPE_P(expr_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(expr_param) != IS_STRING && Z_TYPE_P(expr_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'expr' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(expr_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(expr_param) == IS_STRING)) { zephir_get_strval(expr, expr_param); } else { ZEPHIR_INIT_VAR(expr); @@ -868,8 +867,8 @@ PHP_METHOD(Phalcon_Mvc_Model_Criteria, notInWhere) { array_init(bindKeys); zephir_is_iterable(values, &_1, &_0, 0, 0, "phalcon/mvc/model/criteria.zep", 455); for ( - ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS - ; zephir_hash_move_forward_ex(_1, &_0) + ; zend_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS + ; zend_hash_move_forward_ex(_1, &_0) ) { ZEPHIR_GET_HVALUE(value, _2); ZEPHIR_INIT_NVAR(key); @@ -903,11 +902,11 @@ PHP_METHOD(Phalcon_Mvc_Model_Criteria, conditions) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &conditions_param); - if (unlikely(Z_TYPE_P(conditions_param) != IS_STRING && Z_TYPE_P(conditions_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(conditions_param) != IS_STRING && Z_TYPE_P(conditions_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'conditions' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(conditions_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(conditions_param) == IS_STRING)) { zephir_get_strval(conditions, conditions_param); } else { ZEPHIR_INIT_VAR(conditions); @@ -935,11 +934,11 @@ PHP_METHOD(Phalcon_Mvc_Model_Criteria, order) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &orderColumns_param); - if (unlikely(Z_TYPE_P(orderColumns_param) != IS_STRING && Z_TYPE_P(orderColumns_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(orderColumns_param) != IS_STRING && Z_TYPE_P(orderColumns_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'orderColumns' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(orderColumns_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(orderColumns_param) == IS_STRING)) { zephir_get_strval(orderColumns, orderColumns_param); } else { ZEPHIR_INIT_VAR(orderColumns); @@ -965,11 +964,11 @@ PHP_METHOD(Phalcon_Mvc_Model_Criteria, orderBy) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &orderColumns_param); - if (unlikely(Z_TYPE_P(orderColumns_param) != IS_STRING && Z_TYPE_P(orderColumns_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(orderColumns_param) != IS_STRING && Z_TYPE_P(orderColumns_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'orderColumns' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(orderColumns_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(orderColumns_param) == IS_STRING)) { zephir_get_strval(orderColumns, orderColumns_param); } else { ZEPHIR_INIT_VAR(orderColumns); @@ -1054,7 +1053,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Criteria, limit) { ZEPHIR_CALL_FUNCTION(&_1, "abs", &_2, 198, &_0); zephir_check_call_status(); limit = zephir_get_numberval(_1); - if (unlikely(limit == 0)) { + if (UNEXPECTED(limit == 0)) { RETURN_THIS(); } if (zephir_is_numeric(offset)) { @@ -1307,11 +1306,11 @@ PHP_METHOD(Phalcon_Mvc_Model_Criteria, fromInput) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 1, &dependencyInjector, &modelName_param, &data_param, &operator_param); - if (unlikely(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'modelName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(modelName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(modelName_param) == IS_STRING)) { zephir_get_strval(modelName, modelName_param); } else { ZEPHIR_INIT_VAR(modelName); @@ -1322,11 +1321,11 @@ PHP_METHOD(Phalcon_Mvc_Model_Criteria, fromInput) { ZEPHIR_INIT_VAR(operator); ZVAL_STRING(operator, "AND", 1); } else { - if (unlikely(Z_TYPE_P(operator_param) != IS_STRING && Z_TYPE_P(operator_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(operator_param) != IS_STRING && Z_TYPE_P(operator_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'operator' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(operator_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(operator_param) == IS_STRING)) { zephir_get_strval(operator, operator_param); } else { ZEPHIR_INIT_VAR(operator); @@ -1361,8 +1360,8 @@ PHP_METHOD(Phalcon_Mvc_Model_Criteria, fromInput) { array_init(bind); zephir_is_iterable(data, &_4$$3, &_3$$3, 0, 0, "phalcon/mvc/model/criteria.zep", 711); for ( - ; zephir_hash_get_current_data_ex(_4$$3, (void**) &_5$$3, &_3$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_4$$3, &_3$$3) + ; zend_hash_get_current_data_ex(_4$$3, (void**) &_5$$3, &_3$$3) == SUCCESS + ; zend_hash_move_forward_ex(_4$$3, &_3$$3) ) { ZEPHIR_GET_HMKEY(field, _4$$3, _3$$3); ZEPHIR_GET_HVALUE(value, _5$$3); diff --git a/ext/phalcon/mvc/model/manager.zep.c b/ext/phalcon/mvc/model/manager.zep.c index ea65a7cd588..d56b10a6883 100644 --- a/ext/phalcon/mvc/model/manager.zep.c +++ b/ext/phalcon/mvc/model/manager.zep.c @@ -21,7 +21,6 @@ #include "kernel/exception.h" #include "kernel/operators.h" #include "kernel/concat.h" -#include "kernel/hash.h" #include "phalcon/mvc/model/orm.h" @@ -297,11 +296,11 @@ PHP_METHOD(Phalcon_Mvc_Model_Manager, isInitialized) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &modelName_param); - if (unlikely(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'modelName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(modelName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(modelName_param) == IS_STRING)) { zephir_get_strval(modelName, modelName_param); } else { ZEPHIR_INIT_VAR(modelName); @@ -341,11 +340,11 @@ PHP_METHOD(Phalcon_Mvc_Model_Manager, load) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &modelName_param, &newInstance_param); - if (unlikely(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'modelName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(modelName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(modelName_param) == IS_STRING)) { zephir_get_strval(modelName, modelName_param); } else { ZEPHIR_INIT_VAR(modelName); @@ -424,11 +423,11 @@ PHP_METHOD(Phalcon_Mvc_Model_Manager, setModelSource) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &model, &source_param); - if (unlikely(Z_TYPE_P(source_param) != IS_STRING && Z_TYPE_P(source_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(source_param) != IS_STRING && Z_TYPE_P(source_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'source' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(source_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(source_param) == IS_STRING)) { zephir_get_strval(source, source_param); } else { ZEPHIR_INIT_VAR(source); @@ -519,11 +518,11 @@ PHP_METHOD(Phalcon_Mvc_Model_Manager, setModelSchema) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &model, &schema_param); - if (unlikely(Z_TYPE_P(schema_param) != IS_STRING && Z_TYPE_P(schema_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(schema_param) != IS_STRING && Z_TYPE_P(schema_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'schema' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(schema_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(schema_param) == IS_STRING)) { zephir_get_strval(schema, schema_param); } else { ZEPHIR_INIT_VAR(schema); @@ -572,11 +571,11 @@ PHP_METHOD(Phalcon_Mvc_Model_Manager, setConnectionService) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &model, &connectionService_param); - if (unlikely(Z_TYPE_P(connectionService_param) != IS_STRING && Z_TYPE_P(connectionService_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(connectionService_param) != IS_STRING && Z_TYPE_P(connectionService_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'connectionService' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(connectionService_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(connectionService_param) == IS_STRING)) { zephir_get_strval(connectionService, connectionService_param); } else { ZEPHIR_INIT_VAR(connectionService); @@ -603,11 +602,11 @@ PHP_METHOD(Phalcon_Mvc_Model_Manager, setWriteConnectionService) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &model, &connectionService_param); - if (unlikely(Z_TYPE_P(connectionService_param) != IS_STRING && Z_TYPE_P(connectionService_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(connectionService_param) != IS_STRING && Z_TYPE_P(connectionService_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'connectionService' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(connectionService_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(connectionService_param) == IS_STRING)) { zephir_get_strval(connectionService, connectionService_param); } else { ZEPHIR_INIT_VAR(connectionService); @@ -633,11 +632,11 @@ PHP_METHOD(Phalcon_Mvc_Model_Manager, setReadConnectionService) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &model, &connectionService_param); - if (unlikely(Z_TYPE_P(connectionService_param) != IS_STRING && Z_TYPE_P(connectionService_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(connectionService_param) != IS_STRING && Z_TYPE_P(connectionService_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'connectionService' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(connectionService_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(connectionService_param) == IS_STRING)) { zephir_get_strval(connectionService, connectionService_param); } else { ZEPHIR_INIT_VAR(connectionService); @@ -801,11 +800,11 @@ PHP_METHOD(Phalcon_Mvc_Model_Manager, notifyEvent) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &eventName_param, &model); - if (unlikely(Z_TYPE_P(eventName_param) != IS_STRING && Z_TYPE_P(eventName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(eventName_param) != IS_STRING && Z_TYPE_P(eventName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'eventName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(eventName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(eventName_param) == IS_STRING)) { zephir_get_strval(eventName, eventName_param); } else { ZEPHIR_INIT_VAR(eventName); @@ -822,8 +821,8 @@ PHP_METHOD(Phalcon_Mvc_Model_Manager, notifyEvent) { if (zephir_array_isset_fetch(&modelsBehaviors, _0, _1, 0 TSRMLS_CC)) { zephir_is_iterable(modelsBehaviors, &_3$$3, &_2$$3, 0, 0, "phalcon/mvc/model/manager.zep", 508); for ( - ; zephir_hash_get_current_data_ex(_3$$3, (void**) &_4$$3, &_2$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_3$$3, &_2$$3) + ; zend_hash_get_current_data_ex(_3$$3, (void**) &_4$$3, &_2$$3) == SUCCESS + ; zend_hash_move_forward_ex(_3$$3, &_2$$3) ) { ZEPHIR_GET_HVALUE(behavior, _4$$3); ZEPHIR_CALL_METHOD(&status, behavior, "notify", NULL, 0, eventName, model); @@ -877,11 +876,11 @@ PHP_METHOD(Phalcon_Mvc_Model_Manager, missingMethod) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &model, &eventName_param, &data); - if (unlikely(Z_TYPE_P(eventName_param) != IS_STRING && Z_TYPE_P(eventName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(eventName_param) != IS_STRING && Z_TYPE_P(eventName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'eventName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(eventName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(eventName_param) == IS_STRING)) { zephir_get_strval(eventName, eventName_param); } else { ZEPHIR_INIT_VAR(eventName); @@ -896,8 +895,8 @@ PHP_METHOD(Phalcon_Mvc_Model_Manager, missingMethod) { if (zephir_array_isset_fetch(&modelsBehaviors, _0, _1, 0 TSRMLS_CC)) { zephir_is_iterable(modelsBehaviors, &_3$$3, &_2$$3, 0, 0, "phalcon/mvc/model/manager.zep", 557); for ( - ; zephir_hash_get_current_data_ex(_3$$3, (void**) &_4$$3, &_2$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_3$$3, &_2$$3) + ; zend_hash_get_current_data_ex(_3$$3, (void**) &_4$$3, &_2$$3) == SUCCESS + ; zend_hash_move_forward_ex(_3$$3, &_2$$3) ) { ZEPHIR_GET_HVALUE(behavior, _4$$3); ZEPHIR_CALL_METHOD(&result, behavior, "missingmethod", NULL, 0, model, eventName, data); @@ -1062,11 +1061,11 @@ PHP_METHOD(Phalcon_Mvc_Model_Manager, addHasOne) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 4, 1, &model, &fields, &referencedModel_param, &referencedFields, &options); - if (unlikely(Z_TYPE_P(referencedModel_param) != IS_STRING && Z_TYPE_P(referencedModel_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(referencedModel_param) != IS_STRING && Z_TYPE_P(referencedModel_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'referencedModel' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(referencedModel_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(referencedModel_param) == IS_STRING)) { zephir_get_strval(referencedModel, referencedModel_param); } else { ZEPHIR_INIT_VAR(referencedModel); @@ -1148,11 +1147,11 @@ PHP_METHOD(Phalcon_Mvc_Model_Manager, addBelongsTo) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 4, 1, &model, &fields, &referencedModel_param, &referencedFields, &options); - if (unlikely(Z_TYPE_P(referencedModel_param) != IS_STRING && Z_TYPE_P(referencedModel_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(referencedModel_param) != IS_STRING && Z_TYPE_P(referencedModel_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'referencedModel' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(referencedModel_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(referencedModel_param) == IS_STRING)) { zephir_get_strval(referencedModel, referencedModel_param); } else { ZEPHIR_INIT_VAR(referencedModel); @@ -1233,11 +1232,11 @@ PHP_METHOD(Phalcon_Mvc_Model_Manager, addHasMany) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 4, 1, &model, &fields, &referencedModel_param, &referencedFields, &options); - if (unlikely(Z_TYPE_P(referencedModel_param) != IS_STRING && Z_TYPE_P(referencedModel_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(referencedModel_param) != IS_STRING && Z_TYPE_P(referencedModel_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'referencedModel' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(referencedModel_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(referencedModel_param) == IS_STRING)) { zephir_get_strval(referencedModel, referencedModel_param); } else { ZEPHIR_INIT_VAR(referencedModel); @@ -1323,21 +1322,21 @@ PHP_METHOD(Phalcon_Mvc_Model_Manager, addHasManyToMany) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 7, 1, &model, &fields, &intermediateModel_param, &intermediateFields, &intermediateReferencedFields, &referencedModel_param, &referencedFields, &options); - if (unlikely(Z_TYPE_P(intermediateModel_param) != IS_STRING && Z_TYPE_P(intermediateModel_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(intermediateModel_param) != IS_STRING && Z_TYPE_P(intermediateModel_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'intermediateModel' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(intermediateModel_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(intermediateModel_param) == IS_STRING)) { zephir_get_strval(intermediateModel, intermediateModel_param); } else { ZEPHIR_INIT_VAR(intermediateModel); ZVAL_EMPTY_STRING(intermediateModel); } - if (unlikely(Z_TYPE_P(referencedModel_param) != IS_STRING && Z_TYPE_P(referencedModel_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(referencedModel_param) != IS_STRING && Z_TYPE_P(referencedModel_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'referencedModel' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(referencedModel_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(referencedModel_param) == IS_STRING)) { zephir_get_strval(referencedModel, referencedModel_param); } else { ZEPHIR_INIT_VAR(referencedModel); @@ -1423,21 +1422,21 @@ PHP_METHOD(Phalcon_Mvc_Model_Manager, existsBelongsTo) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &modelName_param, &modelRelation_param); - if (unlikely(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'modelName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(modelName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(modelName_param) == IS_STRING)) { zephir_get_strval(modelName, modelName_param); } else { ZEPHIR_INIT_VAR(modelName); ZVAL_EMPTY_STRING(modelName); } - if (unlikely(Z_TYPE_P(modelRelation_param) != IS_STRING && Z_TYPE_P(modelRelation_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(modelRelation_param) != IS_STRING && Z_TYPE_P(modelRelation_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'modelRelation' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(modelRelation_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(modelRelation_param) == IS_STRING)) { zephir_get_strval(modelRelation, modelRelation_param); } else { ZEPHIR_INIT_VAR(modelRelation); @@ -1473,21 +1472,21 @@ PHP_METHOD(Phalcon_Mvc_Model_Manager, existsHasMany) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &modelName_param, &modelRelation_param); - if (unlikely(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'modelName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(modelName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(modelName_param) == IS_STRING)) { zephir_get_strval(modelName, modelName_param); } else { ZEPHIR_INIT_VAR(modelName); ZVAL_EMPTY_STRING(modelName); } - if (unlikely(Z_TYPE_P(modelRelation_param) != IS_STRING && Z_TYPE_P(modelRelation_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(modelRelation_param) != IS_STRING && Z_TYPE_P(modelRelation_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'modelRelation' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(modelRelation_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(modelRelation_param) == IS_STRING)) { zephir_get_strval(modelRelation, modelRelation_param); } else { ZEPHIR_INIT_VAR(modelRelation); @@ -1523,21 +1522,21 @@ PHP_METHOD(Phalcon_Mvc_Model_Manager, existsHasOne) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &modelName_param, &modelRelation_param); - if (unlikely(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'modelName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(modelName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(modelName_param) == IS_STRING)) { zephir_get_strval(modelName, modelName_param); } else { ZEPHIR_INIT_VAR(modelName); ZVAL_EMPTY_STRING(modelName); } - if (unlikely(Z_TYPE_P(modelRelation_param) != IS_STRING && Z_TYPE_P(modelRelation_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(modelRelation_param) != IS_STRING && Z_TYPE_P(modelRelation_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'modelRelation' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(modelRelation_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(modelRelation_param) == IS_STRING)) { zephir_get_strval(modelRelation, modelRelation_param); } else { ZEPHIR_INIT_VAR(modelRelation); @@ -1573,21 +1572,21 @@ PHP_METHOD(Phalcon_Mvc_Model_Manager, existsHasManyToMany) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &modelName_param, &modelRelation_param); - if (unlikely(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'modelName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(modelName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(modelName_param) == IS_STRING)) { zephir_get_strval(modelName, modelName_param); } else { ZEPHIR_INIT_VAR(modelName); ZVAL_EMPTY_STRING(modelName); } - if (unlikely(Z_TYPE_P(modelRelation_param) != IS_STRING && Z_TYPE_P(modelRelation_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(modelRelation_param) != IS_STRING && Z_TYPE_P(modelRelation_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'modelRelation' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(modelRelation_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(modelRelation_param) == IS_STRING)) { zephir_get_strval(modelRelation, modelRelation_param); } else { ZEPHIR_INIT_VAR(modelRelation); @@ -1622,21 +1621,21 @@ PHP_METHOD(Phalcon_Mvc_Model_Manager, getRelationByAlias) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &modelName_param, &alias_param); - if (unlikely(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'modelName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(modelName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(modelName_param) == IS_STRING)) { zephir_get_strval(modelName, modelName_param); } else { ZEPHIR_INIT_VAR(modelName); ZVAL_EMPTY_STRING(modelName); } - if (unlikely(Z_TYPE_P(alias_param) != IS_STRING && Z_TYPE_P(alias_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(alias_param) != IS_STRING && Z_TYPE_P(alias_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'alias' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(alias_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(alias_param) == IS_STRING)) { zephir_get_strval(alias, alias_param); } else { ZEPHIR_INIT_VAR(alias); @@ -1687,8 +1686,8 @@ PHP_METHOD(Phalcon_Mvc_Model_Manager, _mergeFindParameters) { if (Z_TYPE_P(findParamsOne) == IS_ARRAY) { zephir_is_iterable(findParamsOne, &_3$$4, &_2$$4, 0, 0, "phalcon/mvc/model/manager.zep", 1149); for ( - ; zephir_hash_get_current_data_ex(_3$$4, (void**) &_4$$4, &_2$$4) == SUCCESS - ; zephir_hash_move_forward_ex(_3$$4, &_2$$4) + ; zend_hash_get_current_data_ex(_3$$4, (void**) &_4$$4, &_2$$4) == SUCCESS + ; zend_hash_move_forward_ex(_3$$4, &_2$$4) ) { ZEPHIR_GET_HMKEY(key, _3$$4, _2$$4); ZEPHIR_GET_HVALUE(value, _4$$4); @@ -1719,8 +1718,8 @@ PHP_METHOD(Phalcon_Mvc_Model_Manager, _mergeFindParameters) { if (Z_TYPE_P(findParamsTwo) == IS_ARRAY) { zephir_is_iterable(findParamsTwo, &_9$$11, &_8$$11, 0, 0, "phalcon/mvc/model/manager.zep", 1183); for ( - ; zephir_hash_get_current_data_ex(_9$$11, (void**) &_10$$11, &_8$$11) == SUCCESS - ; zephir_hash_move_forward_ex(_9$$11, &_8$$11) + ; zend_hash_get_current_data_ex(_9$$11, (void**) &_10$$11, &_8$$11) == SUCCESS + ; zend_hash_move_forward_ex(_9$$11, &_8$$11) ) { ZEPHIR_GET_HMKEY(key, _9$$11, _8$$11); ZEPHIR_GET_HVALUE(value, _10$$11); @@ -1795,11 +1794,11 @@ PHP_METHOD(Phalcon_Mvc_Model_Manager, getRelationRecords) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 1, &relation, &method_param, &record, ¶meters); - if (unlikely(Z_TYPE_P(method_param) != IS_STRING && Z_TYPE_P(method_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(method_param) != IS_STRING && Z_TYPE_P(method_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'method' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(method_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(method_param) == IS_STRING)) { zephir_get_strval(method, method_param); } else { ZEPHIR_INIT_VAR(method); @@ -1911,8 +1910,8 @@ PHP_METHOD(Phalcon_Mvc_Model_Manager, getRelationRecords) { zephir_check_call_status(); zephir_is_iterable(_16$$10, &_18$$10, &_17$$10, 0, 0, "phalcon/mvc/model/manager.zep", 1303); for ( - ; zephir_hash_get_current_data_ex(_18$$10, (void**) &_19$$10, &_17$$10) == SUCCESS - ; zephir_hash_move_forward_ex(_18$$10, &_17$$10) + ; zend_hash_get_current_data_ex(_18$$10, (void**) &_19$$10, &_17$$10) == SUCCESS + ; zend_hash_move_forward_ex(_18$$10, &_17$$10) ) { ZEPHIR_GET_HMKEY(refPosition, _18$$10, _17$$10); ZEPHIR_GET_HVALUE(field, _19$$10); @@ -2012,21 +2011,21 @@ PHP_METHOD(Phalcon_Mvc_Model_Manager, getReusableRecords) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &modelName_param, &key_param); - if (unlikely(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'modelName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(modelName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(modelName_param) == IS_STRING)) { zephir_get_strval(modelName, modelName_param); } else { ZEPHIR_INIT_VAR(modelName); ZVAL_EMPTY_STRING(modelName); } - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { ZEPHIR_INIT_VAR(key); @@ -2053,21 +2052,21 @@ PHP_METHOD(Phalcon_Mvc_Model_Manager, setReusableRecords) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &modelName_param, &key_param, &records); - if (unlikely(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'modelName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(modelName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(modelName_param) == IS_STRING)) { zephir_get_strval(modelName, modelName_param); } else { ZEPHIR_INIT_VAR(modelName); ZVAL_EMPTY_STRING(modelName); } - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { ZEPHIR_INIT_VAR(key); @@ -2103,21 +2102,21 @@ PHP_METHOD(Phalcon_Mvc_Model_Manager, getBelongsToRecords) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 4, 1, &method_param, &modelName_param, &modelRelation, &record, ¶meters); - if (unlikely(Z_TYPE_P(method_param) != IS_STRING && Z_TYPE_P(method_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(method_param) != IS_STRING && Z_TYPE_P(method_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'method' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(method_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(method_param) == IS_STRING)) { zephir_get_strval(method, method_param); } else { ZEPHIR_INIT_VAR(method); ZVAL_EMPTY_STRING(method); } - if (unlikely(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'modelName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(modelName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(modelName_param) == IS_STRING)) { zephir_get_strval(modelName, modelName_param); } else { ZEPHIR_INIT_VAR(modelName); @@ -2158,21 +2157,21 @@ PHP_METHOD(Phalcon_Mvc_Model_Manager, getHasManyRecords) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 4, 1, &method_param, &modelName_param, &modelRelation, &record, ¶meters); - if (unlikely(Z_TYPE_P(method_param) != IS_STRING && Z_TYPE_P(method_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(method_param) != IS_STRING && Z_TYPE_P(method_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'method' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(method_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(method_param) == IS_STRING)) { zephir_get_strval(method, method_param); } else { ZEPHIR_INIT_VAR(method); ZVAL_EMPTY_STRING(method); } - if (unlikely(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'modelName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(modelName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(modelName_param) == IS_STRING)) { zephir_get_strval(modelName, modelName_param); } else { ZEPHIR_INIT_VAR(modelName); @@ -2213,21 +2212,21 @@ PHP_METHOD(Phalcon_Mvc_Model_Manager, getHasOneRecords) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 4, 1, &method_param, &modelName_param, &modelRelation, &record, ¶meters); - if (unlikely(Z_TYPE_P(method_param) != IS_STRING && Z_TYPE_P(method_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(method_param) != IS_STRING && Z_TYPE_P(method_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'method' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(method_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(method_param) == IS_STRING)) { zephir_get_strval(method, method_param); } else { ZEPHIR_INIT_VAR(method); ZVAL_EMPTY_STRING(method); } - if (unlikely(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'modelName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(modelName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(modelName_param) == IS_STRING)) { zephir_get_strval(modelName, modelName_param); } else { ZEPHIR_INIT_VAR(modelName); @@ -2389,11 +2388,11 @@ PHP_METHOD(Phalcon_Mvc_Model_Manager, getRelations) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &modelName_param); - if (unlikely(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(modelName_param) != IS_STRING && Z_TYPE_P(modelName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'modelName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(modelName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(modelName_param) == IS_STRING)) { zephir_get_strval(modelName, modelName_param); } else { ZEPHIR_INIT_VAR(modelName); @@ -2410,8 +2409,8 @@ PHP_METHOD(Phalcon_Mvc_Model_Manager, getRelations) { if (zephir_array_isset_fetch(&relations, _0, entityName, 0 TSRMLS_CC)) { zephir_is_iterable(relations, &_2$$3, &_1$$3, 0, 0, "phalcon/mvc/model/manager.zep", 1559); for ( - ; zephir_hash_get_current_data_ex(_2$$3, (void**) &_3$$3, &_1$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_2$$3, &_1$$3) + ; zend_hash_get_current_data_ex(_2$$3, (void**) &_3$$3, &_1$$3) == SUCCESS + ; zend_hash_move_forward_ex(_2$$3, &_1$$3) ) { ZEPHIR_GET_HVALUE(relation, _3$$3); zephir_array_append(&allRelations, relation, PH_SEPARATE, "phalcon/mvc/model/manager.zep", 1557); @@ -2422,8 +2421,8 @@ PHP_METHOD(Phalcon_Mvc_Model_Manager, getRelations) { if (zephir_array_isset_fetch(&relations, _4, entityName, 0 TSRMLS_CC)) { zephir_is_iterable(relations, &_6$$5, &_5$$5, 0, 0, "phalcon/mvc/model/manager.zep", 1568); for ( - ; zephir_hash_get_current_data_ex(_6$$5, (void**) &_7$$5, &_5$$5) == SUCCESS - ; zephir_hash_move_forward_ex(_6$$5, &_5$$5) + ; zend_hash_get_current_data_ex(_6$$5, (void**) &_7$$5, &_5$$5) == SUCCESS + ; zend_hash_move_forward_ex(_6$$5, &_5$$5) ) { ZEPHIR_GET_HVALUE(relation, _7$$5); zephir_array_append(&allRelations, relation, PH_SEPARATE, "phalcon/mvc/model/manager.zep", 1566); @@ -2434,8 +2433,8 @@ PHP_METHOD(Phalcon_Mvc_Model_Manager, getRelations) { if (zephir_array_isset_fetch(&relations, _8, entityName, 0 TSRMLS_CC)) { zephir_is_iterable(relations, &_10$$7, &_9$$7, 0, 0, "phalcon/mvc/model/manager.zep", 1577); for ( - ; zephir_hash_get_current_data_ex(_10$$7, (void**) &_11$$7, &_9$$7) == SUCCESS - ; zephir_hash_move_forward_ex(_10$$7, &_9$$7) + ; zend_hash_get_current_data_ex(_10$$7, (void**) &_11$$7, &_9$$7) == SUCCESS + ; zend_hash_move_forward_ex(_10$$7, &_9$$7) ) { ZEPHIR_GET_HVALUE(relation, _11$$7); zephir_array_append(&allRelations, relation, PH_SEPARATE, "phalcon/mvc/model/manager.zep", 1575); @@ -2456,21 +2455,21 @@ PHP_METHOD(Phalcon_Mvc_Model_Manager, getRelationsBetween) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &first_param, &second_param); - if (unlikely(Z_TYPE_P(first_param) != IS_STRING && Z_TYPE_P(first_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(first_param) != IS_STRING && Z_TYPE_P(first_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'first' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(first_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(first_param) == IS_STRING)) { zephir_get_strval(first, first_param); } else { ZEPHIR_INIT_VAR(first); ZVAL_EMPTY_STRING(first); } - if (unlikely(Z_TYPE_P(second_param) != IS_STRING && Z_TYPE_P(second_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(second_param) != IS_STRING && Z_TYPE_P(second_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'second' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(second_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(second_param) == IS_STRING)) { zephir_get_strval(second, second_param); } else { ZEPHIR_INIT_VAR(second); @@ -2516,11 +2515,11 @@ PHP_METHOD(Phalcon_Mvc_Model_Manager, createQuery) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &phql_param); - if (unlikely(Z_TYPE_P(phql_param) != IS_STRING && Z_TYPE_P(phql_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(phql_param) != IS_STRING && Z_TYPE_P(phql_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'phql' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(phql_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(phql_param) == IS_STRING)) { zephir_get_strval(phql, phql_param); } else { ZEPHIR_INIT_VAR(phql); @@ -2561,11 +2560,11 @@ PHP_METHOD(Phalcon_Mvc_Model_Manager, executeQuery) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &phql_param, &placeholders, &types); - if (unlikely(Z_TYPE_P(phql_param) != IS_STRING && Z_TYPE_P(phql_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(phql_param) != IS_STRING && Z_TYPE_P(phql_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'phql' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(phql_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(phql_param) == IS_STRING)) { zephir_get_strval(phql, phql_param); } else { ZEPHIR_INIT_VAR(phql); @@ -2674,11 +2673,11 @@ PHP_METHOD(Phalcon_Mvc_Model_Manager, getNamespaceAlias) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &alias_param); - if (unlikely(Z_TYPE_P(alias_param) != IS_STRING && Z_TYPE_P(alias_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(alias_param) != IS_STRING && Z_TYPE_P(alias_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'alias' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(alias_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(alias_param) == IS_STRING)) { zephir_get_strval(alias, alias_param); } else { ZEPHIR_INIT_VAR(alias); diff --git a/ext/phalcon/mvc/model/message.zep.c b/ext/phalcon/mvc/model/message.zep.c index 96363baf9a9..ce80a9345b2 100644 --- a/ext/phalcon/mvc/model/message.zep.c +++ b/ext/phalcon/mvc/model/message.zep.c @@ -84,11 +84,11 @@ PHP_METHOD(Phalcon_Mvc_Model_Message, __construct) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 4, &message_param, &field, &type, &model, &code_param); - if (unlikely(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'message' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(message_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(message_param) == IS_STRING)) { zephir_get_strval(message, message_param); } else { ZEPHIR_INIT_VAR(message); @@ -134,11 +134,11 @@ PHP_METHOD(Phalcon_Mvc_Model_Message, setType) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &type_param); - if (unlikely(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'type' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(type_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(type_param) == IS_STRING)) { zephir_get_strval(type, type_param); } else { ZEPHIR_INIT_VAR(type); @@ -173,11 +173,11 @@ PHP_METHOD(Phalcon_Mvc_Model_Message, setMessage) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &message_param); - if (unlikely(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'message' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(message_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(message_param) == IS_STRING)) { zephir_get_strval(message, message_param); } else { ZEPHIR_INIT_VAR(message); diff --git a/ext/phalcon/mvc/model/metadata/apc.zep.c b/ext/phalcon/mvc/model/metadata/apc.zep.c index 4fb5e32952b..abe70f54a1c 100644 --- a/ext/phalcon/mvc/model/metadata/apc.zep.c +++ b/ext/phalcon/mvc/model/metadata/apc.zep.c @@ -94,11 +94,11 @@ PHP_METHOD(Phalcon_Mvc_Model_MetaData_Apc, read) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &key_param); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { ZEPHIR_INIT_VAR(key); @@ -130,11 +130,11 @@ PHP_METHOD(Phalcon_Mvc_Model_MetaData_Apc, write) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &key_param, &data); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { ZEPHIR_INIT_VAR(key); diff --git a/ext/phalcon/mvc/model/metadata/files.zep.c b/ext/phalcon/mvc/model/metadata/files.zep.c index 4c29e7d22df..b4ce878ed41 100644 --- a/ext/phalcon/mvc/model/metadata/files.zep.c +++ b/ext/phalcon/mvc/model/metadata/files.zep.c @@ -88,11 +88,11 @@ PHP_METHOD(Phalcon_Mvc_Model_MetaData_Files, read) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &key_param); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { ZEPHIR_INIT_VAR(key); @@ -132,11 +132,11 @@ PHP_METHOD(Phalcon_Mvc_Model_MetaData_Files, write) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &key_param, &data); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { ZEPHIR_INIT_VAR(key); diff --git a/ext/phalcon/mvc/model/metadata/libmemcached.zep.c b/ext/phalcon/mvc/model/metadata/libmemcached.zep.c index f4e8c38cddc..b0296123726 100644 --- a/ext/phalcon/mvc/model/metadata/libmemcached.zep.c +++ b/ext/phalcon/mvc/model/metadata/libmemcached.zep.c @@ -19,7 +19,6 @@ #include "kernel/fcall.h" #include "ext/spl/spl_exceptions.h" #include "kernel/operators.h" -#include "kernel/hash.h" #include "kernel/concat.h" @@ -132,11 +131,11 @@ PHP_METHOD(Phalcon_Mvc_Model_MetaData_Libmemcached, read) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &key_param); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { ZEPHIR_INIT_VAR(key); @@ -166,11 +165,11 @@ PHP_METHOD(Phalcon_Mvc_Model_MetaData_Libmemcached, write) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &key_param, &data); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { ZEPHIR_INIT_VAR(key); @@ -204,8 +203,8 @@ PHP_METHOD(Phalcon_Mvc_Model_MetaData_Libmemcached, reset) { ZEPHIR_INIT_VAR(_0$$3); zephir_is_iterable(meta, &_2$$3, &_1$$3, 0, 0, "phalcon/mvc/model/metadata/libmemcached.zep", 132); for ( - ; zephir_hash_get_current_data_ex(_2$$3, (void**) &_3$$3, &_1$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_2$$3, &_1$$3) + ; zend_hash_get_current_data_ex(_2$$3, (void**) &_3$$3, &_1$$3) == SUCCESS + ; zend_hash_move_forward_ex(_2$$3, &_1$$3) ) { ZEPHIR_GET_HMKEY(key, _2$$3, _1$$3); ZEPHIR_GET_HVALUE(_0$$3, _3$$3); diff --git a/ext/phalcon/mvc/model/metadata/memcache.zep.c b/ext/phalcon/mvc/model/metadata/memcache.zep.c index a0aeac8cc1b..163453af1f4 100644 --- a/ext/phalcon/mvc/model/metadata/memcache.zep.c +++ b/ext/phalcon/mvc/model/metadata/memcache.zep.c @@ -19,7 +19,6 @@ #include "ext/spl/spl_exceptions.h" #include "kernel/exception.h" #include "kernel/operators.h" -#include "kernel/hash.h" #include "kernel/concat.h" @@ -135,11 +134,11 @@ PHP_METHOD(Phalcon_Mvc_Model_MetaData_Memcache, read) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &key_param); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { ZEPHIR_INIT_VAR(key); @@ -169,11 +168,11 @@ PHP_METHOD(Phalcon_Mvc_Model_MetaData_Memcache, write) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &key_param, &data); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { ZEPHIR_INIT_VAR(key); @@ -207,8 +206,8 @@ PHP_METHOD(Phalcon_Mvc_Model_MetaData_Memcache, reset) { ZEPHIR_INIT_VAR(_0$$3); zephir_is_iterable(meta, &_2$$3, &_1$$3, 0, 0, "phalcon/mvc/model/metadata/memcache.zep", 131); for ( - ; zephir_hash_get_current_data_ex(_2$$3, (void**) &_3$$3, &_1$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_2$$3, &_1$$3) + ; zend_hash_get_current_data_ex(_2$$3, (void**) &_3$$3, &_1$$3) == SUCCESS + ; zend_hash_move_forward_ex(_2$$3, &_1$$3) ) { ZEPHIR_GET_HMKEY(key, _2$$3, _1$$3); ZEPHIR_GET_HVALUE(_0$$3, _3$$3); diff --git a/ext/phalcon/mvc/model/metadata/memory.zep.c b/ext/phalcon/mvc/model/metadata/memory.zep.c index e9ef2d30335..f8ad7af1691 100644 --- a/ext/phalcon/mvc/model/metadata/memory.zep.c +++ b/ext/phalcon/mvc/model/metadata/memory.zep.c @@ -69,11 +69,11 @@ PHP_METHOD(Phalcon_Mvc_Model_MetaData_Memory, read) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &key_param); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { ZEPHIR_INIT_VAR(key); @@ -99,11 +99,11 @@ PHP_METHOD(Phalcon_Mvc_Model_MetaData_Memory, write) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &key_param, &data); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { ZEPHIR_INIT_VAR(key); diff --git a/ext/phalcon/mvc/model/metadata/redis.zep.c b/ext/phalcon/mvc/model/metadata/redis.zep.c index 257ecad024d..07ad014af58 100644 --- a/ext/phalcon/mvc/model/metadata/redis.zep.c +++ b/ext/phalcon/mvc/model/metadata/redis.zep.c @@ -19,7 +19,6 @@ #include "ext/spl/spl_exceptions.h" #include "kernel/exception.h" #include "kernel/operators.h" -#include "kernel/hash.h" #include "kernel/concat.h" @@ -138,11 +137,11 @@ PHP_METHOD(Phalcon_Mvc_Model_MetaData_Redis, read) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &key_param); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { ZEPHIR_INIT_VAR(key); @@ -172,11 +171,11 @@ PHP_METHOD(Phalcon_Mvc_Model_MetaData_Redis, write) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &key_param, &data); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { ZEPHIR_INIT_VAR(key); @@ -210,8 +209,8 @@ PHP_METHOD(Phalcon_Mvc_Model_MetaData_Redis, reset) { ZEPHIR_INIT_VAR(_0$$3); zephir_is_iterable(meta, &_2$$3, &_1$$3, 0, 0, "phalcon/mvc/model/metadata/redis.zep", 134); for ( - ; zephir_hash_get_current_data_ex(_2$$3, (void**) &_3$$3, &_1$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_2$$3, &_1$$3) + ; zend_hash_get_current_data_ex(_2$$3, (void**) &_3$$3, &_1$$3) == SUCCESS + ; zend_hash_move_forward_ex(_2$$3, &_1$$3) ) { ZEPHIR_GET_HMKEY(key, _2$$3, _1$$3); ZEPHIR_GET_HVALUE(_0$$3, _3$$3); diff --git a/ext/phalcon/mvc/model/metadata/session.zep.c b/ext/phalcon/mvc/model/metadata/session.zep.c index 2cb9bd5ca9e..11f70523bb8 100644 --- a/ext/phalcon/mvc/model/metadata/session.zep.c +++ b/ext/phalcon/mvc/model/metadata/session.zep.c @@ -86,11 +86,11 @@ PHP_METHOD(Phalcon_Mvc_Model_MetaData_Session, read) { zephir_get_global(&_SESSION, SS("_SESSION") TSRMLS_CC); zephir_fetch_params(1, 1, 0, &key_param); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { ZEPHIR_INIT_VAR(key); @@ -124,11 +124,11 @@ PHP_METHOD(Phalcon_Mvc_Model_MetaData_Session, write) { zephir_get_global(&_SESSION, SS("_SESSION") TSRMLS_CC); zephir_fetch_params(1, 2, 0, &key_param, &data); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { ZEPHIR_INIT_VAR(key); diff --git a/ext/phalcon/mvc/model/metadata/strategy/annotations.zep.c b/ext/phalcon/mvc/model/metadata/strategy/annotations.zep.c index cc31e7f3d49..3fe0e9813ad 100644 --- a/ext/phalcon/mvc/model/metadata/strategy/annotations.zep.c +++ b/ext/phalcon/mvc/model/metadata/strategy/annotations.zep.c @@ -17,7 +17,6 @@ #include "kernel/memory.h" #include "kernel/object.h" #include "kernel/concat.h" -#include "kernel/hash.h" #include "kernel/operators.h" #include "kernel/array.h" @@ -108,8 +107,8 @@ PHP_METHOD(Phalcon_Mvc_Model_MetaData_Strategy_Annotations, getMetaData) { array_init(emptyStringValues); zephir_is_iterable(propertiesAnnotations, &_6, &_5, 0, 0, "phalcon/mvc/model/metadata/strategy/annotations.zep", 184); for ( - ; zephir_hash_get_current_data_ex(_6, (void**) &_7, &_5) == SUCCESS - ; zephir_hash_move_forward_ex(_6, &_5) + ; zend_hash_get_current_data_ex(_6, (void**) &_7, &_5) == SUCCESS + ; zend_hash_move_forward_ex(_6, &_5) ) { ZEPHIR_GET_HMKEY(property, _6, _5); ZEPHIR_GET_HVALUE(propAnnotations, _7); @@ -324,8 +323,8 @@ PHP_METHOD(Phalcon_Mvc_Model_MetaData_Strategy_Annotations, getColumnMaps) { ZVAL_NULL(reversedColumnMap); zephir_is_iterable(propertiesAnnotations, &_6, &_5, 0, 0, "phalcon/mvc/model/metadata/strategy/annotations.zep", 262); for ( - ; zephir_hash_get_current_data_ex(_6, (void**) &_7, &_5) == SUCCESS - ; zephir_hash_move_forward_ex(_6, &_5) + ; zend_hash_get_current_data_ex(_6, (void**) &_7, &_5) == SUCCESS + ; zend_hash_move_forward_ex(_6, &_5) ) { ZEPHIR_GET_HMKEY(property, _6, _5); ZEPHIR_GET_HVALUE(propAnnotations, _7); diff --git a/ext/phalcon/mvc/model/metadata/strategy/introspection.zep.c b/ext/phalcon/mvc/model/metadata/strategy/introspection.zep.c index cd7a3f8accf..916b7cb19f8 100644 --- a/ext/phalcon/mvc/model/metadata/strategy/introspection.zep.c +++ b/ext/phalcon/mvc/model/metadata/strategy/introspection.zep.c @@ -18,7 +18,6 @@ #include "kernel/concat.h" #include "kernel/exception.h" #include "kernel/object.h" -#include "kernel/hash.h" #include "kernel/array.h" @@ -124,8 +123,8 @@ PHP_METHOD(Phalcon_Mvc_Model_MetaData_Strategy_Introspection, getMetaData) { array_init(emptyStringValues); zephir_is_iterable(columns, &_8, &_7, 0, 0, "phalcon/mvc/model/metadata/strategy/introspection.zep", 165); for ( - ; zephir_hash_get_current_data_ex(_8, (void**) &_9, &_7) == SUCCESS - ; zephir_hash_move_forward_ex(_8, &_7) + ; zend_hash_get_current_data_ex(_8, (void**) &_9, &_7) == SUCCESS + ; zend_hash_move_forward_ex(_8, &_7) ) { ZEPHIR_GET_HVALUE(column, _9); ZEPHIR_CALL_METHOD(&fieldName, column, "getname", NULL, 0); @@ -223,8 +222,8 @@ PHP_METHOD(Phalcon_Mvc_Model_MetaData_Strategy_Introspection, getColumnMaps) { ZEPHIR_CPY_WRT(orderedColumnMap, userColumnMap); zephir_is_iterable(userColumnMap, &_1$$3, &_0$$3, 0, 0, "phalcon/mvc/model/metadata/strategy/introspection.zep", 205); for ( - ; zephir_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_1$$3, &_0$$3) + ; zend_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS + ; zend_hash_move_forward_ex(_1$$3, &_0$$3) ) { ZEPHIR_GET_HMKEY(name, _1$$3, _0$$3); ZEPHIR_GET_HVALUE(userName, _2$$3); diff --git a/ext/phalcon/mvc/model/metadata/xcache.zep.c b/ext/phalcon/mvc/model/metadata/xcache.zep.c index 0d568356399..a3bd6fc8e67 100644 --- a/ext/phalcon/mvc/model/metadata/xcache.zep.c +++ b/ext/phalcon/mvc/model/metadata/xcache.zep.c @@ -97,11 +97,11 @@ PHP_METHOD(Phalcon_Mvc_Model_MetaData_Xcache, read) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &key_param); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { ZEPHIR_INIT_VAR(key); @@ -136,11 +136,11 @@ PHP_METHOD(Phalcon_Mvc_Model_MetaData_Xcache, write) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &key_param, &data); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { ZEPHIR_INIT_VAR(key); diff --git a/ext/phalcon/mvc/model/query.zep.c b/ext/phalcon/mvc/model/query.zep.c index d6d068c1301..4112d76f566 100644 --- a/ext/phalcon/mvc/model/query.zep.c +++ b/ext/phalcon/mvc/model/query.zep.c @@ -19,7 +19,6 @@ #include "kernel/operators.h" #include "kernel/exception.h" #include "kernel/concat.h" -#include "kernel/hash.h" #include "ext/spl/spl_exceptions.h" #include "kernel/string.h" #include "phalcon/mvc/model/orm.h" @@ -342,8 +341,8 @@ PHP_METHOD(Phalcon_Mvc_Model_Query, _getQualified) { _9$$12 = zephir_fetch_nproperty_this(this_ptr, SL("_modelsInstances"), PH_NOISY_CC); zephir_is_iterable(_9$$12, &_11$$12, &_10$$12, 0, 0, "phalcon/mvc/model/query.zep", 288); for ( - ; zephir_hash_get_current_data_ex(_11$$12, (void**) &_12$$12, &_10$$12) == SUCCESS - ; zephir_hash_move_forward_ex(_11$$12, &_10$$12) + ; zend_hash_get_current_data_ex(_11$$12, (void**) &_12$$12, &_10$$12) == SUCCESS + ; zend_hash_move_forward_ex(_11$$12, &_10$$12) ) { ZEPHIR_GET_HVALUE(model, _12$$12); ZEPHIR_CALL_METHOD(&_13$$13, metaData, "hasattribute", &_14, 0, model, columnName); @@ -482,8 +481,8 @@ PHP_METHOD(Phalcon_Mvc_Model_Query, _getCaseExpression) { zephir_array_fetch_string(&_0, expr, SL("right"), PH_NOISY | PH_READONLY, "phalcon/mvc/model/query.zep", 365 TSRMLS_CC); zephir_is_iterable(_0, &_2, &_1, 0, 0, "phalcon/mvc/model/query.zep", 380); for ( - ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS - ; zephir_hash_move_forward_ex(_2, &_1) + ; zend_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS + ; zend_hash_move_forward_ex(_2, &_1) ) { ZEPHIR_GET_HVALUE(whenExpr, _3); if (zephir_array_isset_string(whenExpr, SS("right"))) { @@ -551,8 +550,8 @@ PHP_METHOD(Phalcon_Mvc_Model_Query, _getFunctionCall) { array_init(functionArgs); zephir_is_iterable(arguments, &_1$$6, &_0$$6, 0, 0, "phalcon/mvc/model/query.zep", 408); for ( - ; zephir_hash_get_current_data_ex(_1$$6, (void**) &_2$$6, &_0$$6) == SUCCESS - ; zephir_hash_move_forward_ex(_1$$6, &_0$$6) + ; zend_hash_get_current_data_ex(_1$$6, (void**) &_2$$6, &_0$$6) == SUCCESS + ; zend_hash_move_forward_ex(_1$$6, &_0$$6) ) { ZEPHIR_GET_HVALUE(argument, _2$$6); ZEPHIR_CALL_METHOD(&_3$$7, this_ptr, "_getcallargument", &_4, 338, argument); @@ -1214,8 +1213,8 @@ PHP_METHOD(Phalcon_Mvc_Model_Query, _getExpression) { array_init(listItems); zephir_is_iterable(expr, &_40$$71, &_39$$71, 0, 0, "phalcon/mvc/model/query.zep", 762); for ( - ; zephir_hash_get_current_data_ex(_40$$71, (void**) &_41$$71, &_39$$71) == SUCCESS - ; zephir_hash_move_forward_ex(_40$$71, &_39$$71) + ; zend_hash_get_current_data_ex(_40$$71, (void**) &_41$$71, &_39$$71) == SUCCESS + ; zend_hash_move_forward_ex(_40$$71, &_39$$71) ) { ZEPHIR_GET_HVALUE(exprListItem, _41$$71); ZEPHIR_CALL_METHOD(&_42$$72, this_ptr, "_getexpression", &_1, 337, exprListItem); @@ -1264,8 +1263,8 @@ PHP_METHOD(Phalcon_Mvc_Model_Query, _getSelectColumn) { _0$$4 = zephir_fetch_nproperty_this(this_ptr, SL("_models"), PH_NOISY_CC); zephir_is_iterable(_0$$4, &_2$$4, &_1$$4, 0, 0, "phalcon/mvc/model/query.zep", 809); for ( - ; zephir_hash_get_current_data_ex(_2$$4, (void**) &_3$$4, &_1$$4) == SUCCESS - ; zephir_hash_move_forward_ex(_2$$4, &_1$$4) + ; zend_hash_get_current_data_ex(_2$$4, (void**) &_3$$4, &_1$$4) == SUCCESS + ; zend_hash_move_forward_ex(_2$$4, &_1$$4) ) { ZEPHIR_GET_HMKEY(modelName, _2$$4, _1$$4); ZEPHIR_GET_HVALUE(source, _3$$4); @@ -1536,11 +1535,11 @@ PHP_METHOD(Phalcon_Mvc_Model_Query, _getSingleJoin) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 5, 0, &joinType_param, &joinSource, &modelAlias, &joinAlias, &relation); - if (unlikely(Z_TYPE_P(joinType_param) != IS_STRING && Z_TYPE_P(joinType_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(joinType_param) != IS_STRING && Z_TYPE_P(joinType_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'joinType' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(joinType_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(joinType_param) == IS_STRING)) { zephir_get_strval(joinType, joinType_param); } else { ZEPHIR_INIT_VAR(joinType); @@ -1583,8 +1582,8 @@ PHP_METHOD(Phalcon_Mvc_Model_Query, _getSingleJoin) { array_init(sqlJoinPartialConditions); zephir_is_iterable(fields, &_6$$4, &_5$$4, 0, 0, "phalcon/mvc/model/query.zep", 1096); for ( - ; zephir_hash_get_current_data_ex(_6$$4, (void**) &_7$$4, &_5$$4) == SUCCESS - ; zephir_hash_move_forward_ex(_6$$4, &_5$$4) + ; zend_hash_get_current_data_ex(_6$$4, (void**) &_7$$4, &_5$$4) == SUCCESS + ; zend_hash_move_forward_ex(_6$$4, &_5$$4) ) { ZEPHIR_GET_HMKEY(position, _6$$4, _5$$4); ZEPHIR_GET_HVALUE(field, _7$$4); @@ -1683,8 +1682,8 @@ PHP_METHOD(Phalcon_Mvc_Model_Query, _getMultiJoin) { if (Z_TYPE_P(fields) == IS_ARRAY) { zephir_is_iterable(fields, &_1$$3, &_0$$3, 0, 0, "phalcon/mvc/model/query.zep", 1223); for ( - ; zephir_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_1$$3, &_0$$3) + ; zend_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS + ; zend_hash_move_forward_ex(_1$$3, &_0$$3) ) { ZEPHIR_GET_HMKEY(field, _1$$3, _0$$3); ZEPHIR_GET_HVALUE(position, _2$$3); @@ -1856,8 +1855,8 @@ PHP_METHOD(Phalcon_Mvc_Model_Query, _getJoins) { } zephir_is_iterable(selectJoins, &_1, &_0, 0, 0, "phalcon/mvc/model/query.zep", 1474); for ( - ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS - ; zephir_hash_move_forward_ex(_1, &_0) + ; zend_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS + ; zend_hash_move_forward_ex(_1, &_0) ) { ZEPHIR_GET_HVALUE(joinItem, _2); ZEPHIR_CALL_METHOD(&joinData, this_ptr, "_getjoin", &_3, 343, manager, joinItem); @@ -1935,8 +1934,8 @@ PHP_METHOD(Phalcon_Mvc_Model_Query, _getJoins) { zephir_update_property_this(this_ptr, SL("_modelsInstances"), modelsInstances TSRMLS_CC); zephir_is_iterable(joinPrepared, &_13, &_12, 0, 0, "phalcon/mvc/model/query.zep", 1494); for ( - ; zephir_hash_get_current_data_ex(_13, (void**) &_14, &_12) == SUCCESS - ; zephir_hash_move_forward_ex(_13, &_12) + ; zend_hash_get_current_data_ex(_13, (void**) &_14, &_12) == SUCCESS + ; zend_hash_move_forward_ex(_13, &_12) ) { ZEPHIR_GET_HMKEY(joinAliasName, _13, _12); ZEPHIR_GET_HVALUE(joinItem, _14); @@ -1952,8 +1951,8 @@ PHP_METHOD(Phalcon_Mvc_Model_Query, _getJoins) { ZEPHIR_INIT_VAR(_18$$14); zephir_is_iterable(joinPrepared, &_20$$14, &_19$$14, 0, 0, "phalcon/mvc/model/query.zep", 1505); for ( - ; zephir_hash_get_current_data_ex(_20$$14, (void**) &_21$$14, &_19$$14) == SUCCESS - ; zephir_hash_move_forward_ex(_20$$14, &_19$$14) + ; zend_hash_get_current_data_ex(_20$$14, (void**) &_21$$14, &_19$$14) == SUCCESS + ; zend_hash_move_forward_ex(_20$$14, &_19$$14) ) { ZEPHIR_GET_HMKEY(joinAliasName, _20$$14, _19$$14); ZEPHIR_GET_HVALUE(_18$$14, _21$$14); @@ -1979,8 +1978,8 @@ PHP_METHOD(Phalcon_Mvc_Model_Query, _getJoins) { array_init(fromModels); zephir_is_iterable(selectTables, &_25, &_24, 0, 0, "phalcon/mvc/model/query.zep", 1519); for ( - ; zephir_hash_get_current_data_ex(_25, (void**) &_26, &_24) == SUCCESS - ; zephir_hash_move_forward_ex(_25, &_24) + ; zend_hash_get_current_data_ex(_25, (void**) &_26, &_24) == SUCCESS + ; zend_hash_move_forward_ex(_25, &_24) ) { ZEPHIR_GET_HVALUE(tableItem, _26); zephir_array_fetch_string(&_27$$16, tableItem, SL("qualifiedName"), PH_NOISY | PH_READONLY, "phalcon/mvc/model/query.zep", 1513 TSRMLS_CC); @@ -1991,15 +1990,15 @@ PHP_METHOD(Phalcon_Mvc_Model_Query, _getJoins) { ZEPHIR_INIT_VAR(_29); zephir_is_iterable(fromModels, &_31, &_30, 0, 0, "phalcon/mvc/model/query.zep", 1627); for ( - ; zephir_hash_get_current_data_ex(_31, (void**) &_32, &_30) == SUCCESS - ; zephir_hash_move_forward_ex(_31, &_30) + ; zend_hash_get_current_data_ex(_31, (void**) &_32, &_30) == SUCCESS + ; zend_hash_move_forward_ex(_31, &_30) ) { ZEPHIR_GET_HMKEY(fromModelName, _31, _30); ZEPHIR_GET_HVALUE(_29, _32); zephir_is_iterable(joinModels, &_34$$17, &_33$$17, 0, 0, "phalcon/mvc/model/query.zep", 1625); for ( - ; zephir_hash_get_current_data_ex(_34$$17, (void**) &_35$$17, &_33$$17) == SUCCESS - ; zephir_hash_move_forward_ex(_34$$17, &_33$$17) + ; zend_hash_get_current_data_ex(_34$$17, (void**) &_35$$17, &_33$$17) == SUCCESS + ; zend_hash_move_forward_ex(_34$$17, &_33$$17) ) { ZEPHIR_GET_HMKEY(joinAlias, _34$$17, _33$$17); ZEPHIR_GET_HVALUE(joinModel, _35$$17); @@ -2048,8 +2047,8 @@ PHP_METHOD(Phalcon_Mvc_Model_Query, _getJoins) { if (zephir_array_isset_long(sqlJoin, 0)) { zephir_is_iterable(sqlJoin, &_45$$26, &_44$$26, 0, 0, "phalcon/mvc/model/query.zep", 1597); for ( - ; zephir_hash_get_current_data_ex(_45$$26, (void**) &_46$$26, &_44$$26) == SUCCESS - ; zephir_hash_move_forward_ex(_45$$26, &_44$$26) + ; zend_hash_get_current_data_ex(_45$$26, (void**) &_46$$26, &_44$$26) == SUCCESS + ; zend_hash_move_forward_ex(_45$$26, &_44$$26) ) { ZEPHIR_GET_HVALUE(sqlJoinItem, _46$$26); zephir_array_append(&sqlJoins, sqlJoinItem, PH_SEPARATE, "phalcon/mvc/model/query.zep", 1595); @@ -2114,8 +2113,8 @@ PHP_METHOD(Phalcon_Mvc_Model_Query, _getOrderClause) { array_init(orderParts); zephir_is_iterable(orderColumns, &_1, &_0, 0, 0, "phalcon/mvc/model/query.zep", 1668); for ( - ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS - ; zephir_hash_move_forward_ex(_1, &_0) + ; zend_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS + ; zend_hash_move_forward_ex(_1, &_0) ) { ZEPHIR_GET_HVALUE(orderItem, _2); zephir_array_fetch_string(&_3$$5, orderItem, SL("column"), PH_NOISY | PH_READONLY, "phalcon/mvc/model/query.zep", 1650 TSRMLS_CC); @@ -2170,8 +2169,8 @@ PHP_METHOD(Phalcon_Mvc_Model_Query, _getGroupClause) { array_init(groupParts); zephir_is_iterable(group, &_1$$3, &_0$$3, 0, 0, "phalcon/mvc/model/query.zep", 1686); for ( - ; zephir_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_1$$3, &_0$$3) + ; zend_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS + ; zend_hash_move_forward_ex(_1$$3, &_0$$3) ) { ZEPHIR_GET_HVALUE(groupItem, _2$$3); ZEPHIR_CALL_METHOD(&_3$$4, this_ptr, "_getexpression", &_4, 337, groupItem); @@ -2321,8 +2320,8 @@ PHP_METHOD(Phalcon_Mvc_Model_Query, _prepareSelect) { array_init(automaticJoins); zephir_is_iterable(selectedModels, &_1, &_0, 0, 0, "phalcon/mvc/model/query.zep", 1940); for ( - ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS - ; zephir_hash_move_forward_ex(_1, &_0) + ; zend_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS + ; zend_hash_move_forward_ex(_1, &_0) ) { ZEPHIR_GET_HVALUE(selectedModel, _2); ZEPHIR_OBS_NVAR(qualifiedName); @@ -2404,8 +2403,8 @@ PHP_METHOD(Phalcon_Mvc_Model_Query, _prepareSelect) { } zephir_is_iterable(withs, &_14$$24, &_13$$24, 0, 0, "phalcon/mvc/model/query.zep", 1932); for ( - ; zephir_hash_get_current_data_ex(_14$$24, (void**) &_15$$24, &_13$$24) == SUCCESS - ; zephir_hash_move_forward_ex(_14$$24, &_13$$24) + ; zend_hash_get_current_data_ex(_14$$24, (void**) &_15$$24, &_13$$24) == SUCCESS + ; zend_hash_move_forward_ex(_14$$24, &_13$$24) ) { ZEPHIR_GET_HVALUE(withItem, _15$$24); ZEPHIR_SINIT_NVAR(_16$$27); @@ -2557,16 +2556,16 @@ PHP_METHOD(Phalcon_Mvc_Model_Query, _prepareSelect) { array_init(sqlColumnAliases); zephir_is_iterable(selectColumns, &_43, &_42, 0, 0, "phalcon/mvc/model/query.zep", 2025); for ( - ; zephir_hash_get_current_data_ex(_43, (void**) &_44, &_42) == SUCCESS - ; zephir_hash_move_forward_ex(_43, &_42) + ; zend_hash_get_current_data_ex(_43, (void**) &_44, &_42) == SUCCESS + ; zend_hash_move_forward_ex(_43, &_42) ) { ZEPHIR_GET_HVALUE(column, _44); ZEPHIR_CALL_METHOD(&_45$$41, this_ptr, "_getselectcolumn", &_46, 348, column); zephir_check_call_status(); zephir_is_iterable(_45$$41, &_48$$41, &_47$$41, 0, 0, "phalcon/mvc/model/query.zep", 2024); for ( - ; zephir_hash_get_current_data_ex(_48$$41, (void**) &_49$$41, &_47$$41) == SUCCESS - ; zephir_hash_move_forward_ex(_48$$41, &_47$$41) + ; zend_hash_get_current_data_ex(_48$$41, (void**) &_49$$41, &_47$$41) == SUCCESS + ; zend_hash_move_forward_ex(_48$$41, &_47$$41) ) { ZEPHIR_GET_HVALUE(sqlColumn, _49$$41); ZEPHIR_OBS_NVAR(alias); @@ -2720,8 +2719,8 @@ PHP_METHOD(Phalcon_Mvc_Model_Query, _prepareInsert) { zephir_array_fetch_string(&_4, ast, SL("values"), PH_NOISY | PH_READONLY, "phalcon/mvc/model/query.zep", 2133 TSRMLS_CC); zephir_is_iterable(_4, &_6, &_5, 0, 0, "phalcon/mvc/model/query.zep", 2142); for ( - ; zephir_hash_get_current_data_ex(_6, (void**) &_7, &_5) == SUCCESS - ; zephir_hash_move_forward_ex(_6, &_5) + ; zend_hash_get_current_data_ex(_6, (void**) &_7, &_5) == SUCCESS + ; zend_hash_move_forward_ex(_6, &_5) ) { ZEPHIR_GET_HVALUE(exprValue, _7); ZEPHIR_INIT_NVAR(_8$$9); @@ -2752,8 +2751,8 @@ PHP_METHOD(Phalcon_Mvc_Model_Query, _prepareInsert) { array_init(sqlFields); zephir_is_iterable(fields, &_14$$10, &_13$$10, 0, 0, "phalcon/mvc/model/query.zep", 2166); for ( - ; zephir_hash_get_current_data_ex(_14$$10, (void**) &_15$$10, &_13$$10) == SUCCESS - ; zephir_hash_move_forward_ex(_14$$10, &_13$$10) + ; zend_hash_get_current_data_ex(_14$$10, (void**) &_15$$10, &_13$$10) == SUCCESS + ; zend_hash_move_forward_ex(_14$$10, &_13$$10) ) { ZEPHIR_GET_HVALUE(field, _15$$10); ZEPHIR_OBS_NVAR(name); @@ -2836,8 +2835,8 @@ PHP_METHOD(Phalcon_Mvc_Model_Query, _prepareUpdate) { zephir_read_property_this(&manager, this_ptr, SL("_manager"), PH_NOISY_CC); zephir_is_iterable(updateTables, &_1, &_0, 0, 0, "phalcon/mvc/model/query.zep", 2273); for ( - ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS - ; zephir_hash_move_forward_ex(_1, &_0) + ; zend_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS + ; zend_hash_move_forward_ex(_1, &_0) ) { ZEPHIR_GET_HVALUE(table, _2); ZEPHIR_OBS_NVAR(qualifiedName); @@ -2908,8 +2907,8 @@ PHP_METHOD(Phalcon_Mvc_Model_Query, _prepareUpdate) { notQuoting = 0; zephir_is_iterable(updateValues, &_10, &_9, 0, 0, "phalcon/mvc/model/query.zep", 2297); for ( - ; zephir_hash_get_current_data_ex(_10, (void**) &_11, &_9) == SUCCESS - ; zephir_hash_move_forward_ex(_10, &_9) + ; zend_hash_get_current_data_ex(_10, (void**) &_11, &_9) == SUCCESS + ; zend_hash_move_forward_ex(_10, &_9) ) { ZEPHIR_GET_HVALUE(updateValue, _11); zephir_array_fetch_string(&_13$$17, updateValue, SL("column"), PH_NOISY | PH_READONLY, "phalcon/mvc/model/query.zep", 2289 TSRMLS_CC); @@ -3012,8 +3011,8 @@ PHP_METHOD(Phalcon_Mvc_Model_Query, _prepareDelete) { zephir_read_property_this(&manager, this_ptr, SL("_manager"), PH_NOISY_CC); zephir_is_iterable(deleteTables, &_1, &_0, 0, 0, "phalcon/mvc/model/query.zep", 2403); for ( - ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS - ; zephir_hash_move_forward_ex(_1, &_0) + ; zend_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS + ; zend_hash_move_forward_ex(_1, &_0) ) { ZEPHIR_GET_HVALUE(table, _2); ZEPHIR_OBS_NVAR(qualifiedName); @@ -3224,8 +3223,8 @@ PHP_METHOD(Phalcon_Mvc_Model_Query, _executeSelect) { zephir_array_fetch_string(&models, intermediate, SL("models"), PH_NOISY, "phalcon/mvc/model/query.zep", 2536 TSRMLS_CC); zephir_is_iterable(models, &_1, &_0, 0, 0, "phalcon/mvc/model/query.zep", 2564); for ( - ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS - ; zephir_hash_move_forward_ex(_1, &_0) + ; zend_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS + ; zend_hash_move_forward_ex(_1, &_0) ) { ZEPHIR_GET_HVALUE(modelName, _2); ZEPHIR_OBS_NVAR(model); @@ -3265,8 +3264,8 @@ PHP_METHOD(Phalcon_Mvc_Model_Query, _executeSelect) { ZEPHIR_CPY_WRT(columns1, columns); zephir_is_iterable(columns, &_8, &_7, 0, 0, "phalcon/mvc/model/query.zep", 2591); for ( - ; zephir_hash_get_current_data_ex(_8, (void**) &_9, &_7) == SUCCESS - ; zephir_hash_move_forward_ex(_8, &_7) + ; zend_hash_get_current_data_ex(_8, (void**) &_9, &_7) == SUCCESS + ; zend_hash_move_forward_ex(_8, &_7) ) { ZEPHIR_GET_HVALUE(column, _9); if (Z_TYPE_P(column) != IS_ARRAY) { @@ -3309,8 +3308,8 @@ PHP_METHOD(Phalcon_Mvc_Model_Query, _executeSelect) { zephir_read_property_this(&metaData, this_ptr, SL("_metaData"), PH_NOISY_CC); zephir_is_iterable(columns, &_12, &_11, 0, 0, "phalcon/mvc/model/query.zep", 2690); for ( - ; zephir_hash_get_current_data_ex(_12, (void**) &_13, &_11) == SUCCESS - ; zephir_hash_move_forward_ex(_12, &_11) + ; zend_hash_get_current_data_ex(_12, (void**) &_13, &_11) == SUCCESS + ; zend_hash_move_forward_ex(_12, &_11) ) { ZEPHIR_GET_HMKEY(aliasCopy, _12, _11); ZEPHIR_GET_HVALUE(column, _13); @@ -3339,8 +3338,8 @@ PHP_METHOD(Phalcon_Mvc_Model_Query, _executeSelect) { } zephir_is_iterable(attributes, &_20$$24, &_19$$24, 0, 0, "phalcon/mvc/model/query.zep", 2646); for ( - ; zephir_hash_get_current_data_ex(_20$$24, (void**) &_21$$24, &_19$$24) == SUCCESS - ; zephir_hash_move_forward_ex(_20$$24, &_19$$24) + ; zend_hash_get_current_data_ex(_20$$24, (void**) &_21$$24, &_19$$24) == SUCCESS + ; zend_hash_move_forward_ex(_20$$24, &_19$$24) ) { ZEPHIR_GET_HVALUE(attribute, _21$$24); ZEPHIR_INIT_NVAR(_22$$27); @@ -3366,8 +3365,8 @@ PHP_METHOD(Phalcon_Mvc_Model_Query, _executeSelect) { } else { zephir_is_iterable(attributes, &_28$$29, &_27$$29, 0, 0, "phalcon/mvc/model/query.zep", 2664); for ( - ; zephir_hash_get_current_data_ex(_28$$29, (void**) &_29$$29, &_27$$29) == SUCCESS - ; zephir_hash_move_forward_ex(_28$$29, &_27$$29) + ; zend_hash_get_current_data_ex(_28$$29, (void**) &_29$$29, &_27$$29) == SUCCESS + ; zend_hash_move_forward_ex(_28$$29, &_27$$29) ) { ZEPHIR_GET_HVALUE(attribute, _29$$29); ZEPHIR_INIT_NVAR(_30$$30); @@ -3412,8 +3411,8 @@ PHP_METHOD(Phalcon_Mvc_Model_Query, _executeSelect) { array_init(processed); zephir_is_iterable(bindParams, &_33$$37, &_32$$37, 0, 0, "phalcon/mvc/model/query.zep", 2711); for ( - ; zephir_hash_get_current_data_ex(_33$$37, (void**) &_34$$37, &_32$$37) == SUCCESS - ; zephir_hash_move_forward_ex(_33$$37, &_32$$37) + ; zend_hash_get_current_data_ex(_33$$37, (void**) &_34$$37, &_32$$37) == SUCCESS + ; zend_hash_move_forward_ex(_33$$37, &_32$$37) ) { ZEPHIR_GET_HMKEY(wildcard, _33$$37, _32$$37); ZEPHIR_GET_HVALUE(value, _34$$37); @@ -3438,8 +3437,8 @@ PHP_METHOD(Phalcon_Mvc_Model_Query, _executeSelect) { array_init(processedTypes); zephir_is_iterable(bindTypes, &_37$$43, &_36$$43, 0, 0, "phalcon/mvc/model/query.zep", 2727); for ( - ; zephir_hash_get_current_data_ex(_37$$43, (void**) &_38$$43, &_36$$43) == SUCCESS - ; zephir_hash_move_forward_ex(_37$$43, &_36$$43) + ; zend_hash_get_current_data_ex(_37$$43, (void**) &_38$$43, &_36$$43) == SUCCESS + ; zend_hash_move_forward_ex(_37$$43, &_36$$43) ) { ZEPHIR_GET_HMKEY(typeWildcard, _37$$43, _36$$43); ZEPHIR_GET_HVALUE(value, _38$$43); @@ -3516,8 +3515,8 @@ PHP_METHOD(Phalcon_Mvc_Model_Query, _executeSelect) { zephir_check_call_status(); zephir_is_iterable(_43$$60, &_45$$60, &_44$$60, 0, 0, "phalcon/mvc/model/query.zep", 2813); for ( - ; zephir_hash_get_current_data_ex(_45$$60, (void**) &_46$$60, &_44$$60) == SUCCESS - ; zephir_hash_move_forward_ex(_45$$60, &_44$$60) + ; zend_hash_get_current_data_ex(_45$$60, (void**) &_46$$60, &_44$$60) == SUCCESS + ; zend_hash_move_forward_ex(_45$$60, &_44$$60) ) { ZEPHIR_GET_HVALUE(attribute, _46$$60); ZEPHIR_INIT_NVAR(_47$$61); @@ -3532,8 +3531,8 @@ PHP_METHOD(Phalcon_Mvc_Model_Query, _executeSelect) { array_init(simpleColumnMap); zephir_is_iterable(columnMap, &_50$$62, &_49$$62, 0, 0, "phalcon/mvc/model/query.zep", 2818); for ( - ; zephir_hash_get_current_data_ex(_50$$62, (void**) &_51$$62, &_49$$62) == SUCCESS - ; zephir_hash_move_forward_ex(_50$$62, &_49$$62) + ; zend_hash_get_current_data_ex(_50$$62, (void**) &_51$$62, &_49$$62) == SUCCESS + ; zend_hash_move_forward_ex(_50$$62, &_49$$62) ) { ZEPHIR_GET_HMKEY(column, _50$$62, _49$$62); ZEPHIR_GET_HVALUE(attribute, _51$$62); @@ -3693,8 +3692,8 @@ PHP_METHOD(Phalcon_Mvc_Model_Query, _executeInsert) { array_init(insertValues); zephir_is_iterable(values, &_3, &_2, 0, 0, "phalcon/mvc/model/query.zep", 2983); for ( - ; zephir_hash_get_current_data_ex(_3, (void**) &_4, &_2) == SUCCESS - ; zephir_hash_move_forward_ex(_3, &_2) + ; zend_hash_get_current_data_ex(_3, (void**) &_4, &_2) == SUCCESS + ; zend_hash_move_forward_ex(_3, &_2) ) { ZEPHIR_GET_HMKEY(number, _3, _2); ZEPHIR_GET_HVALUE(value, _4); @@ -3846,8 +3845,8 @@ PHP_METHOD(Phalcon_Mvc_Model_Query, _executeUpdate) { ZEPHIR_CPY_WRT(selectBindTypes, bindTypes); zephir_is_iterable(fields, &_3, &_2, 0, 0, "phalcon/mvc/model/query.zep", 3103); for ( - ; zephir_hash_get_current_data_ex(_3, (void**) &_4, &_2) == SUCCESS - ; zephir_hash_move_forward_ex(_3, &_2) + ; zend_hash_get_current_data_ex(_3, (void**) &_4, &_2) == SUCCESS + ; zend_hash_move_forward_ex(_3, &_2) ) { ZEPHIR_GET_HMKEY(number, _3, _2); ZEPHIR_GET_HVALUE(field, _4); diff --git a/ext/phalcon/mvc/model/query/builder.zep.c b/ext/phalcon/mvc/model/query/builder.zep.c index 78ae3f2eccb..131ab2d6b4e 100644 --- a/ext/phalcon/mvc/model/query/builder.zep.c +++ b/ext/phalcon/mvc/model/query/builder.zep.c @@ -15,7 +15,6 @@ #include "kernel/array.h" #include "kernel/memory.h" #include "kernel/object.h" -#include "kernel/hash.h" #include "kernel/operators.h" #include "kernel/string.h" #include "ext/spl/spl_exceptions.h" @@ -142,8 +141,8 @@ PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, __construct) { array_init(mergedTypes); zephir_is_iterable(conditions, &_1$$7, &_0$$7, 0, 0, "phalcon/mvc/model/query/builder.zep", 152); for ( - ; zephir_hash_get_current_data_ex(_1$$7, (void**) &_2$$7, &_0$$7) == SUCCESS - ; zephir_hash_move_forward_ex(_1$$7, &_0$$7) + ; zend_hash_get_current_data_ex(_1$$7, (void**) &_2$$7, &_0$$7) == SUCCESS + ; zend_hash_move_forward_ex(_1$$7, &_0$$7) ) { ZEPHIR_GET_HVALUE(singleConditionArray, _2$$7); if (Z_TYPE_P(singleConditionArray) == IS_ARRAY) { @@ -513,11 +512,11 @@ PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, join) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 3, &model_param, &conditions, &alias, &type); - if (unlikely(Z_TYPE_P(model_param) != IS_STRING && Z_TYPE_P(model_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(model_param) != IS_STRING && Z_TYPE_P(model_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'model' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(model_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(model_param) == IS_STRING)) { zephir_get_strval(model, model_param); } else { ZEPHIR_INIT_VAR(model); @@ -574,11 +573,11 @@ PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, innerJoin) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &model_param, &conditions, &alias); - if (unlikely(Z_TYPE_P(model_param) != IS_STRING && Z_TYPE_P(model_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(model_param) != IS_STRING && Z_TYPE_P(model_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'model' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(model_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(model_param) == IS_STRING)) { zephir_get_strval(model, model_param); } else { ZEPHIR_INIT_VAR(model); @@ -626,11 +625,11 @@ PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, leftJoin) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &model_param, &conditions, &alias); - if (unlikely(Z_TYPE_P(model_param) != IS_STRING && Z_TYPE_P(model_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(model_param) != IS_STRING && Z_TYPE_P(model_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'model' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(model_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(model_param) == IS_STRING)) { zephir_get_strval(model, model_param); } else { ZEPHIR_INIT_VAR(model); @@ -678,11 +677,11 @@ PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, rightJoin) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &model_param, &conditions, &alias); - if (unlikely(Z_TYPE_P(model_param) != IS_STRING && Z_TYPE_P(model_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(model_param) != IS_STRING && Z_TYPE_P(model_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'model' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(model_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(model_param) == IS_STRING)) { zephir_get_strval(model, model_param); } else { ZEPHIR_INIT_VAR(model); @@ -813,11 +812,11 @@ PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, andWhere) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &conditions_param, &bindParams, &bindTypes); - if (unlikely(Z_TYPE_P(conditions_param) != IS_STRING && Z_TYPE_P(conditions_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(conditions_param) != IS_STRING && Z_TYPE_P(conditions_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'conditions' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(conditions_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(conditions_param) == IS_STRING)) { zephir_get_strval(conditions, conditions_param); } else { ZEPHIR_INIT_VAR(conditions); @@ -873,11 +872,11 @@ PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, orWhere) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &conditions_param, &bindParams, &bindTypes); - if (unlikely(Z_TYPE_P(conditions_param) != IS_STRING && Z_TYPE_P(conditions_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(conditions_param) != IS_STRING && Z_TYPE_P(conditions_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'conditions' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(conditions_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(conditions_param) == IS_STRING)) { zephir_get_strval(conditions, conditions_param); } else { ZEPHIR_INIT_VAR(conditions); @@ -922,11 +921,11 @@ PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, betweenWhere) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 1, &expr_param, &minimum, &maximum, &operator_param); - if (unlikely(Z_TYPE_P(expr_param) != IS_STRING && Z_TYPE_P(expr_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(expr_param) != IS_STRING && Z_TYPE_P(expr_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'expr' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(expr_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(expr_param) == IS_STRING)) { zephir_get_strval(expr, expr_param); } else { ZEPHIR_INIT_VAR(expr); @@ -936,11 +935,11 @@ PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, betweenWhere) { ZEPHIR_INIT_VAR(operator); ZVAL_STRING(operator, "and", 1); } else { - if (unlikely(Z_TYPE_P(operator_param) != IS_STRING && Z_TYPE_P(operator_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(operator_param) != IS_STRING && Z_TYPE_P(operator_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'operator' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(operator_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(operator_param) == IS_STRING)) { zephir_get_strval(operator, operator_param); } else { ZEPHIR_INIT_VAR(operator); @@ -1010,11 +1009,11 @@ PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, notBetweenWhere) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 1, &expr_param, &minimum, &maximum, &operator_param); - if (unlikely(Z_TYPE_P(expr_param) != IS_STRING && Z_TYPE_P(expr_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(expr_param) != IS_STRING && Z_TYPE_P(expr_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'expr' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(expr_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(expr_param) == IS_STRING)) { zephir_get_strval(expr, expr_param); } else { ZEPHIR_INIT_VAR(expr); @@ -1024,11 +1023,11 @@ PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, notBetweenWhere) { ZEPHIR_INIT_VAR(operator); ZVAL_STRING(operator, "and", 1); } else { - if (unlikely(Z_TYPE_P(operator_param) != IS_STRING && Z_TYPE_P(operator_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(operator_param) != IS_STRING && Z_TYPE_P(operator_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'operator' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(operator_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(operator_param) == IS_STRING)) { zephir_get_strval(operator, operator_param); } else { ZEPHIR_INIT_VAR(operator); @@ -1100,11 +1099,11 @@ PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, inWhere) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 1, &expr_param, &values_param, &operator_param); - if (unlikely(Z_TYPE_P(expr_param) != IS_STRING && Z_TYPE_P(expr_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(expr_param) != IS_STRING && Z_TYPE_P(expr_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'expr' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(expr_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(expr_param) == IS_STRING)) { zephir_get_strval(expr, expr_param); } else { ZEPHIR_INIT_VAR(expr); @@ -1115,11 +1114,11 @@ PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, inWhere) { ZEPHIR_INIT_VAR(operator); ZVAL_STRING(operator, "and", 1); } else { - if (unlikely(Z_TYPE_P(operator_param) != IS_STRING && Z_TYPE_P(operator_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(operator_param) != IS_STRING && Z_TYPE_P(operator_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'operator' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(operator_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(operator_param) == IS_STRING)) { zephir_get_strval(operator, operator_param); } else { ZEPHIR_INIT_VAR(operator); @@ -1164,8 +1163,8 @@ PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, inWhere) { array_init(bindKeys); zephir_is_iterable(values, &_8, &_7, 0, 0, "phalcon/mvc/model/query/builder.zep", 804); for ( - ; zephir_hash_get_current_data_ex(_8, (void**) &_9, &_7) == SUCCESS - ; zephir_hash_move_forward_ex(_8, &_7) + ; zend_hash_get_current_data_ex(_8, (void**) &_9, &_7) == SUCCESS + ; zend_hash_move_forward_ex(_8, &_7) ) { ZEPHIR_GET_HVALUE(value, _9); ZEPHIR_SINIT_NVAR(_10$$5); @@ -1212,11 +1211,11 @@ PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, notInWhere) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 1, &expr_param, &values_param, &operator_param); - if (unlikely(Z_TYPE_P(expr_param) != IS_STRING && Z_TYPE_P(expr_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(expr_param) != IS_STRING && Z_TYPE_P(expr_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'expr' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(expr_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(expr_param) == IS_STRING)) { zephir_get_strval(expr, expr_param); } else { ZEPHIR_INIT_VAR(expr); @@ -1227,11 +1226,11 @@ PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, notInWhere) { ZEPHIR_INIT_VAR(operator); ZVAL_STRING(operator, "and", 1); } else { - if (unlikely(Z_TYPE_P(operator_param) != IS_STRING && Z_TYPE_P(operator_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(operator_param) != IS_STRING && Z_TYPE_P(operator_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'operator' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(operator_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(operator_param) == IS_STRING)) { zephir_get_strval(operator, operator_param); } else { ZEPHIR_INIT_VAR(operator); @@ -1276,8 +1275,8 @@ PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, notInWhere) { array_init(bindKeys); zephir_is_iterable(values, &_8, &_7, 0, 0, "phalcon/mvc/model/query/builder.zep", 853); for ( - ; zephir_hash_get_current_data_ex(_8, (void**) &_9, &_7) == SUCCESS - ; zephir_hash_move_forward_ex(_8, &_7) + ; zend_hash_get_current_data_ex(_8, (void**) &_9, &_7) == SUCCESS + ; zend_hash_move_forward_ex(_8, &_7) ) { ZEPHIR_GET_HVALUE(value, _9); ZEPHIR_SINIT_NVAR(_10$$5); @@ -1369,11 +1368,11 @@ PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, having) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &having_param); - if (unlikely(Z_TYPE_P(having_param) != IS_STRING && Z_TYPE_P(having_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(having_param) != IS_STRING && Z_TYPE_P(having_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'having' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(having_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(having_param) == IS_STRING)) { zephir_get_strval(having, having_param); } else { ZEPHIR_INIT_VAR(having); @@ -1454,7 +1453,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, limit) { ZEPHIR_CALL_FUNCTION(&_1, "abs", &_2, 198, &_0); zephir_check_call_status(); limit = zephir_get_numberval(_1); - if (unlikely(limit == 0)) { + if (UNEXPECTED(limit == 0)) { RETURN_THIS(); } ZEPHIR_INIT_ZVAL_NREF(_3); @@ -1695,8 +1694,8 @@ PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, getPhql) { array_init(selectedColumns); zephir_is_iterable(columns, &_12$$25, &_11$$25, 0, 0, "phalcon/mvc/model/query/builder.zep", 1141); for ( - ; zephir_hash_get_current_data_ex(_12$$25, (void**) &_13$$25, &_11$$25) == SUCCESS - ; zephir_hash_move_forward_ex(_12$$25, &_11$$25) + ; zend_hash_get_current_data_ex(_12$$25, (void**) &_13$$25, &_11$$25) == SUCCESS + ; zend_hash_move_forward_ex(_12$$25, &_11$$25) ) { ZEPHIR_GET_HMKEY(columnAlias, _12$$25, _11$$25); ZEPHIR_GET_HVALUE(column, _13$$25); @@ -1722,8 +1721,8 @@ PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, getPhql) { array_init(selectedColumns); zephir_is_iterable(models, &_18$$31, &_17$$31, 0, 0, "phalcon/mvc/model/query/builder.zep", 1164); for ( - ; zephir_hash_get_current_data_ex(_18$$31, (void**) &_19$$31, &_17$$31) == SUCCESS - ; zephir_hash_move_forward_ex(_18$$31, &_17$$31) + ; zend_hash_get_current_data_ex(_18$$31, (void**) &_19$$31, &_17$$31) == SUCCESS + ; zend_hash_move_forward_ex(_18$$31, &_17$$31) ) { ZEPHIR_GET_HMKEY(modelColumnAlias, _18$$31, _17$$31); ZEPHIR_GET_HVALUE(model, _19$$31); @@ -1755,8 +1754,8 @@ PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, getPhql) { array_init(selectedModels); zephir_is_iterable(models, &_26$$36, &_25$$36, 0, 0, "phalcon/mvc/model/query/builder.zep", 1187); for ( - ; zephir_hash_get_current_data_ex(_26$$36, (void**) &_27$$36, &_25$$36) == SUCCESS - ; zephir_hash_move_forward_ex(_26$$36, &_25$$36) + ; zend_hash_get_current_data_ex(_26$$36, (void**) &_27$$36, &_25$$36) == SUCCESS + ; zend_hash_move_forward_ex(_26$$36, &_25$$36) ) { ZEPHIR_GET_HMKEY(modelAlias, _26$$36, _25$$36); ZEPHIR_GET_HVALUE(model, _27$$36); @@ -1790,8 +1789,8 @@ PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, getPhql) { if (Z_TYPE_P(joins) == IS_ARRAY) { zephir_is_iterable(joins, &_35$$41, &_34$$41, 0, 0, "phalcon/mvc/model/query/builder.zep", 1244); for ( - ; zephir_hash_get_current_data_ex(_35$$41, (void**) &_36$$41, &_34$$41) == SUCCESS - ; zephir_hash_move_forward_ex(_35$$41, &_34$$41) + ; zend_hash_get_current_data_ex(_35$$41, (void**) &_36$$41, &_34$$41) == SUCCESS + ; zend_hash_move_forward_ex(_35$$41, &_34$$41) ) { ZEPHIR_GET_HVALUE(join, _36$$41); ZEPHIR_OBS_NVAR(joinModel); @@ -1857,8 +1856,8 @@ PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, getPhql) { array_init(groupItems); zephir_is_iterable(group, &_50$$49, &_49$$49, 0, 0, "phalcon/mvc/model/query/builder.zep", 1271); for ( - ; zephir_hash_get_current_data_ex(_50$$49, (void**) &_51$$49, &_49$$49) == SUCCESS - ; zephir_hash_move_forward_ex(_50$$49, &_49$$49) + ; zend_hash_get_current_data_ex(_50$$49, (void**) &_51$$49, &_49$$49) == SUCCESS + ; zend_hash_move_forward_ex(_50$$49, &_49$$49) ) { ZEPHIR_GET_HVALUE(groupItem, _51$$49); ZEPHIR_CALL_METHOD(&_52$$52, this_ptr, "autoescape", &_7, 369, groupItem); @@ -1888,8 +1887,8 @@ PHP_METHOD(Phalcon_Mvc_Model_Query_Builder, getPhql) { array_init(orderItems); zephir_is_iterable(order, &_57$$56, &_56$$56, 0, 0, "phalcon/mvc/model/query/builder.zep", 1291); for ( - ; zephir_hash_get_current_data_ex(_57$$56, (void**) &_58$$56, &_56$$56) == SUCCESS - ; zephir_hash_move_forward_ex(_57$$56, &_56$$56) + ; zend_hash_get_current_data_ex(_57$$56, (void**) &_58$$56, &_56$$56) == SUCCESS + ; zend_hash_move_forward_ex(_57$$56, &_56$$56) ) { ZEPHIR_GET_HVALUE(orderItem, _58$$56); ZEPHIR_CALL_METHOD(&_59$$57, this_ptr, "autoescape", &_7, 369, orderItem); diff --git a/ext/phalcon/mvc/model/query/lang.zep.c b/ext/phalcon/mvc/model/query/lang.zep.c index eedb0be6ed6..bab7b2df953 100644 --- a/ext/phalcon/mvc/model/query/lang.zep.c +++ b/ext/phalcon/mvc/model/query/lang.zep.c @@ -61,11 +61,11 @@ PHP_METHOD(Phalcon_Mvc_Model_Query_Lang, parsePHQL) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &phql_param); - if (unlikely(Z_TYPE_P(phql_param) != IS_STRING && Z_TYPE_P(phql_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(phql_param) != IS_STRING && Z_TYPE_P(phql_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'phql' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(phql_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(phql_param) == IS_STRING)) { zephir_get_strval(phql, phql_param); } else { ZEPHIR_INIT_VAR(phql); diff --git a/ext/phalcon/mvc/model/relation.zep.c b/ext/phalcon/mvc/model/relation.zep.c index 96ffb272ce0..825eeff82c2 100644 --- a/ext/phalcon/mvc/model/relation.zep.c +++ b/ext/phalcon/mvc/model/relation.zep.c @@ -83,11 +83,11 @@ PHP_METHOD(Phalcon_Mvc_Model_Relation, __construct) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 4, 1, &type, &referencedModel_param, &fields, &referencedFields, &options); - if (unlikely(Z_TYPE_P(referencedModel_param) != IS_STRING && Z_TYPE_P(referencedModel_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(referencedModel_param) != IS_STRING && Z_TYPE_P(referencedModel_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'referencedModel' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(referencedModel_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(referencedModel_param) == IS_STRING)) { zephir_get_strval(referencedModel, referencedModel_param); } else { ZEPHIR_INIT_VAR(referencedModel); @@ -122,11 +122,11 @@ PHP_METHOD(Phalcon_Mvc_Model_Relation, setIntermediateRelation) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 0, &intermediateFields, &intermediateModel_param, &intermediateReferencedFields); - if (unlikely(Z_TYPE_P(intermediateModel_param) != IS_STRING && Z_TYPE_P(intermediateModel_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(intermediateModel_param) != IS_STRING && Z_TYPE_P(intermediateModel_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'intermediateModel' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(intermediateModel_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(intermediateModel_param) == IS_STRING)) { zephir_get_strval(intermediateModel, intermediateModel_param); } else { ZEPHIR_INIT_VAR(intermediateModel); @@ -214,11 +214,11 @@ PHP_METHOD(Phalcon_Mvc_Model_Relation, getOption) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); diff --git a/ext/phalcon/mvc/model/resultset.zep.c b/ext/phalcon/mvc/model/resultset.zep.c index 165f7b4ff86..68bc0e94ae7 100644 --- a/ext/phalcon/mvc/model/resultset.zep.c +++ b/ext/phalcon/mvc/model/resultset.zep.c @@ -362,7 +362,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Resultset, offsetGet) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &index_param); - if (unlikely(Z_TYPE_P(index_param) != IS_LONG)) { + if (UNEXPECTED(Z_TYPE_P(index_param) != IS_LONG)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'index' must be a int") TSRMLS_CC); RETURN_MM_NULL(); } diff --git a/ext/phalcon/mvc/model/resultset/complex.zep.c b/ext/phalcon/mvc/model/resultset/complex.zep.c index d4ed1a488ae..eb5663dca40 100644 --- a/ext/phalcon/mvc/model/resultset/complex.zep.c +++ b/ext/phalcon/mvc/model/resultset/complex.zep.c @@ -16,7 +16,6 @@ #include "kernel/fcall.h" #include "kernel/memory.h" #include "kernel/operators.h" -#include "kernel/hash.h" #include "kernel/exception.h" #include "kernel/array.h" #include "kernel/concat.h" @@ -137,8 +136,8 @@ PHP_METHOD(Phalcon_Mvc_Model_Resultset_Complex, current) { _1 = zephir_fetch_nproperty_this(this_ptr, SL("_columnTypes"), PH_NOISY_CC); zephir_is_iterable(_1, &_3, &_2, 0, 0, "phalcon/mvc/model/resultset/complex.zep", 246); for ( - ; zephir_hash_get_current_data_ex(_3, (void**) &_4, &_2) == SUCCESS - ; zephir_hash_move_forward_ex(_3, &_2) + ; zend_hash_get_current_data_ex(_3, (void**) &_4, &_2) == SUCCESS + ; zend_hash_move_forward_ex(_3, &_2) ) { ZEPHIR_GET_HMKEY(alias, _3, _2); ZEPHIR_GET_HVALUE(column, _4); @@ -159,8 +158,8 @@ PHP_METHOD(Phalcon_Mvc_Model_Resultset_Complex, current) { array_init(rowModel); zephir_is_iterable(attributes, &_6$$11, &_5$$11, 0, 0, "phalcon/mvc/model/resultset/complex.zep", 162); for ( - ; zephir_hash_get_current_data_ex(_6$$11, (void**) &_7$$11, &_5$$11) == SUCCESS - ; zephir_hash_move_forward_ex(_6$$11, &_5$$11) + ; zend_hash_get_current_data_ex(_6$$11, (void**) &_7$$11, &_5$$11) == SUCCESS + ; zend_hash_move_forward_ex(_6$$11, &_5$$11) ) { ZEPHIR_GET_HVALUE(attribute, _7$$11); ZEPHIR_OBS_NVAR(columnValue); @@ -321,11 +320,11 @@ PHP_METHOD(Phalcon_Mvc_Model_Resultset_Complex, unserialize) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &data_param); - if (unlikely(Z_TYPE_P(data_param) != IS_STRING && Z_TYPE_P(data_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(data_param) != IS_STRING && Z_TYPE_P(data_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'data' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(data_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(data_param) == IS_STRING)) { zephir_get_strval(data, data_param); } else { ZEPHIR_INIT_VAR(data); diff --git a/ext/phalcon/mvc/model/resultset/simple.zep.c b/ext/phalcon/mvc/model/resultset/simple.zep.c index ab6be9daacc..b55c515a9dd 100644 --- a/ext/phalcon/mvc/model/resultset/simple.zep.c +++ b/ext/phalcon/mvc/model/resultset/simple.zep.c @@ -16,7 +16,6 @@ #include "kernel/fcall.h" #include "kernel/memory.h" #include "kernel/operators.h" -#include "kernel/hash.h" #include "kernel/array.h" #include "kernel/exception.h" #include "kernel/concat.h" @@ -199,16 +198,16 @@ PHP_METHOD(Phalcon_Mvc_Model_Resultset_Simple, toArray) { if (Z_TYPE_P(records) == IS_ARRAY) { zephir_is_iterable(records, &_2$$7, &_1$$7, 0, 0, "phalcon/mvc/model/resultset/simple.zep", 217); for ( - ; zephir_hash_get_current_data_ex(_2$$7, (void**) &_3$$7, &_1$$7) == SUCCESS - ; zephir_hash_move_forward_ex(_2$$7, &_1$$7) + ; zend_hash_get_current_data_ex(_2$$7, (void**) &_3$$7, &_1$$7) == SUCCESS + ; zend_hash_move_forward_ex(_2$$7, &_1$$7) ) { ZEPHIR_GET_HVALUE(record, _3$$7); ZEPHIR_INIT_NVAR(renamed); array_init(renamed); zephir_is_iterable(record, &_5$$8, &_4$$8, 0, 0, "phalcon/mvc/model/resultset/simple.zep", 215); for ( - ; zephir_hash_get_current_data_ex(_5$$8, (void**) &_6$$8, &_4$$8) == SUCCESS - ; zephir_hash_move_forward_ex(_5$$8, &_4$$8) + ; zend_hash_get_current_data_ex(_5$$8, (void**) &_6$$8, &_4$$8) == SUCCESS + ; zend_hash_move_forward_ex(_5$$8, &_4$$8) ) { ZEPHIR_GET_HMKEY(key, _5$$8, _4$$8); ZEPHIR_GET_HVALUE(value, _6$$8); @@ -300,11 +299,11 @@ PHP_METHOD(Phalcon_Mvc_Model_Resultset_Simple, unserialize) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &data_param); - if (unlikely(Z_TYPE_P(data_param) != IS_STRING && Z_TYPE_P(data_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(data_param) != IS_STRING && Z_TYPE_P(data_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'data' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(data_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(data_param) == IS_STRING)) { zephir_get_strval(data, data_param); } else { ZEPHIR_INIT_VAR(data); diff --git a/ext/phalcon/mvc/model/row.zep.c b/ext/phalcon/mvc/model/row.zep.c index c89c2350c41..94beacef4b9 100644 --- a/ext/phalcon/mvc/model/row.zep.c +++ b/ext/phalcon/mvc/model/row.zep.c @@ -182,11 +182,11 @@ PHP_METHOD(Phalcon_Mvc_Model_Row, writeAttribute) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &attribute_param, &value); - if (unlikely(Z_TYPE_P(attribute_param) != IS_STRING && Z_TYPE_P(attribute_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(attribute_param) != IS_STRING && Z_TYPE_P(attribute_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'attribute' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(attribute_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(attribute_param) == IS_STRING)) { zephir_get_strval(attribute, attribute_param); } else { ZEPHIR_INIT_VAR(attribute); diff --git a/ext/phalcon/mvc/model/transaction/failed.zep.c b/ext/phalcon/mvc/model/transaction/failed.zep.c index cfcfd8319e7..7c106c06c4e 100644 --- a/ext/phalcon/mvc/model/transaction/failed.zep.c +++ b/ext/phalcon/mvc/model/transaction/failed.zep.c @@ -47,11 +47,11 @@ PHP_METHOD(Phalcon_Mvc_Model_Transaction_Failed, __construct) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &message_param, &record); - if (unlikely(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'message' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(message_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(message_param) == IS_STRING)) { zephir_get_strval(message, message_param); } else { ZEPHIR_INIT_VAR(message); diff --git a/ext/phalcon/mvc/model/transaction/manager.zep.c b/ext/phalcon/mvc/model/transaction/manager.zep.c index 03814ef734b..126963d0fbd 100644 --- a/ext/phalcon/mvc/model/transaction/manager.zep.c +++ b/ext/phalcon/mvc/model/transaction/manager.zep.c @@ -19,7 +19,6 @@ #include "kernel/memory.h" #include "ext/spl/spl_exceptions.h" #include "kernel/array.h" -#include "kernel/hash.h" /** @@ -158,11 +157,11 @@ PHP_METHOD(Phalcon_Mvc_Model_Transaction_Manager, setDbService) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &service_param); - if (unlikely(Z_TYPE_P(service_param) != IS_STRING && Z_TYPE_P(service_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(service_param) != IS_STRING && Z_TYPE_P(service_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'service' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(service_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(service_param) == IS_STRING)) { zephir_get_strval(service, service_param); } else { ZEPHIR_INIT_VAR(service); @@ -320,8 +319,8 @@ PHP_METHOD(Phalcon_Mvc_Model_Transaction_Manager, getOrCreateTransaction) { if (Z_TYPE_P(transactions) == IS_ARRAY) { zephir_is_iterable(transactions, &_2$$5, &_1$$5, 0, 1, "phalcon/mvc/model/transaction/manager.zep", 201); for ( - ; zephir_hash_get_current_data_ex(_2$$5, (void**) &_3$$5, &_1$$5) == SUCCESS - ; zephir_hash_move_backwards_ex(_2$$5, &_1$$5) + ; zend_hash_get_current_data_ex(_2$$5, (void**) &_3$$5, &_1$$5) == SUCCESS + ; zend_hash_move_backwards_ex(_2$$5, &_1$$5) ) { ZEPHIR_GET_HVALUE(transaction, _3$$5); if (Z_TYPE_P(transaction) == IS_OBJECT) { @@ -385,8 +384,8 @@ PHP_METHOD(Phalcon_Mvc_Model_Transaction_Manager, commit) { if (Z_TYPE_P(transactions) == IS_ARRAY) { zephir_is_iterable(transactions, &_1$$3, &_0$$3, 0, 0, "phalcon/mvc/model/transaction/manager.zep", 234); for ( - ; zephir_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_1$$3, &_0$$3) + ; zend_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS + ; zend_hash_move_forward_ex(_1$$3, &_0$$3) ) { ZEPHIR_GET_HVALUE(transaction, _2$$3); ZEPHIR_CALL_METHOD(&connection, transaction, "getconnection", NULL, 0); @@ -430,8 +429,8 @@ PHP_METHOD(Phalcon_Mvc_Model_Transaction_Manager, rollback) { if (Z_TYPE_P(transactions) == IS_ARRAY) { zephir_is_iterable(transactions, &_1$$3, &_0$$3, 0, 0, "phalcon/mvc/model/transaction/manager.zep", 259); for ( - ; zephir_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_1$$3, &_0$$3) + ; zend_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS + ; zend_hash_move_forward_ex(_1$$3, &_0$$3) ) { ZEPHIR_GET_HVALUE(transaction, _2$$3); ZEPHIR_CALL_METHOD(&connection, transaction, "getconnection", NULL, 0); @@ -513,8 +512,8 @@ PHP_METHOD(Phalcon_Mvc_Model_Transaction_Manager, _collectTransaction) { array_init(newTransactions); zephir_is_iterable(transactions, &_1$$3, &_0$$3, 0, 0, "phalcon/mvc/model/transaction/manager.zep", 296); for ( - ; zephir_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_1$$3, &_0$$3) + ; zend_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS + ; zend_hash_move_forward_ex(_1$$3, &_0$$3) ) { ZEPHIR_GET_HVALUE(managedTransaction, _2$$3); if (!ZEPHIR_IS_EQUAL(managedTransaction, transaction)) { @@ -546,8 +545,8 @@ PHP_METHOD(Phalcon_Mvc_Model_Transaction_Manager, collectTransactions) { ZEPHIR_INIT_VAR(_0$$3); zephir_is_iterable(transactions, &_2$$3, &_1$$3, 0, 0, "phalcon/mvc/model/transaction/manager.zep", 312); for ( - ; zephir_hash_get_current_data_ex(_2$$3, (void**) &_3$$3, &_1$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_2$$3, &_1$$3) + ; zend_hash_get_current_data_ex(_2$$3, (void**) &_3$$3, &_1$$3) == SUCCESS + ; zend_hash_move_forward_ex(_2$$3, &_1$$3) ) { ZEPHIR_GET_HVALUE(_0$$3, _3$$3); RETURN_ON_FAILURE(zephir_property_decr(this_ptr, SL("_number") TSRMLS_CC)); diff --git a/ext/phalcon/mvc/model/validator.zep.c b/ext/phalcon/mvc/model/validator.zep.c index f39327a92bd..16f6929b316 100644 --- a/ext/phalcon/mvc/model/validator.zep.c +++ b/ext/phalcon/mvc/model/validator.zep.c @@ -81,11 +81,11 @@ PHP_METHOD(Phalcon_Mvc_Model_Validator, appendMessage) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &message_param, &field, &type); - if (unlikely(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'message' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(message_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(message_param) == IS_STRING)) { zephir_get_strval(message, message_param); } else { ZEPHIR_INIT_VAR(message); @@ -155,11 +155,11 @@ PHP_METHOD(Phalcon_Mvc_Model_Validator, getOption) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &option_param, &defaultValue); - if (unlikely(Z_TYPE_P(option_param) != IS_STRING && Z_TYPE_P(option_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(option_param) != IS_STRING && Z_TYPE_P(option_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'option' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(option_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(option_param) == IS_STRING)) { zephir_get_strval(option, option_param); } else { ZEPHIR_INIT_VAR(option); @@ -191,11 +191,11 @@ PHP_METHOD(Phalcon_Mvc_Model_Validator, isSetOption) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &option_param); - if (unlikely(Z_TYPE_P(option_param) != IS_STRING && Z_TYPE_P(option_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(option_param) != IS_STRING && Z_TYPE_P(option_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'option' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(option_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(option_param) == IS_STRING)) { zephir_get_strval(option, option_param); } else { ZEPHIR_INIT_VAR(option); diff --git a/ext/phalcon/mvc/model/validator/uniqueness.zep.c b/ext/phalcon/mvc/model/validator/uniqueness.zep.c index 766244bfaa9..53309058807 100644 --- a/ext/phalcon/mvc/model/validator/uniqueness.zep.c +++ b/ext/phalcon/mvc/model/validator/uniqueness.zep.c @@ -14,7 +14,6 @@ #include "kernel/main.h" #include "kernel/fcall.h" #include "kernel/memory.h" -#include "kernel/hash.h" #include "kernel/array.h" #include "kernel/exception.h" #include "kernel/concat.h" @@ -115,8 +114,8 @@ PHP_METHOD(Phalcon_Mvc_Model_Validator_Uniqueness, validate) { if (Z_TYPE_P(field) == IS_ARRAY) { zephir_is_iterable(field, &_2$$5, &_1$$5, 0, 0, "phalcon/mvc/model/validator/uniqueness.zep", 130); for ( - ; zephir_hash_get_current_data_ex(_2$$5, (void**) &_3$$5, &_1$$5) == SUCCESS - ; zephir_hash_move_forward_ex(_2$$5, &_1$$5) + ; zend_hash_get_current_data_ex(_2$$5, (void**) &_3$$5, &_1$$5) == SUCCESS + ; zend_hash_move_forward_ex(_2$$5, &_1$$5) ) { ZEPHIR_GET_HVALUE(composeField, _3$$5); if (Z_TYPE_P(columnMap) == IS_ARRAY) { @@ -210,8 +209,8 @@ PHP_METHOD(Phalcon_Mvc_Model_Validator_Uniqueness, validate) { zephir_check_call_status(); zephir_is_iterable(_20$$16, &_22$$16, &_21$$16, 0, 0, "phalcon/mvc/model/validator/uniqueness.zep", 200); for ( - ; zephir_hash_get_current_data_ex(_22$$16, (void**) &_23$$16, &_21$$16) == SUCCESS - ; zephir_hash_move_forward_ex(_22$$16, &_21$$16) + ; zend_hash_get_current_data_ex(_22$$16, (void**) &_23$$16, &_21$$16) == SUCCESS + ; zend_hash_move_forward_ex(_22$$16, &_21$$16) ) { ZEPHIR_GET_HVALUE(primaryField, _23$$16); ZEPHIR_OBS_NVAR(bindType); diff --git a/ext/phalcon/mvc/router.zep.c b/ext/phalcon/mvc/router.zep.c index f54f145509f..3144365cef7 100644 --- a/ext/phalcon/mvc/router.zep.c +++ b/ext/phalcon/mvc/router.zep.c @@ -20,7 +20,6 @@ #include "kernel/exception.h" #include "kernel/operators.h" #include "kernel/string.h" -#include "kernel/hash.h" #include "kernel/concat.h" @@ -125,7 +124,7 @@ PHP_METHOD(Phalcon_Mvc_Router, __construct) { if (!defaultRoutes_param) { defaultRoutes = 1; } else { - if (unlikely(Z_TYPE_P(defaultRoutes_param) != IS_BOOL)) { + if (UNEXPECTED(Z_TYPE_P(defaultRoutes_param) != IS_BOOL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'defaultRoutes' must be a bool") TSRMLS_CC); RETURN_MM_NULL(); } @@ -284,7 +283,7 @@ PHP_METHOD(Phalcon_Mvc_Router, removeExtraSlashes) { zephir_fetch_params(0, 1, 0, &remove_param); - if (unlikely(Z_TYPE_P(remove_param) != IS_BOOL)) { + if (UNEXPECTED(Z_TYPE_P(remove_param) != IS_BOOL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'remove' must be a bool") TSRMLS_CC); RETURN_NULL(); } @@ -311,11 +310,11 @@ PHP_METHOD(Phalcon_Mvc_Router, setDefaultNamespace) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &namespaceName_param); - if (unlikely(Z_TYPE_P(namespaceName_param) != IS_STRING && Z_TYPE_P(namespaceName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(namespaceName_param) != IS_STRING && Z_TYPE_P(namespaceName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'namespaceName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(namespaceName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(namespaceName_param) == IS_STRING)) { zephir_get_strval(namespaceName, namespaceName_param); } else { ZEPHIR_INIT_VAR(namespaceName); @@ -339,11 +338,11 @@ PHP_METHOD(Phalcon_Mvc_Router, setDefaultModule) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &moduleName_param); - if (unlikely(Z_TYPE_P(moduleName_param) != IS_STRING && Z_TYPE_P(moduleName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(moduleName_param) != IS_STRING && Z_TYPE_P(moduleName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'moduleName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(moduleName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(moduleName_param) == IS_STRING)) { zephir_get_strval(moduleName, moduleName_param); } else { ZEPHIR_INIT_VAR(moduleName); @@ -367,11 +366,11 @@ PHP_METHOD(Phalcon_Mvc_Router, setDefaultController) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &controllerName_param); - if (unlikely(Z_TYPE_P(controllerName_param) != IS_STRING && Z_TYPE_P(controllerName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(controllerName_param) != IS_STRING && Z_TYPE_P(controllerName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'controllerName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(controllerName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(controllerName_param) == IS_STRING)) { zephir_get_strval(controllerName, controllerName_param); } else { ZEPHIR_INIT_VAR(controllerName); @@ -395,11 +394,11 @@ PHP_METHOD(Phalcon_Mvc_Router, setDefaultAction) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &actionName_param); - if (unlikely(Z_TYPE_P(actionName_param) != IS_STRING && Z_TYPE_P(actionName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(actionName_param) != IS_STRING && Z_TYPE_P(actionName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'actionName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(actionName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(actionName_param) == IS_STRING)) { zephir_get_strval(actionName, actionName_param); } else { ZEPHIR_INIT_VAR(actionName); @@ -565,8 +564,8 @@ PHP_METHOD(Phalcon_Mvc_Router, handle) { _4 = zephir_fetch_nproperty_this(this_ptr, SL("_routes"), PH_NOISY_CC); zephir_is_iterable(_4, &_6, &_5, 0, 1, "phalcon/mvc/router.zep", 582); for ( - ; zephir_hash_get_current_data_ex(_6, (void**) &_7, &_5) == SUCCESS - ; zephir_hash_move_backwards_ex(_6, &_5) + ; zend_hash_get_current_data_ex(_6, (void**) &_7, &_5) == SUCCESS + ; zend_hash_move_backwards_ex(_6, &_5) ) { ZEPHIR_GET_HVALUE(route, _7); ZEPHIR_INIT_NVAR(params); @@ -702,8 +701,8 @@ PHP_METHOD(Phalcon_Mvc_Router, handle) { zephir_check_call_status(); zephir_is_iterable(paths, &_25$$34, &_24$$34, 0, 0, "phalcon/mvc/router.zep", 571); for ( - ; zephir_hash_get_current_data_ex(_25$$34, (void**) &_26$$34, &_24$$34) == SUCCESS - ; zephir_hash_move_forward_ex(_25$$34, &_24$$34) + ; zend_hash_get_current_data_ex(_25$$34, (void**) &_26$$34, &_24$$34) == SUCCESS + ; zend_hash_move_forward_ex(_25$$34, &_24$$34) ) { ZEPHIR_GET_HMKEY(part, _25$$34, _24$$34); ZEPHIR_GET_HVALUE(position, _26$$34); @@ -882,11 +881,11 @@ PHP_METHOD(Phalcon_Mvc_Router, add) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 3, &pattern_param, &paths, &httpMethods, &position); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(pattern, pattern_param); } else { ZEPHIR_INIT_VAR(pattern); @@ -943,11 +942,11 @@ PHP_METHOD(Phalcon_Mvc_Router, addGet) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &pattern_param, &paths, &position); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(pattern, pattern_param); } else { ZEPHIR_INIT_VAR(pattern); @@ -983,11 +982,11 @@ PHP_METHOD(Phalcon_Mvc_Router, addPost) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &pattern_param, &paths, &position); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(pattern, pattern_param); } else { ZEPHIR_INIT_VAR(pattern); @@ -1023,11 +1022,11 @@ PHP_METHOD(Phalcon_Mvc_Router, addPut) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &pattern_param, &paths, &position); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(pattern, pattern_param); } else { ZEPHIR_INIT_VAR(pattern); @@ -1063,11 +1062,11 @@ PHP_METHOD(Phalcon_Mvc_Router, addPatch) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &pattern_param, &paths, &position); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(pattern, pattern_param); } else { ZEPHIR_INIT_VAR(pattern); @@ -1103,11 +1102,11 @@ PHP_METHOD(Phalcon_Mvc_Router, addDelete) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &pattern_param, &paths, &position); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(pattern, pattern_param); } else { ZEPHIR_INIT_VAR(pattern); @@ -1143,11 +1142,11 @@ PHP_METHOD(Phalcon_Mvc_Router, addOptions) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &pattern_param, &paths, &position); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(pattern, pattern_param); } else { ZEPHIR_INIT_VAR(pattern); @@ -1183,11 +1182,11 @@ PHP_METHOD(Phalcon_Mvc_Router, addHead) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &pattern_param, &paths, &position); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(pattern, pattern_param); } else { ZEPHIR_INIT_VAR(pattern); @@ -1223,11 +1222,11 @@ PHP_METHOD(Phalcon_Mvc_Router, addPurge) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &pattern_param, &paths, &position); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(pattern, pattern_param); } else { ZEPHIR_INIT_VAR(pattern); @@ -1263,11 +1262,11 @@ PHP_METHOD(Phalcon_Mvc_Router, addTrace) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &pattern_param, &paths, &position); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(pattern, pattern_param); } else { ZEPHIR_INIT_VAR(pattern); @@ -1303,11 +1302,11 @@ PHP_METHOD(Phalcon_Mvc_Router, addConnect) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &pattern_param, &paths, &position); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(pattern, pattern_param); } else { ZEPHIR_INIT_VAR(pattern); @@ -1357,8 +1356,8 @@ PHP_METHOD(Phalcon_Mvc_Router, mount) { if (Z_TYPE_P(beforeMatch) != IS_NULL) { zephir_is_iterable(groupRoutes, &_1$$4, &_0$$4, 0, 0, "phalcon/mvc/router.zep", 814); for ( - ; zephir_hash_get_current_data_ex(_1$$4, (void**) &_2$$4, &_0$$4) == SUCCESS - ; zephir_hash_move_forward_ex(_1$$4, &_0$$4) + ; zend_hash_get_current_data_ex(_1$$4, (void**) &_2$$4, &_0$$4) == SUCCESS + ; zend_hash_move_forward_ex(_1$$4, &_0$$4) ) { ZEPHIR_GET_HVALUE(route, _2$$4); ZEPHIR_CALL_METHOD(NULL, route, "beforematch", NULL, 0, beforeMatch); @@ -1370,8 +1369,8 @@ PHP_METHOD(Phalcon_Mvc_Router, mount) { if (Z_TYPE_P(hostname) != IS_NULL) { zephir_is_iterable(groupRoutes, &_4$$6, &_3$$6, 0, 0, "phalcon/mvc/router.zep", 823); for ( - ; zephir_hash_get_current_data_ex(_4$$6, (void**) &_5$$6, &_3$$6) == SUCCESS - ; zephir_hash_move_forward_ex(_4$$6, &_3$$6) + ; zend_hash_get_current_data_ex(_4$$6, (void**) &_5$$6, &_3$$6) == SUCCESS + ; zend_hash_move_forward_ex(_4$$6, &_3$$6) ) { ZEPHIR_GET_HVALUE(route, _5$$6); ZEPHIR_CALL_METHOD(NULL, route, "sethostname", NULL, 0, hostname); @@ -1549,8 +1548,8 @@ PHP_METHOD(Phalcon_Mvc_Router, getRouteById) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_routes"), PH_NOISY_CC); zephir_is_iterable(_0, &_2, &_1, 0, 0, "phalcon/mvc/router.zep", 941); for ( - ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS - ; zephir_hash_move_forward_ex(_2, &_1) + ; zend_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS + ; zend_hash_move_forward_ex(_2, &_1) ) { ZEPHIR_GET_HVALUE(route, _3); ZEPHIR_CALL_METHOD(&_4$$3, route, "getrouteid", NULL, 0); @@ -1577,11 +1576,11 @@ PHP_METHOD(Phalcon_Mvc_Router, getRouteByName) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -1592,8 +1591,8 @@ PHP_METHOD(Phalcon_Mvc_Router, getRouteByName) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_routes"), PH_NOISY_CC); zephir_is_iterable(_0, &_2, &_1, 0, 0, "phalcon/mvc/router.zep", 956); for ( - ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS - ; zephir_hash_move_forward_ex(_2, &_1) + ; zend_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS + ; zend_hash_move_forward_ex(_2, &_1) ) { ZEPHIR_GET_HVALUE(route, _3); ZEPHIR_CALL_METHOD(&_4$$3, route, "getname", NULL, 0); diff --git a/ext/phalcon/mvc/router/annotations.zep.c b/ext/phalcon/mvc/router/annotations.zep.c index bb25e5e3378..ea9752b08a4 100644 --- a/ext/phalcon/mvc/router/annotations.zep.c +++ b/ext/phalcon/mvc/router/annotations.zep.c @@ -19,7 +19,6 @@ #include "kernel/exception.h" #include "kernel/operators.h" #include "kernel/fcall.h" -#include "kernel/hash.h" #include "kernel/string.h" #include "kernel/concat.h" @@ -76,11 +75,11 @@ PHP_METHOD(Phalcon_Mvc_Router_Annotations, addResource) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &handler_param, &prefix_param); - if (unlikely(Z_TYPE_P(handler_param) != IS_STRING && Z_TYPE_P(handler_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(handler_param) != IS_STRING && Z_TYPE_P(handler_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'handler' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(handler_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(handler_param) == IS_STRING)) { zephir_get_strval(handler, handler_param); } else { ZEPHIR_INIT_VAR(handler); @@ -90,11 +89,11 @@ PHP_METHOD(Phalcon_Mvc_Router_Annotations, addResource) { ZEPHIR_INIT_VAR(prefix); ZVAL_EMPTY_STRING(prefix); } else { - if (unlikely(Z_TYPE_P(prefix_param) != IS_STRING && Z_TYPE_P(prefix_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(prefix_param) != IS_STRING && Z_TYPE_P(prefix_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'prefix' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(prefix_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(prefix_param) == IS_STRING)) { zephir_get_strval(prefix, prefix_param); } else { ZEPHIR_INIT_VAR(prefix); @@ -126,21 +125,21 @@ PHP_METHOD(Phalcon_Mvc_Router_Annotations, addModuleResource) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 1, &module_param, &handler_param, &prefix_param); - if (unlikely(Z_TYPE_P(module_param) != IS_STRING && Z_TYPE_P(module_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(module_param) != IS_STRING && Z_TYPE_P(module_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'module' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(module_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(module_param) == IS_STRING)) { zephir_get_strval(module, module_param); } else { ZEPHIR_INIT_VAR(module); ZVAL_EMPTY_STRING(module); } - if (unlikely(Z_TYPE_P(handler_param) != IS_STRING && Z_TYPE_P(handler_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(handler_param) != IS_STRING && Z_TYPE_P(handler_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'handler' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(handler_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(handler_param) == IS_STRING)) { zephir_get_strval(handler, handler_param); } else { ZEPHIR_INIT_VAR(handler); @@ -150,11 +149,11 @@ PHP_METHOD(Phalcon_Mvc_Router_Annotations, addModuleResource) { ZEPHIR_INIT_VAR(prefix); ZVAL_EMPTY_STRING(prefix); } else { - if (unlikely(Z_TYPE_P(prefix_param) != IS_STRING && Z_TYPE_P(prefix_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(prefix_param) != IS_STRING && Z_TYPE_P(prefix_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'prefix' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(prefix_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(prefix_param) == IS_STRING)) { zephir_get_strval(prefix, prefix_param); } else { ZEPHIR_INIT_VAR(prefix); @@ -193,11 +192,11 @@ PHP_METHOD(Phalcon_Mvc_Router_Annotations, handle) { ZEPHIR_INIT_VAR(uri); ZVAL_EMPTY_STRING(uri); } else { - if (unlikely(Z_TYPE_P(uri_param) != IS_STRING && Z_TYPE_P(uri_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(uri_param) != IS_STRING && Z_TYPE_P(uri_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'uri' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(uri_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(uri_param) == IS_STRING)) { zephir_get_strval(uri, uri_param); } else { ZEPHIR_INIT_VAR(uri); @@ -229,8 +228,8 @@ PHP_METHOD(Phalcon_Mvc_Router_Annotations, handle) { zephir_read_property_this(&controllerSuffix, this_ptr, SL("_controllerSuffix"), PH_NOISY_CC); zephir_is_iterable(handlers, &_3, &_2, 0, 0, "phalcon/mvc/router/annotations.zep", 205); for ( - ; zephir_hash_get_current_data_ex(_3, (void**) &_4, &_2) == SUCCESS - ; zephir_hash_move_forward_ex(_3, &_2) + ; zend_hash_get_current_data_ex(_3, (void**) &_4, &_2) == SUCCESS + ; zend_hash_move_forward_ex(_3, &_2) ) { ZEPHIR_GET_HVALUE(scope, _4); if (Z_TYPE_P(scope) != IS_ARRAY) { @@ -280,8 +279,8 @@ PHP_METHOD(Phalcon_Mvc_Router_Annotations, handle) { if (Z_TYPE_P(annotations) == IS_ARRAY) { zephir_is_iterable(annotations, &_9$$14, &_8$$14, 0, 0, "phalcon/mvc/router/annotations.zep", 182); for ( - ; zephir_hash_get_current_data_ex(_9$$14, (void**) &_10$$14, &_8$$14) == SUCCESS - ; zephir_hash_move_forward_ex(_9$$14, &_8$$14) + ; zend_hash_get_current_data_ex(_9$$14, (void**) &_10$$14, &_8$$14) == SUCCESS + ; zend_hash_move_forward_ex(_9$$14, &_8$$14) ) { ZEPHIR_GET_HVALUE(annotation, _10$$14); ZEPHIR_CALL_METHOD(NULL, this_ptr, "processcontrollerannotation", &_11, 0, controllerName, annotation); @@ -296,8 +295,8 @@ PHP_METHOD(Phalcon_Mvc_Router_Annotations, handle) { zephir_uncamelize(lowerControllerName, controllerName, NULL ); zephir_is_iterable(methodAnnotations, &_13$$16, &_12$$16, 0, 0, "phalcon/mvc/router/annotations.zep", 199); for ( - ; zephir_hash_get_current_data_ex(_13$$16, (void**) &_14$$16, &_12$$16) == SUCCESS - ; zephir_hash_move_forward_ex(_13$$16, &_12$$16) + ; zend_hash_get_current_data_ex(_13$$16, (void**) &_14$$16, &_12$$16) == SUCCESS + ; zend_hash_move_forward_ex(_13$$16, &_12$$16) ) { ZEPHIR_GET_HMKEY(method, _13$$16, _12$$16); ZEPHIR_GET_HVALUE(collection, _14$$16); @@ -306,8 +305,8 @@ PHP_METHOD(Phalcon_Mvc_Router_Annotations, handle) { zephir_check_call_status(); zephir_is_iterable(_15$$18, &_17$$18, &_16$$18, 0, 0, "phalcon/mvc/router/annotations.zep", 197); for ( - ; zephir_hash_get_current_data_ex(_17$$18, (void**) &_18$$18, &_16$$18) == SUCCESS - ; zephir_hash_move_forward_ex(_17$$18, &_16$$18) + ; zend_hash_get_current_data_ex(_17$$18, (void**) &_18$$18, &_16$$18) == SUCCESS + ; zend_hash_move_forward_ex(_17$$18, &_16$$18) ) { ZEPHIR_GET_HVALUE(annotation, _18$$18); ZEPHIR_CALL_METHOD(NULL, this_ptr, "processactionannotation", &_19, 0, moduleName, namespaceName, lowerControllerName, method, annotation); @@ -335,11 +334,11 @@ PHP_METHOD(Phalcon_Mvc_Router_Annotations, processControllerAnnotation) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &handler_param, &annotation); - if (unlikely(Z_TYPE_P(handler_param) != IS_STRING && Z_TYPE_P(handler_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(handler_param) != IS_STRING && Z_TYPE_P(handler_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'handler' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(handler_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(handler_param) == IS_STRING)) { zephir_get_strval(handler, handler_param); } else { ZEPHIR_INIT_VAR(handler); @@ -376,41 +375,41 @@ PHP_METHOD(Phalcon_Mvc_Router_Annotations, processActionAnnotation) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 5, 0, &module_param, &namespaceName_param, &controller_param, &action_param, &annotation); - if (unlikely(Z_TYPE_P(module_param) != IS_STRING && Z_TYPE_P(module_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(module_param) != IS_STRING && Z_TYPE_P(module_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'module' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(module_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(module_param) == IS_STRING)) { zephir_get_strval(module, module_param); } else { ZEPHIR_INIT_VAR(module); ZVAL_EMPTY_STRING(module); } - if (unlikely(Z_TYPE_P(namespaceName_param) != IS_STRING && Z_TYPE_P(namespaceName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(namespaceName_param) != IS_STRING && Z_TYPE_P(namespaceName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'namespaceName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(namespaceName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(namespaceName_param) == IS_STRING)) { zephir_get_strval(namespaceName, namespaceName_param); } else { ZEPHIR_INIT_VAR(namespaceName); ZVAL_EMPTY_STRING(namespaceName); } - if (unlikely(Z_TYPE_P(controller_param) != IS_STRING && Z_TYPE_P(controller_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(controller_param) != IS_STRING && Z_TYPE_P(controller_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'controller' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(controller_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(controller_param) == IS_STRING)) { zephir_get_strval(controller, controller_param); } else { ZEPHIR_INIT_VAR(controller); ZVAL_EMPTY_STRING(controller); } - if (unlikely(Z_TYPE_P(action_param) != IS_STRING && Z_TYPE_P(action_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(action_param) != IS_STRING && Z_TYPE_P(action_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'action' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(action_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(action_param) == IS_STRING)) { zephir_get_strval(action, action_param); } else { ZEPHIR_INIT_VAR(action); @@ -534,8 +533,8 @@ PHP_METHOD(Phalcon_Mvc_Router_Annotations, processActionAnnotation) { if (Z_TYPE_P(converts) == IS_ARRAY) { zephir_is_iterable(converts, &_7$$22, &_6$$22, 0, 0, "phalcon/mvc/router/annotations.zep", 339); for ( - ; zephir_hash_get_current_data_ex(_7$$22, (void**) &_8$$22, &_6$$22) == SUCCESS - ; zephir_hash_move_forward_ex(_7$$22, &_6$$22) + ; zend_hash_get_current_data_ex(_7$$22, (void**) &_8$$22, &_6$$22) == SUCCESS + ; zend_hash_move_forward_ex(_7$$22, &_6$$22) ) { ZEPHIR_GET_HMKEY(param, _7$$22, _6$$22); ZEPHIR_GET_HVALUE(convert, _8$$22); @@ -551,8 +550,8 @@ PHP_METHOD(Phalcon_Mvc_Router_Annotations, processActionAnnotation) { if (Z_TYPE_P(converts) == IS_ARRAY) { zephir_is_iterable(converts, &_11$$24, &_10$$24, 0, 0, "phalcon/mvc/router/annotations.zep", 349); for ( - ; zephir_hash_get_current_data_ex(_11$$24, (void**) &_12$$24, &_10$$24) == SUCCESS - ; zephir_hash_move_forward_ex(_11$$24, &_10$$24) + ; zend_hash_get_current_data_ex(_11$$24, (void**) &_12$$24, &_10$$24) == SUCCESS + ; zend_hash_move_forward_ex(_11$$24, &_10$$24) ) { ZEPHIR_GET_HMKEY(conversorParam, _11$$24, _10$$24); ZEPHIR_GET_HVALUE(convert, _12$$24); @@ -599,11 +598,11 @@ PHP_METHOD(Phalcon_Mvc_Router_Annotations, setControllerSuffix) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &controllerSuffix_param); - if (unlikely(Z_TYPE_P(controllerSuffix_param) != IS_STRING && Z_TYPE_P(controllerSuffix_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(controllerSuffix_param) != IS_STRING && Z_TYPE_P(controllerSuffix_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'controllerSuffix' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(controllerSuffix_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(controllerSuffix_param) == IS_STRING)) { zephir_get_strval(controllerSuffix, controllerSuffix_param); } else { ZEPHIR_INIT_VAR(controllerSuffix); @@ -627,11 +626,11 @@ PHP_METHOD(Phalcon_Mvc_Router_Annotations, setActionSuffix) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &actionSuffix_param); - if (unlikely(Z_TYPE_P(actionSuffix_param) != IS_STRING && Z_TYPE_P(actionSuffix_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(actionSuffix_param) != IS_STRING && Z_TYPE_P(actionSuffix_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'actionSuffix' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(actionSuffix_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(actionSuffix_param) == IS_STRING)) { zephir_get_strval(actionSuffix, actionSuffix_param); } else { ZEPHIR_INIT_VAR(actionSuffix); diff --git a/ext/phalcon/mvc/router/group.zep.c b/ext/phalcon/mvc/router/group.zep.c index 87220619336..581e8f2c6fc 100644 --- a/ext/phalcon/mvc/router/group.zep.c +++ b/ext/phalcon/mvc/router/group.zep.c @@ -264,11 +264,11 @@ PHP_METHOD(Phalcon_Mvc_Router_Group, add) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &pattern_param, &paths, &httpMethods); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(pattern, pattern_param); } else { ZEPHIR_INIT_VAR(pattern); @@ -304,11 +304,11 @@ PHP_METHOD(Phalcon_Mvc_Router_Group, addGet) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &pattern_param, &paths); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(pattern, pattern_param); } else { ZEPHIR_INIT_VAR(pattern); @@ -344,11 +344,11 @@ PHP_METHOD(Phalcon_Mvc_Router_Group, addPost) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &pattern_param, &paths); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(pattern, pattern_param); } else { ZEPHIR_INIT_VAR(pattern); @@ -384,11 +384,11 @@ PHP_METHOD(Phalcon_Mvc_Router_Group, addPut) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &pattern_param, &paths); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(pattern, pattern_param); } else { ZEPHIR_INIT_VAR(pattern); @@ -424,11 +424,11 @@ PHP_METHOD(Phalcon_Mvc_Router_Group, addPatch) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &pattern_param, &paths); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(pattern, pattern_param); } else { ZEPHIR_INIT_VAR(pattern); @@ -464,11 +464,11 @@ PHP_METHOD(Phalcon_Mvc_Router_Group, addDelete) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &pattern_param, &paths); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(pattern, pattern_param); } else { ZEPHIR_INIT_VAR(pattern); @@ -504,11 +504,11 @@ PHP_METHOD(Phalcon_Mvc_Router_Group, addOptions) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &pattern_param, &paths); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(pattern, pattern_param); } else { ZEPHIR_INIT_VAR(pattern); @@ -544,11 +544,11 @@ PHP_METHOD(Phalcon_Mvc_Router_Group, addHead) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &pattern_param, &paths); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(pattern, pattern_param); } else { ZEPHIR_INIT_VAR(pattern); @@ -597,11 +597,11 @@ PHP_METHOD(Phalcon_Mvc_Router_Group, _addRoute) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &pattern_param, &paths, &httpMethods); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(pattern, pattern_param); } else { ZEPHIR_INIT_VAR(pattern); diff --git a/ext/phalcon/mvc/router/route.zep.c b/ext/phalcon/mvc/router/route.zep.c index 4b0bd980229..a034ab6f7b6 100644 --- a/ext/phalcon/mvc/router/route.zep.c +++ b/ext/phalcon/mvc/router/route.zep.c @@ -21,7 +21,6 @@ #include "kernel/string.h" #include "kernel/concat.h" #include "kernel/array.h" -#include "kernel/hash.h" /** @@ -74,11 +73,11 @@ PHP_METHOD(Phalcon_Mvc_Router_Route, __construct) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 2, &pattern_param, &paths, &httpMethods); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(pattern, pattern_param); } else { ZEPHIR_INIT_VAR(pattern); @@ -121,11 +120,11 @@ PHP_METHOD(Phalcon_Mvc_Router_Route, compilePattern) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &pattern_param); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(pattern, pattern_param); } else { ZEPHIR_INIT_VAR(pattern); @@ -237,11 +236,11 @@ PHP_METHOD(Phalcon_Mvc_Router_Route, extractNamedParams) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &pattern_param); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(pattern, pattern_param); } else { ZEPHIR_INIT_VAR(pattern); @@ -482,11 +481,11 @@ PHP_METHOD(Phalcon_Mvc_Router_Route, reConfigure) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &pattern_param, &paths); - if (unlikely(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(pattern_param) != IS_STRING && Z_TYPE_P(pattern_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'pattern' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(pattern_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(pattern_param) == IS_STRING)) { zephir_get_strval(pattern, pattern_param); } else { ZEPHIR_INIT_VAR(pattern); @@ -799,8 +798,8 @@ PHP_METHOD(Phalcon_Mvc_Router_Route, getReversedPaths) { _0 = zephir_fetch_nproperty_this(this_ptr, SL("_paths"), PH_NOISY_CC); zephir_is_iterable(_0, &_2, &_1, 0, 0, "phalcon/mvc/router/route.zep", 566); for ( - ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS - ; zephir_hash_move_forward_ex(_2, &_1) + ; zend_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS + ; zend_hash_move_forward_ex(_2, &_1) ) { ZEPHIR_GET_HMKEY(path, _2, _1); ZEPHIR_GET_HVALUE(position, _3); @@ -857,11 +856,11 @@ PHP_METHOD(Phalcon_Mvc_Router_Route, setHostname) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &hostname_param); - if (unlikely(Z_TYPE_P(hostname_param) != IS_STRING && Z_TYPE_P(hostname_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(hostname_param) != IS_STRING && Z_TYPE_P(hostname_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'hostname' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(hostname_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(hostname_param) == IS_STRING)) { zephir_get_strval(hostname, hostname_param); } else { ZEPHIR_INIT_VAR(hostname); @@ -923,11 +922,11 @@ PHP_METHOD(Phalcon_Mvc_Router_Route, convert) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &name_param, &converter); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); diff --git a/ext/phalcon/mvc/url.zep.c b/ext/phalcon/mvc/url.zep.c index b4db64a062d..2864c7033ee 100644 --- a/ext/phalcon/mvc/url.zep.c +++ b/ext/phalcon/mvc/url.zep.c @@ -106,11 +106,11 @@ PHP_METHOD(Phalcon_Mvc_Url, setBaseUri) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &baseUri_param); - if (unlikely(Z_TYPE_P(baseUri_param) != IS_STRING && Z_TYPE_P(baseUri_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(baseUri_param) != IS_STRING && Z_TYPE_P(baseUri_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'baseUri' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(baseUri_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(baseUri_param) == IS_STRING)) { zephir_get_strval(baseUri, baseUri_param); } else { ZEPHIR_INIT_VAR(baseUri); @@ -142,11 +142,11 @@ PHP_METHOD(Phalcon_Mvc_Url, setStaticBaseUri) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &staticBaseUri_param); - if (unlikely(Z_TYPE_P(staticBaseUri_param) != IS_STRING && Z_TYPE_P(staticBaseUri_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(staticBaseUri_param) != IS_STRING && Z_TYPE_P(staticBaseUri_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'staticBaseUri' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(staticBaseUri_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(staticBaseUri_param) == IS_STRING)) { zephir_get_strval(staticBaseUri, staticBaseUri_param); } else { ZEPHIR_INIT_VAR(staticBaseUri); @@ -228,11 +228,11 @@ PHP_METHOD(Phalcon_Mvc_Url, setBasePath) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &basePath_param); - if (unlikely(Z_TYPE_P(basePath_param) != IS_STRING && Z_TYPE_P(basePath_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(basePath_param) != IS_STRING && Z_TYPE_P(basePath_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'basePath' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(basePath_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(basePath_param) == IS_STRING)) { zephir_get_strval(basePath, basePath_param); } else { ZEPHIR_INIT_VAR(basePath); diff --git a/ext/phalcon/mvc/view.zep.c b/ext/phalcon/mvc/view.zep.c index 21c56c9f854..9d17edfc576 100644 --- a/ext/phalcon/mvc/view.zep.c +++ b/ext/phalcon/mvc/view.zep.c @@ -18,7 +18,6 @@ #include "kernel/string.h" #include "kernel/exception.h" #include "kernel/concat.h" -#include "kernel/hash.h" #include "kernel/array.h" #include "ext/spl/spl_exceptions.h" #include "kernel/fcall.h" @@ -287,8 +286,8 @@ PHP_METHOD(Phalcon_Mvc_View, setViewsDir) { array_init(newViewsDir); zephir_is_iterable(viewsDir, &_5$$6, &_4$$6, 0, 0, "phalcon/mvc/view.zep", 206); for ( - ; zephir_hash_get_current_data_ex(_5$$6, (void**) &_6$$6, &_4$$6) == SUCCESS - ; zephir_hash_move_forward_ex(_5$$6, &_4$$6) + ; zend_hash_get_current_data_ex(_5$$6, (void**) &_6$$6, &_4$$6) == SUCCESS + ; zend_hash_move_forward_ex(_5$$6, &_4$$6) ) { ZEPHIR_GET_HMKEY(position, _5$$6, _4$$6); ZEPHIR_GET_HVALUE(directory, _6$$6); @@ -649,11 +648,11 @@ PHP_METHOD(Phalcon_Mvc_View, setParamToView) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &key_param, &value); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { ZEPHIR_INIT_VAR(key); @@ -721,11 +720,11 @@ PHP_METHOD(Phalcon_Mvc_View, setVar) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &key_param, &value); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { ZEPHIR_INIT_VAR(key); @@ -749,11 +748,11 @@ PHP_METHOD(Phalcon_Mvc_View, getVar) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &key_param); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { ZEPHIR_INIT_VAR(key); @@ -868,8 +867,8 @@ PHP_METHOD(Phalcon_Mvc_View, _loadTemplateEngines) { zephir_array_fast_append(arguments, dependencyInjector); zephir_is_iterable(registeredEngines, &_3$$5, &_2$$5, 0, 0, "phalcon/mvc/view.zep", 569); for ( - ; zephir_hash_get_current_data_ex(_3$$5, (void**) &_4$$5, &_2$$5) == SUCCESS - ; zephir_hash_move_forward_ex(_3$$5, &_2$$5) + ; zend_hash_get_current_data_ex(_3$$5, (void**) &_4$$5, &_2$$5) == SUCCESS + ; zend_hash_move_forward_ex(_3$$5, &_2$$5) ) { ZEPHIR_GET_HMKEY(extension, _3$$5, _2$$5); ZEPHIR_GET_HVALUE(engineService, _4$$5); @@ -950,8 +949,8 @@ PHP_METHOD(Phalcon_Mvc_View, _engineRender) { zephir_check_call_status(); zephir_is_iterable(_1, &_3, &_2, 0, 0, "phalcon/mvc/view.zep", 696); for ( - ; zephir_hash_get_current_data_ex(_3, (void**) &_4, &_2) == SUCCESS - ; zephir_hash_move_forward_ex(_3, &_2) + ; zend_hash_get_current_data_ex(_3, (void**) &_4, &_2) == SUCCESS + ; zend_hash_move_forward_ex(_3, &_2) ) { ZEPHIR_GET_HVALUE(viewsDir, _4); ZEPHIR_CALL_METHOD(&_5$$3, this_ptr, "_isabsolutepath", &_6, 386, viewPath); @@ -1008,8 +1007,8 @@ PHP_METHOD(Phalcon_Mvc_View, _engineRender) { } zephir_is_iterable(engines, &_15$$3, &_14$$3, 0, 0, "phalcon/mvc/view.zep", 694); for ( - ; zephir_hash_get_current_data_ex(_15$$3, (void**) &_16$$3, &_14$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_15$$3, &_14$$3) + ; zend_hash_get_current_data_ex(_15$$3, (void**) &_16$$3, &_14$$3) == SUCCESS + ; zend_hash_move_forward_ex(_15$$3, &_14$$3) ) { ZEPHIR_GET_HMKEY(extension, _15$$3, _14$$3); ZEPHIR_GET_HVALUE(engine, _16$$3); @@ -1118,11 +1117,11 @@ PHP_METHOD(Phalcon_Mvc_View, exists) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &view_param); - if (unlikely(Z_TYPE_P(view_param) != IS_STRING && Z_TYPE_P(view_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(view_param) != IS_STRING && Z_TYPE_P(view_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'view' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(view_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(view_param) == IS_STRING)) { zephir_get_strval(view, view_param); } else { ZEPHIR_INIT_VAR(view); @@ -1144,15 +1143,15 @@ PHP_METHOD(Phalcon_Mvc_View, exists) { zephir_check_call_status(); zephir_is_iterable(_0, &_2, &_1, 0, 0, "phalcon/mvc/view.zep", 753); for ( - ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS - ; zephir_hash_move_forward_ex(_2, &_1) + ; zend_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS + ; zend_hash_move_forward_ex(_2, &_1) ) { ZEPHIR_GET_HVALUE(viewsDir, _3); ZEPHIR_INIT_NVAR(_4$$4); zephir_is_iterable(engines, &_6$$4, &_5$$4, 0, 0, "phalcon/mvc/view.zep", 751); for ( - ; zephir_hash_get_current_data_ex(_6$$4, (void**) &_7$$4, &_5$$4) == SUCCESS - ; zephir_hash_move_forward_ex(_6$$4, &_5$$4) + ; zend_hash_get_current_data_ex(_6$$4, (void**) &_7$$4, &_5$$4) == SUCCESS + ; zend_hash_move_forward_ex(_6$$4, &_5$$4) ) { ZEPHIR_GET_HMKEY(extension, _6$$4, _5$$4); ZEPHIR_GET_HVALUE(_4$$4, _7$$4); @@ -1192,21 +1191,21 @@ PHP_METHOD(Phalcon_Mvc_View, render) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 1, &controllerName_param, &actionName_param, ¶ms); - if (unlikely(Z_TYPE_P(controllerName_param) != IS_STRING && Z_TYPE_P(controllerName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(controllerName_param) != IS_STRING && Z_TYPE_P(controllerName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'controllerName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(controllerName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(controllerName_param) == IS_STRING)) { zephir_get_strval(controllerName, controllerName_param); } else { ZEPHIR_INIT_VAR(controllerName); ZVAL_EMPTY_STRING(controllerName); } - if (unlikely(Z_TYPE_P(actionName_param) != IS_STRING && Z_TYPE_P(actionName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(actionName_param) != IS_STRING && Z_TYPE_P(actionName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'actionName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(actionName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(actionName_param) == IS_STRING)) { zephir_get_strval(actionName, actionName_param); } else { ZEPHIR_INIT_VAR(actionName); @@ -1330,8 +1329,8 @@ PHP_METHOD(Phalcon_Mvc_View, render) { silence = 0; zephir_is_iterable(templatesBefore, &_18$$20, &_17$$20, 0, 0, "phalcon/mvc/view.zep", 904); for ( - ; zephir_hash_get_current_data_ex(_18$$20, (void**) &_19$$20, &_17$$20) == SUCCESS - ; zephir_hash_move_forward_ex(_18$$20, &_17$$20) + ; zend_hash_get_current_data_ex(_18$$20, (void**) &_19$$20, &_17$$20) == SUCCESS + ; zend_hash_move_forward_ex(_18$$20, &_17$$20) ) { ZEPHIR_GET_HVALUE(templateBefore, _19$$20); ZEPHIR_INIT_LNVAR(_20$$21); @@ -1387,8 +1386,8 @@ PHP_METHOD(Phalcon_Mvc_View, render) { silence = 0; zephir_is_iterable(templatesAfter, &_29$$25, &_28$$25, 0, 0, "phalcon/mvc/view.zep", 931); for ( - ; zephir_hash_get_current_data_ex(_29$$25, (void**) &_30$$25, &_28$$25) == SUCCESS - ; zephir_hash_move_forward_ex(_29$$25, &_28$$25) + ; zend_hash_get_current_data_ex(_29$$25, (void**) &_30$$25, &_28$$25) == SUCCESS + ; zend_hash_move_forward_ex(_29$$25, &_28$$25) ) { ZEPHIR_GET_HVALUE(templateAfter, _30$$25); ZEPHIR_INIT_LNVAR(_31$$26); @@ -1542,11 +1541,11 @@ PHP_METHOD(Phalcon_Mvc_View, getPartial) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &partialPath_param, ¶ms); - if (unlikely(Z_TYPE_P(partialPath_param) != IS_STRING && Z_TYPE_P(partialPath_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(partialPath_param) != IS_STRING && Z_TYPE_P(partialPath_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'partialPath' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(partialPath_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(partialPath_param) == IS_STRING)) { zephir_get_strval(partialPath, partialPath_param); } else { ZEPHIR_INIT_VAR(partialPath); @@ -1594,11 +1593,11 @@ PHP_METHOD(Phalcon_Mvc_View, partial) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &partialPath_param, ¶ms); - if (unlikely(Z_TYPE_P(partialPath_param) != IS_STRING && Z_TYPE_P(partialPath_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(partialPath_param) != IS_STRING && Z_TYPE_P(partialPath_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'partialPath' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(partialPath_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(partialPath_param) == IS_STRING)) { zephir_get_strval(partialPath, partialPath_param); } else { ZEPHIR_INIT_VAR(partialPath); @@ -1666,21 +1665,21 @@ PHP_METHOD(Phalcon_Mvc_View, getRender) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 2, &controllerName_param, &actionName_param, ¶ms, &configCallback); - if (unlikely(Z_TYPE_P(controllerName_param) != IS_STRING && Z_TYPE_P(controllerName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(controllerName_param) != IS_STRING && Z_TYPE_P(controllerName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'controllerName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(controllerName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(controllerName_param) == IS_STRING)) { zephir_get_strval(controllerName, controllerName_param); } else { ZEPHIR_INIT_VAR(controllerName); ZVAL_EMPTY_STRING(controllerName); } - if (unlikely(Z_TYPE_P(actionName_param) != IS_STRING && Z_TYPE_P(actionName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(actionName_param) != IS_STRING && Z_TYPE_P(actionName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'actionName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(actionName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(actionName_param) == IS_STRING)) { zephir_get_strval(actionName, actionName_param); } else { ZEPHIR_INIT_VAR(actionName); @@ -1857,8 +1856,8 @@ PHP_METHOD(Phalcon_Mvc_View, cache) { } zephir_is_iterable(options, &_1$$3, &_0$$3, 0, 0, "phalcon/mvc/view.zep", 1262); for ( - ; zephir_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_1$$3, &_0$$3) + ; zend_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS + ; zend_hash_move_forward_ex(_1$$3, &_0$$3) ) { ZEPHIR_GET_HMKEY(key, _1$$3, _0$$3); ZEPHIR_GET_HVALUE(value, _2$$3); @@ -2037,11 +2036,11 @@ PHP_METHOD(Phalcon_Mvc_View, __set) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &key_param, &value); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { ZEPHIR_INIT_VAR(key); @@ -2069,11 +2068,11 @@ PHP_METHOD(Phalcon_Mvc_View, __get) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &key_param); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { ZEPHIR_INIT_VAR(key); @@ -2115,11 +2114,11 @@ PHP_METHOD(Phalcon_Mvc_View, __isset) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &key_param); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { ZEPHIR_INIT_VAR(key); diff --git a/ext/phalcon/mvc/view/engine.zep.c b/ext/phalcon/mvc/view/engine.zep.c index 5eb8e99e7e4..e62832bcc7c 100644 --- a/ext/phalcon/mvc/view/engine.zep.c +++ b/ext/phalcon/mvc/view/engine.zep.c @@ -89,11 +89,11 @@ PHP_METHOD(Phalcon_Mvc_View_Engine, partial) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &partialPath_param, ¶ms); - if (unlikely(Z_TYPE_P(partialPath_param) != IS_STRING && Z_TYPE_P(partialPath_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(partialPath_param) != IS_STRING && Z_TYPE_P(partialPath_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'partialPath' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(partialPath_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(partialPath_param) == IS_STRING)) { zephir_get_strval(partialPath, partialPath_param); } else { ZEPHIR_INIT_VAR(partialPath); diff --git a/ext/phalcon/mvc/view/engine/php.zep.c b/ext/phalcon/mvc/view/engine/php.zep.c index 5185c72e17e..270486a0ca2 100644 --- a/ext/phalcon/mvc/view/engine/php.zep.c +++ b/ext/phalcon/mvc/view/engine/php.zep.c @@ -13,7 +13,6 @@ #include "kernel/main.h" #include "kernel/fcall.h" -#include "kernel/hash.h" #include "kernel/memory.h" #include "kernel/require.h" #include "kernel/object.h" @@ -50,11 +49,11 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Php, render) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 1, &path_param, ¶ms, &mustClean_param); - if (unlikely(Z_TYPE_P(path_param) != IS_STRING && Z_TYPE_P(path_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(path_param) != IS_STRING && Z_TYPE_P(path_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'path' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(path_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(path_param) == IS_STRING)) { zephir_get_strval(path, path_param); } else { ZEPHIR_INIT_VAR(path); @@ -74,8 +73,8 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Php, render) { if (Z_TYPE_P(params) == IS_ARRAY) { zephir_is_iterable(params, &_1$$4, &_0$$4, 0, 0, "phalcon/mvc/view/engine/php.zep", 50); for ( - ; zephir_hash_get_current_data_ex(_1$$4, (void**) &_2$$4, &_0$$4) == SUCCESS - ; zephir_hash_move_forward_ex(_1$$4, &_0$$4) + ; zend_hash_get_current_data_ex(_1$$4, (void**) &_2$$4, &_0$$4) == SUCCESS + ; zend_hash_move_forward_ex(_1$$4, &_0$$4) ) { ZEPHIR_GET_HMKEY(key, _1$$4, _0$$4); ZEPHIR_GET_HVALUE(value, _2$$4); diff --git a/ext/phalcon/mvc/view/engine/volt.zep.c b/ext/phalcon/mvc/view/engine/volt.zep.c index 6ed7e5b6f2d..542ba05ca78 100644 --- a/ext/phalcon/mvc/view/engine/volt.zep.c +++ b/ext/phalcon/mvc/view/engine/volt.zep.c @@ -17,7 +17,6 @@ #include "kernel/exception.h" #include "kernel/memory.h" #include "kernel/fcall.h" -#include "kernel/hash.h" #include "kernel/require.h" #include "kernel/operators.h" #include "kernel/string.h" @@ -123,11 +122,11 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt, render) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 1, &templatePath_param, ¶ms, &mustClean_param); - if (unlikely(Z_TYPE_P(templatePath_param) != IS_STRING && Z_TYPE_P(templatePath_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(templatePath_param) != IS_STRING && Z_TYPE_P(templatePath_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'templatePath' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(templatePath_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(templatePath_param) == IS_STRING)) { zephir_get_strval(templatePath, templatePath_param); } else { ZEPHIR_INIT_VAR(templatePath); @@ -153,8 +152,8 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt, render) { if (Z_TYPE_P(params) == IS_ARRAY) { zephir_is_iterable(params, &_1$$4, &_0$$4, 0, 0, "phalcon/mvc/view/engine/volt.zep", 116); for ( - ; zephir_hash_get_current_data_ex(_1$$4, (void**) &_2$$4, &_0$$4) == SUCCESS - ; zephir_hash_move_forward_ex(_1$$4, &_0$$4) + ; zend_hash_get_current_data_ex(_1$$4, (void**) &_2$$4, &_0$$4) == SUCCESS + ; zend_hash_move_forward_ex(_1$$4, &_0$$4) ) { ZEPHIR_GET_HMKEY(key, _1$$4, _0$$4); ZEPHIR_GET_HVALUE(value, _2$$4); @@ -253,21 +252,21 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt, convertEncoding) { zephir_fetch_params(1, 3, 0, &text_param, &from_param, &to_param); zephir_get_strval(text, text_param); - if (unlikely(Z_TYPE_P(from_param) != IS_STRING && Z_TYPE_P(from_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(from_param) != IS_STRING && Z_TYPE_P(from_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'from' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(from_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(from_param) == IS_STRING)) { zephir_get_strval(from, from_param); } else { ZEPHIR_INIT_VAR(from); ZVAL_EMPTY_STRING(from); } - if (unlikely(Z_TYPE_P(to_param) != IS_STRING && Z_TYPE_P(to_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(to_param) != IS_STRING && Z_TYPE_P(to_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'to' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(to_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(to_param) == IS_STRING)) { zephir_get_strval(to, to_param); } else { ZEPHIR_INIT_VAR(to); @@ -440,11 +439,11 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt, callMacro) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &name_param, &arguments_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); diff --git a/ext/phalcon/mvc/view/engine/volt/compiler.zep.c b/ext/phalcon/mvc/view/engine/volt/compiler.zep.c index 50a841a81c6..11efd40d549 100644 --- a/ext/phalcon/mvc/view/engine/volt/compiler.zep.c +++ b/ext/phalcon/mvc/view/engine/volt/compiler.zep.c @@ -18,7 +18,6 @@ #include "kernel/exception.h" #include "kernel/operators.h" #include "kernel/array.h" -#include "kernel/hash.h" #include "kernel/fcall.h" #include "kernel/file.h" #include "Zend/zend_closures.h" @@ -171,11 +170,11 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, setOption) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &option_param, &value); - if (unlikely(Z_TYPE_P(option_param) != IS_STRING && Z_TYPE_P(option_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(option_param) != IS_STRING && Z_TYPE_P(option_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'option' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(option_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(option_param) == IS_STRING)) { zephir_get_strval(option, option_param); } else { ZEPHIR_INIT_VAR(option); @@ -202,11 +201,11 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, getOption) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &option_param); - if (unlikely(Z_TYPE_P(option_param) != IS_STRING && Z_TYPE_P(option_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(option_param) != IS_STRING && Z_TYPE_P(option_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'option' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(option_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(option_param) == IS_STRING)) { zephir_get_strval(option, option_param); } else { ZEPHIR_INIT_VAR(option); @@ -252,11 +251,11 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, fireExtensionEvent) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &name_param, &arguments); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -272,8 +271,8 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, fireExtensionEvent) { if (Z_TYPE_P(extensions) == IS_ARRAY) { zephir_is_iterable(extensions, &_1$$3, &_0$$3, 0, 0, "phalcon/mvc/view/engine/volt/compiler.zep", 189); for ( - ; zephir_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_1$$3, &_0$$3) + ; zend_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS + ; zend_hash_move_forward_ex(_1$$3, &_0$$3) ) { ZEPHIR_GET_HVALUE(extension, _2$$3); if ((zephir_method_exists(extension, name TSRMLS_CC) == SUCCESS)) { @@ -352,11 +351,11 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, addFunction) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &name_param, &definition); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -391,11 +390,11 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, addFilter) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &name_param, &definition); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -430,11 +429,11 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, setUniquePrefix) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &prefix_param); - if (unlikely(Z_TYPE_P(prefix_param) != IS_STRING && Z_TYPE_P(prefix_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(prefix_param) != IS_STRING && Z_TYPE_P(prefix_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'prefix' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(prefix_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(prefix_param) == IS_STRING)) { zephir_get_strval(prefix, prefix_param); } else { ZEPHIR_INIT_VAR(prefix); @@ -1168,8 +1167,8 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, expression) { array_init(items); zephir_is_iterable(expr, &_4$$6, &_3$$6, 0, 0, "phalcon/mvc/view/engine/volt/compiler.zep", 993); for ( - ; zephir_hash_get_current_data_ex(_4$$6, (void**) &_5$$6, &_3$$6) == SUCCESS - ; zephir_hash_move_forward_ex(_4$$6, &_3$$6) + ; zend_hash_get_current_data_ex(_4$$6, (void**) &_5$$6, &_3$$6) == SUCCESS + ; zend_hash_move_forward_ex(_4$$6, &_3$$6) ) { ZEPHIR_GET_HVALUE(singleExpr, _5$$6); zephir_array_fetch_string(&_6$$7, singleExpr, SL("expr"), PH_NOISY | PH_READONLY, "phalcon/mvc/view/engine/volt/compiler.zep", 986 TSRMLS_CC); @@ -1556,8 +1555,8 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, _statementListOrExtends) { if (!(zephir_array_isset_string(statements, SS("type")))) { zephir_is_iterable(statements, &_1$$4, &_0$$4, 0, 0, "phalcon/mvc/view/engine/volt/compiler.zep", 1310); for ( - ; zephir_hash_get_current_data_ex(_1$$4, (void**) &_2$$4, &_0$$4) == SUCCESS - ; zephir_hash_move_forward_ex(_1$$4, &_0$$4) + ; zend_hash_get_current_data_ex(_1$$4, (void**) &_2$$4, &_0$$4) == SUCCESS + ; zend_hash_move_forward_ex(_1$$4, &_0$$4) ) { ZEPHIR_GET_HVALUE(statement, _2$$4); if (Z_TYPE_P(statement) != IS_ARRAY) { @@ -1626,8 +1625,8 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileForeach) { if (Z_TYPE_P(blockStatements) == IS_ARRAY) { zephir_is_iterable(blockStatements, &_2$$4, &_1$$4, 0, 0, "phalcon/mvc/view/engine/volt/compiler.zep", 1388); for ( - ; zephir_hash_get_current_data_ex(_2$$4, (void**) &_3$$4, &_1$$4) == SUCCESS - ; zephir_hash_move_forward_ex(_2$$4, &_1$$4) + ; zend_hash_get_current_data_ex(_2$$4, (void**) &_3$$4, &_1$$4) == SUCCESS + ; zend_hash_move_forward_ex(_2$$4, &_1$$4) ) { ZEPHIR_GET_HVALUE(bstatement, _3$$4); if (Z_TYPE_P(bstatement) != IS_ARRAY) { @@ -1987,8 +1986,8 @@ PHP_METHOD(Phalcon_Mvc_View_Engine_Volt_Compiler, compileSet) { ZVAL_STRING(compilation, "> 1))); diff --git a/ext/phalcon/session/adapter.zep.c b/ext/phalcon/session/adapter.zep.c index 346946cc718..4715d88b591 100644 --- a/ext/phalcon/session/adapter.zep.c +++ b/ext/phalcon/session/adapter.zep.c @@ -20,7 +20,6 @@ #include "ext/spl/spl_exceptions.h" #include "kernel/exception.h" #include "kernel/concat.h" -#include "kernel/hash.h" #include "kernel/string.h" @@ -270,7 +269,6 @@ PHP_METHOD(Phalcon_Session_Adapter, get) { */ PHP_METHOD(Phalcon_Session_Adapter, set) { - int _2, _1$$3; zval *index_param = NULL, *value, *_SESSION, *uniqueId = NULL, *_0$$3; zval *index = NULL; @@ -285,18 +283,10 @@ PHP_METHOD(Phalcon_Session_Adapter, set) { if (!(ZEPHIR_IS_EMPTY(uniqueId))) { ZEPHIR_INIT_VAR(_0$$3); ZEPHIR_CONCAT_VSV(_0$$3, uniqueId, "#", index); - _1$$3 = zephir_maybe_separate_zval(&_SESSION); - zephir_array_update_zval(&_SESSION, _0$$3, &value, PH_COPY | PH_SEPARATE); - if (_1$$3) { - ZEND_SET_SYMBOL(&EG(symbol_table), "_SESSION", _SESSION); - } + zephir_array_update_zval(&_SESSION, _0$$3, &value, PH_COPY); RETURN_MM_NULL(); } - _2 = zephir_maybe_separate_zval(&_SESSION); - zephir_array_update_zval(&_SESSION, index, &value, PH_COPY | PH_SEPARATE); - if (_2) { - ZEND_SET_SYMBOL(&EG(symbol_table), "_SESSION", _SESSION); - } + zephir_array_update_zval(&_SESSION, index, &value, PH_COPY); ZEPHIR_MM_RESTORE(); } @@ -463,8 +453,8 @@ PHP_METHOD(Phalcon_Session_Adapter, destroy) { ZEPHIR_INIT_VAR(_0$$4); zephir_is_iterable(_SESSION, &_2$$4, &_1$$4, 1, 0, "phalcon/session/adapter.zep", 275); for ( - ; zephir_hash_get_current_data_ex(_2$$4, (void**) &_3$$4, &_1$$4) == SUCCESS - ; zephir_hash_move_forward_ex(_2$$4, &_1$$4) + ; zend_hash_get_current_data_ex(_2$$4, (void**) &_3$$4, &_1$$4) == SUCCESS + ; zend_hash_move_forward_ex(_2$$4, &_1$$4) ) { ZEPHIR_GET_HMKEY(key, _2$$4, _1$$4); ZEPHIR_GET_HVALUE(_0$$4, _3$$4); diff --git a/ext/phalcon/session/adapter/libmemcached.zep.c b/ext/phalcon/session/adapter/libmemcached.zep.c index 4c1c03720b1..bb12f37a891 100644 --- a/ext/phalcon/session/adapter/libmemcached.zep.c +++ b/ext/phalcon/session/adapter/libmemcached.zep.c @@ -18,7 +18,6 @@ #include "kernel/exception.h" #include "kernel/fcall.h" #include "kernel/operators.h" -#include "kernel/hash.h" /** @@ -296,8 +295,8 @@ PHP_METHOD(Phalcon_Session_Adapter_Libmemcached, destroy) { ZEPHIR_INIT_VAR(_0); zephir_is_iterable(_SESSION, &_2, &_1, 1, 0, "phalcon/session/adapter/libmemcached.zep", 168); for ( - ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS - ; zephir_hash_move_forward_ex(_2, &_1) + ; zend_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS + ; zend_hash_move_forward_ex(_2, &_1) ) { ZEPHIR_GET_HMKEY(key, _2, _1); ZEPHIR_GET_HVALUE(_0, _3); diff --git a/ext/phalcon/session/bag.zep.c b/ext/phalcon/session/bag.zep.c index 73d2b08a958..21572502d1c 100644 --- a/ext/phalcon/session/bag.zep.c +++ b/ext/phalcon/session/bag.zep.c @@ -69,11 +69,11 @@ PHP_METHOD(Phalcon_Session_Bag, __construct) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &name_param); - if (unlikely(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(name_param) != IS_STRING && Z_TYPE_P(name_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'name' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(name_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(name_param) == IS_STRING)) { zephir_get_strval(name, name_param); } else { ZEPHIR_INIT_VAR(name); @@ -207,11 +207,11 @@ PHP_METHOD(Phalcon_Session_Bag, set) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &property_param, &value); - if (unlikely(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'property' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(property_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(property_param) == IS_STRING)) { zephir_get_strval(property, property_param); } else { ZEPHIR_INIT_VAR(property); @@ -250,11 +250,11 @@ PHP_METHOD(Phalcon_Session_Bag, __set) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &property_param, &value); - if (unlikely(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'property' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(property_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(property_param) == IS_STRING)) { zephir_get_strval(property, property_param); } else { ZEPHIR_INIT_VAR(property); @@ -284,11 +284,11 @@ PHP_METHOD(Phalcon_Session_Bag, get) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &property_param, &defaultValue); - if (unlikely(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'property' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(property_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(property_param) == IS_STRING)) { zephir_get_strval(property, property_param); } else { ZEPHIR_INIT_VAR(property); @@ -329,11 +329,11 @@ PHP_METHOD(Phalcon_Session_Bag, __get) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &property_param); - if (unlikely(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'property' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(property_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(property_param) == IS_STRING)) { zephir_get_strval(property, property_param); } else { ZEPHIR_INIT_VAR(property); @@ -365,11 +365,11 @@ PHP_METHOD(Phalcon_Session_Bag, has) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &property_param); - if (unlikely(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'property' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(property_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(property_param) == IS_STRING)) { zephir_get_strval(property, property_param); } else { ZEPHIR_INIT_VAR(property); @@ -405,11 +405,11 @@ PHP_METHOD(Phalcon_Session_Bag, __isset) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &property_param); - if (unlikely(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'property' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(property_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(property_param) == IS_STRING)) { zephir_get_strval(property, property_param); } else { ZEPHIR_INIT_VAR(property); @@ -439,11 +439,11 @@ PHP_METHOD(Phalcon_Session_Bag, remove) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &property_param); - if (unlikely(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'property' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(property_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(property_param) == IS_STRING)) { zephir_get_strval(property, property_param); } else { ZEPHIR_INIT_VAR(property); @@ -487,11 +487,11 @@ PHP_METHOD(Phalcon_Session_Bag, __unset) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &property_param); - if (unlikely(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'property' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(property_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(property_param) == IS_STRING)) { zephir_get_strval(property, property_param); } else { ZEPHIR_INIT_VAR(property); @@ -561,11 +561,11 @@ PHP_METHOD(Phalcon_Session_Bag, offsetSet) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &property_param, &value); - if (unlikely(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'property' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(property_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(property_param) == IS_STRING)) { zephir_get_strval(property, property_param); } else { ZEPHIR_INIT_VAR(property); @@ -588,11 +588,11 @@ PHP_METHOD(Phalcon_Session_Bag, offsetExists) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &property_param); - if (unlikely(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'property' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(property_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(property_param) == IS_STRING)) { zephir_get_strval(property, property_param); } else { ZEPHIR_INIT_VAR(property); @@ -615,11 +615,11 @@ PHP_METHOD(Phalcon_Session_Bag, offsetUnset) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &property_param); - if (unlikely(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'property' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(property_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(property_param) == IS_STRING)) { zephir_get_strval(property, property_param); } else { ZEPHIR_INIT_VAR(property); @@ -642,11 +642,11 @@ PHP_METHOD(Phalcon_Session_Bag, offsetGet) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &property_param); - if (unlikely(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(property_param) != IS_STRING && Z_TYPE_P(property_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'property' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(property_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(property_param) == IS_STRING)) { zephir_get_strval(property, property_param); } else { ZEPHIR_INIT_VAR(property); diff --git a/ext/phalcon/tag.zep.c b/ext/phalcon/tag.zep.c index dae7aae97b9..fc99176d2d8 100644 --- a/ext/phalcon/tag.zep.c +++ b/ext/phalcon/tag.zep.c @@ -19,7 +19,6 @@ #include "kernel/fcall.h" #include "ext/spl/spl_exceptions.h" #include "kernel/exception.h" -#include "kernel/hash.h" #include "kernel/concat.h" #include "kernel/string.h" @@ -141,11 +140,11 @@ PHP_METHOD(Phalcon_Tag, renderAttributes) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &code_param, &attributes_param); - if (unlikely(Z_TYPE_P(code_param) != IS_STRING && Z_TYPE_P(code_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(code_param) != IS_STRING && Z_TYPE_P(code_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'code' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(code_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(code_param) == IS_STRING)) { zephir_get_strval(code, code_param); } else { ZEPHIR_INIT_VAR(code); @@ -170,8 +169,8 @@ PHP_METHOD(Phalcon_Tag, renderAttributes) { array_init(attrs); zephir_is_iterable(order, &_1, &_0, 0, 0, "phalcon/tag.zep", 137); for ( - ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS - ; zephir_hash_move_forward_ex(_1, &_0) + ; zend_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS + ; zend_hash_move_forward_ex(_1, &_0) ) { ZEPHIR_GET_HMKEY(key, _1, _0); ZEPHIR_GET_HVALUE(value, _2); @@ -182,8 +181,8 @@ PHP_METHOD(Phalcon_Tag, renderAttributes) { } zephir_is_iterable(attributes, &_4, &_3, 0, 0, "phalcon/tag.zep", 143); for ( - ; zephir_hash_get_current_data_ex(_4, (void**) &_5, &_3) == SUCCESS - ; zephir_hash_move_forward_ex(_4, &_3) + ; zend_hash_get_current_data_ex(_4, (void**) &_5, &_3) == SUCCESS + ; zend_hash_move_forward_ex(_4, &_3) ) { ZEPHIR_GET_HMKEY(key, _4, _3); ZEPHIR_GET_HVALUE(value, _5); @@ -198,8 +197,8 @@ PHP_METHOD(Phalcon_Tag, renderAttributes) { ZEPHIR_CPY_WRT(newCode, code); zephir_is_iterable(attrs, &_8, &_7, 0, 0, "phalcon/tag.zep", 162); for ( - ; zephir_hash_get_current_data_ex(_8, (void**) &_9, &_7) == SUCCESS - ; zephir_hash_move_forward_ex(_8, &_7) + ; zend_hash_get_current_data_ex(_8, (void**) &_9, &_7) == SUCCESS + ; zend_hash_move_forward_ex(_8, &_7) ) { ZEPHIR_GET_HMKEY(key, _8, _7); ZEPHIR_GET_HVALUE(value, _9); @@ -380,11 +379,11 @@ PHP_METHOD(Phalcon_Tag, setDefault) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &id_param, &value); - if (unlikely(Z_TYPE_P(id_param) != IS_STRING && Z_TYPE_P(id_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(id_param) != IS_STRING && Z_TYPE_P(id_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'id' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(id_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(id_param) == IS_STRING)) { zephir_get_strval(id, id_param); } else { ZEPHIR_INIT_VAR(id); @@ -1956,8 +1955,8 @@ PHP_METHOD(Phalcon_Tag, getTitle) { zephir_check_call_status(); zephir_is_iterable(tmp$$5, &_9$$5, &_8$$5, 0, 0, "phalcon/tag.zep", 1228); for ( - ; zephir_hash_get_current_data_ex(_9$$5, (void**) &_10$$5, &_8$$5) == SUCCESS - ; zephir_hash_move_forward_ex(_9$$5, &_8$$5) + ; zend_hash_get_current_data_ex(_9$$5, (void**) &_10$$5, &_8$$5) == SUCCESS + ; zend_hash_move_forward_ex(_9$$5, &_8$$5) ) { ZEPHIR_GET_HVALUE(title, _10$$5); ZEPHIR_CALL_METHOD(&_11$$6, escaper, "escapehtml", &_12, 0, title); @@ -1971,8 +1970,8 @@ PHP_METHOD(Phalcon_Tag, getTitle) { if (!(ZEPHIR_IS_EMPTY(documentAppendTitle))) { zephir_is_iterable(documentAppendTitle, &_14$$8, &_13$$8, 0, 0, "phalcon/tag.zep", 1238); for ( - ; zephir_hash_get_current_data_ex(_14$$8, (void**) &_15$$8, &_13$$8) == SUCCESS - ; zephir_hash_move_forward_ex(_14$$8, &_13$$8) + ; zend_hash_get_current_data_ex(_14$$8, (void**) &_15$$8, &_13$$8) == SUCCESS + ; zend_hash_move_forward_ex(_14$$8, &_13$$8) ) { ZEPHIR_GET_HVALUE(title, _15$$8); ZEPHIR_CALL_METHOD(&_16$$9, escaper, "escapehtml", &_17, 0, title); @@ -2382,8 +2381,8 @@ PHP_METHOD(Phalcon_Tag, friendlyTitle) { if (Z_TYPE_P(replace) == IS_ARRAY) { zephir_is_iterable(replace, &_9$$6, &_8$$6, 0, 0, "phalcon/tag.zep", 1502); for ( - ; zephir_hash_get_current_data_ex(_9$$6, (void**) &_10$$6, &_8$$6) == SUCCESS - ; zephir_hash_move_forward_ex(_9$$6, &_8$$6) + ; zend_hash_get_current_data_ex(_9$$6, (void**) &_10$$6, &_8$$6) == SUCCESS + ; zend_hash_move_forward_ex(_9$$6, &_8$$6) ) { ZEPHIR_GET_HVALUE(search, _10$$6); ZEPHIR_INIT_NVAR(_11$$7); diff --git a/ext/phalcon/tag/select.zep.c b/ext/phalcon/tag/select.zep.c index 0263dd859e9..6d088d936e7 100644 --- a/ext/phalcon/tag/select.zep.c +++ b/ext/phalcon/tag/select.zep.c @@ -21,7 +21,6 @@ #include "kernel/concat.h" #include "kernel/iterator.h" #include "kernel/object.h" -#include "kernel/hash.h" /** @@ -318,8 +317,8 @@ PHP_METHOD(Phalcon_Tag_Select, _optionsFromArray) { ZVAL_STRING(code, "", 1); zephir_is_iterable(data, &_1, &_0, 0, 0, "phalcon/tag/select.zep", 274); for ( - ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS - ; zephir_hash_move_forward_ex(_1, &_0) + ; zend_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS + ; zend_hash_move_forward_ex(_1, &_0) ) { ZEPHIR_GET_HMKEY(optionValue, _1, _0); ZEPHIR_GET_HVALUE(optionText, _2); diff --git a/ext/phalcon/text.zep.c b/ext/phalcon/text.zep.c index 3f8f9e3b85c..6b10e5ef689 100644 --- a/ext/phalcon/text.zep.c +++ b/ext/phalcon/text.zep.c @@ -22,7 +22,7 @@ #include "kernel/fcall.h" #include "kernel/math.h" #include "kernel/object.h" -#include "kernel/hash.h" +#include "kernel/main.h" /** @@ -65,11 +65,11 @@ PHP_METHOD(Phalcon_Text, camelize) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &str_param, &delimiter); - if (unlikely(Z_TYPE_P(str_param) != IS_STRING && Z_TYPE_P(str_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(str_param) != IS_STRING && Z_TYPE_P(str_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'str' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(str_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(str_param) == IS_STRING)) { zephir_get_strval(str, str_param); } else { ZEPHIR_INIT_VAR(str); @@ -102,11 +102,11 @@ PHP_METHOD(Phalcon_Text, uncamelize) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &str_param, &delimiter); - if (unlikely(Z_TYPE_P(str_param) != IS_STRING && Z_TYPE_P(str_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(str_param) != IS_STRING && Z_TYPE_P(str_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'str' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(str_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(str_param) == IS_STRING)) { zephir_get_strval(str, str_param); } else { ZEPHIR_INIT_VAR(str); @@ -372,11 +372,11 @@ PHP_METHOD(Phalcon_Text, lower) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &str_param, &encoding_param); - if (unlikely(Z_TYPE_P(str_param) != IS_STRING && Z_TYPE_P(str_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(str_param) != IS_STRING && Z_TYPE_P(str_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'str' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(str_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(str_param) == IS_STRING)) { zephir_get_strval(str, str_param); } else { ZEPHIR_INIT_VAR(str); @@ -386,11 +386,11 @@ PHP_METHOD(Phalcon_Text, lower) { ZEPHIR_INIT_VAR(encoding); ZVAL_STRING(encoding, "UTF-8", 1); } else { - if (unlikely(Z_TYPE_P(encoding_param) != IS_STRING && Z_TYPE_P(encoding_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(encoding_param) != IS_STRING && Z_TYPE_P(encoding_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'encoding' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(encoding_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(encoding_param) == IS_STRING)) { zephir_get_strval(encoding, encoding_param); } else { ZEPHIR_INIT_VAR(encoding); @@ -425,11 +425,11 @@ PHP_METHOD(Phalcon_Text, upper) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &str_param, &encoding_param); - if (unlikely(Z_TYPE_P(str_param) != IS_STRING && Z_TYPE_P(str_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(str_param) != IS_STRING && Z_TYPE_P(str_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'str' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(str_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(str_param) == IS_STRING)) { zephir_get_strval(str, str_param); } else { ZEPHIR_INIT_VAR(str); @@ -439,11 +439,11 @@ PHP_METHOD(Phalcon_Text, upper) { ZEPHIR_INIT_VAR(encoding); ZVAL_STRING(encoding, "UTF-8", 1); } else { - if (unlikely(Z_TYPE_P(encoding_param) != IS_STRING && Z_TYPE_P(encoding_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(encoding_param) != IS_STRING && Z_TYPE_P(encoding_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'encoding' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(encoding_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(encoding_param) == IS_STRING)) { zephir_get_strval(encoding, encoding_param); } else { ZEPHIR_INIT_VAR(encoding); @@ -517,54 +517,52 @@ PHP_METHOD(Phalcon_Text, reduceSlashes) { */ PHP_METHOD(Phalcon_Text, concat) { - HashTable *_6$$3; - HashPosition _5$$3; - zval *separator = NULL, *a = NULL, *b = NULL, _0 = zval_used_for_init, *c = NULL, *_11, *_12, *_2$$3, _3$$3, *_4$$3 = NULL, **_7$$3, *_8$$4 = NULL, *_9$$4 = NULL, *_10$$4 = NULL; + HashTable *_7$$3; + HashPosition _6$$3; + zval *separator = NULL, *a = NULL, *b = NULL, _0, _1, _2, *c = NULL, *_12, *_13, *_3$$3, _4$$3, *_5$$3 = NULL, **_8$$3, *_9$$4 = NULL, *_10$$4 = NULL, *_11$$4 = NULL; int ZEPHIR_LAST_CALL_STATUS; - zephir_fcall_cache_entry *_1 = NULL; ZEPHIR_MM_GROW(); + ZEPHIR_INIT_VAR(separator); ZEPHIR_SINIT_VAR(_0); ZVAL_LONG(&_0, 0); - ZEPHIR_CALL_FUNCTION(&separator, "func_get_arg", &_1, 448, &_0); - zephir_check_call_status(); - ZEPHIR_SINIT_NVAR(_0); - ZVAL_LONG(&_0, 1); - ZEPHIR_CALL_FUNCTION(&a, "func_get_arg", &_1, 448, &_0); - zephir_check_call_status(); - ZEPHIR_SINIT_NVAR(_0); - ZVAL_LONG(&_0, 2); - ZEPHIR_CALL_FUNCTION(&b, "func_get_arg", &_1, 448, &_0); - zephir_check_call_status(); + zephir_get_arg(separator, zephir_get_intval(&_0) TSRMLS_CC); + ZEPHIR_INIT_VAR(a); + ZEPHIR_SINIT_VAR(_1); + ZVAL_LONG(&_1, 1); + zephir_get_arg(a, zephir_get_intval(&_1) TSRMLS_CC); + ZEPHIR_INIT_VAR(b); + ZEPHIR_SINIT_VAR(_2); + ZVAL_LONG(&_2, 2); + zephir_get_arg(b, zephir_get_intval(&_2) TSRMLS_CC); if (ZEND_NUM_ARGS() > 3) { - ZEPHIR_INIT_VAR(_2$$3); - array_init(_2$$3); - zend_copy_parameters_array(ZEND_NUM_ARGS(), _2$$3 TSRMLS_CC); - ZEPHIR_SINIT_VAR(_3$$3); - ZVAL_LONG(&_3$$3, 3); - ZEPHIR_CALL_FUNCTION(&_4$$3, "array_slice", NULL, 395, _2$$3, &_3$$3); + ZEPHIR_INIT_VAR(_3$$3); + zephir_get_args(_3$$3 TSRMLS_CC); + ZEPHIR_SINIT_VAR(_4$$3); + ZVAL_LONG(&_4$$3, 3); + ZEPHIR_CALL_FUNCTION(&_5$$3, "array_slice", NULL, 395, _3$$3, &_4$$3); zephir_check_call_status(); - zephir_is_iterable(_4$$3, &_6$$3, &_5$$3, 0, 0, "phalcon/text.zep", 256); + zephir_is_iterable(_5$$3, &_7$$3, &_6$$3, 0, 0, "phalcon/text.zep", 256); for ( - ; zephir_hash_get_current_data_ex(_6$$3, (void**) &_7$$3, &_5$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_6$$3, &_5$$3) + ; zend_hash_get_current_data_ex(_7$$3, (void**) &_8$$3, &_6$$3) == SUCCESS + ; zend_hash_move_forward_ex(_7$$3, &_6$$3) ) { - ZEPHIR_GET_HVALUE(c, _7$$3); - ZEPHIR_INIT_NVAR(_8$$4); - zephir_fast_trim(_8$$4, b, separator, ZEPHIR_TRIM_RIGHT TSRMLS_CC); + ZEPHIR_GET_HVALUE(c, _8$$3); ZEPHIR_INIT_NVAR(_9$$4); - zephir_fast_trim(_9$$4, c, separator, ZEPHIR_TRIM_LEFT TSRMLS_CC); - ZEPHIR_INIT_LNVAR(_10$$4); - ZEPHIR_CONCAT_VVV(_10$$4, _8$$4, separator, _9$$4); - ZEPHIR_CPY_WRT(b, _10$$4); + zephir_fast_trim(_9$$4, b, separator, ZEPHIR_TRIM_RIGHT TSRMLS_CC); + ZEPHIR_INIT_NVAR(_10$$4); + zephir_fast_trim(_10$$4, c, separator, ZEPHIR_TRIM_LEFT TSRMLS_CC); + ZEPHIR_INIT_LNVAR(_11$$4); + ZEPHIR_CONCAT_VVV(_11$$4, _9$$4, separator, _10$$4); + ZEPHIR_CPY_WRT(b, _11$$4); } } - ZEPHIR_INIT_VAR(_11); - zephir_fast_trim(_11, a, separator, ZEPHIR_TRIM_RIGHT TSRMLS_CC); ZEPHIR_INIT_VAR(_12); - zephir_fast_trim(_12, b, separator, ZEPHIR_TRIM_LEFT TSRMLS_CC); - ZEPHIR_CONCAT_VVV(return_value, _11, separator, _12); + zephir_fast_trim(_12, a, separator, ZEPHIR_TRIM_RIGHT TSRMLS_CC); + ZEPHIR_INIT_VAR(_13); + zephir_fast_trim(_13, b, separator, ZEPHIR_TRIM_LEFT TSRMLS_CC); + ZEPHIR_CONCAT_VVV(return_value, _12, separator, _13); RETURN_MM(); } @@ -599,11 +597,11 @@ PHP_METHOD(Phalcon_Text, dynamic) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 3, &text_param, &leftDelimiter_param, &rightDelimiter_param, &separator_param); - if (unlikely(Z_TYPE_P(text_param) != IS_STRING && Z_TYPE_P(text_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(text_param) != IS_STRING && Z_TYPE_P(text_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'text' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(text_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(text_param) == IS_STRING)) { zephir_get_strval(text, text_param); } else { ZEPHIR_INIT_VAR(text); @@ -613,11 +611,11 @@ PHP_METHOD(Phalcon_Text, dynamic) { ZEPHIR_INIT_VAR(leftDelimiter); ZVAL_STRING(leftDelimiter, "{", 1); } else { - if (unlikely(Z_TYPE_P(leftDelimiter_param) != IS_STRING && Z_TYPE_P(leftDelimiter_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(leftDelimiter_param) != IS_STRING && Z_TYPE_P(leftDelimiter_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'leftDelimiter' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(leftDelimiter_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(leftDelimiter_param) == IS_STRING)) { zephir_get_strval(leftDelimiter, leftDelimiter_param); } else { ZEPHIR_INIT_VAR(leftDelimiter); @@ -628,11 +626,11 @@ PHP_METHOD(Phalcon_Text, dynamic) { ZEPHIR_INIT_VAR(rightDelimiter); ZVAL_STRING(rightDelimiter, "}", 1); } else { - if (unlikely(Z_TYPE_P(rightDelimiter_param) != IS_STRING && Z_TYPE_P(rightDelimiter_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(rightDelimiter_param) != IS_STRING && Z_TYPE_P(rightDelimiter_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'rightDelimiter' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(rightDelimiter_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(rightDelimiter_param) == IS_STRING)) { zephir_get_strval(rightDelimiter, rightDelimiter_param); } else { ZEPHIR_INIT_VAR(rightDelimiter); @@ -643,11 +641,11 @@ PHP_METHOD(Phalcon_Text, dynamic) { ZEPHIR_INIT_VAR(separator); ZVAL_STRING(separator, "|", 1); } else { - if (unlikely(Z_TYPE_P(separator_param) != IS_STRING && Z_TYPE_P(separator_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(separator_param) != IS_STRING && Z_TYPE_P(separator_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'separator' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(separator_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(separator_param) == IS_STRING)) { zephir_get_strval(separator, separator_param); } else { ZEPHIR_INIT_VAR(separator); @@ -656,24 +654,24 @@ PHP_METHOD(Phalcon_Text, dynamic) { } - ZEPHIR_CALL_FUNCTION(&_0, "substr_count", &_1, 449, text, leftDelimiter); + ZEPHIR_CALL_FUNCTION(&_0, "substr_count", &_1, 448, text, leftDelimiter); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_2, "substr_count", &_1, 449, text, rightDelimiter); + ZEPHIR_CALL_FUNCTION(&_2, "substr_count", &_1, 448, text, rightDelimiter); zephir_check_call_status(); if (!ZEPHIR_IS_IDENTICAL(_0, _2)) { ZEPHIR_INIT_VAR(_3$$3); object_init_ex(_3$$3, spl_ce_RuntimeException); ZEPHIR_INIT_VAR(_4$$3); ZEPHIR_CONCAT_SVS(_4$$3, "Syntax error in string \"", text, "\""); - ZEPHIR_CALL_METHOD(NULL, _3$$3, "__construct", NULL, 450, _4$$3); + ZEPHIR_CALL_METHOD(NULL, _3$$3, "__construct", NULL, 449, _4$$3); zephir_check_call_status(); zephir_throw_exception_debug(_3$$3, "phalcon/text.zep", 283 TSRMLS_CC); ZEPHIR_MM_RESTORE(); return; } - ZEPHIR_CALL_FUNCTION(&ldS, "preg_quote", &_5, 451, leftDelimiter); + ZEPHIR_CALL_FUNCTION(&ldS, "preg_quote", &_5, 450, leftDelimiter); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&rdS, "preg_quote", &_5, 451, rightDelimiter); + ZEPHIR_CALL_FUNCTION(&rdS, "preg_quote", &_5, 450, rightDelimiter); zephir_check_call_status(); ZEPHIR_INIT_VAR(pattern); ZEPHIR_CONCAT_SVSVVSVS(pattern, "/", ldS, "([^", ldS, rdS, "]+)", rdS, "/"); @@ -691,8 +689,8 @@ PHP_METHOD(Phalcon_Text, dynamic) { if (Z_TYPE_P(matches) == IS_ARRAY) { zephir_is_iterable(matches, &_9$$5, &_8$$5, 0, 0, "phalcon/text.zep", 306); for ( - ; zephir_hash_get_current_data_ex(_9$$5, (void**) &_10$$5, &_8$$5) == SUCCESS - ; zephir_hash_move_forward_ex(_9$$5, &_8$$5) + ; zend_hash_get_current_data_ex(_9$$5, (void**) &_10$$5, &_8$$5) == SUCCESS + ; zend_hash_move_forward_ex(_9$$5, &_8$$5) ) { ZEPHIR_GET_HVALUE(match, _10$$5); _11$$6 = !(zephir_array_isset_long(match, 0)); @@ -706,11 +704,11 @@ PHP_METHOD(Phalcon_Text, dynamic) { ZEPHIR_INIT_NVAR(words); zephir_fast_explode(words, separator, _12$$6, LONG_MAX TSRMLS_CC); ZEPHIR_OBS_NVAR(word); - ZEPHIR_CALL_FUNCTION(&_13$$6, "array_rand", &_14, 452, words); + ZEPHIR_CALL_FUNCTION(&_13$$6, "array_rand", &_14, 451, words); zephir_check_call_status(); zephir_array_fetch(&word, words, _13$$6, PH_NOISY, "phalcon/text.zep", 302 TSRMLS_CC); zephir_array_fetch_long(&_15$$6, match, 0, PH_NOISY | PH_READONLY, "phalcon/text.zep", 303 TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&sub, "preg_quote", &_5, 451, _15$$6, separator); + ZEPHIR_CALL_FUNCTION(&sub, "preg_quote", &_5, 450, _15$$6, separator); zephir_check_call_status(); ZEPHIR_INIT_LNVAR(_16$$6); ZEPHIR_CONCAT_SVS(_16$$6, "/", sub, "/"); @@ -742,11 +740,11 @@ PHP_METHOD(Phalcon_Text, underscore) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &text_param); - if (unlikely(Z_TYPE_P(text_param) != IS_STRING && Z_TYPE_P(text_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(text_param) != IS_STRING && Z_TYPE_P(text_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'text' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(text_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(text_param) == IS_STRING)) { zephir_get_strval(text, text_param); } else { ZEPHIR_INIT_VAR(text); @@ -785,11 +783,11 @@ PHP_METHOD(Phalcon_Text, humanize) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &text_param); - if (unlikely(Z_TYPE_P(text_param) != IS_STRING && Z_TYPE_P(text_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(text_param) != IS_STRING && Z_TYPE_P(text_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'text' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(text_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(text_param) == IS_STRING)) { zephir_get_strval(text, text_param); } else { ZEPHIR_INIT_VAR(text); diff --git a/ext/phalcon/translate/adapter.zep.c b/ext/phalcon/translate/adapter.zep.c index dedb9a83b29..1c0ef4c18c0 100644 --- a/ext/phalcon/translate/adapter.zep.c +++ b/ext/phalcon/translate/adapter.zep.c @@ -96,11 +96,11 @@ PHP_METHOD(Phalcon_Translate_Adapter, t) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &translateKey_param, &placeholders); - if (unlikely(Z_TYPE_P(translateKey_param) != IS_STRING && Z_TYPE_P(translateKey_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(translateKey_param) != IS_STRING && Z_TYPE_P(translateKey_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'translateKey' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(translateKey_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(translateKey_param) == IS_STRING)) { zephir_get_strval(translateKey, translateKey_param); } else { ZEPHIR_INIT_VAR(translateKey); @@ -133,11 +133,11 @@ PHP_METHOD(Phalcon_Translate_Adapter, _) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &translateKey_param, &placeholders); - if (unlikely(Z_TYPE_P(translateKey_param) != IS_STRING && Z_TYPE_P(translateKey_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(translateKey_param) != IS_STRING && Z_TYPE_P(translateKey_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'translateKey' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(translateKey_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(translateKey_param) == IS_STRING)) { zephir_get_strval(translateKey, translateKey_param); } else { ZEPHIR_INIT_VAR(translateKey); @@ -185,11 +185,11 @@ PHP_METHOD(Phalcon_Translate_Adapter, offsetExists) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &translateKey_param); - if (unlikely(Z_TYPE_P(translateKey_param) != IS_STRING && Z_TYPE_P(translateKey_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(translateKey_param) != IS_STRING && Z_TYPE_P(translateKey_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'translateKey' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(translateKey_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(translateKey_param) == IS_STRING)) { zephir_get_strval(translateKey, translateKey_param); } else { ZEPHIR_INIT_VAR(translateKey); @@ -236,11 +236,11 @@ PHP_METHOD(Phalcon_Translate_Adapter, offsetGet) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &translateKey_param); - if (unlikely(Z_TYPE_P(translateKey_param) != IS_STRING && Z_TYPE_P(translateKey_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(translateKey_param) != IS_STRING && Z_TYPE_P(translateKey_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'translateKey' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(translateKey_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(translateKey_param) == IS_STRING)) { zephir_get_strval(translateKey, translateKey_param); } else { ZEPHIR_INIT_VAR(translateKey); @@ -268,11 +268,11 @@ PHP_METHOD(Phalcon_Translate_Adapter, replacePlaceholders) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &translation_param, &placeholders); - if (unlikely(Z_TYPE_P(translation_param) != IS_STRING && Z_TYPE_P(translation_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(translation_param) != IS_STRING && Z_TYPE_P(translation_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'translation' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(translation_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(translation_param) == IS_STRING)) { zephir_get_strval(translation, translation_param); } else { ZEPHIR_INIT_VAR(translation); diff --git a/ext/phalcon/translate/adapter/csv.zep.c b/ext/phalcon/translate/adapter/csv.zep.c index 1c598d2cab8..5eb0ff553ee 100644 --- a/ext/phalcon/translate/adapter/csv.zep.c +++ b/ext/phalcon/translate/adapter/csv.zep.c @@ -58,7 +58,7 @@ PHP_METHOD(Phalcon_Translate_Adapter_Csv, __construct) { options = options_param; - ZEPHIR_CALL_PARENT(NULL, phalcon_translate_adapter_csv_ce, this_ptr, "__construct", &_0, 453, options); + ZEPHIR_CALL_PARENT(NULL, phalcon_translate_adapter_csv_ce, this_ptr, "__construct", &_0, 452, options); zephir_check_call_status(); if (!(zephir_array_isset_string(options, SS("content")))) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_translate_exception_ce, "Parameter 'content' is required", "phalcon/translate/adapter/csv.zep", 42); @@ -71,7 +71,7 @@ PHP_METHOD(Phalcon_Translate_Adapter_Csv, __construct) { ZVAL_STRING(_3, ";", ZEPHIR_TEMP_PARAM_COPY); ZEPHIR_INIT_VAR(_4); ZVAL_STRING(_4, "\"", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, this_ptr, "_load", NULL, 454, _1, _2, _3, _4); + ZEPHIR_CALL_METHOD(NULL, this_ptr, "_load", NULL, 453, _1, _2, _3, _4); zephir_check_temp_parameter(_3); zephir_check_temp_parameter(_4); zephir_check_call_status(); @@ -115,7 +115,7 @@ PHP_METHOD(Phalcon_Translate_Adapter_Csv, _load) { return; } while (1) { - ZEPHIR_CALL_FUNCTION(&data, "fgetcsv", &_3, 455, fileHandler, length, delimiter, enclosure); + ZEPHIR_CALL_FUNCTION(&data, "fgetcsv", &_3, 454, fileHandler, length, delimiter, enclosure); zephir_check_call_status(); if (ZEPHIR_IS_FALSE_IDENTICAL(data)) { break; @@ -156,11 +156,11 @@ PHP_METHOD(Phalcon_Translate_Adapter_Csv, query) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &index_param, &placeholders); - if (unlikely(Z_TYPE_P(index_param) != IS_STRING && Z_TYPE_P(index_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(index_param) != IS_STRING && Z_TYPE_P(index_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'index' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(index_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(index_param) == IS_STRING)) { zephir_get_strval(index, index_param); } else { ZEPHIR_INIT_VAR(index); @@ -193,11 +193,11 @@ PHP_METHOD(Phalcon_Translate_Adapter_Csv, exists) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &index_param); - if (unlikely(Z_TYPE_P(index_param) != IS_STRING && Z_TYPE_P(index_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(index_param) != IS_STRING && Z_TYPE_P(index_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'index' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(index_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(index_param) == IS_STRING)) { zephir_get_strval(index, index_param); } else { ZEPHIR_INIT_VAR(index); diff --git a/ext/phalcon/translate/adapter/gettext.zep.c b/ext/phalcon/translate/adapter/gettext.zep.c index 958b73dfe2e..c4f6237e81b 100644 --- a/ext/phalcon/translate/adapter/gettext.zep.c +++ b/ext/phalcon/translate/adapter/gettext.zep.c @@ -18,7 +18,7 @@ #include "ext/spl/spl_exceptions.h" #include "kernel/memory.h" #include "kernel/operators.h" -#include "kernel/hash.h" +#include "kernel/main.h" #include "kernel/concat.h" #include "kernel/array.h" @@ -130,7 +130,7 @@ PHP_METHOD(Phalcon_Translate_Adapter_Gettext, __construct) { ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_translate_exception_ce, "This class requires the gettext extension for PHP", "phalcon/translate/adapter/gettext.zep", 72); return; } - ZEPHIR_CALL_PARENT(NULL, phalcon_translate_adapter_gettext_ce, this_ptr, "__construct", &_0, 453, options); + ZEPHIR_CALL_PARENT(NULL, phalcon_translate_adapter_gettext_ce, this_ptr, "__construct", &_0, 452, options); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, this_ptr, "prepareoptions", NULL, 0, options); zephir_check_call_status(); @@ -154,11 +154,11 @@ PHP_METHOD(Phalcon_Translate_Adapter_Gettext, query) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &index_param, &placeholders); - if (unlikely(Z_TYPE_P(index_param) != IS_STRING && Z_TYPE_P(index_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(index_param) != IS_STRING && Z_TYPE_P(index_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'index' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(index_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(index_param) == IS_STRING)) { zephir_get_strval(index, index_param); } else { ZEPHIR_INIT_VAR(index); @@ -169,7 +169,7 @@ PHP_METHOD(Phalcon_Translate_Adapter_Gettext, query) { } - ZEPHIR_CALL_FUNCTION(&translation, "gettext", NULL, 456, index); + ZEPHIR_CALL_FUNCTION(&translation, "gettext", NULL, 455, index); zephir_check_call_status(); ZEPHIR_RETURN_CALL_METHOD(this_ptr, "replaceplaceholders", NULL, 0, translation, placeholders); zephir_check_call_status(); @@ -189,11 +189,11 @@ PHP_METHOD(Phalcon_Translate_Adapter_Gettext, exists) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &index_param); - if (unlikely(Z_TYPE_P(index_param) != IS_STRING && Z_TYPE_P(index_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(index_param) != IS_STRING && Z_TYPE_P(index_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'index' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(index_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(index_param) == IS_STRING)) { zephir_get_strval(index, index_param); } else { ZEPHIR_INIT_VAR(index); @@ -220,27 +220,27 @@ PHP_METHOD(Phalcon_Translate_Adapter_Gettext, nquery) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 3, 2, &msgid1_param, &msgid2_param, &count_param, &placeholders, &domain_param); - if (unlikely(Z_TYPE_P(msgid1_param) != IS_STRING && Z_TYPE_P(msgid1_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(msgid1_param) != IS_STRING && Z_TYPE_P(msgid1_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'msgid1' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(msgid1_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(msgid1_param) == IS_STRING)) { zephir_get_strval(msgid1, msgid1_param); } else { ZEPHIR_INIT_VAR(msgid1); ZVAL_EMPTY_STRING(msgid1); } - if (unlikely(Z_TYPE_P(msgid2_param) != IS_STRING && Z_TYPE_P(msgid2_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(msgid2_param) != IS_STRING && Z_TYPE_P(msgid2_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'msgid2' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(msgid2_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(msgid2_param) == IS_STRING)) { zephir_get_strval(msgid2, msgid2_param); } else { ZEPHIR_INIT_VAR(msgid2); ZVAL_EMPTY_STRING(msgid2); } - if (unlikely(Z_TYPE_P(count_param) != IS_LONG)) { + if (UNEXPECTED(Z_TYPE_P(count_param) != IS_LONG)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'count' must be a int") TSRMLS_CC); RETURN_MM_NULL(); } @@ -252,11 +252,11 @@ PHP_METHOD(Phalcon_Translate_Adapter_Gettext, nquery) { ZEPHIR_INIT_VAR(domain); ZVAL_EMPTY_STRING(domain); } else { - if (unlikely(Z_TYPE_P(domain_param) != IS_STRING && Z_TYPE_P(domain_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(domain_param) != IS_STRING && Z_TYPE_P(domain_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'domain' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(domain_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(domain_param) == IS_STRING)) { zephir_get_strval(domain, domain_param); } else { ZEPHIR_INIT_VAR(domain); @@ -268,12 +268,12 @@ PHP_METHOD(Phalcon_Translate_Adapter_Gettext, nquery) { if (!(!(!domain) && Z_STRLEN_P(domain))) { ZEPHIR_SINIT_VAR(_0$$3); ZVAL_LONG(&_0$$3, count); - ZEPHIR_CALL_FUNCTION(&translation, "ngettext", NULL, 457, msgid1, msgid2, &_0$$3); + ZEPHIR_CALL_FUNCTION(&translation, "ngettext", NULL, 456, msgid1, msgid2, &_0$$3); zephir_check_call_status(); } else { ZEPHIR_SINIT_VAR(_1$$4); ZVAL_LONG(&_1$$4, count); - ZEPHIR_CALL_FUNCTION(&translation, "dngettext", NULL, 458, domain, msgid1, msgid2, &_1$$4); + ZEPHIR_CALL_FUNCTION(&translation, "dngettext", NULL, 457, domain, msgid1, msgid2, &_1$$4); zephir_check_call_status(); } ZEPHIR_RETURN_CALL_METHOD(this_ptr, "replaceplaceholders", NULL, 0, translation, placeholders); @@ -295,7 +295,7 @@ PHP_METHOD(Phalcon_Translate_Adapter_Gettext, setDomain) { - ZEPHIR_RETURN_CALL_FUNCTION("textdomain", NULL, 459, domain); + ZEPHIR_RETURN_CALL_FUNCTION("textdomain", NULL, 458, domain); zephir_check_call_status(); RETURN_MM(); @@ -313,7 +313,7 @@ PHP_METHOD(Phalcon_Translate_Adapter_Gettext, resetDomain) { ZEPHIR_CALL_METHOD(&_0, this_ptr, "getdefaultdomain", NULL, 0); zephir_check_call_status(); - ZEPHIR_RETURN_CALL_FUNCTION("textdomain", NULL, 459, _0); + ZEPHIR_RETURN_CALL_FUNCTION("textdomain", NULL, 458, _0); zephir_check_call_status(); RETURN_MM(); @@ -330,11 +330,11 @@ PHP_METHOD(Phalcon_Translate_Adapter_Gettext, setDefaultDomain) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &domain_param); - if (unlikely(Z_TYPE_P(domain_param) != IS_STRING && Z_TYPE_P(domain_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(domain_param) != IS_STRING && Z_TYPE_P(domain_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'domain' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(domain_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(domain_param) == IS_STRING)) { zephir_get_strval(domain, domain_param); } else { ZEPHIR_INIT_VAR(domain); @@ -385,18 +385,18 @@ PHP_METHOD(Phalcon_Translate_Adapter_Gettext, setDirectory) { if (Z_TYPE_P(directory) == IS_ARRAY) { zephir_is_iterable(directory, &_1$$4, &_0$$4, 0, 0, "phalcon/translate/adapter/gettext.zep", 180); for ( - ; zephir_hash_get_current_data_ex(_1$$4, (void**) &_2$$4, &_0$$4) == SUCCESS - ; zephir_hash_move_forward_ex(_1$$4, &_0$$4) + ; zend_hash_get_current_data_ex(_1$$4, (void**) &_2$$4, &_0$$4) == SUCCESS + ; zend_hash_move_forward_ex(_1$$4, &_0$$4) ) { ZEPHIR_GET_HMKEY(key, _1$$4, _0$$4); ZEPHIR_GET_HVALUE(value, _2$$4); - ZEPHIR_CALL_FUNCTION(NULL, "bindtextdomain", &_3, 460, key, value); + ZEPHIR_CALL_FUNCTION(NULL, "bindtextdomain", &_3, 459, key, value); zephir_check_call_status(); } } else { ZEPHIR_CALL_METHOD(&_4$$6, this_ptr, "getdefaultdomain", NULL, 0); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(NULL, "bindtextdomain", &_3, 460, _4$$6, directory); + ZEPHIR_CALL_FUNCTION(NULL, "bindtextdomain", &_3, 459, _4$$6, directory); zephir_check_call_status(); } ZEPHIR_MM_RESTORE(); @@ -424,16 +424,16 @@ PHP_METHOD(Phalcon_Translate_Adapter_Gettext, setLocale) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &category_param, &locale_param); - if (unlikely(Z_TYPE_P(category_param) != IS_LONG)) { + if (UNEXPECTED(Z_TYPE_P(category_param) != IS_LONG)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'category' must be a int") TSRMLS_CC); RETURN_MM_NULL(); } category = Z_LVAL_P(category_param); - if (unlikely(Z_TYPE_P(locale_param) != IS_STRING && Z_TYPE_P(locale_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(locale_param) != IS_STRING && Z_TYPE_P(locale_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'locale' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(locale_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(locale_param) == IS_STRING)) { zephir_get_strval(locale, locale_param); } else { ZEPHIR_INIT_VAR(locale); @@ -443,8 +443,7 @@ PHP_METHOD(Phalcon_Translate_Adapter_Gettext, setLocale) { ZEPHIR_INIT_VAR(_0); ZEPHIR_INIT_VAR(_1); - array_init(_1); - zend_copy_parameters_array(ZEND_NUM_ARGS(), _1 TSRMLS_CC); + zephir_get_args(_1 TSRMLS_CC); ZEPHIR_SINIT_VAR(_2); ZVAL_STRING(&_2, "setlocale", 0); ZEPHIR_CALL_USER_FUNC_ARRAY(_0, &_2, _1); @@ -456,17 +455,17 @@ PHP_METHOD(Phalcon_Translate_Adapter_Gettext, setLocale) { _3 = zephir_fetch_nproperty_this(this_ptr, SL("_locale"), PH_NOISY_CC); ZEPHIR_INIT_VAR(_4); ZEPHIR_CONCAT_SV(_4, "LC_ALL=", _3); - ZEPHIR_CALL_FUNCTION(NULL, "putenv", &_5, 461, _4); + ZEPHIR_CALL_FUNCTION(NULL, "putenv", &_5, 460, _4); zephir_check_call_status(); _6 = zephir_fetch_nproperty_this(this_ptr, SL("_locale"), PH_NOISY_CC); ZEPHIR_INIT_VAR(_7); ZEPHIR_CONCAT_SV(_7, "LANG=", _6); - ZEPHIR_CALL_FUNCTION(NULL, "putenv", &_5, 461, _7); + ZEPHIR_CALL_FUNCTION(NULL, "putenv", &_5, 460, _7); zephir_check_call_status(); _8 = zephir_fetch_nproperty_this(this_ptr, SL("_locale"), PH_NOISY_CC); ZEPHIR_INIT_VAR(_9); ZEPHIR_CONCAT_SV(_9, "LANGUAGE=", _8); - ZEPHIR_CALL_FUNCTION(NULL, "putenv", &_5, 461, _9); + ZEPHIR_CALL_FUNCTION(NULL, "putenv", &_5, 460, _9); zephir_check_call_status(); _10 = zephir_fetch_nproperty_this(this_ptr, SL("_locale"), PH_NOISY_CC); ZEPHIR_SINIT_VAR(_11); diff --git a/ext/phalcon/translate/adapter/nativearray.zep.c b/ext/phalcon/translate/adapter/nativearray.zep.c index 3516970bb68..5dd988c76ce 100644 --- a/ext/phalcon/translate/adapter/nativearray.zep.c +++ b/ext/phalcon/translate/adapter/nativearray.zep.c @@ -53,7 +53,7 @@ PHP_METHOD(Phalcon_Translate_Adapter_NativeArray, __construct) { options = options_param; - ZEPHIR_CALL_PARENT(NULL, phalcon_translate_adapter_nativearray_ce, this_ptr, "__construct", &_0, 453, options); + ZEPHIR_CALL_PARENT(NULL, phalcon_translate_adapter_nativearray_ce, this_ptr, "__construct", &_0, 452, options); zephir_check_call_status(); ZEPHIR_OBS_VAR(data); if (!(zephir_array_isset_string_fetch(&data, options, SS("content"), 0 TSRMLS_CC))) { @@ -81,11 +81,11 @@ PHP_METHOD(Phalcon_Translate_Adapter_NativeArray, query) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &index_param, &placeholders); - if (unlikely(Z_TYPE_P(index_param) != IS_STRING && Z_TYPE_P(index_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(index_param) != IS_STRING && Z_TYPE_P(index_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'index' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(index_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(index_param) == IS_STRING)) { zephir_get_strval(index, index_param); } else { ZEPHIR_INIT_VAR(index); @@ -118,11 +118,11 @@ PHP_METHOD(Phalcon_Translate_Adapter_NativeArray, exists) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &index_param); - if (unlikely(Z_TYPE_P(index_param) != IS_STRING && Z_TYPE_P(index_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(index_param) != IS_STRING && Z_TYPE_P(index_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'index' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(index_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(index_param) == IS_STRING)) { zephir_get_strval(index, index_param); } else { ZEPHIR_INIT_VAR(index); diff --git a/ext/phalcon/translate/interpolator/associativearray.zep.c b/ext/phalcon/translate/interpolator/associativearray.zep.c index e30650b71c2..6d53a941291 100644 --- a/ext/phalcon/translate/interpolator/associativearray.zep.c +++ b/ext/phalcon/translate/interpolator/associativearray.zep.c @@ -12,7 +12,6 @@ #include #include "kernel/main.h" -#include "kernel/hash.h" #include "kernel/memory.h" #include "kernel/string.h" #include "kernel/concat.h" @@ -44,11 +43,11 @@ PHP_METHOD(Phalcon_Translate_Interpolator_AssociativeArray, replacePlaceholders) ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &translation_param, &placeholders); - if (unlikely(Z_TYPE_P(translation_param) != IS_STRING && Z_TYPE_P(translation_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(translation_param) != IS_STRING && Z_TYPE_P(translation_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'translation' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(translation_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(translation_param) == IS_STRING)) { zephir_get_strval(translation, translation_param); } else { ZEPHIR_INIT_VAR(translation); @@ -66,8 +65,8 @@ PHP_METHOD(Phalcon_Translate_Interpolator_AssociativeArray, replacePlaceholders) if (_0) { zephir_is_iterable(placeholders, &_2$$3, &_1$$3, 0, 0, "phalcon/translate/interpolator/associativearray.zep", 38); for ( - ; zephir_hash_get_current_data_ex(_2$$3, (void**) &_3$$3, &_1$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_2$$3, &_1$$3) + ; zend_hash_get_current_data_ex(_2$$3, (void**) &_3$$3, &_1$$3) == SUCCESS + ; zend_hash_move_forward_ex(_2$$3, &_1$$3) ) { ZEPHIR_GET_HMKEY(key, _2$$3, _1$$3); ZEPHIR_GET_HVALUE(value, _3$$3); diff --git a/ext/phalcon/translate/interpolator/indexedarray.zep.c b/ext/phalcon/translate/interpolator/indexedarray.zep.c index cb27dbb12aa..9ee9fca3631 100644 --- a/ext/phalcon/translate/interpolator/indexedarray.zep.c +++ b/ext/phalcon/translate/interpolator/indexedarray.zep.c @@ -41,11 +41,11 @@ PHP_METHOD(Phalcon_Translate_Interpolator_IndexedArray, replacePlaceholders) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &translation_param, &placeholders); - if (unlikely(Z_TYPE_P(translation_param) != IS_STRING && Z_TYPE_P(translation_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(translation_param) != IS_STRING && Z_TYPE_P(translation_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'translation' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(translation_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(translation_param) == IS_STRING)) { zephir_get_strval(translation, translation_param); } else { ZEPHIR_INIT_VAR(translation); diff --git a/ext/phalcon/validation.zep.c b/ext/phalcon/validation.zep.c index b88f3848fd6..c65f66dfbb7 100644 --- a/ext/phalcon/validation.zep.c +++ b/ext/phalcon/validation.zep.c @@ -17,7 +17,6 @@ #include "kernel/fcall.h" #include "kernel/operators.h" #include "kernel/exception.h" -#include "kernel/hash.h" #include "kernel/array.h" #include "ext/spl/spl_exceptions.h" #include "kernel/string.h" @@ -103,13 +102,13 @@ PHP_METHOD(Phalcon_Validation, __construct) { ZEPHIR_INIT_VAR(_0$$3); ZEPHIR_INIT_NVAR(_0$$3); zephir_create_closure_ex(_0$$3, NULL, phalcon_0__closure_ce, SS("__invoke") TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_1$$3, "array_filter", &_2, 462, validators, _0$$3); + ZEPHIR_CALL_FUNCTION(&_1$$3, "array_filter", &_2, 461, validators, _0$$3); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_validators"), _1$$3 TSRMLS_CC); ZEPHIR_INIT_VAR(_3$$3); ZEPHIR_INIT_NVAR(_3$$3); zephir_create_closure_ex(_3$$3, NULL, phalcon_1__closure_ce, SS("__invoke") TSRMLS_CC); - ZEPHIR_CALL_FUNCTION(&_4$$3, "array_filter", &_2, 462, validators, _3$$3); + ZEPHIR_CALL_FUNCTION(&_4$$3, "array_filter", &_2, 461, validators, _3$$3); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_combinedFieldsValidators"), _4$$3 TSRMLS_CC); } @@ -189,8 +188,8 @@ PHP_METHOD(Phalcon_Validation, validate) { } zephir_is_iterable(validators, &_2, &_1, 0, 0, "phalcon/validation.zep", 161); for ( - ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS - ; zephir_hash_move_forward_ex(_2, &_1) + ; zend_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS + ; zend_hash_move_forward_ex(_2, &_1) ) { ZEPHIR_GET_HVALUE(scope, _3); if (Z_TYPE_P(scope) != IS_ARRAY) { @@ -225,8 +224,8 @@ PHP_METHOD(Phalcon_Validation, validate) { } zephir_is_iterable(combinedFieldsValidators, &_10, &_9, 0, 0, "phalcon/validation.zep", 193); for ( - ; zephir_hash_get_current_data_ex(_10, (void**) &_11, &_9) == SUCCESS - ; zephir_hash_move_forward_ex(_10, &_9) + ; zend_hash_get_current_data_ex(_10, (void**) &_11, &_9) == SUCCESS + ; zend_hash_move_forward_ex(_10, &_9) ) { ZEPHIR_GET_HVALUE(scope, _11); if (Z_TYPE_P(scope) != IS_ARRAY) { @@ -293,8 +292,8 @@ PHP_METHOD(Phalcon_Validation, add) { } else { zephir_is_iterable(field, &_2$$5, &_1$$5, 0, 0, "phalcon/validation.zep", 215); for ( - ; zephir_hash_get_current_data_ex(_2$$5, (void**) &_3$$5, &_1$$5) == SUCCESS - ; zephir_hash_move_forward_ex(_2$$5, &_1$$5) + ; zend_hash_get_current_data_ex(_2$$5, (void**) &_3$$5, &_1$$5) == SUCCESS + ; zend_hash_move_forward_ex(_2$$5, &_1$$5) ) { ZEPHIR_GET_HVALUE(singleField, _3$$5); ZEPHIR_INIT_NVAR(_4$$6); @@ -357,8 +356,8 @@ PHP_METHOD(Phalcon_Validation, rules) { zephir_is_iterable(validators, &_1, &_0, 0, 0, "phalcon/validation.zep", 247); for ( - ; zephir_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS - ; zephir_hash_move_forward_ex(_1, &_0) + ; zend_hash_get_current_data_ex(_1, (void**) &_2, &_0) == SUCCESS + ; zend_hash_move_forward_ex(_1, &_0) ) { ZEPHIR_GET_HVALUE(validator, _2); if (zephir_instance_of_ev(validator, phalcon_validation_validatorinterface_ce TSRMLS_CC)) { @@ -391,8 +390,8 @@ PHP_METHOD(Phalcon_Validation, setFilters) { if (Z_TYPE_P(field) == IS_ARRAY) { zephir_is_iterable(field, &_1$$3, &_0$$3, 0, 0, "phalcon/validation.zep", 264); for ( - ; zephir_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_1$$3, &_0$$3) + ; zend_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS + ; zend_hash_move_forward_ex(_1$$3, &_0$$3) ) { ZEPHIR_GET_HVALUE(singleField, _2$$3); zephir_update_property_array(this_ptr, SL("_filters"), singleField, filters TSRMLS_CC); @@ -554,11 +553,11 @@ PHP_METHOD(Phalcon_Validation, getDefaultMessage) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &type_param); - if (unlikely(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'type' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(type_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(type_param) == IS_STRING)) { zephir_get_strval(type, type_param); } else { ZEPHIR_INIT_VAR(type); @@ -652,7 +651,7 @@ PHP_METHOD(Phalcon_Validation, appendMessage) { ZEPHIR_CALL_METHOD(NULL, messages, "__construct", NULL, 3); zephir_check_call_status(); } - ZEPHIR_CALL_METHOD(NULL, messages, "appendmessage", NULL, 463, message); + ZEPHIR_CALL_METHOD(NULL, messages, "appendmessage", NULL, 462, message); zephir_check_call_status(); zephir_update_property_this(this_ptr, SL("_messages"), messages TSRMLS_CC); RETURN_THIS(); @@ -848,11 +847,11 @@ PHP_METHOD(Phalcon_Validation, preChecking) { if (Z_TYPE_P(field) == IS_ARRAY) { zephir_is_iterable(field, &_1$$3, &_0$$3, 0, 0, "phalcon/validation.zep", 590); for ( - ; zephir_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_1$$3, &_0$$3) + ; zend_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS + ; zend_hash_move_forward_ex(_1$$3, &_0$$3) ) { ZEPHIR_GET_HVALUE(singleField, _2$$3); - ZEPHIR_CALL_METHOD(&result, this_ptr, "prechecking", &_3, 464, singleField, validator); + ZEPHIR_CALL_METHOD(&result, this_ptr, "prechecking", &_3, 463, singleField, validator); zephir_check_call_status(); if (zephir_is_true(result)) { RETURN_CCTOR(result); @@ -877,8 +876,8 @@ PHP_METHOD(Phalcon_Validation, preChecking) { if (Z_TYPE_P(allowEmpty) == IS_ARRAY) { zephir_is_iterable(allowEmpty, &_7$$9, &_6$$9, 0, 0, "phalcon/validation.zep", 604); for ( - ; zephir_hash_get_current_data_ex(_7$$9, (void**) &_8$$9, &_6$$9) == SUCCESS - ; zephir_hash_move_forward_ex(_7$$9, &_6$$9) + ; zend_hash_get_current_data_ex(_7$$9, (void**) &_8$$9, &_6$$9) == SUCCESS + ; zend_hash_move_forward_ex(_7$$9, &_6$$9) ) { ZEPHIR_GET_HVALUE(emptyValue, _8$$9); if (ZEPHIR_IS_IDENTICAL(emptyValue, value)) { diff --git a/ext/phalcon/validation/message.zep.c b/ext/phalcon/validation/message.zep.c index 5b417390ac0..e14343eb7b0 100644 --- a/ext/phalcon/validation/message.zep.c +++ b/ext/phalcon/validation/message.zep.c @@ -55,11 +55,11 @@ PHP_METHOD(Phalcon_Validation_Message, __construct) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 3, &message_param, &field, &type_param, &code_param); - if (unlikely(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'message' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(message_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(message_param) == IS_STRING)) { zephir_get_strval(message, message_param); } else { ZEPHIR_INIT_VAR(message); @@ -102,11 +102,11 @@ PHP_METHOD(Phalcon_Validation_Message, setType) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &type_param); - if (unlikely(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(type_param) != IS_STRING && Z_TYPE_P(type_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'type' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(type_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(type_param) == IS_STRING)) { zephir_get_strval(type, type_param); } else { ZEPHIR_INIT_VAR(type); @@ -141,11 +141,11 @@ PHP_METHOD(Phalcon_Validation_Message, setMessage) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &message_param); - if (unlikely(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(message_param) != IS_STRING && Z_TYPE_P(message_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'message' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(message_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(message_param) == IS_STRING)) { zephir_get_strval(message, message_param); } else { ZEPHIR_INIT_VAR(message); @@ -259,7 +259,7 @@ PHP_METHOD(Phalcon_Validation_Message, __set_state) { zephir_array_fetch_string(&_0, message, SL("_message"), PH_NOISY | PH_READONLY, "phalcon/validation/message.zep", 134 TSRMLS_CC); zephir_array_fetch_string(&_1, message, SL("_field"), PH_NOISY | PH_READONLY, "phalcon/validation/message.zep", 134 TSRMLS_CC); zephir_array_fetch_string(&_2, message, SL("_type"), PH_NOISY | PH_READONLY, "phalcon/validation/message.zep", 134 TSRMLS_CC); - ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 465, _0, _1, _2); + ZEPHIR_CALL_METHOD(NULL, return_value, "__construct", NULL, 464, _0, _1, _2); zephir_check_call_status(); RETURN_MM(); diff --git a/ext/phalcon/validation/message/group.zep.c b/ext/phalcon/validation/message/group.zep.c index d951136f30b..6aa3108c8ea 100644 --- a/ext/phalcon/validation/message/group.zep.c +++ b/ext/phalcon/validation/message/group.zep.c @@ -20,7 +20,6 @@ #include "kernel/exception.h" #include "kernel/operators.h" #include "kernel/fcall.h" -#include "kernel/hash.h" /** @@ -86,7 +85,7 @@ PHP_METHOD(Phalcon_Validation_Message_Group, offsetGet) { zephir_fetch_params(0, 1, 0, &index_param); - if (unlikely(Z_TYPE_P(index_param) != IS_LONG)) { + if (UNEXPECTED(Z_TYPE_P(index_param) != IS_LONG)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'index' must be a int") TSRMLS_CC); RETURN_NULL(); } @@ -119,7 +118,7 @@ PHP_METHOD(Phalcon_Validation_Message_Group, offsetSet) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &index_param, &message); - if (unlikely(Z_TYPE_P(index_param) != IS_LONG)) { + if (UNEXPECTED(Z_TYPE_P(index_param) != IS_LONG)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'index' must be a int") TSRMLS_CC); RETURN_MM_NULL(); } @@ -188,7 +187,7 @@ PHP_METHOD(Phalcon_Validation_Message_Group, offsetUnset) { ZEPHIR_INIT_VAR(_2$$3); ZVAL_LONG(_2$$3, 1); ZEPHIR_MAKE_REF(_1$$3); - ZEPHIR_CALL_FUNCTION(NULL, "array_splice", NULL, 466, _1$$3, index, _2$$3); + ZEPHIR_CALL_FUNCTION(NULL, "array_splice", NULL, 465, _1$$3, index, _2$$3); ZEPHIR_UNREF(_1$$3); zephir_check_call_status(); } @@ -294,11 +293,11 @@ PHP_METHOD(Phalcon_Validation_Message_Group, filter) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &fieldName_param); - if (unlikely(Z_TYPE_P(fieldName_param) != IS_STRING && Z_TYPE_P(fieldName_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(fieldName_param) != IS_STRING && Z_TYPE_P(fieldName_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'fieldName' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(fieldName_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(fieldName_param) == IS_STRING)) { zephir_get_strval(fieldName, fieldName_param); } else { ZEPHIR_INIT_VAR(fieldName); @@ -313,8 +312,8 @@ PHP_METHOD(Phalcon_Validation_Message_Group, filter) { if (Z_TYPE_P(messages) == IS_ARRAY) { zephir_is_iterable(messages, &_1$$3, &_0$$3, 0, 0, "phalcon/validation/message/group.zep", 210); for ( - ; zephir_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS - ; zephir_hash_move_forward_ex(_1$$3, &_0$$3) + ; zend_hash_get_current_data_ex(_1$$3, (void**) &_2$$3, &_0$$3) == SUCCESS + ; zend_hash_move_forward_ex(_1$$3, &_0$$3) ) { ZEPHIR_GET_HVALUE(message, _2$$3); if ((zephir_method_exists_ex(message, SS("getfield") TSRMLS_CC) == SUCCESS)) { diff --git a/ext/phalcon/validation/validator.zep.c b/ext/phalcon/validation/validator.zep.c index 71ca8acebbb..8659d9d74bb 100644 --- a/ext/phalcon/validation/validator.zep.c +++ b/ext/phalcon/validation/validator.zep.c @@ -74,11 +74,11 @@ PHP_METHOD(Phalcon_Validation_Validator, isSetOption) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &key_param); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { ZEPHIR_INIT_VAR(key); @@ -102,11 +102,11 @@ PHP_METHOD(Phalcon_Validation_Validator, hasOption) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 0, &key_param); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { ZEPHIR_INIT_VAR(key); @@ -132,11 +132,11 @@ PHP_METHOD(Phalcon_Validation_Validator, getOption) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 1, 1, &key_param, &defaultValue); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { ZEPHIR_INIT_VAR(key); @@ -178,11 +178,11 @@ PHP_METHOD(Phalcon_Validation_Validator, setOption) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &key_param, &value); - if (unlikely(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(key_param) != IS_STRING && Z_TYPE_P(key_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'key' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(key_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(key_param) == IS_STRING)) { zephir_get_strval(key, key_param); } else { ZEPHIR_INIT_VAR(key); diff --git a/ext/phalcon/validation/validator/alnum.zep.c b/ext/phalcon/validation/validator/alnum.zep.c index 638beffbcfa..3854a2f7a09 100644 --- a/ext/phalcon/validation/validator/alnum.zep.c +++ b/ext/phalcon/validation/validator/alnum.zep.c @@ -73,11 +73,11 @@ PHP_METHOD(Phalcon_Validation_Validator_Alnum, validate) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &validation, &field_param); - if (unlikely(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'field' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(field_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(field_param) == IS_STRING)) { zephir_get_strval(field, field_param); } else { ZEPHIR_INIT_VAR(field); @@ -87,7 +87,7 @@ PHP_METHOD(Phalcon_Validation_Validator_Alnum, validate) { ZEPHIR_CALL_METHOD(&value, validation, "getvalue", NULL, 0, field); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&_0, "ctype_alnum", NULL, 467, value); + ZEPHIR_CALL_FUNCTION(&_0, "ctype_alnum", NULL, 466, value); zephir_check_call_status(); if (!(zephir_is_true(_0))) { ZEPHIR_INIT_VAR(_1$$3); @@ -137,7 +137,7 @@ PHP_METHOD(Phalcon_Validation_Validator_Alnum, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_7$$3); ZVAL_STRING(_7$$3, "Alnum", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _1$$3, "__construct", NULL, 465, _6$$3, field, _7$$3, code); + ZEPHIR_CALL_METHOD(NULL, _1$$3, "__construct", NULL, 464, _6$$3, field, _7$$3, code); zephir_check_temp_parameter(_7$$3); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _1$$3); diff --git a/ext/phalcon/validation/validator/alpha.zep.c b/ext/phalcon/validation/validator/alpha.zep.c index 61b4900ad9c..6422a283afe 100644 --- a/ext/phalcon/validation/validator/alpha.zep.c +++ b/ext/phalcon/validation/validator/alpha.zep.c @@ -74,11 +74,11 @@ PHP_METHOD(Phalcon_Validation_Validator_Alpha, validate) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &validation, &field_param); - if (unlikely(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'field' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(field_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(field_param) == IS_STRING)) { zephir_get_strval(field, field_param); } else { ZEPHIR_INIT_VAR(field); @@ -141,7 +141,7 @@ PHP_METHOD(Phalcon_Validation_Validator_Alpha, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_9$$3); ZVAL_STRING(_9$$3, "Alpha", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _3$$3, "__construct", NULL, 465, _8$$3, field, _9$$3, code); + ZEPHIR_CALL_METHOD(NULL, _3$$3, "__construct", NULL, 464, _8$$3, field, _9$$3, code); zephir_check_temp_parameter(_9$$3); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _3$$3); diff --git a/ext/phalcon/validation/validator/between.zep.c b/ext/phalcon/validation/validator/between.zep.c index 604822d8a65..fc2f80700de 100644 --- a/ext/phalcon/validation/validator/between.zep.c +++ b/ext/phalcon/validation/validator/between.zep.c @@ -85,11 +85,11 @@ PHP_METHOD(Phalcon_Validation_Validator_Between, validate) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &validation, &field_param); - if (unlikely(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'field' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(field_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(field_param) == IS_STRING)) { zephir_get_strval(field, field_param); } else { ZEPHIR_INIT_VAR(field); @@ -171,7 +171,7 @@ PHP_METHOD(Phalcon_Validation_Validator_Between, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_10$$5); ZVAL_STRING(_10$$5, "Between", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _4$$5, "__construct", NULL, 465, _9$$5, field, _10$$5, code); + ZEPHIR_CALL_METHOD(NULL, _4$$5, "__construct", NULL, 464, _9$$5, field, _10$$5, code); zephir_check_temp_parameter(_10$$5); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _4$$5); diff --git a/ext/phalcon/validation/validator/callback.zep.c b/ext/phalcon/validation/validator/callback.zep.c index 6aed83419ab..9be21791c0b 100644 --- a/ext/phalcon/validation/validator/callback.zep.c +++ b/ext/phalcon/validation/validator/callback.zep.c @@ -85,11 +85,11 @@ PHP_METHOD(Phalcon_Validation_Validator_Callback, validate) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &validation, &field_param); - if (unlikely(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'field' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(field_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(field_param) == IS_STRING)) { zephir_get_strval(field, field_param); } else { ZEPHIR_INIT_VAR(field); @@ -164,7 +164,7 @@ PHP_METHOD(Phalcon_Validation_Validator_Callback, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_8$$6); ZVAL_STRING(_8$$6, "Callback", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _2$$6, "__construct", NULL, 465, _7$$6, field, _8$$6, code); + ZEPHIR_CALL_METHOD(NULL, _2$$6, "__construct", NULL, 464, _7$$6, field, _8$$6, code); zephir_check_temp_parameter(_8$$6); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _2$$6); diff --git a/ext/phalcon/validation/validator/confirmation.zep.c b/ext/phalcon/validation/validator/confirmation.zep.c index 31e25ee9ae3..3f31bb488af 100644 --- a/ext/phalcon/validation/validator/confirmation.zep.c +++ b/ext/phalcon/validation/validator/confirmation.zep.c @@ -79,11 +79,11 @@ PHP_METHOD(Phalcon_Validation_Validator_Confirmation, validate) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &validation, &field_param); - if (unlikely(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'field' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(field_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(field_param) == IS_STRING)) { zephir_get_strval(field, field_param); } else { ZEPHIR_INIT_VAR(field); @@ -104,7 +104,7 @@ PHP_METHOD(Phalcon_Validation_Validator_Confirmation, validate) { zephir_check_call_status(); ZEPHIR_CALL_METHOD(&valueWith, validation, "getvalue", NULL, 0, fieldWith); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&_2, this_ptr, "compare", NULL, 468, value, valueWith); + ZEPHIR_CALL_METHOD(&_2, this_ptr, "compare", NULL, 467, value, valueWith); zephir_check_call_status(); if (!(zephir_is_true(_2))) { ZEPHIR_INIT_VAR(_3$$4); @@ -168,7 +168,7 @@ PHP_METHOD(Phalcon_Validation_Validator_Confirmation, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_10$$4); ZVAL_STRING(_10$$4, "Confirmation", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _3$$4, "__construct", NULL, 465, _9$$4, field, _10$$4, code); + ZEPHIR_CALL_METHOD(NULL, _3$$4, "__construct", NULL, 464, _9$$4, field, _10$$4, code); zephir_check_temp_parameter(_10$$4); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _3$$4); diff --git a/ext/phalcon/validation/validator/creditcard.zep.c b/ext/phalcon/validation/validator/creditcard.zep.c index 9ea5a2e7f1c..403e4da9650 100644 --- a/ext/phalcon/validation/validator/creditcard.zep.c +++ b/ext/phalcon/validation/validator/creditcard.zep.c @@ -18,7 +18,6 @@ #include "kernel/array.h" #include "ext/spl/spl_exceptions.h" #include "kernel/exception.h" -#include "kernel/hash.h" /** @@ -74,11 +73,11 @@ PHP_METHOD(Phalcon_Validation_Validator_CreditCard, validate) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &validation, &field_param); - if (unlikely(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'field' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(field_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(field_param) == IS_STRING)) { zephir_get_strval(field, field_param); } else { ZEPHIR_INIT_VAR(field); @@ -88,7 +87,7 @@ PHP_METHOD(Phalcon_Validation_Validator_CreditCard, validate) { ZEPHIR_CALL_METHOD(&value, validation, "getvalue", NULL, 0, field); zephir_check_call_status(); - ZEPHIR_CALL_METHOD(&valid, this_ptr, "verifybyluhnalgorithm", NULL, 469, value); + ZEPHIR_CALL_METHOD(&valid, this_ptr, "verifybyluhnalgorithm", NULL, 468, value); zephir_check_call_status(); if (!(zephir_is_true(valid))) { ZEPHIR_INIT_VAR(_0$$3); @@ -138,7 +137,7 @@ PHP_METHOD(Phalcon_Validation_Validator_CreditCard, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_6$$3); ZVAL_STRING(_6$$3, "CreditCard", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _0$$3, "__construct", NULL, 465, _5$$3, field, _6$$3, code); + ZEPHIR_CALL_METHOD(NULL, _0$$3, "__construct", NULL, 464, _5$$3, field, _6$$3, code); zephir_check_temp_parameter(_6$$3); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _0$$3); @@ -178,8 +177,8 @@ PHP_METHOD(Phalcon_Validation_Validator_CreditCard, verifyByLuhnAlgorithm) { zephir_check_call_status(); zephir_is_iterable(_4, &_6, &_5, 0, 0, "phalcon/validation/validator/creditcard.zep", 118); for ( - ; zephir_hash_get_current_data_ex(_6, (void**) &_7, &_5) == SUCCESS - ; zephir_hash_move_forward_ex(_6, &_5) + ; zend_hash_get_current_data_ex(_6, (void**) &_7, &_5) == SUCCESS + ; zend_hash_move_forward_ex(_6, &_5) ) { ZEPHIR_GET_HMKEY(position, _6, _5); ZEPHIR_GET_HVALUE(digit, _7); @@ -194,7 +193,7 @@ PHP_METHOD(Phalcon_Validation_Validator_CreditCard, verifyByLuhnAlgorithm) { } ZEPHIR_CALL_FUNCTION(&_9, "str_split", &_1, 71, hash); zephir_check_call_status(); - ZEPHIR_CALL_FUNCTION(&result, "array_sum", NULL, 470, _9); + ZEPHIR_CALL_FUNCTION(&result, "array_sum", NULL, 469, _9); zephir_check_call_status(); RETURN_MM_BOOL((zephir_safe_mod_zval_long(result, 10 TSRMLS_CC) == 0)); diff --git a/ext/phalcon/validation/validator/date.zep.c b/ext/phalcon/validation/validator/date.zep.c index a4813db5009..2e8078fdf33 100644 --- a/ext/phalcon/validation/validator/date.zep.c +++ b/ext/phalcon/validation/validator/date.zep.c @@ -78,11 +78,11 @@ PHP_METHOD(Phalcon_Validation_Validator_Date, validate) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &validation, &field_param); - if (unlikely(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'field' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(field_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(field_param) == IS_STRING)) { zephir_get_strval(field, field_param); } else { ZEPHIR_INIT_VAR(field); @@ -105,7 +105,7 @@ PHP_METHOD(Phalcon_Validation_Validator_Date, validate) { ZEPHIR_INIT_NVAR(format); ZVAL_STRING(format, "Y-m-d", 1); } - ZEPHIR_CALL_METHOD(&_2, this_ptr, "checkdate", NULL, 471, value, format); + ZEPHIR_CALL_METHOD(&_2, this_ptr, "checkdate", NULL, 470, value, format); zephir_check_call_status(); if (!(zephir_is_true(_2))) { ZEPHIR_INIT_VAR(_3$$5); @@ -146,7 +146,7 @@ PHP_METHOD(Phalcon_Validation_Validator_Date, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_8$$5); ZVAL_STRING(_8$$5, "Date", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _3$$5, "__construct", NULL, 465, _7$$5, field, _8$$5); + ZEPHIR_CALL_METHOD(NULL, _3$$5, "__construct", NULL, 464, _7$$5, field, _8$$5); zephir_check_temp_parameter(_8$$5); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _3$$5); diff --git a/ext/phalcon/validation/validator/digit.zep.c b/ext/phalcon/validation/validator/digit.zep.c index 5875696a435..56ecbb54e51 100644 --- a/ext/phalcon/validation/validator/digit.zep.c +++ b/ext/phalcon/validation/validator/digit.zep.c @@ -74,11 +74,11 @@ PHP_METHOD(Phalcon_Validation_Validator_Digit, validate) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &validation, &field_param); - if (unlikely(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'field' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(field_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(field_param) == IS_STRING)) { zephir_get_strval(field, field_param); } else { ZEPHIR_INIT_VAR(field); @@ -90,7 +90,7 @@ PHP_METHOD(Phalcon_Validation_Validator_Digit, validate) { zephir_check_call_status(); _0 = Z_TYPE_P(value) == IS_LONG; if (!(_0)) { - ZEPHIR_CALL_FUNCTION(&_1, "ctype_digit", NULL, 472, value); + ZEPHIR_CALL_FUNCTION(&_1, "ctype_digit", NULL, 471, value); zephir_check_call_status(); _0 = zephir_is_true(_1); } @@ -144,7 +144,7 @@ PHP_METHOD(Phalcon_Validation_Validator_Digit, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_8); ZVAL_STRING(_8, "Digit", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _2, "__construct", NULL, 465, _7, field, _8, code); + ZEPHIR_CALL_METHOD(NULL, _2, "__construct", NULL, 464, _7, field, _8, code); zephir_check_temp_parameter(_8); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _2); diff --git a/ext/phalcon/validation/validator/email.zep.c b/ext/phalcon/validation/validator/email.zep.c index d1b68cc9e44..12263816c9c 100644 --- a/ext/phalcon/validation/validator/email.zep.c +++ b/ext/phalcon/validation/validator/email.zep.c @@ -73,11 +73,11 @@ PHP_METHOD(Phalcon_Validation_Validator_Email, validate) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &validation, &field_param); - if (unlikely(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'field' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(field_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(field_param) == IS_STRING)) { zephir_get_strval(field, field_param); } else { ZEPHIR_INIT_VAR(field); @@ -139,7 +139,7 @@ PHP_METHOD(Phalcon_Validation_Validator_Email, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_8$$3); ZVAL_STRING(_8$$3, "Email", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _2$$3, "__construct", NULL, 465, _7$$3, field, _8$$3, code); + ZEPHIR_CALL_METHOD(NULL, _2$$3, "__construct", NULL, 464, _7$$3, field, _8$$3, code); zephir_check_temp_parameter(_8$$3); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _2$$3); diff --git a/ext/phalcon/validation/validator/exclusionin.zep.c b/ext/phalcon/validation/validator/exclusionin.zep.c index dbd34e28827..472eec091e3 100644 --- a/ext/phalcon/validation/validator/exclusionin.zep.c +++ b/ext/phalcon/validation/validator/exclusionin.zep.c @@ -85,11 +85,11 @@ PHP_METHOD(Phalcon_Validation_Validator_ExclusionIn, validate) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &validation, &field_param); - if (unlikely(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'field' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(field_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(field_param) == IS_STRING)) { zephir_get_strval(field, field_param); } else { ZEPHIR_INIT_VAR(field); @@ -189,7 +189,7 @@ PHP_METHOD(Phalcon_Validation_Validator_ExclusionIn, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_11$$9); ZVAL_STRING(_11$$9, "ExclusionIn", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _5$$9, "__construct", NULL, 465, _10$$9, field, _11$$9, code); + ZEPHIR_CALL_METHOD(NULL, _5$$9, "__construct", NULL, 464, _10$$9, field, _11$$9, code); zephir_check_temp_parameter(_11$$9); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _5$$9); diff --git a/ext/phalcon/validation/validator/file.zep.c b/ext/phalcon/validation/validator/file.zep.c index 2f03478b99e..8c654e62817 100644 --- a/ext/phalcon/validation/validator/file.zep.c +++ b/ext/phalcon/validation/validator/file.zep.c @@ -114,11 +114,11 @@ PHP_METHOD(Phalcon_Validation_Validator_File, validate) { zephir_get_global(&_SERVER, SS("_SERVER") TSRMLS_CC); zephir_fetch_params(1, 2, 0, &validation, &field_param); - if (unlikely(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'field' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(field_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(field_param) == IS_STRING)) { zephir_get_strval(field, field_param); } else { ZEPHIR_INIT_VAR(field); @@ -199,7 +199,7 @@ PHP_METHOD(Phalcon_Validation_Validator_File, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_16$$6); ZVAL_STRING(_16$$6, "FileIniSize", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _11$$6, "__construct", &_17, 465, _14$$6, field, _16$$6, code); + ZEPHIR_CALL_METHOD(NULL, _11$$6, "__construct", &_17, 464, _14$$6, field, _16$$6, code); zephir_check_temp_parameter(_16$$6); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _11$$6); @@ -248,7 +248,7 @@ PHP_METHOD(Phalcon_Validation_Validator_File, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_28$$9); ZVAL_STRING(_28$$9, "FileEmpty", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _24$$9, "__construct", &_17, 465, _27$$9, field, _28$$9, code); + ZEPHIR_CALL_METHOD(NULL, _24$$9, "__construct", &_17, 464, _27$$9, field, _28$$9, code); zephir_check_temp_parameter(_28$$9); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _24$$9); @@ -289,7 +289,7 @@ PHP_METHOD(Phalcon_Validation_Validator_File, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_35$$12); ZVAL_STRING(_35$$12, "FileValid", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _31$$12, "__construct", &_17, 465, _34$$12, field, _35$$12, code); + ZEPHIR_CALL_METHOD(NULL, _31$$12, "__construct", &_17, 464, _34$$12, field, _35$$12, code); zephir_check_temp_parameter(_35$$12); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _31$$12); @@ -380,7 +380,7 @@ PHP_METHOD(Phalcon_Validation_Validator_File, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_54$$18); ZVAL_STRING(_54$$18, "FileSize", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _50$$18, "__construct", &_17, 465, _53$$18, field, _54$$18, code); + ZEPHIR_CALL_METHOD(NULL, _50$$18, "__construct", &_17, 464, _53$$18, field, _54$$18, code); zephir_check_temp_parameter(_54$$18); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _50$$18); @@ -450,7 +450,7 @@ PHP_METHOD(Phalcon_Validation_Validator_File, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_63$$26); ZVAL_STRING(_63$$26, "FileType", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _59$$26, "__construct", &_17, 465, _62$$26, field, _63$$26, code); + ZEPHIR_CALL_METHOD(NULL, _59$$26, "__construct", &_17, 464, _62$$26, field, _63$$26, code); zephir_check_temp_parameter(_63$$26); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _59$$26); @@ -538,7 +538,7 @@ PHP_METHOD(Phalcon_Validation_Validator_File, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_77$$33); ZVAL_STRING(_77$$33, "FileMinResolution", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _73$$33, "__construct", &_17, 465, _76$$33, field, _77$$33, code); + ZEPHIR_CALL_METHOD(NULL, _73$$33, "__construct", &_17, 464, _76$$33, field, _77$$33, code); zephir_check_temp_parameter(_77$$33); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _73$$33); @@ -597,7 +597,7 @@ PHP_METHOD(Phalcon_Validation_Validator_File, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_86$$38); ZVAL_STRING(_86$$38, "FileMaxResolution", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _82$$38, "__construct", &_17, 465, _85$$38, field, _86$$38, code); + ZEPHIR_CALL_METHOD(NULL, _82$$38, "__construct", &_17, 464, _85$$38, field, _86$$38, code); zephir_check_temp_parameter(_86$$38); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _82$$38); @@ -623,11 +623,11 @@ PHP_METHOD(Phalcon_Validation_Validator_File, isAllowEmpty) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &validation, &field_param); - if (unlikely(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'field' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(field_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(field_param) == IS_STRING)) { zephir_get_strval(field, field_param); } else { ZEPHIR_INIT_VAR(field); diff --git a/ext/phalcon/validation/validator/identical.zep.c b/ext/phalcon/validation/validator/identical.zep.c index 4165b2fa59e..a85adff6ba7 100644 --- a/ext/phalcon/validation/validator/identical.zep.c +++ b/ext/phalcon/validation/validator/identical.zep.c @@ -79,11 +79,11 @@ PHP_METHOD(Phalcon_Validation_Validator_Identical, validate) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &validation, &field_param); - if (unlikely(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'field' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(field_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(field_param) == IS_STRING)) { zephir_get_strval(field, field_param); } else { ZEPHIR_INIT_VAR(field); @@ -176,7 +176,7 @@ PHP_METHOD(Phalcon_Validation_Validator_Identical, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_14$$8); ZVAL_STRING(_14$$8, "Identical", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _8$$8, "__construct", NULL, 465, _13$$8, field, _14$$8, code); + ZEPHIR_CALL_METHOD(NULL, _8$$8, "__construct", NULL, 464, _13$$8, field, _14$$8, code); zephir_check_temp_parameter(_14$$8); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _8$$8); diff --git a/ext/phalcon/validation/validator/inclusionin.zep.c b/ext/phalcon/validation/validator/inclusionin.zep.c index 13150d002cd..142121881b6 100644 --- a/ext/phalcon/validation/validator/inclusionin.zep.c +++ b/ext/phalcon/validation/validator/inclusionin.zep.c @@ -79,11 +79,11 @@ PHP_METHOD(Phalcon_Validation_Validator_InclusionIn, validate) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &validation, &field_param); - if (unlikely(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'field' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(field_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(field_param) == IS_STRING)) { zephir_get_strval(field, field_param); } else { ZEPHIR_INIT_VAR(field); @@ -183,7 +183,7 @@ PHP_METHOD(Phalcon_Validation_Validator_InclusionIn, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_11$$9); ZVAL_STRING(_11$$9, "InclusionIn", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _5$$9, "__construct", NULL, 465, _10$$9, field, _11$$9, code); + ZEPHIR_CALL_METHOD(NULL, _5$$9, "__construct", NULL, 464, _10$$9, field, _11$$9, code); zephir_check_temp_parameter(_11$$9); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _5$$9); diff --git a/ext/phalcon/validation/validator/numericality.zep.c b/ext/phalcon/validation/validator/numericality.zep.c index 04ecb58d789..fc49ddbc2fb 100644 --- a/ext/phalcon/validation/validator/numericality.zep.c +++ b/ext/phalcon/validation/validator/numericality.zep.c @@ -74,11 +74,11 @@ PHP_METHOD(Phalcon_Validation_Validator_Numericality, validate) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &validation, &field_param); - if (unlikely(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'field' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(field_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(field_param) == IS_STRING)) { zephir_get_strval(field, field_param); } else { ZEPHIR_INIT_VAR(field); @@ -141,7 +141,7 @@ PHP_METHOD(Phalcon_Validation_Validator_Numericality, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_9$$3); ZVAL_STRING(_9$$3, "Numericality", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _3$$3, "__construct", NULL, 465, _8$$3, field, _9$$3, code); + ZEPHIR_CALL_METHOD(NULL, _3$$3, "__construct", NULL, 464, _8$$3, field, _9$$3, code); zephir_check_temp_parameter(_9$$3); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _3$$3); diff --git a/ext/phalcon/validation/validator/presenceof.zep.c b/ext/phalcon/validation/validator/presenceof.zep.c index 7189649316e..54459f509f8 100644 --- a/ext/phalcon/validation/validator/presenceof.zep.c +++ b/ext/phalcon/validation/validator/presenceof.zep.c @@ -74,11 +74,11 @@ PHP_METHOD(Phalcon_Validation_Validator_PresenceOf, validate) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &validation, &field_param); - if (unlikely(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'field' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(field_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(field_param) == IS_STRING)) { zephir_get_strval(field, field_param); } else { ZEPHIR_INIT_VAR(field); @@ -140,7 +140,7 @@ PHP_METHOD(Phalcon_Validation_Validator_PresenceOf, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_7$$3); ZVAL_STRING(_7$$3, "PresenceOf", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _1$$3, "__construct", NULL, 465, _6$$3, field, _7$$3, code); + ZEPHIR_CALL_METHOD(NULL, _1$$3, "__construct", NULL, 464, _6$$3, field, _7$$3, code); zephir_check_temp_parameter(_7$$3); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _1$$3); diff --git a/ext/phalcon/validation/validator/regex.zep.c b/ext/phalcon/validation/validator/regex.zep.c index f057c81102b..abe3dfea180 100644 --- a/ext/phalcon/validation/validator/regex.zep.c +++ b/ext/phalcon/validation/validator/regex.zep.c @@ -80,11 +80,11 @@ PHP_METHOD(Phalcon_Validation_Validator_Regex, validate) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &validation, &field_param); - if (unlikely(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'field' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(field_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(field_param) == IS_STRING)) { zephir_get_strval(field, field_param); } else { ZEPHIR_INIT_VAR(field); @@ -161,7 +161,7 @@ PHP_METHOD(Phalcon_Validation_Validator_Regex, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_9$$6); ZVAL_STRING(_9$$6, "Regex", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _3$$6, "__construct", NULL, 465, _8$$6, field, _9$$6, code); + ZEPHIR_CALL_METHOD(NULL, _3$$6, "__construct", NULL, 464, _8$$6, field, _9$$6, code); zephir_check_temp_parameter(_9$$6); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _3$$6); diff --git a/ext/phalcon/validation/validator/stringlength.zep.c b/ext/phalcon/validation/validator/stringlength.zep.c index 3e1052cc767..2c1d9981151 100644 --- a/ext/phalcon/validation/validator/stringlength.zep.c +++ b/ext/phalcon/validation/validator/stringlength.zep.c @@ -94,11 +94,11 @@ PHP_METHOD(Phalcon_Validation_Validator_StringLength, validate) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &validation, &field_param); - if (unlikely(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'field' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(field_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(field_param) == IS_STRING)) { zephir_get_strval(field, field_param); } else { ZEPHIR_INIT_VAR(field); @@ -192,7 +192,7 @@ PHP_METHOD(Phalcon_Validation_Validator_StringLength, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_11$$11); ZVAL_STRING(_11$$11, "TooLong", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _6$$11, "__construct", &_12, 465, _9$$11, field, _11$$11, code); + ZEPHIR_CALL_METHOD(NULL, _6$$11, "__construct", &_12, 464, _9$$11, field, _11$$11, code); zephir_check_temp_parameter(_11$$11); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _6$$11); @@ -237,7 +237,7 @@ PHP_METHOD(Phalcon_Validation_Validator_StringLength, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_19$$16); ZVAL_STRING(_19$$16, "TooShort", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _15$$16, "__construct", &_12, 465, _18$$16, field, _19$$16, code); + ZEPHIR_CALL_METHOD(NULL, _15$$16, "__construct", &_12, 464, _18$$16, field, _19$$16, code); zephir_check_temp_parameter(_19$$16); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _15$$16); diff --git a/ext/phalcon/validation/validator/uniqueness.zep.c b/ext/phalcon/validation/validator/uniqueness.zep.c index 80570d5d24e..af4ee4d48eb 100644 --- a/ext/phalcon/validation/validator/uniqueness.zep.c +++ b/ext/phalcon/validation/validator/uniqueness.zep.c @@ -16,7 +16,6 @@ #include "kernel/fcall.h" #include "kernel/operators.h" #include "kernel/array.h" -#include "kernel/hash.h" #include "kernel/exception.h" #include "kernel/object.h" #include "ext/spl/spl_exceptions.h" @@ -155,7 +154,7 @@ PHP_METHOD(Phalcon_Validation_Validator_Uniqueness, validate) { zephir_check_call_status(); ZEPHIR_INIT_NVAR(_6$$3); ZVAL_STRING(_6$$3, "Uniqueness", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _1$$3, "__construct", NULL, 465, _4$$3, field, _6$$3, _5$$3); + ZEPHIR_CALL_METHOD(NULL, _1$$3, "__construct", NULL, 464, _4$$3, field, _6$$3, _5$$3); zephir_check_temp_parameter(_6$$3); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _1$$3); @@ -197,8 +196,8 @@ PHP_METHOD(Phalcon_Validation_Validator_Uniqueness, isUniqueness) { zephir_check_call_status(); zephir_is_iterable(field, &_2, &_1, 0, 0, "phalcon/validation/validator/uniqueness.zep", 151); for ( - ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS - ; zephir_hash_move_forward_ex(_2, &_1) + ; zend_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS + ; zend_hash_move_forward_ex(_2, &_1) ) { ZEPHIR_GET_HVALUE(singleField, _3); ZEPHIR_CALL_METHOD(&_4$$4, validation, "getvalue", &_5, 0, singleField); @@ -265,11 +264,11 @@ PHP_METHOD(Phalcon_Validation_Validator_Uniqueness, getColumnNameReal) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &record, &field_param); - if (unlikely(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'field' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(field_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(field_param) == IS_STRING)) { zephir_get_strval(field, field_param); } else { ZEPHIR_INIT_VAR(field); @@ -349,8 +348,8 @@ PHP_METHOD(Phalcon_Validation_Validator_Uniqueness, isUniquenessModel) { zephir_check_call_status(); zephir_is_iterable(field, &_2, &_1, 0, 0, "phalcon/validation/validator/uniqueness.zep", 290); for ( - ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS - ; zephir_hash_move_forward_ex(_2, &_1) + ; zend_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS + ; zend_hash_move_forward_ex(_2, &_1) ) { ZEPHIR_GET_HVALUE(singleField, _3); ZEPHIR_INIT_NVAR(fieldExcept); @@ -396,8 +395,8 @@ PHP_METHOD(Phalcon_Validation_Validator_Uniqueness, isUniquenessModel) { if (_10$$6) { zephir_is_iterable(except, &_17$$7, &_16$$7, 0, 0, "phalcon/validation/validator/uniqueness.zep", 253); for ( - ; zephir_hash_get_current_data_ex(_17$$7, (void**) &_18$$7, &_16$$7) == SUCCESS - ; zephir_hash_move_forward_ex(_17$$7, &_16$$7) + ; zend_hash_get_current_data_ex(_17$$7, (void**) &_18$$7, &_16$$7) == SUCCESS + ; zend_hash_move_forward_ex(_17$$7, &_16$$7) ) { ZEPHIR_GET_HMKEY(singleField, _17$$7, _16$$7); ZEPHIR_GET_HVALUE(fieldExcept, _18$$7); @@ -411,8 +410,8 @@ PHP_METHOD(Phalcon_Validation_Validator_Uniqueness, isUniquenessModel) { if (Z_TYPE_P(fieldExcept) == IS_ARRAY) { zephir_is_iterable(fieldExcept, &_22$$9, &_21$$9, 0, 0, "phalcon/validation/validator/uniqueness.zep", 246); for ( - ; zephir_hash_get_current_data_ex(_22$$9, (void**) &_23$$9, &_21$$9) == SUCCESS - ; zephir_hash_move_forward_ex(_22$$9, &_21$$9) + ; zend_hash_get_current_data_ex(_22$$9, (void**) &_23$$9, &_21$$9) == SUCCESS + ; zend_hash_move_forward_ex(_22$$9, &_21$$9) ) { ZEPHIR_GET_HVALUE(singleExcept, _23$$9); ZEPHIR_SINIT_NVAR(_24$$10); @@ -450,8 +449,8 @@ PHP_METHOD(Phalcon_Validation_Validator_Uniqueness, isUniquenessModel) { if (Z_TYPE_P(except) == IS_ARRAY) { zephir_is_iterable(except, &_34$$13, &_33$$13, 0, 0, "phalcon/validation/validator/uniqueness.zep", 261); for ( - ; zephir_hash_get_current_data_ex(_34$$13, (void**) &_35$$13, &_33$$13) == SUCCESS - ; zephir_hash_move_forward_ex(_34$$13, &_33$$13) + ; zend_hash_get_current_data_ex(_34$$13, (void**) &_35$$13, &_33$$13) == SUCCESS + ; zend_hash_move_forward_ex(_34$$13, &_33$$13) ) { ZEPHIR_GET_HVALUE(singleExcept, _35$$13); ZEPHIR_SINIT_NVAR(_36$$14); @@ -479,8 +478,8 @@ PHP_METHOD(Phalcon_Validation_Validator_Uniqueness, isUniquenessModel) { } else if (zephir_fast_count_int(field TSRMLS_CC) > 1) { zephir_is_iterable(field, &_43$$16, &_42$$16, 0, 0, "phalcon/validation/validator/uniqueness.zep", 283); for ( - ; zephir_hash_get_current_data_ex(_43$$16, (void**) &_44$$16, &_42$$16) == SUCCESS - ; zephir_hash_move_forward_ex(_43$$16, &_42$$16) + ; zend_hash_get_current_data_ex(_43$$16, (void**) &_44$$16, &_42$$16) == SUCCESS + ; zend_hash_move_forward_ex(_43$$16, &_42$$16) ) { ZEPHIR_GET_HVALUE(singleField, _44$$16); ZEPHIR_INIT_NVAR(_46$$17); @@ -493,8 +492,8 @@ PHP_METHOD(Phalcon_Validation_Validator_Uniqueness, isUniquenessModel) { if (Z_TYPE_P(except) == IS_ARRAY) { zephir_is_iterable(except, &_48$$18, &_47$$18, 0, 0, "phalcon/validation/validator/uniqueness.zep", 276); for ( - ; zephir_hash_get_current_data_ex(_48$$18, (void**) &_49$$18, &_47$$18) == SUCCESS - ; zephir_hash_move_forward_ex(_48$$18, &_47$$18) + ; zend_hash_get_current_data_ex(_48$$18, (void**) &_49$$18, &_47$$18) == SUCCESS + ; zend_hash_move_forward_ex(_48$$18, &_47$$18) ) { ZEPHIR_GET_HVALUE(singleExcept, _49$$18); ZEPHIR_SINIT_NVAR(_50$$19); @@ -537,8 +536,8 @@ PHP_METHOD(Phalcon_Validation_Validator_Uniqueness, isUniquenessModel) { zephir_check_call_status(); zephir_is_iterable(_59$$21, &_61$$21, &_60$$21, 0, 0, "phalcon/validation/validator/uniqueness.zep", 298); for ( - ; zephir_hash_get_current_data_ex(_61$$21, (void**) &_62$$21, &_60$$21) == SUCCESS - ; zephir_hash_move_forward_ex(_61$$21, &_60$$21) + ; zend_hash_get_current_data_ex(_61$$21, (void**) &_62$$21, &_60$$21) == SUCCESS + ; zend_hash_move_forward_ex(_61$$21, &_60$$21) ) { ZEPHIR_GET_HVALUE(primaryField, _62$$21); ZEPHIR_CALL_METHOD(&_63$$22, this_ptr, "getcolumnnamereal", &_6, 0, record, primaryField); @@ -598,8 +597,8 @@ PHP_METHOD(Phalcon_Validation_Validator_Uniqueness, isUniquenessCollection) { zephir_array_update_string(¶ms, SL("conditions"), &_0, PH_COPY | PH_SEPARATE); zephir_is_iterable(field, &_2, &_1, 0, 0, "phalcon/validation/validator/uniqueness.zep", 363); for ( - ; zephir_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS - ; zephir_hash_move_forward_ex(_2, &_1) + ; zend_hash_get_current_data_ex(_2, (void**) &_3, &_1) == SUCCESS + ; zend_hash_move_forward_ex(_2, &_1) ) { ZEPHIR_GET_HVALUE(singleField, _3); ZEPHIR_INIT_NVAR(fieldExcept); @@ -637,8 +636,8 @@ PHP_METHOD(Phalcon_Validation_Validator_Uniqueness, isUniquenessCollection) { if (Z_TYPE_P(fieldExcept) == IS_ARRAY) { zephir_is_iterable(fieldExcept, &_9$$10, &_8$$10, 0, 0, "phalcon/validation/validator/uniqueness.zep", 344); for ( - ; zephir_hash_get_current_data_ex(_9$$10, (void**) &_10$$10, &_8$$10) == SUCCESS - ; zephir_hash_move_forward_ex(_9$$10, &_8$$10) + ; zend_hash_get_current_data_ex(_9$$10, (void**) &_10$$10, &_8$$10) == SUCCESS + ; zend_hash_move_forward_ex(_9$$10, &_8$$10) ) { ZEPHIR_GET_HVALUE(singleExcept, _10$$10); zephir_array_append(¬InValues, singleExcept, PH_SEPARATE, "phalcon/validation/validator/uniqueness.zep", 342); @@ -656,8 +655,8 @@ PHP_METHOD(Phalcon_Validation_Validator_Uniqueness, isUniquenessCollection) { } else if (_7$$6) { zephir_is_iterable(except, &_12$$13, &_11$$13, 0, 0, "phalcon/validation/validator/uniqueness.zep", 354); for ( - ; zephir_hash_get_current_data_ex(_12$$13, (void**) &_13$$13, &_11$$13) == SUCCESS - ; zephir_hash_move_forward_ex(_12$$13, &_11$$13) + ; zend_hash_get_current_data_ex(_12$$13, (void**) &_13$$13, &_11$$13) == SUCCESS + ; zend_hash_move_forward_ex(_12$$13, &_11$$13) ) { ZEPHIR_GET_HVALUE(singleExcept, _13$$13); zephir_array_append(¬InValues, singleExcept, PH_SEPARATE, "phalcon/validation/validator/uniqueness.zep", 352); diff --git a/ext/phalcon/validation/validator/url.zep.c b/ext/phalcon/validation/validator/url.zep.c index c6318494d4d..04edbda4616 100644 --- a/ext/phalcon/validation/validator/url.zep.c +++ b/ext/phalcon/validation/validator/url.zep.c @@ -73,11 +73,11 @@ PHP_METHOD(Phalcon_Validation_Validator_Url, validate) { ZEPHIR_MM_GROW(); zephir_fetch_params(1, 2, 0, &validation, &field_param); - if (unlikely(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { + if (UNEXPECTED(Z_TYPE_P(field_param) != IS_STRING && Z_TYPE_P(field_param) != IS_NULL)) { zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'field' must be a string") TSRMLS_CC); RETURN_MM_NULL(); } - if (likely(Z_TYPE_P(field_param) == IS_STRING)) { + if (EXPECTED(Z_TYPE_P(field_param) == IS_STRING)) { zephir_get_strval(field, field_param); } else { ZEPHIR_INIT_VAR(field); @@ -139,7 +139,7 @@ PHP_METHOD(Phalcon_Validation_Validator_Url, validate) { zephir_check_call_status(); ZEPHIR_INIT_VAR(_8$$3); ZVAL_STRING(_8$$3, "Url", ZEPHIR_TEMP_PARAM_COPY); - ZEPHIR_CALL_METHOD(NULL, _2$$3, "__construct", NULL, 465, _7$$3, field, _8$$3, code); + ZEPHIR_CALL_METHOD(NULL, _2$$3, "__construct", NULL, 464, _7$$3, field, _8$$3, code); zephir_check_temp_parameter(_8$$3); zephir_check_call_status(); ZEPHIR_CALL_METHOD(NULL, validation, "appendmessage", NULL, 0, _2$$3); diff --git a/ext/phalcon/version.zep.c b/ext/phalcon/version.zep.c index 09ac08b8457..e1d0022e493 100644 --- a/ext/phalcon/version.zep.c +++ b/ext/phalcon/version.zep.c @@ -112,7 +112,7 @@ PHP_METHOD(Phalcon_Version, _getVersion) { ZVAL_LONG(_0, 1); zephir_array_fast_append(return_value, _0); ZEPHIR_INIT_NVAR(_0); - ZVAL_LONG(_0, 1); + ZVAL_LONG(_0, 2); zephir_array_fast_append(return_value, _0); ZEPHIR_INIT_NVAR(_0); ZVAL_LONG(_0, 4); @@ -193,7 +193,7 @@ PHP_METHOD(Phalcon_Version, get) { zephir_array_fetch_long(&specialNumber, version, 4, PH_NOISY, "phalcon/version.zep", 143 TSRMLS_CC); ZEPHIR_INIT_VAR(result); ZEPHIR_CONCAT_VSVSVS(result, major, ".", medium, ".", minor, " "); - ZEPHIR_CALL_STATIC(&suffix, "_getspecial", &_0, 473, special); + ZEPHIR_CALL_STATIC(&suffix, "_getspecial", &_0, 472, special); zephir_check_call_status(); if (!ZEPHIR_IS_STRING(suffix, "")) { ZEPHIR_INIT_VAR(_1$$3); @@ -277,7 +277,7 @@ PHP_METHOD(Phalcon_Version, getPart) { } if (part == 3) { zephir_array_fetch_long(&_1$$4, version, 3, PH_NOISY | PH_READONLY, "phalcon/version.zep", 204 TSRMLS_CC); - ZEPHIR_CALL_STATIC(&result, "_getspecial", &_0, 473, _1$$4); + ZEPHIR_CALL_STATIC(&result, "_getspecial", &_0, 472, _1$$4); zephir_check_call_status(); break; } diff --git a/ext/php_phalcon.h b/ext/php_phalcon.h index f8a09a15f56..2677a90b4db 100644 --- a/ext/php_phalcon.h +++ b/ext/php_phalcon.h @@ -11,10 +11,10 @@ #include "kernel/globals.h" #define PHP_PHALCON_NAME "phalcon" -#define PHP_PHALCON_VERSION "3.1.1" +#define PHP_PHALCON_VERSION "3.1.2" #define PHP_PHALCON_EXTNAME "phalcon" #define PHP_PHALCON_AUTHOR "Phalcon Team and contributors" -#define PHP_PHALCON_ZEPVERSION "0.9.6a-dev-3a72ba9bb5" +#define PHP_PHALCON_ZEPVERSION "0.9.7-1fae5e50ac" #define PHP_PHALCON_DESCRIPTION "Web framework delivered as a C-extension for PHP" typedef struct _zephir_struct_db { From d0f065657e45c52e726dbde8ff9a8c74765840f4 Mon Sep 17 00:00:00 2001 From: Serghei Iakovlev Date: Wed, 5 Apr 2017 21:15:09 +0300 Subject: [PATCH 21/21] Updated CHANGELOG.md [ci skip] --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 12e548dcd9c..f60c5e2e932 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,4 @@ -# [3.1.2](https://github.com/phalcon/cphalcon/releases/tag/v3.1.2) (2017-XX-XX) +# [3.1.2](https://github.com/phalcon/cphalcon/releases/tag/v3.1.2) (2017-04-05) - Fixed PHP 7.1 issues [#12055](https://github.com/phalcon/cphalcon/issues/12055) - Fixed `Imagick::getVersion()` error in some system [#12729](https://github.com/phalcon/cphalcon/pull/12729) - Fixed `Phalcon\Mvc\Model::_doLowInsert` to properly set snapshot when having default values and public properties [#12766](https://github.com/phalcon/cphalcon/issues/12766)
Memory
Usage", &_34$$5, "
KeyValue
KeyValue
KeyValue
KeyValue
KeyValue
KeyValue
KeyValue
KeyValue
KeyValue
KeyValue
KeyValue
KeyValue